2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.4svn.
5 # Report bugs to <http://llvm.org/bugs/>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 exec 7<&0 </dev/null 6>&1
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
559 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.4svn'
565 PACKAGE_STRING='LLVM 3.4svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
568 ac_unique_file="lib/IR/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
573 # include <sys/types.h>
576 # include <sys/stat.h>
587 # if !STDC_HEADERS && HAVE_MEMORY_H
593 # include <strings.h>
596 # include <inttypes.h>
614 program_transform_name
689 ENABLE_CLANG_STATIC_ANALYZER
690 ENABLE_CLANG_REWRITER
695 ENABLE_EXPENSIVE_CHECKS
714 LLVM_ENUM_ASM_PRINTERS
715 LLVM_ENUM_ASM_PARSERS
716 LLVM_ENUM_DISASSEMBLERS
762 HAVE_LINK_VERSION_SCRIPT
765 CONVENIENCE_LTDL_TRUE
766 CONVENIENCE_LTDL_FALSE
769 NO_MISSING_FIELD_INITIALIZERS
770 COVERED_SWITCH_DEFAULT
771 NO_MAYBE_UNINITIALIZED
799 ENABLE_VISIBILITY_INLINES_HIDDEN
806 ac_precious_vars='build_alias
818 ac_subdirs_all='projects/llvm-gcc
822 projects/llvm-poolalloc
825 projects/llvm-stacker
833 # Initialize some variables set by options.
835 ac_init_version=false
836 # The variables have the same names as the options, with
837 # dashes changed to underlines.
845 program_transform_name=s,x,x,
853 # Installation directory options.
854 # These are left unexpanded so users can "make install exec_prefix=/foo"
855 # and all the variables that are supposed to be based on exec_prefix
856 # by default will actually change.
857 # Use braces instead of parens because sh, perl, etc. also accept them.
858 # (The list follows the same order as the GNU Coding Standards.)
859 bindir='${exec_prefix}/bin'
860 sbindir='${exec_prefix}/sbin'
861 libexecdir='${exec_prefix}/libexec'
862 datarootdir='${prefix}/share'
863 datadir='${datarootdir}'
864 sysconfdir='${prefix}/etc'
865 sharedstatedir='${prefix}/com'
866 localstatedir='${prefix}/var'
867 includedir='${prefix}/include'
868 oldincludedir='/usr/include'
869 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
870 infodir='${datarootdir}/info'
875 libdir='${exec_prefix}/lib'
876 localedir='${datarootdir}/locale'
877 mandir='${datarootdir}/man'
883 # If the previous option needs an argument, assign it.
884 if test -n "$ac_prev"; then
885 eval $ac_prev=\$ac_option
891 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
895 # Accept the important Cygnus configure options, so we can diagnose typos.
897 case $ac_dashdash$ac_option in
901 -bindir | --bindir | --bindi | --bind | --bin | --bi)
903 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
906 -build | --build | --buil | --bui | --bu)
907 ac_prev=build_alias ;;
908 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
909 build_alias=$ac_optarg ;;
911 -cache-file | --cache-file | --cache-fil | --cache-fi \
912 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
913 ac_prev=cache_file ;;
914 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
915 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
916 cache_file=$ac_optarg ;;
919 cache_file=config.cache ;;
921 -datadir | --datadir | --datadi | --datad)
923 -datadir=* | --datadir=* | --datadi=* | --datad=*)
924 datadir=$ac_optarg ;;
926 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
927 | --dataroo | --dataro | --datar)
928 ac_prev=datarootdir ;;
929 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
930 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
931 datarootdir=$ac_optarg ;;
933 -disable-* | --disable-*)
934 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
935 # Reject names that are not valid shell variable names.
936 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
937 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
938 { (exit 1); exit 1; }; }
939 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
940 eval enable_$ac_feature=no ;;
942 -docdir | --docdir | --docdi | --doc | --do)
944 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
947 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
949 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
952 -enable-* | --enable-*)
953 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
954 # Reject names that are not valid shell variable names.
955 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
956 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
957 { (exit 1); exit 1; }; }
958 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
959 eval enable_$ac_feature=\$ac_optarg ;;
961 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
962 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
963 | --exec | --exe | --ex)
964 ac_prev=exec_prefix ;;
965 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
966 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
967 | --exec=* | --exe=* | --ex=*)
968 exec_prefix=$ac_optarg ;;
970 -gas | --gas | --ga | --g)
971 # Obsolete; use --with-gas.
974 -help | --help | --hel | --he | -h)
976 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
977 ac_init_help=recursive ;;
978 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
979 ac_init_help=short ;;
981 -host | --host | --hos | --ho)
982 ac_prev=host_alias ;;
983 -host=* | --host=* | --hos=* | --ho=*)
984 host_alias=$ac_optarg ;;
986 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
988 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
990 htmldir=$ac_optarg ;;
992 -includedir | --includedir | --includedi | --included | --include \
993 | --includ | --inclu | --incl | --inc)
994 ac_prev=includedir ;;
995 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
996 | --includ=* | --inclu=* | --incl=* | --inc=*)
997 includedir=$ac_optarg ;;
999 -infodir | --infodir | --infodi | --infod | --info | --inf)
1001 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1002 infodir=$ac_optarg ;;
1004 -libdir | --libdir | --libdi | --libd)
1006 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1007 libdir=$ac_optarg ;;
1009 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1010 | --libexe | --libex | --libe)
1011 ac_prev=libexecdir ;;
1012 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1013 | --libexe=* | --libex=* | --libe=*)
1014 libexecdir=$ac_optarg ;;
1016 -localedir | --localedir | --localedi | --localed | --locale)
1017 ac_prev=localedir ;;
1018 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1019 localedir=$ac_optarg ;;
1021 -localstatedir | --localstatedir | --localstatedi | --localstated \
1022 | --localstate | --localstat | --localsta | --localst | --locals)
1023 ac_prev=localstatedir ;;
1024 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1025 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1026 localstatedir=$ac_optarg ;;
1028 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1030 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1031 mandir=$ac_optarg ;;
1033 -nfp | --nfp | --nf)
1034 # Obsolete; use --without-fp.
1037 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1038 | --no-cr | --no-c | -n)
1041 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1042 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1045 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1046 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1047 | --oldin | --oldi | --old | --ol | --o)
1048 ac_prev=oldincludedir ;;
1049 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1050 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1051 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1052 oldincludedir=$ac_optarg ;;
1054 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1056 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1057 prefix=$ac_optarg ;;
1059 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1060 | --program-pre | --program-pr | --program-p)
1061 ac_prev=program_prefix ;;
1062 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1063 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1064 program_prefix=$ac_optarg ;;
1066 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1067 | --program-suf | --program-su | --program-s)
1068 ac_prev=program_suffix ;;
1069 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1070 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1071 program_suffix=$ac_optarg ;;
1073 -program-transform-name | --program-transform-name \
1074 | --program-transform-nam | --program-transform-na \
1075 | --program-transform-n | --program-transform- \
1076 | --program-transform | --program-transfor \
1077 | --program-transfo | --program-transf \
1078 | --program-trans | --program-tran \
1079 | --progr-tra | --program-tr | --program-t)
1080 ac_prev=program_transform_name ;;
1081 -program-transform-name=* | --program-transform-name=* \
1082 | --program-transform-nam=* | --program-transform-na=* \
1083 | --program-transform-n=* | --program-transform-=* \
1084 | --program-transform=* | --program-transfor=* \
1085 | --program-transfo=* | --program-transf=* \
1086 | --program-trans=* | --program-tran=* \
1087 | --progr-tra=* | --program-tr=* | --program-t=*)
1088 program_transform_name=$ac_optarg ;;
1090 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1092 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1093 pdfdir=$ac_optarg ;;
1095 -psdir | --psdir | --psdi | --psd | --ps)
1097 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1100 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1101 | -silent | --silent | --silen | --sile | --sil)
1104 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1106 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1108 sbindir=$ac_optarg ;;
1110 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1111 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1112 | --sharedst | --shareds | --shared | --share | --shar \
1114 ac_prev=sharedstatedir ;;
1115 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1116 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1117 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1119 sharedstatedir=$ac_optarg ;;
1121 -site | --site | --sit)
1123 -site=* | --site=* | --sit=*)
1126 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1128 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1129 srcdir=$ac_optarg ;;
1131 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1132 | --syscon | --sysco | --sysc | --sys | --sy)
1133 ac_prev=sysconfdir ;;
1134 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1135 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1136 sysconfdir=$ac_optarg ;;
1138 -target | --target | --targe | --targ | --tar | --ta | --t)
1139 ac_prev=target_alias ;;
1140 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1141 target_alias=$ac_optarg ;;
1143 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1146 -version | --version | --versio | --versi | --vers | -V)
1147 ac_init_version=: ;;
1150 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1153 { echo "$as_me: error: invalid package name: $ac_package" >&2
1154 { (exit 1); exit 1; }; }
1155 ac_package=`echo $ac_package| sed 's/-/_/g'`
1156 eval with_$ac_package=\$ac_optarg ;;
1158 -without-* | --without-*)
1159 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1162 { echo "$as_me: error: invalid package name: $ac_package" >&2
1163 { (exit 1); exit 1; }; }
1164 ac_package=`echo $ac_package | sed 's/-/_/g'`
1165 eval with_$ac_package=no ;;
1168 # Obsolete; use --with-x.
1171 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1172 | --x-incl | --x-inc | --x-in | --x-i)
1173 ac_prev=x_includes ;;
1174 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1175 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1176 x_includes=$ac_optarg ;;
1178 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1179 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1180 ac_prev=x_libraries ;;
1181 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1182 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1183 x_libraries=$ac_optarg ;;
1185 -*) { echo "$as_me: error: unrecognized option: $ac_option
1186 Try \`$0 --help' for more information." >&2
1187 { (exit 1); exit 1; }; }
1191 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1194 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1195 { (exit 1); exit 1; }; }
1196 eval $ac_envvar=\$ac_optarg
1197 export $ac_envvar ;;
1200 # FIXME: should be removed in autoconf 3.0.
1201 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1202 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1203 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1204 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1210 if test -n "$ac_prev"; then
1211 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1212 { echo "$as_me: error: missing argument to $ac_option" >&2
1213 { (exit 1); exit 1; }; }
1216 # Be sure to have absolute directory names.
1217 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1218 datadir sysconfdir sharedstatedir localstatedir includedir \
1219 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1220 libdir localedir mandir
1222 eval ac_val=\$$ac_var
1224 [\\/$]* | ?:[\\/]* ) continue;;
1225 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1227 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1228 { (exit 1); exit 1; }; }
1231 # There might be people who depend on the old broken behavior: `$host'
1232 # used to hold the argument of --host etc.
1233 # FIXME: To remove some day.
1236 target=$target_alias
1238 # FIXME: To remove some day.
1239 if test "x$host_alias" != x; then
1240 if test "x$build_alias" = x; then
1241 cross_compiling=maybe
1242 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1243 If a cross compiler is detected then cross compile mode will be used." >&2
1244 elif test "x$build_alias" != "x$host_alias"; then
1250 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1252 test "$silent" = yes && exec 6>/dev/null
1255 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1256 ac_ls_di=`ls -di .` &&
1257 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1258 { echo "$as_me: error: Working directory cannot be determined" >&2
1259 { (exit 1); exit 1; }; }
1260 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1261 { echo "$as_me: error: pwd does not report name of working directory" >&2
1262 { (exit 1); exit 1; }; }
1265 # Find the source files, if location was not specified.
1266 if test -z "$srcdir"; then
1267 ac_srcdir_defaulted=yes
1268 # Try the directory containing this script, then the parent directory.
1269 ac_confdir=`$as_dirname -- "$0" ||
1270 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1271 X"$0" : 'X\(//\)[^/]' \| \
1272 X"$0" : 'X\(//\)$' \| \
1273 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1293 if test ! -r "$srcdir/$ac_unique_file"; then
1297 ac_srcdir_defaulted=no
1299 if test ! -r "$srcdir/$ac_unique_file"; then
1300 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1301 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1302 { (exit 1); exit 1; }; }
1304 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1306 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1307 { (exit 1); exit 1; }; }
1309 # When building in place, set srcdir=.
1310 if test "$ac_abs_confdir" = "$ac_pwd"; then
1313 # Remove unnecessary trailing slashes from srcdir.
1314 # Double slashes in file names in object file debugging info
1315 # mess up M-x gdb in Emacs.
1317 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1319 for ac_var in $ac_precious_vars; do
1320 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1321 eval ac_env_${ac_var}_value=\$${ac_var}
1322 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1323 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1327 # Report the --help message.
1329 if test "$ac_init_help" = "long"; then
1330 # Omit some internal or obsolete options to make the list less imposing.
1331 # This message is too long to be a string in the A/UX 3.1 sh.
1333 \`configure' configures LLVM 3.4svn to adapt to many kinds of systems.
1335 Usage: $0 [OPTION]... [VAR=VALUE]...
1337 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1338 VAR=VALUE. See below for descriptions of some of the useful variables.
1340 Defaults for the options are specified in brackets.
1343 -h, --help display this help and exit
1344 --help=short display options specific to this package
1345 --help=recursive display the short help of all the included packages
1346 -V, --version display version information and exit
1347 -q, --quiet, --silent do not print \`checking...' messages
1348 --cache-file=FILE cache test results in FILE [disabled]
1349 -C, --config-cache alias for \`--cache-file=config.cache'
1350 -n, --no-create do not create output files
1351 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1353 Installation directories:
1354 --prefix=PREFIX install architecture-independent files in PREFIX
1355 [$ac_default_prefix]
1356 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1359 By default, \`make install' will install all the files in
1360 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1361 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1362 for instance \`--prefix=\$HOME'.
1364 For better control, use the options below.
1366 Fine tuning of the installation directories:
1367 --bindir=DIR user executables [EPREFIX/bin]
1368 --sbindir=DIR system admin executables [EPREFIX/sbin]
1369 --libexecdir=DIR program executables [EPREFIX/libexec]
1370 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1371 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1372 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1373 --libdir=DIR object code libraries [EPREFIX/lib]
1374 --includedir=DIR C header files [PREFIX/include]
1375 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1376 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1377 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1378 --infodir=DIR info documentation [DATAROOTDIR/info]
1379 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1380 --mandir=DIR man documentation [DATAROOTDIR/man]
1381 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1382 --htmldir=DIR html documentation [DOCDIR]
1383 --dvidir=DIR dvi documentation [DOCDIR]
1384 --pdfdir=DIR pdf documentation [DOCDIR]
1385 --psdir=DIR ps documentation [DOCDIR]
1391 --build=BUILD configure for building on BUILD [guessed]
1392 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1393 --target=TARGET configure for building compilers for TARGET [HOST]
1397 if test -n "$ac_init_help"; then
1398 case $ac_init_help in
1399 short | recursive ) echo "Configuration of LLVM 3.4svn:";;
1404 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1405 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1406 --enable-polly Use polly if available (default is YES)
1407 --enable-libcpp Use libc++ if available (default is NO)
1408 --enable-cxx11 Use c++11 if available (default is NO)
1409 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1410 --enable-clang-static-analyzer
1411 Enable building of clang Static Analyzer (default is
1413 --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1414 --enable-optimized Compile with optimizations enabled (default is NO)
1415 --enable-profiling Compile with profiling enabled (default is NO)
1416 --enable-assertions Compile with assertion checks enabled (default is
1418 --enable-werror Compile with -Werror enabled (default is NO)
1419 --enable-expensive-checks
1420 Compile with expensive debug checks enabled (default
1422 --enable-debug-runtime Build runtime libs with debug symbols (default is
1424 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1425 optimization is on and YES if it's off)
1426 --enable-keep-symbols Do not strip installed executables)
1427 --enable-jit Enable Just In Time Compiling (default is YES)
1428 --enable-docs Build documents (default is YES)
1429 --enable-doxygen Build doxygen documentation (default is NO)
1430 --enable-threads Use threads if available (default is YES)
1431 --enable-pthreads Use pthreads if available (default is YES)
1432 --enable-zlib Use zlib for compression/decompression if available
1434 --enable-pic Build LLVM with Position Independent Code (default
1436 --enable-shared Build a shared library and link tools against it
1438 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1439 Win32 DLL (default is NO)
1440 --enable-timestamps Enable embedding timestamp information in build
1442 --enable-backtraces Enable embedding backtraces on crash (default is
1444 --enable-targets Build specific host targets: all or
1445 target1,target2,... Valid targets are: host, x86,
1446 x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1447 xcore, msp430, nvptx, systemz, r600, and cpp
1449 --enable-experimental-targets
1450 Build experimental host targets: disable or
1451 target1,target2,... (default=disable)
1452 --enable-bindings Build specific language bindings:
1453 all,auto,none,{binding-name} (default=auto)
1454 --enable-libffi Check for the presence of libffi (default is NO)
1455 --enable-ltdl-install install libltdl
1458 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1459 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1460 --with-optimize-option Select the compiler options to use for optimized
1462 --with-extra-options Specify additional options to compile LLVM with
1463 --with-extra-ld-options Specify additional options to link LLVM with
1464 --with-ocaml-libdir Specify install location for ocaml bindings (default
1466 --with-clang-srcdir Directory to the out-of-tree Clang source
1467 --with-clang-resource-dir
1468 Relative directory from the Clang binary for
1470 --with-c-include-dirs Colon separated list of directories clang will
1472 --with-gcc-toolchain Directory where gcc is installed.
1473 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1474 --with-binutils-include Specify path to binutils/include/ containing
1475 plugin-api.h file for gold plugin.
1476 --with-bug-report-url Specify the URL where bug reports should be
1477 submitted (default=http://llvm.org/bugs/)
1478 --with-internal-prefix Installation directory for internal files
1479 --with-python path to python
1480 --with-udis86=<path> Use udis86 external x86 disassembler library
1481 --with-oprofile=<prefix>
1482 Tell OProfile >= 0.9.4 how to symbolize JIT output
1483 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1486 Some influential environment variables:
1487 CC C compiler command
1488 CFLAGS C compiler flags
1489 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1490 nonstandard directory <lib dir>
1491 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1492 you have headers in a nonstandard directory <include dir>
1493 CXX C++ compiler command
1494 CXXFLAGS C++ compiler flags
1496 CXXCPP C++ preprocessor
1498 Use these variables to override the choices made by `configure' or to help
1499 it to find libraries and programs with nonstandard names/locations.
1501 Report bugs to <http://llvm.org/bugs/>.
1506 if test "$ac_init_help" = "recursive"; then
1507 # If there are subdirs, report their specific --help.
1508 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1509 test -d "$ac_dir" || continue
1513 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1515 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1516 # A ".." for each directory in $ac_dir_suffix.
1517 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1518 case $ac_top_builddir_sub in
1519 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1523 ac_abs_top_builddir=$ac_pwd
1524 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1525 # for backward compatibility:
1526 ac_top_builddir=$ac_top_build_prefix
1529 .) # We are building in place.
1531 ac_top_srcdir=$ac_top_builddir_sub
1532 ac_abs_top_srcdir=$ac_pwd ;;
1533 [\\/]* | ?:[\\/]* ) # Absolute name.
1534 ac_srcdir=$srcdir$ac_dir_suffix;
1535 ac_top_srcdir=$srcdir
1536 ac_abs_top_srcdir=$srcdir ;;
1538 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1539 ac_top_srcdir=$ac_top_build_prefix$srcdir
1540 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1542 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1544 cd "$ac_dir" || { ac_status=$?; continue; }
1545 # Check for guested configure.
1546 if test -f "$ac_srcdir/configure.gnu"; then
1548 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1549 elif test -f "$ac_srcdir/configure"; then
1551 $SHELL "$ac_srcdir/configure" --help=recursive
1553 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1555 cd "$ac_pwd" || { ac_status=$?; break; }
1559 test -n "$ac_init_help" && exit $ac_status
1560 if $ac_init_version; then
1562 LLVM configure 3.4svn
1563 generated by GNU Autoconf 2.60
1565 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1566 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1567 This configure script is free software; the Free Software Foundation
1568 gives unlimited permission to copy, distribute and modify it.
1570 Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
1574 cat >config.log <<_ACEOF
1575 This file contains any messages produced by compilers while
1576 running configure, to aid debugging if configure makes a mistake.
1578 It was created by LLVM $as_me 3.4svn, which was
1579 generated by GNU Autoconf 2.60. Invocation command line was
1591 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1592 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1593 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1594 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1595 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1597 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1598 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1600 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1601 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1602 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1603 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1604 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1605 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1606 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1614 test -z "$as_dir" && as_dir=.
1615 echo "PATH: $as_dir"
1631 # Keep a trace of the command line.
1632 # Strip out --no-create and --no-recursion so they do not pile up.
1633 # Strip out --silent because we don't want to record it for future runs.
1634 # Also quote any args containing shell meta-characters.
1635 # Make two passes to allow for proper duplicate-argument suppression.
1639 ac_must_keep_next=false
1645 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1646 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1647 | -silent | --silent | --silen | --sile | --sil)
1650 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1653 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1655 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1656 if test $ac_must_keep_next = true; then
1657 ac_must_keep_next=false # Got value, back to normal.
1660 *=* | --config-cache | -C | -disable-* | --disable-* \
1661 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1662 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1663 | -with-* | --with-* | -without-* | --without-* | --x)
1664 case "$ac_configure_args0 " in
1665 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1668 -* ) ac_must_keep_next=true ;;
1671 ac_configure_args="$ac_configure_args '$ac_arg'"
1676 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1677 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1679 # When interrupted or exit'd, cleanup temporary files, and complete
1680 # config.log. We remove comments because anyway the quotes in there
1681 # would cause problems or look ugly.
1682 # WARNING: Use '\'' to represent an apostrophe within the trap.
1683 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1684 trap 'exit_status=$?
1685 # Save into config.log some information that might help in debugging.
1690 ## ---------------- ##
1691 ## Cache variables. ##
1692 ## ---------------- ##
1695 # The following way of writing the cache mishandles newlines in values,
1697 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1698 eval ac_val=\$$ac_var
1702 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1703 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1706 _ | IFS | as_nl) ;; #(
1707 *) $as_unset $ac_var ;;
1712 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1713 *${as_nl}ac_space=\ *)
1715 "s/'\''/'\''\\\\'\'''\''/g;
1716 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1719 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1727 ## ----------------- ##
1728 ## Output variables. ##
1729 ## ----------------- ##
1732 for ac_var in $ac_subst_vars
1734 eval ac_val=\$$ac_var
1736 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1738 echo "$ac_var='\''$ac_val'\''"
1742 if test -n "$ac_subst_files"; then
1744 ## ------------------- ##
1745 ## File substitutions. ##
1746 ## ------------------- ##
1749 for ac_var in $ac_subst_files
1751 eval ac_val=\$$ac_var
1753 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1755 echo "$ac_var='\''$ac_val'\''"
1760 if test -s confdefs.h; then
1770 test "$ac_signal" != 0 &&
1771 echo "$as_me: caught signal $ac_signal"
1772 echo "$as_me: exit $exit_status"
1774 rm -f core *.core core.conftest.* &&
1775 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1778 for ac_signal in 1 2 13 15; do
1779 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1783 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1784 rm -f -r conftest* confdefs.h
1786 # Predefined preprocessor variables.
1788 cat >>confdefs.h <<_ACEOF
1789 #define PACKAGE_NAME "$PACKAGE_NAME"
1793 cat >>confdefs.h <<_ACEOF
1794 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1798 cat >>confdefs.h <<_ACEOF
1799 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1803 cat >>confdefs.h <<_ACEOF
1804 #define PACKAGE_STRING "$PACKAGE_STRING"
1808 cat >>confdefs.h <<_ACEOF
1809 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1813 # Let the site file select an alternate cache file if it wants to.
1814 # Prefer explicitly selected file to automatically selected ones.
1815 if test -n "$CONFIG_SITE"; then
1816 set x "$CONFIG_SITE"
1817 elif test "x$prefix" != xNONE; then
1818 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1820 set x "$ac_default_prefix/share/config.site" \
1821 "$ac_default_prefix/etc/config.site"
1826 if test -r "$ac_site_file"; then
1827 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1828 echo "$as_me: loading site script $ac_site_file" >&6;}
1829 sed 's/^/| /' "$ac_site_file" >&5
1834 if test -r "$cache_file"; then
1835 # Some versions of bash will fail to source /dev/null (special
1836 # files actually), so we avoid doing that.
1837 if test -f "$cache_file"; then
1838 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1839 echo "$as_me: loading cache $cache_file" >&6;}
1841 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1842 *) . "./$cache_file";;
1846 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1847 echo "$as_me: creating cache $cache_file" >&6;}
1851 # Check that the precious variables saved in the cache have kept the same
1853 ac_cache_corrupted=false
1854 for ac_var in $ac_precious_vars; do
1855 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1856 eval ac_new_set=\$ac_env_${ac_var}_set
1857 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1858 eval ac_new_val=\$ac_env_${ac_var}_value
1859 case $ac_old_set,$ac_new_set in
1861 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1862 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1863 ac_cache_corrupted=: ;;
1865 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1866 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1867 ac_cache_corrupted=: ;;
1870 if test "x$ac_old_val" != "x$ac_new_val"; then
1871 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1872 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1873 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1874 echo "$as_me: former value: $ac_old_val" >&2;}
1875 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1876 echo "$as_me: current value: $ac_new_val" >&2;}
1877 ac_cache_corrupted=:
1880 # Pass precious variables to config.status.
1881 if test "$ac_new_set" = set; then
1883 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1884 *) ac_arg=$ac_var=$ac_new_val ;;
1886 case " $ac_configure_args " in
1887 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1888 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1892 if $ac_cache_corrupted; then
1893 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1894 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1895 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1896 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1897 { (exit 1); exit 1; }; }
1925 ac_cpp='$CPP $CPPFLAGS'
1926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1932 cat >>confdefs.h <<\_ACEOF
1933 #define LLVM_VERSION_MAJOR 3
1937 cat >>confdefs.h <<\_ACEOF
1938 #define LLVM_VERSION_MINOR 4
1942 LLVM_COPYRIGHT="Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign."
1951 for ac_dir in autoconf "$srcdir"/autoconf; do
1952 if test -f "$ac_dir/install-sh"; then
1954 ac_install_sh="$ac_aux_dir/install-sh -c"
1956 elif test -f "$ac_dir/install.sh"; then
1958 ac_install_sh="$ac_aux_dir/install.sh -c"
1960 elif test -f "$ac_dir/shtool"; then
1962 ac_install_sh="$ac_aux_dir/shtool install -c"
1966 if test -z "$ac_aux_dir"; then
1967 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1968 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1969 { (exit 1); exit 1; }; }
1972 # These three variables are undocumented and unsupported,
1973 # and are intended to be withdrawn in a future Autoconf release.
1974 # They can cause serious problems if a builder's source tree is in a directory
1975 # whose full name contains unusual characters.
1976 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1977 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1978 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1982 if test ${srcdir} != "." ; then
1983 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1984 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1985 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1986 { (exit 1); exit 1; }; }
1994 ac_cpp='$CPP $CPPFLAGS'
1995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1998 if test -n "$ac_tool_prefix"; then
1999 for ac_prog in clang llvm-gcc gcc
2001 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2002 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2005 if test "${ac_cv_prog_CC+set}" = set; then
2006 echo $ECHO_N "(cached) $ECHO_C" >&6
2008 if test -n "$CC"; then
2009 ac_cv_prog_CC="$CC" # Let the user override the test.
2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2015 test -z "$as_dir" && as_dir=.
2016 for ac_exec_ext in '' $ac_executable_extensions; do
2017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2018 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2029 if test -n "$CC"; then
2030 { echo "$as_me:$LINENO: result: $CC" >&5
2031 echo "${ECHO_T}$CC" >&6; }
2033 { echo "$as_me:$LINENO: result: no" >&5
2034 echo "${ECHO_T}no" >&6; }
2038 test -n "$CC" && break
2041 if test -z "$CC"; then
2043 for ac_prog in clang llvm-gcc gcc
2045 # Extract the first word of "$ac_prog", so it can be a program name with args.
2046 set dummy $ac_prog; ac_word=$2
2047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2049 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2050 echo $ECHO_N "(cached) $ECHO_C" >&6
2052 if test -n "$ac_ct_CC"; then
2053 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2059 test -z "$as_dir" && as_dir=.
2060 for ac_exec_ext in '' $ac_executable_extensions; do
2061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2062 ac_cv_prog_ac_ct_CC="$ac_prog"
2063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2072 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2073 if test -n "$ac_ct_CC"; then
2074 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2075 echo "${ECHO_T}$ac_ct_CC" >&6; }
2077 { echo "$as_me:$LINENO: result: no" >&5
2078 echo "${ECHO_T}no" >&6; }
2082 test -n "$ac_ct_CC" && break
2085 if test "x$ac_ct_CC" = x; then
2088 case $cross_compiling:$ac_tool_warned in
2090 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2091 whose name does not start with the host triplet. If you think this
2092 configuration is useful to you, please write to autoconf@gnu.org." >&5
2093 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2094 whose name does not start with the host triplet. If you think this
2095 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2096 ac_tool_warned=yes ;;
2103 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2104 See \`config.log' for more details." >&5
2105 echo "$as_me: error: no acceptable C compiler found in \$PATH
2106 See \`config.log' for more details." >&2;}
2107 { (exit 1); exit 1; }; }
2109 # Provide some information about the compiler.
2110 echo "$as_me:$LINENO: checking for C compiler version" >&5
2111 ac_compiler=`set X $ac_compile; echo $2`
2112 { (ac_try="$ac_compiler --version >&5"
2114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2115 *) ac_try_echo=$ac_try;;
2117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2118 (eval "$ac_compiler --version >&5") 2>&5
2120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121 (exit $ac_status); }
2122 { (ac_try="$ac_compiler -v >&5"
2124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2125 *) ac_try_echo=$ac_try;;
2127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2128 (eval "$ac_compiler -v >&5") 2>&5
2130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131 (exit $ac_status); }
2132 { (ac_try="$ac_compiler -V >&5"
2134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2135 *) ac_try_echo=$ac_try;;
2137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2138 (eval "$ac_compiler -V >&5") 2>&5
2140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141 (exit $ac_status); }
2143 cat >conftest.$ac_ext <<_ACEOF
2146 cat confdefs.h >>conftest.$ac_ext
2147 cat >>conftest.$ac_ext <<_ACEOF
2148 /* end confdefs.h. */
2158 ac_clean_files_save=$ac_clean_files
2159 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2160 # Try to create an executable without -o first, disregard a.out.
2161 # It will help us diagnose broken compilers, and finding out an intuition
2163 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2164 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2165 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2167 # List of possible output files, starting from the most likely.
2168 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2169 # only as a last resort. b.out is created by i960 compilers.
2170 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2172 # The IRIX 6 linker writes into existing files which may not be
2173 # executable, retaining their permissions. Remove them first so a
2174 # subsequent execution test works.
2176 for ac_file in $ac_files
2179 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2180 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2185 if { (ac_try="$ac_link_default"
2187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2188 *) ac_try_echo=$ac_try;;
2190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2191 (eval "$ac_link_default") 2>&5
2193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194 (exit $ac_status); }; then
2195 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2196 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2197 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2198 # so that the user can short-circuit this test for compilers unknown to
2200 for ac_file in $ac_files
2202 test -f "$ac_file" || continue
2204 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2207 # We found the default executable, but exeext='' is most
2211 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2213 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2215 # We set ac_cv_exeext here because the later test for it is not
2216 # safe: cross compilers may not add the suffix if given an `-o'
2217 # argument, so we may need to know it at that point already.
2218 # Even if this section looks crufty: it has the advantage of
2225 test "$ac_cv_exeext" = no && ac_cv_exeext=
2228 echo "$as_me: failed program was:" >&5
2229 sed 's/^/| /' conftest.$ac_ext >&5
2231 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2232 See \`config.log' for more details." >&5
2233 echo "$as_me: error: C compiler cannot create executables
2234 See \`config.log' for more details." >&2;}
2235 { (exit 77); exit 77; }; }
2238 ac_exeext=$ac_cv_exeext
2239 { echo "$as_me:$LINENO: result: $ac_file" >&5
2240 echo "${ECHO_T}$ac_file" >&6; }
2242 # Check that the compiler produces executables we can run. If not, either
2243 # the compiler is broken, or we cross compile.
2244 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2245 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2246 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2247 # If not cross compiling, check that we can run a simple program.
2248 if test "$cross_compiling" != yes; then
2249 if { ac_try='./$ac_file'
2250 { (case "(($ac_try" in
2251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2252 *) ac_try_echo=$ac_try;;
2254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2255 (eval "$ac_try") 2>&5
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; }; then
2261 if test "$cross_compiling" = maybe; then
2264 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2265 If you meant to cross compile, use \`--host'.
2266 See \`config.log' for more details." >&5
2267 echo "$as_me: error: cannot run C compiled programs.
2268 If you meant to cross compile, use \`--host'.
2269 See \`config.log' for more details." >&2;}
2270 { (exit 1); exit 1; }; }
2274 { echo "$as_me:$LINENO: result: yes" >&5
2275 echo "${ECHO_T}yes" >&6; }
2277 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2278 ac_clean_files=$ac_clean_files_save
2279 # Check that the compiler produces executables we can run. If not, either
2280 # the compiler is broken, or we cross compile.
2281 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2282 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2283 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2284 echo "${ECHO_T}$cross_compiling" >&6; }
2286 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2287 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2288 if { (ac_try="$ac_link"
2290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2291 *) ac_try_echo=$ac_try;;
2293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2294 (eval "$ac_link") 2>&5
2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297 (exit $ac_status); }; then
2298 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2299 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2300 # work properly (i.e., refer to `conftest.exe'), while it won't with
2302 for ac_file in conftest.exe conftest conftest.*; do
2303 test -f "$ac_file" || continue
2305 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2306 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2312 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2313 See \`config.log' for more details." >&5
2314 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2315 See \`config.log' for more details." >&2;}
2316 { (exit 1); exit 1; }; }
2319 rm -f conftest$ac_cv_exeext
2320 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2321 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2323 rm -f conftest.$ac_ext
2324 EXEEXT=$ac_cv_exeext
2326 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2327 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2328 if test "${ac_cv_objext+set}" = set; then
2329 echo $ECHO_N "(cached) $ECHO_C" >&6
2331 cat >conftest.$ac_ext <<_ACEOF
2334 cat confdefs.h >>conftest.$ac_ext
2335 cat >>conftest.$ac_ext <<_ACEOF
2336 /* end confdefs.h. */
2346 rm -f conftest.o conftest.obj
2347 if { (ac_try="$ac_compile"
2349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2350 *) ac_try_echo=$ac_try;;
2352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2353 (eval "$ac_compile") 2>&5
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); }; then
2357 for ac_file in conftest.o conftest.obj conftest.*; do
2358 test -f "$ac_file" || continue;
2360 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2361 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2366 echo "$as_me: failed program was:" >&5
2367 sed 's/^/| /' conftest.$ac_ext >&5
2369 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2370 See \`config.log' for more details." >&5
2371 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2372 See \`config.log' for more details." >&2;}
2373 { (exit 1); exit 1; }; }
2376 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2378 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2379 echo "${ECHO_T}$ac_cv_objext" >&6; }
2380 OBJEXT=$ac_cv_objext
2382 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2383 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2384 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2385 echo $ECHO_N "(cached) $ECHO_C" >&6
2387 cat >conftest.$ac_ext <<_ACEOF
2390 cat confdefs.h >>conftest.$ac_ext
2391 cat >>conftest.$ac_ext <<_ACEOF
2392 /* end confdefs.h. */
2405 rm -f conftest.$ac_objext
2406 if { (ac_try="$ac_compile"
2408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2409 *) ac_try_echo=$ac_try;;
2411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2412 (eval "$ac_compile") 2>conftest.er1
2414 grep -v '^ *+' conftest.er1 >conftest.err
2416 cat conftest.err >&5
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); } &&
2419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2420 { (case "(($ac_try" in
2421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2422 *) ac_try_echo=$ac_try;;
2424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2425 (eval "$ac_try") 2>&5
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); }; } &&
2429 { ac_try='test -s conftest.$ac_objext'
2430 { (case "(($ac_try" in
2431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2432 *) ac_try_echo=$ac_try;;
2434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2435 (eval "$ac_try") 2>&5
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); }; }; then
2441 echo "$as_me: failed program was:" >&5
2442 sed 's/^/| /' conftest.$ac_ext >&5
2447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2448 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2451 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2452 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2453 GCC=`test $ac_compiler_gnu = yes && echo yes`
2454 ac_test_CFLAGS=${CFLAGS+set}
2455 ac_save_CFLAGS=$CFLAGS
2456 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2457 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2458 if test "${ac_cv_prog_cc_g+set}" = set; then
2459 echo $ECHO_N "(cached) $ECHO_C" >&6
2461 ac_save_c_werror_flag=$ac_c_werror_flag
2462 ac_c_werror_flag=yes
2465 cat >conftest.$ac_ext <<_ACEOF
2468 cat confdefs.h >>conftest.$ac_ext
2469 cat >>conftest.$ac_ext <<_ACEOF
2470 /* end confdefs.h. */
2480 rm -f conftest.$ac_objext
2481 if { (ac_try="$ac_compile"
2483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2484 *) ac_try_echo=$ac_try;;
2486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2487 (eval "$ac_compile") 2>conftest.er1
2489 grep -v '^ *+' conftest.er1 >conftest.err
2491 cat conftest.err >&5
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); } &&
2494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2495 { (case "(($ac_try" in
2496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2497 *) ac_try_echo=$ac_try;;
2499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2500 (eval "$ac_try") 2>&5
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); }; } &&
2504 { ac_try='test -s conftest.$ac_objext'
2505 { (case "(($ac_try" in
2506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2507 *) ac_try_echo=$ac_try;;
2509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2510 (eval "$ac_try") 2>&5
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }; }; then
2516 echo "$as_me: failed program was:" >&5
2517 sed 's/^/| /' conftest.$ac_ext >&5
2520 cat >conftest.$ac_ext <<_ACEOF
2523 cat confdefs.h >>conftest.$ac_ext
2524 cat >>conftest.$ac_ext <<_ACEOF
2525 /* end confdefs.h. */
2535 rm -f conftest.$ac_objext
2536 if { (ac_try="$ac_compile"
2538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2539 *) ac_try_echo=$ac_try;;
2541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2542 (eval "$ac_compile") 2>conftest.er1
2544 grep -v '^ *+' conftest.er1 >conftest.err
2546 cat conftest.err >&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); } &&
2549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2550 { (case "(($ac_try" in
2551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2552 *) ac_try_echo=$ac_try;;
2554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2555 (eval "$ac_try") 2>&5
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); }; } &&
2559 { ac_try='test -s conftest.$ac_objext'
2560 { (case "(($ac_try" in
2561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562 *) ac_try_echo=$ac_try;;
2564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2565 (eval "$ac_try") 2>&5
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }; }; then
2571 echo "$as_me: failed program was:" >&5
2572 sed 's/^/| /' conftest.$ac_ext >&5
2574 ac_c_werror_flag=$ac_save_c_werror_flag
2576 cat >conftest.$ac_ext <<_ACEOF
2579 cat confdefs.h >>conftest.$ac_ext
2580 cat >>conftest.$ac_ext <<_ACEOF
2581 /* end confdefs.h. */
2591 rm -f conftest.$ac_objext
2592 if { (ac_try="$ac_compile"
2594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2595 *) ac_try_echo=$ac_try;;
2597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2598 (eval "$ac_compile") 2>conftest.er1
2600 grep -v '^ *+' conftest.er1 >conftest.err
2602 cat conftest.err >&5
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); } &&
2605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2606 { (case "(($ac_try" in
2607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2608 *) ac_try_echo=$ac_try;;
2610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2611 (eval "$ac_try") 2>&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; } &&
2615 { ac_try='test -s conftest.$ac_objext'
2616 { (case "(($ac_try" in
2617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618 *) ac_try_echo=$ac_try;;
2620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2621 (eval "$ac_try") 2>&5
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); }; }; then
2627 echo "$as_me: failed program was:" >&5
2628 sed 's/^/| /' conftest.$ac_ext >&5
2633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2640 ac_c_werror_flag=$ac_save_c_werror_flag
2642 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2643 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2644 if test "$ac_test_CFLAGS" = set; then
2645 CFLAGS=$ac_save_CFLAGS
2646 elif test $ac_cv_prog_cc_g = yes; then
2647 if test "$GCC" = yes; then
2653 if test "$GCC" = yes; then
2659 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2660 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2661 if test "${ac_cv_prog_cc_c89+set}" = set; then
2662 echo $ECHO_N "(cached) $ECHO_C" >&6
2664 ac_cv_prog_cc_c89=no
2666 cat >conftest.$ac_ext <<_ACEOF
2669 cat confdefs.h >>conftest.$ac_ext
2670 cat >>conftest.$ac_ext <<_ACEOF
2671 /* end confdefs.h. */
2674 #include <sys/types.h>
2675 #include <sys/stat.h>
2676 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2677 struct buf { int x; };
2678 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2679 static char *e (p, i)
2685 static char *f (char * (*g) (char **, int), char **p, ...)
2690 s = g (p, va_arg (v,int));
2695 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2696 function prototypes and stuff, but not '\xHH' hex character constants.
2697 These don't provoke an error unfortunately, instead are silently treated
2698 as 'x'. The following induces an error, until -std is added to get
2699 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2700 array size at least. It's necessary to write '\x00'==0 to get something
2701 that's true only with -std. */
2702 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2704 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2705 inside strings and character constants. */
2707 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2709 int test (int i, double x);
2710 struct s1 {int (*f) (int a);};
2711 struct s2 {int (*f) (double a);};
2712 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2718 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2723 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2724 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2726 CC="$ac_save_CC $ac_arg"
2727 rm -f conftest.$ac_objext
2728 if { (ac_try="$ac_compile"
2730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731 *) ac_try_echo=$ac_try;;
2733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734 (eval "$ac_compile") 2>conftest.er1
2736 grep -v '^ *+' conftest.er1 >conftest.err
2738 cat conftest.err >&5
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); } &&
2741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2742 { (case "(($ac_try" in
2743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744 *) ac_try_echo=$ac_try;;
2746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2747 (eval "$ac_try") 2>&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }; } &&
2751 { ac_try='test -s conftest.$ac_objext'
2752 { (case "(($ac_try" in
2753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754 *) ac_try_echo=$ac_try;;
2756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2757 (eval "$ac_try") 2>&5
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }; }; then
2761 ac_cv_prog_cc_c89=$ac_arg
2763 echo "$as_me: failed program was:" >&5
2764 sed 's/^/| /' conftest.$ac_ext >&5
2769 rm -f core conftest.err conftest.$ac_objext
2770 test "x$ac_cv_prog_cc_c89" != "xno" && break
2772 rm -f conftest.$ac_ext
2777 case "x$ac_cv_prog_cc_c89" in
2779 { echo "$as_me:$LINENO: result: none needed" >&5
2780 echo "${ECHO_T}none needed" >&6; } ;;
2782 { echo "$as_me:$LINENO: result: unsupported" >&5
2783 echo "${ECHO_T}unsupported" >&6; } ;;
2785 CC="$CC $ac_cv_prog_cc_c89"
2786 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2787 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2792 ac_cpp='$CPP $CPPFLAGS'
2793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2798 ac_cpp='$CXXCPP $CPPFLAGS'
2799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2802 if test -z "$CXX"; then
2803 if test -n "$CCC"; then
2806 if test -n "$ac_tool_prefix"; then
2807 for ac_prog in clang++ llvm-g++ g++
2809 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2810 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2813 if test "${ac_cv_prog_CXX+set}" = set; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2816 if test -n "$CXX"; then
2817 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 test -z "$as_dir" && as_dir=.
2824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2826 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 if test -n "$CXX"; then
2838 { echo "$as_me:$LINENO: result: $CXX" >&5
2839 echo "${ECHO_T}$CXX" >&6; }
2841 { echo "$as_me:$LINENO: result: no" >&5
2842 echo "${ECHO_T}no" >&6; }
2846 test -n "$CXX" && break
2849 if test -z "$CXX"; then
2851 for ac_prog in clang++ llvm-g++ g++
2853 # Extract the first word of "$ac_prog", so it can be a program name with args.
2854 set dummy $ac_prog; ac_word=$2
2855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2857 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2858 echo $ECHO_N "(cached) $ECHO_C" >&6
2860 if test -n "$ac_ct_CXX"; then
2861 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867 test -z "$as_dir" && as_dir=.
2868 for ac_exec_ext in '' $ac_executable_extensions; do
2869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2870 ac_cv_prog_ac_ct_CXX="$ac_prog"
2871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2880 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2881 if test -n "$ac_ct_CXX"; then
2882 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2883 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2885 { echo "$as_me:$LINENO: result: no" >&5
2886 echo "${ECHO_T}no" >&6; }
2890 test -n "$ac_ct_CXX" && break
2893 if test "x$ac_ct_CXX" = x; then
2896 case $cross_compiling:$ac_tool_warned in
2898 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2899 whose name does not start with the host triplet. If you think this
2900 configuration is useful to you, please write to autoconf@gnu.org." >&5
2901 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2902 whose name does not start with the host triplet. If you think this
2903 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2904 ac_tool_warned=yes ;;
2912 # Provide some information about the compiler.
2913 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2914 ac_compiler=`set X $ac_compile; echo $2`
2915 { (ac_try="$ac_compiler --version >&5"
2917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2918 *) ac_try_echo=$ac_try;;
2920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2921 (eval "$ac_compiler --version >&5") 2>&5
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); }
2925 { (ac_try="$ac_compiler -v >&5"
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2931 (eval "$ac_compiler -v >&5") 2>&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); }
2935 { (ac_try="$ac_compiler -V >&5"
2937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938 *) ac_try_echo=$ac_try;;
2940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2941 (eval "$ac_compiler -V >&5") 2>&5
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); }
2946 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2947 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2948 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2949 echo $ECHO_N "(cached) $ECHO_C" >&6
2951 cat >conftest.$ac_ext <<_ACEOF
2954 cat confdefs.h >>conftest.$ac_ext
2955 cat >>conftest.$ac_ext <<_ACEOF
2956 /* end confdefs.h. */
2969 rm -f conftest.$ac_objext
2970 if { (ac_try="$ac_compile"
2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973 *) ac_try_echo=$ac_try;;
2975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2976 (eval "$ac_compile") 2>conftest.er1
2978 grep -v '^ *+' conftest.er1 >conftest.err
2980 cat conftest.err >&5
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); } &&
2983 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2984 { (case "(($ac_try" in
2985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986 *) ac_try_echo=$ac_try;;
2988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989 (eval "$ac_try") 2>&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); }; } &&
2993 { ac_try='test -s conftest.$ac_objext'
2994 { (case "(($ac_try" in
2995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996 *) ac_try_echo=$ac_try;;
2998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2999 (eval "$ac_try") 2>&5
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); }; }; then
3005 echo "$as_me: failed program was:" >&5
3006 sed 's/^/| /' conftest.$ac_ext >&5
3011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3012 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3015 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3016 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3017 GXX=`test $ac_compiler_gnu = yes && echo yes`
3018 ac_test_CXXFLAGS=${CXXFLAGS+set}
3019 ac_save_CXXFLAGS=$CXXFLAGS
3020 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3021 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3022 if test "${ac_cv_prog_cxx_g+set}" = set; then
3023 echo $ECHO_N "(cached) $ECHO_C" >&6
3025 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3026 ac_cxx_werror_flag=yes
3029 cat >conftest.$ac_ext <<_ACEOF
3032 cat confdefs.h >>conftest.$ac_ext
3033 cat >>conftest.$ac_ext <<_ACEOF
3034 /* end confdefs.h. */
3044 rm -f conftest.$ac_objext
3045 if { (ac_try="$ac_compile"
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051 (eval "$ac_compile") 2>conftest.er1
3053 grep -v '^ *+' conftest.er1 >conftest.err
3055 cat conftest.err >&5
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); } &&
3058 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3059 { (case "(($ac_try" in
3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061 *) ac_try_echo=$ac_try;;
3063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064 (eval "$ac_try") 2>&5
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); }; } &&
3068 { ac_try='test -s conftest.$ac_objext'
3069 { (case "(($ac_try" in
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3074 (eval "$ac_try") 2>&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }; }; then
3078 ac_cv_prog_cxx_g=yes
3080 echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3084 cat >conftest.$ac_ext <<_ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h. */
3099 rm -f conftest.$ac_objext
3100 if { (ac_try="$ac_compile"
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106 (eval "$ac_compile") 2>conftest.er1
3108 grep -v '^ *+' conftest.er1 >conftest.err
3110 cat conftest.err >&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); } &&
3113 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3114 { (case "(($ac_try" in
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119 (eval "$ac_try") 2>&5
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); }; } &&
3123 { ac_try='test -s conftest.$ac_objext'
3124 { (case "(($ac_try" in
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129 (eval "$ac_try") 2>&5
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); }; }; then
3135 echo "$as_me: failed program was:" >&5
3136 sed 's/^/| /' conftest.$ac_ext >&5
3138 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3140 cat >conftest.$ac_ext <<_ACEOF
3143 cat confdefs.h >>conftest.$ac_ext
3144 cat >>conftest.$ac_ext <<_ACEOF
3145 /* end confdefs.h. */
3155 rm -f conftest.$ac_objext
3156 if { (ac_try="$ac_compile"
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162 (eval "$ac_compile") 2>conftest.er1
3164 grep -v '^ *+' conftest.er1 >conftest.err
3166 cat conftest.err >&5
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); } &&
3169 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3170 { (case "(($ac_try" in
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175 (eval "$ac_try") 2>&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); }; } &&
3179 { ac_try='test -s conftest.$ac_objext'
3180 { (case "(($ac_try" in
3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182 *) ac_try_echo=$ac_try;;
3184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185 (eval "$ac_try") 2>&5
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); }; }; then
3189 ac_cv_prog_cxx_g=yes
3191 echo "$as_me: failed program was:" >&5
3192 sed 's/^/| /' conftest.$ac_ext >&5
3197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3206 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3207 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3208 if test "$ac_test_CXXFLAGS" = set; then
3209 CXXFLAGS=$ac_save_CXXFLAGS
3210 elif test $ac_cv_prog_cxx_g = yes; then
3211 if test "$GXX" = yes; then
3217 if test "$GXX" = yes; then
3224 ac_cpp='$CPP $CPPFLAGS'
3225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3230 ac_cpp='$CPP $CPPFLAGS'
3231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3234 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3235 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3236 # On Suns, sometimes $CPP names a directory.
3237 if test -n "$CPP" && test -d "$CPP"; then
3240 if test -z "$CPP"; then
3241 if test "${ac_cv_prog_CPP+set}" = set; then
3242 echo $ECHO_N "(cached) $ECHO_C" >&6
3244 # Double quotes because CPP needs to be expanded
3245 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3248 for ac_c_preproc_warn_flag in '' yes
3250 # Use a header file that comes with gcc, so configuring glibc
3251 # with a fresh cross-compiler works.
3252 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3253 # <limits.h> exists even on freestanding compilers.
3254 # On the NeXT, cc -E runs the code through the compiler's parser,
3255 # not just through cpp. "Syntax error" is here to catch this case.
3256 cat >conftest.$ac_ext <<_ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h. */
3263 # include <limits.h>
3265 # include <assert.h>
3269 if { (ac_try="$ac_cpp conftest.$ac_ext"
3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3275 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3277 grep -v '^ *+' conftest.er1 >conftest.err
3279 cat conftest.err >&5
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); } >/dev/null; then
3282 if test -s conftest.err; then
3283 ac_cpp_err=$ac_c_preproc_warn_flag
3284 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3291 if test -z "$ac_cpp_err"; then
3294 echo "$as_me: failed program was:" >&5
3295 sed 's/^/| /' conftest.$ac_ext >&5
3297 # Broken: fails on valid input.
3301 rm -f conftest.err conftest.$ac_ext
3303 # OK, works on sane cases. Now check whether nonexistent headers
3304 # can be detected and how.
3305 cat >conftest.$ac_ext <<_ACEOF
3308 cat confdefs.h >>conftest.$ac_ext
3309 cat >>conftest.$ac_ext <<_ACEOF
3310 /* end confdefs.h. */
3311 #include <ac_nonexistent.h>
3313 if { (ac_try="$ac_cpp conftest.$ac_ext"
3315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316 *) ac_try_echo=$ac_try;;
3318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3319 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3321 grep -v '^ *+' conftest.er1 >conftest.err
3323 cat conftest.err >&5
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); } >/dev/null; then
3326 if test -s conftest.err; then
3327 ac_cpp_err=$ac_c_preproc_warn_flag
3328 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3335 if test -z "$ac_cpp_err"; then
3336 # Broken: success on invalid input.
3339 echo "$as_me: failed program was:" >&5
3340 sed 's/^/| /' conftest.$ac_ext >&5
3342 # Passes both tests.
3347 rm -f conftest.err conftest.$ac_ext
3350 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3351 rm -f conftest.err conftest.$ac_ext
3352 if $ac_preproc_ok; then
3364 { echo "$as_me:$LINENO: result: $CPP" >&5
3365 echo "${ECHO_T}$CPP" >&6; }
3367 for ac_c_preproc_warn_flag in '' yes
3369 # Use a header file that comes with gcc, so configuring glibc
3370 # with a fresh cross-compiler works.
3371 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3372 # <limits.h> exists even on freestanding compilers.
3373 # On the NeXT, cc -E runs the code through the compiler's parser,
3374 # not just through cpp. "Syntax error" is here to catch this case.
3375 cat >conftest.$ac_ext <<_ACEOF
3378 cat confdefs.h >>conftest.$ac_ext
3379 cat >>conftest.$ac_ext <<_ACEOF
3380 /* end confdefs.h. */
3382 # include <limits.h>
3384 # include <assert.h>
3388 if { (ac_try="$ac_cpp conftest.$ac_ext"
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3394 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3396 grep -v '^ *+' conftest.er1 >conftest.err
3398 cat conftest.err >&5
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); } >/dev/null; then
3401 if test -s conftest.err; then
3402 ac_cpp_err=$ac_c_preproc_warn_flag
3403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3410 if test -z "$ac_cpp_err"; then
3413 echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3416 # Broken: fails on valid input.
3420 rm -f conftest.err conftest.$ac_ext
3422 # OK, works on sane cases. Now check whether nonexistent headers
3423 # can be detected and how.
3424 cat >conftest.$ac_ext <<_ACEOF
3427 cat confdefs.h >>conftest.$ac_ext
3428 cat >>conftest.$ac_ext <<_ACEOF
3429 /* end confdefs.h. */
3430 #include <ac_nonexistent.h>
3432 if { (ac_try="$ac_cpp conftest.$ac_ext"
3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435 *) ac_try_echo=$ac_try;;
3437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3440 grep -v '^ *+' conftest.er1 >conftest.err
3442 cat conftest.err >&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); } >/dev/null; then
3445 if test -s conftest.err; then
3446 ac_cpp_err=$ac_c_preproc_warn_flag
3447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3454 if test -z "$ac_cpp_err"; then
3455 # Broken: success on invalid input.
3458 echo "$as_me: failed program was:" >&5
3459 sed 's/^/| /' conftest.$ac_ext >&5
3461 # Passes both tests.
3466 rm -f conftest.err conftest.$ac_ext
3469 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3470 rm -f conftest.err conftest.$ac_ext
3471 if $ac_preproc_ok; then
3474 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3475 See \`config.log' for more details." >&5
3476 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3477 See \`config.log' for more details." >&2;}
3478 { (exit 1); exit 1; }; }
3482 ac_cpp='$CPP $CPPFLAGS'
3483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3488 if test "$CXX" = "clang++" ; then
3489 { echo "$as_me:$LINENO: checking whether clang works" >&5
3490 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3492 ac_cpp='$CXXCPP $CPPFLAGS'
3493 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3494 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3495 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3498 cat >conftest.$ac_ext <<_ACEOF
3501 cat confdefs.h >>conftest.$ac_ext
3502 cat >>conftest.$ac_ext <<_ACEOF
3503 /* end confdefs.h. */
3505 #if __has_include (<cxxabi.h>)
3508 #if __has_include (<unwind.h>)
3520 rm -f conftest.$ac_objext
3521 if { (ac_try="$ac_compile"
3523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524 *) ac_try_echo=$ac_try;;
3526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3527 (eval "$ac_compile") 2>conftest.er1
3529 grep -v '^ *+' conftest.er1 >conftest.err
3531 cat conftest.err >&5
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); } &&
3534 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3535 { (case "(($ac_try" in
3536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537 *) ac_try_echo=$ac_try;;
3539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3540 (eval "$ac_try") 2>&5
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); }; } &&
3544 { ac_try='test -s conftest.$ac_objext'
3545 { (case "(($ac_try" in
3546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3547 *) ac_try_echo=$ac_try;;
3549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3550 (eval "$ac_try") 2>&5
3552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553 (exit $ac_status); }; }; then
3555 { echo "$as_me:$LINENO: result: yes" >&5
3556 echo "${ECHO_T}yes" >&6; }
3559 echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3563 { echo "$as_me:$LINENO: result: no" >&5
3564 echo "${ECHO_T}no" >&6; }
3565 { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&5
3566 echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;}
3567 { (exit 1); exit 1; }; }
3571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3573 ac_cpp='$CPP $CPPFLAGS'
3574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3582 if test -d ${srcdir}/projects/llvm-gcc ; then
3583 subdirs="$subdirs projects/llvm-gcc"
3587 if test -d ${srcdir}/projects/test-suite ; then
3588 subdirs="$subdirs projects/test-suite"
3592 if test -d ${srcdir}/projects/llvm-test ; then
3593 subdirs="$subdirs projects/llvm-test"
3597 if test -d ${srcdir}/projects/poolalloc ; then
3598 subdirs="$subdirs projects/poolalloc"
3602 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3603 subdirs="$subdirs projects/llvm-poolalloc"
3607 for i in `ls ${srcdir}/projects`
3609 if test -d ${srcdir}/projects/${i} ; then
3611 sample) subdirs="$subdirs projects/sample"
3613 privbracket) subdirs="$subdirs projects/privbracket"
3615 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3617 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3619 llvm-java) subdirs="$subdirs projects/llvm-java"
3621 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3623 safecode) subdirs="$subdirs projects/safecode"
3625 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3634 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3635 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3641 # Check whether --enable-polly was given.
3642 if test "${enable_polly+set}" = set; then
3643 enableval=$enable_polly;
3648 case "$enableval" in
3653 default) ENABLE_POLLY=1
3655 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3656 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3657 { (exit 1); exit 1; }; } ;;
3661 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3664 subdirs="$subdirs tools/polly"
3669 # Make sure we can run config.sub.
3670 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3671 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3672 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3673 { (exit 1); exit 1; }; }
3675 { echo "$as_me:$LINENO: checking build system type" >&5
3676 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3677 if test "${ac_cv_build+set}" = set; then
3678 echo $ECHO_N "(cached) $ECHO_C" >&6
3680 ac_build_alias=$build_alias
3681 test "x$ac_build_alias" = x &&
3682 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3683 test "x$ac_build_alias" = x &&
3684 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3685 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3686 { (exit 1); exit 1; }; }
3687 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3688 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3689 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3690 { (exit 1); exit 1; }; }
3693 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3694 echo "${ECHO_T}$ac_cv_build" >&6; }
3695 case $ac_cv_build in
3697 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3698 echo "$as_me: error: invalid value of canonical build" >&2;}
3699 { (exit 1); exit 1; }; };;
3702 ac_save_IFS=$IFS; IFS='-'
3708 # Remember, the first character of IFS is used to create $*,
3709 # except with old shells:
3712 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3715 { echo "$as_me:$LINENO: checking host system type" >&5
3716 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3717 if test "${ac_cv_host+set}" = set; then
3718 echo $ECHO_N "(cached) $ECHO_C" >&6
3720 if test "x$host_alias" = x; then
3721 ac_cv_host=$ac_cv_build
3723 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3724 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3725 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3726 { (exit 1); exit 1; }; }
3730 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3731 echo "${ECHO_T}$ac_cv_host" >&6; }
3734 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3735 echo "$as_me: error: invalid value of canonical host" >&2;}
3736 { (exit 1); exit 1; }; };;
3739 ac_save_IFS=$IFS; IFS='-'
3745 # Remember, the first character of IFS is used to create $*,
3746 # except with old shells:
3749 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3752 { echo "$as_me:$LINENO: checking target system type" >&5
3753 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3754 if test "${ac_cv_target+set}" = set; then
3755 echo $ECHO_N "(cached) $ECHO_C" >&6
3757 if test "x$target_alias" = x; then
3758 ac_cv_target=$ac_cv_host
3760 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3761 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3762 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3763 { (exit 1); exit 1; }; }
3767 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3768 echo "${ECHO_T}$ac_cv_target" >&6; }
3769 case $ac_cv_target in
3771 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3772 echo "$as_me: error: invalid value of canonical target" >&2;}
3773 { (exit 1); exit 1; }; };;
3775 target=$ac_cv_target
3776 ac_save_IFS=$IFS; IFS='-'
3782 # Remember, the first character of IFS is used to create $*,
3783 # except with old shells:
3786 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3789 # The aliases save the names the user supplied, while $host etc.
3790 # will get canonicalized.
3791 test -n "$target_alias" &&
3792 test "$program_prefix$program_suffix$program_transform_name" = \
3794 program_prefix=${target_alias}-
3796 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3797 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3798 if test "${llvm_cv_os_type+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
3803 llvm_cv_link_all_option="-Wl,--whole-archive"
3804 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3805 llvm_cv_os_type="AIX"
3806 llvm_cv_platform_type="Unix" ;;
3808 llvm_cv_link_all_option="-Wl,--whole-archive"
3809 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3810 llvm_cv_os_type="IRIX"
3811 llvm_cv_platform_type="Unix" ;;
3813 llvm_cv_link_all_option="-Wl,--whole-archive"
3814 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3815 llvm_cv_os_type="Cygwin"
3816 llvm_cv_platform_type="Unix" ;;
3818 llvm_cv_link_all_option="-Wl,-all_load"
3819 llvm_cv_no_link_all_option="-Wl,-noall_load"
3820 llvm_cv_os_type="Darwin"
3821 llvm_cv_platform_type="Unix" ;;
3823 llvm_cv_link_all_option="-Wl,-all_load"
3824 llvm_cv_no_link_all_option="-Wl,-noall_load"
3825 llvm_cv_os_type="Minix"
3826 llvm_cv_platform_type="Unix" ;;
3827 *-*-freebsd* | *-*-kfreebsd-gnu)
3828 llvm_cv_link_all_option="-Wl,--whole-archive"
3829 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3830 llvm_cv_os_type="FreeBSD"
3831 llvm_cv_platform_type="Unix" ;;
3833 llvm_cv_link_all_option="-Wl,--whole-archive"
3834 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3835 llvm_cv_os_type="OpenBSD"
3836 llvm_cv_platform_type="Unix" ;;
3838 llvm_cv_link_all_option="-Wl,--whole-archive"
3839 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3840 llvm_cv_os_type="NetBSD"
3841 llvm_cv_platform_type="Unix" ;;
3843 llvm_cv_link_all_option="-Wl,--whole-archive"
3844 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3845 llvm_cv_os_type="DragonFly"
3846 llvm_cv_platform_type="Unix" ;;
3848 llvm_cv_link_all_option="-Wl,--whole-archive"
3849 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3850 llvm_cv_os_type="HP-UX"
3851 llvm_cv_platform_type="Unix" ;;
3853 llvm_cv_link_all_option="-Wl,--whole-archive"
3854 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3855 llvm_cv_os_type="Interix"
3856 llvm_cv_platform_type="Unix" ;;
3858 llvm_cv_link_all_option="-Wl,--whole-archive"
3859 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3860 llvm_cv_os_type="Linux"
3861 llvm_cv_platform_type="Unix" ;;
3863 llvm_cv_link_all_option="-Wl,--whole-archive"
3864 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3865 llvm_cv_os_type="GNU"
3866 llvm_cv_platform_type="Unix" ;;
3868 llvm_cv_link_all_option="-Wl,-z,allextract"
3869 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3870 llvm_cv_os_type="SunOS"
3871 llvm_cv_platform_type="Unix" ;;
3873 llvm_cv_link_all_option="-Wl,-z,allextract"
3874 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3875 llvm_cv_os_type="AuroraUX"
3876 llvm_cv_platform_type="Unix" ;;
3878 llvm_cv_link_all_option="-Wl,--whole-archive"
3879 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3880 llvm_cv_os_type="Win32"
3881 llvm_cv_platform_type="Win32" ;;
3883 llvm_cv_link_all_option="-Wl,--whole-archive"
3884 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3885 llvm_cv_os_type="MingW"
3886 llvm_cv_platform_type="Win32" ;;
3888 llvm_cv_link_all_option="-Wl,--whole-archive"
3889 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3890 llvm_cv_os_type="Haiku"
3891 llvm_cv_platform_type="Unix" ;;
3893 llvm_cv_link_all_option="-Wl,--whole-archive"
3894 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3895 llvm_cv_os_type="Freestanding"
3896 llvm_cv_platform_type="Unix" ;;
3898 llvm_cv_link_all_option="-Wl,--whole-archive"
3899 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3900 llvm_cv_os_type="Freestanding"
3901 llvm_cv_platform_type="Unix" ;;
3903 llvm_cv_link_all_option=""
3904 llvm_cv_no_link_all_option=""
3905 llvm_cv_os_type="Unknown"
3906 llvm_cv_platform_type="Unknown" ;;
3909 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3910 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3912 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3913 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3914 if test "${llvm_cv_target_os_type+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3919 llvm_cv_target_os_type="AIX" ;;
3921 llvm_cv_target_os_type="IRIX" ;;
3923 llvm_cv_target_os_type="Cygwin" ;;
3925 llvm_cv_target_os_type="Darwin" ;;
3927 llvm_cv_target_os_type="Minix" ;;
3928 *-*-freebsd* | *-*-kfreebsd-gnu)
3929 llvm_cv_target_os_type="FreeBSD" ;;
3931 llvm_cv_target_os_type="OpenBSD" ;;
3933 llvm_cv_target_os_type="NetBSD" ;;
3935 llvm_cv_target_os_type="DragonFly" ;;
3937 llvm_cv_target_os_type="HP-UX" ;;
3939 llvm_cv_target_os_type="Interix" ;;
3941 llvm_cv_target_os_type="Linux" ;;
3943 llvm_cv_target_os_type="GNU" ;;
3945 llvm_cv_target_os_type="SunOS" ;;
3947 llvm_cv_target_os_type="AuroraUX" ;;
3949 llvm_cv_target_os_type="Win32" ;;
3951 llvm_cv_target_os_type="MingW" ;;
3953 llvm_cv_target_os_type="Haiku" ;;
3955 llvm_cv_target_os_type="RTEMS" ;;
3957 llvm_cv_target_os_type="NativeClient" ;;
3959 llvm_cv_target_os_type="Freestanding" ;;
3961 llvm_cv_target_os_type="Unknown" ;;
3964 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3965 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3967 if test "$llvm_cv_os_type" = "Unknown" ; then
3968 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3969 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3970 { (exit 1); exit 1; }; }
3975 HOST_OS=$llvm_cv_os_type
3977 TARGET_OS=$llvm_cv_target_os_type
3980 LINKALL=$llvm_cv_link_all_option
3982 NOLINKALL=$llvm_cv_no_link_all_option
3985 case $llvm_cv_platform_type in
3988 cat >>confdefs.h <<\_ACEOF
3989 #define LLVM_ON_UNIX 1
3999 cat >>confdefs.h <<\_ACEOF
4000 #define LLVM_ON_WIN32 1
4010 { echo "$as_me:$LINENO: checking target architecture" >&5
4011 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4012 if test "${llvm_cv_target_arch+set}" = set; then
4013 echo $ECHO_N "(cached) $ECHO_C" >&6
4016 i?86-*) llvm_cv_target_arch="x86" ;;
4017 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4018 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4019 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4020 arm*-*) llvm_cv_target_arch="ARM" ;;
4021 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4022 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4023 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4024 xcore-*) llvm_cv_target_arch="XCore" ;;
4025 msp430-*) llvm_cv_target_arch="MSP430" ;;
4026 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4027 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
4028 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4029 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4030 *) llvm_cv_target_arch="Unknown" ;;
4033 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4034 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4036 if test "$llvm_cv_target_arch" = "Unknown" ; then
4037 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4038 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4041 case "$llvm_cv_target_arch" in
4042 x86) LLVM_NATIVE_ARCH="X86" ;;
4043 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4044 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4047 ARCH=$llvm_cv_target_arch
4051 i?86-*) host_arch="x86" ;;
4052 amd64-* | x86_64-*) host_arch="x86_64" ;;
4053 sparc*-*) host_arch="Sparc" ;;
4054 powerpc*-*) host_arch="PowerPC" ;;
4055 arm*-*) host_arch="ARM" ;;
4056 aarch64*-*) host_arch="AArch64" ;;
4057 mips-* | mips64-*) host_arch="Mips" ;;
4058 mipsel-* | mips64el-*) host_arch="Mips" ;;
4059 xcore-*) host_arch="XCore" ;;
4060 msp430-*) host_arch="MSP430" ;;
4061 hexagon-*) host_arch="Hexagon" ;;
4062 mblaze-*) host_arch="MBlaze" ;;
4063 s390x-*) host_arch="SystemZ" ;;
4064 *) host_arch="Unknown" ;;
4067 if test "$host_arch" = "Unknown" ; then
4068 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4069 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4072 HOST_ARCH=$host_arch
4077 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4078 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4079 if test "${ac_cv_path_GREP+set}" = set; then
4080 echo $ECHO_N "(cached) $ECHO_C" >&6
4082 # Extract the first word of "grep ggrep" to use in msg output
4083 if test -z "$GREP"; then
4084 set dummy grep ggrep; ac_prog_name=$2
4085 if test "${ac_cv_path_GREP+set}" = set; then
4086 echo $ECHO_N "(cached) $ECHO_C" >&6
4088 ac_path_GREP_found=false
4089 # Loop through the user's path and test for each of PROGNAME-LIST
4090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4094 test -z "$as_dir" && as_dir=.
4095 for ac_prog in grep ggrep; do
4096 for ac_exec_ext in '' $ac_executable_extensions; do
4097 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4098 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4099 # Check for GNU ac_path_GREP and select it if it is found.
4100 # Check for GNU $ac_path_GREP
4101 case `"$ac_path_GREP" --version 2>&1` in
4103 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4106 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4109 cat "conftest.in" "conftest.in" >"conftest.tmp"
4110 mv "conftest.tmp" "conftest.in"
4111 cp "conftest.in" "conftest.nl"
4112 echo 'GREP' >> "conftest.nl"
4113 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4114 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4115 ac_count=`expr $ac_count + 1`
4116 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4117 # Best one so far, save it but keep looking for a better one
4118 ac_cv_path_GREP="$ac_path_GREP"
4119 ac_path_GREP_max=$ac_count
4121 # 10*(2^10) chars as input seems more than enough
4122 test $ac_count -gt 10 && break
4124 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4128 $ac_path_GREP_found && break 3
4138 GREP="$ac_cv_path_GREP"
4139 if test -z "$GREP"; then
4140 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4141 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4142 { (exit 1); exit 1; }; }
4146 ac_cv_path_GREP=$GREP
4151 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4152 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4153 GREP="$ac_cv_path_GREP"
4156 { echo "$as_me:$LINENO: checking for egrep" >&5
4157 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4158 if test "${ac_cv_path_EGREP+set}" = set; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4161 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4162 then ac_cv_path_EGREP="$GREP -E"
4164 # Extract the first word of "egrep" to use in msg output
4165 if test -z "$EGREP"; then
4166 set dummy egrep; ac_prog_name=$2
4167 if test "${ac_cv_path_EGREP+set}" = set; then
4168 echo $ECHO_N "(cached) $ECHO_C" >&6
4170 ac_path_EGREP_found=false
4171 # Loop through the user's path and test for each of PROGNAME-LIST
4172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4173 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4176 test -z "$as_dir" && as_dir=.
4177 for ac_prog in egrep; do
4178 for ac_exec_ext in '' $ac_executable_extensions; do
4179 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4180 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4181 # Check for GNU ac_path_EGREP and select it if it is found.
4182 # Check for GNU $ac_path_EGREP
4183 case `"$ac_path_EGREP" --version 2>&1` in
4185 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4188 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4191 cat "conftest.in" "conftest.in" >"conftest.tmp"
4192 mv "conftest.tmp" "conftest.in"
4193 cp "conftest.in" "conftest.nl"
4194 echo 'EGREP' >> "conftest.nl"
4195 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4196 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4197 ac_count=`expr $ac_count + 1`
4198 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4199 # Best one so far, save it but keep looking for a better one
4200 ac_cv_path_EGREP="$ac_path_EGREP"
4201 ac_path_EGREP_max=$ac_count
4203 # 10*(2^10) chars as input seems more than enough
4204 test $ac_count -gt 10 && break
4206 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4210 $ac_path_EGREP_found && break 3
4220 EGREP="$ac_cv_path_EGREP"
4221 if test -z "$EGREP"; then
4222 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4223 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4224 { (exit 1); exit 1; }; }
4228 ac_cv_path_EGREP=$EGREP
4234 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4235 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4236 EGREP="$ac_cv_path_EGREP"
4239 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4240 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4241 if test "${ac_cv_header_stdc+set}" = set; then
4242 echo $ECHO_N "(cached) $ECHO_C" >&6
4244 cat >conftest.$ac_ext <<_ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h. */
4263 rm -f conftest.$ac_objext
4264 if { (ac_try="$ac_compile"
4266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4267 *) ac_try_echo=$ac_try;;
4269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4270 (eval "$ac_compile") 2>conftest.er1
4272 grep -v '^ *+' conftest.er1 >conftest.err
4274 cat conftest.err >&5
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); } &&
4277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4278 { (case "(($ac_try" in
4279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4280 *) ac_try_echo=$ac_try;;
4282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4283 (eval "$ac_try") 2>&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); }; } &&
4287 { ac_try='test -s conftest.$ac_objext'
4288 { (case "(($ac_try" in
4289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290 *) ac_try_echo=$ac_try;;
4292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4293 (eval "$ac_try") 2>&5
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); }; }; then
4297 ac_cv_header_stdc=yes
4299 echo "$as_me: failed program was:" >&5
4300 sed 's/^/| /' conftest.$ac_ext >&5
4302 ac_cv_header_stdc=no
4305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4307 if test $ac_cv_header_stdc = yes; then
4308 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4309 cat >conftest.$ac_ext <<_ACEOF
4312 cat confdefs.h >>conftest.$ac_ext
4313 cat >>conftest.$ac_ext <<_ACEOF
4314 /* end confdefs.h. */
4318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4319 $EGREP "memchr" >/dev/null 2>&1; then
4322 ac_cv_header_stdc=no
4328 if test $ac_cv_header_stdc = yes; then
4329 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4330 cat >conftest.$ac_ext <<_ACEOF
4333 cat confdefs.h >>conftest.$ac_ext
4334 cat >>conftest.$ac_ext <<_ACEOF
4335 /* end confdefs.h. */
4339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4340 $EGREP "free" >/dev/null 2>&1; then
4343 ac_cv_header_stdc=no
4349 if test $ac_cv_header_stdc = yes; then
4350 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4351 if test "$cross_compiling" = yes; then
4354 cat >conftest.$ac_ext <<_ACEOF
4357 cat confdefs.h >>conftest.$ac_ext
4358 cat >>conftest.$ac_ext <<_ACEOF
4359 /* end confdefs.h. */
4362 #if ((' ' & 0x0FF) == 0x020)
4363 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4364 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4366 # define ISLOWER(c) \
4367 (('a' <= (c) && (c) <= 'i') \
4368 || ('j' <= (c) && (c) <= 'r') \
4369 || ('s' <= (c) && (c) <= 'z'))
4370 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4373 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4378 for (i = 0; i < 256; i++)
4379 if (XOR (islower (i), ISLOWER (i))
4380 || toupper (i) != TOUPPER (i))
4385 rm -f conftest$ac_exeext
4386 if { (ac_try="$ac_link"
4388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4389 *) ac_try_echo=$ac_try;;
4391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4392 (eval "$ac_link") 2>&5
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4396 { (case "(($ac_try" in
4397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4398 *) ac_try_echo=$ac_try;;
4400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4401 (eval "$ac_try") 2>&5
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); }; }; then
4407 echo "$as_me: program exited with status $ac_status" >&5
4408 echo "$as_me: failed program was:" >&5
4409 sed 's/^/| /' conftest.$ac_ext >&5
4412 ac_cv_header_stdc=no
4414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4420 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4421 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4422 if test $ac_cv_header_stdc = yes; then
4424 cat >>confdefs.h <<\_ACEOF
4425 #define STDC_HEADERS 1
4430 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4440 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4441 inttypes.h stdint.h unistd.h
4443 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4444 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4447 echo $ECHO_N "(cached) $ECHO_C" >&6
4449 cat >conftest.$ac_ext <<_ACEOF
4452 cat confdefs.h >>conftest.$ac_ext
4453 cat >>conftest.$ac_ext <<_ACEOF
4454 /* end confdefs.h. */
4455 $ac_includes_default
4457 #include <$ac_header>
4459 rm -f conftest.$ac_objext
4460 if { (ac_try="$ac_compile"
4462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4463 *) ac_try_echo=$ac_try;;
4465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4466 (eval "$ac_compile") 2>conftest.er1
4468 grep -v '^ *+' conftest.er1 >conftest.err
4470 cat conftest.err >&5
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); } &&
4473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4474 { (case "(($ac_try" in
4475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4476 *) ac_try_echo=$ac_try;;
4478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4479 (eval "$ac_try") 2>&5
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); }; } &&
4483 { ac_try='test -s conftest.$ac_objext'
4484 { (case "(($ac_try" in
4485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486 *) ac_try_echo=$ac_try;;
4488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4489 (eval "$ac_try") 2>&5
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); }; }; then
4493 eval "$as_ac_Header=yes"
4495 echo "$as_me: failed program was:" >&5
4496 sed 's/^/| /' conftest.$ac_ext >&5
4498 eval "$as_ac_Header=no"
4501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4503 ac_res=`eval echo '${'$as_ac_Header'}'`
4504 { echo "$as_me:$LINENO: result: $ac_res" >&5
4505 echo "${ECHO_T}$ac_res" >&6; }
4506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4507 cat >>confdefs.h <<_ACEOF
4508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4516 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4517 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4518 if test "${ac_cv_c_bigendian+set}" = set; then
4519 echo $ECHO_N "(cached) $ECHO_C" >&6
4521 # See if sys/param.h defines the BYTE_ORDER macro.
4522 cat >conftest.$ac_ext <<_ACEOF
4525 cat confdefs.h >>conftest.$ac_ext
4526 cat >>conftest.$ac_ext <<_ACEOF
4527 /* end confdefs.h. */
4528 #include <sys/types.h>
4529 #include <sys/param.h>
4534 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4542 rm -f conftest.$ac_objext
4543 if { (ac_try="$ac_compile"
4545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4546 *) ac_try_echo=$ac_try;;
4548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4549 (eval "$ac_compile") 2>conftest.er1
4551 grep -v '^ *+' conftest.er1 >conftest.err
4553 cat conftest.err >&5
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); } &&
4556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4557 { (case "(($ac_try" in
4558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4559 *) ac_try_echo=$ac_try;;
4561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4562 (eval "$ac_try") 2>&5
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); }; } &&
4566 { ac_try='test -s conftest.$ac_objext'
4567 { (case "(($ac_try" in
4568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4569 *) ac_try_echo=$ac_try;;
4571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4572 (eval "$ac_try") 2>&5
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); }; }; then
4576 # It does; now see whether it defined to BIG_ENDIAN or not.
4577 cat >conftest.$ac_ext <<_ACEOF
4580 cat confdefs.h >>conftest.$ac_ext
4581 cat >>conftest.$ac_ext <<_ACEOF
4582 /* end confdefs.h. */
4583 #include <sys/types.h>
4584 #include <sys/param.h>
4589 #if BYTE_ORDER != BIG_ENDIAN
4597 rm -f conftest.$ac_objext
4598 if { (ac_try="$ac_compile"
4600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4601 *) ac_try_echo=$ac_try;;
4603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4604 (eval "$ac_compile") 2>conftest.er1
4606 grep -v '^ *+' conftest.er1 >conftest.err
4608 cat conftest.err >&5
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); } &&
4611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4612 { (case "(($ac_try" in
4613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4614 *) ac_try_echo=$ac_try;;
4616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4617 (eval "$ac_try") 2>&5
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; } &&
4621 { ac_try='test -s conftest.$ac_objext'
4622 { (case "(($ac_try" in
4623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4624 *) ac_try_echo=$ac_try;;
4626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4627 (eval "$ac_try") 2>&5
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); }; }; then
4631 ac_cv_c_bigendian=yes
4633 echo "$as_me: failed program was:" >&5
4634 sed 's/^/| /' conftest.$ac_ext >&5
4636 ac_cv_c_bigendian=no
4639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4641 echo "$as_me: failed program was:" >&5
4642 sed 's/^/| /' conftest.$ac_ext >&5
4644 # It does not; compile a test program.
4645 if test "$cross_compiling" = yes; then
4646 # try to guess the endianness by grepping values into an object file
4647 ac_cv_c_bigendian=unknown
4648 cat >conftest.$ac_ext <<_ACEOF
4651 cat confdefs.h >>conftest.$ac_ext
4652 cat >>conftest.$ac_ext <<_ACEOF
4653 /* end confdefs.h. */
4654 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4655 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4656 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4657 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4658 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4659 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4663 _ascii (); _ebcdic ();
4668 rm -f conftest.$ac_objext
4669 if { (ac_try="$ac_compile"
4671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4672 *) ac_try_echo=$ac_try;;
4674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4675 (eval "$ac_compile") 2>conftest.er1
4677 grep -v '^ *+' conftest.er1 >conftest.err
4679 cat conftest.err >&5
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); } &&
4682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4683 { (case "(($ac_try" in
4684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4685 *) ac_try_echo=$ac_try;;
4687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4688 (eval "$ac_try") 2>&5
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); }; } &&
4692 { ac_try='test -s conftest.$ac_objext'
4693 { (case "(($ac_try" in
4694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4695 *) ac_try_echo=$ac_try;;
4697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4698 (eval "$ac_try") 2>&5
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); }; }; then
4702 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4703 ac_cv_c_bigendian=yes
4705 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4706 if test "$ac_cv_c_bigendian" = unknown; then
4707 ac_cv_c_bigendian=no
4709 # finding both strings is unlikely to happen, but who knows?
4710 ac_cv_c_bigendian=unknown
4714 echo "$as_me: failed program was:" >&5
4715 sed 's/^/| /' conftest.$ac_ext >&5
4720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4722 cat >conftest.$ac_ext <<_ACEOF
4725 cat confdefs.h >>conftest.$ac_ext
4726 cat >>conftest.$ac_ext <<_ACEOF
4727 /* end confdefs.h. */
4728 $ac_includes_default
4733 /* Are we little or big endian? From Harbison&Steele. */
4737 char c[sizeof (long int)];
4740 return u.c[sizeof (long int) - 1] == 1;
4746 rm -f conftest$ac_exeext
4747 if { (ac_try="$ac_link"
4749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4750 *) ac_try_echo=$ac_try;;
4752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4753 (eval "$ac_link") 2>&5
4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4757 { (case "(($ac_try" in
4758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4759 *) ac_try_echo=$ac_try;;
4761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4762 (eval "$ac_try") 2>&5
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); }; }; then
4766 ac_cv_c_bigendian=no
4768 echo "$as_me: program exited with status $ac_status" >&5
4769 echo "$as_me: failed program was:" >&5
4770 sed 's/^/| /' conftest.$ac_ext >&5
4773 ac_cv_c_bigendian=yes
4775 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4783 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4784 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4785 case $ac_cv_c_bigendian in
4793 { { echo "$as_me:$LINENO: error: unknown endianness
4794 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4795 echo "$as_me: error: unknown endianness
4796 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4797 { (exit 1); exit 1; }; } ;;
4801 if test "$cross_compiling" = yes; then
4802 LLVM_CROSS_COMPILING=1
4805 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4806 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4807 if test "${ac_cv_build_exeext+set}" = set; then
4808 echo $ECHO_N "(cached) $ECHO_C" >&6
4810 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4811 ac_cv_build_exeext=.exe
4813 ac_build_prefix=${build_alias}-
4815 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4816 set dummy ${ac_build_prefix}gcc; ac_word=$2
4817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4819 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4820 echo $ECHO_N "(cached) $ECHO_C" >&6
4822 if test -n "$BUILD_CC"; then
4823 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 test -z "$as_dir" && as_dir=.
4830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4832 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4842 BUILD_CC=$ac_cv_prog_BUILD_CC
4843 if test -n "$BUILD_CC"; then
4844 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4845 echo "${ECHO_T}$BUILD_CC" >&6; }
4847 { echo "$as_me:$LINENO: result: no" >&5
4848 echo "${ECHO_T}no" >&6; }
4852 if test -z "$BUILD_CC"; then
4853 # Extract the first word of "gcc", so it can be a program name with args.
4854 set dummy gcc; ac_word=$2
4855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4857 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4858 echo $ECHO_N "(cached) $ECHO_C" >&6
4860 if test -n "$BUILD_CC"; then
4861 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 test -z "$as_dir" && as_dir=.
4868 for ac_exec_ext in '' $ac_executable_extensions; do
4869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4870 ac_cv_prog_BUILD_CC="gcc"
4871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4880 BUILD_CC=$ac_cv_prog_BUILD_CC
4881 if test -n "$BUILD_CC"; then
4882 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4883 echo "${ECHO_T}$BUILD_CC" >&6; }
4885 { echo "$as_me:$LINENO: result: no" >&5
4886 echo "${ECHO_T}no" >&6; }
4890 if test -z "$BUILD_CC"; then
4891 # Extract the first word of "cc", so it can be a program name with args.
4892 set dummy cc; ac_word=$2
4893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4895 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4896 echo $ECHO_N "(cached) $ECHO_C" >&6
4898 if test -n "$BUILD_CC"; then
4899 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 test -z "$as_dir" && as_dir=.
4907 for ac_exec_ext in '' $ac_executable_extensions; do
4908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4909 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4910 ac_prog_rejected=yes
4913 ac_cv_prog_BUILD_CC="cc"
4914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4921 if test $ac_prog_rejected = yes; then
4922 # We found a bogon in the path, so make sure we never use it.
4923 set dummy $ac_cv_prog_BUILD_CC
4925 if test $# != 0; then
4926 # We chose a different compiler from the bogus one.
4927 # However, it has the same basename, so the bogon will be chosen
4928 # first if we set BUILD_CC to just the basename; use the full file name.
4930 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4935 BUILD_CC=$ac_cv_prog_BUILD_CC
4936 if test -n "$BUILD_CC"; then
4937 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4938 echo "${ECHO_T}$BUILD_CC" >&6; }
4940 { echo "$as_me:$LINENO: result: no" >&5
4941 echo "${ECHO_T}no" >&6; }
4947 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4948 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4949 { (exit 1); exit 1; }; }
4950 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4952 echo 'int main () { return 0; }' > conftest.$ac_ext
4954 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4955 (eval $ac_build_link) 2>&5
4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); }; then
4959 for file in conftest.*; do
4961 *.c | *.o | *.obj | *.dSYM) ;;
4962 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4966 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4967 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4968 { (exit 1); exit 1; }; }
4971 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4976 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4977 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4978 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4979 ac_build_exeext=$BUILD_EXEEXT
4981 ac_build_prefix=${build_alias}-
4982 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4983 set dummy ${ac_build_prefix}g++; ac_word=$2
4984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4986 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4987 echo $ECHO_N "(cached) $ECHO_C" >&6
4989 if test -n "$BUILD_CXX"; then
4990 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996 test -z "$as_dir" && as_dir=.
4997 for ac_exec_ext in '' $ac_executable_extensions; do
4998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4999 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
5000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5009 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5010 if test -n "$BUILD_CXX"; then
5011 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5012 echo "${ECHO_T}$BUILD_CXX" >&6; }
5014 { echo "$as_me:$LINENO: result: no" >&5
5015 echo "${ECHO_T}no" >&6; }
5019 if test -z "$BUILD_CXX"; then
5020 # Extract the first word of "g++", so it can be a program name with args.
5021 set dummy g++; ac_word=$2
5022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5024 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5025 echo $ECHO_N "(cached) $ECHO_C" >&6
5027 if test -n "$BUILD_CXX"; then
5028 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034 test -z "$as_dir" && as_dir=.
5035 for ac_exec_ext in '' $ac_executable_extensions; do
5036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5037 ac_cv_prog_BUILD_CXX="g++"
5038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5047 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5048 if test -n "$BUILD_CXX"; then
5049 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5050 echo "${ECHO_T}$BUILD_CXX" >&6; }
5052 { echo "$as_me:$LINENO: result: no" >&5
5053 echo "${ECHO_T}no" >&6; }
5057 if test -z "$BUILD_CXX"; then
5058 # Extract the first word of "c++", so it can be a program name with args.
5059 set dummy c++; ac_word=$2
5060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5062 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5063 echo $ECHO_N "(cached) $ECHO_C" >&6
5065 if test -n "$BUILD_CXX"; then
5066 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073 test -z "$as_dir" && as_dir=.
5074 for ac_exec_ext in '' $ac_executable_extensions; do
5075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5076 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
5077 ac_prog_rejected=yes
5080 ac_cv_prog_BUILD_CXX="c++"
5081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5088 if test $ac_prog_rejected = yes; then
5089 # We found a bogon in the path, so make sure we never use it.
5090 set dummy $ac_cv_prog_BUILD_CXX
5092 if test $# != 0; then
5093 # We chose a different compiler from the bogus one.
5094 # However, it has the same basename, so the bogon will be chosen
5095 # first if we set BUILD_CXX to just the basename; use the full file name.
5097 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
5102 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5103 if test -n "$BUILD_CXX"; then
5104 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5105 echo "${ECHO_T}$BUILD_CXX" >&6; }
5107 { echo "$as_me:$LINENO: result: no" >&5
5108 echo "${ECHO_T}no" >&6; }
5115 LLVM_CROSS_COMPILING=0
5119 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5130 # Check whether --enable-libcpp was given.
5131 if test "${enable_libcpp+set}" = set; then
5132 enableval=$enable_libcpp;
5137 case "$enableval" in
5138 yes) ENABLE_LIBCPP=1
5142 default) ENABLE_LIBCPP=0
5144 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5145 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5146 { (exit 1); exit 1; }; } ;;
5149 # Check whether --enable-cxx11 was given.
5150 if test "${enable_cxx11+set}" = set; then
5151 enableval=$enable_cxx11;
5156 case "$enableval" in
5161 default) ENABLE_CXX11=0
5163 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5164 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5165 { (exit 1); exit 1; }; } ;;
5169 # Check whether --enable-clang-arcmt was given.
5170 if test "${enable_clang_arcmt+set}" = set; then
5171 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
5176 case "$enableval" in
5177 yes) ENABLE_CLANG_ARCMT=1
5179 no) ENABLE_CLANG_ARCMT=0
5181 default) ENABLE_CLANG_ARCMT=1
5183 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
5184 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
5185 { (exit 1); exit 1; }; } ;;
5188 clang_static_analyzer="yes"
5189 # Check whether --enable-clang-static-analyzer was given.
5190 if test "${enable_clang_static_analyzer+set}" = set; then
5191 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
5196 case "$enableval" in
5197 yes) ENABLE_CLANG_STATIC_ANALYZER=1
5199 no) ENABLE_CLANG_STATIC_ANALYZER=0
5201 default) ENABLE_CLANG_STATIC_ANALYZER=1
5203 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5204 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5205 { (exit 1); exit 1; }; } ;;
5208 # Check whether --enable-clang-rewriter was given.
5209 if test "${enable_clang_rewriter+set}" = set; then
5210 enableval=$enable_clang_rewriter;
5215 case "$enableval" in
5216 yes) ENABLE_CLANG_REWRITER=1
5219 if test ${clang_arcmt} != "no" ; then
5220 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5221 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5222 { (exit 1); exit 1; }; }
5224 if test ${clang_static_analyzer} != "no" ; then
5225 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5226 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5227 { (exit 1); exit 1; }; }
5229 ENABLE_CLANG_REWRITER=0
5232 default) ENABLE_CLANG_REWRITER=1
5234 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5235 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5236 { (exit 1); exit 1; }; } ;;
5239 # Check whether --enable-optimized was given.
5240 if test "${enable_optimized+set}" = set; then
5241 enableval=$enable_optimized;
5246 if test ${enableval} = "no" ; then
5250 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5254 # Check whether --enable-profiling was given.
5255 if test "${enable_profiling+set}" = set; then
5256 enableval=$enable_profiling;
5261 if test ${enableval} = "no" ; then
5265 ENABLE_PROFILING=ENABLE_PROFILING=1
5269 # Check whether --enable-assertions was given.
5270 if test "${enable_assertions+set}" = set; then
5271 enableval=$enable_assertions;
5276 if test ${enableval} = "yes" ; then
5280 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5284 # Check whether --enable-werror was given.
5285 if test "${enable_werror+set}" = set; then
5286 enableval=$enable_werror;
5291 case "$enableval" in
5292 yes) ENABLE_WERROR=1
5296 default) ENABLE_WERROR=0
5298 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5299 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5300 { (exit 1); exit 1; }; } ;;
5303 # Check whether --enable-expensive-checks was given.
5304 if test "${enable_expensive_checks+set}" = set; then
5305 enableval=$enable_expensive_checks;
5310 if test ${enableval} = "yes" ; then
5311 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5313 EXPENSIVE_CHECKS=yes
5316 ENABLE_EXPENSIVE_CHECKS=
5322 # Check whether --enable-debug-runtime was given.
5323 if test "${enable_debug_runtime+set}" = set; then
5324 enableval=$enable_debug_runtime;
5329 if test ${enableval} = "no" ; then
5333 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5337 # Check whether --enable-debug-symbols was given.
5338 if test "${enable_debug_symbols+set}" = set; then
5339 enableval=$enable_debug_symbols;
5344 if test ${enableval} = "no" ; then
5348 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5352 # Check whether --enable-keep-symbols was given.
5353 if test "${enable_keep_symbols+set}" = set; then
5354 enableval=$enable_keep_symbols;
5359 if test ${enableval} = "no" ; then
5363 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5367 # Check whether --enable-jit was given.
5368 if test "${enable_jit+set}" = set; then
5369 enableval=$enable_jit;
5374 if test ${enableval} = "no"
5379 case "$llvm_cv_target_arch" in
5380 x86) TARGET_HAS_JIT=1
5382 Sparc) TARGET_HAS_JIT=0
5384 PowerPC) TARGET_HAS_JIT=1
5386 x86_64) TARGET_HAS_JIT=1
5388 ARM) TARGET_HAS_JIT=1
5390 AArch64) TARGET_HAS_JIT=0
5392 Mips) TARGET_HAS_JIT=1
5394 XCore) TARGET_HAS_JIT=0
5396 MSP430) TARGET_HAS_JIT=0
5398 Hexagon) TARGET_HAS_JIT=0
5400 MBlaze) TARGET_HAS_JIT=0
5402 NVPTX) TARGET_HAS_JIT=0
5404 SystemZ) TARGET_HAS_JIT=1
5411 # Check whether --enable-docs was given.
5412 if test "${enable_docs+set}" = set; then
5413 enableval=$enable_docs;
5418 case "$enableval" in
5423 default) ENABLE_DOCS=1
5425 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5426 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5427 { (exit 1); exit 1; }; } ;;
5430 # Check whether --enable-doxygen was given.
5431 if test "${enable_doxygen+set}" = set; then
5432 enableval=$enable_doxygen;
5437 case "$enableval" in
5438 yes) ENABLE_DOXYGEN=1
5440 no) ENABLE_DOXYGEN=0
5442 default) ENABLE_DOXYGEN=0
5444 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5445 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5446 { (exit 1); exit 1; }; } ;;
5449 # Check whether --enable-threads was given.
5450 if test "${enable_threads+set}" = set; then
5451 enableval=$enable_threads;
5456 case "$enableval" in
5457 yes) LLVM_ENABLE_THREADS=1
5459 no) LLVM_ENABLE_THREADS=0
5461 default) LLVM_ENABLE_THREADS=1
5463 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5464 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5465 { (exit 1); exit 1; }; } ;;
5468 cat >>confdefs.h <<_ACEOF
5469 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5473 # Check whether --enable-pthreads was given.
5474 if test "${enable_pthreads+set}" = set; then
5475 enableval=$enable_pthreads;
5480 case "$enableval" in
5481 yes) ENABLE_PTHREADS=1
5483 no) ENABLE_PTHREADS=0
5485 default) ENABLE_PTHREADS=1
5487 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5488 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5489 { (exit 1); exit 1; }; } ;;
5492 # Check whether --enable-zlib was given.
5493 if test "${enable_zlib+set}" = set; then
5494 enableval=$enable_zlib;
5499 case "$enableval" in
5500 yes) LLVM_ENABLE_ZLIB=1
5502 no) LLVM_ENABLE_ZLIB=0
5504 default) LLVM_ENABLE_ZLIB=1
5506 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5507 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5508 { (exit 1); exit 1; }; } ;;
5511 cat >>confdefs.h <<_ACEOF
5512 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5516 # Check whether --enable-pic was given.
5517 if test "${enable_pic+set}" = set; then
5518 enableval=$enable_pic;
5523 case "$enableval" in
5528 default) ENABLE_PIC=1
5530 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5531 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5532 { (exit 1); exit 1; }; } ;;
5535 cat >>confdefs.h <<_ACEOF
5536 #define ENABLE_PIC $ENABLE_PIC
5540 # Check whether --enable-shared was given.
5541 if test "${enable_shared+set}" = set; then
5542 enableval=$enable_shared;
5547 case "$enableval" in
5548 yes) ENABLE_SHARED=1
5552 default) ENABLE_SHARED=0
5554 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5555 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5556 { (exit 1); exit 1; }; } ;;
5559 # Check whether --enable-embed-stdcxx was given.
5560 if test "${enable_embed_stdcxx+set}" = set; then
5561 enableval=$enable_embed_stdcxx;
5566 case "$enableval" in
5567 yes) ENABLE_EMBED_STDCXX=1
5569 no) ENABLE_EMBED_STDCXX=0
5571 default) ENABLE_EMBED_STDCXX=0
5573 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5574 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5575 { (exit 1); exit 1; }; } ;;
5578 # Check whether --enable-timestamps was given.
5579 if test "${enable_timestamps+set}" = set; then
5580 enableval=$enable_timestamps;
5585 case "$enableval" in
5586 yes) ENABLE_TIMESTAMPS=1
5588 no) ENABLE_TIMESTAMPS=0
5590 default) ENABLE_TIMESTAMPS=1
5592 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5593 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5594 { (exit 1); exit 1; }; } ;;
5597 cat >>confdefs.h <<_ACEOF
5598 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5603 # Check whether --enable-backtraces was given.
5604 if test "${enable_backtraces+set}" = set; then
5605 enableval=$enable_backtraces;
5610 case "$enableval" in
5611 yes) ENABLE_BACKTRACES=1
5613 no) ENABLE_BACKTRACES=0
5615 default) ENABLE_BACKTRACES=1
5617 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5618 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5619 { (exit 1); exit 1; }; } ;;
5622 cat >>confdefs.h <<_ACEOF
5623 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5628 # Check whether --enable-targets was given.
5629 if test "${enable_targets+set}" = set; then
5630 enableval=$enable_targets;
5635 if test "$enableval" = host-only ; then
5638 case "$enableval" in
5639 all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend MBlaze NVPTX Hexagon SystemZ R600" ;;
5640 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5642 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5643 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5644 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5645 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5646 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5647 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5648 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5649 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5650 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5651 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5652 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5653 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5654 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5655 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5656 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5657 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5658 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5659 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5660 host) case "$llvm_cv_target_arch" in
5661 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5662 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5663 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5664 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5665 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5666 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5667 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5668 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5669 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5670 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5671 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5672 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5673 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5674 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5675 echo "$as_me: error: Can not set target to build" >&2;}
5676 { (exit 1); exit 1; }; } ;;
5678 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5679 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5680 { (exit 1); exit 1; }; } ;;
5686 # Check whether --enable-experimental-targets was given.
5687 if test "${enable_experimental_targets+set}" = set; then
5688 enableval=$enable_experimental_targets;
5694 if test ${enableval} != "disable"
5696 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5699 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5702 for a_target in $TARGETS_TO_BUILD; do
5703 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5705 cat >>confdefs.h <<_ACEOF
5706 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5709 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5710 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5711 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5712 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5713 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5714 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5716 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5717 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5720 cat >>confdefs.h <<_ACEOF
5721 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5725 cat >>confdefs.h <<_ACEOF
5726 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5730 cat >>confdefs.h <<_ACEOF
5731 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5735 cat >>confdefs.h <<_ACEOF
5736 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5739 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5741 cat >>confdefs.h <<_ACEOF
5742 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5746 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5748 cat >>confdefs.h <<_ACEOF
5749 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5756 LLVM_ENUM_TARGETS=""
5757 LLVM_ENUM_ASM_PRINTERS=""
5758 LLVM_ENUM_ASM_PARSERS=""
5759 LLVM_ENUM_DISASSEMBLERS=""
5760 for target_to_build in $TARGETS_TO_BUILD; do
5761 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5762 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5763 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5765 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5766 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5768 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5769 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5778 # Check whether --with-optimize-option was given.
5779 if test "${with_optimize_option+set}" = set; then
5780 withval=$with_optimize_option;
5785 { echo "$as_me:$LINENO: checking optimization flags" >&5
5786 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5789 case "$llvm_cv_os_type" in
5790 FreeBSD) optimize_option=-O2 ;;
5791 MingW) optimize_option=-O2 ;;
5792 *) optimize_option=-O3 ;;
5794 *) optimize_option="$withval" ;;
5796 OPTIMIZE_OPTION=$optimize_option
5798 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5799 echo "${ECHO_T}$optimize_option" >&6; }
5802 # Check whether --with-extra-options was given.
5803 if test "${with_extra_options+set}" = set; then
5804 withval=$with_extra_options;
5810 default) EXTRA_OPTIONS= ;;
5811 *) EXTRA_OPTIONS=$withval ;;
5813 EXTRA_OPTIONS=$EXTRA_OPTIONS
5817 # Check whether --with-extra-ld-options was given.
5818 if test "${with_extra_ld_options+set}" = set; then
5819 withval=$with_extra_ld_options;
5825 default) EXTRA_LD_OPTIONS= ;;
5826 *) EXTRA_LD_OPTIONS=$withval ;;
5828 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5831 # Check whether --enable-bindings was given.
5832 if test "${enable_bindings+set}" = set; then
5833 enableval=$enable_bindings;
5838 BINDINGS_TO_BUILD=""
5839 case "$enableval" in
5840 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5841 all ) BINDINGS_TO_BUILD="ocaml" ;;
5842 none | no) BINDINGS_TO_BUILD="" ;;
5843 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5844 case "$a_binding" in
5845 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5846 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5847 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5848 { (exit 1); exit 1; }; } ;;
5855 # Check whether --with-ocaml-libdir was given.
5856 if test "${with_ocaml_libdir+set}" = set; then
5857 withval=$with_ocaml_libdir;
5863 auto) with_ocaml_libdir="$withval" ;;
5864 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5865 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5866 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5867 { (exit 1); exit 1; }; } ;;
5871 # Check whether --with-clang-srcdir was given.
5872 if test "${with_clang_srcdir+set}" = set; then
5873 withval=$with_clang_srcdir;
5879 -) clang_src_root="" ;;
5880 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5881 *) clang_src_root="$ac_pwd/$withval" ;;
5883 CLANG_SRC_ROOT=$clang_src_root
5887 # Check whether --with-clang-resource-dir was given.
5888 if test "${with_clang_resource_dir+set}" = set; then
5889 withval=$with_clang_resource_dir;
5895 cat >>confdefs.h <<_ACEOF
5896 #define CLANG_RESOURCE_DIR "$withval"
5901 # Check whether --with-c-include-dirs was given.
5902 if test "${with_c_include_dirs+set}" = set; then
5903 withval=$with_c_include_dirs;
5909 cat >>confdefs.h <<_ACEOF
5910 #define C_INCLUDE_DIRS "$withval"
5914 # Clang normally uses the system c++ headers and libraries. With this option,
5915 # clang will use the ones provided by a gcc installation instead. This option should
5916 # be passed the same value that was used with --prefix when configuring gcc.
5918 # Check whether --with-gcc-toolchain was given.
5919 if test "${with_gcc_toolchain+set}" = set; then
5920 withval=$with_gcc_toolchain;
5926 cat >>confdefs.h <<_ACEOF
5927 #define GCC_INSTALL_PREFIX "$withval"
5932 # Check whether --with-default-sysroot was given.
5933 if test "${with_default_sysroot+set}" = set; then
5934 withval=$with_default_sysroot;
5940 cat >>confdefs.h <<_ACEOF
5941 #define DEFAULT_SYSROOT "$withval"
5946 # Check whether --with-binutils-include was given.
5947 if test "${with_binutils_include+set}" = set; then
5948 withval=$with_binutils_include;
5954 default) WITH_BINUTILS_INCDIR=default ;;
5955 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5956 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5957 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5958 { (exit 1); exit 1; }; } ;;
5960 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5961 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5963 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5964 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5965 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5966 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5967 { (exit 1); exit 1; }; };
5972 # Check whether --with-bug-report-url was given.
5973 if test "${with_bug_report_url+set}" = set; then
5974 withval=$with_bug_report_url;
5976 withval="http://llvm.org/bugs/"
5980 cat >>confdefs.h <<_ACEOF
5981 #define BUG_REPORT_URL "$withval"
5985 # Check whether --enable-libffi was given.
5986 if test "${enable_libffi+set}" = set; then
5987 enableval=$enable_libffi; case "$enableval" in
5988 yes) llvm_cv_enable_libffi="yes" ;;
5989 no) llvm_cv_enable_libffi="no" ;;
5990 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5991 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5992 { (exit 1); exit 1; }; } ;;
5995 llvm_cv_enable_libffi=no
6000 # Check whether --with-internal-prefix was given.
6001 if test "${with_internal_prefix+set}" = set; then
6002 withval=$with_internal_prefix;
6007 INTERNAL_PREFIX=$withval
6011 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6012 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6013 if test "${lt_cv_path_NM+set}" = set; then
6014 echo $ECHO_N "(cached) $ECHO_C" >&6
6016 if test -n "$NM"; then
6017 # Let the user override the test.
6020 lt_nm_to_check="${ac_tool_prefix}nm"
6021 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6022 lt_nm_to_check="$lt_nm_to_check nm"
6024 for lt_tmp_nm in $lt_nm_to_check; do
6025 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6026 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6028 test -z "$ac_dir" && ac_dir=.
6029 tmp_nm="$ac_dir/$lt_tmp_nm"
6030 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6031 # Check to see if the nm accepts a BSD-compat flag.
6032 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6033 # nm: unknown option "B" ignored
6034 # Tru64's nm complains that /dev/null is an invalid object file
6035 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6036 */dev/null* | *'Invalid file or object type'*)
6037 lt_cv_path_NM="$tmp_nm -B"
6041 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6043 lt_cv_path_NM="$tmp_nm -p"
6047 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6048 continue # so that we can try to find one that supports BSD flags
6057 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6060 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6061 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6066 { echo "$as_me:$LINENO: checking for GNU make" >&5
6067 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6068 if test "${llvm_cv_gnu_make_command+set}" = set; then
6069 echo $ECHO_N "(cached) $ECHO_C" >&6
6071 llvm_cv_gnu_make_command=''
6072 for a in "$MAKE" make gmake gnumake ; do
6073 if test -z "$a" ; then continue ; fi ;
6074 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6076 llvm_cv_gnu_make_command=$a ;
6081 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6082 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6083 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6087 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6088 echo "${ECHO_T}\"Not found\"" >&6; };
6092 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6093 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6095 if test "$LN_S" = "ln -s"; then
6096 { echo "$as_me:$LINENO: result: yes" >&5
6097 echo "${ECHO_T}yes" >&6; }
6099 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6100 echo "${ECHO_T}no, using $LN_S" >&6; }
6103 # Extract the first word of "cmp", so it can be a program name with args.
6104 set dummy cmp; ac_word=$2
6105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6107 if test "${ac_cv_path_CMP+set}" = set; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6112 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6119 test -z "$as_dir" && as_dir=.
6120 for ac_exec_ext in '' $ac_executable_extensions; do
6121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6122 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6130 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6135 if test -n "$CMP"; then
6136 { echo "$as_me:$LINENO: result: $CMP" >&5
6137 echo "${ECHO_T}$CMP" >&6; }
6139 { echo "$as_me:$LINENO: result: no" >&5
6140 echo "${ECHO_T}no" >&6; }
6144 # Extract the first word of "cp", so it can be a program name with args.
6145 set dummy cp; ac_word=$2
6146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6148 if test "${ac_cv_path_CP+set}" = set; then
6149 echo $ECHO_N "(cached) $ECHO_C" >&6
6153 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160 test -z "$as_dir" && as_dir=.
6161 for ac_exec_ext in '' $ac_executable_extensions; do
6162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6163 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6171 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6176 if test -n "$CP"; then
6177 { echo "$as_me:$LINENO: result: $CP" >&5
6178 echo "${ECHO_T}$CP" >&6; }
6180 { echo "$as_me:$LINENO: result: no" >&5
6181 echo "${ECHO_T}no" >&6; }
6185 # Extract the first word of "date", so it can be a program name with args.
6186 set dummy date; ac_word=$2
6187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6189 if test "${ac_cv_path_DATE+set}" = set; then
6190 echo $ECHO_N "(cached) $ECHO_C" >&6
6194 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201 test -z "$as_dir" && as_dir=.
6202 for ac_exec_ext in '' $ac_executable_extensions; do
6203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6204 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6212 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6216 DATE=$ac_cv_path_DATE
6217 if test -n "$DATE"; then
6218 { echo "$as_me:$LINENO: result: $DATE" >&5
6219 echo "${ECHO_T}$DATE" >&6; }
6221 { echo "$as_me:$LINENO: result: no" >&5
6222 echo "${ECHO_T}no" >&6; }
6226 # Extract the first word of "find", so it can be a program name with args.
6227 set dummy find; ac_word=$2
6228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6230 if test "${ac_cv_path_FIND+set}" = set; then
6231 echo $ECHO_N "(cached) $ECHO_C" >&6
6235 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242 test -z "$as_dir" && as_dir=.
6243 for ac_exec_ext in '' $ac_executable_extensions; do
6244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6245 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6253 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6257 FIND=$ac_cv_path_FIND
6258 if test -n "$FIND"; then
6259 { echo "$as_me:$LINENO: result: $FIND" >&5
6260 echo "${ECHO_T}$FIND" >&6; }
6262 { echo "$as_me:$LINENO: result: no" >&5
6263 echo "${ECHO_T}no" >&6; }
6267 # Extract the first word of "grep", so it can be a program name with args.
6268 set dummy grep; ac_word=$2
6269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6271 if test "${ac_cv_path_GREP+set}" = set; then
6272 echo $ECHO_N "(cached) $ECHO_C" >&6
6276 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6283 test -z "$as_dir" && as_dir=.
6284 for ac_exec_ext in '' $ac_executable_extensions; do
6285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6286 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6294 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6298 GREP=$ac_cv_path_GREP
6299 if test -n "$GREP"; then
6300 { echo "$as_me:$LINENO: result: $GREP" >&5
6301 echo "${ECHO_T}$GREP" >&6; }
6303 { echo "$as_me:$LINENO: result: no" >&5
6304 echo "${ECHO_T}no" >&6; }
6308 # Extract the first word of "mkdir", so it can be a program name with args.
6309 set dummy mkdir; ac_word=$2
6310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6312 if test "${ac_cv_path_MKDIR+set}" = set; then
6313 echo $ECHO_N "(cached) $ECHO_C" >&6
6317 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6324 test -z "$as_dir" && as_dir=.
6325 for ac_exec_ext in '' $ac_executable_extensions; do
6326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6327 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6335 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6339 MKDIR=$ac_cv_path_MKDIR
6340 if test -n "$MKDIR"; then
6341 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6342 echo "${ECHO_T}$MKDIR" >&6; }
6344 { echo "$as_me:$LINENO: result: no" >&5
6345 echo "${ECHO_T}no" >&6; }
6349 # Extract the first word of "mv", so it can be a program name with args.
6350 set dummy mv; ac_word=$2
6351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6353 if test "${ac_cv_path_MV+set}" = set; then
6354 echo $ECHO_N "(cached) $ECHO_C" >&6
6358 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6365 test -z "$as_dir" && as_dir=.
6366 for ac_exec_ext in '' $ac_executable_extensions; do
6367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6368 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6376 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6381 if test -n "$MV"; then
6382 { echo "$as_me:$LINENO: result: $MV" >&5
6383 echo "${ECHO_T}$MV" >&6; }
6385 { echo "$as_me:$LINENO: result: no" >&5
6386 echo "${ECHO_T}no" >&6; }
6390 if test -n "$ac_tool_prefix"; then
6391 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6392 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6395 if test "${ac_cv_prog_RANLIB+set}" = set; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
6398 if test -n "$RANLIB"; then
6399 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6405 test -z "$as_dir" && as_dir=.
6406 for ac_exec_ext in '' $ac_executable_extensions; do
6407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6408 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6418 RANLIB=$ac_cv_prog_RANLIB
6419 if test -n "$RANLIB"; then
6420 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6421 echo "${ECHO_T}$RANLIB" >&6; }
6423 { echo "$as_me:$LINENO: result: no" >&5
6424 echo "${ECHO_T}no" >&6; }
6429 if test -z "$ac_cv_prog_RANLIB"; then
6430 ac_ct_RANLIB=$RANLIB
6431 # Extract the first word of "ranlib", so it can be a program name with args.
6432 set dummy ranlib; ac_word=$2
6433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6435 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6436 echo $ECHO_N "(cached) $ECHO_C" >&6
6438 if test -n "$ac_ct_RANLIB"; then
6439 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6445 test -z "$as_dir" && as_dir=.
6446 for ac_exec_ext in '' $ac_executable_extensions; do
6447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6448 ac_cv_prog_ac_ct_RANLIB="ranlib"
6449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6458 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6459 if test -n "$ac_ct_RANLIB"; then
6460 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6461 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6463 { echo "$as_me:$LINENO: result: no" >&5
6464 echo "${ECHO_T}no" >&6; }
6467 if test "x$ac_ct_RANLIB" = x; then
6470 case $cross_compiling:$ac_tool_warned in
6472 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6473 whose name does not start with the host triplet. If you think this
6474 configuration is useful to you, please write to autoconf@gnu.org." >&5
6475 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6476 whose name does not start with the host triplet. If you think this
6477 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6478 ac_tool_warned=yes ;;
6480 RANLIB=$ac_ct_RANLIB
6483 RANLIB="$ac_cv_prog_RANLIB"
6486 if test -n "$ac_tool_prefix"; then
6487 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6488 set dummy ${ac_tool_prefix}ar; ac_word=$2
6489 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6491 if test "${ac_cv_prog_AR+set}" = set; then
6492 echo $ECHO_N "(cached) $ECHO_C" >&6
6494 if test -n "$AR"; then
6495 ac_cv_prog_AR="$AR" # Let the user override the test.
6497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6501 test -z "$as_dir" && as_dir=.
6502 for ac_exec_ext in '' $ac_executable_extensions; do
6503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6504 ac_cv_prog_AR="${ac_tool_prefix}ar"
6505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6515 if test -n "$AR"; then
6516 { echo "$as_me:$LINENO: result: $AR" >&5
6517 echo "${ECHO_T}$AR" >&6; }
6519 { echo "$as_me:$LINENO: result: no" >&5
6520 echo "${ECHO_T}no" >&6; }
6525 if test -z "$ac_cv_prog_AR"; then
6527 # Extract the first word of "ar", so it can be a program name with args.
6528 set dummy ar; ac_word=$2
6529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6531 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6532 echo $ECHO_N "(cached) $ECHO_C" >&6
6534 if test -n "$ac_ct_AR"; then
6535 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6541 test -z "$as_dir" && as_dir=.
6542 for ac_exec_ext in '' $ac_executable_extensions; do
6543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6544 ac_cv_prog_ac_ct_AR="ar"
6545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6554 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6555 if test -n "$ac_ct_AR"; then
6556 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6557 echo "${ECHO_T}$ac_ct_AR" >&6; }
6559 { echo "$as_me:$LINENO: result: no" >&5
6560 echo "${ECHO_T}no" >&6; }
6563 if test "x$ac_ct_AR" = x; then
6566 case $cross_compiling:$ac_tool_warned in
6568 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6569 whose name does not start with the host triplet. If you think this
6570 configuration is useful to you, please write to autoconf@gnu.org." >&5
6571 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6572 whose name does not start with the host triplet. If you think this
6573 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6574 ac_tool_warned=yes ;;
6582 # Extract the first word of "rm", so it can be a program name with args.
6583 set dummy rm; ac_word=$2
6584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6586 if test "${ac_cv_path_RM+set}" = set; then
6587 echo $ECHO_N "(cached) $ECHO_C" >&6
6591 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598 test -z "$as_dir" && as_dir=.
6599 for ac_exec_ext in '' $ac_executable_extensions; do
6600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6601 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6609 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6614 if test -n "$RM"; then
6615 { echo "$as_me:$LINENO: result: $RM" >&5
6616 echo "${ECHO_T}$RM" >&6; }
6618 { echo "$as_me:$LINENO: result: no" >&5
6619 echo "${ECHO_T}no" >&6; }
6623 # Extract the first word of "sed", so it can be a program name with args.
6624 set dummy sed; ac_word=$2
6625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6627 if test "${ac_cv_path_SED+set}" = set; then
6628 echo $ECHO_N "(cached) $ECHO_C" >&6
6632 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639 test -z "$as_dir" && as_dir=.
6640 for ac_exec_ext in '' $ac_executable_extensions; do
6641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6642 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6650 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6655 if test -n "$SED"; then
6656 { echo "$as_me:$LINENO: result: $SED" >&5
6657 echo "${ECHO_T}$SED" >&6; }
6659 { echo "$as_me:$LINENO: result: no" >&5
6660 echo "${ECHO_T}no" >&6; }
6664 # Extract the first word of "tar", so it can be a program name with args.
6665 set dummy tar; ac_word=$2
6666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6668 if test "${ac_cv_path_TAR+set}" = set; then
6669 echo $ECHO_N "(cached) $ECHO_C" >&6
6673 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6680 test -z "$as_dir" && as_dir=.
6681 for ac_exec_ext in '' $ac_executable_extensions; do
6682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6683 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6691 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6696 if test -n "$TAR"; then
6697 { echo "$as_me:$LINENO: result: $TAR" >&5
6698 echo "${ECHO_T}$TAR" >&6; }
6700 { echo "$as_me:$LINENO: result: no" >&5
6701 echo "${ECHO_T}no" >&6; }
6705 # Extract the first word of "pwd", so it can be a program name with args.
6706 set dummy pwd; ac_word=$2
6707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6709 if test "${ac_cv_path_BINPWD+set}" = set; then
6710 echo $ECHO_N "(cached) $ECHO_C" >&6
6714 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6721 test -z "$as_dir" && as_dir=.
6722 for ac_exec_ext in '' $ac_executable_extensions; do
6723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6724 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6732 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6736 BINPWD=$ac_cv_path_BINPWD
6737 if test -n "$BINPWD"; then
6738 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6739 echo "${ECHO_T}$BINPWD" >&6; }
6741 { echo "$as_me:$LINENO: result: no" >&5
6742 echo "${ECHO_T}no" >&6; }
6747 # Extract the first word of "Graphviz", so it can be a program name with args.
6748 set dummy Graphviz; ac_word=$2
6749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6751 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6752 echo $ECHO_N "(cached) $ECHO_C" >&6
6756 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763 test -z "$as_dir" && as_dir=.
6764 for ac_exec_ext in '' $ac_executable_extensions; do
6765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6766 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6774 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6778 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6779 if test -n "$GRAPHVIZ"; then
6780 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6781 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6783 { echo "$as_me:$LINENO: result: no" >&5
6784 echo "${ECHO_T}no" >&6; }
6788 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6790 cat >>confdefs.h <<\_ACEOF
6791 #define HAVE_GRAPHVIZ 1
6794 if test "$llvm_cv_os_type" = "MingW" ; then
6795 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6798 cat >>confdefs.h <<_ACEOF
6799 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6803 # Extract the first word of "dot", so it can be a program name with args.
6804 set dummy dot; ac_word=$2
6805 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6807 if test "${ac_cv_path_DOT+set}" = set; then
6808 echo $ECHO_N "(cached) $ECHO_C" >&6
6812 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819 test -z "$as_dir" && as_dir=.
6820 for ac_exec_ext in '' $ac_executable_extensions; do
6821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6822 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6830 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6835 if test -n "$DOT"; then
6836 { echo "$as_me:$LINENO: result: $DOT" >&5
6837 echo "${ECHO_T}$DOT" >&6; }
6839 { echo "$as_me:$LINENO: result: no" >&5
6840 echo "${ECHO_T}no" >&6; }
6844 if test "$DOT" != "echo dot" ; then
6846 cat >>confdefs.h <<\_ACEOF
6850 if test "$llvm_cv_os_type" = "MingW" ; then
6851 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6854 cat >>confdefs.h <<_ACEOF
6855 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6859 # Extract the first word of "fdp", so it can be a program name with args.
6860 set dummy fdp; ac_word=$2
6861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6863 if test "${ac_cv_path_FDP+set}" = set; then
6864 echo $ECHO_N "(cached) $ECHO_C" >&6
6868 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6875 test -z "$as_dir" && as_dir=.
6876 for ac_exec_ext in '' $ac_executable_extensions; do
6877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6878 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6886 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6891 if test -n "$FDP"; then
6892 { echo "$as_me:$LINENO: result: $FDP" >&5
6893 echo "${ECHO_T}$FDP" >&6; }
6895 { echo "$as_me:$LINENO: result: no" >&5
6896 echo "${ECHO_T}no" >&6; }
6900 if test "$FDP" != "echo fdp" ; then
6902 cat >>confdefs.h <<\_ACEOF
6906 if test "$llvm_cv_os_type" = "MingW" ; then
6907 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6910 cat >>confdefs.h <<_ACEOF
6911 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6915 # Extract the first word of "neato", so it can be a program name with args.
6916 set dummy neato; ac_word=$2
6917 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6919 if test "${ac_cv_path_NEATO+set}" = set; then
6920 echo $ECHO_N "(cached) $ECHO_C" >&6
6924 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6931 test -z "$as_dir" && as_dir=.
6932 for ac_exec_ext in '' $ac_executable_extensions; do
6933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6934 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6942 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6946 NEATO=$ac_cv_path_NEATO
6947 if test -n "$NEATO"; then
6948 { echo "$as_me:$LINENO: result: $NEATO" >&5
6949 echo "${ECHO_T}$NEATO" >&6; }
6951 { echo "$as_me:$LINENO: result: no" >&5
6952 echo "${ECHO_T}no" >&6; }
6956 if test "$NEATO" != "echo neato" ; then
6958 cat >>confdefs.h <<\_ACEOF
6959 #define HAVE_NEATO 1
6962 if test "$llvm_cv_os_type" = "MingW" ; then
6963 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6966 cat >>confdefs.h <<_ACEOF
6967 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6971 # Extract the first word of "twopi", so it can be a program name with args.
6972 set dummy twopi; ac_word=$2
6973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6975 if test "${ac_cv_path_TWOPI+set}" = set; then
6976 echo $ECHO_N "(cached) $ECHO_C" >&6
6980 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987 test -z "$as_dir" && as_dir=.
6988 for ac_exec_ext in '' $ac_executable_extensions; do
6989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6990 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6998 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7002 TWOPI=$ac_cv_path_TWOPI
7003 if test -n "$TWOPI"; then
7004 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7005 echo "${ECHO_T}$TWOPI" >&6; }
7007 { echo "$as_me:$LINENO: result: no" >&5
7008 echo "${ECHO_T}no" >&6; }
7012 if test "$TWOPI" != "echo twopi" ; then
7014 cat >>confdefs.h <<\_ACEOF
7015 #define HAVE_TWOPI 1
7018 if test "$llvm_cv_os_type" = "MingW" ; then
7019 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7022 cat >>confdefs.h <<_ACEOF
7023 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7027 # Extract the first word of "circo", so it can be a program name with args.
7028 set dummy circo; ac_word=$2
7029 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7031 if test "${ac_cv_path_CIRCO+set}" = set; then
7032 echo $ECHO_N "(cached) $ECHO_C" >&6
7036 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043 test -z "$as_dir" && as_dir=.
7044 for ac_exec_ext in '' $ac_executable_extensions; do
7045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7046 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7054 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7058 CIRCO=$ac_cv_path_CIRCO
7059 if test -n "$CIRCO"; then
7060 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7061 echo "${ECHO_T}$CIRCO" >&6; }
7063 { echo "$as_me:$LINENO: result: no" >&5
7064 echo "${ECHO_T}no" >&6; }
7068 if test "$CIRCO" != "echo circo" ; then
7070 cat >>confdefs.h <<\_ACEOF
7071 #define HAVE_CIRCO 1
7074 if test "$llvm_cv_os_type" = "MingW" ; then
7075 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7078 cat >>confdefs.h <<_ACEOF
7079 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7083 for ac_prog in gv gsview32
7085 # Extract the first word of "$ac_prog", so it can be a program name with args.
7086 set dummy $ac_prog; ac_word=$2
7087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7089 if test "${ac_cv_path_GV+set}" = set; then
7090 echo $ECHO_N "(cached) $ECHO_C" >&6
7094 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7101 test -z "$as_dir" && as_dir=.
7102 for ac_exec_ext in '' $ac_executable_extensions; do
7103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7104 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7116 if test -n "$GV"; then
7117 { echo "$as_me:$LINENO: result: $GV" >&5
7118 echo "${ECHO_T}$GV" >&6; }
7120 { echo "$as_me:$LINENO: result: no" >&5
7121 echo "${ECHO_T}no" >&6; }
7125 test -n "$GV" && break
7127 test -n "$GV" || GV="echo gv"
7129 if test "$GV" != "echo gv" ; then
7131 cat >>confdefs.h <<\_ACEOF
7135 if test "$llvm_cv_os_type" = "MingW" ; then
7136 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7139 cat >>confdefs.h <<_ACEOF
7140 #define LLVM_PATH_GV "$GV${EXEEXT}"
7144 # Extract the first word of "dotty", so it can be a program name with args.
7145 set dummy dotty; ac_word=$2
7146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7148 if test "${ac_cv_path_DOTTY+set}" = set; then
7149 echo $ECHO_N "(cached) $ECHO_C" >&6
7153 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7160 test -z "$as_dir" && as_dir=.
7161 for ac_exec_ext in '' $ac_executable_extensions; do
7162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7163 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7171 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7175 DOTTY=$ac_cv_path_DOTTY
7176 if test -n "$DOTTY"; then
7177 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7178 echo "${ECHO_T}$DOTTY" >&6; }
7180 { echo "$as_me:$LINENO: result: no" >&5
7181 echo "${ECHO_T}no" >&6; }
7185 if test "$DOTTY" != "echo dotty" ; then
7187 cat >>confdefs.h <<\_ACEOF
7188 #define HAVE_DOTTY 1
7191 if test "$llvm_cv_os_type" = "MingW" ; then
7192 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7195 cat >>confdefs.h <<_ACEOF
7196 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7200 # Extract the first word of "xdot.py", so it can be a program name with args.
7201 set dummy xdot.py; ac_word=$2
7202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7204 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7205 echo $ECHO_N "(cached) $ECHO_C" >&6
7209 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216 test -z "$as_dir" && as_dir=.
7217 for ac_exec_ext in '' $ac_executable_extensions; do
7218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7219 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7227 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7231 XDOT_PY=$ac_cv_path_XDOT_PY
7232 if test -n "$XDOT_PY"; then
7233 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7234 echo "${ECHO_T}$XDOT_PY" >&6; }
7236 { echo "$as_me:$LINENO: result: no" >&5
7237 echo "${ECHO_T}no" >&6; }
7241 if test "$XDOT_PY" != "echo xdot.py" ; then
7243 cat >>confdefs.h <<\_ACEOF
7244 #define HAVE_XDOT_PY 1
7247 if test "$llvm_cv_os_type" = "MingW" ; then
7248 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7251 cat >>confdefs.h <<_ACEOF
7252 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7257 # Find a good install program. We prefer a C program (faster),
7258 # so one script is as good as another. But avoid the broken or
7259 # incompatible versions:
7260 # SysV /etc/install, /usr/sbin/install
7261 # SunOS /usr/etc/install
7262 # IRIX /sbin/install
7264 # AmigaOS /C/install, which installs bootblocks on floppy discs
7265 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7266 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7267 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7268 # OS/2's system install, which has a completely different semantic
7269 # ./install, which can be erroneously created by make from ./install.sh.
7270 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7271 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7272 if test -z "$INSTALL"; then
7273 if test "${ac_cv_path_install+set}" = set; then
7274 echo $ECHO_N "(cached) $ECHO_C" >&6
7276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7280 test -z "$as_dir" && as_dir=.
7281 # Account for people who put trailing slashes in PATH elements.
7283 ./ | .// | /cC/* | \
7284 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7285 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7288 # OSF1 and SCO ODT 3.0 have their own names for install.
7289 # Don't use installbsd from OSF since it installs stuff as root
7291 for ac_prog in ginstall scoinst install; do
7292 for ac_exec_ext in '' $ac_executable_extensions; do
7293 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7294 if test $ac_prog = install &&
7295 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7296 # AIX install. It has an incompatible calling convention.
7298 elif test $ac_prog = install &&
7299 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7300 # program-specific install script used by HP pwplus--don't use.
7303 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7316 if test "${ac_cv_path_install+set}" = set; then
7317 INSTALL=$ac_cv_path_install
7319 # As a last resort, use the slow shell script. Don't cache a
7320 # value for INSTALL within a source directory, because that will
7321 # break other packages using the cache if that directory is
7322 # removed, or if the value is a relative name.
7323 INSTALL=$ac_install_sh
7326 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7327 echo "${ECHO_T}$INSTALL" >&6; }
7329 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7330 # It thinks the first close brace ends the variable substitution.
7331 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7333 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7335 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7338 [\\/$]* | ?:[\\/]* ) ;;
7339 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7342 # Extract the first word of "bzip2", so it can be a program name with args.
7343 set dummy bzip2; ac_word=$2
7344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7346 if test "${ac_cv_path_BZIP2+set}" = set; then
7347 echo $ECHO_N "(cached) $ECHO_C" >&6
7351 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358 test -z "$as_dir" && as_dir=.
7359 for ac_exec_ext in '' $ac_executable_extensions; do
7360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7361 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7372 BZIP2=$ac_cv_path_BZIP2
7373 if test -n "$BZIP2"; then
7374 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7375 echo "${ECHO_T}$BZIP2" >&6; }
7377 { echo "$as_me:$LINENO: result: no" >&5
7378 echo "${ECHO_T}no" >&6; }
7382 # Extract the first word of "cat", so it can be a program name with args.
7383 set dummy cat; ac_word=$2
7384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7386 if test "${ac_cv_path_CAT+set}" = set; then
7387 echo $ECHO_N "(cached) $ECHO_C" >&6
7391 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398 test -z "$as_dir" && as_dir=.
7399 for ac_exec_ext in '' $ac_executable_extensions; do
7400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7401 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7413 if test -n "$CAT"; then
7414 { echo "$as_me:$LINENO: result: $CAT" >&5
7415 echo "${ECHO_T}$CAT" >&6; }
7417 { echo "$as_me:$LINENO: result: no" >&5
7418 echo "${ECHO_T}no" >&6; }
7422 # Extract the first word of "doxygen", so it can be a program name with args.
7423 set dummy doxygen; ac_word=$2
7424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7426 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7427 echo $ECHO_N "(cached) $ECHO_C" >&6
7431 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7438 test -z "$as_dir" && as_dir=.
7439 for ac_exec_ext in '' $ac_executable_extensions; do
7440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7441 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7452 DOXYGEN=$ac_cv_path_DOXYGEN
7453 if test -n "$DOXYGEN"; then
7454 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7455 echo "${ECHO_T}$DOXYGEN" >&6; }
7457 { echo "$as_me:$LINENO: result: no" >&5
7458 echo "${ECHO_T}no" >&6; }
7462 # Extract the first word of "groff", so it can be a program name with args.
7463 set dummy groff; ac_word=$2
7464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7466 if test "${ac_cv_path_GROFF+set}" = set; then
7467 echo $ECHO_N "(cached) $ECHO_C" >&6
7471 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7478 test -z "$as_dir" && as_dir=.
7479 for ac_exec_ext in '' $ac_executable_extensions; do
7480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7481 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7492 GROFF=$ac_cv_path_GROFF
7493 if test -n "$GROFF"; then
7494 { echo "$as_me:$LINENO: result: $GROFF" >&5
7495 echo "${ECHO_T}$GROFF" >&6; }
7497 { echo "$as_me:$LINENO: result: no" >&5
7498 echo "${ECHO_T}no" >&6; }
7502 # Extract the first word of "gzip", so it can be a program name with args.
7503 set dummy gzip; ac_word=$2
7504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7506 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7507 echo $ECHO_N "(cached) $ECHO_C" >&6
7511 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7518 test -z "$as_dir" && as_dir=.
7519 for ac_exec_ext in '' $ac_executable_extensions; do
7520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7521 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7532 GZIPBIN=$ac_cv_path_GZIPBIN
7533 if test -n "$GZIPBIN"; then
7534 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7535 echo "${ECHO_T}$GZIPBIN" >&6; }
7537 { echo "$as_me:$LINENO: result: no" >&5
7538 echo "${ECHO_T}no" >&6; }
7542 # Extract the first word of "pdfroff", so it can be a program name with args.
7543 set dummy pdfroff; ac_word=$2
7544 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7546 if test "${ac_cv_path_PDFROFF+set}" = set; then
7547 echo $ECHO_N "(cached) $ECHO_C" >&6
7551 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7558 test -z "$as_dir" && as_dir=.
7559 for ac_exec_ext in '' $ac_executable_extensions; do
7560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7561 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7572 PDFROFF=$ac_cv_path_PDFROFF
7573 if test -n "$PDFROFF"; then
7574 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7575 echo "${ECHO_T}$PDFROFF" >&6; }
7577 { echo "$as_me:$LINENO: result: no" >&5
7578 echo "${ECHO_T}no" >&6; }
7582 # Extract the first word of "zip", so it can be a program name with args.
7583 set dummy zip; ac_word=$2
7584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7586 if test "${ac_cv_path_ZIP+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7591 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598 test -z "$as_dir" && as_dir=.
7599 for ac_exec_ext in '' $ac_executable_extensions; do
7600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7601 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7613 if test -n "$ZIP"; then
7614 { echo "$as_me:$LINENO: result: $ZIP" >&5
7615 echo "${ECHO_T}$ZIP" >&6; }
7617 { echo "$as_me:$LINENO: result: no" >&5
7618 echo "${ECHO_T}no" >&6; }
7622 for ac_prog in ocamlc
7624 # Extract the first word of "$ac_prog", so it can be a program name with args.
7625 set dummy $ac_prog; ac_word=$2
7626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7628 if test "${ac_cv_path_OCAMLC+set}" = set; then
7629 echo $ECHO_N "(cached) $ECHO_C" >&6
7633 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7640 test -z "$as_dir" && as_dir=.
7641 for ac_exec_ext in '' $ac_executable_extensions; do
7642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7643 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7654 OCAMLC=$ac_cv_path_OCAMLC
7655 if test -n "$OCAMLC"; then
7656 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7657 echo "${ECHO_T}$OCAMLC" >&6; }
7659 { echo "$as_me:$LINENO: result: no" >&5
7660 echo "${ECHO_T}no" >&6; }
7664 test -n "$OCAMLC" && break
7667 for ac_prog in ocamlopt
7669 # Extract the first word of "$ac_prog", so it can be a program name with args.
7670 set dummy $ac_prog; ac_word=$2
7671 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7673 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7674 echo $ECHO_N "(cached) $ECHO_C" >&6
7678 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7685 test -z "$as_dir" && as_dir=.
7686 for ac_exec_ext in '' $ac_executable_extensions; do
7687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7688 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7699 OCAMLOPT=$ac_cv_path_OCAMLOPT
7700 if test -n "$OCAMLOPT"; then
7701 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7702 echo "${ECHO_T}$OCAMLOPT" >&6; }
7704 { echo "$as_me:$LINENO: result: no" >&5
7705 echo "${ECHO_T}no" >&6; }
7709 test -n "$OCAMLOPT" && break
7712 for ac_prog in ocamldep
7714 # Extract the first word of "$ac_prog", so it can be a program name with args.
7715 set dummy $ac_prog; ac_word=$2
7716 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7718 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7719 echo $ECHO_N "(cached) $ECHO_C" >&6
7723 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7730 test -z "$as_dir" && as_dir=.
7731 for ac_exec_ext in '' $ac_executable_extensions; do
7732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7733 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7744 OCAMLDEP=$ac_cv_path_OCAMLDEP
7745 if test -n "$OCAMLDEP"; then
7746 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7747 echo "${ECHO_T}$OCAMLDEP" >&6; }
7749 { echo "$as_me:$LINENO: result: no" >&5
7750 echo "${ECHO_T}no" >&6; }
7754 test -n "$OCAMLDEP" && break
7757 for ac_prog in ocamldoc
7759 # Extract the first word of "$ac_prog", so it can be a program name with args.
7760 set dummy $ac_prog; ac_word=$2
7761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7763 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7764 echo $ECHO_N "(cached) $ECHO_C" >&6
7768 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7775 test -z "$as_dir" && as_dir=.
7776 for ac_exec_ext in '' $ac_executable_extensions; do
7777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7778 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7789 OCAMLDOC=$ac_cv_path_OCAMLDOC
7790 if test -n "$OCAMLDOC"; then
7791 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7792 echo "${ECHO_T}$OCAMLDOC" >&6; }
7794 { echo "$as_me:$LINENO: result: no" >&5
7795 echo "${ECHO_T}no" >&6; }
7799 test -n "$OCAMLDOC" && break
7802 for ac_prog in gas as
7804 # Extract the first word of "$ac_prog", so it can be a program name with args.
7805 set dummy $ac_prog; ac_word=$2
7806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7808 if test "${ac_cv_path_GAS+set}" = set; then
7809 echo $ECHO_N "(cached) $ECHO_C" >&6
7813 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7820 test -z "$as_dir" && as_dir=.
7821 for ac_exec_ext in '' $ac_executable_extensions; do
7822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7823 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7835 if test -n "$GAS"; then
7836 { echo "$as_me:$LINENO: result: $GAS" >&5
7837 echo "${ECHO_T}$GAS" >&6; }
7839 { echo "$as_me:$LINENO: result: no" >&5
7840 echo "${ECHO_T}no" >&6; }
7844 test -n "$GAS" && break
7848 { echo "$as_me:$LINENO: checking for linker version" >&5
7849 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7850 if test "${llvm_cv_link_version+set}" = set; then
7851 echo $ECHO_N "(cached) $ECHO_C" >&6
7854 version_string="$(ld -v 2>&1 | head -1)"
7857 if (echo "$version_string" | grep -q "ld64"); then
7858 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7860 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7864 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7865 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7867 cat >>confdefs.h <<_ACEOF
7868 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7873 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7874 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7875 if test "${llvm_cv_link_use_r+set}" = set; then
7876 echo $ECHO_N "(cached) $ECHO_C" >&6
7879 ac_cpp='$CPP $CPPFLAGS'
7880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7885 CFLAGS="$CFLAGS -Wl,-R."
7886 cat >conftest.$ac_ext <<_ACEOF
7889 cat confdefs.h >>conftest.$ac_ext
7890 cat >>conftest.$ac_ext <<_ACEOF
7891 /* end confdefs.h. */
7901 rm -f conftest.$ac_objext conftest$ac_exeext
7902 if { (ac_try="$ac_link"
7904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7905 *) ac_try_echo=$ac_try;;
7907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7908 (eval "$ac_link") 2>conftest.er1
7910 grep -v '^ *+' conftest.er1 >conftest.err
7912 cat conftest.err >&5
7913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914 (exit $ac_status); } &&
7915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7916 { (case "(($ac_try" in
7917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7918 *) ac_try_echo=$ac_try;;
7920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7921 (eval "$ac_try") 2>&5
7923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924 (exit $ac_status); }; } &&
7925 { ac_try='test -s conftest$ac_exeext'
7926 { (case "(($ac_try" in
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_try") 2>&5
7933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); }; }; then
7935 llvm_cv_link_use_r=yes
7937 echo "$as_me: failed program was:" >&5
7938 sed 's/^/| /' conftest.$ac_ext >&5
7940 llvm_cv_link_use_r=no
7943 rm -f core conftest.err conftest.$ac_objext \
7944 conftest$ac_exeext conftest.$ac_ext
7947 ac_cpp='$CPP $CPPFLAGS'
7948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7954 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7955 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7956 if test "$llvm_cv_link_use_r" = yes ; then
7958 cat >>confdefs.h <<\_ACEOF
7959 #define HAVE_LINK_R 1
7965 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7966 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7967 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7968 echo $ECHO_N "(cached) $ECHO_C" >&6
7971 ac_cpp='$CPP $CPPFLAGS'
7972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7977 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7978 cat >conftest.$ac_ext <<_ACEOF
7981 cat confdefs.h >>conftest.$ac_ext
7982 cat >>conftest.$ac_ext <<_ACEOF
7983 /* end confdefs.h. */
7993 rm -f conftest.$ac_objext conftest$ac_exeext
7994 if { (ac_try="$ac_link"
7996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7997 *) ac_try_echo=$ac_try;;
7999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8000 (eval "$ac_link") 2>conftest.er1
8002 grep -v '^ *+' conftest.er1 >conftest.err
8004 cat conftest.err >&5
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); } &&
8007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8008 { (case "(($ac_try" in
8009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8010 *) ac_try_echo=$ac_try;;
8012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8013 (eval "$ac_try") 2>&5
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); }; } &&
8017 { ac_try='test -s conftest$ac_exeext'
8018 { (case "(($ac_try" in
8019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8020 *) ac_try_echo=$ac_try;;
8022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8023 (eval "$ac_try") 2>&5
8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026 (exit $ac_status); }; }; then
8027 llvm_cv_link_use_export_dynamic=yes
8029 echo "$as_me: failed program was:" >&5
8030 sed 's/^/| /' conftest.$ac_ext >&5
8032 llvm_cv_link_use_export_dynamic=no
8035 rm -f core conftest.err conftest.$ac_objext \
8036 conftest$ac_exeext conftest.$ac_ext
8039 ac_cpp='$CPP $CPPFLAGS'
8040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8046 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8047 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8048 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8050 cat >>confdefs.h <<\_ACEOF
8051 #define HAVE_LINK_EXPORT_DYNAMIC 1
8057 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8058 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8059 if test "${llvm_cv_link_use_version_script+set}" = set; then
8060 echo $ECHO_N "(cached) $ECHO_C" >&6
8063 ac_cpp='$CPP $CPPFLAGS'
8064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8070 # The following code is from the autoconf manual,
8071 # "11.13: Limitations of Usual Tools".
8072 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8073 # Use mktemp if possible; otherwise fall back on mkdir,
8074 # with $RANDOM to make collisions less likely.
8078 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8080 test -n "$tmp" && test -d "$tmp"
8082 tmp=$TMPDIR/foo$$-$RANDOM
8083 (umask 077 && mkdir "$tmp")
8086 echo "{" > "$tmp/export.map"
8087 echo " global: main;" >> "$tmp/export.map"
8088 echo " local: *;" >> "$tmp/export.map"
8089 echo "};" >> "$tmp/export.map"
8091 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8092 cat >conftest.$ac_ext <<_ACEOF
8095 cat confdefs.h >>conftest.$ac_ext
8096 cat >>conftest.$ac_ext <<_ACEOF
8097 /* end confdefs.h. */
8107 rm -f conftest.$ac_objext conftest$ac_exeext
8108 if { (ac_try="$ac_link"
8110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8111 *) ac_try_echo=$ac_try;;
8113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8114 (eval "$ac_link") 2>conftest.er1
8116 grep -v '^ *+' conftest.er1 >conftest.err
8118 cat conftest.err >&5
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); } &&
8121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8122 { (case "(($ac_try" in
8123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8124 *) ac_try_echo=$ac_try;;
8126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8127 (eval "$ac_try") 2>&5
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); }; } &&
8131 { ac_try='test -s conftest$ac_exeext'
8132 { (case "(($ac_try" in
8133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134 *) ac_try_echo=$ac_try;;
8136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8137 (eval "$ac_try") 2>&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); }; }; then
8141 llvm_cv_link_use_version_script=yes
8143 echo "$as_me: failed program was:" >&5
8144 sed 's/^/| /' conftest.$ac_ext >&5
8146 llvm_cv_link_use_version_script=no
8149 rm -f core conftest.err conftest.$ac_objext \
8150 conftest$ac_exeext conftest.$ac_ext
8151 rm "$tmp/export.map"
8155 ac_cpp='$CPP $CPPFLAGS'
8156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8162 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8163 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8164 if test "$llvm_cv_link_use_version_script" = yes ; then
8165 HAVE_LINK_VERSION_SCRIPT=1
8172 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8173 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8174 if test "${ac_cv_c_const+set}" = set; then
8175 echo $ECHO_N "(cached) $ECHO_C" >&6
8177 cat >conftest.$ac_ext <<_ACEOF
8180 cat confdefs.h >>conftest.$ac_ext
8181 cat >>conftest.$ac_ext <<_ACEOF
8182 /* end confdefs.h. */
8187 /* FIXME: Include the comments suggested by Paul. */
8189 /* Ultrix mips cc rejects this. */
8190 typedef int charset[2];
8192 /* SunOS 4.1.1 cc rejects this. */
8193 char const *const *ccp;
8195 /* NEC SVR4.0.2 mips cc rejects this. */
8196 struct point {int x, y;};
8197 static struct point const zero = {0,0};
8198 /* AIX XL C 1.02.0.0 rejects this.
8199 It does not let you subtract one const X* pointer from another in
8200 an arm of an if-expression whose if-part is not a constant
8202 const char *g = "string";
8203 ccp = &g + (g ? g-g : 0);
8204 /* HPUX 7.0 cc rejects these. */
8207 ccp = (char const *const *) p;
8208 { /* SCO 3.2v4 cc rejects this. */
8210 char const *s = 0 ? (char *) 0 : (char const *) 0;
8215 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8217 const int *foo = &x[0];
8220 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8221 typedef const int *iptr;
8225 { /* AIX XL C 1.02.0.0 rejects this saying
8226 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8227 struct s { int j; const int *ap[3]; };
8228 struct s *b; b->j = 5;
8230 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8234 return !x[0] && !zero.x;
8241 rm -f conftest.$ac_objext
8242 if { (ac_try="$ac_compile"
8244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8245 *) ac_try_echo=$ac_try;;
8247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8248 (eval "$ac_compile") 2>conftest.er1
8250 grep -v '^ *+' conftest.er1 >conftest.err
8252 cat conftest.err >&5
8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); } &&
8255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8256 { (case "(($ac_try" in
8257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8258 *) ac_try_echo=$ac_try;;
8260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8261 (eval "$ac_try") 2>&5
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); }; } &&
8265 { ac_try='test -s conftest.$ac_objext'
8266 { (case "(($ac_try" in
8267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8268 *) ac_try_echo=$ac_try;;
8270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8271 (eval "$ac_try") 2>&5
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); }; }; then
8277 echo "$as_me: failed program was:" >&5
8278 sed 's/^/| /' conftest.$ac_ext >&5
8283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8285 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8286 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8287 if test $ac_cv_c_const = no; then
8289 cat >>confdefs.h <<\_ACEOF
8301 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8302 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8303 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8304 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8306 echo $ECHO_N "(cached) $ECHO_C" >&6
8308 cat >conftest.$ac_ext <<_ACEOF
8311 cat confdefs.h >>conftest.$ac_ext
8312 cat >>conftest.$ac_ext <<_ACEOF
8313 /* end confdefs.h. */
8314 #include <sys/types.h>
8326 rm -f conftest.$ac_objext
8327 if { (ac_try="$ac_compile"
8329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8330 *) ac_try_echo=$ac_try;;
8332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8333 (eval "$ac_compile") 2>conftest.er1
8335 grep -v '^ *+' conftest.er1 >conftest.err
8337 cat conftest.err >&5
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); } &&
8340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8341 { (case "(($ac_try" in
8342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8343 *) ac_try_echo=$ac_try;;
8345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8346 (eval "$ac_try") 2>&5
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); }; } &&
8350 { ac_try='test -s conftest.$ac_objext'
8351 { (case "(($ac_try" in
8352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8353 *) ac_try_echo=$ac_try;;
8355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8356 (eval "$ac_try") 2>&5
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); }; }; then
8360 eval "$as_ac_Header=yes"
8362 echo "$as_me: failed program was:" >&5
8363 sed 's/^/| /' conftest.$ac_ext >&5
8365 eval "$as_ac_Header=no"
8368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8370 ac_res=`eval echo '${'$as_ac_Header'}'`
8371 { echo "$as_me:$LINENO: result: $ac_res" >&5
8372 echo "${ECHO_T}$ac_res" >&6; }
8373 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8374 cat >>confdefs.h <<_ACEOF
8375 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8378 ac_header_dirent=$ac_hdr; break
8382 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8383 if test $ac_header_dirent = dirent.h; then
8384 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8385 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8386 if test "${ac_cv_search_opendir+set}" = set; then
8387 echo $ECHO_N "(cached) $ECHO_C" >&6
8389 ac_func_search_save_LIBS=$LIBS
8390 cat >conftest.$ac_ext <<_ACEOF
8393 cat confdefs.h >>conftest.$ac_ext
8394 cat >>conftest.$ac_ext <<_ACEOF
8395 /* end confdefs.h. */
8397 /* Override any GCC internal prototype to avoid an error.
8398 Use char because int might match the return type of a GCC
8399 builtin and then its argument prototype would still apply. */
8412 for ac_lib in '' dir; do
8413 if test -z "$ac_lib"; then
8414 ac_res="none required"
8417 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8419 rm -f conftest.$ac_objext conftest$ac_exeext
8420 if { (ac_try="$ac_link"
8422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8423 *) ac_try_echo=$ac_try;;
8425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8426 (eval "$ac_link") 2>conftest.er1
8428 grep -v '^ *+' conftest.er1 >conftest.err
8430 cat conftest.err >&5
8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432 (exit $ac_status); } &&
8433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8434 { (case "(($ac_try" in
8435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8436 *) ac_try_echo=$ac_try;;
8438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8439 (eval "$ac_try") 2>&5
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); }; } &&
8443 { ac_try='test -s conftest$ac_exeext'
8444 { (case "(($ac_try" in
8445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8446 *) ac_try_echo=$ac_try;;
8448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8449 (eval "$ac_try") 2>&5
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); }; }; then
8453 ac_cv_search_opendir=$ac_res
8455 echo "$as_me: failed program was:" >&5
8456 sed 's/^/| /' conftest.$ac_ext >&5
8461 rm -f core conftest.err conftest.$ac_objext \
8463 if test "${ac_cv_search_opendir+set}" = set; then
8467 if test "${ac_cv_search_opendir+set}" = set; then
8470 ac_cv_search_opendir=no
8473 LIBS=$ac_func_search_save_LIBS
8475 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8476 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8477 ac_res=$ac_cv_search_opendir
8478 if test "$ac_res" != no; then
8479 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8484 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8485 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8486 if test "${ac_cv_search_opendir+set}" = set; then
8487 echo $ECHO_N "(cached) $ECHO_C" >&6
8489 ac_func_search_save_LIBS=$LIBS
8490 cat >conftest.$ac_ext <<_ACEOF
8493 cat confdefs.h >>conftest.$ac_ext
8494 cat >>conftest.$ac_ext <<_ACEOF
8495 /* end confdefs.h. */
8497 /* Override any GCC internal prototype to avoid an error.
8498 Use char because int might match the return type of a GCC
8499 builtin and then its argument prototype would still apply. */
8512 for ac_lib in '' x; do
8513 if test -z "$ac_lib"; then
8514 ac_res="none required"
8517 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8519 rm -f conftest.$ac_objext conftest$ac_exeext
8520 if { (ac_try="$ac_link"
8522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8523 *) ac_try_echo=$ac_try;;
8525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8526 (eval "$ac_link") 2>conftest.er1
8528 grep -v '^ *+' conftest.er1 >conftest.err
8530 cat conftest.err >&5
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); } &&
8533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8534 { (case "(($ac_try" in
8535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8536 *) ac_try_echo=$ac_try;;
8538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8539 (eval "$ac_try") 2>&5
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); }; } &&
8543 { ac_try='test -s conftest$ac_exeext'
8544 { (case "(($ac_try" in
8545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8546 *) ac_try_echo=$ac_try;;
8548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8549 (eval "$ac_try") 2>&5
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); }; }; then
8553 ac_cv_search_opendir=$ac_res
8555 echo "$as_me: failed program was:" >&5
8556 sed 's/^/| /' conftest.$ac_ext >&5
8561 rm -f core conftest.err conftest.$ac_objext \
8563 if test "${ac_cv_search_opendir+set}" = set; then
8567 if test "${ac_cv_search_opendir+set}" = set; then
8570 ac_cv_search_opendir=no
8573 LIBS=$ac_func_search_save_LIBS
8575 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8576 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8577 ac_res=$ac_cv_search_opendir
8578 if test "$ac_res" != no; then
8579 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8586 for ac_header in dlfcn.h
8588 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8589 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8590 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8593 echo $ECHO_N "(cached) $ECHO_C" >&6
8595 ac_res=`eval echo '${'$as_ac_Header'}'`
8596 { echo "$as_me:$LINENO: result: $ac_res" >&5
8597 echo "${ECHO_T}$ac_res" >&6; }
8599 # Is the header compilable?
8600 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8601 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8602 cat >conftest.$ac_ext <<_ACEOF
8605 cat confdefs.h >>conftest.$ac_ext
8606 cat >>conftest.$ac_ext <<_ACEOF
8607 /* end confdefs.h. */
8608 $ac_includes_default
8609 #include <$ac_header>
8611 rm -f conftest.$ac_objext
8612 if { (ac_try="$ac_compile"
8614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8615 *) ac_try_echo=$ac_try;;
8617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8618 (eval "$ac_compile") 2>conftest.er1
8620 grep -v '^ *+' conftest.er1 >conftest.err
8622 cat conftest.err >&5
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); } &&
8625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8626 { (case "(($ac_try" in
8627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8628 *) ac_try_echo=$ac_try;;
8630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8631 (eval "$ac_try") 2>&5
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); }; } &&
8635 { ac_try='test -s conftest.$ac_objext'
8636 { (case "(($ac_try" in
8637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8638 *) ac_try_echo=$ac_try;;
8640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8641 (eval "$ac_try") 2>&5
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); }; }; then
8645 ac_header_compiler=yes
8647 echo "$as_me: failed program was:" >&5
8648 sed 's/^/| /' conftest.$ac_ext >&5
8650 ac_header_compiler=no
8653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8654 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8655 echo "${ECHO_T}$ac_header_compiler" >&6; }
8657 # Is the header present?
8658 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8659 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8660 cat >conftest.$ac_ext <<_ACEOF
8663 cat confdefs.h >>conftest.$ac_ext
8664 cat >>conftest.$ac_ext <<_ACEOF
8665 /* end confdefs.h. */
8666 #include <$ac_header>
8668 if { (ac_try="$ac_cpp conftest.$ac_ext"
8670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8671 *) ac_try_echo=$ac_try;;
8673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8674 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8676 grep -v '^ *+' conftest.er1 >conftest.err
8678 cat conftest.err >&5
8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); } >/dev/null; then
8681 if test -s conftest.err; then
8682 ac_cpp_err=$ac_c_preproc_warn_flag
8683 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8690 if test -z "$ac_cpp_err"; then
8691 ac_header_preproc=yes
8693 echo "$as_me: failed program was:" >&5
8694 sed 's/^/| /' conftest.$ac_ext >&5
8696 ac_header_preproc=no
8699 rm -f conftest.err conftest.$ac_ext
8700 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8701 echo "${ECHO_T}$ac_header_preproc" >&6; }
8703 # So? What about this header?
8704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8706 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8707 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8708 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8709 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8710 ac_header_preproc=yes
8713 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8714 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8715 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8716 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8717 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8718 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8719 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8720 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8722 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8723 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8724 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8726 ## ------------------------------------ ##
8727 ## Report this to http://llvm.org/bugs/ ##
8728 ## ------------------------------------ ##
8730 ) | sed "s/^/$as_me: WARNING: /" >&2
8733 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8736 echo $ECHO_N "(cached) $ECHO_C" >&6
8738 eval "$as_ac_Header=\$ac_header_preproc"
8740 ac_res=`eval echo '${'$as_ac_Header'}'`
8741 { echo "$as_me:$LINENO: result: $ac_res" >&5
8742 echo "${ECHO_T}$ac_res" >&6; }
8745 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8746 cat >>confdefs.h <<_ACEOF
8747 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8754 # Check whether --enable-ltdl-install was given.
8755 if test "${enable_ltdl_install+set}" = set; then
8756 enableval=$enable_ltdl_install;
8762 if test x"${enable_ltdl_install-no}" != xno; then
8764 INSTALL_LTDL_FALSE='#'
8766 INSTALL_LTDL_TRUE='#'
8772 if test x"${enable_ltdl_convenience-no}" != xno; then
8773 CONVENIENCE_LTDL_TRUE=
8774 CONVENIENCE_LTDL_FALSE='#'
8776 CONVENIENCE_LTDL_TRUE='#'
8777 CONVENIENCE_LTDL_FALSE=
8781 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8782 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8784 libname_spec='lib$name'
8792 shlibpath_overrides_runpath=unknown
8794 dynamic_linker="$host_os ld.so"
8795 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8796 if test "$GCC" = yes; then
8797 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8798 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8799 # if the path contains ";" then we assume it to be the separator
8800 # otherwise default to the standard path separator (i.e. ":") - it is
8801 # assumed that no part of a normal pathname contains ";" but that should
8802 # okay in the real world where ";" in dirpaths is itself problematic.
8803 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8805 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8808 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8810 need_lib_prefix=unknown
8811 hardcode_into_libs=no
8813 # when you set need_version to no, make sure it does not cause -set_version
8814 # flags to be left without arguments
8815 need_version=unknown
8820 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8821 shlibpath_var=LIBPATH
8823 # AIX 3 has no versioning support, so we append a major version to the name.
8824 soname_spec='${libname}${release}${shared_ext}$major'
8831 hardcode_into_libs=yes
8832 if test "$host_cpu" = ia64; then
8833 # AIX 5 supports IA64
8834 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8835 shlibpath_var=LD_LIBRARY_PATH
8837 # With GCC up to 2.95.x, collect2 would create an import file
8838 # for dependence libraries. The import file would start with
8839 # the line `#! .'. This would cause the generated library to
8840 # depend on `.', always an invalid library. This was fixed in
8841 # development snapshots of GCC prior to 3.0.
8843 aix4 | aix4.[01] | aix4.[01].*)
8844 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8846 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8853 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8854 # soname into executable. Probably we can add versioning support to
8855 # collect2, so additional links can be useful in future.
8856 if test "$aix_use_runtimelinking" = yes; then
8857 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8858 # instead of lib<name>.a to let people know that these are not
8859 # typical AIX shared libraries.
8860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8862 # We preserve .a as extension for shared libraries through AIX4.2
8863 # and later when we are not doing run time linking.
8864 library_names_spec='${libname}${release}.a $libname.a'
8865 soname_spec='${libname}${release}${shared_ext}$major'
8867 shlibpath_var=LIBPATH
8872 library_names_spec='$libname.ixlibrary $libname.a'
8873 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8874 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'
8878 library_names_spec='${libname}${shared_ext}'
8879 dynamic_linker="$host_os ld.so"
8880 shlibpath_var=LIBRARY_PATH
8886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8887 soname_spec='${libname}${release}${shared_ext}$major'
8888 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8889 shlibpath_var=LD_LIBRARY_PATH
8890 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8891 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8892 # the default ld.so.conf also contains /usr/contrib/lib and
8893 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8894 # libtool to hard-code these into programs
8897 cygwin* | mingw* | pw32*)
8898 version_type=windows
8903 case $GCC,$host_os in
8904 yes,cygwin* | yes,mingw* | yes,pw32*)
8905 library_names_spec='$libname.dll.a'
8906 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8907 postinstall_cmds='base_file=`basename \${file}`~
8908 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8909 dldir=$destdir/`dirname \$dlpath`~
8910 test -d \$dldir || mkdir -p \$dldir~
8911 $install_prog $dir/$dlname \$dldir/$dlname~
8912 chmod a+x \$dldir/$dlname'
8913 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8914 dlpath=$dir/\$dldll~
8916 shlibpath_overrides_runpath=yes
8920 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8921 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8922 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8925 # MinGW DLLs use traditional 'lib' prefix
8926 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8927 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8928 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8929 # It is most probably a Windows format PATH printed by
8930 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8931 # path with ; separators, and with drive letters. We can handle the
8932 # drive letters (cygwin fileutils understands them), so leave them,
8933 # especially as we might pass files found there to a mingw objdump,
8934 # which wouldn't understand a cygwinified path. Ahh.
8935 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8937 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8941 # pw32 DLLs use 'pw' prefix rather than 'lib'
8942 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8948 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8951 dynamic_linker='Win32 ld.exe'
8952 # FIXME: first we should search . and the directory the executable is in
8956 darwin* | rhapsody*)
8957 dynamic_linker="$host_os dyld"
8961 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8962 soname_spec='${libname}${release}${major}$shared_ext'
8963 shlibpath_overrides_runpath=yes
8964 shlibpath_var=DYLD_LIBRARY_PATH
8965 shrext_cmds='.dylib'
8966 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8967 if test "$GCC" = yes; then
8968 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"`
8970 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8972 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8980 soname_spec='${libname}${release}${shared_ext}$major'
8981 shlibpath_var=LD_LIBRARY_PATH
8992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8993 soname_spec='${libname}${release}${shared_ext}$major'
8994 shlibpath_var=LD_LIBRARY_PATH
8995 shlibpath_overrides_runpath=no
8996 hardcode_into_libs=yes
8997 dynamic_linker='GNU ld.so'
9000 freebsd* | dragonfly*)
9001 # DragonFly does not have aout. When/if they implement a new
9002 # versioning mechanism, adjust this.
9003 if test -x /usr/bin/objformat; then
9004 objformat=`/usr/bin/objformat`
9007 freebsd[123].*) objformat=aout ;;
9011 version_type=freebsd-$objformat
9012 case $version_type in
9014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9019 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9023 shlibpath_var=LD_LIBRARY_PATH
9026 shlibpath_overrides_runpath=yes
9028 freebsd3.[01]* | freebsdelf3.[01]*)
9029 shlibpath_overrides_runpath=yes
9030 hardcode_into_libs=yes
9032 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9033 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9034 shlibpath_overrides_runpath=no
9035 hardcode_into_libs=yes
9037 freebsd*) # from 4.6 on
9038 shlibpath_overrides_runpath=yes
9039 hardcode_into_libs=yes
9048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9049 soname_spec='${libname}${release}${shared_ext}$major'
9050 shlibpath_var=LD_LIBRARY_PATH
9051 hardcode_into_libs=yes
9054 hpux9* | hpux10* | hpux11*)
9055 # Give a soname corresponding to the major version so that dld.sl refuses to
9056 # link against other versions.
9063 hardcode_into_libs=yes
9064 dynamic_linker="$host_os dld.so"
9065 shlibpath_var=LD_LIBRARY_PATH
9066 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9068 soname_spec='${libname}${release}${shared_ext}$major'
9069 if test "X$HPUX_IA64_MODE" = X32; then
9070 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9072 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9074 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9078 hardcode_into_libs=yes
9079 dynamic_linker="$host_os dld.sl"
9080 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9081 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9083 soname_spec='${libname}${release}${shared_ext}$major'
9084 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9085 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9089 dynamic_linker="$host_os dld.sl"
9090 shlibpath_var=SHLIB_PATH
9091 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9093 soname_spec='${libname}${release}${shared_ext}$major'
9096 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9097 postinstall_cmds='chmod 555 $lib'
9104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9105 soname_spec='${libname}${release}${shared_ext}$major'
9106 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9107 shlibpath_var=LD_LIBRARY_PATH
9108 shlibpath_overrides_runpath=no
9109 hardcode_into_libs=yes
9112 irix5* | irix6* | nonstopux*)
9114 nonstopux*) version_type=nonstopux ;;
9116 if test "$lt_cv_prog_gnu_ld" = yes; then
9124 soname_spec='${libname}${release}${shared_ext}$major'
9125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9127 irix5* | nonstopux*)
9131 case $LD in # libtool.m4 will add one of these switches to LD
9132 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9133 libsuff= shlibsuff= libmagic=32-bit;;
9134 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9135 libsuff=32 shlibsuff=N32 libmagic=N32;;
9136 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9137 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9138 *) libsuff= shlibsuff= libmagic=never-match;;
9142 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9143 shlibpath_overrides_runpath=no
9144 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9145 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9146 hardcode_into_libs=yes
9149 # No shared lib support for Linux oldld, aout, or coff.
9150 linux*oldld* | linux*aout* | linux*coff*)
9154 # This must be Linux ELF.
9159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9160 soname_spec='${libname}${release}${shared_ext}$major'
9161 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9162 shlibpath_var=LD_LIBRARY_PATH
9163 shlibpath_overrides_runpath=no
9164 # This implies no fast_install, which is unacceptable.
9165 # Some rework will be needed to allow for fast_install
9166 # before this can be enabled.
9167 hardcode_into_libs=yes
9169 # Append ld.so.conf contents to the search path
9170 if test -f /etc/ld.so.conf; then
9171 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' ' '`
9172 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9175 # We used to test for /lib/ld.so.1 and disable shared libraries on
9176 # powerpc, because MkLinux only supported shared libraries with the
9177 # GNU dynamic linker. Since this was broken with cross compilers,
9178 # most powerpc-linux boxes support dynamic linking these days and
9179 # people can always --disable-shared, the test was removed, and we
9180 # assume the GNU/Linux dynamic linker is in use.
9181 dynamic_linker='GNU/Linux ld.so'
9188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9189 soname_spec='${libname}${release}${shared_ext}$major'
9190 shlibpath_var=LD_LIBRARY_PATH
9191 shlibpath_overrides_runpath=no
9192 hardcode_into_libs=yes
9193 dynamic_linker='GNU ld.so'
9200 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9202 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9203 dynamic_linker='NetBSD (a.out) ld.so'
9205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9206 soname_spec='${libname}${release}${shared_ext}$major'
9207 dynamic_linker='NetBSD ld.elf_so'
9209 shlibpath_var=LD_LIBRARY_PATH
9210 shlibpath_overrides_runpath=yes
9211 hardcode_into_libs=yes
9216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9217 shlibpath_var=LD_LIBRARY_PATH
9218 shlibpath_overrides_runpath=yes
9225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9226 soname_spec='${libname}${release}${shared_ext}$major'
9227 shlibpath_var=LD_LIBRARY_PATH
9228 shlibpath_overrides_runpath=yes
9233 sys_lib_dlsearch_path_spec="/usr/lib"
9235 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9237 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9238 *) need_version=no ;;
9240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9241 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9242 shlibpath_var=LD_LIBRARY_PATH
9243 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9245 openbsd2.[89] | openbsd2.[89].*)
9246 shlibpath_overrides_runpath=no
9249 shlibpath_overrides_runpath=yes
9253 shlibpath_overrides_runpath=yes
9258 libname_spec='$name'
9261 library_names_spec='$libname${shared_ext} $libname.a'
9262 dynamic_linker='OS/2 ld.exe'
9263 shlibpath_var=LIBPATH
9266 osf3* | osf4* | osf5*)
9270 soname_spec='${libname}${release}${shared_ext}$major'
9271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9272 shlibpath_var=LD_LIBRARY_PATH
9273 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9274 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9282 soname_spec='${libname}${release}${shared_ext}$major'
9283 shlibpath_var=LD_LIBRARY_PATH
9284 shlibpath_overrides_runpath=yes
9285 hardcode_into_libs=yes
9286 # ldd complains unless libraries are executable
9287 postinstall_cmds='chmod +x $lib'
9292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9293 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9294 shlibpath_var=LD_LIBRARY_PATH
9295 shlibpath_overrides_runpath=yes
9296 if test "$with_gnu_ld" = yes; then
9304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9305 soname_spec='${libname}${release}${shared_ext}$major'
9306 shlibpath_var=LD_LIBRARY_PATH
9307 case $host_vendor in
9309 shlibpath_overrides_runpath=no
9311 export_dynamic_flag_spec='${wl}-Blargedynsym'
9312 runpath_var=LD_RUN_PATH
9320 shlibpath_overrides_runpath=no
9321 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9327 if test -d /usr/nec ;then
9329 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9330 soname_spec='$libname${shared_ext}.$major'
9331 shlibpath_var=LD_LIBRARY_PATH
9335 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9336 version_type=freebsd-elf
9339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9340 soname_spec='${libname}${release}${shared_ext}$major'
9341 shlibpath_var=LD_LIBRARY_PATH
9342 hardcode_into_libs=yes
9343 if test "$with_gnu_ld" = yes; then
9344 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9345 shlibpath_overrides_runpath=no
9347 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9348 shlibpath_overrides_runpath=yes
9351 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9355 sys_lib_dlsearch_path_spec='/usr/lib'
9360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9361 soname_spec='${libname}${release}${shared_ext}$major'
9362 shlibpath_var=LD_LIBRARY_PATH
9369 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9370 echo "${ECHO_T}$dynamic_linker" >&6; }
9371 test "$dynamic_linker" = no && can_build_shared=no
9373 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9374 if test "$GCC" = yes; then
9375 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9379 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9380 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9381 if test "${libltdl_cv_shlibext+set}" = set; then
9382 echo $ECHO_N "(cached) $ECHO_C" >&6
9386 eval libltdl_cv_shlibext=$shrext_cmds
9389 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9390 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9391 if test -n "$libltdl_cv_shlibext"; then
9393 cat >>confdefs.h <<_ACEOF
9394 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9400 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9401 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9402 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9403 echo $ECHO_N "(cached) $ECHO_C" >&6
9405 libltdl_cv_shlibpath_var="$shlibpath_var"
9407 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9408 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9409 if test -n "$libltdl_cv_shlibpath_var"; then
9411 cat >>confdefs.h <<_ACEOF
9412 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9418 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9419 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9420 if test "${libltdl_cv_sys_search_path+set}" = set; then
9421 echo $ECHO_N "(cached) $ECHO_C" >&6
9423 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9425 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9426 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9427 if test -n "$libltdl_cv_sys_search_path"; then
9429 for dir in $libltdl_cv_sys_search_path; do
9430 if test -z "$sys_search_path"; then
9431 sys_search_path="$dir"
9433 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9437 cat >>confdefs.h <<_ACEOF
9438 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9443 { echo "$as_me:$LINENO: checking for objdir" >&5
9444 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9445 if test "${libltdl_cv_objdir+set}" = set; then
9446 echo $ECHO_N "(cached) $ECHO_C" >&6
9448 libltdl_cv_objdir="$objdir"
9449 if test -n "$objdir"; then
9452 rm -f .libs 2>/dev/null
9453 mkdir .libs 2>/dev/null
9454 if test -d .libs; then
9455 libltdl_cv_objdir=.libs
9457 # MS-DOS does not allow filenames that begin with a dot.
9458 libltdl_cv_objdir=_libs
9460 rmdir .libs 2>/dev/null
9464 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9465 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9467 cat >>confdefs.h <<_ACEOF
9468 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9476 # Check for command to grab the raw symbol name followed by C symbol from nm.
9477 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9478 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9479 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9480 echo $ECHO_N "(cached) $ECHO_C" >&6
9483 # These are sane defaults that work on at least a few old systems.
9484 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9486 # Character class describing NM global symbol codes.
9487 symcode='[BCDEGRST]'
9489 # Regexp to match symbols that can be accessed directly from C.
9490 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9492 # Transform an extracted symbol line into a proper C declaration
9493 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9495 # Transform an extracted symbol line into symbol name and symbol address
9496 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'"
9498 # Define system-specific variables.
9503 cygwin* | mingw* | pw32*)
9504 symcode='[ABCDGISTW]'
9506 hpux*) # Its linker distinguishes data from code symbols
9507 if test "$host_cpu" = ia64; then
9508 symcode='[ABCDEGRST]'
9510 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9511 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'"
9514 if test "$host_cpu" = ia64; then
9515 symcode='[ABCDGIRSTW]'
9516 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9517 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'"
9521 symcode='[BCDEGRST]'
9524 symcode='[BCDEGQRST]'
9535 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9543 # Handle CRLF in mingw tool chain
9547 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9551 # If we're using GNU nm, then use its standard symbol codes.
9552 case `$NM -V 2>&1` in
9553 *GNU* | *'with BFD'*)
9554 symcode='[ABCDGIRSTW]' ;;
9557 # Try without a prefix undercore, then with it.
9558 for ac_symprfx in "" "_"; do
9560 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9561 symxfrm="\\1 $ac_symprfx\\2 \\2"
9563 # Write the raw and C identifiers.
9564 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9566 # Check to see that the pipe works correctly.
9570 cat > conftest.$ac_ext <<EOF
9575 void nm_test_func(){}
9579 int main(){nm_test_var='a';nm_test_func();return(0);}
9582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9583 (eval $ac_compile) 2>&5
9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); }; then
9587 # Now try to grab the symbols.
9589 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9590 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 (exit $ac_status); } && test -s "$nlist"; then
9594 # Try sorting and uniquifying the output.
9595 if sort "$nlist" | uniq > "$nlist"T; then
9596 mv -f "$nlist"T "$nlist"
9601 # Make sure that we snagged all the symbols we need.
9602 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9603 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9604 cat <<EOF > conftest.$ac_ext
9610 # Now generate the symbol file.
9611 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9613 cat <<EOF >> conftest.$ac_ext
9614 #if defined (__STDC__) && __STDC__
9615 # define lt_ptr_t void *
9617 # define lt_ptr_t char *
9621 /* The mapping between symbol names and symbols. */
9626 lt_preloaded_symbols[] =
9629 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9630 cat <<\EOF >> conftest.$ac_ext
9638 # Now try linking the two files.
9639 mv conftest.$ac_objext conftstm.$ac_objext
9640 lt_save_LIBS="$LIBS"
9641 lt_save_CFLAGS="$CFLAGS"
9642 LIBS="conftstm.$ac_objext"
9643 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9645 (eval $ac_link) 2>&5
9647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9651 LIBS="$lt_save_LIBS"
9652 CFLAGS="$lt_save_CFLAGS"
9654 echo "cannot find nm_test_func in $nlist" >&5
9657 echo "cannot find nm_test_var in $nlist" >&5
9660 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9663 echo "$progname: failed program was:" >&5
9664 cat conftest.$ac_ext >&5
9666 rm -f conftest* conftst*
9668 # Do not use the global_symbol_pipe unless it works.
9669 if test "$pipe_works" = yes; then
9672 lt_cv_sys_global_symbol_pipe=
9678 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9679 lt_cv_sys_global_symbol_to_cdecl=
9681 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9682 { echo "$as_me:$LINENO: result: failed" >&5
9683 echo "${ECHO_T}failed" >&6; }
9685 { echo "$as_me:$LINENO: result: ok" >&5
9686 echo "${ECHO_T}ok" >&6; }
9690 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9691 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9692 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9693 echo $ECHO_N "(cached) $ECHO_C" >&6
9695 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9696 libltdl_cv_preloaded_symbols=yes
9698 libltdl_cv_preloaded_symbols=no
9702 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9703 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9704 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9706 cat >>confdefs.h <<\_ACEOF
9707 #define HAVE_PRELOADED_SYMBOLS 1
9715 ac_cpp='$CPP $CPPFLAGS'
9716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9721 { echo "$as_me:$LINENO: checking for shl_load" >&5
9722 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9723 if test "${ac_cv_func_shl_load+set}" = set; then
9724 echo $ECHO_N "(cached) $ECHO_C" >&6
9726 cat >conftest.$ac_ext <<_ACEOF
9729 cat confdefs.h >>conftest.$ac_ext
9730 cat >>conftest.$ac_ext <<_ACEOF
9731 /* end confdefs.h. */
9732 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9734 #define shl_load innocuous_shl_load
9736 /* System header to define __stub macros and hopefully few prototypes,
9737 which can conflict with char shl_load (); below.
9738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9739 <limits.h> exists even on freestanding compilers. */
9742 # include <limits.h>
9744 # include <assert.h>
9749 /* Override any GCC internal prototype to avoid an error.
9750 Use char because int might match the return type of a GCC
9751 builtin and then its argument prototype would still apply. */
9756 /* The GNU C library defines this for functions which it implements
9757 to always fail with ENOSYS. Some functions are actually named
9758 something starting with __ and the normal name is an alias. */
9759 #if defined __stub_shl_load || defined __stub___shl_load
9771 rm -f conftest.$ac_objext conftest$ac_exeext
9772 if { (ac_try="$ac_link"
9774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9775 *) ac_try_echo=$ac_try;;
9777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9778 (eval "$ac_link") 2>conftest.er1
9780 grep -v '^ *+' conftest.er1 >conftest.err
9782 cat conftest.err >&5
9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784 (exit $ac_status); } &&
9785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9786 { (case "(($ac_try" in
9787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9788 *) ac_try_echo=$ac_try;;
9790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9791 (eval "$ac_try") 2>&5
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); }; } &&
9795 { ac_try='test -s conftest$ac_exeext'
9796 { (case "(($ac_try" in
9797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9798 *) ac_try_echo=$ac_try;;
9800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9801 (eval "$ac_try") 2>&5
9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); }; }; then
9805 ac_cv_func_shl_load=yes
9807 echo "$as_me: failed program was:" >&5
9808 sed 's/^/| /' conftest.$ac_ext >&5
9810 ac_cv_func_shl_load=no
9813 rm -f core conftest.err conftest.$ac_objext \
9814 conftest$ac_exeext conftest.$ac_ext
9816 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9817 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9818 if test $ac_cv_func_shl_load = yes; then
9820 cat >>confdefs.h <<\_ACEOF
9821 #define HAVE_SHL_LOAD 1
9825 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9826 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9827 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9828 echo $ECHO_N "(cached) $ECHO_C" >&6
9830 ac_check_lib_save_LIBS=$LIBS
9832 cat >conftest.$ac_ext <<_ACEOF
9835 cat confdefs.h >>conftest.$ac_ext
9836 cat >>conftest.$ac_ext <<_ACEOF
9837 /* end confdefs.h. */
9839 /* Override any GCC internal prototype to avoid an error.
9840 Use char because int might match the return type of a GCC
9841 builtin and then its argument prototype would still apply. */
9854 rm -f conftest.$ac_objext conftest$ac_exeext
9855 if { (ac_try="$ac_link"
9857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9858 *) ac_try_echo=$ac_try;;
9860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9861 (eval "$ac_link") 2>conftest.er1
9863 grep -v '^ *+' conftest.er1 >conftest.err
9865 cat conftest.err >&5
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); } &&
9868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9869 { (case "(($ac_try" in
9870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9871 *) ac_try_echo=$ac_try;;
9873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9874 (eval "$ac_try") 2>&5
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); }; } &&
9878 { ac_try='test -s conftest$ac_exeext'
9879 { (case "(($ac_try" in
9880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9881 *) ac_try_echo=$ac_try;;
9883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9884 (eval "$ac_try") 2>&5
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); }; }; then
9888 ac_cv_lib_dld_shl_load=yes
9890 echo "$as_me: failed program was:" >&5
9891 sed 's/^/| /' conftest.$ac_ext >&5
9893 ac_cv_lib_dld_shl_load=no
9896 rm -f core conftest.err conftest.$ac_objext \
9897 conftest$ac_exeext conftest.$ac_ext
9898 LIBS=$ac_check_lib_save_LIBS
9900 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9901 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9902 if test $ac_cv_lib_dld_shl_load = yes; then
9904 cat >>confdefs.h <<\_ACEOF
9905 #define HAVE_SHL_LOAD 1
9908 LIBADD_DL="$LIBADD_DL -ldld"
9910 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9911 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9912 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9913 echo $ECHO_N "(cached) $ECHO_C" >&6
9915 ac_check_lib_save_LIBS=$LIBS
9917 cat >conftest.$ac_ext <<_ACEOF
9920 cat confdefs.h >>conftest.$ac_ext
9921 cat >>conftest.$ac_ext <<_ACEOF
9922 /* end confdefs.h. */
9924 /* Override any GCC internal prototype to avoid an error.
9925 Use char because int might match the return type of a GCC
9926 builtin and then its argument prototype would still apply. */
9939 rm -f conftest.$ac_objext conftest$ac_exeext
9940 if { (ac_try="$ac_link"
9942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9943 *) ac_try_echo=$ac_try;;
9945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9946 (eval "$ac_link") 2>conftest.er1
9948 grep -v '^ *+' conftest.er1 >conftest.err
9950 cat conftest.err >&5
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); } &&
9953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9954 { (case "(($ac_try" in
9955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9956 *) ac_try_echo=$ac_try;;
9958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9959 (eval "$ac_try") 2>&5
9961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962 (exit $ac_status); }; } &&
9963 { ac_try='test -s conftest$ac_exeext'
9964 { (case "(($ac_try" in
9965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9966 *) ac_try_echo=$ac_try;;
9968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9969 (eval "$ac_try") 2>&5
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); }; }; then
9973 ac_cv_lib_dl_dlopen=yes
9975 echo "$as_me: failed program was:" >&5
9976 sed 's/^/| /' conftest.$ac_ext >&5
9978 ac_cv_lib_dl_dlopen=no
9981 rm -f core conftest.err conftest.$ac_objext \
9982 conftest$ac_exeext conftest.$ac_ext
9983 LIBS=$ac_check_lib_save_LIBS
9985 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9986 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9987 if test $ac_cv_lib_dl_dlopen = yes; then
9989 cat >>confdefs.h <<\_ACEOF
9990 #define HAVE_LIBDL 1
9993 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9995 cat >conftest.$ac_ext <<_ACEOF
9998 cat confdefs.h >>conftest.$ac_ext
9999 cat >>conftest.$ac_ext <<_ACEOF
10000 /* end confdefs.h. */
10002 # include <dlfcn.h>
10013 rm -f conftest.$ac_objext conftest$ac_exeext
10014 if { (ac_try="$ac_link"
10015 case "(($ac_try" in
10016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10017 *) ac_try_echo=$ac_try;;
10019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10020 (eval "$ac_link") 2>conftest.er1
10022 grep -v '^ *+' conftest.er1 >conftest.err
10024 cat conftest.err >&5
10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); } &&
10027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10028 { (case "(($ac_try" in
10029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10030 *) ac_try_echo=$ac_try;;
10032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10033 (eval "$ac_try") 2>&5
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); }; } &&
10037 { ac_try='test -s conftest$ac_exeext'
10038 { (case "(($ac_try" in
10039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10040 *) ac_try_echo=$ac_try;;
10042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10043 (eval "$ac_try") 2>&5
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); }; }; then
10048 cat >>confdefs.h <<\_ACEOF
10049 #define HAVE_LIBDL 1
10051 libltdl_cv_func_dlopen="yes"
10053 echo "$as_me: failed program was:" >&5
10054 sed 's/^/| /' conftest.$ac_ext >&5
10056 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10057 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10058 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10059 echo $ECHO_N "(cached) $ECHO_C" >&6
10061 ac_check_lib_save_LIBS=$LIBS
10062 LIBS="-lsvld $LIBS"
10063 cat >conftest.$ac_ext <<_ACEOF
10066 cat confdefs.h >>conftest.$ac_ext
10067 cat >>conftest.$ac_ext <<_ACEOF
10068 /* end confdefs.h. */
10070 /* Override any GCC internal prototype to avoid an error.
10071 Use char because int might match the return type of a GCC
10072 builtin and then its argument prototype would still apply. */
10085 rm -f conftest.$ac_objext conftest$ac_exeext
10086 if { (ac_try="$ac_link"
10087 case "(($ac_try" in
10088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10089 *) ac_try_echo=$ac_try;;
10091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10092 (eval "$ac_link") 2>conftest.er1
10094 grep -v '^ *+' conftest.er1 >conftest.err
10096 cat conftest.err >&5
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); } &&
10099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10100 { (case "(($ac_try" in
10101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10102 *) ac_try_echo=$ac_try;;
10104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10105 (eval "$ac_try") 2>&5
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); }; } &&
10109 { ac_try='test -s conftest$ac_exeext'
10110 { (case "(($ac_try" in
10111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10112 *) ac_try_echo=$ac_try;;
10114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10115 (eval "$ac_try") 2>&5
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); }; }; then
10119 ac_cv_lib_svld_dlopen=yes
10121 echo "$as_me: failed program was:" >&5
10122 sed 's/^/| /' conftest.$ac_ext >&5
10124 ac_cv_lib_svld_dlopen=no
10127 rm -f core conftest.err conftest.$ac_objext \
10128 conftest$ac_exeext conftest.$ac_ext
10129 LIBS=$ac_check_lib_save_LIBS
10131 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10132 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10133 if test $ac_cv_lib_svld_dlopen = yes; then
10135 cat >>confdefs.h <<\_ACEOF
10136 #define HAVE_LIBDL 1
10139 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10141 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10142 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10143 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10144 echo $ECHO_N "(cached) $ECHO_C" >&6
10146 ac_check_lib_save_LIBS=$LIBS
10148 cat >conftest.$ac_ext <<_ACEOF
10151 cat confdefs.h >>conftest.$ac_ext
10152 cat >>conftest.$ac_ext <<_ACEOF
10153 /* end confdefs.h. */
10155 /* Override any GCC internal prototype to avoid an error.
10156 Use char because int might match the return type of a GCC
10157 builtin and then its argument prototype would still apply. */
10165 return dld_link ();
10170 rm -f conftest.$ac_objext conftest$ac_exeext
10171 if { (ac_try="$ac_link"
10172 case "(($ac_try" in
10173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10174 *) ac_try_echo=$ac_try;;
10176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10177 (eval "$ac_link") 2>conftest.er1
10179 grep -v '^ *+' conftest.er1 >conftest.err
10181 cat conftest.err >&5
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); } &&
10184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10185 { (case "(($ac_try" in
10186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10187 *) ac_try_echo=$ac_try;;
10189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10190 (eval "$ac_try") 2>&5
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); }; } &&
10194 { ac_try='test -s conftest$ac_exeext'
10195 { (case "(($ac_try" in
10196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10197 *) ac_try_echo=$ac_try;;
10199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10200 (eval "$ac_try") 2>&5
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); }; }; then
10204 ac_cv_lib_dld_dld_link=yes
10206 echo "$as_me: failed program was:" >&5
10207 sed 's/^/| /' conftest.$ac_ext >&5
10209 ac_cv_lib_dld_dld_link=no
10212 rm -f core conftest.err conftest.$ac_objext \
10213 conftest$ac_exeext conftest.$ac_ext
10214 LIBS=$ac_check_lib_save_LIBS
10216 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10217 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10218 if test $ac_cv_lib_dld_dld_link = yes; then
10220 cat >>confdefs.h <<\_ACEOF
10224 LIBADD_DL="$LIBADD_DL -ldld"
10226 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10227 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10228 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10229 echo $ECHO_N "(cached) $ECHO_C" >&6
10231 cat >conftest.$ac_ext <<_ACEOF
10234 cat confdefs.h >>conftest.$ac_ext
10235 cat >>conftest.$ac_ext <<_ACEOF
10236 /* end confdefs.h. */
10237 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10239 #define _dyld_func_lookup innocuous__dyld_func_lookup
10241 /* System header to define __stub macros and hopefully few prototypes,
10242 which can conflict with char _dyld_func_lookup (); below.
10243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10244 <limits.h> exists even on freestanding compilers. */
10247 # include <limits.h>
10249 # include <assert.h>
10252 #undef _dyld_func_lookup
10254 /* Override any GCC internal prototype to avoid an error.
10255 Use char because int might match the return type of a GCC
10256 builtin and then its argument prototype would still apply. */
10260 char _dyld_func_lookup ();
10261 /* The GNU C library defines this for functions which it implements
10262 to always fail with ENOSYS. Some functions are actually named
10263 something starting with __ and the normal name is an alias. */
10264 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10271 return _dyld_func_lookup ();
10276 rm -f conftest.$ac_objext conftest$ac_exeext
10277 if { (ac_try="$ac_link"
10278 case "(($ac_try" in
10279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10280 *) ac_try_echo=$ac_try;;
10282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10283 (eval "$ac_link") 2>conftest.er1
10285 grep -v '^ *+' conftest.er1 >conftest.err
10287 cat conftest.err >&5
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); } &&
10290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10291 { (case "(($ac_try" in
10292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10293 *) ac_try_echo=$ac_try;;
10295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10296 (eval "$ac_try") 2>&5
10298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299 (exit $ac_status); }; } &&
10300 { ac_try='test -s conftest$ac_exeext'
10301 { (case "(($ac_try" in
10302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10303 *) ac_try_echo=$ac_try;;
10305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10306 (eval "$ac_try") 2>&5
10308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309 (exit $ac_status); }; }; then
10310 ac_cv_func__dyld_func_lookup=yes
10312 echo "$as_me: failed program was:" >&5
10313 sed 's/^/| /' conftest.$ac_ext >&5
10315 ac_cv_func__dyld_func_lookup=no
10318 rm -f core conftest.err conftest.$ac_objext \
10319 conftest$ac_exeext conftest.$ac_ext
10321 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10322 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10323 if test $ac_cv_func__dyld_func_lookup = yes; then
10325 cat >>confdefs.h <<\_ACEOF
10326 #define HAVE_DYLD 1
10340 rm -f core conftest.err conftest.$ac_objext \
10341 conftest$ac_exeext conftest.$ac_ext
10352 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10354 lt_save_LIBS="$LIBS"
10355 LIBS="$LIBS $LIBADD_DL"
10357 for ac_func in dlerror
10359 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10360 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10361 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10362 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10363 echo $ECHO_N "(cached) $ECHO_C" >&6
10365 cat >conftest.$ac_ext <<_ACEOF
10368 cat confdefs.h >>conftest.$ac_ext
10369 cat >>conftest.$ac_ext <<_ACEOF
10370 /* end confdefs.h. */
10371 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10372 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10373 #define $ac_func innocuous_$ac_func
10375 /* System header to define __stub macros and hopefully few prototypes,
10376 which can conflict with char $ac_func (); below.
10377 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10378 <limits.h> exists even on freestanding compilers. */
10381 # include <limits.h>
10383 # include <assert.h>
10388 /* Override any GCC internal prototype to avoid an error.
10389 Use char because int might match the return type of a GCC
10390 builtin and then its argument prototype would still apply. */
10395 /* The GNU C library defines this for functions which it implements
10396 to always fail with ENOSYS. Some functions are actually named
10397 something starting with __ and the normal name is an alias. */
10398 #if defined __stub_$ac_func || defined __stub___$ac_func
10405 return $ac_func ();
10410 rm -f conftest.$ac_objext conftest$ac_exeext
10411 if { (ac_try="$ac_link"
10412 case "(($ac_try" in
10413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10414 *) ac_try_echo=$ac_try;;
10416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10417 (eval "$ac_link") 2>conftest.er1
10419 grep -v '^ *+' conftest.er1 >conftest.err
10421 cat conftest.err >&5
10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); } &&
10424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10425 { (case "(($ac_try" in
10426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10427 *) ac_try_echo=$ac_try;;
10429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10430 (eval "$ac_try") 2>&5
10432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433 (exit $ac_status); }; } &&
10434 { ac_try='test -s conftest$ac_exeext'
10435 { (case "(($ac_try" in
10436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10437 *) ac_try_echo=$ac_try;;
10439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10440 (eval "$ac_try") 2>&5
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); }; }; then
10444 eval "$as_ac_var=yes"
10446 echo "$as_me: failed program was:" >&5
10447 sed 's/^/| /' conftest.$ac_ext >&5
10449 eval "$as_ac_var=no"
10452 rm -f core conftest.err conftest.$ac_objext \
10453 conftest$ac_exeext conftest.$ac_ext
10455 ac_res=`eval echo '${'$as_ac_var'}'`
10456 { echo "$as_me:$LINENO: result: $ac_res" >&5
10457 echo "${ECHO_T}$ac_res" >&6; }
10458 if test `eval echo '${'$as_ac_var'}'` = yes; then
10459 cat >>confdefs.h <<_ACEOF
10460 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10466 LIBS="$lt_save_LIBS"
10469 ac_cpp='$CPP $CPPFLAGS'
10470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10476 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10477 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10478 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10479 echo $ECHO_N "(cached) $ECHO_C" >&6
10481 ac_cv_sys_symbol_underscore=no
10482 cat > conftest.$ac_ext <<EOF
10483 void nm_test_func(){}
10484 int main(){nm_test_func;return 0;}
10486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10487 (eval $ac_compile) 2>&5
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); }; then
10491 # Now try to grab the symbols.
10492 ac_nlist=conftest.nm
10493 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10494 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497 (exit $ac_status); } && test -s "$ac_nlist"; then
10498 # See whether the symbols have a leading underscore.
10499 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10500 ac_cv_sys_symbol_underscore=yes
10502 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10505 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10509 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10512 echo "configure: failed program was:" >&5
10518 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10519 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10522 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10523 if test x"$libltdl_cv_func_dlopen" = xyes ||
10524 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10525 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10526 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10527 if test "${libltdl_cv_need_uscore+set}" = set; then
10528 echo $ECHO_N "(cached) $ECHO_C" >&6
10530 libltdl_cv_need_uscore=unknown
10532 LIBS="$LIBS $LIBADD_DL"
10533 if test "$cross_compiling" = yes; then :
10534 libltdl_cv_need_uscore=cross
10536 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10537 lt_status=$lt_dlunknown
10538 cat > conftest.$ac_ext <<EOF
10539 #line 10539 "configure"
10540 #include "confdefs.h"
10549 # define LT_DLGLOBAL RTLD_GLOBAL
10552 # define LT_DLGLOBAL DL_GLOBAL
10554 # define LT_DLGLOBAL 0
10558 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10559 find out it does not work in some platform. */
10560 #ifndef LT_DLLAZY_OR_NOW
10562 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10565 # define LT_DLLAZY_OR_NOW DL_LAZY
10568 # define LT_DLLAZY_OR_NOW RTLD_NOW
10571 # define LT_DLLAZY_OR_NOW DL_NOW
10573 # define LT_DLLAZY_OR_NOW 0
10581 extern "C" void exit (int);
10584 void fnord() { int i=42;}
10587 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10588 int status = $lt_dlunknown;
10592 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10593 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10594 /* dlclose (self); */
10602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10603 (eval $ac_link) 2>&5
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10607 (./conftest; exit; ) >&5 2>/dev/null
10609 case x$lt_status in
10610 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10611 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10612 x$lt_dlunknown|x*) ;;
10615 # compilation failed
10624 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10625 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10629 if test x"$libltdl_cv_need_uscore" = xyes; then
10631 cat >>confdefs.h <<\_ACEOF
10632 #define NEED_USCORE 1
10638 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10639 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10640 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10641 echo $ECHO_N "(cached) $ECHO_C" >&6
10643 # PORTME does your system automatically load deplibs for dlopen?
10644 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10645 # For now, we just catch OSes we know something about -- in the
10646 # future, we'll try test this programmatically.
10647 libltdl_cv_sys_dlopen_deplibs=unknown
10649 aix3*|aix4.1.*|aix4.2.*)
10650 # Unknown whether this is true for these versions of AIX, but
10651 # we want this `case' here to explicitly catch those versions.
10652 libltdl_cv_sys_dlopen_deplibs=unknown
10655 libltdl_cv_sys_dlopen_deplibs=yes
10658 # Assuming the user has installed a libdl from somewhere, this is true
10659 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10660 libltdl_cv_sys_dlopen_deplibs=yes
10662 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10663 # GNU and its variants, using gnu ld.so (Glibc)
10664 libltdl_cv_sys_dlopen_deplibs=yes
10667 libltdl_cv_sys_dlopen_deplibs=yes
10670 libltdl_cv_sys_dlopen_deplibs=yes
10672 irix[12345]*|irix6.[01]*)
10673 # Catch all versions of IRIX before 6.2, and indicate that we don't
10674 # know how it worked for any of those versions.
10675 libltdl_cv_sys_dlopen_deplibs=unknown
10678 # The case above catches anything before 6.2, and it's known that
10679 # at 6.2 and later dlopen does load deplibs.
10680 libltdl_cv_sys_dlopen_deplibs=yes
10683 libltdl_cv_sys_dlopen_deplibs=yes
10686 libltdl_cv_sys_dlopen_deplibs=yes
10689 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10690 # it did *not* use an RPATH in a shared library to find objects the
10691 # library depends on, so we explicitly say `no'.
10692 libltdl_cv_sys_dlopen_deplibs=no
10694 osf5.0|osf5.0a|osf5.1)
10695 # dlopen *does* load deplibs and with the right loader patch applied
10696 # it even uses RPATH in a shared library to search for shared objects
10697 # that the library depends on, but there's no easy way to know if that
10698 # patch is installed. Since this is the case, all we can really
10699 # say is unknown -- it depends on the patch being installed. If
10700 # it is, this changes to `yes'. Without it, it would be `no'.
10701 libltdl_cv_sys_dlopen_deplibs=unknown
10704 # the two cases above should catch all versions of osf <= 5.1. Read
10705 # the comments above for what we know about them.
10706 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10707 # is used to find them so we can finally say `yes'.
10708 libltdl_cv_sys_dlopen_deplibs=yes
10711 libltdl_cv_sys_dlopen_deplibs=yes
10713 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10714 libltdl_cv_sys_dlopen_deplibs=yes
10719 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10720 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10721 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10723 cat >>confdefs.h <<\_ACEOF
10724 #define LTDL_DLOPEN_DEPLIBS 1
10730 for ac_header in argz.h
10732 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10734 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10737 echo $ECHO_N "(cached) $ECHO_C" >&6
10739 ac_res=`eval echo '${'$as_ac_Header'}'`
10740 { echo "$as_me:$LINENO: result: $ac_res" >&5
10741 echo "${ECHO_T}$ac_res" >&6; }
10743 # Is the header compilable?
10744 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10745 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10746 cat >conftest.$ac_ext <<_ACEOF
10749 cat confdefs.h >>conftest.$ac_ext
10750 cat >>conftest.$ac_ext <<_ACEOF
10751 /* end confdefs.h. */
10752 $ac_includes_default
10753 #include <$ac_header>
10755 rm -f conftest.$ac_objext
10756 if { (ac_try="$ac_compile"
10757 case "(($ac_try" in
10758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10759 *) ac_try_echo=$ac_try;;
10761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10762 (eval "$ac_compile") 2>conftest.er1
10764 grep -v '^ *+' conftest.er1 >conftest.err
10766 cat conftest.err >&5
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); } &&
10769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10770 { (case "(($ac_try" in
10771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10772 *) ac_try_echo=$ac_try;;
10774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10775 (eval "$ac_try") 2>&5
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); }; } &&
10779 { ac_try='test -s conftest.$ac_objext'
10780 { (case "(($ac_try" in
10781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10782 *) ac_try_echo=$ac_try;;
10784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10785 (eval "$ac_try") 2>&5
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); }; }; then
10789 ac_header_compiler=yes
10791 echo "$as_me: failed program was:" >&5
10792 sed 's/^/| /' conftest.$ac_ext >&5
10794 ac_header_compiler=no
10797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10798 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10799 echo "${ECHO_T}$ac_header_compiler" >&6; }
10801 # Is the header present?
10802 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10804 cat >conftest.$ac_ext <<_ACEOF
10807 cat confdefs.h >>conftest.$ac_ext
10808 cat >>conftest.$ac_ext <<_ACEOF
10809 /* end confdefs.h. */
10810 #include <$ac_header>
10812 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
10820 grep -v '^ *+' conftest.er1 >conftest.err
10822 cat conftest.err >&5
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); } >/dev/null; then
10825 if test -s conftest.err; then
10826 ac_cpp_err=$ac_c_preproc_warn_flag
10827 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10834 if test -z "$ac_cpp_err"; then
10835 ac_header_preproc=yes
10837 echo "$as_me: failed program was:" >&5
10838 sed 's/^/| /' conftest.$ac_ext >&5
10840 ac_header_preproc=no
10843 rm -f conftest.err conftest.$ac_ext
10844 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10845 echo "${ECHO_T}$ac_header_preproc" >&6; }
10847 # So? What about this header?
10848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10850 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10851 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10853 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10854 ac_header_preproc=yes
10857 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10858 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10859 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10860 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10861 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10862 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10863 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10864 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10866 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10867 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10868 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10870 ## ------------------------------------ ##
10871 ## Report this to http://llvm.org/bugs/ ##
10872 ## ------------------------------------ ##
10874 ) | sed "s/^/$as_me: WARNING: /" >&2
10877 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10880 echo $ECHO_N "(cached) $ECHO_C" >&6
10882 eval "$as_ac_Header=\$ac_header_preproc"
10884 ac_res=`eval echo '${'$as_ac_Header'}'`
10885 { echo "$as_me:$LINENO: result: $ac_res" >&5
10886 echo "${ECHO_T}$ac_res" >&6; }
10889 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10890 cat >>confdefs.h <<_ACEOF
10891 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10899 { echo "$as_me:$LINENO: checking for error_t" >&5
10900 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10901 if test "${ac_cv_type_error_t+set}" = set; then
10902 echo $ECHO_N "(cached) $ECHO_C" >&6
10904 cat >conftest.$ac_ext <<_ACEOF
10907 cat confdefs.h >>conftest.$ac_ext
10908 cat >>conftest.$ac_ext <<_ACEOF
10909 /* end confdefs.h. */
10914 typedef error_t ac__type_new_;
10918 if ((ac__type_new_ *) 0)
10920 if (sizeof (ac__type_new_))
10926 rm -f conftest.$ac_objext
10927 if { (ac_try="$ac_compile"
10928 case "(($ac_try" in
10929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10930 *) ac_try_echo=$ac_try;;
10932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10933 (eval "$ac_compile") 2>conftest.er1
10935 grep -v '^ *+' conftest.er1 >conftest.err
10937 cat conftest.err >&5
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); } &&
10940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10941 { (case "(($ac_try" in
10942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10943 *) ac_try_echo=$ac_try;;
10945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10946 (eval "$ac_try") 2>&5
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); }; } &&
10950 { ac_try='test -s conftest.$ac_objext'
10951 { (case "(($ac_try" in
10952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10953 *) ac_try_echo=$ac_try;;
10955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10956 (eval "$ac_try") 2>&5
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); }; }; then
10960 ac_cv_type_error_t=yes
10962 echo "$as_me: failed program was:" >&5
10963 sed 's/^/| /' conftest.$ac_ext >&5
10965 ac_cv_type_error_t=no
10968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10970 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10971 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10972 if test $ac_cv_type_error_t = yes; then
10974 cat >>confdefs.h <<_ACEOF
10975 #define HAVE_ERROR_T 1
10981 cat >>confdefs.h <<\_ACEOF
10982 #define error_t int
10993 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10995 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10996 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10997 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10998 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10999 echo $ECHO_N "(cached) $ECHO_C" >&6
11001 cat >conftest.$ac_ext <<_ACEOF
11004 cat confdefs.h >>conftest.$ac_ext
11005 cat >>conftest.$ac_ext <<_ACEOF
11006 /* end confdefs.h. */
11007 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11008 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11009 #define $ac_func innocuous_$ac_func
11011 /* System header to define __stub macros and hopefully few prototypes,
11012 which can conflict with char $ac_func (); below.
11013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11014 <limits.h> exists even on freestanding compilers. */
11017 # include <limits.h>
11019 # include <assert.h>
11024 /* Override any GCC internal prototype to avoid an error.
11025 Use char because int might match the return type of a GCC
11026 builtin and then its argument prototype would still apply. */
11031 /* The GNU C library defines this for functions which it implements
11032 to always fail with ENOSYS. Some functions are actually named
11033 something starting with __ and the normal name is an alias. */
11034 #if defined __stub_$ac_func || defined __stub___$ac_func
11041 return $ac_func ();
11046 rm -f conftest.$ac_objext conftest$ac_exeext
11047 if { (ac_try="$ac_link"
11048 case "(($ac_try" in
11049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11050 *) ac_try_echo=$ac_try;;
11052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11053 (eval "$ac_link") 2>conftest.er1
11055 grep -v '^ *+' conftest.er1 >conftest.err
11057 cat conftest.err >&5
11058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); } &&
11060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11061 { (case "(($ac_try" in
11062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11063 *) ac_try_echo=$ac_try;;
11065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11066 (eval "$ac_try") 2>&5
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); }; } &&
11070 { ac_try='test -s conftest$ac_exeext'
11071 { (case "(($ac_try" in
11072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11073 *) ac_try_echo=$ac_try;;
11075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11076 (eval "$ac_try") 2>&5
11078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); }; }; then
11080 eval "$as_ac_var=yes"
11082 echo "$as_me: failed program was:" >&5
11083 sed 's/^/| /' conftest.$ac_ext >&5
11085 eval "$as_ac_var=no"
11088 rm -f core conftest.err conftest.$ac_objext \
11089 conftest$ac_exeext conftest.$ac_ext
11091 ac_res=`eval echo '${'$as_ac_var'}'`
11092 { echo "$as_me:$LINENO: result: $ac_res" >&5
11093 echo "${ECHO_T}$ac_res" >&6; }
11094 if test `eval echo '${'$as_ac_var'}'` = yes; then
11095 cat >>confdefs.h <<_ACEOF
11096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11129 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11132 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11133 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11134 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11137 echo $ECHO_N "(cached) $ECHO_C" >&6
11139 ac_res=`eval echo '${'$as_ac_Header'}'`
11140 { echo "$as_me:$LINENO: result: $ac_res" >&5
11141 echo "${ECHO_T}$ac_res" >&6; }
11143 # Is the header compilable?
11144 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11145 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11146 cat >conftest.$ac_ext <<_ACEOF
11149 cat confdefs.h >>conftest.$ac_ext
11150 cat >>conftest.$ac_ext <<_ACEOF
11151 /* end confdefs.h. */
11152 $ac_includes_default
11153 #include <$ac_header>
11155 rm -f conftest.$ac_objext
11156 if { (ac_try="$ac_compile"
11157 case "(($ac_try" in
11158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11159 *) ac_try_echo=$ac_try;;
11161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11162 (eval "$ac_compile") 2>conftest.er1
11164 grep -v '^ *+' conftest.er1 >conftest.err
11166 cat conftest.err >&5
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); } &&
11169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11170 { (case "(($ac_try" in
11171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11172 *) ac_try_echo=$ac_try;;
11174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11175 (eval "$ac_try") 2>&5
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); }; } &&
11179 { ac_try='test -s conftest.$ac_objext'
11180 { (case "(($ac_try" in
11181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11182 *) ac_try_echo=$ac_try;;
11184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11185 (eval "$ac_try") 2>&5
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); }; }; then
11189 ac_header_compiler=yes
11191 echo "$as_me: failed program was:" >&5
11192 sed 's/^/| /' conftest.$ac_ext >&5
11194 ac_header_compiler=no
11197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11198 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11199 echo "${ECHO_T}$ac_header_compiler" >&6; }
11201 # Is the header present?
11202 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11203 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11204 cat >conftest.$ac_ext <<_ACEOF
11207 cat confdefs.h >>conftest.$ac_ext
11208 cat >>conftest.$ac_ext <<_ACEOF
11209 /* end confdefs.h. */
11210 #include <$ac_header>
11212 if { (ac_try="$ac_cpp conftest.$ac_ext"
11213 case "(($ac_try" in
11214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11215 *) ac_try_echo=$ac_try;;
11217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11218 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11220 grep -v '^ *+' conftest.er1 >conftest.err
11222 cat conftest.err >&5
11223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224 (exit $ac_status); } >/dev/null; then
11225 if test -s conftest.err; then
11226 ac_cpp_err=$ac_c_preproc_warn_flag
11227 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11234 if test -z "$ac_cpp_err"; then
11235 ac_header_preproc=yes
11237 echo "$as_me: failed program was:" >&5
11238 sed 's/^/| /' conftest.$ac_ext >&5
11240 ac_header_preproc=no
11243 rm -f conftest.err conftest.$ac_ext
11244 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11245 echo "${ECHO_T}$ac_header_preproc" >&6; }
11247 # So? What about this header?
11248 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11250 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11251 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11252 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11253 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11254 ac_header_preproc=yes
11257 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11258 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11259 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11260 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11261 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11262 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11263 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11264 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11266 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11267 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11268 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11270 ## ------------------------------------ ##
11271 ## Report this to http://llvm.org/bugs/ ##
11272 ## ------------------------------------ ##
11274 ) | sed "s/^/$as_me: WARNING: /" >&2
11277 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11280 echo $ECHO_N "(cached) $ECHO_C" >&6
11282 eval "$as_ac_Header=\$ac_header_preproc"
11284 ac_res=`eval echo '${'$as_ac_Header'}'`
11285 { echo "$as_me:$LINENO: result: $ac_res" >&5
11286 echo "${ECHO_T}$ac_res" >&6; }
11289 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11290 cat >>confdefs.h <<_ACEOF
11291 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11302 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11304 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11306 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11309 echo $ECHO_N "(cached) $ECHO_C" >&6
11311 ac_res=`eval echo '${'$as_ac_Header'}'`
11312 { echo "$as_me:$LINENO: result: $ac_res" >&5
11313 echo "${ECHO_T}$ac_res" >&6; }
11315 # Is the header compilable?
11316 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11317 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11318 cat >conftest.$ac_ext <<_ACEOF
11321 cat confdefs.h >>conftest.$ac_ext
11322 cat >>conftest.$ac_ext <<_ACEOF
11323 /* end confdefs.h. */
11324 $ac_includes_default
11325 #include <$ac_header>
11327 rm -f conftest.$ac_objext
11328 if { (ac_try="$ac_compile"
11329 case "(($ac_try" in
11330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11331 *) ac_try_echo=$ac_try;;
11333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11334 (eval "$ac_compile") 2>conftest.er1
11336 grep -v '^ *+' conftest.er1 >conftest.err
11338 cat conftest.err >&5
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); } &&
11341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11342 { (case "(($ac_try" in
11343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11344 *) ac_try_echo=$ac_try;;
11346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11347 (eval "$ac_try") 2>&5
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); }; } &&
11351 { ac_try='test -s conftest.$ac_objext'
11352 { (case "(($ac_try" in
11353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11354 *) ac_try_echo=$ac_try;;
11356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11357 (eval "$ac_try") 2>&5
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); }; }; then
11361 ac_header_compiler=yes
11363 echo "$as_me: failed program was:" >&5
11364 sed 's/^/| /' conftest.$ac_ext >&5
11366 ac_header_compiler=no
11369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11370 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11371 echo "${ECHO_T}$ac_header_compiler" >&6; }
11373 # Is the header present?
11374 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11375 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11376 cat >conftest.$ac_ext <<_ACEOF
11379 cat confdefs.h >>conftest.$ac_ext
11380 cat >>conftest.$ac_ext <<_ACEOF
11381 /* end confdefs.h. */
11382 #include <$ac_header>
11384 if { (ac_try="$ac_cpp conftest.$ac_ext"
11385 case "(($ac_try" in
11386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11387 *) ac_try_echo=$ac_try;;
11389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11392 grep -v '^ *+' conftest.er1 >conftest.err
11394 cat conftest.err >&5
11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); } >/dev/null; then
11397 if test -s conftest.err; then
11398 ac_cpp_err=$ac_c_preproc_warn_flag
11399 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11406 if test -z "$ac_cpp_err"; then
11407 ac_header_preproc=yes
11409 echo "$as_me: failed program was:" >&5
11410 sed 's/^/| /' conftest.$ac_ext >&5
11412 ac_header_preproc=no
11415 rm -f conftest.err conftest.$ac_ext
11416 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11417 echo "${ECHO_T}$ac_header_preproc" >&6; }
11419 # So? What about this header?
11420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11422 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11423 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11425 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11426 ac_header_preproc=yes
11429 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11430 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11431 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11432 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11433 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11434 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11435 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11436 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11438 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11439 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11440 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11442 ## ------------------------------------ ##
11443 ## Report this to http://llvm.org/bugs/ ##
11444 ## ------------------------------------ ##
11446 ) | sed "s/^/$as_me: WARNING: /" >&2
11449 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11451 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11452 echo $ECHO_N "(cached) $ECHO_C" >&6
11454 eval "$as_ac_Header=\$ac_header_preproc"
11456 ac_res=`eval echo '${'$as_ac_Header'}'`
11457 { echo "$as_me:$LINENO: result: $ac_res" >&5
11458 echo "${ECHO_T}$ac_res" >&6; }
11461 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11462 cat >>confdefs.h <<_ACEOF
11463 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11472 for ac_header in string.h strings.h
11474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11476 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11479 echo $ECHO_N "(cached) $ECHO_C" >&6
11481 ac_res=`eval echo '${'$as_ac_Header'}'`
11482 { echo "$as_me:$LINENO: result: $ac_res" >&5
11483 echo "${ECHO_T}$ac_res" >&6; }
11485 # Is the header compilable?
11486 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11487 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11488 cat >conftest.$ac_ext <<_ACEOF
11491 cat confdefs.h >>conftest.$ac_ext
11492 cat >>conftest.$ac_ext <<_ACEOF
11493 /* end confdefs.h. */
11494 $ac_includes_default
11495 #include <$ac_header>
11497 rm -f conftest.$ac_objext
11498 if { (ac_try="$ac_compile"
11499 case "(($ac_try" in
11500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11501 *) ac_try_echo=$ac_try;;
11503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11504 (eval "$ac_compile") 2>conftest.er1
11506 grep -v '^ *+' conftest.er1 >conftest.err
11508 cat conftest.err >&5
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); } &&
11511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11512 { (case "(($ac_try" in
11513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11514 *) ac_try_echo=$ac_try;;
11516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11517 (eval "$ac_try") 2>&5
11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); }; } &&
11521 { ac_try='test -s conftest.$ac_objext'
11522 { (case "(($ac_try" in
11523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11524 *) ac_try_echo=$ac_try;;
11526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11527 (eval "$ac_try") 2>&5
11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530 (exit $ac_status); }; }; then
11531 ac_header_compiler=yes
11533 echo "$as_me: failed program was:" >&5
11534 sed 's/^/| /' conftest.$ac_ext >&5
11536 ac_header_compiler=no
11539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11540 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11541 echo "${ECHO_T}$ac_header_compiler" >&6; }
11543 # Is the header present?
11544 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11545 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11546 cat >conftest.$ac_ext <<_ACEOF
11549 cat confdefs.h >>conftest.$ac_ext
11550 cat >>conftest.$ac_ext <<_ACEOF
11551 /* end confdefs.h. */
11552 #include <$ac_header>
11554 if { (ac_try="$ac_cpp conftest.$ac_ext"
11555 case "(($ac_try" in
11556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11557 *) ac_try_echo=$ac_try;;
11559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11562 grep -v '^ *+' conftest.er1 >conftest.err
11564 cat conftest.err >&5
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); } >/dev/null; then
11567 if test -s conftest.err; then
11568 ac_cpp_err=$ac_c_preproc_warn_flag
11569 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11576 if test -z "$ac_cpp_err"; then
11577 ac_header_preproc=yes
11579 echo "$as_me: failed program was:" >&5
11580 sed 's/^/| /' conftest.$ac_ext >&5
11582 ac_header_preproc=no
11585 rm -f conftest.err conftest.$ac_ext
11586 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11587 echo "${ECHO_T}$ac_header_preproc" >&6; }
11589 # So? What about this header?
11590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11592 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11593 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11595 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11596 ac_header_preproc=yes
11599 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11600 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11601 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11602 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11603 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11604 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11605 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11606 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11609 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11610 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11612 ## ------------------------------------ ##
11613 ## Report this to http://llvm.org/bugs/ ##
11614 ## ------------------------------------ ##
11616 ) | sed "s/^/$as_me: WARNING: /" >&2
11619 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11622 echo $ECHO_N "(cached) $ECHO_C" >&6
11624 eval "$as_ac_Header=\$ac_header_preproc"
11626 ac_res=`eval echo '${'$as_ac_Header'}'`
11627 { echo "$as_me:$LINENO: result: $ac_res" >&5
11628 echo "${ECHO_T}$ac_res" >&6; }
11631 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11632 cat >>confdefs.h <<_ACEOF
11633 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11643 for ac_func in strchr index
11645 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11646 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11647 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11648 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11649 echo $ECHO_N "(cached) $ECHO_C" >&6
11651 cat >conftest.$ac_ext <<_ACEOF
11654 cat confdefs.h >>conftest.$ac_ext
11655 cat >>conftest.$ac_ext <<_ACEOF
11656 /* end confdefs.h. */
11657 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11658 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11659 #define $ac_func innocuous_$ac_func
11661 /* System header to define __stub macros and hopefully few prototypes,
11662 which can conflict with char $ac_func (); below.
11663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11664 <limits.h> exists even on freestanding compilers. */
11667 # include <limits.h>
11669 # include <assert.h>
11674 /* Override any GCC internal prototype to avoid an error.
11675 Use char because int might match the return type of a GCC
11676 builtin and then its argument prototype would still apply. */
11681 /* The GNU C library defines this for functions which it implements
11682 to always fail with ENOSYS. Some functions are actually named
11683 something starting with __ and the normal name is an alias. */
11684 #if defined __stub_$ac_func || defined __stub___$ac_func
11691 return $ac_func ();
11696 rm -f conftest.$ac_objext conftest$ac_exeext
11697 if { (ac_try="$ac_link"
11698 case "(($ac_try" in
11699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11700 *) ac_try_echo=$ac_try;;
11702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11703 (eval "$ac_link") 2>conftest.er1
11705 grep -v '^ *+' conftest.er1 >conftest.err
11707 cat conftest.err >&5
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); } &&
11710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11711 { (case "(($ac_try" in
11712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11713 *) ac_try_echo=$ac_try;;
11715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11716 (eval "$ac_try") 2>&5
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); }; } &&
11720 { ac_try='test -s conftest$ac_exeext'
11721 { (case "(($ac_try" in
11722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11723 *) ac_try_echo=$ac_try;;
11725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11726 (eval "$ac_try") 2>&5
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); }; }; then
11730 eval "$as_ac_var=yes"
11732 echo "$as_me: failed program was:" >&5
11733 sed 's/^/| /' conftest.$ac_ext >&5
11735 eval "$as_ac_var=no"
11738 rm -f core conftest.err conftest.$ac_objext \
11739 conftest$ac_exeext conftest.$ac_ext
11741 ac_res=`eval echo '${'$as_ac_var'}'`
11742 { echo "$as_me:$LINENO: result: $ac_res" >&5
11743 echo "${ECHO_T}$ac_res" >&6; }
11744 if test `eval echo '${'$as_ac_var'}'` = yes; then
11745 cat >>confdefs.h <<_ACEOF
11746 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11754 for ac_func in strrchr rindex
11756 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11757 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11758 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11759 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11760 echo $ECHO_N "(cached) $ECHO_C" >&6
11762 cat >conftest.$ac_ext <<_ACEOF
11765 cat confdefs.h >>conftest.$ac_ext
11766 cat >>conftest.$ac_ext <<_ACEOF
11767 /* end confdefs.h. */
11768 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11770 #define $ac_func innocuous_$ac_func
11772 /* System header to define __stub macros and hopefully few prototypes,
11773 which can conflict with char $ac_func (); below.
11774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11775 <limits.h> exists even on freestanding compilers. */
11778 # include <limits.h>
11780 # include <assert.h>
11785 /* Override any GCC internal prototype to avoid an error.
11786 Use char because int might match the return type of a GCC
11787 builtin and then its argument prototype would still apply. */
11792 /* The GNU C library defines this for functions which it implements
11793 to always fail with ENOSYS. Some functions are actually named
11794 something starting with __ and the normal name is an alias. */
11795 #if defined __stub_$ac_func || defined __stub___$ac_func
11802 return $ac_func ();
11807 rm -f conftest.$ac_objext conftest$ac_exeext
11808 if { (ac_try="$ac_link"
11809 case "(($ac_try" in
11810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11811 *) ac_try_echo=$ac_try;;
11813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11814 (eval "$ac_link") 2>conftest.er1
11816 grep -v '^ *+' conftest.er1 >conftest.err
11818 cat conftest.err >&5
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); } &&
11821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11822 { (case "(($ac_try" in
11823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11824 *) ac_try_echo=$ac_try;;
11826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11827 (eval "$ac_try") 2>&5
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); }; } &&
11831 { ac_try='test -s conftest$ac_exeext'
11832 { (case "(($ac_try" in
11833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11834 *) ac_try_echo=$ac_try;;
11836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11837 (eval "$ac_try") 2>&5
11839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); }; }; then
11841 eval "$as_ac_var=yes"
11843 echo "$as_me: failed program was:" >&5
11844 sed 's/^/| /' conftest.$ac_ext >&5
11846 eval "$as_ac_var=no"
11849 rm -f core conftest.err conftest.$ac_objext \
11850 conftest$ac_exeext conftest.$ac_ext
11852 ac_res=`eval echo '${'$as_ac_var'}'`
11853 { echo "$as_me:$LINENO: result: $ac_res" >&5
11854 echo "${ECHO_T}$ac_res" >&6; }
11855 if test `eval echo '${'$as_ac_var'}'` = yes; then
11856 cat >>confdefs.h <<_ACEOF
11857 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11865 for ac_func in memcpy bcopy
11867 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11868 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11869 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11870 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11871 echo $ECHO_N "(cached) $ECHO_C" >&6
11873 cat >conftest.$ac_ext <<_ACEOF
11876 cat confdefs.h >>conftest.$ac_ext
11877 cat >>conftest.$ac_ext <<_ACEOF
11878 /* end confdefs.h. */
11879 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11881 #define $ac_func innocuous_$ac_func
11883 /* System header to define __stub macros and hopefully few prototypes,
11884 which can conflict with char $ac_func (); below.
11885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11886 <limits.h> exists even on freestanding compilers. */
11889 # include <limits.h>
11891 # include <assert.h>
11896 /* Override any GCC internal prototype to avoid an error.
11897 Use char because int might match the return type of a GCC
11898 builtin and then its argument prototype would still apply. */
11903 /* The GNU C library defines this for functions which it implements
11904 to always fail with ENOSYS. Some functions are actually named
11905 something starting with __ and the normal name is an alias. */
11906 #if defined __stub_$ac_func || defined __stub___$ac_func
11913 return $ac_func ();
11918 rm -f conftest.$ac_objext conftest$ac_exeext
11919 if { (ac_try="$ac_link"
11920 case "(($ac_try" in
11921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11922 *) ac_try_echo=$ac_try;;
11924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11925 (eval "$ac_link") 2>conftest.er1
11927 grep -v '^ *+' conftest.er1 >conftest.err
11929 cat conftest.err >&5
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); } &&
11932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11933 { (case "(($ac_try" in
11934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11935 *) ac_try_echo=$ac_try;;
11937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11938 (eval "$ac_try") 2>&5
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); }; } &&
11942 { ac_try='test -s conftest$ac_exeext'
11943 { (case "(($ac_try" in
11944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11945 *) ac_try_echo=$ac_try;;
11947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11948 (eval "$ac_try") 2>&5
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); }; }; then
11952 eval "$as_ac_var=yes"
11954 echo "$as_me: failed program was:" >&5
11955 sed 's/^/| /' conftest.$ac_ext >&5
11957 eval "$as_ac_var=no"
11960 rm -f core conftest.err conftest.$ac_objext \
11961 conftest$ac_exeext conftest.$ac_ext
11963 ac_res=`eval echo '${'$as_ac_var'}'`
11964 { echo "$as_me:$LINENO: result: $ac_res" >&5
11965 echo "${ECHO_T}$ac_res" >&6; }
11966 if test `eval echo '${'$as_ac_var'}'` = yes; then
11967 cat >>confdefs.h <<_ACEOF
11968 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11976 for ac_func in memmove strcmp
11978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11979 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11981 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11982 echo $ECHO_N "(cached) $ECHO_C" >&6
11984 cat >conftest.$ac_ext <<_ACEOF
11987 cat confdefs.h >>conftest.$ac_ext
11988 cat >>conftest.$ac_ext <<_ACEOF
11989 /* end confdefs.h. */
11990 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11992 #define $ac_func innocuous_$ac_func
11994 /* System header to define __stub macros and hopefully few prototypes,
11995 which can conflict with char $ac_func (); below.
11996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11997 <limits.h> exists even on freestanding compilers. */
12000 # include <limits.h>
12002 # include <assert.h>
12007 /* Override any GCC internal prototype to avoid an error.
12008 Use char because int might match the return type of a GCC
12009 builtin and then its argument prototype would still apply. */
12014 /* The GNU C library defines this for functions which it implements
12015 to always fail with ENOSYS. Some functions are actually named
12016 something starting with __ and the normal name is an alias. */
12017 #if defined __stub_$ac_func || defined __stub___$ac_func
12024 return $ac_func ();
12029 rm -f conftest.$ac_objext conftest$ac_exeext
12030 if { (ac_try="$ac_link"
12031 case "(($ac_try" in
12032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12033 *) ac_try_echo=$ac_try;;
12035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12036 (eval "$ac_link") 2>conftest.er1
12038 grep -v '^ *+' conftest.er1 >conftest.err
12040 cat conftest.err >&5
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); } &&
12043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12044 { (case "(($ac_try" in
12045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12046 *) ac_try_echo=$ac_try;;
12048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12049 (eval "$ac_try") 2>&5
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); }; } &&
12053 { ac_try='test -s conftest$ac_exeext'
12054 { (case "(($ac_try" in
12055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12056 *) ac_try_echo=$ac_try;;
12058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12059 (eval "$ac_try") 2>&5
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); }; }; then
12063 eval "$as_ac_var=yes"
12065 echo "$as_me: failed program was:" >&5
12066 sed 's/^/| /' conftest.$ac_ext >&5
12068 eval "$as_ac_var=no"
12071 rm -f core conftest.err conftest.$ac_objext \
12072 conftest$ac_exeext conftest.$ac_ext
12074 ac_res=`eval echo '${'$as_ac_var'}'`
12075 { echo "$as_me:$LINENO: result: $ac_res" >&5
12076 echo "${ECHO_T}$ac_res" >&6; }
12077 if test `eval echo '${'$as_ac_var'}'` = yes; then
12078 cat >>confdefs.h <<_ACEOF
12079 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12088 for ac_func in closedir opendir readdir
12090 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12091 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12093 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12094 echo $ECHO_N "(cached) $ECHO_C" >&6
12096 cat >conftest.$ac_ext <<_ACEOF
12099 cat confdefs.h >>conftest.$ac_ext
12100 cat >>conftest.$ac_ext <<_ACEOF
12101 /* end confdefs.h. */
12102 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12104 #define $ac_func innocuous_$ac_func
12106 /* System header to define __stub macros and hopefully few prototypes,
12107 which can conflict with char $ac_func (); below.
12108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12109 <limits.h> exists even on freestanding compilers. */
12112 # include <limits.h>
12114 # include <assert.h>
12119 /* Override any GCC internal prototype to avoid an error.
12120 Use char because int might match the return type of a GCC
12121 builtin and then its argument prototype would still apply. */
12126 /* The GNU C library defines this for functions which it implements
12127 to always fail with ENOSYS. Some functions are actually named
12128 something starting with __ and the normal name is an alias. */
12129 #if defined __stub_$ac_func || defined __stub___$ac_func
12136 return $ac_func ();
12141 rm -f conftest.$ac_objext conftest$ac_exeext
12142 if { (ac_try="$ac_link"
12143 case "(($ac_try" in
12144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12145 *) ac_try_echo=$ac_try;;
12147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12148 (eval "$ac_link") 2>conftest.er1
12150 grep -v '^ *+' conftest.er1 >conftest.err
12152 cat conftest.err >&5
12153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154 (exit $ac_status); } &&
12155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12156 { (case "(($ac_try" in
12157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12158 *) ac_try_echo=$ac_try;;
12160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12161 (eval "$ac_try") 2>&5
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); }; } &&
12165 { ac_try='test -s conftest$ac_exeext'
12166 { (case "(($ac_try" in
12167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12168 *) ac_try_echo=$ac_try;;
12170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12171 (eval "$ac_try") 2>&5
12173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); }; }; then
12175 eval "$as_ac_var=yes"
12177 echo "$as_me: failed program was:" >&5
12178 sed 's/^/| /' conftest.$ac_ext >&5
12180 eval "$as_ac_var=no"
12183 rm -f core conftest.err conftest.$ac_objext \
12184 conftest$ac_exeext conftest.$ac_ext
12186 ac_res=`eval echo '${'$as_ac_var'}'`
12187 { echo "$as_me:$LINENO: result: $ac_res" >&5
12188 echo "${ECHO_T}$ac_res" >&6; }
12189 if test `eval echo '${'$as_ac_var'}'` = yes; then
12190 cat >>confdefs.h <<_ACEOF
12191 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12199 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12200 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12213 if test "$GCC" != "yes" && test "$ICC" != "yes"
12215 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12216 echo "$as_me: error: gcc|icc required but not found" >&2;}
12217 { (exit 1); exit 1; }; }
12220 if test "$GXX" != "yes" && test "$IXX" != "yes"
12222 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12223 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12224 { (exit 1); exit 1; }; }
12227 if test "$GCC" = "yes"
12229 cat >conftest.$ac_ext <<_ACEOF
12233 cat confdefs.h >>conftest.$ac_ext
12234 cat >>conftest.$ac_ext <<_ACEOF
12235 /* end confdefs.h. */
12237 #if !defined(__GNUC__) || __GNUC__ < 3
12238 #error Unsupported GCC version
12243 rm -f conftest.$ac_objext
12244 if { (ac_try="$ac_compile"
12245 case "(($ac_try" in
12246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12247 *) ac_try_echo=$ac_try;;
12249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12250 (eval "$ac_compile") 2>conftest.er1
12252 grep -v '^ *+' conftest.er1 >conftest.err
12254 cat conftest.err >&5
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); } &&
12257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12258 { (case "(($ac_try" in
12259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12260 *) ac_try_echo=$ac_try;;
12262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12263 (eval "$ac_try") 2>&5
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); }; } &&
12267 { ac_try='test -s conftest.$ac_objext'
12268 { (case "(($ac_try" in
12269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12270 *) ac_try_echo=$ac_try;;
12272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12273 (eval "$ac_try") 2>&5
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); }; }; then
12279 echo "$as_me: failed program was:" >&5
12280 sed 's/^/| /' conftest.$ac_ext >&5
12282 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12283 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12284 { (exit 1); exit 1; }; }
12287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12290 if test -z "$llvm_cv_gnu_make_command"
12292 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12293 echo "$as_me: error: GNU Make required but not found" >&2;}
12294 { (exit 1); exit 1; }; }
12297 { echo "$as_me:$LINENO: result: ok" >&5
12298 echo "${ECHO_T}ok" >&6; }
12300 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12301 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12302 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12304 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12306 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12310 NO_MAYBE_UNINITIALIZED=
12311 if test "$GXX" = "yes"
12313 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
12315 if test -z "$NO_MAYBE_UNINITIALIZED"
12317 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
12321 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
12322 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
12325 # Check whether --with-python was given.
12326 if test "${with_python+set}" = set; then
12327 withval=$with_python; PYTHON="$withval"
12331 if test -n "$PYTHON" && test -x "$PYTHON" ; then
12332 { echo "$as_me:$LINENO: checking for python" >&5
12333 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
12334 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
12335 echo "${ECHO_T}user defined: $with_python" >&6; }
12337 if test -n "$PYTHON" ; then
12338 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
12339 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
12342 # Extract the first word of "python python2 python26", so it can be a program name with args.
12343 set dummy python python2 python26; ac_word=$2
12344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12346 if test "${ac_cv_path_PYTHON+set}" = set; then
12347 echo $ECHO_N "(cached) $ECHO_C" >&6
12351 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12355 for as_dir in $PATH
12358 test -z "$as_dir" && as_dir=.
12359 for ac_exec_ext in '' $ac_executable_extensions; do
12360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12361 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12369 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
12370 echo "${ECHO_T}not found" >&6; }
12371 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
12372 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
12373 { (exit 1); exit 1; }; }"
12377 PYTHON=$ac_cv_path_PYTHON
12378 if test -n "$PYTHON"; then
12379 { echo "$as_me:$LINENO: result: $PYTHON" >&5
12380 echo "${ECHO_T}$PYTHON" >&6; }
12382 { echo "$as_me:$LINENO: result: no" >&5
12383 echo "${ECHO_T}no" >&6; }
12389 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
12390 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
12391 ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[0]'`
12392 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
12393 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
12394 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
12395 if test "$ac_python_version_major" -eq "2" \
12396 && test "$ac_python_version_minor" -ge "5" ; then
12397 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
12398 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
12400 { echo "$as_me:$LINENO: result: not found" >&5
12401 echo "${ECHO_T}not found" >&6; }
12402 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
12403 See \`config.log' for more details." >&5
12404 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
12405 See \`config.log' for more details." >&2;}
12406 { (exit 1); exit 1; }; }
12411 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12412 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12413 if test "${ac_cv_lib_m_sin+set}" = set; then
12414 echo $ECHO_N "(cached) $ECHO_C" >&6
12416 ac_check_lib_save_LIBS=$LIBS
12418 cat >conftest.$ac_ext <<_ACEOF
12421 cat confdefs.h >>conftest.$ac_ext
12422 cat >>conftest.$ac_ext <<_ACEOF
12423 /* end confdefs.h. */
12425 /* Override any GCC internal prototype to avoid an error.
12426 Use char because int might match the return type of a GCC
12427 builtin and then its argument prototype would still apply. */
12440 rm -f conftest.$ac_objext conftest$ac_exeext
12441 if { (ac_try="$ac_link"
12442 case "(($ac_try" in
12443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12444 *) ac_try_echo=$ac_try;;
12446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12447 (eval "$ac_link") 2>conftest.er1
12449 grep -v '^ *+' conftest.er1 >conftest.err
12451 cat conftest.err >&5
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); } &&
12454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12455 { (case "(($ac_try" in
12456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12457 *) ac_try_echo=$ac_try;;
12459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12460 (eval "$ac_try") 2>&5
12462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463 (exit $ac_status); }; } &&
12464 { ac_try='test -s conftest$ac_exeext'
12465 { (case "(($ac_try" in
12466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12467 *) ac_try_echo=$ac_try;;
12469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12470 (eval "$ac_try") 2>&5
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); }; }; then
12474 ac_cv_lib_m_sin=yes
12476 echo "$as_me: failed program was:" >&5
12477 sed 's/^/| /' conftest.$ac_ext >&5
12482 rm -f core conftest.err conftest.$ac_objext \
12483 conftest$ac_exeext conftest.$ac_ext
12484 LIBS=$ac_check_lib_save_LIBS
12486 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12487 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12488 if test $ac_cv_lib_m_sin = yes; then
12489 cat >>confdefs.h <<_ACEOF
12490 #define HAVE_LIBM 1
12497 if test "$llvm_cv_os_type" = "MingW" ; then
12499 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12500 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12501 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12502 echo $ECHO_N "(cached) $ECHO_C" >&6
12504 ac_check_lib_save_LIBS=$LIBS
12505 LIBS="-limagehlp $LIBS"
12506 cat >conftest.$ac_ext <<_ACEOF
12509 cat confdefs.h >>conftest.$ac_ext
12510 cat >>conftest.$ac_ext <<_ACEOF
12511 /* end confdefs.h. */
12522 rm -f conftest.$ac_objext conftest$ac_exeext
12523 if { (ac_try="$ac_link"
12524 case "(($ac_try" in
12525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12526 *) ac_try_echo=$ac_try;;
12528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12529 (eval "$ac_link") 2>conftest.er1
12531 grep -v '^ *+' conftest.er1 >conftest.err
12533 cat conftest.err >&5
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); } &&
12536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12537 { (case "(($ac_try" in
12538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12539 *) ac_try_echo=$ac_try;;
12541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12542 (eval "$ac_try") 2>&5
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); }; } &&
12546 { ac_try='test -s conftest$ac_exeext'
12547 { (case "(($ac_try" in
12548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12549 *) ac_try_echo=$ac_try;;
12551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12552 (eval "$ac_try") 2>&5
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); }; }; then
12556 ac_cv_lib_imagehlp_main=yes
12558 echo "$as_me: failed program was:" >&5
12559 sed 's/^/| /' conftest.$ac_ext >&5
12561 ac_cv_lib_imagehlp_main=no
12564 rm -f core conftest.err conftest.$ac_objext \
12565 conftest$ac_exeext conftest.$ac_ext
12566 LIBS=$ac_check_lib_save_LIBS
12568 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12569 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12570 if test $ac_cv_lib_imagehlp_main = yes; then
12571 cat >>confdefs.h <<_ACEOF
12572 #define HAVE_LIBIMAGEHLP 1
12575 LIBS="-limagehlp $LIBS"
12580 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12581 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12582 if test "${ac_cv_lib_psapi_main+set}" = set; then
12583 echo $ECHO_N "(cached) $ECHO_C" >&6
12585 ac_check_lib_save_LIBS=$LIBS
12586 LIBS="-lpsapi $LIBS"
12587 cat >conftest.$ac_ext <<_ACEOF
12590 cat confdefs.h >>conftest.$ac_ext
12591 cat >>conftest.$ac_ext <<_ACEOF
12592 /* end confdefs.h. */
12603 rm -f conftest.$ac_objext conftest$ac_exeext
12604 if { (ac_try="$ac_link"
12605 case "(($ac_try" in
12606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12607 *) ac_try_echo=$ac_try;;
12609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12610 (eval "$ac_link") 2>conftest.er1
12612 grep -v '^ *+' conftest.er1 >conftest.err
12614 cat conftest.err >&5
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); } &&
12617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); }; } &&
12627 { ac_try='test -s conftest$ac_exeext'
12628 { (case "(($ac_try" in
12629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12630 *) ac_try_echo=$ac_try;;
12632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12633 (eval "$ac_try") 2>&5
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); }; }; then
12637 ac_cv_lib_psapi_main=yes
12639 echo "$as_me: failed program was:" >&5
12640 sed 's/^/| /' conftest.$ac_ext >&5
12642 ac_cv_lib_psapi_main=no
12645 rm -f core conftest.err conftest.$ac_objext \
12646 conftest$ac_exeext conftest.$ac_ext
12647 LIBS=$ac_check_lib_save_LIBS
12649 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12650 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12651 if test $ac_cv_lib_psapi_main = yes; then
12652 cat >>confdefs.h <<_ACEOF
12653 #define HAVE_LIBPSAPI 1
12656 LIBS="-lpsapi $LIBS"
12662 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12663 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12664 if test "${ac_cv_search_dlopen+set}" = set; then
12665 echo $ECHO_N "(cached) $ECHO_C" >&6
12667 ac_func_search_save_LIBS=$LIBS
12668 cat >conftest.$ac_ext <<_ACEOF
12671 cat confdefs.h >>conftest.$ac_ext
12672 cat >>conftest.$ac_ext <<_ACEOF
12673 /* end confdefs.h. */
12675 /* Override any GCC internal prototype to avoid an error.
12676 Use char because int might match the return type of a GCC
12677 builtin and then its argument prototype would still apply. */
12690 for ac_lib in '' dl; do
12691 if test -z "$ac_lib"; then
12692 ac_res="none required"
12695 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12697 rm -f conftest.$ac_objext conftest$ac_exeext
12698 if { (ac_try="$ac_link"
12699 case "(($ac_try" in
12700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12701 *) ac_try_echo=$ac_try;;
12703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12704 (eval "$ac_link") 2>conftest.er1
12706 grep -v '^ *+' conftest.er1 >conftest.err
12708 cat conftest.err >&5
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); } &&
12711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12712 { (case "(($ac_try" in
12713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12714 *) ac_try_echo=$ac_try;;
12716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12717 (eval "$ac_try") 2>&5
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); }; } &&
12721 { ac_try='test -s conftest$ac_exeext'
12722 { (case "(($ac_try" in
12723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12724 *) ac_try_echo=$ac_try;;
12726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12727 (eval "$ac_try") 2>&5
12729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12730 (exit $ac_status); }; }; then
12731 ac_cv_search_dlopen=$ac_res
12733 echo "$as_me: failed program was:" >&5
12734 sed 's/^/| /' conftest.$ac_ext >&5
12739 rm -f core conftest.err conftest.$ac_objext \
12741 if test "${ac_cv_search_dlopen+set}" = set; then
12745 if test "${ac_cv_search_dlopen+set}" = set; then
12748 ac_cv_search_dlopen=no
12750 rm conftest.$ac_ext
12751 LIBS=$ac_func_search_save_LIBS
12753 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12754 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12755 ac_res=$ac_cv_search_dlopen
12756 if test "$ac_res" != no; then
12757 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12759 cat >>confdefs.h <<\_ACEOF
12760 #define HAVE_DLOPEN 1
12764 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12765 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12769 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12770 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12771 if test "${ac_cv_search_clock_gettime+set}" = set; then
12772 echo $ECHO_N "(cached) $ECHO_C" >&6
12774 ac_func_search_save_LIBS=$LIBS
12775 cat >conftest.$ac_ext <<_ACEOF
12778 cat confdefs.h >>conftest.$ac_ext
12779 cat >>conftest.$ac_ext <<_ACEOF
12780 /* end confdefs.h. */
12782 /* Override any GCC internal prototype to avoid an error.
12783 Use char because int might match the return type of a GCC
12784 builtin and then its argument prototype would still apply. */
12788 char clock_gettime ();
12792 return clock_gettime ();
12797 for ac_lib in '' rt; do
12798 if test -z "$ac_lib"; then
12799 ac_res="none required"
12802 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12804 rm -f conftest.$ac_objext conftest$ac_exeext
12805 if { (ac_try="$ac_link"
12806 case "(($ac_try" in
12807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12808 *) ac_try_echo=$ac_try;;
12810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12811 (eval "$ac_link") 2>conftest.er1
12813 grep -v '^ *+' conftest.er1 >conftest.err
12815 cat conftest.err >&5
12816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); } &&
12818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12819 { (case "(($ac_try" in
12820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12821 *) ac_try_echo=$ac_try;;
12823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12824 (eval "$ac_try") 2>&5
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); }; } &&
12828 { ac_try='test -s conftest$ac_exeext'
12829 { (case "(($ac_try" in
12830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12831 *) ac_try_echo=$ac_try;;
12833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12834 (eval "$ac_try") 2>&5
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); }; }; then
12838 ac_cv_search_clock_gettime=$ac_res
12840 echo "$as_me: failed program was:" >&5
12841 sed 's/^/| /' conftest.$ac_ext >&5
12846 rm -f core conftest.err conftest.$ac_objext \
12848 if test "${ac_cv_search_clock_gettime+set}" = set; then
12852 if test "${ac_cv_search_clock_gettime+set}" = set; then
12855 ac_cv_search_clock_gettime=no
12857 rm conftest.$ac_ext
12858 LIBS=$ac_func_search_save_LIBS
12860 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12861 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12862 ac_res=$ac_cv_search_clock_gettime
12863 if test "$ac_res" != no; then
12864 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12869 if test "$llvm_cv_enable_libffi" = "yes" ; then
12870 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12871 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12872 if test "${ac_cv_search_ffi_call+set}" = set; then
12873 echo $ECHO_N "(cached) $ECHO_C" >&6
12875 ac_func_search_save_LIBS=$LIBS
12876 cat >conftest.$ac_ext <<_ACEOF
12879 cat confdefs.h >>conftest.$ac_ext
12880 cat >>conftest.$ac_ext <<_ACEOF
12881 /* end confdefs.h. */
12883 /* Override any GCC internal prototype to avoid an error.
12884 Use char because int might match the return type of a GCC
12885 builtin and then its argument prototype would still apply. */
12893 return ffi_call ();
12898 for ac_lib in '' ffi; do
12899 if test -z "$ac_lib"; then
12900 ac_res="none required"
12903 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12905 rm -f conftest.$ac_objext conftest$ac_exeext
12906 if { (ac_try="$ac_link"
12907 case "(($ac_try" in
12908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12909 *) ac_try_echo=$ac_try;;
12911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12912 (eval "$ac_link") 2>conftest.er1
12914 grep -v '^ *+' conftest.er1 >conftest.err
12916 cat conftest.err >&5
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); } &&
12919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12920 { (case "(($ac_try" in
12921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12922 *) ac_try_echo=$ac_try;;
12924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12925 (eval "$ac_try") 2>&5
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); }; } &&
12929 { ac_try='test -s conftest$ac_exeext'
12930 { (case "(($ac_try" in
12931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12932 *) ac_try_echo=$ac_try;;
12934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12935 (eval "$ac_try") 2>&5
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); }; }; then
12939 ac_cv_search_ffi_call=$ac_res
12941 echo "$as_me: failed program was:" >&5
12942 sed 's/^/| /' conftest.$ac_ext >&5
12947 rm -f core conftest.err conftest.$ac_objext \
12949 if test "${ac_cv_search_ffi_call+set}" = set; then
12953 if test "${ac_cv_search_ffi_call+set}" = set; then
12956 ac_cv_search_ffi_call=no
12958 rm conftest.$ac_ext
12959 LIBS=$ac_func_search_save_LIBS
12961 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12962 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12963 ac_res=$ac_cv_search_ffi_call
12964 if test "$ac_res" != no; then
12965 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12967 cat >>confdefs.h <<\_ACEOF
12968 #define HAVE_FFI_CALL 1
12972 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12973 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12974 { (exit 1); exit 1; }; }
12979 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12980 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12981 if test "${ac_cv_search_mallinfo+set}" = set; then
12982 echo $ECHO_N "(cached) $ECHO_C" >&6
12984 ac_func_search_save_LIBS=$LIBS
12985 cat >conftest.$ac_ext <<_ACEOF
12988 cat confdefs.h >>conftest.$ac_ext
12989 cat >>conftest.$ac_ext <<_ACEOF
12990 /* end confdefs.h. */
12992 /* Override any GCC internal prototype to avoid an error.
12993 Use char because int might match the return type of a GCC
12994 builtin and then its argument prototype would still apply. */
13002 return mallinfo ();
13007 for ac_lib in '' malloc; do
13008 if test -z "$ac_lib"; then
13009 ac_res="none required"
13012 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13014 rm -f conftest.$ac_objext conftest$ac_exeext
13015 if { (ac_try="$ac_link"
13016 case "(($ac_try" in
13017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13018 *) ac_try_echo=$ac_try;;
13020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13021 (eval "$ac_link") 2>conftest.er1
13023 grep -v '^ *+' conftest.er1 >conftest.err
13025 cat conftest.err >&5
13026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027 (exit $ac_status); } &&
13028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13029 { (case "(($ac_try" in
13030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13031 *) ac_try_echo=$ac_try;;
13033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13034 (eval "$ac_try") 2>&5
13036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037 (exit $ac_status); }; } &&
13038 { ac_try='test -s conftest$ac_exeext'
13039 { (case "(($ac_try" in
13040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13041 *) ac_try_echo=$ac_try;;
13043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13044 (eval "$ac_try") 2>&5
13046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 (exit $ac_status); }; }; then
13048 ac_cv_search_mallinfo=$ac_res
13050 echo "$as_me: failed program was:" >&5
13051 sed 's/^/| /' conftest.$ac_ext >&5
13056 rm -f core conftest.err conftest.$ac_objext \
13058 if test "${ac_cv_search_mallinfo+set}" = set; then
13062 if test "${ac_cv_search_mallinfo+set}" = set; then
13065 ac_cv_search_mallinfo=no
13067 rm conftest.$ac_ext
13068 LIBS=$ac_func_search_save_LIBS
13070 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13071 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13072 ac_res=$ac_cv_search_mallinfo
13073 if test "$ac_res" != no; then
13074 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13076 cat >>confdefs.h <<\_ACEOF
13077 #define HAVE_MALLINFO 1
13083 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
13085 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13086 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13087 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13088 echo $ECHO_N "(cached) $ECHO_C" >&6
13090 ac_check_lib_save_LIBS=$LIBS
13091 LIBS="-lpthread $LIBS"
13092 cat >conftest.$ac_ext <<_ACEOF
13095 cat confdefs.h >>conftest.$ac_ext
13096 cat >>conftest.$ac_ext <<_ACEOF
13097 /* end confdefs.h. */
13099 /* Override any GCC internal prototype to avoid an error.
13100 Use char because int might match the return type of a GCC
13101 builtin and then its argument prototype would still apply. */
13105 char pthread_mutex_init ();
13109 return pthread_mutex_init ();
13114 rm -f conftest.$ac_objext conftest$ac_exeext
13115 if { (ac_try="$ac_link"
13116 case "(($ac_try" in
13117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13118 *) ac_try_echo=$ac_try;;
13120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13121 (eval "$ac_link") 2>conftest.er1
13123 grep -v '^ *+' conftest.er1 >conftest.err
13125 cat conftest.err >&5
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); } &&
13128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13129 { (case "(($ac_try" in
13130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13131 *) ac_try_echo=$ac_try;;
13133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13134 (eval "$ac_try") 2>&5
13136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); }; } &&
13138 { ac_try='test -s conftest$ac_exeext'
13139 { (case "(($ac_try" in
13140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13141 *) ac_try_echo=$ac_try;;
13143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13144 (eval "$ac_try") 2>&5
13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); }; }; then
13148 ac_cv_lib_pthread_pthread_mutex_init=yes
13150 echo "$as_me: failed program was:" >&5
13151 sed 's/^/| /' conftest.$ac_ext >&5
13153 ac_cv_lib_pthread_pthread_mutex_init=no
13156 rm -f core conftest.err conftest.$ac_objext \
13157 conftest$ac_exeext conftest.$ac_ext
13158 LIBS=$ac_check_lib_save_LIBS
13160 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13161 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13162 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13163 cat >>confdefs.h <<_ACEOF
13164 #define HAVE_LIBPTHREAD 1
13167 LIBS="-lpthread $LIBS"
13171 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13172 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13173 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13174 echo $ECHO_N "(cached) $ECHO_C" >&6
13176 ac_func_search_save_LIBS=$LIBS
13177 cat >conftest.$ac_ext <<_ACEOF
13180 cat confdefs.h >>conftest.$ac_ext
13181 cat >>conftest.$ac_ext <<_ACEOF
13182 /* end confdefs.h. */
13184 /* Override any GCC internal prototype to avoid an error.
13185 Use char because int might match the return type of a GCC
13186 builtin and then its argument prototype would still apply. */
13190 char pthread_mutex_lock ();
13194 return pthread_mutex_lock ();
13199 for ac_lib in '' pthread; do
13200 if test -z "$ac_lib"; then
13201 ac_res="none required"
13204 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13206 rm -f conftest.$ac_objext conftest$ac_exeext
13207 if { (ac_try="$ac_link"
13208 case "(($ac_try" in
13209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13210 *) ac_try_echo=$ac_try;;
13212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13213 (eval "$ac_link") 2>conftest.er1
13215 grep -v '^ *+' conftest.er1 >conftest.err
13217 cat conftest.err >&5
13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); } &&
13220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13221 { (case "(($ac_try" in
13222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13223 *) ac_try_echo=$ac_try;;
13225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13226 (eval "$ac_try") 2>&5
13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); }; } &&
13230 { ac_try='test -s conftest$ac_exeext'
13231 { (case "(($ac_try" in
13232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13233 *) ac_try_echo=$ac_try;;
13235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13236 (eval "$ac_try") 2>&5
13238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239 (exit $ac_status); }; }; then
13240 ac_cv_search_pthread_mutex_lock=$ac_res
13242 echo "$as_me: failed program was:" >&5
13243 sed 's/^/| /' conftest.$ac_ext >&5
13248 rm -f core conftest.err conftest.$ac_objext \
13250 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13254 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13257 ac_cv_search_pthread_mutex_lock=no
13259 rm conftest.$ac_ext
13260 LIBS=$ac_func_search_save_LIBS
13262 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13263 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13264 ac_res=$ac_cv_search_pthread_mutex_lock
13265 if test "$ac_res" != no; then
13266 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13268 cat >>confdefs.h <<\_ACEOF
13269 #define HAVE_PTHREAD_MUTEX_LOCK 1
13274 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13275 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13276 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13277 echo $ECHO_N "(cached) $ECHO_C" >&6
13279 ac_func_search_save_LIBS=$LIBS
13280 cat >conftest.$ac_ext <<_ACEOF
13283 cat confdefs.h >>conftest.$ac_ext
13284 cat >>conftest.$ac_ext <<_ACEOF
13285 /* end confdefs.h. */
13287 /* Override any GCC internal prototype to avoid an error.
13288 Use char because int might match the return type of a GCC
13289 builtin and then its argument prototype would still apply. */
13293 char pthread_rwlock_init ();
13297 return pthread_rwlock_init ();
13302 for ac_lib in '' pthread; do
13303 if test -z "$ac_lib"; then
13304 ac_res="none required"
13307 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13309 rm -f conftest.$ac_objext conftest$ac_exeext
13310 if { (ac_try="$ac_link"
13311 case "(($ac_try" in
13312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13313 *) ac_try_echo=$ac_try;;
13315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13316 (eval "$ac_link") 2>conftest.er1
13318 grep -v '^ *+' conftest.er1 >conftest.err
13320 cat conftest.err >&5
13321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322 (exit $ac_status); } &&
13323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13324 { (case "(($ac_try" in
13325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13326 *) ac_try_echo=$ac_try;;
13328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13329 (eval "$ac_try") 2>&5
13331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); }; } &&
13333 { ac_try='test -s conftest$ac_exeext'
13334 { (case "(($ac_try" in
13335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13336 *) ac_try_echo=$ac_try;;
13338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13339 (eval "$ac_try") 2>&5
13341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13342 (exit $ac_status); }; }; then
13343 ac_cv_search_pthread_rwlock_init=$ac_res
13345 echo "$as_me: failed program was:" >&5
13346 sed 's/^/| /' conftest.$ac_ext >&5
13351 rm -f core conftest.err conftest.$ac_objext \
13353 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13357 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13360 ac_cv_search_pthread_rwlock_init=no
13362 rm conftest.$ac_ext
13363 LIBS=$ac_func_search_save_LIBS
13365 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13366 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13367 ac_res=$ac_cv_search_pthread_rwlock_init
13368 if test "$ac_res" != no; then
13369 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13371 cat >>confdefs.h <<\_ACEOF
13372 #define HAVE_PTHREAD_RWLOCK_INIT 1
13377 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13378 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13379 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13380 echo $ECHO_N "(cached) $ECHO_C" >&6
13382 ac_func_search_save_LIBS=$LIBS
13383 cat >conftest.$ac_ext <<_ACEOF
13386 cat confdefs.h >>conftest.$ac_ext
13387 cat >>conftest.$ac_ext <<_ACEOF
13388 /* end confdefs.h. */
13390 /* Override any GCC internal prototype to avoid an error.
13391 Use char because int might match the return type of a GCC
13392 builtin and then its argument prototype would still apply. */
13396 char pthread_getspecific ();
13400 return pthread_getspecific ();
13405 for ac_lib in '' pthread; do
13406 if test -z "$ac_lib"; then
13407 ac_res="none required"
13410 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13412 rm -f conftest.$ac_objext conftest$ac_exeext
13413 if { (ac_try="$ac_link"
13414 case "(($ac_try" in
13415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13416 *) ac_try_echo=$ac_try;;
13418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13419 (eval "$ac_link") 2>conftest.er1
13421 grep -v '^ *+' conftest.er1 >conftest.err
13423 cat conftest.err >&5
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); } &&
13426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13427 { (case "(($ac_try" in
13428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13429 *) ac_try_echo=$ac_try;;
13431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13432 (eval "$ac_try") 2>&5
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; } &&
13436 { ac_try='test -s conftest$ac_exeext'
13437 { (case "(($ac_try" in
13438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13439 *) ac_try_echo=$ac_try;;
13441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13442 (eval "$ac_try") 2>&5
13444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 (exit $ac_status); }; }; then
13446 ac_cv_search_pthread_getspecific=$ac_res
13448 echo "$as_me: failed program was:" >&5
13449 sed 's/^/| /' conftest.$ac_ext >&5
13454 rm -f core conftest.err conftest.$ac_objext \
13456 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13460 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13463 ac_cv_search_pthread_getspecific=no
13465 rm conftest.$ac_ext
13466 LIBS=$ac_func_search_save_LIBS
13468 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13469 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13470 ac_res=$ac_cv_search_pthread_getspecific
13471 if test "$ac_res" != no; then
13472 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13474 cat >>confdefs.h <<\_ACEOF
13475 #define HAVE_PTHREAD_GETSPECIFIC 1
13482 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13484 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
13485 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
13486 if test "${ac_cv_lib_z_compress2+set}" = set; then
13487 echo $ECHO_N "(cached) $ECHO_C" >&6
13489 ac_check_lib_save_LIBS=$LIBS
13491 cat >conftest.$ac_ext <<_ACEOF
13494 cat confdefs.h >>conftest.$ac_ext
13495 cat >>conftest.$ac_ext <<_ACEOF
13496 /* end confdefs.h. */
13498 /* Override any GCC internal prototype to avoid an error.
13499 Use char because int might match the return type of a GCC
13500 builtin and then its argument prototype would still apply. */
13508 return compress2 ();
13513 rm -f conftest.$ac_objext conftest$ac_exeext
13514 if { (ac_try="$ac_link"
13515 case "(($ac_try" in
13516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13517 *) ac_try_echo=$ac_try;;
13519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13520 (eval "$ac_link") 2>conftest.er1
13522 grep -v '^ *+' conftest.er1 >conftest.err
13524 cat conftest.err >&5
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); } &&
13527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13528 { (case "(($ac_try" in
13529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13530 *) ac_try_echo=$ac_try;;
13532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13533 (eval "$ac_try") 2>&5
13535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536 (exit $ac_status); }; } &&
13537 { ac_try='test -s conftest$ac_exeext'
13538 { (case "(($ac_try" in
13539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13540 *) ac_try_echo=$ac_try;;
13542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13543 (eval "$ac_try") 2>&5
13545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546 (exit $ac_status); }; }; then
13547 ac_cv_lib_z_compress2=yes
13549 echo "$as_me: failed program was:" >&5
13550 sed 's/^/| /' conftest.$ac_ext >&5
13552 ac_cv_lib_z_compress2=no
13555 rm -f core conftest.err conftest.$ac_objext \
13556 conftest$ac_exeext conftest.$ac_ext
13557 LIBS=$ac_check_lib_save_LIBS
13559 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13560 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13561 if test $ac_cv_lib_z_compress2 = yes; then
13562 cat >>confdefs.h <<_ACEOF
13563 #define HAVE_LIBZ 1
13573 # Check whether --with-udis86 was given.
13574 if test "${with_udis86+set}" = set; then
13575 withval=$with_udis86;
13580 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13583 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13584 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13585 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13586 echo $ECHO_N "(cached) $ECHO_C" >&6
13588 ac_check_lib_save_LIBS=$LIBS
13589 LIBS="-ludis86 $LIBS"
13590 cat >conftest.$ac_ext <<_ACEOF
13593 cat confdefs.h >>conftest.$ac_ext
13594 cat >>conftest.$ac_ext <<_ACEOF
13595 /* end confdefs.h. */
13597 /* Override any GCC internal prototype to avoid an error.
13598 Use char because int might match the return type of a GCC
13599 builtin and then its argument prototype would still apply. */
13612 rm -f conftest.$ac_objext conftest$ac_exeext
13613 if { (ac_try="$ac_link"
13614 case "(($ac_try" in
13615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13616 *) ac_try_echo=$ac_try;;
13618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13619 (eval "$ac_link") 2>conftest.er1
13621 grep -v '^ *+' conftest.er1 >conftest.err
13623 cat conftest.err >&5
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); } &&
13626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13627 { (case "(($ac_try" in
13628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13629 *) ac_try_echo=$ac_try;;
13631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13632 (eval "$ac_try") 2>&5
13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635 (exit $ac_status); }; } &&
13636 { ac_try='test -s conftest$ac_exeext'
13637 { (case "(($ac_try" in
13638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13639 *) ac_try_echo=$ac_try;;
13641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13642 (eval "$ac_try") 2>&5
13644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645 (exit $ac_status); }; }; then
13646 ac_cv_lib_udis86_ud_init=yes
13648 echo "$as_me: failed program was:" >&5
13649 sed 's/^/| /' conftest.$ac_ext >&5
13651 ac_cv_lib_udis86_ud_init=no
13654 rm -f core conftest.err conftest.$ac_objext \
13655 conftest$ac_exeext conftest.$ac_ext
13656 LIBS=$ac_check_lib_save_LIBS
13658 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13659 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13660 if test $ac_cv_lib_udis86_ud_init = yes; then
13661 cat >>confdefs.h <<_ACEOF
13662 #define HAVE_LIBUDIS86 1
13665 LIBS="-ludis86 $LIBS"
13669 echo "Error! You need to have libudis86 around."
13681 cat >>confdefs.h <<_ACEOF
13682 #define USE_UDIS86 $USE_UDIS86
13687 # Check whether --with-oprofile was given.
13688 if test "${with_oprofile+set}" = set; then
13689 withval=$with_oprofile;
13693 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13694 no) llvm_cv_oppath=
13697 *) llvm_cv_oppath="${withval}/lib/oprofile"
13698 CPPFLAGS="-I${withval}/include";;
13700 case $llvm_cv_os_type in
13702 if test -n "$llvm_cv_oppath" ; then
13703 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13704 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13705 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13706 if test "${ac_cv_search_bfd_init+set}" = set; then
13707 echo $ECHO_N "(cached) $ECHO_C" >&6
13709 ac_func_search_save_LIBS=$LIBS
13710 cat >conftest.$ac_ext <<_ACEOF
13713 cat confdefs.h >>conftest.$ac_ext
13714 cat >>conftest.$ac_ext <<_ACEOF
13715 /* end confdefs.h. */
13717 /* Override any GCC internal prototype to avoid an error.
13718 Use char because int might match the return type of a GCC
13719 builtin and then its argument prototype would still apply. */
13727 return bfd_init ();
13732 for ac_lib in '' bfd; do
13733 if test -z "$ac_lib"; then
13734 ac_res="none required"
13737 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13739 rm -f conftest.$ac_objext conftest$ac_exeext
13740 if { (ac_try="$ac_link"
13741 case "(($ac_try" in
13742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13743 *) ac_try_echo=$ac_try;;
13745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13746 (eval "$ac_link") 2>conftest.er1
13748 grep -v '^ *+' conftest.er1 >conftest.err
13750 cat conftest.err >&5
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); } &&
13753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13754 { (case "(($ac_try" in
13755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13756 *) ac_try_echo=$ac_try;;
13758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13759 (eval "$ac_try") 2>&5
13761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762 (exit $ac_status); }; } &&
13763 { ac_try='test -s conftest$ac_exeext'
13764 { (case "(($ac_try" in
13765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13766 *) ac_try_echo=$ac_try;;
13768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13769 (eval "$ac_try") 2>&5
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); }; }; then
13773 ac_cv_search_bfd_init=$ac_res
13775 echo "$as_me: failed program was:" >&5
13776 sed 's/^/| /' conftest.$ac_ext >&5
13781 rm -f core conftest.err conftest.$ac_objext \
13783 if test "${ac_cv_search_bfd_init+set}" = set; then
13787 if test "${ac_cv_search_bfd_init+set}" = set; then
13790 ac_cv_search_bfd_init=no
13792 rm conftest.$ac_ext
13793 LIBS=$ac_func_search_save_LIBS
13795 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13796 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13797 ac_res=$ac_cv_search_bfd_init
13798 if test "$ac_res" != no; then
13799 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13803 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13804 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13805 if test "${ac_cv_search_op_open_agent+set}" = set; then
13806 echo $ECHO_N "(cached) $ECHO_C" >&6
13808 ac_func_search_save_LIBS=$LIBS
13809 cat >conftest.$ac_ext <<_ACEOF
13812 cat confdefs.h >>conftest.$ac_ext
13813 cat >>conftest.$ac_ext <<_ACEOF
13814 /* end confdefs.h. */
13816 /* Override any GCC internal prototype to avoid an error.
13817 Use char because int might match the return type of a GCC
13818 builtin and then its argument prototype would still apply. */
13822 char op_open_agent ();
13826 return op_open_agent ();
13831 for ac_lib in '' opagent; do
13832 if test -z "$ac_lib"; then
13833 ac_res="none required"
13836 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13838 rm -f conftest.$ac_objext conftest$ac_exeext
13839 if { (ac_try="$ac_link"
13840 case "(($ac_try" in
13841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13842 *) ac_try_echo=$ac_try;;
13844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13845 (eval "$ac_link") 2>conftest.er1
13847 grep -v '^ *+' conftest.er1 >conftest.err
13849 cat conftest.err >&5
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); } &&
13852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13853 { (case "(($ac_try" in
13854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13855 *) ac_try_echo=$ac_try;;
13857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13858 (eval "$ac_try") 2>&5
13860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 (exit $ac_status); }; } &&
13862 { ac_try='test -s conftest$ac_exeext'
13863 { (case "(($ac_try" in
13864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13865 *) ac_try_echo=$ac_try;;
13867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13868 (eval "$ac_try") 2>&5
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); }; }; then
13872 ac_cv_search_op_open_agent=$ac_res
13874 echo "$as_me: failed program was:" >&5
13875 sed 's/^/| /' conftest.$ac_ext >&5
13880 rm -f core conftest.err conftest.$ac_objext \
13882 if test "${ac_cv_search_op_open_agent+set}" = set; then
13886 if test "${ac_cv_search_op_open_agent+set}" = set; then
13889 ac_cv_search_op_open_agent=no
13891 rm conftest.$ac_ext
13892 LIBS=$ac_func_search_save_LIBS
13894 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13895 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13896 ac_res=$ac_cv_search_op_open_agent
13897 if test "$ac_res" != no; then
13898 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13902 echo "Error! You need to have libopagent around."
13907 if test "${ac_cv_header_opagent_h+set}" = set; then
13908 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13909 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13910 if test "${ac_cv_header_opagent_h+set}" = set; then
13911 echo $ECHO_N "(cached) $ECHO_C" >&6
13913 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13914 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13916 # Is the header compilable?
13917 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13918 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13919 cat >conftest.$ac_ext <<_ACEOF
13922 cat confdefs.h >>conftest.$ac_ext
13923 cat >>conftest.$ac_ext <<_ACEOF
13924 /* end confdefs.h. */
13925 $ac_includes_default
13926 #include <opagent.h>
13928 rm -f conftest.$ac_objext
13929 if { (ac_try="$ac_compile"
13930 case "(($ac_try" in
13931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13932 *) ac_try_echo=$ac_try;;
13934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13935 (eval "$ac_compile") 2>conftest.er1
13937 grep -v '^ *+' conftest.er1 >conftest.err
13939 cat conftest.err >&5
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); } &&
13942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13943 { (case "(($ac_try" in
13944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13945 *) ac_try_echo=$ac_try;;
13947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13948 (eval "$ac_try") 2>&5
13950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951 (exit $ac_status); }; } &&
13952 { ac_try='test -s conftest.$ac_objext'
13953 { (case "(($ac_try" in
13954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13955 *) ac_try_echo=$ac_try;;
13957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13958 (eval "$ac_try") 2>&5
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); }; }; then
13962 ac_header_compiler=yes
13964 echo "$as_me: failed program was:" >&5
13965 sed 's/^/| /' conftest.$ac_ext >&5
13967 ac_header_compiler=no
13970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13971 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13972 echo "${ECHO_T}$ac_header_compiler" >&6; }
13974 # Is the header present?
13975 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13976 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13977 cat >conftest.$ac_ext <<_ACEOF
13980 cat confdefs.h >>conftest.$ac_ext
13981 cat >>conftest.$ac_ext <<_ACEOF
13982 /* end confdefs.h. */
13983 #include <opagent.h>
13985 if { (ac_try="$ac_cpp conftest.$ac_ext"
13986 case "(($ac_try" in
13987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13988 *) ac_try_echo=$ac_try;;
13990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13991 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13993 grep -v '^ *+' conftest.er1 >conftest.err
13995 cat conftest.err >&5
13996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997 (exit $ac_status); } >/dev/null; then
13998 if test -s conftest.err; then
13999 ac_cpp_err=$ac_c_preproc_warn_flag
14000 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14007 if test -z "$ac_cpp_err"; then
14008 ac_header_preproc=yes
14010 echo "$as_me: failed program was:" >&5
14011 sed 's/^/| /' conftest.$ac_ext >&5
14013 ac_header_preproc=no
14016 rm -f conftest.err conftest.$ac_ext
14017 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14018 echo "${ECHO_T}$ac_header_preproc" >&6; }
14020 # So? What about this header?
14021 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14023 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14024 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14025 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14026 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14027 ac_header_preproc=yes
14030 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14031 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14032 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14033 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14034 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14035 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14036 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14037 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14038 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14039 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14040 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14041 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14043 ## ------------------------------------ ##
14044 ## Report this to http://llvm.org/bugs/ ##
14045 ## ------------------------------------ ##
14047 ) | sed "s/^/$as_me: WARNING: /" >&2
14050 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14051 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14052 if test "${ac_cv_header_opagent_h+set}" = set; then
14053 echo $ECHO_N "(cached) $ECHO_C" >&6
14055 ac_cv_header_opagent_h=$ac_header_preproc
14057 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14058 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14061 if test $ac_cv_header_opagent_h = yes; then
14065 echo "Error! You need to have opagent.h around."
14073 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
14074 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
14075 { (exit 1); exit 1; }; } ;;
14086 cat >>confdefs.h <<_ACEOF
14087 #define LLVM_USE_OPROFILE $USE_OPROFILE
14092 # Check whether --with-intel-jitevents was given.
14093 if test "${with_intel_jitevents+set}" = set; then
14094 withval=$with_intel_jitevents;
14096 yes) USE_INTEL_JITEVENTS=1
14098 no) USE_INTEL_JITEVENTS=0
14100 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
14101 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
14102 { (exit 1); exit 1; }; };;
14105 case $llvm_cv_os_type in
14106 Linux|Win32|Cygwin|MingW) ;;
14107 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
14108 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
14109 { (exit 1); exit 1; }; };;
14112 case "$llvm_cv_target_arch" in
14114 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
14115 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
14116 { (exit 1); exit 1; }; };;
14121 USE_INTEL_JITEVENTS=0
14127 cat >>confdefs.h <<_ACEOF
14128 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
14132 for ac_prog in xml2-config
14134 # Extract the first word of "$ac_prog", so it can be a program name with args.
14135 set dummy $ac_prog; ac_word=$2
14136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14138 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
14139 echo $ECHO_N "(cached) $ECHO_C" >&6
14141 if test -n "$XML2CONFIG"; then
14142 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
14144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14145 for as_dir in $PATH
14148 test -z "$as_dir" && as_dir=.
14149 for ac_exec_ext in '' $ac_executable_extensions; do
14150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14151 ac_cv_prog_XML2CONFIG="$ac_prog"
14152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14161 XML2CONFIG=$ac_cv_prog_XML2CONFIG
14162 if test -n "$XML2CONFIG"; then
14163 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
14164 echo "${ECHO_T}$XML2CONFIG" >&6; }
14166 { echo "$as_me:$LINENO: result: no" >&5
14167 echo "${ECHO_T}no" >&6; }
14171 test -n "$XML2CONFIG" && break
14175 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
14176 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
14177 if test "x$XML2CONFIG" = "x"; then
14178 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
14179 echo "${ECHO_T}xml2-config not found" >&6; }
14181 LIBXML2_INC=`$XML2CONFIG --cflags`
14182 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
14183 echo "${ECHO_T}$LIBXML2_INC" >&6; }
14184 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
14185 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
14186 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
14187 echo $ECHO_N "(cached) $ECHO_C" >&6
14189 ac_check_lib_save_LIBS=$LIBS
14190 LIBS="-lxml2 $LIBS"
14191 cat >conftest.$ac_ext <<_ACEOF
14194 cat confdefs.h >>conftest.$ac_ext
14195 cat >>conftest.$ac_ext <<_ACEOF
14196 /* end confdefs.h. */
14198 /* Override any GCC internal prototype to avoid an error.
14199 Use char because int might match the return type of a GCC
14200 builtin and then its argument prototype would still apply. */
14204 char xmlReadFile ();
14208 return xmlReadFile ();
14213 rm -f conftest.$ac_objext conftest$ac_exeext
14214 if { (ac_try="$ac_link"
14215 case "(($ac_try" in
14216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14217 *) ac_try_echo=$ac_try;;
14219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14220 (eval "$ac_link") 2>conftest.er1
14222 grep -v '^ *+' conftest.er1 >conftest.err
14224 cat conftest.err >&5
14225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 (exit $ac_status); } &&
14227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14228 { (case "(($ac_try" in
14229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14230 *) ac_try_echo=$ac_try;;
14232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14233 (eval "$ac_try") 2>&5
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); }; } &&
14237 { ac_try='test -s conftest$ac_exeext'
14238 { (case "(($ac_try" in
14239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14240 *) ac_try_echo=$ac_try;;
14242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14243 (eval "$ac_try") 2>&5
14245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); }; }; then
14247 ac_cv_lib_xml2_xmlReadFile=yes
14249 echo "$as_me: failed program was:" >&5
14250 sed 's/^/| /' conftest.$ac_ext >&5
14252 ac_cv_lib_xml2_xmlReadFile=no
14255 rm -f core conftest.err conftest.$ac_objext \
14256 conftest$ac_exeext conftest.$ac_ext
14257 LIBS=$ac_check_lib_save_LIBS
14259 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14260 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14261 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14263 cat >>confdefs.h <<\_ACEOF
14264 #define CLANG_HAVE_LIBXML 1
14267 LIBXML2_LIBS="-lxml2"
14280 ac_header_dirent=no
14281 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14282 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14283 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14284 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14286 echo $ECHO_N "(cached) $ECHO_C" >&6
14288 cat >conftest.$ac_ext <<_ACEOF
14291 cat confdefs.h >>conftest.$ac_ext
14292 cat >>conftest.$ac_ext <<_ACEOF
14293 /* end confdefs.h. */
14294 #include <sys/types.h>
14306 rm -f conftest.$ac_objext
14307 if { (ac_try="$ac_compile"
14308 case "(($ac_try" in
14309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14310 *) ac_try_echo=$ac_try;;
14312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14313 (eval "$ac_compile") 2>conftest.er1
14315 grep -v '^ *+' conftest.er1 >conftest.err
14317 cat conftest.err >&5
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); } &&
14320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14321 { (case "(($ac_try" in
14322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14323 *) ac_try_echo=$ac_try;;
14325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14326 (eval "$ac_try") 2>&5
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); }; } &&
14330 { ac_try='test -s conftest.$ac_objext'
14331 { (case "(($ac_try" in
14332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14333 *) ac_try_echo=$ac_try;;
14335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14336 (eval "$ac_try") 2>&5
14338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339 (exit $ac_status); }; }; then
14340 eval "$as_ac_Header=yes"
14342 echo "$as_me: failed program was:" >&5
14343 sed 's/^/| /' conftest.$ac_ext >&5
14345 eval "$as_ac_Header=no"
14348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14350 ac_res=`eval echo '${'$as_ac_Header'}'`
14351 { echo "$as_me:$LINENO: result: $ac_res" >&5
14352 echo "${ECHO_T}$ac_res" >&6; }
14353 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14354 cat >>confdefs.h <<_ACEOF
14355 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14358 ac_header_dirent=$ac_hdr; break
14362 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14363 if test $ac_header_dirent = dirent.h; then
14364 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14365 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14366 if test "${ac_cv_search_opendir+set}" = set; then
14367 echo $ECHO_N "(cached) $ECHO_C" >&6
14369 ac_func_search_save_LIBS=$LIBS
14370 cat >conftest.$ac_ext <<_ACEOF
14373 cat confdefs.h >>conftest.$ac_ext
14374 cat >>conftest.$ac_ext <<_ACEOF
14375 /* end confdefs.h. */
14377 /* Override any GCC internal prototype to avoid an error.
14378 Use char because int might match the return type of a GCC
14379 builtin and then its argument prototype would still apply. */
14392 for ac_lib in '' dir; do
14393 if test -z "$ac_lib"; then
14394 ac_res="none required"
14397 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14399 rm -f conftest.$ac_objext conftest$ac_exeext
14400 if { (ac_try="$ac_link"
14401 case "(($ac_try" in
14402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14403 *) ac_try_echo=$ac_try;;
14405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14406 (eval "$ac_link") 2>conftest.er1
14408 grep -v '^ *+' conftest.er1 >conftest.err
14410 cat conftest.err >&5
14411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412 (exit $ac_status); } &&
14413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14414 { (case "(($ac_try" in
14415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14416 *) ac_try_echo=$ac_try;;
14418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14419 (eval "$ac_try") 2>&5
14421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422 (exit $ac_status); }; } &&
14423 { ac_try='test -s conftest$ac_exeext'
14424 { (case "(($ac_try" in
14425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14426 *) ac_try_echo=$ac_try;;
14428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14429 (eval "$ac_try") 2>&5
14431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14432 (exit $ac_status); }; }; then
14433 ac_cv_search_opendir=$ac_res
14435 echo "$as_me: failed program was:" >&5
14436 sed 's/^/| /' conftest.$ac_ext >&5
14441 rm -f core conftest.err conftest.$ac_objext \
14443 if test "${ac_cv_search_opendir+set}" = set; then
14447 if test "${ac_cv_search_opendir+set}" = set; then
14450 ac_cv_search_opendir=no
14452 rm conftest.$ac_ext
14453 LIBS=$ac_func_search_save_LIBS
14455 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14456 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14457 ac_res=$ac_cv_search_opendir
14458 if test "$ac_res" != no; then
14459 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14464 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14465 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14466 if test "${ac_cv_search_opendir+set}" = set; then
14467 echo $ECHO_N "(cached) $ECHO_C" >&6
14469 ac_func_search_save_LIBS=$LIBS
14470 cat >conftest.$ac_ext <<_ACEOF
14473 cat confdefs.h >>conftest.$ac_ext
14474 cat >>conftest.$ac_ext <<_ACEOF
14475 /* end confdefs.h. */
14477 /* Override any GCC internal prototype to avoid an error.
14478 Use char because int might match the return type of a GCC
14479 builtin and then its argument prototype would still apply. */
14492 for ac_lib in '' x; do
14493 if test -z "$ac_lib"; then
14494 ac_res="none required"
14497 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14499 rm -f conftest.$ac_objext conftest$ac_exeext
14500 if { (ac_try="$ac_link"
14501 case "(($ac_try" in
14502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14503 *) ac_try_echo=$ac_try;;
14505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14506 (eval "$ac_link") 2>conftest.er1
14508 grep -v '^ *+' conftest.er1 >conftest.err
14510 cat conftest.err >&5
14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); } &&
14513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14514 { (case "(($ac_try" in
14515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14516 *) ac_try_echo=$ac_try;;
14518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14519 (eval "$ac_try") 2>&5
14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); }; } &&
14523 { ac_try='test -s conftest$ac_exeext'
14524 { (case "(($ac_try" in
14525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14526 *) ac_try_echo=$ac_try;;
14528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14529 (eval "$ac_try") 2>&5
14531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 (exit $ac_status); }; }; then
14533 ac_cv_search_opendir=$ac_res
14535 echo "$as_me: failed program was:" >&5
14536 sed 's/^/| /' conftest.$ac_ext >&5
14541 rm -f core conftest.err conftest.$ac_objext \
14543 if test "${ac_cv_search_opendir+set}" = set; then
14547 if test "${ac_cv_search_opendir+set}" = set; then
14550 ac_cv_search_opendir=no
14552 rm conftest.$ac_ext
14553 LIBS=$ac_func_search_save_LIBS
14555 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14556 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14557 ac_res=$ac_cv_search_opendir
14558 if test "$ac_res" != no; then
14559 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14565 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14566 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14567 if test "${ac_cv_header_mmap_anon+set}" = set; then
14568 echo $ECHO_N "(cached) $ECHO_C" >&6
14571 ac_cpp='$CPP $CPPFLAGS'
14572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14576 cat >conftest.$ac_ext <<_ACEOF
14579 cat confdefs.h >>conftest.$ac_ext
14580 cat >>conftest.$ac_ext <<_ACEOF
14581 /* end confdefs.h. */
14582 #include <sys/mman.h>
14583 #include <unistd.h>
14588 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14593 rm -f conftest.$ac_objext
14594 if { (ac_try="$ac_compile"
14595 case "(($ac_try" in
14596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14597 *) ac_try_echo=$ac_try;;
14599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14600 (eval "$ac_compile") 2>conftest.er1
14602 grep -v '^ *+' conftest.er1 >conftest.err
14604 cat conftest.err >&5
14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606 (exit $ac_status); } &&
14607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14608 { (case "(($ac_try" in
14609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14610 *) ac_try_echo=$ac_try;;
14612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14613 (eval "$ac_try") 2>&5
14615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616 (exit $ac_status); }; } &&
14617 { ac_try='test -s conftest.$ac_objext'
14618 { (case "(($ac_try" in
14619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14620 *) ac_try_echo=$ac_try;;
14622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14623 (eval "$ac_try") 2>&5
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); }; }; then
14627 ac_cv_header_mmap_anon=yes
14629 echo "$as_me: failed program was:" >&5
14630 sed 's/^/| /' conftest.$ac_ext >&5
14632 ac_cv_header_mmap_anon=no
14635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14637 ac_cpp='$CPP $CPPFLAGS'
14638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14644 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14645 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14646 if test "$ac_cv_header_mmap_anon" = yes; then
14648 cat >>confdefs.h <<\_ACEOF
14649 #define HAVE_MMAP_ANONYMOUS 1
14654 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14655 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14656 if test "${ac_cv_header_stat_broken+set}" = set; then
14657 echo $ECHO_N "(cached) $ECHO_C" >&6
14659 cat >conftest.$ac_ext <<_ACEOF
14662 cat confdefs.h >>conftest.$ac_ext
14663 cat >>conftest.$ac_ext <<_ACEOF
14664 /* end confdefs.h. */
14665 #include <sys/types.h>
14666 #include <sys/stat.h>
14668 #if defined S_ISBLK && defined S_IFDIR
14669 # if S_ISBLK (S_IFDIR)
14674 #if defined S_ISBLK && defined S_IFCHR
14675 # if S_ISBLK (S_IFCHR)
14680 #if defined S_ISLNK && defined S_IFREG
14681 # if S_ISLNK (S_IFREG)
14686 #if defined S_ISSOCK && defined S_IFREG
14687 # if S_ISSOCK (S_IFREG)
14693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14694 $EGREP "You lose" >/dev/null 2>&1; then
14695 ac_cv_header_stat_broken=yes
14697 ac_cv_header_stat_broken=no
14702 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14703 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14704 if test $ac_cv_header_stat_broken = yes; then
14706 cat >>confdefs.h <<\_ACEOF
14707 #define STAT_MACROS_BROKEN 1
14712 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14713 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14714 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14715 echo $ECHO_N "(cached) $ECHO_C" >&6
14717 cat >conftest.$ac_ext <<_ACEOF
14720 cat confdefs.h >>conftest.$ac_ext
14721 cat >>conftest.$ac_ext <<_ACEOF
14722 /* end confdefs.h. */
14723 #include <sys/types.h>
14724 #include <sys/wait.h>
14725 #ifndef WEXITSTATUS
14726 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14729 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14737 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14742 rm -f conftest.$ac_objext
14743 if { (ac_try="$ac_compile"
14744 case "(($ac_try" in
14745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14746 *) ac_try_echo=$ac_try;;
14748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14749 (eval "$ac_compile") 2>conftest.er1
14751 grep -v '^ *+' conftest.er1 >conftest.err
14753 cat conftest.err >&5
14754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755 (exit $ac_status); } &&
14756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14757 { (case "(($ac_try" in
14758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14759 *) ac_try_echo=$ac_try;;
14761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14762 (eval "$ac_try") 2>&5
14764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765 (exit $ac_status); }; } &&
14766 { ac_try='test -s conftest.$ac_objext'
14767 { (case "(($ac_try" in
14768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14769 *) ac_try_echo=$ac_try;;
14771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14772 (eval "$ac_try") 2>&5
14774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775 (exit $ac_status); }; }; then
14776 ac_cv_header_sys_wait_h=yes
14778 echo "$as_me: failed program was:" >&5
14779 sed 's/^/| /' conftest.$ac_ext >&5
14781 ac_cv_header_sys_wait_h=no
14784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14786 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14787 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14788 if test $ac_cv_header_sys_wait_h = yes; then
14790 cat >>confdefs.h <<\_ACEOF
14791 #define HAVE_SYS_WAIT_H 1
14796 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14797 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14798 if test "${ac_cv_header_time+set}" = set; then
14799 echo $ECHO_N "(cached) $ECHO_C" >&6
14801 cat >conftest.$ac_ext <<_ACEOF
14804 cat confdefs.h >>conftest.$ac_ext
14805 cat >>conftest.$ac_ext <<_ACEOF
14806 /* end confdefs.h. */
14807 #include <sys/types.h>
14808 #include <sys/time.h>
14814 if ((struct tm *) 0)
14820 rm -f conftest.$ac_objext
14821 if { (ac_try="$ac_compile"
14822 case "(($ac_try" in
14823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14824 *) ac_try_echo=$ac_try;;
14826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14827 (eval "$ac_compile") 2>conftest.er1
14829 grep -v '^ *+' conftest.er1 >conftest.err
14831 cat conftest.err >&5
14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 (exit $ac_status); } &&
14834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14835 { (case "(($ac_try" in
14836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14837 *) ac_try_echo=$ac_try;;
14839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14840 (eval "$ac_try") 2>&5
14842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843 (exit $ac_status); }; } &&
14844 { ac_try='test -s conftest.$ac_objext'
14845 { (case "(($ac_try" in
14846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14847 *) ac_try_echo=$ac_try;;
14849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14850 (eval "$ac_try") 2>&5
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); }; }; then
14854 ac_cv_header_time=yes
14856 echo "$as_me: failed program was:" >&5
14857 sed 's/^/| /' conftest.$ac_ext >&5
14859 ac_cv_header_time=no
14862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14864 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14865 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14866 if test $ac_cv_header_time = yes; then
14868 cat >>confdefs.h <<\_ACEOF
14869 #define TIME_WITH_SYS_TIME 1
14876 ac_cpp='$CXXCPP $CPPFLAGS'
14877 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14878 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14879 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14882 ac_cpp='$CXXCPP $CPPFLAGS'
14883 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14884 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14885 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14886 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14887 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14888 if test -z "$CXXCPP"; then
14889 if test "${ac_cv_prog_CXXCPP+set}" = set; then
14890 echo $ECHO_N "(cached) $ECHO_C" >&6
14892 # Double quotes because CXXCPP needs to be expanded
14893 for CXXCPP in "$CXX -E" "/lib/cpp"
14895 ac_preproc_ok=false
14896 for ac_cxx_preproc_warn_flag in '' yes
14898 # Use a header file that comes with gcc, so configuring glibc
14899 # with a fresh cross-compiler works.
14900 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14901 # <limits.h> exists even on freestanding compilers.
14902 # On the NeXT, cc -E runs the code through the compiler's parser,
14903 # not just through cpp. "Syntax error" is here to catch this case.
14904 cat >conftest.$ac_ext <<_ACEOF
14907 cat confdefs.h >>conftest.$ac_ext
14908 cat >>conftest.$ac_ext <<_ACEOF
14909 /* end confdefs.h. */
14911 # include <limits.h>
14913 # include <assert.h>
14917 if { (ac_try="$ac_cpp conftest.$ac_ext"
14918 case "(($ac_try" in
14919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14920 *) ac_try_echo=$ac_try;;
14922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14925 grep -v '^ *+' conftest.er1 >conftest.err
14927 cat conftest.err >&5
14928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929 (exit $ac_status); } >/dev/null; then
14930 if test -s conftest.err; then
14931 ac_cpp_err=$ac_cxx_preproc_warn_flag
14932 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14939 if test -z "$ac_cpp_err"; then
14942 echo "$as_me: failed program was:" >&5
14943 sed 's/^/| /' conftest.$ac_ext >&5
14945 # Broken: fails on valid input.
14949 rm -f conftest.err conftest.$ac_ext
14951 # OK, works on sane cases. Now check whether nonexistent headers
14952 # can be detected and how.
14953 cat >conftest.$ac_ext <<_ACEOF
14956 cat confdefs.h >>conftest.$ac_ext
14957 cat >>conftest.$ac_ext <<_ACEOF
14958 /* end confdefs.h. */
14959 #include <ac_nonexistent.h>
14961 if { (ac_try="$ac_cpp conftest.$ac_ext"
14962 case "(($ac_try" in
14963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14964 *) ac_try_echo=$ac_try;;
14966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14967 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14969 grep -v '^ *+' conftest.er1 >conftest.err
14971 cat conftest.err >&5
14972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973 (exit $ac_status); } >/dev/null; then
14974 if test -s conftest.err; then
14975 ac_cpp_err=$ac_cxx_preproc_warn_flag
14976 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14983 if test -z "$ac_cpp_err"; then
14984 # Broken: success on invalid input.
14987 echo "$as_me: failed program was:" >&5
14988 sed 's/^/| /' conftest.$ac_ext >&5
14990 # Passes both tests.
14995 rm -f conftest.err conftest.$ac_ext
14998 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14999 rm -f conftest.err conftest.$ac_ext
15000 if $ac_preproc_ok; then
15005 ac_cv_prog_CXXCPP=$CXXCPP
15008 CXXCPP=$ac_cv_prog_CXXCPP
15010 ac_cv_prog_CXXCPP=$CXXCPP
15012 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
15013 echo "${ECHO_T}$CXXCPP" >&6; }
15014 ac_preproc_ok=false
15015 for ac_cxx_preproc_warn_flag in '' yes
15017 # Use a header file that comes with gcc, so configuring glibc
15018 # with a fresh cross-compiler works.
15019 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15020 # <limits.h> exists even on freestanding compilers.
15021 # On the NeXT, cc -E runs the code through the compiler's parser,
15022 # not just through cpp. "Syntax error" is here to catch this case.
15023 cat >conftest.$ac_ext <<_ACEOF
15026 cat confdefs.h >>conftest.$ac_ext
15027 cat >>conftest.$ac_ext <<_ACEOF
15028 /* end confdefs.h. */
15030 # include <limits.h>
15032 # include <assert.h>
15036 if { (ac_try="$ac_cpp conftest.$ac_ext"
15037 case "(($ac_try" in
15038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15039 *) ac_try_echo=$ac_try;;
15041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15042 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15044 grep -v '^ *+' conftest.er1 >conftest.err
15046 cat conftest.err >&5
15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); } >/dev/null; then
15049 if test -s conftest.err; then
15050 ac_cpp_err=$ac_cxx_preproc_warn_flag
15051 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15058 if test -z "$ac_cpp_err"; then
15061 echo "$as_me: failed program was:" >&5
15062 sed 's/^/| /' conftest.$ac_ext >&5
15064 # Broken: fails on valid input.
15068 rm -f conftest.err conftest.$ac_ext
15070 # OK, works on sane cases. Now check whether nonexistent headers
15071 # can be detected and how.
15072 cat >conftest.$ac_ext <<_ACEOF
15075 cat confdefs.h >>conftest.$ac_ext
15076 cat >>conftest.$ac_ext <<_ACEOF
15077 /* end confdefs.h. */
15078 #include <ac_nonexistent.h>
15080 if { (ac_try="$ac_cpp conftest.$ac_ext"
15081 case "(($ac_try" in
15082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15083 *) ac_try_echo=$ac_try;;
15085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15086 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15088 grep -v '^ *+' conftest.er1 >conftest.err
15090 cat conftest.err >&5
15091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092 (exit $ac_status); } >/dev/null; then
15093 if test -s conftest.err; then
15094 ac_cpp_err=$ac_cxx_preproc_warn_flag
15095 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15102 if test -z "$ac_cpp_err"; then
15103 # Broken: success on invalid input.
15106 echo "$as_me: failed program was:" >&5
15107 sed 's/^/| /' conftest.$ac_ext >&5
15109 # Passes both tests.
15114 rm -f conftest.err conftest.$ac_ext
15117 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15118 rm -f conftest.err conftest.$ac_ext
15119 if $ac_preproc_ok; then
15122 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15123 See \`config.log' for more details." >&5
15124 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15125 See \`config.log' for more details." >&2;}
15126 { (exit 1); exit 1; }; }
15130 ac_cpp='$CXXCPP $CPPFLAGS'
15131 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15132 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15133 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15137 for ac_header in cxxabi.h
15139 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15141 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15143 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15144 echo $ECHO_N "(cached) $ECHO_C" >&6
15146 ac_res=`eval echo '${'$as_ac_Header'}'`
15147 { echo "$as_me:$LINENO: result: $ac_res" >&5
15148 echo "${ECHO_T}$ac_res" >&6; }
15150 # Is the header compilable?
15151 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15152 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15153 cat >conftest.$ac_ext <<_ACEOF
15156 cat confdefs.h >>conftest.$ac_ext
15157 cat >>conftest.$ac_ext <<_ACEOF
15158 /* end confdefs.h. */
15159 $ac_includes_default
15160 #include <$ac_header>
15162 rm -f conftest.$ac_objext
15163 if { (ac_try="$ac_compile"
15164 case "(($ac_try" in
15165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15166 *) ac_try_echo=$ac_try;;
15168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15169 (eval "$ac_compile") 2>conftest.er1
15171 grep -v '^ *+' conftest.er1 >conftest.err
15173 cat conftest.err >&5
15174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175 (exit $ac_status); } &&
15176 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15177 { (case "(($ac_try" in
15178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15179 *) ac_try_echo=$ac_try;;
15181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15182 (eval "$ac_try") 2>&5
15184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185 (exit $ac_status); }; } &&
15186 { ac_try='test -s conftest.$ac_objext'
15187 { (case "(($ac_try" in
15188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15189 *) ac_try_echo=$ac_try;;
15191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15192 (eval "$ac_try") 2>&5
15194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15195 (exit $ac_status); }; }; then
15196 ac_header_compiler=yes
15198 echo "$as_me: failed program was:" >&5
15199 sed 's/^/| /' conftest.$ac_ext >&5
15201 ac_header_compiler=no
15204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15205 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15206 echo "${ECHO_T}$ac_header_compiler" >&6; }
15208 # Is the header present?
15209 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15210 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15211 cat >conftest.$ac_ext <<_ACEOF
15214 cat confdefs.h >>conftest.$ac_ext
15215 cat >>conftest.$ac_ext <<_ACEOF
15216 /* end confdefs.h. */
15217 #include <$ac_header>
15219 if { (ac_try="$ac_cpp conftest.$ac_ext"
15220 case "(($ac_try" in
15221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15222 *) ac_try_echo=$ac_try;;
15224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15225 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15227 grep -v '^ *+' conftest.er1 >conftest.err
15229 cat conftest.err >&5
15230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231 (exit $ac_status); } >/dev/null; then
15232 if test -s conftest.err; then
15233 ac_cpp_err=$ac_cxx_preproc_warn_flag
15234 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15241 if test -z "$ac_cpp_err"; then
15242 ac_header_preproc=yes
15244 echo "$as_me: failed program was:" >&5
15245 sed 's/^/| /' conftest.$ac_ext >&5
15247 ac_header_preproc=no
15250 rm -f conftest.err conftest.$ac_ext
15251 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15252 echo "${ECHO_T}$ac_header_preproc" >&6; }
15254 # So? What about this header?
15255 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
15257 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15258 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15260 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15261 ac_header_preproc=yes
15264 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15265 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15266 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15267 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15268 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15269 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15270 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15271 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15272 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15273 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15274 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15275 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15277 ## ------------------------------------ ##
15278 ## Report this to http://llvm.org/bugs/ ##
15279 ## ------------------------------------ ##
15281 ) | sed "s/^/$as_me: WARNING: /" >&2
15284 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15286 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15287 echo $ECHO_N "(cached) $ECHO_C" >&6
15289 eval "$as_ac_Header=\$ac_header_preproc"
15291 ac_res=`eval echo '${'$as_ac_Header'}'`
15292 { echo "$as_me:$LINENO: result: $ac_res" >&5
15293 echo "${ECHO_T}$ac_res" >&6; }
15296 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15297 cat >>confdefs.h <<_ACEOF
15298 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15306 ac_cpp='$CPP $CPPFLAGS'
15307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15317 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15319 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15321 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15324 echo $ECHO_N "(cached) $ECHO_C" >&6
15326 ac_res=`eval echo '${'$as_ac_Header'}'`
15327 { echo "$as_me:$LINENO: result: $ac_res" >&5
15328 echo "${ECHO_T}$ac_res" >&6; }
15330 # Is the header compilable?
15331 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15332 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15333 cat >conftest.$ac_ext <<_ACEOF
15336 cat confdefs.h >>conftest.$ac_ext
15337 cat >>conftest.$ac_ext <<_ACEOF
15338 /* end confdefs.h. */
15339 $ac_includes_default
15340 #include <$ac_header>
15342 rm -f conftest.$ac_objext
15343 if { (ac_try="$ac_compile"
15344 case "(($ac_try" in
15345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15346 *) ac_try_echo=$ac_try;;
15348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15349 (eval "$ac_compile") 2>conftest.er1
15351 grep -v '^ *+' conftest.er1 >conftest.err
15353 cat conftest.err >&5
15354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355 (exit $ac_status); } &&
15356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15357 { (case "(($ac_try" in
15358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15359 *) ac_try_echo=$ac_try;;
15361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15362 (eval "$ac_try") 2>&5
15364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 (exit $ac_status); }; } &&
15366 { ac_try='test -s conftest.$ac_objext'
15367 { (case "(($ac_try" in
15368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15369 *) ac_try_echo=$ac_try;;
15371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15372 (eval "$ac_try") 2>&5
15374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); }; }; then
15376 ac_header_compiler=yes
15378 echo "$as_me: failed program was:" >&5
15379 sed 's/^/| /' conftest.$ac_ext >&5
15381 ac_header_compiler=no
15384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15385 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15386 echo "${ECHO_T}$ac_header_compiler" >&6; }
15388 # Is the header present?
15389 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15391 cat >conftest.$ac_ext <<_ACEOF
15394 cat confdefs.h >>conftest.$ac_ext
15395 cat >>conftest.$ac_ext <<_ACEOF
15396 /* end confdefs.h. */
15397 #include <$ac_header>
15399 if { (ac_try="$ac_cpp conftest.$ac_ext"
15400 case "(($ac_try" in
15401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15402 *) ac_try_echo=$ac_try;;
15404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15407 grep -v '^ *+' conftest.er1 >conftest.err
15409 cat conftest.err >&5
15410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411 (exit $ac_status); } >/dev/null; then
15412 if test -s conftest.err; then
15413 ac_cpp_err=$ac_c_preproc_warn_flag
15414 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15421 if test -z "$ac_cpp_err"; then
15422 ac_header_preproc=yes
15424 echo "$as_me: failed program was:" >&5
15425 sed 's/^/| /' conftest.$ac_ext >&5
15427 ac_header_preproc=no
15430 rm -f conftest.err conftest.$ac_ext
15431 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15432 echo "${ECHO_T}$ac_header_preproc" >&6; }
15434 # So? What about this header?
15435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15437 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15438 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15440 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15441 ac_header_preproc=yes
15444 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15445 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15446 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15447 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15448 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15449 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15450 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15451 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15453 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15454 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15455 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15457 ## ------------------------------------ ##
15458 ## Report this to http://llvm.org/bugs/ ##
15459 ## ------------------------------------ ##
15461 ) | sed "s/^/$as_me: WARNING: /" >&2
15464 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15467 echo $ECHO_N "(cached) $ECHO_C" >&6
15469 eval "$as_ac_Header=\$ac_header_preproc"
15471 ac_res=`eval echo '${'$as_ac_Header'}'`
15472 { echo "$as_me:$LINENO: result: $ac_res" >&5
15473 echo "${ECHO_T}$ac_res" >&6; }
15476 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15477 cat >>confdefs.h <<_ACEOF
15478 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15491 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15495 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15498 echo $ECHO_N "(cached) $ECHO_C" >&6
15500 ac_res=`eval echo '${'$as_ac_Header'}'`
15501 { echo "$as_me:$LINENO: result: $ac_res" >&5
15502 echo "${ECHO_T}$ac_res" >&6; }
15504 # Is the header compilable?
15505 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15506 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15507 cat >conftest.$ac_ext <<_ACEOF
15510 cat confdefs.h >>conftest.$ac_ext
15511 cat >>conftest.$ac_ext <<_ACEOF
15512 /* end confdefs.h. */
15513 $ac_includes_default
15514 #include <$ac_header>
15516 rm -f conftest.$ac_objext
15517 if { (ac_try="$ac_compile"
15518 case "(($ac_try" in
15519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15520 *) ac_try_echo=$ac_try;;
15522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15523 (eval "$ac_compile") 2>conftest.er1
15525 grep -v '^ *+' conftest.er1 >conftest.err
15527 cat conftest.err >&5
15528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529 (exit $ac_status); } &&
15530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15531 { (case "(($ac_try" in
15532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15533 *) ac_try_echo=$ac_try;;
15535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15536 (eval "$ac_try") 2>&5
15538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539 (exit $ac_status); }; } &&
15540 { ac_try='test -s conftest.$ac_objext'
15541 { (case "(($ac_try" in
15542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15543 *) ac_try_echo=$ac_try;;
15545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15546 (eval "$ac_try") 2>&5
15548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549 (exit $ac_status); }; }; then
15550 ac_header_compiler=yes
15552 echo "$as_me: failed program was:" >&5
15553 sed 's/^/| /' conftest.$ac_ext >&5
15555 ac_header_compiler=no
15558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15559 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15560 echo "${ECHO_T}$ac_header_compiler" >&6; }
15562 # Is the header present?
15563 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15564 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15565 cat >conftest.$ac_ext <<_ACEOF
15568 cat confdefs.h >>conftest.$ac_ext
15569 cat >>conftest.$ac_ext <<_ACEOF
15570 /* end confdefs.h. */
15571 #include <$ac_header>
15573 if { (ac_try="$ac_cpp conftest.$ac_ext"
15574 case "(($ac_try" in
15575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15576 *) ac_try_echo=$ac_try;;
15578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15581 grep -v '^ *+' conftest.er1 >conftest.err
15583 cat conftest.err >&5
15584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585 (exit $ac_status); } >/dev/null; then
15586 if test -s conftest.err; then
15587 ac_cpp_err=$ac_c_preproc_warn_flag
15588 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15595 if test -z "$ac_cpp_err"; then
15596 ac_header_preproc=yes
15598 echo "$as_me: failed program was:" >&5
15599 sed 's/^/| /' conftest.$ac_ext >&5
15601 ac_header_preproc=no
15604 rm -f conftest.err conftest.$ac_ext
15605 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15606 echo "${ECHO_T}$ac_header_preproc" >&6; }
15608 # So? What about this header?
15609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15611 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15612 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15613 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15614 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15615 ac_header_preproc=yes
15618 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15619 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15620 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15621 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15622 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15623 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15624 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15625 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15627 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15628 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15629 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15631 ## ------------------------------------ ##
15632 ## Report this to http://llvm.org/bugs/ ##
15633 ## ------------------------------------ ##
15635 ) | sed "s/^/$as_me: WARNING: /" >&2
15638 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15641 echo $ECHO_N "(cached) $ECHO_C" >&6
15643 eval "$as_ac_Header=\$ac_header_preproc"
15645 ac_res=`eval echo '${'$as_ac_Header'}'`
15646 { echo "$as_me:$LINENO: result: $ac_res" >&5
15647 echo "${ECHO_T}$ac_res" >&6; }
15650 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15651 cat >>confdefs.h <<_ACEOF
15652 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15661 for ac_header in utime.h windows.h
15663 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15665 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15668 echo $ECHO_N "(cached) $ECHO_C" >&6
15670 ac_res=`eval echo '${'$as_ac_Header'}'`
15671 { echo "$as_me:$LINENO: result: $ac_res" >&5
15672 echo "${ECHO_T}$ac_res" >&6; }
15674 # Is the header compilable?
15675 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15676 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15677 cat >conftest.$ac_ext <<_ACEOF
15680 cat confdefs.h >>conftest.$ac_ext
15681 cat >>conftest.$ac_ext <<_ACEOF
15682 /* end confdefs.h. */
15683 $ac_includes_default
15684 #include <$ac_header>
15686 rm -f conftest.$ac_objext
15687 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
15695 grep -v '^ *+' conftest.er1 >conftest.err
15697 cat conftest.err >&5
15698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699 (exit $ac_status); } &&
15700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15701 { (case "(($ac_try" in
15702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15703 *) ac_try_echo=$ac_try;;
15705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15706 (eval "$ac_try") 2>&5
15708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709 (exit $ac_status); }; } &&
15710 { ac_try='test -s conftest.$ac_objext'
15711 { (case "(($ac_try" in
15712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15713 *) ac_try_echo=$ac_try;;
15715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15716 (eval "$ac_try") 2>&5
15718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15719 (exit $ac_status); }; }; then
15720 ac_header_compiler=yes
15722 echo "$as_me: failed program was:" >&5
15723 sed 's/^/| /' conftest.$ac_ext >&5
15725 ac_header_compiler=no
15728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15729 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15730 echo "${ECHO_T}$ac_header_compiler" >&6; }
15732 # Is the header present?
15733 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15734 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15735 cat >conftest.$ac_ext <<_ACEOF
15738 cat confdefs.h >>conftest.$ac_ext
15739 cat >>conftest.$ac_ext <<_ACEOF
15740 /* end confdefs.h. */
15741 #include <$ac_header>
15743 if { (ac_try="$ac_cpp conftest.$ac_ext"
15744 case "(($ac_try" in
15745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15746 *) ac_try_echo=$ac_try;;
15748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15751 grep -v '^ *+' conftest.er1 >conftest.err
15753 cat conftest.err >&5
15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); } >/dev/null; then
15756 if test -s conftest.err; then
15757 ac_cpp_err=$ac_c_preproc_warn_flag
15758 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15765 if test -z "$ac_cpp_err"; then
15766 ac_header_preproc=yes
15768 echo "$as_me: failed program was:" >&5
15769 sed 's/^/| /' conftest.$ac_ext >&5
15771 ac_header_preproc=no
15774 rm -f conftest.err conftest.$ac_ext
15775 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15776 echo "${ECHO_T}$ac_header_preproc" >&6; }
15778 # So? What about this header?
15779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15781 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15782 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15783 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15784 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15785 ac_header_preproc=yes
15788 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15789 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15790 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15791 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15792 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15793 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15794 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15795 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15797 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15798 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15799 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15801 ## ------------------------------------ ##
15802 ## Report this to http://llvm.org/bugs/ ##
15803 ## ------------------------------------ ##
15805 ) | sed "s/^/$as_me: WARNING: /" >&2
15808 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15811 echo $ECHO_N "(cached) $ECHO_C" >&6
15813 eval "$as_ac_Header=\$ac_header_preproc"
15815 ac_res=`eval echo '${'$as_ac_Header'}'`
15816 { echo "$as_me:$LINENO: result: $ac_res" >&5
15817 echo "${ECHO_T}$ac_res" >&6; }
15820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15821 cat >>confdefs.h <<_ACEOF
15822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15834 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15836 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15838 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15841 echo $ECHO_N "(cached) $ECHO_C" >&6
15843 ac_res=`eval echo '${'$as_ac_Header'}'`
15844 { echo "$as_me:$LINENO: result: $ac_res" >&5
15845 echo "${ECHO_T}$ac_res" >&6; }
15847 # Is the header compilable?
15848 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15849 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15850 cat >conftest.$ac_ext <<_ACEOF
15853 cat confdefs.h >>conftest.$ac_ext
15854 cat >>conftest.$ac_ext <<_ACEOF
15855 /* end confdefs.h. */
15856 $ac_includes_default
15857 #include <$ac_header>
15859 rm -f conftest.$ac_objext
15860 if { (ac_try="$ac_compile"
15861 case "(($ac_try" in
15862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15863 *) ac_try_echo=$ac_try;;
15865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15866 (eval "$ac_compile") 2>conftest.er1
15868 grep -v '^ *+' conftest.er1 >conftest.err
15870 cat conftest.err >&5
15871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872 (exit $ac_status); } &&
15873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15874 { (case "(($ac_try" in
15875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15876 *) ac_try_echo=$ac_try;;
15878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15879 (eval "$ac_try") 2>&5
15881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882 (exit $ac_status); }; } &&
15883 { ac_try='test -s conftest.$ac_objext'
15884 { (case "(($ac_try" in
15885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15886 *) ac_try_echo=$ac_try;;
15888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15889 (eval "$ac_try") 2>&5
15891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); }; }; then
15893 ac_header_compiler=yes
15895 echo "$as_me: failed program was:" >&5
15896 sed 's/^/| /' conftest.$ac_ext >&5
15898 ac_header_compiler=no
15901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15902 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15903 echo "${ECHO_T}$ac_header_compiler" >&6; }
15905 # Is the header present?
15906 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15907 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15908 cat >conftest.$ac_ext <<_ACEOF
15911 cat confdefs.h >>conftest.$ac_ext
15912 cat >>conftest.$ac_ext <<_ACEOF
15913 /* end confdefs.h. */
15914 #include <$ac_header>
15916 if { (ac_try="$ac_cpp conftest.$ac_ext"
15917 case "(($ac_try" in
15918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15919 *) ac_try_echo=$ac_try;;
15921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15922 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15924 grep -v '^ *+' conftest.er1 >conftest.err
15926 cat conftest.err >&5
15927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928 (exit $ac_status); } >/dev/null; then
15929 if test -s conftest.err; then
15930 ac_cpp_err=$ac_c_preproc_warn_flag
15931 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15938 if test -z "$ac_cpp_err"; then
15939 ac_header_preproc=yes
15941 echo "$as_me: failed program was:" >&5
15942 sed 's/^/| /' conftest.$ac_ext >&5
15944 ac_header_preproc=no
15947 rm -f conftest.err conftest.$ac_ext
15948 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15949 echo "${ECHO_T}$ac_header_preproc" >&6; }
15951 # So? What about this header?
15952 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15954 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15955 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15956 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15957 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15958 ac_header_preproc=yes
15961 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15962 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15963 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15964 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15965 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15966 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15967 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15968 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15969 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15970 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15971 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15972 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15974 ## ------------------------------------ ##
15975 ## Report this to http://llvm.org/bugs/ ##
15976 ## ------------------------------------ ##
15978 ) | sed "s/^/$as_me: WARNING: /" >&2
15981 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15984 echo $ECHO_N "(cached) $ECHO_C" >&6
15986 eval "$as_ac_Header=\$ac_header_preproc"
15988 ac_res=`eval echo '${'$as_ac_Header'}'`
15989 { echo "$as_me:$LINENO: result: $ac_res" >&5
15990 echo "${ECHO_T}$ac_res" >&6; }
15993 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15994 cat >>confdefs.h <<_ACEOF
15995 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16006 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16008 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16010 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16013 echo $ECHO_N "(cached) $ECHO_C" >&6
16015 ac_res=`eval echo '${'$as_ac_Header'}'`
16016 { echo "$as_me:$LINENO: result: $ac_res" >&5
16017 echo "${ECHO_T}$ac_res" >&6; }
16019 # Is the header compilable?
16020 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16021 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16022 cat >conftest.$ac_ext <<_ACEOF
16025 cat confdefs.h >>conftest.$ac_ext
16026 cat >>conftest.$ac_ext <<_ACEOF
16027 /* end confdefs.h. */
16028 $ac_includes_default
16029 #include <$ac_header>
16031 rm -f conftest.$ac_objext
16032 if { (ac_try="$ac_compile"
16033 case "(($ac_try" in
16034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16035 *) ac_try_echo=$ac_try;;
16037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16038 (eval "$ac_compile") 2>conftest.er1
16040 grep -v '^ *+' conftest.er1 >conftest.err
16042 cat conftest.err >&5
16043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044 (exit $ac_status); } &&
16045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16046 { (case "(($ac_try" in
16047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16048 *) ac_try_echo=$ac_try;;
16050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16051 (eval "$ac_try") 2>&5
16053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16054 (exit $ac_status); }; } &&
16055 { ac_try='test -s conftest.$ac_objext'
16056 { (case "(($ac_try" in
16057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16058 *) ac_try_echo=$ac_try;;
16060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16061 (eval "$ac_try") 2>&5
16063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064 (exit $ac_status); }; }; then
16065 ac_header_compiler=yes
16067 echo "$as_me: failed program was:" >&5
16068 sed 's/^/| /' conftest.$ac_ext >&5
16070 ac_header_compiler=no
16073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16074 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16075 echo "${ECHO_T}$ac_header_compiler" >&6; }
16077 # Is the header present?
16078 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16079 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16080 cat >conftest.$ac_ext <<_ACEOF
16083 cat confdefs.h >>conftest.$ac_ext
16084 cat >>conftest.$ac_ext <<_ACEOF
16085 /* end confdefs.h. */
16086 #include <$ac_header>
16088 if { (ac_try="$ac_cpp conftest.$ac_ext"
16089 case "(($ac_try" in
16090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16091 *) ac_try_echo=$ac_try;;
16093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16096 grep -v '^ *+' conftest.er1 >conftest.err
16098 cat conftest.err >&5
16099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16100 (exit $ac_status); } >/dev/null; then
16101 if test -s conftest.err; then
16102 ac_cpp_err=$ac_c_preproc_warn_flag
16103 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16110 if test -z "$ac_cpp_err"; then
16111 ac_header_preproc=yes
16113 echo "$as_me: failed program was:" >&5
16114 sed 's/^/| /' conftest.$ac_ext >&5
16116 ac_header_preproc=no
16119 rm -f conftest.err conftest.$ac_ext
16120 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16121 echo "${ECHO_T}$ac_header_preproc" >&6; }
16123 # So? What about this header?
16124 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16126 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16127 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16129 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16130 ac_header_preproc=yes
16133 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16134 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16135 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16136 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16137 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16138 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16139 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16140 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16142 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16143 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16144 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16146 ## ------------------------------------ ##
16147 ## Report this to http://llvm.org/bugs/ ##
16148 ## ------------------------------------ ##
16150 ) | sed "s/^/$as_me: WARNING: /" >&2
16153 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16156 echo $ECHO_N "(cached) $ECHO_C" >&6
16158 eval "$as_ac_Header=\$ac_header_preproc"
16160 ac_res=`eval echo '${'$as_ac_Header'}'`
16161 { echo "$as_me:$LINENO: result: $ac_res" >&5
16162 echo "${ECHO_T}$ac_res" >&6; }
16165 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16166 cat >>confdefs.h <<_ACEOF
16167 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16175 for ac_header in valgrind/valgrind.h
16177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16179 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16182 echo $ECHO_N "(cached) $ECHO_C" >&6
16184 ac_res=`eval echo '${'$as_ac_Header'}'`
16185 { echo "$as_me:$LINENO: result: $ac_res" >&5
16186 echo "${ECHO_T}$ac_res" >&6; }
16188 # Is the header compilable?
16189 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16190 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16191 cat >conftest.$ac_ext <<_ACEOF
16194 cat confdefs.h >>conftest.$ac_ext
16195 cat >>conftest.$ac_ext <<_ACEOF
16196 /* end confdefs.h. */
16197 $ac_includes_default
16198 #include <$ac_header>
16200 rm -f conftest.$ac_objext
16201 if { (ac_try="$ac_compile"
16202 case "(($ac_try" in
16203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16204 *) ac_try_echo=$ac_try;;
16206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16207 (eval "$ac_compile") 2>conftest.er1
16209 grep -v '^ *+' conftest.er1 >conftest.err
16211 cat conftest.err >&5
16212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213 (exit $ac_status); } &&
16214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16215 { (case "(($ac_try" in
16216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16217 *) ac_try_echo=$ac_try;;
16219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16220 (eval "$ac_try") 2>&5
16222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223 (exit $ac_status); }; } &&
16224 { ac_try='test -s conftest.$ac_objext'
16225 { (case "(($ac_try" in
16226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16227 *) ac_try_echo=$ac_try;;
16229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16230 (eval "$ac_try") 2>&5
16232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16233 (exit $ac_status); }; }; then
16234 ac_header_compiler=yes
16236 echo "$as_me: failed program was:" >&5
16237 sed 's/^/| /' conftest.$ac_ext >&5
16239 ac_header_compiler=no
16242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16243 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16244 echo "${ECHO_T}$ac_header_compiler" >&6; }
16246 # Is the header present?
16247 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16248 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16249 cat >conftest.$ac_ext <<_ACEOF
16252 cat confdefs.h >>conftest.$ac_ext
16253 cat >>conftest.$ac_ext <<_ACEOF
16254 /* end confdefs.h. */
16255 #include <$ac_header>
16257 if { (ac_try="$ac_cpp conftest.$ac_ext"
16258 case "(($ac_try" in
16259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16260 *) ac_try_echo=$ac_try;;
16262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16263 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16265 grep -v '^ *+' conftest.er1 >conftest.err
16267 cat conftest.err >&5
16268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); } >/dev/null; then
16270 if test -s conftest.err; then
16271 ac_cpp_err=$ac_c_preproc_warn_flag
16272 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16279 if test -z "$ac_cpp_err"; then
16280 ac_header_preproc=yes
16282 echo "$as_me: failed program was:" >&5
16283 sed 's/^/| /' conftest.$ac_ext >&5
16285 ac_header_preproc=no
16288 rm -f conftest.err conftest.$ac_ext
16289 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16290 echo "${ECHO_T}$ac_header_preproc" >&6; }
16292 # So? What about this header?
16293 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16295 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16296 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16298 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16299 ac_header_preproc=yes
16302 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16303 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16304 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16305 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16306 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16307 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16308 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16309 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16311 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16312 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16313 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16315 ## ------------------------------------ ##
16316 ## Report this to http://llvm.org/bugs/ ##
16317 ## ------------------------------------ ##
16319 ) | sed "s/^/$as_me: WARNING: /" >&2
16322 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16325 echo $ECHO_N "(cached) $ECHO_C" >&6
16327 eval "$as_ac_Header=\$ac_header_preproc"
16329 ac_res=`eval echo '${'$as_ac_Header'}'`
16330 { echo "$as_me:$LINENO: result: $ac_res" >&5
16331 echo "${ECHO_T}$ac_res" >&6; }
16334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16335 cat >>confdefs.h <<_ACEOF
16336 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16344 for ac_header in fenv.h
16346 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16348 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16351 echo $ECHO_N "(cached) $ECHO_C" >&6
16353 ac_res=`eval echo '${'$as_ac_Header'}'`
16354 { echo "$as_me:$LINENO: result: $ac_res" >&5
16355 echo "${ECHO_T}$ac_res" >&6; }
16357 # Is the header compilable?
16358 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16359 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16360 cat >conftest.$ac_ext <<_ACEOF
16363 cat confdefs.h >>conftest.$ac_ext
16364 cat >>conftest.$ac_ext <<_ACEOF
16365 /* end confdefs.h. */
16366 $ac_includes_default
16367 #include <$ac_header>
16369 rm -f conftest.$ac_objext
16370 if { (ac_try="$ac_compile"
16371 case "(($ac_try" in
16372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16373 *) ac_try_echo=$ac_try;;
16375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16376 (eval "$ac_compile") 2>conftest.er1
16378 grep -v '^ *+' conftest.er1 >conftest.err
16380 cat conftest.err >&5
16381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382 (exit $ac_status); } &&
16383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16384 { (case "(($ac_try" in
16385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16386 *) ac_try_echo=$ac_try;;
16388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16389 (eval "$ac_try") 2>&5
16391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392 (exit $ac_status); }; } &&
16393 { ac_try='test -s conftest.$ac_objext'
16394 { (case "(($ac_try" in
16395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16396 *) ac_try_echo=$ac_try;;
16398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16399 (eval "$ac_try") 2>&5
16401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402 (exit $ac_status); }; }; then
16403 ac_header_compiler=yes
16405 echo "$as_me: failed program was:" >&5
16406 sed 's/^/| /' conftest.$ac_ext >&5
16408 ac_header_compiler=no
16411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16412 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16413 echo "${ECHO_T}$ac_header_compiler" >&6; }
16415 # Is the header present?
16416 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16417 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16418 cat >conftest.$ac_ext <<_ACEOF
16421 cat confdefs.h >>conftest.$ac_ext
16422 cat >>conftest.$ac_ext <<_ACEOF
16423 /* end confdefs.h. */
16424 #include <$ac_header>
16426 if { (ac_try="$ac_cpp conftest.$ac_ext"
16427 case "(($ac_try" in
16428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16429 *) ac_try_echo=$ac_try;;
16431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16432 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16434 grep -v '^ *+' conftest.er1 >conftest.err
16436 cat conftest.err >&5
16437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438 (exit $ac_status); } >/dev/null; then
16439 if test -s conftest.err; then
16440 ac_cpp_err=$ac_c_preproc_warn_flag
16441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16448 if test -z "$ac_cpp_err"; then
16449 ac_header_preproc=yes
16451 echo "$as_me: failed program was:" >&5
16452 sed 's/^/| /' conftest.$ac_ext >&5
16454 ac_header_preproc=no
16457 rm -f conftest.err conftest.$ac_ext
16458 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16459 echo "${ECHO_T}$ac_header_preproc" >&6; }
16461 # So? What about this header?
16462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16464 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16465 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16467 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16468 ac_header_preproc=yes
16471 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16472 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16473 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16474 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16475 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16476 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16477 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16478 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16480 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16481 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16482 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16484 ## ------------------------------------ ##
16485 ## Report this to http://llvm.org/bugs/ ##
16486 ## ------------------------------------ ##
16488 ) | sed "s/^/$as_me: WARNING: /" >&2
16491 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16494 echo $ECHO_N "(cached) $ECHO_C" >&6
16496 eval "$as_ac_Header=\$ac_header_preproc"
16498 ac_res=`eval echo '${'$as_ac_Header'}'`
16499 { echo "$as_me:$LINENO: result: $ac_res" >&5
16500 echo "${ECHO_T}$ac_res" >&6; }
16503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16504 cat >>confdefs.h <<_ACEOF
16505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16512 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
16513 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
16514 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
16515 echo $ECHO_N "(cached) $ECHO_C" >&6
16517 cat >conftest.$ac_ext <<_ACEOF
16520 cat confdefs.h >>conftest.$ac_ext
16521 cat >>conftest.$ac_ext <<_ACEOF
16522 /* end confdefs.h. */
16528 #ifndef FE_ALL_EXCEPT
16529 char *p = (char *) FE_ALL_EXCEPT;
16537 rm -f conftest.$ac_objext
16538 if { (ac_try="$ac_compile"
16539 case "(($ac_try" in
16540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16541 *) ac_try_echo=$ac_try;;
16543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16544 (eval "$ac_compile") 2>conftest.er1
16546 grep -v '^ *+' conftest.er1 >conftest.err
16548 cat conftest.err >&5
16549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550 (exit $ac_status); } &&
16551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16552 { (case "(($ac_try" in
16553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16554 *) ac_try_echo=$ac_try;;
16556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16557 (eval "$ac_try") 2>&5
16559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560 (exit $ac_status); }; } &&
16561 { ac_try='test -s conftest.$ac_objext'
16562 { (case "(($ac_try" in
16563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16564 *) ac_try_echo=$ac_try;;
16566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16567 (eval "$ac_try") 2>&5
16569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570 (exit $ac_status); }; }; then
16571 ac_cv_have_decl_FE_ALL_EXCEPT=yes
16573 echo "$as_me: failed program was:" >&5
16574 sed 's/^/| /' conftest.$ac_ext >&5
16576 ac_cv_have_decl_FE_ALL_EXCEPT=no
16579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16581 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
16582 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
16583 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
16585 cat >>confdefs.h <<_ACEOF
16586 #define HAVE_DECL_FE_ALL_EXCEPT 1
16591 cat >>confdefs.h <<_ACEOF
16592 #define HAVE_DECL_FE_ALL_EXCEPT 0
16597 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
16598 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
16599 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
16600 echo $ECHO_N "(cached) $ECHO_C" >&6
16602 cat >conftest.$ac_ext <<_ACEOF
16605 cat confdefs.h >>conftest.$ac_ext
16606 cat >>conftest.$ac_ext <<_ACEOF
16607 /* end confdefs.h. */
16614 char *p = (char *) FE_INEXACT;
16622 rm -f conftest.$ac_objext
16623 if { (ac_try="$ac_compile"
16624 case "(($ac_try" in
16625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16626 *) ac_try_echo=$ac_try;;
16628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16629 (eval "$ac_compile") 2>conftest.er1
16631 grep -v '^ *+' conftest.er1 >conftest.err
16633 cat conftest.err >&5
16634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16635 (exit $ac_status); } &&
16636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16637 { (case "(($ac_try" in
16638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16639 *) ac_try_echo=$ac_try;;
16641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16642 (eval "$ac_try") 2>&5
16644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645 (exit $ac_status); }; } &&
16646 { ac_try='test -s conftest.$ac_objext'
16647 { (case "(($ac_try" in
16648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16649 *) ac_try_echo=$ac_try;;
16651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16652 (eval "$ac_try") 2>&5
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); }; }; then
16656 ac_cv_have_decl_FE_INEXACT=yes
16658 echo "$as_me: failed program was:" >&5
16659 sed 's/^/| /' conftest.$ac_ext >&5
16661 ac_cv_have_decl_FE_INEXACT=no
16664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16666 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16667 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16668 if test $ac_cv_have_decl_FE_INEXACT = yes; then
16670 cat >>confdefs.h <<_ACEOF
16671 #define HAVE_DECL_FE_INEXACT 1
16676 cat >>confdefs.h <<_ACEOF
16677 #define HAVE_DECL_FE_INEXACT 0
16684 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16686 for ac_header in pthread.h
16688 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16690 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16693 echo $ECHO_N "(cached) $ECHO_C" >&6
16695 ac_res=`eval echo '${'$as_ac_Header'}'`
16696 { echo "$as_me:$LINENO: result: $ac_res" >&5
16697 echo "${ECHO_T}$ac_res" >&6; }
16699 # Is the header compilable?
16700 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16701 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16702 cat >conftest.$ac_ext <<_ACEOF
16705 cat confdefs.h >>conftest.$ac_ext
16706 cat >>conftest.$ac_ext <<_ACEOF
16707 /* end confdefs.h. */
16708 $ac_includes_default
16709 #include <$ac_header>
16711 rm -f conftest.$ac_objext
16712 if { (ac_try="$ac_compile"
16713 case "(($ac_try" in
16714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16715 *) ac_try_echo=$ac_try;;
16717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16718 (eval "$ac_compile") 2>conftest.er1
16720 grep -v '^ *+' conftest.er1 >conftest.err
16722 cat conftest.err >&5
16723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724 (exit $ac_status); } &&
16725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16726 { (case "(($ac_try" in
16727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16728 *) ac_try_echo=$ac_try;;
16730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16731 (eval "$ac_try") 2>&5
16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 (exit $ac_status); }; } &&
16735 { ac_try='test -s conftest.$ac_objext'
16736 { (case "(($ac_try" in
16737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16738 *) ac_try_echo=$ac_try;;
16740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16741 (eval "$ac_try") 2>&5
16743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744 (exit $ac_status); }; }; then
16745 ac_header_compiler=yes
16747 echo "$as_me: failed program was:" >&5
16748 sed 's/^/| /' conftest.$ac_ext >&5
16750 ac_header_compiler=no
16753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16754 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16755 echo "${ECHO_T}$ac_header_compiler" >&6; }
16757 # Is the header present?
16758 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16759 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16760 cat >conftest.$ac_ext <<_ACEOF
16763 cat confdefs.h >>conftest.$ac_ext
16764 cat >>conftest.$ac_ext <<_ACEOF
16765 /* end confdefs.h. */
16766 #include <$ac_header>
16768 if { (ac_try="$ac_cpp conftest.$ac_ext"
16769 case "(($ac_try" in
16770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16771 *) ac_try_echo=$ac_try;;
16773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16776 grep -v '^ *+' conftest.er1 >conftest.err
16778 cat conftest.err >&5
16779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780 (exit $ac_status); } >/dev/null; then
16781 if test -s conftest.err; then
16782 ac_cpp_err=$ac_c_preproc_warn_flag
16783 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16790 if test -z "$ac_cpp_err"; then
16791 ac_header_preproc=yes
16793 echo "$as_me: failed program was:" >&5
16794 sed 's/^/| /' conftest.$ac_ext >&5
16796 ac_header_preproc=no
16799 rm -f conftest.err conftest.$ac_ext
16800 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16801 echo "${ECHO_T}$ac_header_preproc" >&6; }
16803 # So? What about this header?
16804 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16806 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16807 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16808 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16809 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16810 ac_header_preproc=yes
16813 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16814 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16815 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16816 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16817 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16818 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16819 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16820 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16822 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16823 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16824 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16826 ## ------------------------------------ ##
16827 ## Report this to http://llvm.org/bugs/ ##
16828 ## ------------------------------------ ##
16830 ) | sed "s/^/$as_me: WARNING: /" >&2
16833 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16836 echo $ECHO_N "(cached) $ECHO_C" >&6
16838 eval "$as_ac_Header=\$ac_header_preproc"
16840 ac_res=`eval echo '${'$as_ac_Header'}'`
16841 { echo "$as_me:$LINENO: result: $ac_res" >&5
16842 echo "${ECHO_T}$ac_res" >&6; }
16845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16846 cat >>confdefs.h <<_ACEOF
16847 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16862 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16864 for ac_header in zlib.h
16866 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16867 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16868 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16871 echo $ECHO_N "(cached) $ECHO_C" >&6
16873 ac_res=`eval echo '${'$as_ac_Header'}'`
16874 { echo "$as_me:$LINENO: result: $ac_res" >&5
16875 echo "${ECHO_T}$ac_res" >&6; }
16877 # Is the header compilable?
16878 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16879 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16880 cat >conftest.$ac_ext <<_ACEOF
16883 cat confdefs.h >>conftest.$ac_ext
16884 cat >>conftest.$ac_ext <<_ACEOF
16885 /* end confdefs.h. */
16886 $ac_includes_default
16887 #include <$ac_header>
16889 rm -f conftest.$ac_objext
16890 if { (ac_try="$ac_compile"
16891 case "(($ac_try" in
16892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16893 *) ac_try_echo=$ac_try;;
16895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16896 (eval "$ac_compile") 2>conftest.er1
16898 grep -v '^ *+' conftest.er1 >conftest.err
16900 cat conftest.err >&5
16901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902 (exit $ac_status); } &&
16903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16904 { (case "(($ac_try" in
16905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16906 *) ac_try_echo=$ac_try;;
16908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16909 (eval "$ac_try") 2>&5
16911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912 (exit $ac_status); }; } &&
16913 { ac_try='test -s conftest.$ac_objext'
16914 { (case "(($ac_try" in
16915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16916 *) ac_try_echo=$ac_try;;
16918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16919 (eval "$ac_try") 2>&5
16921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922 (exit $ac_status); }; }; then
16923 ac_header_compiler=yes
16925 echo "$as_me: failed program was:" >&5
16926 sed 's/^/| /' conftest.$ac_ext >&5
16928 ac_header_compiler=no
16931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16932 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16933 echo "${ECHO_T}$ac_header_compiler" >&6; }
16935 # Is the header present?
16936 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16937 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16938 cat >conftest.$ac_ext <<_ACEOF
16941 cat confdefs.h >>conftest.$ac_ext
16942 cat >>conftest.$ac_ext <<_ACEOF
16943 /* end confdefs.h. */
16944 #include <$ac_header>
16946 if { (ac_try="$ac_cpp conftest.$ac_ext"
16947 case "(($ac_try" in
16948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16949 *) ac_try_echo=$ac_try;;
16951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16954 grep -v '^ *+' conftest.er1 >conftest.err
16956 cat conftest.err >&5
16957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); } >/dev/null; then
16959 if test -s conftest.err; then
16960 ac_cpp_err=$ac_c_preproc_warn_flag
16961 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16968 if test -z "$ac_cpp_err"; then
16969 ac_header_preproc=yes
16971 echo "$as_me: failed program was:" >&5
16972 sed 's/^/| /' conftest.$ac_ext >&5
16974 ac_header_preproc=no
16977 rm -f conftest.err conftest.$ac_ext
16978 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16979 echo "${ECHO_T}$ac_header_preproc" >&6; }
16981 # So? What about this header?
16982 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16984 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16985 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16987 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16988 ac_header_preproc=yes
16991 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16992 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16993 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16994 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16995 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16996 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16997 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16998 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17000 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17001 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17002 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17004 ## ------------------------------------ ##
17005 ## Report this to http://llvm.org/bugs/ ##
17006 ## ------------------------------------ ##
17008 ) | sed "s/^/$as_me: WARNING: /" >&2
17011 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17014 echo $ECHO_N "(cached) $ECHO_C" >&6
17016 eval "$as_ac_Header=\$ac_header_preproc"
17018 ac_res=`eval echo '${'$as_ac_Header'}'`
17019 { echo "$as_me:$LINENO: result: $ac_res" >&5
17020 echo "${ECHO_T}$ac_res" >&6; }
17023 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17024 cat >>confdefs.h <<_ACEOF
17025 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17041 if test "$llvm_cv_enable_libffi" = "yes" ; then
17044 for ac_header in ffi.h ffi/ffi.h
17046 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17048 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17051 echo $ECHO_N "(cached) $ECHO_C" >&6
17053 ac_res=`eval echo '${'$as_ac_Header'}'`
17054 { echo "$as_me:$LINENO: result: $ac_res" >&5
17055 echo "${ECHO_T}$ac_res" >&6; }
17057 # Is the header compilable?
17058 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17059 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17060 cat >conftest.$ac_ext <<_ACEOF
17063 cat confdefs.h >>conftest.$ac_ext
17064 cat >>conftest.$ac_ext <<_ACEOF
17065 /* end confdefs.h. */
17066 $ac_includes_default
17067 #include <$ac_header>
17069 rm -f conftest.$ac_objext
17070 if { (ac_try="$ac_compile"
17071 case "(($ac_try" in
17072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17073 *) ac_try_echo=$ac_try;;
17075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17076 (eval "$ac_compile") 2>conftest.er1
17078 grep -v '^ *+' conftest.er1 >conftest.err
17080 cat conftest.err >&5
17081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082 (exit $ac_status); } &&
17083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17084 { (case "(($ac_try" in
17085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17086 *) ac_try_echo=$ac_try;;
17088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17089 (eval "$ac_try") 2>&5
17091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092 (exit $ac_status); }; } &&
17093 { ac_try='test -s conftest.$ac_objext'
17094 { (case "(($ac_try" in
17095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17096 *) ac_try_echo=$ac_try;;
17098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17099 (eval "$ac_try") 2>&5
17101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102 (exit $ac_status); }; }; then
17103 ac_header_compiler=yes
17105 echo "$as_me: failed program was:" >&5
17106 sed 's/^/| /' conftest.$ac_ext >&5
17108 ac_header_compiler=no
17111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17112 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17113 echo "${ECHO_T}$ac_header_compiler" >&6; }
17115 # Is the header present?
17116 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17117 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17118 cat >conftest.$ac_ext <<_ACEOF
17121 cat confdefs.h >>conftest.$ac_ext
17122 cat >>conftest.$ac_ext <<_ACEOF
17123 /* end confdefs.h. */
17124 #include <$ac_header>
17126 if { (ac_try="$ac_cpp conftest.$ac_ext"
17127 case "(($ac_try" in
17128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17129 *) ac_try_echo=$ac_try;;
17131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17134 grep -v '^ *+' conftest.er1 >conftest.err
17136 cat conftest.err >&5
17137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138 (exit $ac_status); } >/dev/null; then
17139 if test -s conftest.err; then
17140 ac_cpp_err=$ac_c_preproc_warn_flag
17141 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17148 if test -z "$ac_cpp_err"; then
17149 ac_header_preproc=yes
17151 echo "$as_me: failed program was:" >&5
17152 sed 's/^/| /' conftest.$ac_ext >&5
17154 ac_header_preproc=no
17157 rm -f conftest.err conftest.$ac_ext
17158 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17159 echo "${ECHO_T}$ac_header_preproc" >&6; }
17161 # So? What about this header?
17162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17164 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17165 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17167 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17168 ac_header_preproc=yes
17171 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17172 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17173 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17174 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17175 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17176 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17177 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17178 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17180 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17181 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17182 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17184 ## ------------------------------------ ##
17185 ## Report this to http://llvm.org/bugs/ ##
17186 ## ------------------------------------ ##
17188 ) | sed "s/^/$as_me: WARNING: /" >&2
17191 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17194 echo $ECHO_N "(cached) $ECHO_C" >&6
17196 eval "$as_ac_Header=\$ac_header_preproc"
17198 ac_res=`eval echo '${'$as_ac_Header'}'`
17199 { echo "$as_me:$LINENO: result: $ac_res" >&5
17200 echo "${ECHO_T}$ac_res" >&6; }
17203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17204 cat >>confdefs.h <<_ACEOF
17205 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17215 for ac_header in CrashReporterClient.h
17217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17219 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17222 echo $ECHO_N "(cached) $ECHO_C" >&6
17224 ac_res=`eval echo '${'$as_ac_Header'}'`
17225 { echo "$as_me:$LINENO: result: $ac_res" >&5
17226 echo "${ECHO_T}$ac_res" >&6; }
17228 # Is the header compilable?
17229 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17230 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17231 cat >conftest.$ac_ext <<_ACEOF
17234 cat confdefs.h >>conftest.$ac_ext
17235 cat >>conftest.$ac_ext <<_ACEOF
17236 /* end confdefs.h. */
17237 $ac_includes_default
17238 #include <$ac_header>
17240 rm -f conftest.$ac_objext
17241 if { (ac_try="$ac_compile"
17242 case "(($ac_try" in
17243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17244 *) ac_try_echo=$ac_try;;
17246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17247 (eval "$ac_compile") 2>conftest.er1
17249 grep -v '^ *+' conftest.er1 >conftest.err
17251 cat conftest.err >&5
17252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253 (exit $ac_status); } &&
17254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17255 { (case "(($ac_try" in
17256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17257 *) ac_try_echo=$ac_try;;
17259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17260 (eval "$ac_try") 2>&5
17262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); }; } &&
17264 { ac_try='test -s conftest.$ac_objext'
17265 { (case "(($ac_try" in
17266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17267 *) ac_try_echo=$ac_try;;
17269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17270 (eval "$ac_try") 2>&5
17272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17273 (exit $ac_status); }; }; then
17274 ac_header_compiler=yes
17276 echo "$as_me: failed program was:" >&5
17277 sed 's/^/| /' conftest.$ac_ext >&5
17279 ac_header_compiler=no
17282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17283 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17284 echo "${ECHO_T}$ac_header_compiler" >&6; }
17286 # Is the header present?
17287 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17288 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17289 cat >conftest.$ac_ext <<_ACEOF
17292 cat confdefs.h >>conftest.$ac_ext
17293 cat >>conftest.$ac_ext <<_ACEOF
17294 /* end confdefs.h. */
17295 #include <$ac_header>
17297 if { (ac_try="$ac_cpp conftest.$ac_ext"
17298 case "(($ac_try" in
17299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17300 *) ac_try_echo=$ac_try;;
17302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17303 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17305 grep -v '^ *+' conftest.er1 >conftest.err
17307 cat conftest.err >&5
17308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309 (exit $ac_status); } >/dev/null; then
17310 if test -s conftest.err; then
17311 ac_cpp_err=$ac_c_preproc_warn_flag
17312 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17319 if test -z "$ac_cpp_err"; then
17320 ac_header_preproc=yes
17322 echo "$as_me: failed program was:" >&5
17323 sed 's/^/| /' conftest.$ac_ext >&5
17325 ac_header_preproc=no
17328 rm -f conftest.err conftest.$ac_ext
17329 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17330 echo "${ECHO_T}$ac_header_preproc" >&6; }
17332 # So? What about this header?
17333 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17335 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17336 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17338 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17339 ac_header_preproc=yes
17342 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17343 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17344 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17345 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17346 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17347 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17348 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17349 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17351 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17352 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17353 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17355 ## ------------------------------------ ##
17356 ## Report this to http://llvm.org/bugs/ ##
17357 ## ------------------------------------ ##
17359 ) | sed "s/^/$as_me: WARNING: /" >&2
17362 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17365 echo $ECHO_N "(cached) $ECHO_C" >&6
17367 eval "$as_ac_Header=\$ac_header_preproc"
17369 ac_res=`eval echo '${'$as_ac_Header'}'`
17370 { echo "$as_me:$LINENO: result: $ac_res" >&5
17371 echo "${ECHO_T}$ac_res" >&6; }
17374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17375 cat >>confdefs.h <<_ACEOF
17376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17384 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17385 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17386 cat >conftest.$ac_ext <<_ACEOF
17390 cat confdefs.h >>conftest.$ac_ext
17391 cat >>conftest.$ac_ext <<_ACEOF
17392 /* end confdefs.h. */
17394 extern const char *__crashreporter_info__;
17396 __crashreporter_info__ = "test";
17402 rm -f conftest.$ac_objext conftest$ac_exeext
17403 if { (ac_try="$ac_link"
17404 case "(($ac_try" in
17405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17406 *) ac_try_echo=$ac_try;;
17408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17409 (eval "$ac_link") 2>conftest.er1
17411 grep -v '^ *+' conftest.er1 >conftest.err
17413 cat conftest.err >&5
17414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 (exit $ac_status); } &&
17416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17417 { (case "(($ac_try" in
17418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17419 *) ac_try_echo=$ac_try;;
17421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17422 (eval "$ac_try") 2>&5
17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); }; } &&
17426 { ac_try='test -s conftest$ac_exeext'
17427 { (case "(($ac_try" in
17428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17429 *) ac_try_echo=$ac_try;;
17431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17432 (eval "$ac_try") 2>&5
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); }; }; then
17437 { echo "$as_me:$LINENO: result: yes" >&5
17438 echo "${ECHO_T}yes" >&6; }
17440 cat >>confdefs.h <<\_ACEOF
17441 #define HAVE_CRASHREPORTER_INFO 1
17446 echo "$as_me: failed program was:" >&5
17447 sed 's/^/| /' conftest.$ac_ext >&5
17450 { echo "$as_me:$LINENO: result: no" >&5
17451 echo "${ECHO_T}no" >&6; }
17453 cat >>confdefs.h <<\_ACEOF
17454 #define HAVE_CRASHREPORTER_INFO 0
17460 rm -f core conftest.err conftest.$ac_objext \
17461 conftest$ac_exeext conftest.$ac_ext
17465 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17466 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17467 if test "${ac_cv_huge_val_sanity+set}" = set; then
17468 echo $ECHO_N "(cached) $ECHO_C" >&6
17472 ac_cpp='$CXXCPP $CPPFLAGS'
17473 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17474 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17475 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17477 ac_save_CXXFLAGS=$CXXFLAGS
17478 CXXFLAGS="$CXXFLAGS -pedantic"
17479 if test "$cross_compiling" = yes; then
17480 ac_cv_huge_val_sanity=yes
17482 cat >conftest.$ac_ext <<_ACEOF
17485 cat confdefs.h >>conftest.$ac_ext
17486 cat >>conftest.$ac_ext <<_ACEOF
17487 /* end confdefs.h. */
17492 double x = HUGE_VAL; return x != x;
17497 rm -f conftest$ac_exeext
17498 if { (ac_try="$ac_link"
17499 case "(($ac_try" in
17500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17501 *) ac_try_echo=$ac_try;;
17503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17504 (eval "$ac_link") 2>&5
17506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17508 { (case "(($ac_try" in
17509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17510 *) ac_try_echo=$ac_try;;
17512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17513 (eval "$ac_try") 2>&5
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); }; }; then
17517 ac_cv_huge_val_sanity=yes
17519 echo "$as_me: program exited with status $ac_status" >&5
17520 echo "$as_me: failed program was:" >&5
17521 sed 's/^/| /' conftest.$ac_ext >&5
17523 ( exit $ac_status )
17524 ac_cv_huge_val_sanity=no
17526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17530 CXXFLAGS=$ac_save_CXXFLAGS
17532 ac_cpp='$CPP $CPPFLAGS'
17533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17539 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17540 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17541 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17544 { echo "$as_me:$LINENO: checking for pid_t" >&5
17545 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17546 if test "${ac_cv_type_pid_t+set}" = set; then
17547 echo $ECHO_N "(cached) $ECHO_C" >&6
17549 cat >conftest.$ac_ext <<_ACEOF
17552 cat confdefs.h >>conftest.$ac_ext
17553 cat >>conftest.$ac_ext <<_ACEOF
17554 /* end confdefs.h. */
17555 $ac_includes_default
17556 typedef pid_t ac__type_new_;
17560 if ((ac__type_new_ *) 0)
17562 if (sizeof (ac__type_new_))
17568 rm -f conftest.$ac_objext
17569 if { (ac_try="$ac_compile"
17570 case "(($ac_try" in
17571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17572 *) ac_try_echo=$ac_try;;
17574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17575 (eval "$ac_compile") 2>conftest.er1
17577 grep -v '^ *+' conftest.er1 >conftest.err
17579 cat conftest.err >&5
17580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581 (exit $ac_status); } &&
17582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17583 { (case "(($ac_try" in
17584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17585 *) ac_try_echo=$ac_try;;
17587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17588 (eval "$ac_try") 2>&5
17590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); }; } &&
17592 { ac_try='test -s conftest.$ac_objext'
17593 { (case "(($ac_try" in
17594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17595 *) ac_try_echo=$ac_try;;
17597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17598 (eval "$ac_try") 2>&5
17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); }; }; then
17602 ac_cv_type_pid_t=yes
17604 echo "$as_me: failed program was:" >&5
17605 sed 's/^/| /' conftest.$ac_ext >&5
17607 ac_cv_type_pid_t=no
17610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17612 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17613 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17614 if test $ac_cv_type_pid_t = yes; then
17618 cat >>confdefs.h <<_ACEOF
17624 { echo "$as_me:$LINENO: checking for size_t" >&5
17625 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17626 if test "${ac_cv_type_size_t+set}" = set; then
17627 echo $ECHO_N "(cached) $ECHO_C" >&6
17629 cat >conftest.$ac_ext <<_ACEOF
17632 cat confdefs.h >>conftest.$ac_ext
17633 cat >>conftest.$ac_ext <<_ACEOF
17634 /* end confdefs.h. */
17635 $ac_includes_default
17636 typedef size_t ac__type_new_;
17640 if ((ac__type_new_ *) 0)
17642 if (sizeof (ac__type_new_))
17648 rm -f conftest.$ac_objext
17649 if { (ac_try="$ac_compile"
17650 case "(($ac_try" in
17651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17652 *) ac_try_echo=$ac_try;;
17654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17655 (eval "$ac_compile") 2>conftest.er1
17657 grep -v '^ *+' conftest.er1 >conftest.err
17659 cat conftest.err >&5
17660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); } &&
17662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17663 { (case "(($ac_try" in
17664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17665 *) ac_try_echo=$ac_try;;
17667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17668 (eval "$ac_try") 2>&5
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); }; } &&
17672 { ac_try='test -s conftest.$ac_objext'
17673 { (case "(($ac_try" in
17674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17675 *) ac_try_echo=$ac_try;;
17677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17678 (eval "$ac_try") 2>&5
17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681 (exit $ac_status); }; }; then
17682 ac_cv_type_size_t=yes
17684 echo "$as_me: failed program was:" >&5
17685 sed 's/^/| /' conftest.$ac_ext >&5
17687 ac_cv_type_size_t=no
17690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17692 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17693 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17694 if test $ac_cv_type_size_t = yes; then
17698 cat >>confdefs.h <<_ACEOF
17699 #define size_t unsigned int
17705 cat >>confdefs.h <<_ACEOF
17706 #define RETSIGTYPE void
17709 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17710 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17711 if test "${ac_cv_struct_tm+set}" = set; then
17712 echo $ECHO_N "(cached) $ECHO_C" >&6
17714 cat >conftest.$ac_ext <<_ACEOF
17717 cat confdefs.h >>conftest.$ac_ext
17718 cat >>conftest.$ac_ext <<_ACEOF
17719 /* end confdefs.h. */
17720 #include <sys/types.h>
17726 struct tm *tp; tp->tm_sec;
17731 rm -f conftest.$ac_objext
17732 if { (ac_try="$ac_compile"
17733 case "(($ac_try" in
17734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17735 *) ac_try_echo=$ac_try;;
17737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17738 (eval "$ac_compile") 2>conftest.er1
17740 grep -v '^ *+' conftest.er1 >conftest.err
17742 cat conftest.err >&5
17743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744 (exit $ac_status); } &&
17745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17746 { (case "(($ac_try" in
17747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17748 *) ac_try_echo=$ac_try;;
17750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17751 (eval "$ac_try") 2>&5
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); }; } &&
17755 { ac_try='test -s conftest.$ac_objext'
17756 { (case "(($ac_try" in
17757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17758 *) ac_try_echo=$ac_try;;
17760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17761 (eval "$ac_try") 2>&5
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); }; }; then
17765 ac_cv_struct_tm=time.h
17767 echo "$as_me: failed program was:" >&5
17768 sed 's/^/| /' conftest.$ac_ext >&5
17770 ac_cv_struct_tm=sys/time.h
17773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17775 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17776 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17777 if test $ac_cv_struct_tm = sys/time.h; then
17779 cat >>confdefs.h <<\_ACEOF
17780 #define TM_IN_SYS_TIME 1
17785 { echo "$as_me:$LINENO: checking for int64_t" >&5
17786 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17787 if test "${ac_cv_type_int64_t+set}" = set; then
17788 echo $ECHO_N "(cached) $ECHO_C" >&6
17790 cat >conftest.$ac_ext <<_ACEOF
17793 cat confdefs.h >>conftest.$ac_ext
17794 cat >>conftest.$ac_ext <<_ACEOF
17795 /* end confdefs.h. */
17796 $ac_includes_default
17797 typedef int64_t ac__type_new_;
17801 if ((ac__type_new_ *) 0)
17803 if (sizeof (ac__type_new_))
17809 rm -f conftest.$ac_objext
17810 if { (ac_try="$ac_compile"
17811 case "(($ac_try" in
17812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17813 *) ac_try_echo=$ac_try;;
17815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17816 (eval "$ac_compile") 2>conftest.er1
17818 grep -v '^ *+' conftest.er1 >conftest.err
17820 cat conftest.err >&5
17821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822 (exit $ac_status); } &&
17823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17824 { (case "(($ac_try" in
17825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17826 *) ac_try_echo=$ac_try;;
17828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17829 (eval "$ac_try") 2>&5
17831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832 (exit $ac_status); }; } &&
17833 { ac_try='test -s conftest.$ac_objext'
17834 { (case "(($ac_try" in
17835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17836 *) ac_try_echo=$ac_try;;
17838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17839 (eval "$ac_try") 2>&5
17841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842 (exit $ac_status); }; }; then
17843 ac_cv_type_int64_t=yes
17845 echo "$as_me: failed program was:" >&5
17846 sed 's/^/| /' conftest.$ac_ext >&5
17848 ac_cv_type_int64_t=no
17851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17853 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17854 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17855 if test $ac_cv_type_int64_t = yes; then
17857 cat >>confdefs.h <<_ACEOF
17858 #define HAVE_INT64_T 1
17863 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17864 echo "$as_me: error: Type int64_t required but not found" >&2;}
17865 { (exit 1); exit 1; }; }
17868 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17869 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17870 if test "${ac_cv_type_uint64_t+set}" = set; then
17871 echo $ECHO_N "(cached) $ECHO_C" >&6
17873 cat >conftest.$ac_ext <<_ACEOF
17876 cat confdefs.h >>conftest.$ac_ext
17877 cat >>conftest.$ac_ext <<_ACEOF
17878 /* end confdefs.h. */
17879 $ac_includes_default
17880 typedef uint64_t ac__type_new_;
17884 if ((ac__type_new_ *) 0)
17886 if (sizeof (ac__type_new_))
17892 rm -f conftest.$ac_objext
17893 if { (ac_try="$ac_compile"
17894 case "(($ac_try" in
17895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17896 *) ac_try_echo=$ac_try;;
17898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17899 (eval "$ac_compile") 2>conftest.er1
17901 grep -v '^ *+' conftest.er1 >conftest.err
17903 cat conftest.err >&5
17904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905 (exit $ac_status); } &&
17906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17907 { (case "(($ac_try" in
17908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17909 *) ac_try_echo=$ac_try;;
17911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17912 (eval "$ac_try") 2>&5
17914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915 (exit $ac_status); }; } &&
17916 { ac_try='test -s conftest.$ac_objext'
17917 { (case "(($ac_try" in
17918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17919 *) ac_try_echo=$ac_try;;
17921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17922 (eval "$ac_try") 2>&5
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); }; }; then
17926 ac_cv_type_uint64_t=yes
17928 echo "$as_me: failed program was:" >&5
17929 sed 's/^/| /' conftest.$ac_ext >&5
17931 ac_cv_type_uint64_t=no
17934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17936 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17937 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17938 if test $ac_cv_type_uint64_t = yes; then
17940 cat >>confdefs.h <<_ACEOF
17941 #define HAVE_UINT64_T 1
17946 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17947 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17948 if test "${ac_cv_type_u_int64_t+set}" = set; then
17949 echo $ECHO_N "(cached) $ECHO_C" >&6
17951 cat >conftest.$ac_ext <<_ACEOF
17954 cat confdefs.h >>conftest.$ac_ext
17955 cat >>conftest.$ac_ext <<_ACEOF
17956 /* end confdefs.h. */
17957 $ac_includes_default
17958 typedef u_int64_t ac__type_new_;
17962 if ((ac__type_new_ *) 0)
17964 if (sizeof (ac__type_new_))
17970 rm -f conftest.$ac_objext
17971 if { (ac_try="$ac_compile"
17972 case "(($ac_try" in
17973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17974 *) ac_try_echo=$ac_try;;
17976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17977 (eval "$ac_compile") 2>conftest.er1
17979 grep -v '^ *+' conftest.er1 >conftest.err
17981 cat conftest.err >&5
17982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17983 (exit $ac_status); } &&
17984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17985 { (case "(($ac_try" in
17986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17987 *) ac_try_echo=$ac_try;;
17989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17990 (eval "$ac_try") 2>&5
17992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993 (exit $ac_status); }; } &&
17994 { ac_try='test -s conftest.$ac_objext'
17995 { (case "(($ac_try" in
17996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17997 *) ac_try_echo=$ac_try;;
17999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18000 (eval "$ac_try") 2>&5
18002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003 (exit $ac_status); }; }; then
18004 ac_cv_type_u_int64_t=yes
18006 echo "$as_me: failed program was:" >&5
18007 sed 's/^/| /' conftest.$ac_ext >&5
18009 ac_cv_type_u_int64_t=no
18012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18014 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
18015 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
18016 if test $ac_cv_type_u_int64_t = yes; then
18018 cat >>confdefs.h <<_ACEOF
18019 #define HAVE_U_INT64_T 1
18024 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
18025 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
18026 { (exit 1); exit 1; }; }
18040 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
18042 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18043 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18044 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18045 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18046 echo $ECHO_N "(cached) $ECHO_C" >&6
18048 cat >conftest.$ac_ext <<_ACEOF
18051 cat confdefs.h >>conftest.$ac_ext
18052 cat >>conftest.$ac_ext <<_ACEOF
18053 /* end confdefs.h. */
18054 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18056 #define $ac_func innocuous_$ac_func
18058 /* System header to define __stub macros and hopefully few prototypes,
18059 which can conflict with char $ac_func (); below.
18060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18061 <limits.h> exists even on freestanding compilers. */
18064 # include <limits.h>
18066 # include <assert.h>
18071 /* Override any GCC internal prototype to avoid an error.
18072 Use char because int might match the return type of a GCC
18073 builtin and then its argument prototype would still apply. */
18078 /* The GNU C library defines this for functions which it implements
18079 to always fail with ENOSYS. Some functions are actually named
18080 something starting with __ and the normal name is an alias. */
18081 #if defined __stub_$ac_func || defined __stub___$ac_func
18088 return $ac_func ();
18093 rm -f conftest.$ac_objext conftest$ac_exeext
18094 if { (ac_try="$ac_link"
18095 case "(($ac_try" in
18096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18097 *) ac_try_echo=$ac_try;;
18099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18100 (eval "$ac_link") 2>conftest.er1
18102 grep -v '^ *+' conftest.er1 >conftest.err
18104 cat conftest.err >&5
18105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106 (exit $ac_status); } &&
18107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18108 { (case "(($ac_try" in
18109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18110 *) ac_try_echo=$ac_try;;
18112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18113 (eval "$ac_try") 2>&5
18115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116 (exit $ac_status); }; } &&
18117 { ac_try='test -s conftest$ac_exeext'
18118 { (case "(($ac_try" in
18119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18120 *) ac_try_echo=$ac_try;;
18122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18123 (eval "$ac_try") 2>&5
18125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126 (exit $ac_status); }; }; then
18127 eval "$as_ac_var=yes"
18129 echo "$as_me: failed program was:" >&5
18130 sed 's/^/| /' conftest.$ac_ext >&5
18132 eval "$as_ac_var=no"
18135 rm -f core conftest.err conftest.$ac_objext \
18136 conftest$ac_exeext conftest.$ac_ext
18138 ac_res=`eval echo '${'$as_ac_var'}'`
18139 { echo "$as_me:$LINENO: result: $ac_res" >&5
18140 echo "${ECHO_T}$ac_res" >&6; }
18141 if test `eval echo '${'$as_ac_var'}'` = yes; then
18142 cat >>confdefs.h <<_ACEOF
18143 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18153 for ac_func in powf fmodf strtof round
18155 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18156 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18157 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18158 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18159 echo $ECHO_N "(cached) $ECHO_C" >&6
18161 cat >conftest.$ac_ext <<_ACEOF
18164 cat confdefs.h >>conftest.$ac_ext
18165 cat >>conftest.$ac_ext <<_ACEOF
18166 /* end confdefs.h. */
18167 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18168 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18169 #define $ac_func innocuous_$ac_func
18171 /* System header to define __stub macros and hopefully few prototypes,
18172 which can conflict with char $ac_func (); below.
18173 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18174 <limits.h> exists even on freestanding compilers. */
18177 # include <limits.h>
18179 # include <assert.h>
18184 /* Override any GCC internal prototype to avoid an error.
18185 Use char because int might match the return type of a GCC
18186 builtin and then its argument prototype would still apply. */
18191 /* The GNU C library defines this for functions which it implements
18192 to always fail with ENOSYS. Some functions are actually named
18193 something starting with __ and the normal name is an alias. */
18194 #if defined __stub_$ac_func || defined __stub___$ac_func
18201 return $ac_func ();
18206 rm -f conftest.$ac_objext conftest$ac_exeext
18207 if { (ac_try="$ac_link"
18208 case "(($ac_try" in
18209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18210 *) ac_try_echo=$ac_try;;
18212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18213 (eval "$ac_link") 2>conftest.er1
18215 grep -v '^ *+' conftest.er1 >conftest.err
18217 cat conftest.err >&5
18218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219 (exit $ac_status); } &&
18220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18221 { (case "(($ac_try" in
18222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18223 *) ac_try_echo=$ac_try;;
18225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18226 (eval "$ac_try") 2>&5
18228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229 (exit $ac_status); }; } &&
18230 { ac_try='test -s conftest$ac_exeext'
18231 { (case "(($ac_try" in
18232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18233 *) ac_try_echo=$ac_try;;
18235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18236 (eval "$ac_try") 2>&5
18238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239 (exit $ac_status); }; }; then
18240 eval "$as_ac_var=yes"
18242 echo "$as_me: failed program was:" >&5
18243 sed 's/^/| /' conftest.$ac_ext >&5
18245 eval "$as_ac_var=no"
18248 rm -f core conftest.err conftest.$ac_objext \
18249 conftest$ac_exeext conftest.$ac_ext
18251 ac_res=`eval echo '${'$as_ac_var'}'`
18252 { echo "$as_me:$LINENO: result: $ac_res" >&5
18253 echo "${ECHO_T}$ac_res" >&6; }
18254 if test `eval echo '${'$as_ac_var'}'` = yes; then
18255 cat >>confdefs.h <<_ACEOF
18256 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18267 for ac_func in log log2 log10 exp exp2
18269 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18270 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18271 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18272 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18273 echo $ECHO_N "(cached) $ECHO_C" >&6
18275 cat >conftest.$ac_ext <<_ACEOF
18278 cat confdefs.h >>conftest.$ac_ext
18279 cat >>conftest.$ac_ext <<_ACEOF
18280 /* end confdefs.h. */
18281 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18283 #define $ac_func innocuous_$ac_func
18285 /* System header to define __stub macros and hopefully few prototypes,
18286 which can conflict with char $ac_func (); below.
18287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18288 <limits.h> exists even on freestanding compilers. */
18291 # include <limits.h>
18293 # include <assert.h>
18298 /* Override any GCC internal prototype to avoid an error.
18299 Use char because int might match the return type of a GCC
18300 builtin and then its argument prototype would still apply. */
18305 /* The GNU C library defines this for functions which it implements
18306 to always fail with ENOSYS. Some functions are actually named
18307 something starting with __ and the normal name is an alias. */
18308 #if defined __stub_$ac_func || defined __stub___$ac_func
18315 return $ac_func ();
18320 rm -f conftest.$ac_objext conftest$ac_exeext
18321 if { (ac_try="$ac_link"
18322 case "(($ac_try" in
18323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18324 *) ac_try_echo=$ac_try;;
18326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18327 (eval "$ac_link") 2>conftest.er1
18329 grep -v '^ *+' conftest.er1 >conftest.err
18331 cat conftest.err >&5
18332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333 (exit $ac_status); } &&
18334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18335 { (case "(($ac_try" in
18336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18337 *) ac_try_echo=$ac_try;;
18339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18340 (eval "$ac_try") 2>&5
18342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343 (exit $ac_status); }; } &&
18344 { ac_try='test -s conftest$ac_exeext'
18345 { (case "(($ac_try" in
18346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18347 *) ac_try_echo=$ac_try;;
18349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18350 (eval "$ac_try") 2>&5
18352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353 (exit $ac_status); }; }; then
18354 eval "$as_ac_var=yes"
18356 echo "$as_me: failed program was:" >&5
18357 sed 's/^/| /' conftest.$ac_ext >&5
18359 eval "$as_ac_var=no"
18362 rm -f core conftest.err conftest.$ac_objext \
18363 conftest$ac_exeext conftest.$ac_ext
18365 ac_res=`eval echo '${'$as_ac_var'}'`
18366 { echo "$as_me:$LINENO: result: $ac_res" >&5
18367 echo "${ECHO_T}$ac_res" >&6; }
18368 if test `eval echo '${'$as_ac_var'}'` = yes; then
18369 cat >>confdefs.h <<_ACEOF
18370 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18381 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18384 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18386 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18387 echo $ECHO_N "(cached) $ECHO_C" >&6
18389 cat >conftest.$ac_ext <<_ACEOF
18392 cat confdefs.h >>conftest.$ac_ext
18393 cat >>conftest.$ac_ext <<_ACEOF
18394 /* end confdefs.h. */
18395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18397 #define $ac_func innocuous_$ac_func
18399 /* System header to define __stub macros and hopefully few prototypes,
18400 which can conflict with char $ac_func (); below.
18401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18402 <limits.h> exists even on freestanding compilers. */
18405 # include <limits.h>
18407 # include <assert.h>
18412 /* Override any GCC internal prototype to avoid an error.
18413 Use char because int might match the return type of a GCC
18414 builtin and then its argument prototype would still apply. */
18419 /* The GNU C library defines this for functions which it implements
18420 to always fail with ENOSYS. Some functions are actually named
18421 something starting with __ and the normal name is an alias. */
18422 #if defined __stub_$ac_func || defined __stub___$ac_func
18429 return $ac_func ();
18434 rm -f conftest.$ac_objext conftest$ac_exeext
18435 if { (ac_try="$ac_link"
18436 case "(($ac_try" in
18437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18438 *) ac_try_echo=$ac_try;;
18440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18441 (eval "$ac_link") 2>conftest.er1
18443 grep -v '^ *+' conftest.er1 >conftest.err
18445 cat conftest.err >&5
18446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447 (exit $ac_status); } &&
18448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18449 { (case "(($ac_try" in
18450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18451 *) ac_try_echo=$ac_try;;
18453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18454 (eval "$ac_try") 2>&5
18456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18457 (exit $ac_status); }; } &&
18458 { ac_try='test -s conftest$ac_exeext'
18459 { (case "(($ac_try" in
18460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18461 *) ac_try_echo=$ac_try;;
18463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18464 (eval "$ac_try") 2>&5
18466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18467 (exit $ac_status); }; }; then
18468 eval "$as_ac_var=yes"
18470 echo "$as_me: failed program was:" >&5
18471 sed 's/^/| /' conftest.$ac_ext >&5
18473 eval "$as_ac_var=no"
18476 rm -f core conftest.err conftest.$ac_objext \
18477 conftest$ac_exeext conftest.$ac_ext
18479 ac_res=`eval echo '${'$as_ac_var'}'`
18480 { echo "$as_me:$LINENO: result: $ac_res" >&5
18481 echo "${ECHO_T}$ac_res" >&6; }
18482 if test `eval echo '${'$as_ac_var'}'` = yes; then
18483 cat >>confdefs.h <<_ACEOF
18484 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18493 for ac_func in isatty mkdtemp mkstemp
18495 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18496 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18497 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18498 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18499 echo $ECHO_N "(cached) $ECHO_C" >&6
18501 cat >conftest.$ac_ext <<_ACEOF
18504 cat confdefs.h >>conftest.$ac_ext
18505 cat >>conftest.$ac_ext <<_ACEOF
18506 /* end confdefs.h. */
18507 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18509 #define $ac_func innocuous_$ac_func
18511 /* System header to define __stub macros and hopefully few prototypes,
18512 which can conflict with char $ac_func (); below.
18513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18514 <limits.h> exists even on freestanding compilers. */
18517 # include <limits.h>
18519 # include <assert.h>
18524 /* Override any GCC internal prototype to avoid an error.
18525 Use char because int might match the return type of a GCC
18526 builtin and then its argument prototype would still apply. */
18531 /* The GNU C library defines this for functions which it implements
18532 to always fail with ENOSYS. Some functions are actually named
18533 something starting with __ and the normal name is an alias. */
18534 #if defined __stub_$ac_func || defined __stub___$ac_func
18541 return $ac_func ();
18546 rm -f conftest.$ac_objext conftest$ac_exeext
18547 if { (ac_try="$ac_link"
18548 case "(($ac_try" in
18549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18550 *) ac_try_echo=$ac_try;;
18552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18553 (eval "$ac_link") 2>conftest.er1
18555 grep -v '^ *+' conftest.er1 >conftest.err
18557 cat conftest.err >&5
18558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18559 (exit $ac_status); } &&
18560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18561 { (case "(($ac_try" in
18562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18563 *) ac_try_echo=$ac_try;;
18565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18566 (eval "$ac_try") 2>&5
18568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18569 (exit $ac_status); }; } &&
18570 { ac_try='test -s conftest$ac_exeext'
18571 { (case "(($ac_try" in
18572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18573 *) ac_try_echo=$ac_try;;
18575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18576 (eval "$ac_try") 2>&5
18578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579 (exit $ac_status); }; }; then
18580 eval "$as_ac_var=yes"
18582 echo "$as_me: failed program was:" >&5
18583 sed 's/^/| /' conftest.$ac_ext >&5
18585 eval "$as_ac_var=no"
18588 rm -f core conftest.err conftest.$ac_objext \
18589 conftest$ac_exeext conftest.$ac_ext
18591 ac_res=`eval echo '${'$as_ac_var'}'`
18592 { echo "$as_me:$LINENO: result: $ac_res" >&5
18593 echo "${ECHO_T}$ac_res" >&6; }
18594 if test `eval echo '${'$as_ac_var'}'` = yes; then
18595 cat >>confdefs.h <<_ACEOF
18596 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18609 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
18611 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18612 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18613 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18614 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18615 echo $ECHO_N "(cached) $ECHO_C" >&6
18617 cat >conftest.$ac_ext <<_ACEOF
18620 cat confdefs.h >>conftest.$ac_ext
18621 cat >>conftest.$ac_ext <<_ACEOF
18622 /* end confdefs.h. */
18623 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18624 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18625 #define $ac_func innocuous_$ac_func
18627 /* System header to define __stub macros and hopefully few prototypes,
18628 which can conflict with char $ac_func (); below.
18629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18630 <limits.h> exists even on freestanding compilers. */
18633 # include <limits.h>
18635 # include <assert.h>
18640 /* Override any GCC internal prototype to avoid an error.
18641 Use char because int might match the return type of a GCC
18642 builtin and then its argument prototype would still apply. */
18647 /* The GNU C library defines this for functions which it implements
18648 to always fail with ENOSYS. Some functions are actually named
18649 something starting with __ and the normal name is an alias. */
18650 #if defined __stub_$ac_func || defined __stub___$ac_func
18657 return $ac_func ();
18662 rm -f conftest.$ac_objext conftest$ac_exeext
18663 if { (ac_try="$ac_link"
18664 case "(($ac_try" in
18665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18666 *) ac_try_echo=$ac_try;;
18668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18669 (eval "$ac_link") 2>conftest.er1
18671 grep -v '^ *+' conftest.er1 >conftest.err
18673 cat conftest.err >&5
18674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675 (exit $ac_status); } &&
18676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18677 { (case "(($ac_try" in
18678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18679 *) ac_try_echo=$ac_try;;
18681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18682 (eval "$ac_try") 2>&5
18684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685 (exit $ac_status); }; } &&
18686 { ac_try='test -s conftest$ac_exeext'
18687 { (case "(($ac_try" in
18688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18689 *) ac_try_echo=$ac_try;;
18691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18692 (eval "$ac_try") 2>&5
18694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695 (exit $ac_status); }; }; then
18696 eval "$as_ac_var=yes"
18698 echo "$as_me: failed program was:" >&5
18699 sed 's/^/| /' conftest.$ac_ext >&5
18701 eval "$as_ac_var=no"
18704 rm -f core conftest.err conftest.$ac_objext \
18705 conftest$ac_exeext conftest.$ac_ext
18707 ac_res=`eval echo '${'$as_ac_var'}'`
18708 { echo "$as_me:$LINENO: result: $ac_res" >&5
18709 echo "${ECHO_T}$ac_res" >&6; }
18710 if test `eval echo '${'$as_ac_var'}'` = yes; then
18711 cat >>confdefs.h <<_ACEOF
18712 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18722 for ac_func in strerror strerror_r setenv arc4random
18724 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18725 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18727 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18728 echo $ECHO_N "(cached) $ECHO_C" >&6
18730 cat >conftest.$ac_ext <<_ACEOF
18733 cat confdefs.h >>conftest.$ac_ext
18734 cat >>conftest.$ac_ext <<_ACEOF
18735 /* end confdefs.h. */
18736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18738 #define $ac_func innocuous_$ac_func
18740 /* System header to define __stub macros and hopefully few prototypes,
18741 which can conflict with char $ac_func (); below.
18742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18743 <limits.h> exists even on freestanding compilers. */
18746 # include <limits.h>
18748 # include <assert.h>
18753 /* Override any GCC internal prototype to avoid an error.
18754 Use char because int might match the return type of a GCC
18755 builtin and then its argument prototype would still apply. */
18760 /* The GNU C library defines this for functions which it implements
18761 to always fail with ENOSYS. Some functions are actually named
18762 something starting with __ and the normal name is an alias. */
18763 #if defined __stub_$ac_func || defined __stub___$ac_func
18770 return $ac_func ();
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 eval "$as_ac_var=yes"
18811 echo "$as_me: failed program was:" >&5
18812 sed 's/^/| /' conftest.$ac_ext >&5
18814 eval "$as_ac_var=no"
18817 rm -f core conftest.err conftest.$ac_objext \
18818 conftest$ac_exeext conftest.$ac_ext
18820 ac_res=`eval echo '${'$as_ac_var'}'`
18821 { echo "$as_me:$LINENO: result: $ac_res" >&5
18822 echo "${ECHO_T}$ac_res" >&6; }
18823 if test `eval echo '${'$as_ac_var'}'` = yes; then
18824 cat >>confdefs.h <<_ACEOF
18825 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18835 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18837 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18838 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18839 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18840 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18841 echo $ECHO_N "(cached) $ECHO_C" >&6
18843 cat >conftest.$ac_ext <<_ACEOF
18846 cat confdefs.h >>conftest.$ac_ext
18847 cat >>conftest.$ac_ext <<_ACEOF
18848 /* end confdefs.h. */
18849 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18851 #define $ac_func innocuous_$ac_func
18853 /* System header to define __stub macros and hopefully few prototypes,
18854 which can conflict with char $ac_func (); below.
18855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18856 <limits.h> exists even on freestanding compilers. */
18859 # include <limits.h>
18861 # include <assert.h>
18866 /* Override any GCC internal prototype to avoid an error.
18867 Use char because int might match the return type of a GCC
18868 builtin and then its argument prototype would still apply. */
18873 /* The GNU C library defines this for functions which it implements
18874 to always fail with ENOSYS. Some functions are actually named
18875 something starting with __ and the normal name is an alias. */
18876 #if defined __stub_$ac_func || defined __stub___$ac_func
18883 return $ac_func ();
18888 rm -f conftest.$ac_objext conftest$ac_exeext
18889 if { (ac_try="$ac_link"
18890 case "(($ac_try" in
18891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18892 *) ac_try_echo=$ac_try;;
18894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18895 (eval "$ac_link") 2>conftest.er1
18897 grep -v '^ *+' conftest.er1 >conftest.err
18899 cat conftest.err >&5
18900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901 (exit $ac_status); } &&
18902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18903 { (case "(($ac_try" in
18904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18905 *) ac_try_echo=$ac_try;;
18907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18908 (eval "$ac_try") 2>&5
18910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18911 (exit $ac_status); }; } &&
18912 { ac_try='test -s conftest$ac_exeext'
18913 { (case "(($ac_try" in
18914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18915 *) ac_try_echo=$ac_try;;
18917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18918 (eval "$ac_try") 2>&5
18920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18921 (exit $ac_status); }; }; then
18922 eval "$as_ac_var=yes"
18924 echo "$as_me: failed program was:" >&5
18925 sed 's/^/| /' conftest.$ac_ext >&5
18927 eval "$as_ac_var=no"
18930 rm -f core conftest.err conftest.$ac_objext \
18931 conftest$ac_exeext conftest.$ac_ext
18933 ac_res=`eval echo '${'$as_ac_var'}'`
18934 { echo "$as_me:$LINENO: result: $ac_res" >&5
18935 echo "${ECHO_T}$ac_res" >&6; }
18936 if test `eval echo '${'$as_ac_var'}'` = yes; then
18937 cat >>confdefs.h <<_ACEOF
18938 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18949 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18952 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18954 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18955 echo $ECHO_N "(cached) $ECHO_C" >&6
18957 cat >conftest.$ac_ext <<_ACEOF
18960 cat confdefs.h >>conftest.$ac_ext
18961 cat >>conftest.$ac_ext <<_ACEOF
18962 /* end confdefs.h. */
18963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18965 #define $ac_func innocuous_$ac_func
18967 /* System header to define __stub macros and hopefully few prototypes,
18968 which can conflict with char $ac_func (); below.
18969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18970 <limits.h> exists even on freestanding compilers. */
18973 # include <limits.h>
18975 # include <assert.h>
18980 /* Override any GCC internal prototype to avoid an error.
18981 Use char because int might match the return type of a GCC
18982 builtin and then its argument prototype would still apply. */
18987 /* The GNU C library defines this for functions which it implements
18988 to always fail with ENOSYS. Some functions are actually named
18989 something starting with __ and the normal name is an alias. */
18990 #if defined __stub_$ac_func || defined __stub___$ac_func
18997 return $ac_func ();
19002 rm -f conftest.$ac_objext conftest$ac_exeext
19003 if { (ac_try="$ac_link"
19004 case "(($ac_try" in
19005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19006 *) ac_try_echo=$ac_try;;
19008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19009 (eval "$ac_link") 2>conftest.er1
19011 grep -v '^ *+' conftest.er1 >conftest.err
19013 cat conftest.err >&5
19014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015 (exit $ac_status); } &&
19016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19017 { (case "(($ac_try" in
19018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19019 *) ac_try_echo=$ac_try;;
19021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19022 (eval "$ac_try") 2>&5
19024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025 (exit $ac_status); }; } &&
19026 { ac_try='test -s conftest$ac_exeext'
19027 { (case "(($ac_try" in
19028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19029 *) ac_try_echo=$ac_try;;
19031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19032 (eval "$ac_try") 2>&5
19034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035 (exit $ac_status); }; }; then
19036 eval "$as_ac_var=yes"
19038 echo "$as_me: failed program was:" >&5
19039 sed 's/^/| /' conftest.$ac_ext >&5
19041 eval "$as_ac_var=no"
19044 rm -f core conftest.err conftest.$ac_objext \
19045 conftest$ac_exeext conftest.$ac_ext
19047 ac_res=`eval echo '${'$as_ac_var'}'`
19048 { echo "$as_me:$LINENO: result: $ac_res" >&5
19049 echo "${ECHO_T}$ac_res" >&6; }
19050 if test `eval echo '${'$as_ac_var'}'` = yes; then
19051 cat >>confdefs.h <<_ACEOF
19052 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19058 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
19059 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
19060 if test "${llvm_cv_c_printf_a+set}" = set; then
19061 echo $ECHO_N "(cached) $ECHO_C" >&6
19064 ac_cpp='$CPP $CPPFLAGS'
19065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19069 if test "$cross_compiling" = yes; then
19070 llvmac_cv_c_printf_a=no
19072 cat >conftest.$ac_ext <<_ACEOF
19076 cat confdefs.h >>conftest.$ac_ext
19077 cat >>conftest.$ac_ext <<_ACEOF
19078 /* end confdefs.h. */
19081 #include <stdlib.h>
19087 volatile double A, B;
19091 sprintf(Buffer, "%a", A);
19095 if (A != 0x1.999999999999ap-4)
19102 rm -f conftest$ac_exeext
19103 if { (ac_try="$ac_link"
19104 case "(($ac_try" in
19105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19106 *) ac_try_echo=$ac_try;;
19108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19109 (eval "$ac_link") 2>&5
19111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19113 { (case "(($ac_try" in
19114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19115 *) ac_try_echo=$ac_try;;
19117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19118 (eval "$ac_try") 2>&5
19120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121 (exit $ac_status); }; }; then
19122 llvm_cv_c_printf_a=yes
19124 echo "$as_me: program exited with status $ac_status" >&5
19125 echo "$as_me: failed program was:" >&5
19126 sed 's/^/| /' conftest.$ac_ext >&5
19128 ( exit $ac_status )
19129 llvmac_cv_c_printf_a=no
19131 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19136 ac_cpp='$CPP $CPPFLAGS'
19137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19142 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19143 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
19144 if test "$llvm_cv_c_printf_a" = "yes"; then
19146 cat >>confdefs.h <<\_ACEOF
19147 #define HAVE_PRINTF_A 1
19154 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19155 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19156 if test "${ac_cv_func_rand48+set}" = set; then
19157 echo $ECHO_N "(cached) $ECHO_C" >&6
19161 ac_cpp='$CXXCPP $CPPFLAGS'
19162 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19163 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19164 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19166 cat >conftest.$ac_ext <<_ACEOF
19169 cat confdefs.h >>conftest.$ac_ext
19170 cat >>conftest.$ac_ext <<_ACEOF
19171 /* end confdefs.h. */
19172 #include <stdlib.h>
19176 srand48(0);lrand48();drand48();
19181 rm -f conftest.$ac_objext
19182 if { (ac_try="$ac_compile"
19183 case "(($ac_try" in
19184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19185 *) ac_try_echo=$ac_try;;
19187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19188 (eval "$ac_compile") 2>conftest.er1
19190 grep -v '^ *+' conftest.er1 >conftest.err
19192 cat conftest.err >&5
19193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194 (exit $ac_status); } &&
19195 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19196 { (case "(($ac_try" in
19197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19198 *) ac_try_echo=$ac_try;;
19200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19201 (eval "$ac_try") 2>&5
19203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204 (exit $ac_status); }; } &&
19205 { ac_try='test -s conftest.$ac_objext'
19206 { (case "(($ac_try" in
19207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19208 *) ac_try_echo=$ac_try;;
19210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19211 (eval "$ac_try") 2>&5
19213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214 (exit $ac_status); }; }; then
19215 ac_cv_func_rand48=yes
19217 echo "$as_me: failed program was:" >&5
19218 sed 's/^/| /' conftest.$ac_ext >&5
19220 ac_cv_func_rand48=no
19223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19225 ac_cpp='$CPP $CPPFLAGS'
19226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19232 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19233 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19235 if test "$ac_cv_func_rand48" = "yes" ; then
19237 cat >>confdefs.h <<\_ACEOF
19238 #define HAVE_RAND48 1
19244 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19245 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19246 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19247 echo $ECHO_N "(cached) $ECHO_C" >&6
19249 cat >conftest.$ac_ext <<_ACEOF
19252 cat confdefs.h >>conftest.$ac_ext
19253 cat >>conftest.$ac_ext <<_ACEOF
19254 /* end confdefs.h. */
19255 $ac_includes_default
19260 char *p = (char *) strerror_s;
19268 rm -f conftest.$ac_objext
19269 if { (ac_try="$ac_compile"
19270 case "(($ac_try" in
19271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19272 *) ac_try_echo=$ac_try;;
19274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19275 (eval "$ac_compile") 2>conftest.er1
19277 grep -v '^ *+' conftest.er1 >conftest.err
19279 cat conftest.err >&5
19280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281 (exit $ac_status); } &&
19282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19283 { (case "(($ac_try" in
19284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19285 *) ac_try_echo=$ac_try;;
19287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19288 (eval "$ac_try") 2>&5
19290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291 (exit $ac_status); }; } &&
19292 { ac_try='test -s conftest.$ac_objext'
19293 { (case "(($ac_try" in
19294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19295 *) ac_try_echo=$ac_try;;
19297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19298 (eval "$ac_try") 2>&5
19300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301 (exit $ac_status); }; }; then
19302 ac_cv_have_decl_strerror_s=yes
19304 echo "$as_me: failed program was:" >&5
19305 sed 's/^/| /' conftest.$ac_ext >&5
19307 ac_cv_have_decl_strerror_s=no
19310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19312 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19313 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19314 if test $ac_cv_have_decl_strerror_s = yes; then
19316 cat >>confdefs.h <<_ACEOF
19317 #define HAVE_DECL_STRERROR_S 1
19322 cat >>confdefs.h <<_ACEOF
19323 #define HAVE_DECL_STRERROR_S 0
19331 if test "$llvm_cv_os_type" = "MingW" ; then
19332 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19333 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19334 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19335 echo $ECHO_N "(cached) $ECHO_C" >&6
19337 ac_check_lib_save_LIBS=$LIBS
19339 cat >conftest.$ac_ext <<_ACEOF
19342 cat confdefs.h >>conftest.$ac_ext
19343 cat >>conftest.$ac_ext <<_ACEOF
19344 /* end confdefs.h. */
19346 /* Override any GCC internal prototype to avoid an error.
19347 Use char because int might match the return type of a GCC
19348 builtin and then its argument prototype would still apply. */
19361 rm -f conftest.$ac_objext conftest$ac_exeext
19362 if { (ac_try="$ac_link"
19363 case "(($ac_try" in
19364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19365 *) ac_try_echo=$ac_try;;
19367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19368 (eval "$ac_link") 2>conftest.er1
19370 grep -v '^ *+' conftest.er1 >conftest.err
19372 cat conftest.err >&5
19373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374 (exit $ac_status); } &&
19375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19376 { (case "(($ac_try" in
19377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19378 *) ac_try_echo=$ac_try;;
19380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19381 (eval "$ac_try") 2>&5
19383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384 (exit $ac_status); }; } &&
19385 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
19395 ac_cv_lib_gcc__alloca=yes
19397 echo "$as_me: failed program was:" >&5
19398 sed 's/^/| /' conftest.$ac_ext >&5
19400 ac_cv_lib_gcc__alloca=no
19403 rm -f core conftest.err conftest.$ac_objext \
19404 conftest$ac_exeext conftest.$ac_ext
19405 LIBS=$ac_check_lib_save_LIBS
19407 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19408 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19409 if test $ac_cv_lib_gcc__alloca = yes; then
19411 cat >>confdefs.h <<\_ACEOF
19412 #define HAVE__ALLOCA 1
19417 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19418 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19419 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19420 echo $ECHO_N "(cached) $ECHO_C" >&6
19422 ac_check_lib_save_LIBS=$LIBS
19424 cat >conftest.$ac_ext <<_ACEOF
19427 cat confdefs.h >>conftest.$ac_ext
19428 cat >>conftest.$ac_ext <<_ACEOF
19429 /* end confdefs.h. */
19431 /* Override any GCC internal prototype to avoid an error.
19432 Use char because int might match the return type of a GCC
19433 builtin and then its argument prototype would still apply. */
19441 return __alloca ();
19446 rm -f conftest.$ac_objext conftest$ac_exeext
19447 if { (ac_try="$ac_link"
19448 case "(($ac_try" in
19449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19450 *) ac_try_echo=$ac_try;;
19452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19453 (eval "$ac_link") 2>conftest.er1
19455 grep -v '^ *+' conftest.er1 >conftest.err
19457 cat conftest.err >&5
19458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459 (exit $ac_status); } &&
19460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19461 { (case "(($ac_try" in
19462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19463 *) ac_try_echo=$ac_try;;
19465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19466 (eval "$ac_try") 2>&5
19468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469 (exit $ac_status); }; } &&
19470 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
19480 ac_cv_lib_gcc___alloca=yes
19482 echo "$as_me: failed program was:" >&5
19483 sed 's/^/| /' conftest.$ac_ext >&5
19485 ac_cv_lib_gcc___alloca=no
19488 rm -f core conftest.err conftest.$ac_objext \
19489 conftest$ac_exeext conftest.$ac_ext
19490 LIBS=$ac_check_lib_save_LIBS
19492 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19493 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19494 if test $ac_cv_lib_gcc___alloca = yes; then
19496 cat >>confdefs.h <<\_ACEOF
19497 #define HAVE___ALLOCA 1
19502 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19503 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19504 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19505 echo $ECHO_N "(cached) $ECHO_C" >&6
19507 ac_check_lib_save_LIBS=$LIBS
19509 cat >conftest.$ac_ext <<_ACEOF
19512 cat confdefs.h >>conftest.$ac_ext
19513 cat >>conftest.$ac_ext <<_ACEOF
19514 /* end confdefs.h. */
19516 /* Override any GCC internal prototype to avoid an error.
19517 Use char because int might match the return type of a GCC
19518 builtin and then its argument prototype would still apply. */
19526 return __chkstk ();
19531 rm -f conftest.$ac_objext conftest$ac_exeext
19532 if { (ac_try="$ac_link"
19533 case "(($ac_try" in
19534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19535 *) ac_try_echo=$ac_try;;
19537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19538 (eval "$ac_link") 2>conftest.er1
19540 grep -v '^ *+' conftest.er1 >conftest.err
19542 cat conftest.err >&5
19543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544 (exit $ac_status); } &&
19545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19546 { (case "(($ac_try" in
19547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19548 *) ac_try_echo=$ac_try;;
19550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19551 (eval "$ac_try") 2>&5
19553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554 (exit $ac_status); }; } &&
19555 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
19565 ac_cv_lib_gcc___chkstk=yes
19567 echo "$as_me: failed program was:" >&5
19568 sed 's/^/| /' conftest.$ac_ext >&5
19570 ac_cv_lib_gcc___chkstk=no
19573 rm -f core conftest.err conftest.$ac_objext \
19574 conftest$ac_exeext conftest.$ac_ext
19575 LIBS=$ac_check_lib_save_LIBS
19577 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19578 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19579 if test $ac_cv_lib_gcc___chkstk = yes; then
19581 cat >>confdefs.h <<\_ACEOF
19582 #define HAVE___CHKSTK 1
19587 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19588 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19589 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19590 echo $ECHO_N "(cached) $ECHO_C" >&6
19592 ac_check_lib_save_LIBS=$LIBS
19594 cat >conftest.$ac_ext <<_ACEOF
19597 cat confdefs.h >>conftest.$ac_ext
19598 cat >>conftest.$ac_ext <<_ACEOF
19599 /* end confdefs.h. */
19601 /* Override any GCC internal prototype to avoid an error.
19602 Use char because int might match the return type of a GCC
19603 builtin and then its argument prototype would still apply. */
19611 return ___chkstk ();
19616 rm -f conftest.$ac_objext conftest$ac_exeext
19617 if { (ac_try="$ac_link"
19618 case "(($ac_try" in
19619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19620 *) ac_try_echo=$ac_try;;
19622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19623 (eval "$ac_link") 2>conftest.er1
19625 grep -v '^ *+' conftest.er1 >conftest.err
19627 cat conftest.err >&5
19628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629 (exit $ac_status); } &&
19630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19631 { (case "(($ac_try" in
19632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19633 *) ac_try_echo=$ac_try;;
19635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19636 (eval "$ac_try") 2>&5
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); }; } &&
19640 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
19650 ac_cv_lib_gcc____chkstk=yes
19652 echo "$as_me: failed program was:" >&5
19653 sed 's/^/| /' conftest.$ac_ext >&5
19655 ac_cv_lib_gcc____chkstk=no
19658 rm -f core conftest.err conftest.$ac_objext \
19659 conftest$ac_exeext conftest.$ac_ext
19660 LIBS=$ac_check_lib_save_LIBS
19662 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19663 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19664 if test $ac_cv_lib_gcc____chkstk = yes; then
19666 cat >>confdefs.h <<\_ACEOF
19667 #define HAVE____CHKSTK 1
19673 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19674 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19675 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19676 echo $ECHO_N "(cached) $ECHO_C" >&6
19678 ac_check_lib_save_LIBS=$LIBS
19680 cat >conftest.$ac_ext <<_ACEOF
19683 cat confdefs.h >>conftest.$ac_ext
19684 cat >>conftest.$ac_ext <<_ACEOF
19685 /* end confdefs.h. */
19687 /* Override any GCC internal prototype to avoid an error.
19688 Use char because int might match the return type of a GCC
19689 builtin and then its argument prototype would still apply. */
19697 return __ashldi3 ();
19702 rm -f conftest.$ac_objext conftest$ac_exeext
19703 if { (ac_try="$ac_link"
19704 case "(($ac_try" in
19705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19706 *) ac_try_echo=$ac_try;;
19708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19709 (eval "$ac_link") 2>conftest.er1
19711 grep -v '^ *+' conftest.er1 >conftest.err
19713 cat conftest.err >&5
19714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715 (exit $ac_status); } &&
19716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19717 { (case "(($ac_try" in
19718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19719 *) ac_try_echo=$ac_try;;
19721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19722 (eval "$ac_try") 2>&5
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); }; } &&
19726 { ac_try='test -s conftest$ac_exeext'
19727 { (case "(($ac_try" in
19728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19729 *) ac_try_echo=$ac_try;;
19731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19732 (eval "$ac_try") 2>&5
19734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); }; }; then
19736 ac_cv_lib_gcc___ashldi3=yes
19738 echo "$as_me: failed program was:" >&5
19739 sed 's/^/| /' conftest.$ac_ext >&5
19741 ac_cv_lib_gcc___ashldi3=no
19744 rm -f core conftest.err conftest.$ac_objext \
19745 conftest$ac_exeext conftest.$ac_ext
19746 LIBS=$ac_check_lib_save_LIBS
19748 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19749 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19750 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19752 cat >>confdefs.h <<\_ACEOF
19753 #define HAVE___ASHLDI3 1
19758 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19759 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19760 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19761 echo $ECHO_N "(cached) $ECHO_C" >&6
19763 ac_check_lib_save_LIBS=$LIBS
19765 cat >conftest.$ac_ext <<_ACEOF
19768 cat confdefs.h >>conftest.$ac_ext
19769 cat >>conftest.$ac_ext <<_ACEOF
19770 /* end confdefs.h. */
19772 /* Override any GCC internal prototype to avoid an error.
19773 Use char because int might match the return type of a GCC
19774 builtin and then its argument prototype would still apply. */
19782 return __ashrdi3 ();
19787 rm -f conftest.$ac_objext conftest$ac_exeext
19788 if { (ac_try="$ac_link"
19789 case "(($ac_try" in
19790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19791 *) ac_try_echo=$ac_try;;
19793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19794 (eval "$ac_link") 2>conftest.er1
19796 grep -v '^ *+' conftest.er1 >conftest.err
19798 cat conftest.err >&5
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); } &&
19801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19802 { (case "(($ac_try" in
19803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19804 *) ac_try_echo=$ac_try;;
19806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19807 (eval "$ac_try") 2>&5
19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); }; } &&
19811 { ac_try='test -s conftest$ac_exeext'
19812 { (case "(($ac_try" in
19813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19814 *) ac_try_echo=$ac_try;;
19816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19817 (eval "$ac_try") 2>&5
19819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820 (exit $ac_status); }; }; then
19821 ac_cv_lib_gcc___ashrdi3=yes
19823 echo "$as_me: failed program was:" >&5
19824 sed 's/^/| /' conftest.$ac_ext >&5
19826 ac_cv_lib_gcc___ashrdi3=no
19829 rm -f core conftest.err conftest.$ac_objext \
19830 conftest$ac_exeext conftest.$ac_ext
19831 LIBS=$ac_check_lib_save_LIBS
19833 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19834 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19835 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19837 cat >>confdefs.h <<\_ACEOF
19838 #define HAVE___ASHRDI3 1
19843 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19844 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19845 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19846 echo $ECHO_N "(cached) $ECHO_C" >&6
19848 ac_check_lib_save_LIBS=$LIBS
19850 cat >conftest.$ac_ext <<_ACEOF
19853 cat confdefs.h >>conftest.$ac_ext
19854 cat >>conftest.$ac_ext <<_ACEOF
19855 /* end confdefs.h. */
19857 /* Override any GCC internal prototype to avoid an error.
19858 Use char because int might match the return type of a GCC
19859 builtin and then its argument prototype would still apply. */
19867 return __divdi3 ();
19872 rm -f conftest.$ac_objext conftest$ac_exeext
19873 if { (ac_try="$ac_link"
19874 case "(($ac_try" in
19875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19876 *) ac_try_echo=$ac_try;;
19878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19879 (eval "$ac_link") 2>conftest.er1
19881 grep -v '^ *+' conftest.er1 >conftest.err
19883 cat conftest.err >&5
19884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885 (exit $ac_status); } &&
19886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19887 { (case "(($ac_try" in
19888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19889 *) ac_try_echo=$ac_try;;
19891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19892 (eval "$ac_try") 2>&5
19894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895 (exit $ac_status); }; } &&
19896 { ac_try='test -s conftest$ac_exeext'
19897 { (case "(($ac_try" in
19898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19899 *) ac_try_echo=$ac_try;;
19901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19902 (eval "$ac_try") 2>&5
19904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905 (exit $ac_status); }; }; then
19906 ac_cv_lib_gcc___divdi3=yes
19908 echo "$as_me: failed program was:" >&5
19909 sed 's/^/| /' conftest.$ac_ext >&5
19911 ac_cv_lib_gcc___divdi3=no
19914 rm -f core conftest.err conftest.$ac_objext \
19915 conftest$ac_exeext conftest.$ac_ext
19916 LIBS=$ac_check_lib_save_LIBS
19918 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19919 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19920 if test $ac_cv_lib_gcc___divdi3 = yes; then
19922 cat >>confdefs.h <<\_ACEOF
19923 #define HAVE___DIVDI3 1
19928 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19929 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19930 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19931 echo $ECHO_N "(cached) $ECHO_C" >&6
19933 ac_check_lib_save_LIBS=$LIBS
19935 cat >conftest.$ac_ext <<_ACEOF
19938 cat confdefs.h >>conftest.$ac_ext
19939 cat >>conftest.$ac_ext <<_ACEOF
19940 /* end confdefs.h. */
19942 /* Override any GCC internal prototype to avoid an error.
19943 Use char because int might match the return type of a GCC
19944 builtin and then its argument prototype would still apply. */
19952 return __fixdfdi ();
19957 rm -f conftest.$ac_objext conftest$ac_exeext
19958 if { (ac_try="$ac_link"
19959 case "(($ac_try" in
19960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19961 *) ac_try_echo=$ac_try;;
19963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19964 (eval "$ac_link") 2>conftest.er1
19966 grep -v '^ *+' conftest.er1 >conftest.err
19968 cat conftest.err >&5
19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970 (exit $ac_status); } &&
19971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19972 { (case "(($ac_try" in
19973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19974 *) ac_try_echo=$ac_try;;
19976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19977 (eval "$ac_try") 2>&5
19979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980 (exit $ac_status); }; } &&
19981 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
19991 ac_cv_lib_gcc___fixdfdi=yes
19993 echo "$as_me: failed program was:" >&5
19994 sed 's/^/| /' conftest.$ac_ext >&5
19996 ac_cv_lib_gcc___fixdfdi=no
19999 rm -f core conftest.err conftest.$ac_objext \
20000 conftest$ac_exeext conftest.$ac_ext
20001 LIBS=$ac_check_lib_save_LIBS
20003 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
20004 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
20005 if test $ac_cv_lib_gcc___fixdfdi = yes; then
20007 cat >>confdefs.h <<\_ACEOF
20008 #define HAVE___FIXDFDI 1
20013 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
20014 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
20015 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
20016 echo $ECHO_N "(cached) $ECHO_C" >&6
20018 ac_check_lib_save_LIBS=$LIBS
20020 cat >conftest.$ac_ext <<_ACEOF
20023 cat confdefs.h >>conftest.$ac_ext
20024 cat >>conftest.$ac_ext <<_ACEOF
20025 /* end confdefs.h. */
20027 /* Override any GCC internal prototype to avoid an error.
20028 Use char because int might match the return type of a GCC
20029 builtin and then its argument prototype would still apply. */
20037 return __fixsfdi ();
20042 rm -f conftest.$ac_objext conftest$ac_exeext
20043 if { (ac_try="$ac_link"
20044 case "(($ac_try" in
20045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20046 *) ac_try_echo=$ac_try;;
20048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20049 (eval "$ac_link") 2>conftest.er1
20051 grep -v '^ *+' conftest.er1 >conftest.err
20053 cat conftest.err >&5
20054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20055 (exit $ac_status); } &&
20056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20057 { (case "(($ac_try" in
20058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20059 *) ac_try_echo=$ac_try;;
20061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20062 (eval "$ac_try") 2>&5
20064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065 (exit $ac_status); }; } &&
20066 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
20076 ac_cv_lib_gcc___fixsfdi=yes
20078 echo "$as_me: failed program was:" >&5
20079 sed 's/^/| /' conftest.$ac_ext >&5
20081 ac_cv_lib_gcc___fixsfdi=no
20084 rm -f core conftest.err conftest.$ac_objext \
20085 conftest$ac_exeext conftest.$ac_ext
20086 LIBS=$ac_check_lib_save_LIBS
20088 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
20089 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
20090 if test $ac_cv_lib_gcc___fixsfdi = yes; then
20092 cat >>confdefs.h <<\_ACEOF
20093 #define HAVE___FIXSFDI 1
20098 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
20099 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
20100 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
20101 echo $ECHO_N "(cached) $ECHO_C" >&6
20103 ac_check_lib_save_LIBS=$LIBS
20105 cat >conftest.$ac_ext <<_ACEOF
20108 cat confdefs.h >>conftest.$ac_ext
20109 cat >>conftest.$ac_ext <<_ACEOF
20110 /* end confdefs.h. */
20112 /* Override any GCC internal prototype to avoid an error.
20113 Use char because int might match the return type of a GCC
20114 builtin and then its argument prototype would still apply. */
20118 char __floatdidf ();
20122 return __floatdidf ();
20127 rm -f conftest.$ac_objext conftest$ac_exeext
20128 if { (ac_try="$ac_link"
20129 case "(($ac_try" in
20130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20131 *) ac_try_echo=$ac_try;;
20133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20134 (eval "$ac_link") 2>conftest.er1
20136 grep -v '^ *+' conftest.er1 >conftest.err
20138 cat conftest.err >&5
20139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140 (exit $ac_status); } &&
20141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20142 { (case "(($ac_try" in
20143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20144 *) ac_try_echo=$ac_try;;
20146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20147 (eval "$ac_try") 2>&5
20149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150 (exit $ac_status); }; } &&
20151 { ac_try='test -s conftest$ac_exeext'
20152 { (case "(($ac_try" in
20153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20154 *) ac_try_echo=$ac_try;;
20156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20157 (eval "$ac_try") 2>&5
20159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160 (exit $ac_status); }; }; then
20161 ac_cv_lib_gcc___floatdidf=yes
20163 echo "$as_me: failed program was:" >&5
20164 sed 's/^/| /' conftest.$ac_ext >&5
20166 ac_cv_lib_gcc___floatdidf=no
20169 rm -f core conftest.err conftest.$ac_objext \
20170 conftest$ac_exeext conftest.$ac_ext
20171 LIBS=$ac_check_lib_save_LIBS
20173 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
20174 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
20175 if test $ac_cv_lib_gcc___floatdidf = yes; then
20177 cat >>confdefs.h <<\_ACEOF
20178 #define HAVE___FLOATDIDF 1
20183 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
20184 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
20185 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
20186 echo $ECHO_N "(cached) $ECHO_C" >&6
20188 ac_check_lib_save_LIBS=$LIBS
20190 cat >conftest.$ac_ext <<_ACEOF
20193 cat confdefs.h >>conftest.$ac_ext
20194 cat >>conftest.$ac_ext <<_ACEOF
20195 /* end confdefs.h. */
20197 /* Override any GCC internal prototype to avoid an error.
20198 Use char because int might match the return type of a GCC
20199 builtin and then its argument prototype would still apply. */
20207 return __lshrdi3 ();
20212 rm -f conftest.$ac_objext conftest$ac_exeext
20213 if { (ac_try="$ac_link"
20214 case "(($ac_try" in
20215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20216 *) ac_try_echo=$ac_try;;
20218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20219 (eval "$ac_link") 2>conftest.er1
20221 grep -v '^ *+' conftest.er1 >conftest.err
20223 cat conftest.err >&5
20224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225 (exit $ac_status); } &&
20226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20227 { (case "(($ac_try" in
20228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20229 *) ac_try_echo=$ac_try;;
20231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20232 (eval "$ac_try") 2>&5
20234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235 (exit $ac_status); }; } &&
20236 { ac_try='test -s conftest$ac_exeext'
20237 { (case "(($ac_try" in
20238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20239 *) ac_try_echo=$ac_try;;
20241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20242 (eval "$ac_try") 2>&5
20244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245 (exit $ac_status); }; }; then
20246 ac_cv_lib_gcc___lshrdi3=yes
20248 echo "$as_me: failed program was:" >&5
20249 sed 's/^/| /' conftest.$ac_ext >&5
20251 ac_cv_lib_gcc___lshrdi3=no
20254 rm -f core conftest.err conftest.$ac_objext \
20255 conftest$ac_exeext conftest.$ac_ext
20256 LIBS=$ac_check_lib_save_LIBS
20258 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20259 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20260 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20262 cat >>confdefs.h <<\_ACEOF
20263 #define HAVE___LSHRDI3 1
20268 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20269 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20270 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20271 echo $ECHO_N "(cached) $ECHO_C" >&6
20273 ac_check_lib_save_LIBS=$LIBS
20275 cat >conftest.$ac_ext <<_ACEOF
20278 cat confdefs.h >>conftest.$ac_ext
20279 cat >>conftest.$ac_ext <<_ACEOF
20280 /* end confdefs.h. */
20282 /* Override any GCC internal prototype to avoid an error.
20283 Use char because int might match the return type of a GCC
20284 builtin and then its argument prototype would still apply. */
20292 return __moddi3 ();
20297 rm -f conftest.$ac_objext conftest$ac_exeext
20298 if { (ac_try="$ac_link"
20299 case "(($ac_try" in
20300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20301 *) ac_try_echo=$ac_try;;
20303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20304 (eval "$ac_link") 2>conftest.er1
20306 grep -v '^ *+' conftest.er1 >conftest.err
20308 cat conftest.err >&5
20309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310 (exit $ac_status); } &&
20311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20312 { (case "(($ac_try" in
20313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20314 *) ac_try_echo=$ac_try;;
20316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20317 (eval "$ac_try") 2>&5
20319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320 (exit $ac_status); }; } &&
20321 { ac_try='test -s conftest$ac_exeext'
20322 { (case "(($ac_try" in
20323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20324 *) ac_try_echo=$ac_try;;
20326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20327 (eval "$ac_try") 2>&5
20329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330 (exit $ac_status); }; }; then
20331 ac_cv_lib_gcc___moddi3=yes
20333 echo "$as_me: failed program was:" >&5
20334 sed 's/^/| /' conftest.$ac_ext >&5
20336 ac_cv_lib_gcc___moddi3=no
20339 rm -f core conftest.err conftest.$ac_objext \
20340 conftest$ac_exeext conftest.$ac_ext
20341 LIBS=$ac_check_lib_save_LIBS
20343 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20344 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20345 if test $ac_cv_lib_gcc___moddi3 = yes; then
20347 cat >>confdefs.h <<\_ACEOF
20348 #define HAVE___MODDI3 1
20353 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20354 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20355 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20356 echo $ECHO_N "(cached) $ECHO_C" >&6
20358 ac_check_lib_save_LIBS=$LIBS
20360 cat >conftest.$ac_ext <<_ACEOF
20363 cat confdefs.h >>conftest.$ac_ext
20364 cat >>conftest.$ac_ext <<_ACEOF
20365 /* end confdefs.h. */
20367 /* Override any GCC internal prototype to avoid an error.
20368 Use char because int might match the return type of a GCC
20369 builtin and then its argument prototype would still apply. */
20377 return __udivdi3 ();
20382 rm -f conftest.$ac_objext conftest$ac_exeext
20383 if { (ac_try="$ac_link"
20384 case "(($ac_try" in
20385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20386 *) ac_try_echo=$ac_try;;
20388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20389 (eval "$ac_link") 2>conftest.er1
20391 grep -v '^ *+' conftest.er1 >conftest.err
20393 cat conftest.err >&5
20394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20395 (exit $ac_status); } &&
20396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20397 { (case "(($ac_try" in
20398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20399 *) ac_try_echo=$ac_try;;
20401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20402 (eval "$ac_try") 2>&5
20404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405 (exit $ac_status); }; } &&
20406 { ac_try='test -s conftest$ac_exeext'
20407 { (case "(($ac_try" in
20408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20409 *) ac_try_echo=$ac_try;;
20411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20412 (eval "$ac_try") 2>&5
20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); }; }; then
20416 ac_cv_lib_gcc___udivdi3=yes
20418 echo "$as_me: failed program was:" >&5
20419 sed 's/^/| /' conftest.$ac_ext >&5
20421 ac_cv_lib_gcc___udivdi3=no
20424 rm -f core conftest.err conftest.$ac_objext \
20425 conftest$ac_exeext conftest.$ac_ext
20426 LIBS=$ac_check_lib_save_LIBS
20428 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20429 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20430 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20432 cat >>confdefs.h <<\_ACEOF
20433 #define HAVE___UDIVDI3 1
20438 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20439 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20440 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20441 echo $ECHO_N "(cached) $ECHO_C" >&6
20443 ac_check_lib_save_LIBS=$LIBS
20445 cat >conftest.$ac_ext <<_ACEOF
20448 cat confdefs.h >>conftest.$ac_ext
20449 cat >>conftest.$ac_ext <<_ACEOF
20450 /* end confdefs.h. */
20452 /* Override any GCC internal prototype to avoid an error.
20453 Use char because int might match the return type of a GCC
20454 builtin and then its argument prototype would still apply. */
20462 return __umoddi3 ();
20467 rm -f conftest.$ac_objext conftest$ac_exeext
20468 if { (ac_try="$ac_link"
20469 case "(($ac_try" in
20470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20471 *) ac_try_echo=$ac_try;;
20473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20474 (eval "$ac_link") 2>conftest.er1
20476 grep -v '^ *+' conftest.er1 >conftest.err
20478 cat conftest.err >&5
20479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480 (exit $ac_status); } &&
20481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20482 { (case "(($ac_try" in
20483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20484 *) ac_try_echo=$ac_try;;
20486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20487 (eval "$ac_try") 2>&5
20489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490 (exit $ac_status); }; } &&
20491 { ac_try='test -s conftest$ac_exeext'
20492 { (case "(($ac_try" in
20493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20494 *) ac_try_echo=$ac_try;;
20496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20497 (eval "$ac_try") 2>&5
20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); }; }; then
20501 ac_cv_lib_gcc___umoddi3=yes
20503 echo "$as_me: failed program was:" >&5
20504 sed 's/^/| /' conftest.$ac_ext >&5
20506 ac_cv_lib_gcc___umoddi3=no
20509 rm -f core conftest.err conftest.$ac_objext \
20510 conftest$ac_exeext conftest.$ac_ext
20511 LIBS=$ac_check_lib_save_LIBS
20513 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20514 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20515 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20517 cat >>confdefs.h <<\_ACEOF
20518 #define HAVE___UMODDI3 1
20524 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20525 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20526 if test "${ac_cv_lib_gcc___main+set}" = set; then
20527 echo $ECHO_N "(cached) $ECHO_C" >&6
20529 ac_check_lib_save_LIBS=$LIBS
20531 cat >conftest.$ac_ext <<_ACEOF
20534 cat confdefs.h >>conftest.$ac_ext
20535 cat >>conftest.$ac_ext <<_ACEOF
20536 /* end confdefs.h. */
20538 /* Override any GCC internal prototype to avoid an error.
20539 Use char because int might match the return type of a GCC
20540 builtin and then its argument prototype would still apply. */
20553 rm -f conftest.$ac_objext conftest$ac_exeext
20554 if { (ac_try="$ac_link"
20555 case "(($ac_try" in
20556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20557 *) ac_try_echo=$ac_try;;
20559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20560 (eval "$ac_link") 2>conftest.er1
20562 grep -v '^ *+' conftest.er1 >conftest.err
20564 cat conftest.err >&5
20565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566 (exit $ac_status); } &&
20567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20568 { (case "(($ac_try" in
20569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20570 *) ac_try_echo=$ac_try;;
20572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20573 (eval "$ac_try") 2>&5
20575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576 (exit $ac_status); }; } &&
20577 { ac_try='test -s conftest$ac_exeext'
20578 { (case "(($ac_try" in
20579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20580 *) ac_try_echo=$ac_try;;
20582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20583 (eval "$ac_try") 2>&5
20585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20586 (exit $ac_status); }; }; then
20587 ac_cv_lib_gcc___main=yes
20589 echo "$as_me: failed program was:" >&5
20590 sed 's/^/| /' conftest.$ac_ext >&5
20592 ac_cv_lib_gcc___main=no
20595 rm -f core conftest.err conftest.$ac_objext \
20596 conftest$ac_exeext conftest.$ac_ext
20597 LIBS=$ac_check_lib_save_LIBS
20599 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20600 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20601 if test $ac_cv_lib_gcc___main = yes; then
20603 cat >>confdefs.h <<\_ACEOF
20604 #define HAVE___MAIN 1
20609 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20610 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20611 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20612 echo $ECHO_N "(cached) $ECHO_C" >&6
20614 ac_check_lib_save_LIBS=$LIBS
20616 cat >conftest.$ac_ext <<_ACEOF
20619 cat confdefs.h >>conftest.$ac_ext
20620 cat >>conftest.$ac_ext <<_ACEOF
20621 /* end confdefs.h. */
20623 /* Override any GCC internal prototype to avoid an error.
20624 Use char because int might match the return type of a GCC
20625 builtin and then its argument prototype would still apply. */
20633 return __cmpdi2 ();
20638 rm -f conftest.$ac_objext conftest$ac_exeext
20639 if { (ac_try="$ac_link"
20640 case "(($ac_try" in
20641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20642 *) ac_try_echo=$ac_try;;
20644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20645 (eval "$ac_link") 2>conftest.er1
20647 grep -v '^ *+' conftest.er1 >conftest.err
20649 cat conftest.err >&5
20650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651 (exit $ac_status); } &&
20652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20653 { (case "(($ac_try" in
20654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20655 *) ac_try_echo=$ac_try;;
20657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20658 (eval "$ac_try") 2>&5
20660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661 (exit $ac_status); }; } &&
20662 { ac_try='test -s conftest$ac_exeext'
20663 { (case "(($ac_try" in
20664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20665 *) ac_try_echo=$ac_try;;
20667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20668 (eval "$ac_try") 2>&5
20670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671 (exit $ac_status); }; }; then
20672 ac_cv_lib_gcc___cmpdi2=yes
20674 echo "$as_me: failed program was:" >&5
20675 sed 's/^/| /' conftest.$ac_ext >&5
20677 ac_cv_lib_gcc___cmpdi2=no
20680 rm -f core conftest.err conftest.$ac_objext \
20681 conftest$ac_exeext conftest.$ac_ext
20682 LIBS=$ac_check_lib_save_LIBS
20684 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20685 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20686 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20688 cat >>confdefs.h <<\_ACEOF
20689 #define HAVE___CMPDI2 1
20696 if test "$llvm_cv_os_type" = "MingW" ; then
20697 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20698 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20699 cat >conftest.$ac_ext <<_ACEOF
20703 cat confdefs.h >>conftest.$ac_ext
20704 cat >>conftest.$ac_ext <<_ACEOF
20705 /* end confdefs.h. */
20707 #include <windows.h>
20708 #include <imagehlp.h>
20709 extern void foo(PENUMLOADED_MODULES_CALLBACK);
20710 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20714 rm -f conftest.$ac_objext
20715 if { (ac_try="$ac_compile"
20716 case "(($ac_try" in
20717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20718 *) ac_try_echo=$ac_try;;
20720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20721 (eval "$ac_compile") 2>conftest.er1
20723 grep -v '^ *+' conftest.er1 >conftest.err
20725 cat conftest.err >&5
20726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727 (exit $ac_status); } &&
20728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20729 { (case "(($ac_try" in
20730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20731 *) ac_try_echo=$ac_try;;
20733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20734 (eval "$ac_try") 2>&5
20736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20737 (exit $ac_status); }; } &&
20738 { ac_try='test -s conftest.$ac_objext'
20739 { (case "(($ac_try" in
20740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20741 *) ac_try_echo=$ac_try;;
20743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20744 (eval "$ac_try") 2>&5
20746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747 (exit $ac_status); }; }; then
20749 { echo "$as_me:$LINENO: result: yes" >&5
20750 echo "${ECHO_T}yes" >&6; }
20751 llvm_cv_win32_elmcb_pcstr="PCSTR"
20754 echo "$as_me: failed program was:" >&5
20755 sed 's/^/| /' conftest.$ac_ext >&5
20758 { echo "$as_me:$LINENO: result: no" >&5
20759 echo "${ECHO_T}no" >&6; }
20760 llvm_cv_win32_elmcb_pcstr="PSTR"
20764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20766 cat >>confdefs.h <<_ACEOF
20767 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20774 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20775 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20776 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20777 echo $ECHO_N "(cached) $ECHO_C" >&6
20781 ac_cpp='$CXXCPP $CPPFLAGS'
20782 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20783 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20784 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20786 cat >conftest.$ac_ext <<_ACEOF
20789 cat confdefs.h >>conftest.$ac_ext
20790 cat >>conftest.$ac_ext <<_ACEOF
20791 /* end confdefs.h. */
20801 rm -f conftest.$ac_objext
20802 if { (ac_try="$ac_compile"
20803 case "(($ac_try" in
20804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20805 *) ac_try_echo=$ac_try;;
20807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20808 (eval "$ac_compile") 2>conftest.er1
20810 grep -v '^ *+' conftest.er1 >conftest.err
20812 cat conftest.err >&5
20813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20814 (exit $ac_status); } &&
20815 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20816 { (case "(($ac_try" in
20817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20818 *) ac_try_echo=$ac_try;;
20820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20821 (eval "$ac_try") 2>&5
20823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824 (exit $ac_status); }; } &&
20825 { ac_try='test -s conftest.$ac_objext'
20826 { (case "(($ac_try" in
20827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20828 *) ac_try_echo=$ac_try;;
20830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20831 (eval "$ac_try") 2>&5
20833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20834 (exit $ac_status); }; }; then
20835 ac_cv_func_isnan_in_math_h=yes
20837 echo "$as_me: failed program was:" >&5
20838 sed 's/^/| /' conftest.$ac_ext >&5
20840 ac_cv_func_isnan_in_math_h=no
20843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20845 ac_cpp='$CPP $CPPFLAGS'
20846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20852 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20853 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20856 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20858 cat >>confdefs.h <<\_ACEOF
20859 #define HAVE_ISNAN_IN_MATH_H 1
20865 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20866 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20867 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20868 echo $ECHO_N "(cached) $ECHO_C" >&6
20872 ac_cpp='$CXXCPP $CPPFLAGS'
20873 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20874 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20875 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20877 cat >conftest.$ac_ext <<_ACEOF
20880 cat confdefs.h >>conftest.$ac_ext
20881 cat >>conftest.$ac_ext <<_ACEOF
20882 /* end confdefs.h. */
20892 rm -f conftest.$ac_objext
20893 if { (ac_try="$ac_compile"
20894 case "(($ac_try" in
20895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20896 *) ac_try_echo=$ac_try;;
20898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20899 (eval "$ac_compile") 2>conftest.er1
20901 grep -v '^ *+' conftest.er1 >conftest.err
20903 cat conftest.err >&5
20904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905 (exit $ac_status); } &&
20906 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20907 { (case "(($ac_try" in
20908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20909 *) ac_try_echo=$ac_try;;
20911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20912 (eval "$ac_try") 2>&5
20914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20915 (exit $ac_status); }; } &&
20916 { ac_try='test -s conftest.$ac_objext'
20917 { (case "(($ac_try" in
20918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20919 *) ac_try_echo=$ac_try;;
20921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20922 (eval "$ac_try") 2>&5
20924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20925 (exit $ac_status); }; }; then
20926 ac_cv_func_isnan_in_cmath=yes
20928 echo "$as_me: failed program was:" >&5
20929 sed 's/^/| /' conftest.$ac_ext >&5
20931 ac_cv_func_isnan_in_cmath=no
20934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20936 ac_cpp='$CPP $CPPFLAGS'
20937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20943 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20944 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20946 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20948 cat >>confdefs.h <<\_ACEOF
20949 #define HAVE_ISNAN_IN_CMATH 1
20955 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20956 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20957 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20958 echo $ECHO_N "(cached) $ECHO_C" >&6
20962 ac_cpp='$CXXCPP $CPPFLAGS'
20963 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20964 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20965 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20967 cat >conftest.$ac_ext <<_ACEOF
20970 cat confdefs.h >>conftest.$ac_ext
20971 cat >>conftest.$ac_ext <<_ACEOF
20972 /* end confdefs.h. */
20977 float f; std::isnan(f);
20982 rm -f conftest.$ac_objext
20983 if { (ac_try="$ac_compile"
20984 case "(($ac_try" in
20985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20986 *) ac_try_echo=$ac_try;;
20988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20989 (eval "$ac_compile") 2>conftest.er1
20991 grep -v '^ *+' conftest.er1 >conftest.err
20993 cat conftest.err >&5
20994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995 (exit $ac_status); } &&
20996 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20997 { (case "(($ac_try" in
20998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20999 *) ac_try_echo=$ac_try;;
21001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21002 (eval "$ac_try") 2>&5
21004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21005 (exit $ac_status); }; } &&
21006 { ac_try='test -s conftest.$ac_objext'
21007 { (case "(($ac_try" in
21008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21009 *) ac_try_echo=$ac_try;;
21011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21012 (eval "$ac_try") 2>&5
21014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21015 (exit $ac_status); }; }; then
21016 ac_cv_func_std_isnan_in_cmath=yes
21018 echo "$as_me: failed program was:" >&5
21019 sed 's/^/| /' conftest.$ac_ext >&5
21021 ac_cv_func_std_isnan_in_cmath=no
21024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21026 ac_cpp='$CPP $CPPFLAGS'
21027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21033 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21034 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
21036 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
21038 cat >>confdefs.h <<\_ACEOF
21039 #define HAVE_STD_ISNAN_IN_CMATH 1
21047 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21048 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
21049 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21050 echo $ECHO_N "(cached) $ECHO_C" >&6
21054 ac_cpp='$CXXCPP $CPPFLAGS'
21055 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21056 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21057 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21059 cat >conftest.$ac_ext <<_ACEOF
21062 cat confdefs.h >>conftest.$ac_ext
21063 cat >>conftest.$ac_ext <<_ACEOF
21064 /* end confdefs.h. */
21074 rm -f conftest.$ac_objext
21075 if { (ac_try="$ac_compile"
21076 case "(($ac_try" in
21077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21078 *) ac_try_echo=$ac_try;;
21080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21081 (eval "$ac_compile") 2>conftest.er1
21083 grep -v '^ *+' conftest.er1 >conftest.err
21085 cat conftest.err >&5
21086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21087 (exit $ac_status); } &&
21088 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21089 { (case "(($ac_try" in
21090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21091 *) ac_try_echo=$ac_try;;
21093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21094 (eval "$ac_try") 2>&5
21096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097 (exit $ac_status); }; } &&
21098 { ac_try='test -s conftest.$ac_objext'
21099 { (case "(($ac_try" in
21100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21101 *) ac_try_echo=$ac_try;;
21103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21104 (eval "$ac_try") 2>&5
21106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107 (exit $ac_status); }; }; then
21108 ac_cv_func_isinf_in_math_h=yes
21110 echo "$as_me: failed program was:" >&5
21111 sed 's/^/| /' conftest.$ac_ext >&5
21113 ac_cv_func_isinf_in_math_h=no
21116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21118 ac_cpp='$CPP $CPPFLAGS'
21119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21125 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21126 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
21128 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
21130 cat >>confdefs.h <<\_ACEOF
21131 #define HAVE_ISINF_IN_MATH_H 1
21137 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21138 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
21139 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21140 echo $ECHO_N "(cached) $ECHO_C" >&6
21144 ac_cpp='$CXXCPP $CPPFLAGS'
21145 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21146 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21147 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21149 cat >conftest.$ac_ext <<_ACEOF
21152 cat confdefs.h >>conftest.$ac_ext
21153 cat >>conftest.$ac_ext <<_ACEOF
21154 /* end confdefs.h. */
21164 rm -f conftest.$ac_objext
21165 if { (ac_try="$ac_compile"
21166 case "(($ac_try" in
21167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21168 *) ac_try_echo=$ac_try;;
21170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21171 (eval "$ac_compile") 2>conftest.er1
21173 grep -v '^ *+' conftest.er1 >conftest.err
21175 cat conftest.err >&5
21176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177 (exit $ac_status); } &&
21178 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21179 { (case "(($ac_try" in
21180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21181 *) ac_try_echo=$ac_try;;
21183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21184 (eval "$ac_try") 2>&5
21186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187 (exit $ac_status); }; } &&
21188 { ac_try='test -s conftest.$ac_objext'
21189 { (case "(($ac_try" in
21190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21191 *) ac_try_echo=$ac_try;;
21193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21194 (eval "$ac_try") 2>&5
21196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21197 (exit $ac_status); }; }; then
21198 ac_cv_func_isinf_in_cmath=yes
21200 echo "$as_me: failed program was:" >&5
21201 sed 's/^/| /' conftest.$ac_ext >&5
21203 ac_cv_func_isinf_in_cmath=no
21206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21208 ac_cpp='$CPP $CPPFLAGS'
21209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21215 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21216 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
21218 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
21220 cat >>confdefs.h <<\_ACEOF
21221 #define HAVE_ISINF_IN_CMATH 1
21227 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21228 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21229 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21230 echo $ECHO_N "(cached) $ECHO_C" >&6
21234 ac_cpp='$CXXCPP $CPPFLAGS'
21235 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21236 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21237 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21239 cat >conftest.$ac_ext <<_ACEOF
21242 cat confdefs.h >>conftest.$ac_ext
21243 cat >>conftest.$ac_ext <<_ACEOF
21244 /* end confdefs.h. */
21249 float f; std::isinf(f);
21254 rm -f conftest.$ac_objext
21255 if { (ac_try="$ac_compile"
21256 case "(($ac_try" in
21257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21258 *) ac_try_echo=$ac_try;;
21260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21261 (eval "$ac_compile") 2>conftest.er1
21263 grep -v '^ *+' conftest.er1 >conftest.err
21265 cat conftest.err >&5
21266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21267 (exit $ac_status); } &&
21268 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21269 { (case "(($ac_try" in
21270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21271 *) ac_try_echo=$ac_try;;
21273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21274 (eval "$ac_try") 2>&5
21276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21277 (exit $ac_status); }; } &&
21278 { ac_try='test -s conftest.$ac_objext'
21279 { (case "(($ac_try" in
21280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21281 *) ac_try_echo=$ac_try;;
21283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21284 (eval "$ac_try") 2>&5
21286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287 (exit $ac_status); }; }; then
21288 ac_cv_func_std_isinf_in_cmath=yes
21290 echo "$as_me: failed program was:" >&5
21291 sed 's/^/| /' conftest.$ac_ext >&5
21293 ac_cv_func_std_isinf_in_cmath=no
21296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21298 ac_cpp='$CPP $CPPFLAGS'
21299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21305 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21306 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21308 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21310 cat >>confdefs.h <<\_ACEOF
21311 #define HAVE_STD_ISINF_IN_CMATH 1
21317 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21318 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21319 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21320 echo $ECHO_N "(cached) $ECHO_C" >&6
21324 ac_cpp='$CXXCPP $CPPFLAGS'
21325 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21326 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21327 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21329 cat >conftest.$ac_ext <<_ACEOF
21332 cat confdefs.h >>conftest.$ac_ext
21333 cat >>conftest.$ac_ext <<_ACEOF
21334 /* end confdefs.h. */
21335 #include <ieeefp.h>
21339 float f; finite(f);
21344 rm -f conftest.$ac_objext
21345 if { (ac_try="$ac_compile"
21346 case "(($ac_try" in
21347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21348 *) ac_try_echo=$ac_try;;
21350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21351 (eval "$ac_compile") 2>conftest.er1
21353 grep -v '^ *+' conftest.er1 >conftest.err
21355 cat conftest.err >&5
21356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357 (exit $ac_status); } &&
21358 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21359 { (case "(($ac_try" in
21360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21361 *) ac_try_echo=$ac_try;;
21363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21364 (eval "$ac_try") 2>&5
21366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21367 (exit $ac_status); }; } &&
21368 { ac_try='test -s conftest.$ac_objext'
21369 { (case "(($ac_try" in
21370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21371 *) ac_try_echo=$ac_try;;
21373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21374 (eval "$ac_try") 2>&5
21376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377 (exit $ac_status); }; }; then
21378 ac_cv_func_finite_in_ieeefp_h=yes
21380 echo "$as_me: failed program was:" >&5
21381 sed 's/^/| /' conftest.$ac_ext >&5
21383 ac_cv_func_finite_in_ieeefp_h=no
21386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21388 ac_cpp='$CPP $CPPFLAGS'
21389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21395 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21396 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21398 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21400 cat >>confdefs.h <<\_ACEOF
21401 #define HAVE_FINITE_IN_IEEEFP_H 1
21408 if test "$llvm_cv_platform_type" = "Unix" ; then
21411 for ac_header in stdlib.h unistd.h
21413 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21415 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21418 echo $ECHO_N "(cached) $ECHO_C" >&6
21420 ac_res=`eval echo '${'$as_ac_Header'}'`
21421 { echo "$as_me:$LINENO: result: $ac_res" >&5
21422 echo "${ECHO_T}$ac_res" >&6; }
21424 # Is the header compilable?
21425 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21426 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21427 cat >conftest.$ac_ext <<_ACEOF
21430 cat confdefs.h >>conftest.$ac_ext
21431 cat >>conftest.$ac_ext <<_ACEOF
21432 /* end confdefs.h. */
21433 $ac_includes_default
21434 #include <$ac_header>
21436 rm -f conftest.$ac_objext
21437 if { (ac_try="$ac_compile"
21438 case "(($ac_try" in
21439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21440 *) ac_try_echo=$ac_try;;
21442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21443 (eval "$ac_compile") 2>conftest.er1
21445 grep -v '^ *+' conftest.er1 >conftest.err
21447 cat conftest.err >&5
21448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449 (exit $ac_status); } &&
21450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21451 { (case "(($ac_try" in
21452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21453 *) ac_try_echo=$ac_try;;
21455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21456 (eval "$ac_try") 2>&5
21458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459 (exit $ac_status); }; } &&
21460 { ac_try='test -s conftest.$ac_objext'
21461 { (case "(($ac_try" in
21462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21463 *) ac_try_echo=$ac_try;;
21465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21466 (eval "$ac_try") 2>&5
21468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21469 (exit $ac_status); }; }; then
21470 ac_header_compiler=yes
21472 echo "$as_me: failed program was:" >&5
21473 sed 's/^/| /' conftest.$ac_ext >&5
21475 ac_header_compiler=no
21478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21479 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21480 echo "${ECHO_T}$ac_header_compiler" >&6; }
21482 # Is the header present?
21483 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21484 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21485 cat >conftest.$ac_ext <<_ACEOF
21488 cat confdefs.h >>conftest.$ac_ext
21489 cat >>conftest.$ac_ext <<_ACEOF
21490 /* end confdefs.h. */
21491 #include <$ac_header>
21493 if { (ac_try="$ac_cpp conftest.$ac_ext"
21494 case "(($ac_try" in
21495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21496 *) ac_try_echo=$ac_try;;
21498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21499 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21501 grep -v '^ *+' conftest.er1 >conftest.err
21503 cat conftest.err >&5
21504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21505 (exit $ac_status); } >/dev/null; then
21506 if test -s conftest.err; then
21507 ac_cpp_err=$ac_c_preproc_warn_flag
21508 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21515 if test -z "$ac_cpp_err"; then
21516 ac_header_preproc=yes
21518 echo "$as_me: failed program was:" >&5
21519 sed 's/^/| /' conftest.$ac_ext >&5
21521 ac_header_preproc=no
21524 rm -f conftest.err conftest.$ac_ext
21525 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21526 echo "${ECHO_T}$ac_header_preproc" >&6; }
21528 # So? What about this header?
21529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21531 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21532 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21534 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21535 ac_header_preproc=yes
21538 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21539 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21540 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21541 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21542 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21543 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21544 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21545 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21547 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21548 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21549 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21551 ## ------------------------------------ ##
21552 ## Report this to http://llvm.org/bugs/ ##
21553 ## ------------------------------------ ##
21555 ) | sed "s/^/$as_me: WARNING: /" >&2
21558 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21561 echo $ECHO_N "(cached) $ECHO_C" >&6
21563 eval "$as_ac_Header=\$ac_header_preproc"
21565 ac_res=`eval echo '${'$as_ac_Header'}'`
21566 { echo "$as_me:$LINENO: result: $ac_res" >&5
21567 echo "${ECHO_T}$ac_res" >&6; }
21570 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21571 cat >>confdefs.h <<_ACEOF
21572 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21580 for ac_func in getpagesize
21582 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21583 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21584 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21585 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21586 echo $ECHO_N "(cached) $ECHO_C" >&6
21588 cat >conftest.$ac_ext <<_ACEOF
21591 cat confdefs.h >>conftest.$ac_ext
21592 cat >>conftest.$ac_ext <<_ACEOF
21593 /* end confdefs.h. */
21594 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21596 #define $ac_func innocuous_$ac_func
21598 /* System header to define __stub macros and hopefully few prototypes,
21599 which can conflict with char $ac_func (); below.
21600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21601 <limits.h> exists even on freestanding compilers. */
21604 # include <limits.h>
21606 # include <assert.h>
21611 /* Override any GCC internal prototype to avoid an error.
21612 Use char because int might match the return type of a GCC
21613 builtin and then its argument prototype would still apply. */
21618 /* The GNU C library defines this for functions which it implements
21619 to always fail with ENOSYS. Some functions are actually named
21620 something starting with __ and the normal name is an alias. */
21621 #if defined __stub_$ac_func || defined __stub___$ac_func
21628 return $ac_func ();
21633 rm -f conftest.$ac_objext conftest$ac_exeext
21634 if { (ac_try="$ac_link"
21635 case "(($ac_try" in
21636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21637 *) ac_try_echo=$ac_try;;
21639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21640 (eval "$ac_link") 2>conftest.er1
21642 grep -v '^ *+' conftest.er1 >conftest.err
21644 cat conftest.err >&5
21645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646 (exit $ac_status); } &&
21647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21648 { (case "(($ac_try" in
21649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21650 *) ac_try_echo=$ac_try;;
21652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21653 (eval "$ac_try") 2>&5
21655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656 (exit $ac_status); }; } &&
21657 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
21665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666 (exit $ac_status); }; }; then
21667 eval "$as_ac_var=yes"
21669 echo "$as_me: failed program was:" >&5
21670 sed 's/^/| /' conftest.$ac_ext >&5
21672 eval "$as_ac_var=no"
21675 rm -f core conftest.err conftest.$ac_objext \
21676 conftest$ac_exeext conftest.$ac_ext
21678 ac_res=`eval echo '${'$as_ac_var'}'`
21679 { echo "$as_me:$LINENO: result: $ac_res" >&5
21680 echo "${ECHO_T}$ac_res" >&6; }
21681 if test `eval echo '${'$as_ac_var'}'` = yes; then
21682 cat >>confdefs.h <<_ACEOF
21683 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21689 { echo "$as_me:$LINENO: checking for working mmap" >&5
21690 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21691 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21692 echo $ECHO_N "(cached) $ECHO_C" >&6
21694 if test "$cross_compiling" = yes; then
21695 ac_cv_func_mmap_fixed_mapped=no
21697 cat >conftest.$ac_ext <<_ACEOF
21700 cat confdefs.h >>conftest.$ac_ext
21701 cat >>conftest.$ac_ext <<_ACEOF
21702 /* end confdefs.h. */
21703 $ac_includes_default
21704 /* malloc might have been renamed as rpl_malloc. */
21707 /* Thanks to Mike Haertel and Jim Avera for this test.
21708 Here is a matrix of mmap possibilities:
21709 mmap private not fixed
21710 mmap private fixed at somewhere currently unmapped
21711 mmap private fixed at somewhere already mapped
21712 mmap shared not fixed
21713 mmap shared fixed at somewhere currently unmapped
21714 mmap shared fixed at somewhere already mapped
21715 For private mappings, we should verify that changes cannot be read()
21716 back from the file, nor mmap's back from the file at a different
21717 address. (There have been systems where private was not correctly
21718 implemented like the infamous i386 svr4.0, and systems where the
21719 VM page cache was not coherent with the file system buffer cache
21720 like early versions of FreeBSD and possibly contemporary NetBSD.)
21721 For shared mappings, we should conversely verify that changes get
21722 propagated back to all the places they're supposed to be.
21724 Grep wants private fixed already mapped.
21725 The main things grep needs to know about mmap are:
21726 * does it exist and is it safe to write into the mmap'd area
21727 * how to use it (BSD variants) */
21730 #include <sys/mman.h>
21732 #if !STDC_HEADERS && !HAVE_STDLIB_H
21736 /* This mess was copied from the GNU getpagesize.h. */
21737 #if !HAVE_GETPAGESIZE
21738 /* Assume that all systems that can run configure have sys/param.h. */
21739 # if !HAVE_SYS_PARAM_H
21740 # define HAVE_SYS_PARAM_H 1
21743 # ifdef _SC_PAGESIZE
21744 # define getpagesize() sysconf(_SC_PAGESIZE)
21745 # else /* no _SC_PAGESIZE */
21746 # if HAVE_SYS_PARAM_H
21747 # include <sys/param.h>
21748 # ifdef EXEC_PAGESIZE
21749 # define getpagesize() EXEC_PAGESIZE
21750 # else /* no EXEC_PAGESIZE */
21752 # define getpagesize() NBPG * CLSIZE
21755 # endif /* no CLSIZE */
21756 # else /* no NBPG */
21758 # define getpagesize() NBPC
21759 # else /* no NBPC */
21761 # define getpagesize() PAGESIZE
21762 # endif /* PAGESIZE */
21763 # endif /* no NBPC */
21764 # endif /* no NBPG */
21765 # endif /* no EXEC_PAGESIZE */
21766 # else /* no HAVE_SYS_PARAM_H */
21767 # define getpagesize() 8192 /* punt totally */
21768 # endif /* no HAVE_SYS_PARAM_H */
21769 # endif /* no _SC_PAGESIZE */
21771 #endif /* no HAVE_GETPAGESIZE */
21776 char *data, *data2, *data3;
21780 pagesize = getpagesize ();
21782 /* First, make a file with some known garbage in it. */
21783 data = (char *) malloc (pagesize);
21786 for (i = 0; i < pagesize; ++i)
21787 *(data + i) = rand ();
21789 fd = creat ("conftest.mmap", 0600);
21792 if (write (fd, data, pagesize) != pagesize)
21796 /* Next, try to mmap the file at a fixed address which already has
21797 something else allocated at it. If we can, also make sure that
21798 we see the same garbage. */
21799 fd = open ("conftest.mmap", O_RDWR);
21802 data2 = (char *) malloc (2 * pagesize);
21805 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21806 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21807 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21809 for (i = 0; i < pagesize; ++i)
21810 if (*(data + i) != *(data2 + i))
21813 /* Finally, make sure that changes to the mapped area do not
21814 percolate back to the file as seen by read(). (This is a bug on
21815 some variants of i386 svr4.0.) */
21816 for (i = 0; i < pagesize; ++i)
21817 *(data2 + i) = *(data2 + i) + 1;
21818 data3 = (char *) malloc (pagesize);
21821 if (read (fd, data3, pagesize) != pagesize)
21823 for (i = 0; i < pagesize; ++i)
21824 if (*(data + i) != *(data3 + i))
21830 rm -f conftest$ac_exeext
21831 if { (ac_try="$ac_link"
21832 case "(($ac_try" in
21833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21834 *) ac_try_echo=$ac_try;;
21836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21837 (eval "$ac_link") 2>&5
21839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21840 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21841 { (case "(($ac_try" in
21842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21843 *) ac_try_echo=$ac_try;;
21845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21846 (eval "$ac_try") 2>&5
21848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849 (exit $ac_status); }; }; then
21850 ac_cv_func_mmap_fixed_mapped=yes
21852 echo "$as_me: program exited with status $ac_status" >&5
21853 echo "$as_me: failed program was:" >&5
21854 sed 's/^/| /' conftest.$ac_ext >&5
21856 ( exit $ac_status )
21857 ac_cv_func_mmap_fixed_mapped=no
21859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21864 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21865 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21866 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21868 cat >>confdefs.h <<\_ACEOF
21869 #define HAVE_MMAP 1
21873 rm -f conftest.mmap
21875 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21876 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21877 if test "${ac_cv_func_mmap_file+set}" = set; then
21878 echo $ECHO_N "(cached) $ECHO_C" >&6
21881 ac_cpp='$CPP $CPPFLAGS'
21882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21886 if test "$cross_compiling" = yes; then
21887 ac_cv_func_mmap_file=no
21889 cat >conftest.$ac_ext <<_ACEOF
21893 cat confdefs.h >>conftest.$ac_ext
21894 cat >>conftest.$ac_ext <<_ACEOF
21895 /* end confdefs.h. */
21897 #include <sys/types.h>
21898 #include <sys/mman.h>
21906 fd = creat ("foo",0777);
21907 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21909 return (fd != (int) MAP_FAILED);
21914 rm -f conftest$ac_exeext
21915 if { (ac_try="$ac_link"
21916 case "(($ac_try" in
21917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21918 *) ac_try_echo=$ac_try;;
21920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21921 (eval "$ac_link") 2>&5
21923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21924 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21925 { (case "(($ac_try" in
21926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21927 *) ac_try_echo=$ac_try;;
21929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21930 (eval "$ac_try") 2>&5
21932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21933 (exit $ac_status); }; }; then
21934 ac_cv_func_mmap_file=yes
21936 echo "$as_me: program exited with status $ac_status" >&5
21937 echo "$as_me: failed program was:" >&5
21938 sed 's/^/| /' conftest.$ac_ext >&5
21940 ( exit $ac_status )
21941 ac_cv_func_mmap_file=no
21943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21948 ac_cpp='$CPP $CPPFLAGS'
21949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21955 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21956 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21957 if test "$ac_cv_func_mmap_file" = yes; then
21959 cat >>confdefs.h <<\_ACEOF
21960 #define HAVE_MMAP_FILE
21967 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21968 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21969 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21970 echo $ECHO_N "(cached) $ECHO_C" >&6
21972 if test "$llvm_cv_os_type" = "Interix" ; then
21973 ac_cv_need_dev_zero_for_mmap=yes
21975 ac_cv_need_dev_zero_for_mmap=no
21979 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21980 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21981 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21983 cat >>confdefs.h <<\_ACEOF
21984 #define NEED_DEV_ZERO_FOR_MMAP 1
21989 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21991 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21992 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21994 if test "$ac_cv_func_mmap_file" = "no"
21996 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21997 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
22001 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
22002 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
22004 ac_cpp='$CXXCPP $CPPFLAGS'
22005 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22006 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22007 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22009 cat >conftest.$ac_ext <<_ACEOF
22013 cat confdefs.h >>conftest.$ac_ext
22014 cat >>conftest.$ac_ext <<_ACEOF
22015 /* end confdefs.h. */
22018 volatile unsigned long val = 1;
22019 __sync_synchronize();
22020 __sync_val_compare_and_swap(&val, 1, 0);
22021 __sync_add_and_fetch(&val, 1);
22022 __sync_sub_and_fetch(&val, 1);
22028 rm -f conftest.$ac_objext conftest$ac_exeext
22029 if { (ac_try="$ac_link"
22030 case "(($ac_try" in
22031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22032 *) ac_try_echo=$ac_try;;
22034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22035 (eval "$ac_link") 2>conftest.er1
22037 grep -v '^ *+' conftest.er1 >conftest.err
22039 cat conftest.err >&5
22040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041 (exit $ac_status); } &&
22042 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22043 { (case "(($ac_try" in
22044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22045 *) ac_try_echo=$ac_try;;
22047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22048 (eval "$ac_try") 2>&5
22050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051 (exit $ac_status); }; } &&
22052 { ac_try='test -s conftest$ac_exeext'
22053 { (case "(($ac_try" in
22054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22055 *) ac_try_echo=$ac_try;;
22057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22058 (eval "$ac_try") 2>&5
22060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22061 (exit $ac_status); }; }; then
22063 { echo "$as_me:$LINENO: result: yes" >&5
22064 echo "${ECHO_T}yes" >&6; }
22066 cat >>confdefs.h <<\_ACEOF
22067 #define LLVM_HAS_ATOMICS 1
22072 echo "$as_me: failed program was:" >&5
22073 sed 's/^/| /' conftest.$ac_ext >&5
22076 { echo "$as_me:$LINENO: result: no" >&5
22077 echo "${ECHO_T}no" >&6; }
22079 cat >>confdefs.h <<\_ACEOF
22080 #define LLVM_HAS_ATOMICS 0
22083 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
22084 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
22088 rm -f core conftest.err conftest.$ac_objext \
22089 conftest$ac_exeext conftest.$ac_ext
22091 ac_cpp='$CPP $CPPFLAGS'
22092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22098 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
22099 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
22100 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
22101 if test "${llvm_cv_linux_mixed+set}" = set; then
22102 echo $ECHO_N "(cached) $ECHO_C" >&6
22105 ac_cpp='$CPP $CPPFLAGS'
22106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22110 cat >conftest.$ac_ext <<_ACEOF
22113 cat confdefs.h >>conftest.$ac_ext
22114 cat >>conftest.$ac_ext <<_ACEOF
22115 /* end confdefs.h. */
22117 error: Not x86-64 even if uname says so!
22128 rm -f conftest.$ac_objext
22129 if { (ac_try="$ac_compile"
22130 case "(($ac_try" in
22131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22132 *) ac_try_echo=$ac_try;;
22134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22135 (eval "$ac_compile") 2>conftest.er1
22137 grep -v '^ *+' conftest.er1 >conftest.err
22139 cat conftest.err >&5
22140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22141 (exit $ac_status); } &&
22142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22143 { (case "(($ac_try" in
22144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22145 *) ac_try_echo=$ac_try;;
22147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22148 (eval "$ac_try") 2>&5
22150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22151 (exit $ac_status); }; } &&
22152 { ac_try='test -s conftest.$ac_objext'
22153 { (case "(($ac_try" in
22154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22155 *) ac_try_echo=$ac_try;;
22157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22158 (eval "$ac_try") 2>&5
22160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22161 (exit $ac_status); }; }; then
22162 llvm_cv_linux_mixed=no
22164 echo "$as_me: failed program was:" >&5
22165 sed 's/^/| /' conftest.$ac_ext >&5
22167 llvm_cv_linux_mixed=yes
22170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22172 ac_cpp='$CPP $CPPFLAGS'
22173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22179 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
22180 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
22182 if test "$llvm_cv_linux_mixed" = "yes"; then
22183 llvm_cv_target_arch="x86"
22189 for ac_func in __dso_handle
22191 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22192 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22193 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22194 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22195 echo $ECHO_N "(cached) $ECHO_C" >&6
22197 cat >conftest.$ac_ext <<_ACEOF
22200 cat confdefs.h >>conftest.$ac_ext
22201 cat >>conftest.$ac_ext <<_ACEOF
22202 /* end confdefs.h. */
22203 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22204 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22205 #define $ac_func innocuous_$ac_func
22207 /* System header to define __stub macros and hopefully few prototypes,
22208 which can conflict with char $ac_func (); below.
22209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22210 <limits.h> exists even on freestanding compilers. */
22213 # include <limits.h>
22215 # include <assert.h>
22220 /* Override any GCC internal prototype to avoid an error.
22221 Use char because int might match the return type of a GCC
22222 builtin and then its argument prototype would still apply. */
22227 /* The GNU C library defines this for functions which it implements
22228 to always fail with ENOSYS. Some functions are actually named
22229 something starting with __ and the normal name is an alias. */
22230 #if defined __stub_$ac_func || defined __stub___$ac_func
22237 return $ac_func ();
22242 rm -f conftest.$ac_objext conftest$ac_exeext
22243 if { (ac_try="$ac_link"
22244 case "(($ac_try" in
22245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22246 *) ac_try_echo=$ac_try;;
22248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22249 (eval "$ac_link") 2>conftest.er1
22251 grep -v '^ *+' conftest.er1 >conftest.err
22253 cat conftest.err >&5
22254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22255 (exit $ac_status); } &&
22256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22257 { (case "(($ac_try" in
22258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22259 *) ac_try_echo=$ac_try;;
22261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22262 (eval "$ac_try") 2>&5
22264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22265 (exit $ac_status); }; } &&
22266 { ac_try='test -s conftest$ac_exeext'
22267 { (case "(($ac_try" in
22268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22269 *) ac_try_echo=$ac_try;;
22271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22272 (eval "$ac_try") 2>&5
22274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22275 (exit $ac_status); }; }; then
22276 eval "$as_ac_var=yes"
22278 echo "$as_me: failed program was:" >&5
22279 sed 's/^/| /' conftest.$ac_ext >&5
22281 eval "$as_ac_var=no"
22284 rm -f core conftest.err conftest.$ac_objext \
22285 conftest$ac_exeext conftest.$ac_ext
22287 ac_res=`eval echo '${'$as_ac_var'}'`
22288 { echo "$as_me:$LINENO: result: $ac_res" >&5
22289 echo "${ECHO_T}$ac_res" >&6; }
22290 if test `eval echo '${'$as_ac_var'}'` = yes; then
22291 cat >>confdefs.h <<_ACEOF
22292 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22299 SHLIBEXT=$libltdl_cv_shlibext
22302 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22305 if test "${prefix}" = "NONE" ; then
22306 prefix="/usr/local"
22308 eval LLVM_PREFIX="${prefix}";
22309 eval LLVM_BINDIR="${prefix}/bin";
22310 eval LLVM_DATADIR="${prefix}/share/llvm";
22311 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22312 eval LLVM_ETCDIR="${prefix}/etc/llvm";
22313 eval LLVM_INCLUDEDIR="${prefix}/include";
22314 eval LLVM_INFODIR="${prefix}/info";
22315 eval LLVM_MANDIR="${prefix}/man";
22316 LLVM_CONFIGTIME=`date`
22327 if test "${ENABLE_TIMESTAMPS}" = "0"; then
22328 LLVM_CONFIGTIME="(timestamp not enabled)"
22332 cat >>confdefs.h <<_ACEOF
22333 #define LLVM_PREFIX "$LLVM_PREFIX"
22337 cat >>confdefs.h <<_ACEOF
22338 #define LLVM_BINDIR "$LLVM_BINDIR"
22342 cat >>confdefs.h <<_ACEOF
22343 #define LLVM_DATADIR "$LLVM_DATADIR"
22347 cat >>confdefs.h <<_ACEOF
22348 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22352 cat >>confdefs.h <<_ACEOF
22353 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22357 cat >>confdefs.h <<_ACEOF
22358 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22362 cat >>confdefs.h <<_ACEOF
22363 #define LLVM_INFODIR "$LLVM_INFODIR"
22367 cat >>confdefs.h <<_ACEOF
22368 #define LLVM_MANDIR "$LLVM_MANDIR"
22372 cat >>confdefs.h <<_ACEOF
22373 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22377 cat >>confdefs.h <<_ACEOF
22378 #define LLVM_HOST_TRIPLE "$host"
22382 cat >>confdefs.h <<_ACEOF
22383 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
22387 if test "$BINDINGS_TO_BUILD" = auto ; then
22388 BINDINGS_TO_BUILD=""
22389 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22390 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22393 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22399 binding_prereqs_failed=0
22400 for a_binding in $BINDINGS_TO_BUILD ; do
22401 case "$a_binding" in
22403 if test "x$OCAMLC" = x ; then
22404 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22405 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22406 binding_prereqs_failed=1
22408 if test "x$OCAMLDEP" = x ; then
22409 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22410 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22411 binding_prereqs_failed=1
22413 if test "x$OCAMLOPT" = x ; then
22414 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22415 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22417 if test "x$with_ocaml_libdir" != xauto ; then
22418 OCAML_LIBDIR=$with_ocaml_libdir
22421 ocaml_stdlib="`"$OCAMLC" -where`"
22422 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22424 # ocaml stdlib is beneath our prefix; use stdlib
22425 OCAML_LIBDIR=$ocaml_stdlib
22428 # ocaml stdlib is outside our prefix; use libdir/ocaml
22429 OCAML_LIBDIR=${prefix}/lib/ocaml
22436 if test "$binding_prereqs_failed" = 1 ; then
22437 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22438 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22439 { (exit 1); exit 1; }; }
22442 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22443 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22444 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22445 echo $ECHO_N "(cached) $ECHO_C" >&6
22448 ac_cpp='$CXXCPP $CPPFLAGS'
22449 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22450 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22451 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22453 oldcxxflags="$CXXFLAGS"
22454 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
22455 cat >conftest.$ac_ext <<_ACEOF
22458 cat confdefs.h >>conftest.$ac_ext
22459 cat >>conftest.$ac_ext <<_ACEOF
22460 /* end confdefs.h. */
22461 template <typename T> struct X { void __attribute__((noinline)) f() {} };
22470 rm -f conftest.$ac_objext
22471 if { (ac_try="$ac_compile"
22472 case "(($ac_try" in
22473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22474 *) ac_try_echo=$ac_try;;
22476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22477 (eval "$ac_compile") 2>conftest.er1
22479 grep -v '^ *+' conftest.er1 >conftest.err
22481 cat conftest.err >&5
22482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22483 (exit $ac_status); } &&
22484 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22485 { (case "(($ac_try" in
22486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22487 *) ac_try_echo=$ac_try;;
22489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22490 (eval "$ac_try") 2>&5
22492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22493 (exit $ac_status); }; } &&
22494 { ac_try='test -s conftest.$ac_objext'
22495 { (case "(($ac_try" in
22496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22497 *) ac_try_echo=$ac_try;;
22499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22500 (eval "$ac_try") 2>&5
22502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22503 (exit $ac_status); }; }; then
22504 llvm_cv_cxx_visibility_inlines_hidden=yes
22506 echo "$as_me: failed program was:" >&5
22507 sed 's/^/| /' conftest.$ac_ext >&5
22509 llvm_cv_cxx_visibility_inlines_hidden=no
22512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22513 CXXFLAGS="$oldcxxflags"
22515 ac_cpp='$CPP $CPPFLAGS'
22516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22522 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22523 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22524 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22525 ENABLE_VISIBILITY_INLINES_HIDDEN=1
22528 ENABLE_VISIBILITY_INLINES_HIDDEN=0
22533 if test "$llvm_cv_link_use_r" = "yes" ; then
22540 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22541 RDYNAMIC="-Wl,-export-dynamic"
22548 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22555 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22557 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22559 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22561 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22563 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22566 ac_config_files="$ac_config_files Makefile.config"
22569 ac_config_files="$ac_config_files llvm.spec"
22572 ac_config_files="$ac_config_files docs/doxygen.cfg"
22575 if test "${clang_src_root}" = ""; then
22576 clang_src_root="$srcdir/tools/clang"
22578 if test -f ${clang_src_root}/README.txt; then
22579 configh="include/clang/Config/config.h"
22580 doxy="docs/doxygen.cfg"
22581 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
22583 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
22587 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22590 test "x$program_prefix" = "xNONE" && program_prefix=""
22594 ac_config_commands="$ac_config_commands setup"
22596 ac_config_commands="$ac_config_commands Makefile"
22599 ac_config_commands="$ac_config_commands Makefile.common"
22602 ac_config_commands="$ac_config_commands examples/Makefile"
22605 ac_config_commands="$ac_config_commands lib/Makefile"
22608 ac_config_commands="$ac_config_commands runtime/Makefile"
22611 ac_config_commands="$ac_config_commands test/Makefile"
22614 ac_config_commands="$ac_config_commands test/Makefile.tests"
22617 ac_config_commands="$ac_config_commands unittests/Makefile"
22620 ac_config_commands="$ac_config_commands tools/Makefile"
22623 ac_config_commands="$ac_config_commands utils/Makefile"
22626 ac_config_commands="$ac_config_commands projects/Makefile"
22629 ac_config_commands="$ac_config_commands bindings/Makefile"
22632 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22636 cat >confcache <<\_ACEOF
22637 # This file is a shell script that caches the results of configure
22638 # tests run on this system so they can be shared between configure
22639 # scripts and configure runs, see configure's option --config-cache.
22640 # It is not useful on other systems. If it contains results you don't
22641 # want to keep, you may remove or edit it.
22643 # config.status only pays attention to the cache file if you give it
22644 # the --recheck option to rerun configure.
22646 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22647 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22648 # following values.
22652 # The following way of writing the cache mishandles newlines in values,
22653 # but we know of no workaround that is simple, portable, and efficient.
22654 # So, we kill variables containing newlines.
22655 # Ultrix sh set writes to stderr and can't be redirected directly,
22656 # and sets the high bit in the cache file unless we assign to the vars.
22658 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22659 eval ac_val=\$$ac_var
22663 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22664 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22667 _ | IFS | as_nl) ;; #(
22668 *) $as_unset $ac_var ;;
22674 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22675 *${as_nl}ac_space=\ *)
22676 # `set' does not quote correctly, so add quotes (double-quote
22677 # substitution turns \\\\ into \\, and sed turns \\ into \).
22680 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22683 # `set' quotes correctly as required by POSIX, so do not add quotes.
22684 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22693 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22695 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22697 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22698 if test -w "$cache_file"; then
22699 test "x$cache_file" != "x/dev/null" &&
22700 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22701 echo "$as_me: updating cache $cache_file" >&6;}
22702 cat confcache >$cache_file
22704 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22705 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22710 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22711 # Let make expand exec_prefix.
22712 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22714 DEFS=-DHAVE_CONFIG_H
22718 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22719 # 1. Remove the extension, and $U if already installed.
22720 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22721 ac_i=`echo "$ac_i" | sed "$ac_script"`
22722 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22723 # will be set to the directory where LIBOBJS objects are built.
22724 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22725 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22727 LIBOBJS=$ac_libobjs
22729 LTLIBOBJS=$ac_ltlibobjs
22732 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22733 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22734 Usually this means the macro was only invoked conditionally." >&5
22735 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22736 Usually this means the macro was only invoked conditionally." >&2;}
22737 { (exit 1); exit 1; }; }
22739 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22740 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22741 Usually this means the macro was only invoked conditionally." >&5
22742 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22743 Usually this means the macro was only invoked conditionally." >&2;}
22744 { (exit 1); exit 1; }; }
22747 : ${CONFIG_STATUS=./config.status}
22748 ac_clean_files_save=$ac_clean_files
22749 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22750 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22751 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22752 cat >$CONFIG_STATUS <<_ACEOF
22754 # Generated by $as_me.
22755 # Run this file to recreate the current configuration.
22756 # Compiler output produced by configure, useful for debugging
22757 # configure, is in config.log if it exists.
22760 ac_cs_recheck=false
22762 SHELL=\${CONFIG_SHELL-$SHELL}
22765 cat >>$CONFIG_STATUS <<\_ACEOF
22766 ## --------------------- ##
22767 ## M4sh Initialization. ##
22768 ## --------------------- ##
22770 # Be Bourne compatible
22771 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22774 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22775 # is contrary to our usage. Disable this feature.
22776 alias -g '${1+"$@"}'='"$@"'
22777 setopt NO_GLOB_SUBST
22779 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22781 BIN_SH=xpg4; export BIN_SH # for Tru64
22782 DUALCASE=1; export DUALCASE # for MKS sh
22786 # Avoid depending upon Character Ranges.
22787 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22788 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22789 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22790 as_cr_digits='0123456789'
22791 as_cr_alnum=$as_cr_Letters$as_cr_digits
22793 # The user is always right.
22794 if test "${PATH_SEPARATOR+set}" != set; then
22795 echo "#! /bin/sh" >conf$$.sh
22796 echo "exit 0" >>conf$$.sh
22798 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22806 # Support unset when possible.
22807 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22815 # We need space, tab and new line, in precisely that order. Quoting is
22816 # there to prevent editors from complaining about space-tab.
22817 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22818 # splitting by setting IFS to empty value.)
22823 # Find who we are. Look in the path if we contain no directory separator.
22825 *[\\/]* ) as_myself=$0 ;;
22826 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22827 for as_dir in $PATH
22830 test -z "$as_dir" && as_dir=.
22831 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22837 # We did not find ourselves, most probably we were run as `sh COMMAND'
22838 # in which case we are not to be found in the path.
22839 if test "x$as_myself" = x; then
22842 if test ! -f "$as_myself"; then
22843 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22844 { (exit 1); exit 1; }
22847 # Work around bugs in pre-3.0 UWIN ksh.
22848 for as_var in ENV MAIL MAILPATH
22849 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22857 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22858 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22859 LC_TELEPHONE LC_TIME
22861 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22862 eval $as_var=C; export $as_var
22864 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22868 # Required to use basename.
22869 if expr a : '\(a\)' >/dev/null 2>&1 &&
22870 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22876 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22877 as_basename=basename
22883 # Name of the executable.
22884 as_me=`$as_basename -- "$0" ||
22885 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22886 X"$0" : 'X\(//\)$' \| \
22887 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22889 sed '/^.*\/\([^/][^/]*\)\/*$/{
22908 as_lineno_1=$LINENO
22909 as_lineno_2=$LINENO
22910 test "x$as_lineno_1" != "x$as_lineno_2" &&
22911 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22913 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22914 # uniformly replaced by the line number. The first 'sed' inserts a
22915 # line-number line after each line using $LINENO; the second 'sed'
22916 # does the real work. The second script uses 'N' to pair each
22917 # line-number line with the line containing $LINENO, and appends
22918 # trailing '-' during substitution so that $LINENO is not a special
22919 # case at line end.
22920 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22921 # scripts with optimization help from Paolo Bonzini. Blame Lee
22922 # E. McMahon (1931-1989) for sed's syntax. :-)
22934 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22937 ' >$as_me.lineno &&
22938 chmod +x "$as_me.lineno" ||
22939 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22940 { (exit 1); exit 1; }; }
22942 # Don't try to exec as it changes $[0], causing all sort of problems
22943 # (the dirname of $[0] is not the place where we might find the
22944 # original and so on. Autoconf is especially sensitive to this).
22945 . "./$as_me.lineno"
22946 # Exit status is that of the last command.
22951 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22957 ECHO_C= ECHO_N= ECHO_T=
22958 case `echo -n x` in
22960 case `echo 'x\c'` in
22961 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22968 if expr a : '\(a\)' >/dev/null 2>&1 &&
22969 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22975 rm -f conf$$ conf$$.exe conf$$.file
22976 if test -d conf$$.dir; then
22977 rm -f conf$$.dir/conf$$.file
22983 if ln -s conf$$.file conf$$ 2>/dev/null; then
22985 # ... but there are two gotchas:
22986 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22987 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22988 # In both cases, we have to default to `cp -p'.
22989 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22991 elif ln conf$$.file conf$$ 2>/dev/null; then
22996 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22997 rmdir conf$$.dir 2>/dev/null
22999 if mkdir -p . 2>/dev/null; then
23002 test -d ./-p && rmdir ./-p
23006 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
23007 # systems may use methods other than mode bits to determine executability.
23008 cat >conf$$.file <<_ASEOF
23012 chmod +x conf$$.file
23013 if test -x conf$$.file >/dev/null 2>&1; then
23014 as_executable_p="test -x"
23020 # Sed expression to map a string onto a valid CPP name.
23021 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23023 # Sed expression to map a string onto a valid variable name.
23024 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23029 # Save the log message, to keep $[0] and so on meaningful, and to
23030 # report actual input values of CONFIG_FILES etc. instead of their
23031 # values after options handling.
23033 This file was extended by LLVM $as_me 3.4svn, which was
23034 generated by GNU Autoconf 2.60. Invocation command line was
23036 CONFIG_FILES = $CONFIG_FILES
23037 CONFIG_HEADERS = $CONFIG_HEADERS
23038 CONFIG_LINKS = $CONFIG_LINKS
23039 CONFIG_COMMANDS = $CONFIG_COMMANDS
23042 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23047 cat >>$CONFIG_STATUS <<_ACEOF
23048 # Files that config.status was made for.
23049 config_files="$ac_config_files"
23050 config_headers="$ac_config_headers"
23051 config_commands="$ac_config_commands"
23055 cat >>$CONFIG_STATUS <<\_ACEOF
23057 \`$as_me' instantiates files from templates according to the
23058 current configuration.
23060 Usage: $0 [OPTIONS] [FILE]...
23062 -h, --help print this help, then exit
23063 -V, --version print version number, then exit
23064 -q, --quiet do not print progress messages
23065 -d, --debug don't remove temporary files
23066 --recheck update $as_me by reconfiguring in the same conditions
23067 --file=FILE[:TEMPLATE]
23068 instantiate the configuration file FILE
23069 --header=FILE[:TEMPLATE]
23070 instantiate the configuration header FILE
23072 Configuration files:
23075 Configuration headers:
23078 Configuration commands:
23081 Report bugs to <bug-autoconf@gnu.org>."
23084 cat >>$CONFIG_STATUS <<_ACEOF
23086 LLVM config.status 3.4svn
23087 configured by $0, generated by GNU Autoconf 2.60,
23088 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23090 Copyright (C) 2006 Free Software Foundation, Inc.
23091 This config.status script is free software; the Free Software Foundation
23092 gives unlimited permission to copy, distribute and modify it."
23099 cat >>$CONFIG_STATUS <<\_ACEOF
23100 # If no file are specified by the user, then we need to provide default
23101 # value. By we need to know if files were specified by the user.
23107 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23108 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23119 # Handling of the options.
23120 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23122 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23123 echo "$ac_cs_version"; exit ;;
23124 --debug | --debu | --deb | --de | --d | -d )
23126 --file | --fil | --fi | --f )
23128 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23129 ac_need_defaults=false;;
23130 --header | --heade | --head | --hea )
23132 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23133 ac_need_defaults=false;;
23135 # Conflict between --help and --header
23136 { echo "$as_me: error: ambiguous option: $1
23137 Try \`$0 --help' for more information." >&2
23138 { (exit 1); exit 1; }; };;
23139 --help | --hel | -h )
23140 echo "$ac_cs_usage"; exit ;;
23141 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23142 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23145 # This is an error.
23146 -*) { echo "$as_me: error: unrecognized option: $1
23147 Try \`$0 --help' for more information." >&2
23148 { (exit 1); exit 1; }; } ;;
23150 *) ac_config_targets="$ac_config_targets $1"
23151 ac_need_defaults=false ;;
23157 ac_configure_extra_args=
23159 if $ac_cs_silent; then
23161 ac_configure_extra_args="$ac_configure_extra_args --silent"
23165 cat >>$CONFIG_STATUS <<_ACEOF
23166 if \$ac_cs_recheck; then
23167 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23168 CONFIG_SHELL=$SHELL
23169 export CONFIG_SHELL
23170 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23174 cat >>$CONFIG_STATUS <<\_ACEOF
23178 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23179 ## Running $as_me. ##
23185 cat >>$CONFIG_STATUS <<_ACEOF
23189 llvm_src="${srcdir}"
23193 cat >>$CONFIG_STATUS <<\_ACEOF
23195 # Handling of arguments.
23196 for ac_config_target in $ac_config_targets
23198 case $ac_config_target in
23199 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
23200 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
23201 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
23202 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
23203 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
23204 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
23205 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
23206 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23207 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
23208 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
23209 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
23210 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
23211 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
23212 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23213 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23214 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23215 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23216 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23217 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23218 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23219 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23220 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
23221 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23222 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23223 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23224 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23225 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
23227 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23228 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23229 { (exit 1); exit 1; }; };;
23234 # If the user did not use the arguments to specify the items to instantiate,
23235 # then the envvar interface is used. Set only those that are not.
23236 # We use the long form for the default assignment because of an extremely
23237 # bizarre bug on SunOS 4.1.3.
23238 if $ac_need_defaults; then
23239 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23240 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23241 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23244 # Have a temporary directory for convenience. Make it in the build tree
23245 # simply because there is no reason against having it here, and in addition,
23246 # creating and moving files from /tmp can sometimes cause problems.
23247 # Hook for its removal unless debugging.
23248 # Note that there is a small window in which the directory will not be cleaned:
23249 # after its creation but before its name has been assigned to `$tmp'.
23253 trap 'exit_status=$?
23254 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23256 trap '{ (exit 1); exit 1; }' 1 2 13 15
23258 # Create a (secure) tmp directory for tmp files.
23261 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23262 test -n "$tmp" && test -d "$tmp"
23265 tmp=./conf$$-$RANDOM
23266 (umask 077 && mkdir "$tmp")
23269 echo "$me: cannot create a temporary directory in ." >&2
23270 { (exit 1); exit 1; }
23274 # Set up the sed scripts for CONFIG_FILES section.
23277 # No need to generate the scripts if there are no CONFIG_FILES.
23278 # This happens for instance when ./config.status config.h
23279 if test -n "$CONFIG_FILES"; then
23286 for ac_last_try in false false false false false :; do
23287 cat >conf$$subs.sed <<_ACEOF
23288 SHELL!$SHELL$ac_delim
23289 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23290 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23291 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23292 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23293 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23294 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23295 exec_prefix!$exec_prefix$ac_delim
23296 prefix!$prefix$ac_delim
23297 program_transform_name!$program_transform_name$ac_delim
23298 bindir!$bindir$ac_delim
23299 sbindir!$sbindir$ac_delim
23300 libexecdir!$libexecdir$ac_delim
23301 datarootdir!$datarootdir$ac_delim
23302 datadir!$datadir$ac_delim
23303 sysconfdir!$sysconfdir$ac_delim
23304 sharedstatedir!$sharedstatedir$ac_delim
23305 localstatedir!$localstatedir$ac_delim
23306 includedir!$includedir$ac_delim
23307 oldincludedir!$oldincludedir$ac_delim
23308 docdir!$docdir$ac_delim
23309 infodir!$infodir$ac_delim
23310 htmldir!$htmldir$ac_delim
23311 dvidir!$dvidir$ac_delim
23312 pdfdir!$pdfdir$ac_delim
23313 psdir!$psdir$ac_delim
23314 libdir!$libdir$ac_delim
23315 localedir!$localedir$ac_delim
23316 mandir!$mandir$ac_delim
23317 DEFS!$DEFS$ac_delim
23318 ECHO_C!$ECHO_C$ac_delim
23319 ECHO_N!$ECHO_N$ac_delim
23320 ECHO_T!$ECHO_T$ac_delim
23321 LIBS!$LIBS$ac_delim
23322 build_alias!$build_alias$ac_delim
23323 host_alias!$host_alias$ac_delim
23324 target_alias!$target_alias$ac_delim
23325 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23327 CFLAGS!$CFLAGS$ac_delim
23328 LDFLAGS!$LDFLAGS$ac_delim
23329 CPPFLAGS!$CPPFLAGS$ac_delim
23330 ac_ct_CC!$ac_ct_CC$ac_delim
23331 EXEEXT!$EXEEXT$ac_delim
23332 OBJEXT!$OBJEXT$ac_delim
23334 CXXFLAGS!$CXXFLAGS$ac_delim
23335 ac_ct_CXX!$ac_ct_CXX$ac_delim
23337 subdirs!$subdirs$ac_delim
23338 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23339 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23340 build!$build$ac_delim
23341 build_cpu!$build_cpu$ac_delim
23342 build_vendor!$build_vendor$ac_delim
23343 build_os!$build_os$ac_delim
23344 host!$host$ac_delim
23345 host_cpu!$host_cpu$ac_delim
23346 host_vendor!$host_vendor$ac_delim
23347 host_os!$host_os$ac_delim
23348 target!$target$ac_delim
23349 target_cpu!$target_cpu$ac_delim
23350 target_vendor!$target_vendor$ac_delim
23351 target_os!$target_os$ac_delim
23353 HOST_OS!$HOST_OS$ac_delim
23354 TARGET_OS!$TARGET_OS$ac_delim
23355 LINKALL!$LINKALL$ac_delim
23356 NOLINKALL!$NOLINKALL$ac_delim
23357 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23358 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23359 ARCH!$ARCH$ac_delim
23360 HOST_ARCH!$HOST_ARCH$ac_delim
23361 ENDIAN!$ENDIAN$ac_delim
23362 GREP!$GREP$ac_delim
23363 EGREP!$EGREP$ac_delim
23364 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23365 BUILD_CC!$BUILD_CC$ac_delim
23366 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23367 BUILD_CXX!$BUILD_CXX$ac_delim
23368 CVSBUILD!$CVSBUILD$ac_delim
23369 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
23370 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
23371 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
23372 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
23373 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
23374 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23375 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23376 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23377 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
23378 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23379 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23380 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23381 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23382 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
23384 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23387 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23389 elif $ac_last_try; then
23390 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23391 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23392 { (exit 1); exit 1; }; }
23394 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23398 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23399 if test -n "$ac_eof"; then
23400 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23401 ac_eof=`expr $ac_eof + 1`
23404 cat >>$CONFIG_STATUS <<_ACEOF
23405 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23406 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23409 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23410 s/^/s,@/; s/!/@,|#_!!_#|/
23413 s/'"$ac_delim"'$/,g/; t
23415 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23416 ' >>$CONFIG_STATUS <conf$$subs.sed
23417 rm -f conf$$subs.sed
23418 cat >>$CONFIG_STATUS <<_ACEOF
23424 for ac_last_try in false false false false false :; do
23425 cat >conf$$subs.sed <<_ACEOF
23426 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23427 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23428 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
23429 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23430 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
23431 ENABLE_PIC!$ENABLE_PIC$ac_delim
23432 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23433 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23434 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23435 ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
23436 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23437 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23438 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23439 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23440 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23441 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23442 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23443 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23444 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
23445 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23446 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
23448 ifGNUmake!$ifGNUmake$ac_delim
23449 LN_S!$LN_S$ac_delim
23452 DATE!$DATE$ac_delim
23453 FIND!$FIND$ac_delim
23454 MKDIR!$MKDIR$ac_delim
23456 RANLIB!$RANLIB$ac_delim
23461 BINPWD!$BINPWD$ac_delim
23462 GRAPHVIZ!$GRAPHVIZ$ac_delim
23465 NEATO!$NEATO$ac_delim
23466 TWOPI!$TWOPI$ac_delim
23467 CIRCO!$CIRCO$ac_delim
23469 DOTTY!$DOTTY$ac_delim
23470 XDOT_PY!$XDOT_PY$ac_delim
23471 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23472 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23473 INSTALL_DATA!$INSTALL_DATA$ac_delim
23474 BZIP2!$BZIP2$ac_delim
23476 DOXYGEN!$DOXYGEN$ac_delim
23477 GROFF!$GROFF$ac_delim
23478 GZIPBIN!$GZIPBIN$ac_delim
23479 PDFROFF!$PDFROFF$ac_delim
23481 OCAMLC!$OCAMLC$ac_delim
23482 OCAMLOPT!$OCAMLOPT$ac_delim
23483 OCAMLDEP!$OCAMLDEP$ac_delim
23484 OCAMLDOC!$OCAMLDOC$ac_delim
23486 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23487 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23488 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23489 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23490 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23491 LIBADD_DL!$LIBADD_DL$ac_delim
23492 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23493 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23494 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
23495 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
23496 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
23497 PYTHON!$PYTHON$ac_delim
23498 USE_UDIS86!$USE_UDIS86$ac_delim
23499 USE_OPROFILE!$USE_OPROFILE$ac_delim
23500 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
23501 XML2CONFIG!$XML2CONFIG$ac_delim
23502 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
23503 LIBXML2_INC!$LIBXML2_INC$ac_delim
23504 CXXCPP!$CXXCPP$ac_delim
23505 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23506 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
23507 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23508 MMAP_FILE!$MMAP_FILE$ac_delim
23509 SHLIBEXT!$SHLIBEXT$ac_delim
23510 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23511 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23512 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23513 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23514 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23515 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23516 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23517 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23518 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23519 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23520 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23521 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23522 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23525 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23527 elif $ac_last_try; then
23528 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23529 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23530 { (exit 1); exit 1; }; }
23532 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23536 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23537 if test -n "$ac_eof"; then
23538 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23539 ac_eof=`expr $ac_eof + 1`
23542 cat >>$CONFIG_STATUS <<_ACEOF
23543 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23544 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23547 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23548 s/^/s,@/; s/!/@,|#_!!_#|/
23551 s/'"$ac_delim"'$/,g/; t
23553 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23554 ' >>$CONFIG_STATUS <conf$$subs.sed
23555 rm -f conf$$subs.sed
23556 cat >>$CONFIG_STATUS <<_ACEOF
23562 for ac_last_try in false false false false false :; do
23563 cat >conf$$subs.sed <<_ACEOF
23564 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23565 RPATH!$RPATH$ac_delim
23566 RDYNAMIC!$RDYNAMIC$ac_delim
23567 program_prefix!$program_prefix$ac_delim
23568 LIBOBJS!$LIBOBJS$ac_delim
23569 LTLIBOBJS!$LTLIBOBJS$ac_delim
23572 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
23574 elif $ac_last_try; then
23575 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23576 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23577 { (exit 1); exit 1; }; }
23579 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23583 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23584 if test -n "$ac_eof"; then
23585 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23586 ac_eof=`expr $ac_eof + 1`
23589 cat >>$CONFIG_STATUS <<_ACEOF
23590 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23591 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23594 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23595 s/^/s,@/; s/!/@,|#_!!_#|/
23598 s/'"$ac_delim"'$/,g/; t
23600 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23601 ' >>$CONFIG_STATUS <conf$$subs.sed
23602 rm -f conf$$subs.sed
23603 cat >>$CONFIG_STATUS <<_ACEOF
23610 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23611 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23612 # trailing colons and then remove the whole line if VPATH becomes empty
23613 # (actually we leave an empty line to preserve line numbers).
23614 if test "x$srcdir" = x.; then
23615 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23616 s/:*\$(srcdir):*/:/
23617 s/:*\${srcdir}:*/:/
23619 s/^\([^=]*=[ ]*\):*/\1/
23625 cat >>$CONFIG_STATUS <<\_ACEOF
23626 fi # test -n "$CONFIG_FILES"
23629 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23632 :[FHLC]) ac_mode=$ac_tag; continue;;
23634 case $ac_mode$ac_tag in
23636 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23637 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23638 { (exit 1); exit 1; }; };;
23639 :[FH]-) ac_tag=-:-;;
23640 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23657 -) ac_f="$tmp/stdin";;
23658 *) # Look for the file first in the build tree, then in the source tree
23659 # (if the path is not absolute). The absolute path cannot be DOS-style,
23660 # because $ac_f cannot contain `:'.
23664 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23666 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23667 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23668 { (exit 1); exit 1; }; };;
23670 ac_file_inputs="$ac_file_inputs $ac_f"
23673 # Let's still pretend it is `configure' which instantiates (i.e., don't
23674 # use $as_me), people would be surprised to read:
23675 # /* config.h. Generated by config.status. */
23676 configure_input="Generated from "`IFS=:
23677 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23678 if test x"$ac_file" != x-; then
23679 configure_input="$ac_file. $configure_input"
23680 { echo "$as_me:$LINENO: creating $ac_file" >&5
23681 echo "$as_me: creating $ac_file" >&6;}
23685 *:-:* | *:-) cat >"$tmp/stdin";;
23690 ac_dir=`$as_dirname -- "$ac_file" ||
23691 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23692 X"$ac_file" : 'X\(//\)[^/]' \| \
23693 X"$ac_file" : 'X\(//\)$' \| \
23694 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23696 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23700 /^X\(\/\/\)[^/].*/{
23715 -*) as_dir=./$as_dir;;
23717 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23721 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23722 *) as_qdir=$as_dir;;
23724 as_dirs="'$as_qdir' $as_dirs"
23725 as_dir=`$as_dirname -- "$as_dir" ||
23726 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23727 X"$as_dir" : 'X\(//\)[^/]' \| \
23728 X"$as_dir" : 'X\(//\)$' \| \
23729 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23731 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23735 /^X\(\/\/\)[^/].*/{
23748 test -d "$as_dir" && break
23750 test -z "$as_dirs" || eval "mkdir $as_dirs"
23751 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23752 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23753 { (exit 1); exit 1; }; }; }
23757 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23759 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23760 # A ".." for each directory in $ac_dir_suffix.
23761 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23762 case $ac_top_builddir_sub in
23763 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23764 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23767 ac_abs_top_builddir=$ac_pwd
23768 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23769 # for backward compatibility:
23770 ac_top_builddir=$ac_top_build_prefix
23773 .) # We are building in place.
23775 ac_top_srcdir=$ac_top_builddir_sub
23776 ac_abs_top_srcdir=$ac_pwd ;;
23777 [\\/]* | ?:[\\/]* ) # Absolute name.
23778 ac_srcdir=$srcdir$ac_dir_suffix;
23779 ac_top_srcdir=$srcdir
23780 ac_abs_top_srcdir=$srcdir ;;
23781 *) # Relative name.
23782 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23783 ac_top_srcdir=$ac_top_build_prefix$srcdir
23784 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23786 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23796 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23797 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23801 cat >>$CONFIG_STATUS <<\_ACEOF
23802 # If the template does not know about datarootdir, expand it.
23803 # FIXME: This hack should be removed a few years after 2.60.
23804 ac_datarootdir_hack=; ac_datarootdir_seen=
23806 case `sed -n '/datarootdir/ {
23815 ' $ac_file_inputs` in
23816 *datarootdir*) ac_datarootdir_seen=yes;;
23817 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23818 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23819 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23821 cat >>$CONFIG_STATUS <<_ACEOF
23822 ac_datarootdir_hack='
23823 s&@datadir@&$datadir&g
23824 s&@docdir@&$docdir&g
23825 s&@infodir@&$infodir&g
23826 s&@localedir@&$localedir&g
23827 s&@mandir@&$mandir&g
23828 s&\\\${datarootdir}&$datarootdir&g' ;;
23832 # Neutralize VPATH when `$srcdir' = `.'.
23833 # Shell code in configure.ac might set extrasub.
23834 # FIXME: do we really want to maintain this feature?
23835 cat >>$CONFIG_STATUS <<_ACEOF
23839 cat >>$CONFIG_STATUS <<\_ACEOF
23841 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23842 s&@configure_input@&$configure_input&;t t
23843 s&@top_builddir@&$ac_top_builddir_sub&;t t
23844 s&@srcdir@&$ac_srcdir&;t t
23845 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23846 s&@top_srcdir@&$ac_top_srcdir&;t t
23847 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23848 s&@builddir@&$ac_builddir&;t t
23849 s&@abs_builddir@&$ac_abs_builddir&;t t
23850 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23851 s&@INSTALL@&$ac_INSTALL&;t t
23852 $ac_datarootdir_hack
23853 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23855 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23856 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23857 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23858 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23859 which seems to be undefined. Please make sure it is defined." >&5
23860 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23861 which seems to be undefined. Please make sure it is defined." >&2;}
23865 -) cat "$tmp/out"; rm -f "$tmp/out";;
23866 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23875 # Transform confdefs.h into a sed script `conftest.defines', that
23876 # substitutes the proper values into config.h.in to produce config.h.
23877 rm -f conftest.defines conftest.tail
23878 # First, append a space to every undef/define line, to ease matching.
23879 echo 's/$/ /' >conftest.defines
23880 # Then, protect against being on the right side of a sed subst, or in
23881 # an unquoted here document, in config.status. If some macros were
23882 # called several times there might be several #defines for the same
23883 # symbol, which is useless. But do not sort them, since the last
23884 # AC_DEFINE must be honored.
23885 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23886 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23887 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23888 # PARAMS is the parameter list in the macro definition--in most cases, it's
23889 # just an empty string.
23890 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23891 ac_dB='\\)[ (].*,\\1define\\2'
23899 s/^[ ]*#[ ]*define[ ][ ]*//
23904 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23905 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23906 ' >>conftest.defines
23908 # Remove the space that was appended to ease matching.
23909 # Then replace #undef with comments. This is necessary, for
23910 # example, in the case of _POSIX_SOURCE, which is predefined and required
23911 # on some systems where configure will not decide to define it.
23912 # (The regexp can be short, since the line contains either #define or #undef.)
23914 s,^[ #]*u.*,/* & */,' >>conftest.defines
23916 # Break up conftest.defines:
23917 ac_max_sed_lines=50
23919 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23920 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23921 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23923 ac_in='$ac_file_inputs'
23924 ac_out='"$tmp/out1"'
23925 ac_nxt='"$tmp/out2"'
23929 # Write a here document:
23930 cat >>$CONFIG_STATUS <<_ACEOF
23931 # First, check the format of the line:
23932 cat >"\$tmp/defines.sed" <<\\CEOF
23933 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23934 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23938 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23940 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23941 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23942 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23943 grep . conftest.tail >/dev/null || break
23944 rm -f conftest.defines
23945 mv conftest.tail conftest.defines
23947 rm -f conftest.defines conftest.tail
23949 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23950 cat >>$CONFIG_STATUS <<\_ACEOF
23951 if test x"$ac_file" != x-; then
23952 echo "/* $configure_input */" >"$tmp/config.h"
23953 cat "$ac_result" >>"$tmp/config.h"
23954 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23955 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23956 echo "$as_me: $ac_file is unchanged" >&6;}
23959 mv "$tmp/config.h" $ac_file
23962 echo "/* $configure_input */"
23968 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23969 echo "$as_me: executing $ac_file commands" >&6;}
23974 case $ac_file$ac_mode in
23975 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23976 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23977 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23978 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23979 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23980 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23981 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23982 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23983 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23984 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23985 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23986 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23987 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23988 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23989 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23990 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23991 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23992 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23993 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
23994 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
23995 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
23996 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
23997 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
23998 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
23999 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
24000 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
24006 { (exit 0); exit 0; }
24008 chmod +x $CONFIG_STATUS
24009 ac_clean_files=$ac_clean_files_save
24012 # configure is writing to config.log, and then calls config.status.
24013 # config.status does its own redirection, appending to config.log.
24014 # Unfortunately, on DOS this fails, as config.log is still kept open
24015 # by configure, so config.status won't be able to write to it; its
24016 # output is simply discarded. So we exec the FD to /dev/null,
24017 # effectively closing config.log, so it can be properly (re)opened and
24018 # appended to by config.status. When coming back to configure, we
24019 # need to make the FD available again.
24020 if test "$no_create" != yes; then
24022 ac_config_status_args=
24023 test "$silent" = yes &&
24024 ac_config_status_args="$ac_config_status_args --quiet"
24026 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24028 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24029 # would make configure fail if this is the last instruction.
24030 $ac_cs_success || { (exit 1); exit 1; }
24034 # CONFIG_SUBDIRS section.
24036 if test "$no_recursion" != yes; then
24038 # Remove --cache-file and --srcdir arguments so they do not pile up.
24039 ac_sub_configure_args=
24041 eval "set x $ac_configure_args"
24045 if test -n "$ac_prev"; then
24050 -cache-file | --cache-file | --cache-fil | --cache-fi \
24051 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24052 ac_prev=cache_file ;;
24053 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24054 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24057 --config-cache | -C)
24059 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24061 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24063 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24065 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24069 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24071 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
24075 # Always prepend --prefix to ensure using the same prefix
24076 # in subdir configurations.
24077 ac_arg="--prefix=$prefix"
24079 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24081 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
24084 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24086 # Do not complain, so a configure script can configure whichever
24087 # parts of a large source tree are present.
24088 test -d "$srcdir/$ac_dir" || continue
24090 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24091 echo "$as_me:$LINENO: $ac_msg" >&5
24095 -*) as_dir=./$as_dir;;
24097 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24101 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24102 *) as_qdir=$as_dir;;
24104 as_dirs="'$as_qdir' $as_dirs"
24105 as_dir=`$as_dirname -- "$as_dir" ||
24106 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24107 X"$as_dir" : 'X\(//\)[^/]' \| \
24108 X"$as_dir" : 'X\(//\)$' \| \
24109 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24111 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24115 /^X\(\/\/\)[^/].*/{
24128 test -d "$as_dir" && break
24130 test -z "$as_dirs" || eval "mkdir $as_dirs"
24131 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24132 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24133 { (exit 1); exit 1; }; }; }
24137 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24139 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24140 # A ".." for each directory in $ac_dir_suffix.
24141 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24142 case $ac_top_builddir_sub in
24143 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24144 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24147 ac_abs_top_builddir=$ac_pwd
24148 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24149 # for backward compatibility:
24150 ac_top_builddir=$ac_top_build_prefix
24153 .) # We are building in place.
24155 ac_top_srcdir=$ac_top_builddir_sub
24156 ac_abs_top_srcdir=$ac_pwd ;;
24157 [\\/]* | ?:[\\/]* ) # Absolute name.
24158 ac_srcdir=$srcdir$ac_dir_suffix;
24159 ac_top_srcdir=$srcdir
24160 ac_abs_top_srcdir=$srcdir ;;
24161 *) # Relative name.
24162 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24163 ac_top_srcdir=$ac_top_build_prefix$srcdir
24164 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24166 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24171 # Check for guested configure; otherwise get Cygnus style configure.
24172 if test -f "$ac_srcdir/configure.gnu"; then
24173 ac_sub_configure=$ac_srcdir/configure.gnu
24174 elif test -f "$ac_srcdir/configure"; then
24175 ac_sub_configure=$ac_srcdir/configure
24176 elif test -f "$ac_srcdir/configure.in"; then
24177 # This should be Cygnus configure.
24178 ac_sub_configure=$ac_aux_dir/configure
24180 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24181 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24185 # The recursion is here.
24186 if test -n "$ac_sub_configure"; then
24187 # Make the cache file name correct relative to the subdirectory.
24188 case $cache_file in
24189 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24190 *) # Relative name.
24191 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24194 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24195 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24196 # The eval makes quoting arguments work.
24197 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24198 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24199 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24200 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24201 { (exit 1); exit 1; }; }