2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.2svn.
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-2012 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.2svn'
565 PACKAGE_STRING='LLVM 3.2svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
568 ac_unique_file="lib/VMCore/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
692 ENABLE_EXPENSIVE_CHECKS
709 LLVM_ENUM_ASM_PRINTERS
710 LLVM_ENUM_ASM_PARSERS
711 LLVM_ENUM_DISASSEMBLERS
757 HAVE_LINK_VERSION_SCRIPT
760 CONVENIENCE_LTDL_TRUE
761 CONVENIENCE_LTDL_FALSE
764 NO_MISSING_FIELD_INITIALIZERS
765 COVERED_SWITCH_DEFAULT
769 INTEL_JITEVENTS_INCDIR
770 INTEL_JITEVENTS_LIBDIR
792 ENABLE_VISIBILITY_INLINES_HIDDEN
798 ac_precious_vars='build_alias
809 ac_subdirs_all='projects/llvm-gcc
813 projects/llvm-poolalloc
816 projects/llvm-stacker
824 # Initialize some variables set by options.
826 ac_init_version=false
827 # The variables have the same names as the options, with
828 # dashes changed to underlines.
836 program_transform_name=s,x,x,
844 # Installation directory options.
845 # These are left unexpanded so users can "make install exec_prefix=/foo"
846 # and all the variables that are supposed to be based on exec_prefix
847 # by default will actually change.
848 # Use braces instead of parens because sh, perl, etc. also accept them.
849 # (The list follows the same order as the GNU Coding Standards.)
850 bindir='${exec_prefix}/bin'
851 sbindir='${exec_prefix}/sbin'
852 libexecdir='${exec_prefix}/libexec'
853 datarootdir='${prefix}/share'
854 datadir='${datarootdir}'
855 sysconfdir='${prefix}/etc'
856 sharedstatedir='${prefix}/com'
857 localstatedir='${prefix}/var'
858 includedir='${prefix}/include'
859 oldincludedir='/usr/include'
860 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
861 infodir='${datarootdir}/info'
866 libdir='${exec_prefix}/lib'
867 localedir='${datarootdir}/locale'
868 mandir='${datarootdir}/man'
874 # If the previous option needs an argument, assign it.
875 if test -n "$ac_prev"; then
876 eval $ac_prev=\$ac_option
882 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
886 # Accept the important Cygnus configure options, so we can diagnose typos.
888 case $ac_dashdash$ac_option in
892 -bindir | --bindir | --bindi | --bind | --bin | --bi)
894 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
897 -build | --build | --buil | --bui | --bu)
898 ac_prev=build_alias ;;
899 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
900 build_alias=$ac_optarg ;;
902 -cache-file | --cache-file | --cache-fil | --cache-fi \
903 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
904 ac_prev=cache_file ;;
905 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
906 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
907 cache_file=$ac_optarg ;;
910 cache_file=config.cache ;;
912 -datadir | --datadir | --datadi | --datad)
914 -datadir=* | --datadir=* | --datadi=* | --datad=*)
915 datadir=$ac_optarg ;;
917 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
918 | --dataroo | --dataro | --datar)
919 ac_prev=datarootdir ;;
920 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
921 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
922 datarootdir=$ac_optarg ;;
924 -disable-* | --disable-*)
925 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
926 # Reject names that are not valid shell variable names.
927 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
928 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
929 { (exit 1); exit 1; }; }
930 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
931 eval enable_$ac_feature=no ;;
933 -docdir | --docdir | --docdi | --doc | --do)
935 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
938 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
940 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
943 -enable-* | --enable-*)
944 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
945 # Reject names that are not valid shell variable names.
946 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
947 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
948 { (exit 1); exit 1; }; }
949 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
950 eval enable_$ac_feature=\$ac_optarg ;;
952 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
953 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
954 | --exec | --exe | --ex)
955 ac_prev=exec_prefix ;;
956 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
957 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
958 | --exec=* | --exe=* | --ex=*)
959 exec_prefix=$ac_optarg ;;
961 -gas | --gas | --ga | --g)
962 # Obsolete; use --with-gas.
965 -help | --help | --hel | --he | -h)
967 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
968 ac_init_help=recursive ;;
969 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
970 ac_init_help=short ;;
972 -host | --host | --hos | --ho)
973 ac_prev=host_alias ;;
974 -host=* | --host=* | --hos=* | --ho=*)
975 host_alias=$ac_optarg ;;
977 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
979 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
981 htmldir=$ac_optarg ;;
983 -includedir | --includedir | --includedi | --included | --include \
984 | --includ | --inclu | --incl | --inc)
985 ac_prev=includedir ;;
986 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
987 | --includ=* | --inclu=* | --incl=* | --inc=*)
988 includedir=$ac_optarg ;;
990 -infodir | --infodir | --infodi | --infod | --info | --inf)
992 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
993 infodir=$ac_optarg ;;
995 -libdir | --libdir | --libdi | --libd)
997 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1000 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1001 | --libexe | --libex | --libe)
1002 ac_prev=libexecdir ;;
1003 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1004 | --libexe=* | --libex=* | --libe=*)
1005 libexecdir=$ac_optarg ;;
1007 -localedir | --localedir | --localedi | --localed | --locale)
1008 ac_prev=localedir ;;
1009 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1010 localedir=$ac_optarg ;;
1012 -localstatedir | --localstatedir | --localstatedi | --localstated \
1013 | --localstate | --localstat | --localsta | --localst | --locals)
1014 ac_prev=localstatedir ;;
1015 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1016 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1017 localstatedir=$ac_optarg ;;
1019 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1021 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1022 mandir=$ac_optarg ;;
1024 -nfp | --nfp | --nf)
1025 # Obsolete; use --without-fp.
1028 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029 | --no-cr | --no-c | -n)
1032 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1033 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1036 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1037 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1038 | --oldin | --oldi | --old | --ol | --o)
1039 ac_prev=oldincludedir ;;
1040 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1041 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1042 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1043 oldincludedir=$ac_optarg ;;
1045 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1047 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1048 prefix=$ac_optarg ;;
1050 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1051 | --program-pre | --program-pr | --program-p)
1052 ac_prev=program_prefix ;;
1053 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1054 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1055 program_prefix=$ac_optarg ;;
1057 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1058 | --program-suf | --program-su | --program-s)
1059 ac_prev=program_suffix ;;
1060 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1061 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1062 program_suffix=$ac_optarg ;;
1064 -program-transform-name | --program-transform-name \
1065 | --program-transform-nam | --program-transform-na \
1066 | --program-transform-n | --program-transform- \
1067 | --program-transform | --program-transfor \
1068 | --program-transfo | --program-transf \
1069 | --program-trans | --program-tran \
1070 | --progr-tra | --program-tr | --program-t)
1071 ac_prev=program_transform_name ;;
1072 -program-transform-name=* | --program-transform-name=* \
1073 | --program-transform-nam=* | --program-transform-na=* \
1074 | --program-transform-n=* | --program-transform-=* \
1075 | --program-transform=* | --program-transfor=* \
1076 | --program-transfo=* | --program-transf=* \
1077 | --program-trans=* | --program-tran=* \
1078 | --progr-tra=* | --program-tr=* | --program-t=*)
1079 program_transform_name=$ac_optarg ;;
1081 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1083 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1084 pdfdir=$ac_optarg ;;
1086 -psdir | --psdir | --psdi | --psd | --ps)
1088 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1092 | -silent | --silent | --silen | --sile | --sil)
1095 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1097 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1099 sbindir=$ac_optarg ;;
1101 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1102 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1103 | --sharedst | --shareds | --shared | --share | --shar \
1105 ac_prev=sharedstatedir ;;
1106 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1107 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1108 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1110 sharedstatedir=$ac_optarg ;;
1112 -site | --site | --sit)
1114 -site=* | --site=* | --sit=*)
1117 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1119 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1120 srcdir=$ac_optarg ;;
1122 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1123 | --syscon | --sysco | --sysc | --sys | --sy)
1124 ac_prev=sysconfdir ;;
1125 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1126 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1127 sysconfdir=$ac_optarg ;;
1129 -target | --target | --targe | --targ | --tar | --ta | --t)
1130 ac_prev=target_alias ;;
1131 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1132 target_alias=$ac_optarg ;;
1134 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1137 -version | --version | --versio | --versi | --vers | -V)
1138 ac_init_version=: ;;
1141 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1142 # Reject names that are not valid shell variable names.
1143 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1144 { echo "$as_me: error: invalid package name: $ac_package" >&2
1145 { (exit 1); exit 1; }; }
1146 ac_package=`echo $ac_package| sed 's/-/_/g'`
1147 eval with_$ac_package=\$ac_optarg ;;
1149 -without-* | --without-*)
1150 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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=no ;;
1159 # Obsolete; use --with-x.
1162 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1163 | --x-incl | --x-inc | --x-in | --x-i)
1164 ac_prev=x_includes ;;
1165 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1166 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1167 x_includes=$ac_optarg ;;
1169 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1170 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1171 ac_prev=x_libraries ;;
1172 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1173 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1174 x_libraries=$ac_optarg ;;
1176 -*) { echo "$as_me: error: unrecognized option: $ac_option
1177 Try \`$0 --help' for more information." >&2
1178 { (exit 1); exit 1; }; }
1182 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1183 # Reject names that are not valid shell variable names.
1184 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1185 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1186 { (exit 1); exit 1; }; }
1187 eval $ac_envvar=\$ac_optarg
1188 export $ac_envvar ;;
1191 # FIXME: should be removed in autoconf 3.0.
1192 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1193 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1194 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1195 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1201 if test -n "$ac_prev"; then
1202 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1203 { echo "$as_me: error: missing argument to $ac_option" >&2
1204 { (exit 1); exit 1; }; }
1207 # Be sure to have absolute directory names.
1208 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1209 datadir sysconfdir sharedstatedir localstatedir includedir \
1210 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1211 libdir localedir mandir
1213 eval ac_val=\$$ac_var
1215 [\\/$]* | ?:[\\/]* ) continue;;
1216 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1218 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1219 { (exit 1); exit 1; }; }
1222 # There might be people who depend on the old broken behavior: `$host'
1223 # used to hold the argument of --host etc.
1224 # FIXME: To remove some day.
1227 target=$target_alias
1229 # FIXME: To remove some day.
1230 if test "x$host_alias" != x; then
1231 if test "x$build_alias" = x; then
1232 cross_compiling=maybe
1233 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1234 If a cross compiler is detected then cross compile mode will be used." >&2
1235 elif test "x$build_alias" != "x$host_alias"; then
1241 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1243 test "$silent" = yes && exec 6>/dev/null
1246 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1247 ac_ls_di=`ls -di .` &&
1248 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1249 { echo "$as_me: error: Working directory cannot be determined" >&2
1250 { (exit 1); exit 1; }; }
1251 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1252 { echo "$as_me: error: pwd does not report name of working directory" >&2
1253 { (exit 1); exit 1; }; }
1256 # Find the source files, if location was not specified.
1257 if test -z "$srcdir"; then
1258 ac_srcdir_defaulted=yes
1259 # Try the directory containing this script, then the parent directory.
1260 ac_confdir=`$as_dirname -- "$0" ||
1261 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1262 X"$0" : 'X\(//\)[^/]' \| \
1263 X"$0" : 'X\(//\)$' \| \
1264 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1288 ac_srcdir_defaulted=no
1290 if test ! -r "$srcdir/$ac_unique_file"; then
1291 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1292 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1293 { (exit 1); exit 1; }; }
1295 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1297 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1298 { (exit 1); exit 1; }; }
1300 # When building in place, set srcdir=.
1301 if test "$ac_abs_confdir" = "$ac_pwd"; then
1304 # Remove unnecessary trailing slashes from srcdir.
1305 # Double slashes in file names in object file debugging info
1306 # mess up M-x gdb in Emacs.
1308 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1310 for ac_var in $ac_precious_vars; do
1311 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1312 eval ac_env_${ac_var}_value=\$${ac_var}
1313 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1314 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1318 # Report the --help message.
1320 if test "$ac_init_help" = "long"; then
1321 # Omit some internal or obsolete options to make the list less imposing.
1322 # This message is too long to be a string in the A/UX 3.1 sh.
1324 \`configure' configures LLVM 3.2svn to adapt to many kinds of systems.
1326 Usage: $0 [OPTION]... [VAR=VALUE]...
1328 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1329 VAR=VALUE. See below for descriptions of some of the useful variables.
1331 Defaults for the options are specified in brackets.
1334 -h, --help display this help and exit
1335 --help=short display options specific to this package
1336 --help=recursive display the short help of all the included packages
1337 -V, --version display version information and exit
1338 -q, --quiet, --silent do not print \`checking...' messages
1339 --cache-file=FILE cache test results in FILE [disabled]
1340 -C, --config-cache alias for \`--cache-file=config.cache'
1341 -n, --no-create do not create output files
1342 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1344 Installation directories:
1345 --prefix=PREFIX install architecture-independent files in PREFIX
1346 [$ac_default_prefix]
1347 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1350 By default, \`make install' will install all the files in
1351 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1352 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1353 for instance \`--prefix=\$HOME'.
1355 For better control, use the options below.
1357 Fine tuning of the installation directories:
1358 --bindir=DIR user executables [EPREFIX/bin]
1359 --sbindir=DIR system admin executables [EPREFIX/sbin]
1360 --libexecdir=DIR program executables [EPREFIX/libexec]
1361 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1362 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1363 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1364 --libdir=DIR object code libraries [EPREFIX/lib]
1365 --includedir=DIR C header files [PREFIX/include]
1366 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1367 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1368 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1369 --infodir=DIR info documentation [DATAROOTDIR/info]
1370 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1371 --mandir=DIR man documentation [DATAROOTDIR/man]
1372 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1373 --htmldir=DIR html documentation [DOCDIR]
1374 --dvidir=DIR dvi documentation [DOCDIR]
1375 --pdfdir=DIR pdf documentation [DOCDIR]
1376 --psdir=DIR ps documentation [DOCDIR]
1382 --build=BUILD configure for building on BUILD [guessed]
1383 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1384 --target=TARGET configure for building compilers for TARGET [HOST]
1388 if test -n "$ac_init_help"; then
1389 case $ac_init_help in
1390 short | recursive ) echo "Configuration of LLVM 3.2svn:";;
1395 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1396 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1397 --enable-polly Use polly if available (default is YES)
1398 --enable-libcpp Use libc++ if available (default is NO)
1399 --enable-cxx11 Use c++11 if available (default is NO)
1400 --enable-optimized Compile with optimizations enabled (default is NO)
1401 --enable-profiling Compile with profiling enabled (default is NO)
1402 --enable-assertions Compile with assertion checks enabled (default is
1404 --enable-werror Compile with -Werror enabled (default is NO)
1405 --enable-expensive-checks
1406 Compile with expensive debug checks enabled (default
1408 --enable-debug-runtime Build runtime libs with debug symbols (default is
1410 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1411 optimization is on and YES if it's off)
1412 --enable-keep-symbols Do not strip installed executables)
1413 --enable-jit Enable Just In Time Compiling (default is YES)
1414 --enable-docs Build documents (default is YES)
1415 --enable-doxygen Build doxygen documentation (default is NO)
1416 --enable-threads Use threads if available (default is YES)
1417 --enable-pthreads Use pthreads if available (default is YES)
1418 --enable-pic Build LLVM with Position Independent Code (default
1420 --enable-shared Build a shared library and link tools against it
1422 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1423 Win32 DLL (default is NO)
1424 --enable-timestamps Enable embedding timestamp information in build
1426 --enable-backtraces Enable embedding backtraces on crash (default is
1428 --enable-targets Build specific host targets: all or
1429 target1,target2,... Valid targets are: host, x86,
1430 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1431 xcore, msp430, nvptx, and cpp (default=all)
1432 --enable-experimental-targets
1433 Build experimental host targets: disable or
1434 target1,target2,... (default=disable)
1435 --enable-bindings Build specific language bindings:
1436 all,auto,none,{binding-name} (default=auto)
1437 --enable-libffi Check for the presence of libffi (default is NO)
1438 --enable-ltdl-install install libltdl
1441 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1442 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1443 --with-optimize-option Select the compiler options to use for optimized
1445 --with-extra-options Specify additional options to compile LLVM with
1446 --with-extra-ld-options Specify additional options to link LLVM with
1447 --with-ocaml-libdir Specify install location for ocaml bindings (default
1449 --with-clang-srcdir Directory to the out-of-tree Clang source
1450 --with-clang-resource-dir
1451 Relative directory from the Clang binary for
1453 --with-c-include-dirs Colon separated list of directories clang will
1455 --with-gcc-toolchain Directory where gcc is installed.
1456 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1457 --with-binutils-include Specify path to binutils/include/ containing
1458 plugin-api.h file for gold plugin.
1459 --with-bug-report-url Specify the URL where bug reports should be
1460 submitted (default=http://llvm.org/bugs/)
1461 --with-internal-prefix Installation directory for internal files
1462 --with-udis86=<path> Use udis86 external x86 disassembler library
1463 --with-oprofile=<prefix>
1464 Tell OProfile >= 0.9.4 how to symbolize JIT output
1465 --with-intel-jitevents=<vtune-amplifier-dir>
1466 Specify location of run-time support library for
1468 (default=/opt/intel/vtune_amplifier_xe_2011)
1470 Some influential environment variables:
1471 CC C compiler command
1472 CFLAGS C compiler flags
1473 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1474 nonstandard directory <lib dir>
1475 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1476 you have headers in a nonstandard directory <include dir>
1477 CXX C++ compiler command
1478 CXXFLAGS C++ compiler flags
1481 Use these variables to override the choices made by `configure' or to help
1482 it to find libraries and programs with nonstandard names/locations.
1484 Report bugs to <http://llvm.org/bugs/>.
1489 if test "$ac_init_help" = "recursive"; then
1490 # If there are subdirs, report their specific --help.
1491 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1492 test -d "$ac_dir" || continue
1496 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1499 # A ".." for each directory in $ac_dir_suffix.
1500 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1501 case $ac_top_builddir_sub in
1502 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1503 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1506 ac_abs_top_builddir=$ac_pwd
1507 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1508 # for backward compatibility:
1509 ac_top_builddir=$ac_top_build_prefix
1512 .) # We are building in place.
1514 ac_top_srcdir=$ac_top_builddir_sub
1515 ac_abs_top_srcdir=$ac_pwd ;;
1516 [\\/]* | ?:[\\/]* ) # Absolute name.
1517 ac_srcdir=$srcdir$ac_dir_suffix;
1518 ac_top_srcdir=$srcdir
1519 ac_abs_top_srcdir=$srcdir ;;
1521 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1522 ac_top_srcdir=$ac_top_build_prefix$srcdir
1523 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1525 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1527 cd "$ac_dir" || { ac_status=$?; continue; }
1528 # Check for guested configure.
1529 if test -f "$ac_srcdir/configure.gnu"; then
1531 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1532 elif test -f "$ac_srcdir/configure"; then
1534 $SHELL "$ac_srcdir/configure" --help=recursive
1536 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1538 cd "$ac_pwd" || { ac_status=$?; break; }
1542 test -n "$ac_init_help" && exit $ac_status
1543 if $ac_init_version; then
1545 LLVM configure 3.2svn
1546 generated by GNU Autoconf 2.60
1548 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1549 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1550 This configure script is free software; the Free Software Foundation
1551 gives unlimited permission to copy, distribute and modify it.
1553 Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
1557 cat >config.log <<_ACEOF
1558 This file contains any messages produced by compilers while
1559 running configure, to aid debugging if configure makes a mistake.
1561 It was created by LLVM $as_me 3.2svn, which was
1562 generated by GNU Autoconf 2.60. Invocation command line was
1574 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1575 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1576 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1577 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1578 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1580 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1581 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1583 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1584 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1585 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1586 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1587 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1588 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1589 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1597 test -z "$as_dir" && as_dir=.
1598 echo "PATH: $as_dir"
1614 # Keep a trace of the command line.
1615 # Strip out --no-create and --no-recursion so they do not pile up.
1616 # Strip out --silent because we don't want to record it for future runs.
1617 # Also quote any args containing shell meta-characters.
1618 # Make two passes to allow for proper duplicate-argument suppression.
1622 ac_must_keep_next=false
1628 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1629 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1630 | -silent | --silent | --silen | --sile | --sil)
1633 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1636 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1638 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1639 if test $ac_must_keep_next = true; then
1640 ac_must_keep_next=false # Got value, back to normal.
1643 *=* | --config-cache | -C | -disable-* | --disable-* \
1644 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1645 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1646 | -with-* | --with-* | -without-* | --without-* | --x)
1647 case "$ac_configure_args0 " in
1648 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1651 -* ) ac_must_keep_next=true ;;
1654 ac_configure_args="$ac_configure_args '$ac_arg'"
1659 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1660 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1662 # When interrupted or exit'd, cleanup temporary files, and complete
1663 # config.log. We remove comments because anyway the quotes in there
1664 # would cause problems or look ugly.
1665 # WARNING: Use '\'' to represent an apostrophe within the trap.
1666 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1667 trap 'exit_status=$?
1668 # Save into config.log some information that might help in debugging.
1673 ## ---------------- ##
1674 ## Cache variables. ##
1675 ## ---------------- ##
1678 # The following way of writing the cache mishandles newlines in values,
1680 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1681 eval ac_val=\$$ac_var
1685 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1686 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1689 _ | IFS | as_nl) ;; #(
1690 *) $as_unset $ac_var ;;
1695 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1696 *${as_nl}ac_space=\ *)
1698 "s/'\''/'\''\\\\'\'''\''/g;
1699 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1702 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1710 ## ----------------- ##
1711 ## Output variables. ##
1712 ## ----------------- ##
1715 for ac_var in $ac_subst_vars
1717 eval ac_val=\$$ac_var
1719 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1721 echo "$ac_var='\''$ac_val'\''"
1725 if test -n "$ac_subst_files"; then
1727 ## ------------------- ##
1728 ## File substitutions. ##
1729 ## ------------------- ##
1732 for ac_var in $ac_subst_files
1734 eval ac_val=\$$ac_var
1736 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1738 echo "$ac_var='\''$ac_val'\''"
1743 if test -s confdefs.h; then
1753 test "$ac_signal" != 0 &&
1754 echo "$as_me: caught signal $ac_signal"
1755 echo "$as_me: exit $exit_status"
1757 rm -f core *.core core.conftest.* &&
1758 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1761 for ac_signal in 1 2 13 15; do
1762 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1766 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1767 rm -f -r conftest* confdefs.h
1769 # Predefined preprocessor variables.
1771 cat >>confdefs.h <<_ACEOF
1772 #define PACKAGE_NAME "$PACKAGE_NAME"
1776 cat >>confdefs.h <<_ACEOF
1777 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1781 cat >>confdefs.h <<_ACEOF
1782 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1786 cat >>confdefs.h <<_ACEOF
1787 #define PACKAGE_STRING "$PACKAGE_STRING"
1791 cat >>confdefs.h <<_ACEOF
1792 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1796 # Let the site file select an alternate cache file if it wants to.
1797 # Prefer explicitly selected file to automatically selected ones.
1798 if test -n "$CONFIG_SITE"; then
1799 set x "$CONFIG_SITE"
1800 elif test "x$prefix" != xNONE; then
1801 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1803 set x "$ac_default_prefix/share/config.site" \
1804 "$ac_default_prefix/etc/config.site"
1809 if test -r "$ac_site_file"; then
1810 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1811 echo "$as_me: loading site script $ac_site_file" >&6;}
1812 sed 's/^/| /' "$ac_site_file" >&5
1817 if test -r "$cache_file"; then
1818 # Some versions of bash will fail to source /dev/null (special
1819 # files actually), so we avoid doing that.
1820 if test -f "$cache_file"; then
1821 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1822 echo "$as_me: loading cache $cache_file" >&6;}
1824 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1825 *) . "./$cache_file";;
1829 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1830 echo "$as_me: creating cache $cache_file" >&6;}
1834 # Check that the precious variables saved in the cache have kept the same
1836 ac_cache_corrupted=false
1837 for ac_var in $ac_precious_vars; do
1838 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1839 eval ac_new_set=\$ac_env_${ac_var}_set
1840 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1841 eval ac_new_val=\$ac_env_${ac_var}_value
1842 case $ac_old_set,$ac_new_set in
1844 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1845 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1846 ac_cache_corrupted=: ;;
1848 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1849 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1850 ac_cache_corrupted=: ;;
1853 if test "x$ac_old_val" != "x$ac_new_val"; then
1854 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1855 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1856 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1857 echo "$as_me: former value: $ac_old_val" >&2;}
1858 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1859 echo "$as_me: current value: $ac_new_val" >&2;}
1860 ac_cache_corrupted=:
1863 # Pass precious variables to config.status.
1864 if test "$ac_new_set" = set; then
1866 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1867 *) ac_arg=$ac_var=$ac_new_val ;;
1869 case " $ac_configure_args " in
1870 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1871 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1875 if $ac_cache_corrupted; then
1876 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1877 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1878 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1879 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1880 { (exit 1); exit 1; }; }
1908 ac_cpp='$CPP $CPPFLAGS'
1909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1915 cat >>confdefs.h <<\_ACEOF
1916 #define LLVM_VERSION_MAJOR 3
1920 cat >>confdefs.h <<\_ACEOF
1921 #define LLVM_VERSION_MINOR 2
1925 LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
1934 for ac_dir in autoconf "$srcdir"/autoconf; do
1935 if test -f "$ac_dir/install-sh"; then
1937 ac_install_sh="$ac_aux_dir/install-sh -c"
1939 elif test -f "$ac_dir/install.sh"; then
1941 ac_install_sh="$ac_aux_dir/install.sh -c"
1943 elif test -f "$ac_dir/shtool"; then
1945 ac_install_sh="$ac_aux_dir/shtool install -c"
1949 if test -z "$ac_aux_dir"; then
1950 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1951 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1952 { (exit 1); exit 1; }; }
1955 # These three variables are undocumented and unsupported,
1956 # and are intended to be withdrawn in a future Autoconf release.
1957 # They can cause serious problems if a builder's source tree is in a directory
1958 # whose full name contains unusual characters.
1959 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1960 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1961 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1965 if test ${srcdir} != "." ; then
1966 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1967 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1968 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1969 { (exit 1); exit 1; }; }
1974 ac_cpp='$CPP $CPPFLAGS'
1975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1978 if test -n "$ac_tool_prefix"; then
1979 for ac_prog in clang llvm-gcc gcc
1981 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1982 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1985 if test "${ac_cv_prog_CC+set}" = set; then
1986 echo $ECHO_N "(cached) $ECHO_C" >&6
1988 if test -n "$CC"; then
1989 ac_cv_prog_CC="$CC" # Let the user override the test.
1991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995 test -z "$as_dir" && as_dir=.
1996 for ac_exec_ext in '' $ac_executable_extensions; do
1997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1998 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2009 if test -n "$CC"; then
2010 { echo "$as_me:$LINENO: result: $CC" >&5
2011 echo "${ECHO_T}$CC" >&6; }
2013 { echo "$as_me:$LINENO: result: no" >&5
2014 echo "${ECHO_T}no" >&6; }
2018 test -n "$CC" && break
2021 if test -z "$CC"; then
2023 for ac_prog in clang llvm-gcc gcc
2025 # Extract the first word of "$ac_prog", so it can be a program name with args.
2026 set dummy $ac_prog; ac_word=$2
2027 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2029 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2030 echo $ECHO_N "(cached) $ECHO_C" >&6
2032 if test -n "$ac_ct_CC"; then
2033 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2039 test -z "$as_dir" && as_dir=.
2040 for ac_exec_ext in '' $ac_executable_extensions; do
2041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2042 ac_cv_prog_ac_ct_CC="$ac_prog"
2043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2052 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2053 if test -n "$ac_ct_CC"; then
2054 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2055 echo "${ECHO_T}$ac_ct_CC" >&6; }
2057 { echo "$as_me:$LINENO: result: no" >&5
2058 echo "${ECHO_T}no" >&6; }
2062 test -n "$ac_ct_CC" && break
2065 if test "x$ac_ct_CC" = x; then
2068 case $cross_compiling:$ac_tool_warned in
2070 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2071 whose name does not start with the host triplet. If you think this
2072 configuration is useful to you, please write to autoconf@gnu.org." >&5
2073 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2074 whose name does not start with the host triplet. If you think this
2075 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2076 ac_tool_warned=yes ;;
2083 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2084 See \`config.log' for more details." >&5
2085 echo "$as_me: error: no acceptable C compiler found in \$PATH
2086 See \`config.log' for more details." >&2;}
2087 { (exit 1); exit 1; }; }
2089 # Provide some information about the compiler.
2090 echo "$as_me:$LINENO: checking for C compiler version" >&5
2091 ac_compiler=`set X $ac_compile; echo $2`
2092 { (ac_try="$ac_compiler --version >&5"
2094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2095 *) ac_try_echo=$ac_try;;
2097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2098 (eval "$ac_compiler --version >&5") 2>&5
2100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101 (exit $ac_status); }
2102 { (ac_try="$ac_compiler -v >&5"
2104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2105 *) ac_try_echo=$ac_try;;
2107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2108 (eval "$ac_compiler -v >&5") 2>&5
2110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111 (exit $ac_status); }
2112 { (ac_try="$ac_compiler -V >&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 -V >&5") 2>&5
2120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121 (exit $ac_status); }
2123 cat >conftest.$ac_ext <<_ACEOF
2126 cat confdefs.h >>conftest.$ac_ext
2127 cat >>conftest.$ac_ext <<_ACEOF
2128 /* end confdefs.h. */
2138 ac_clean_files_save=$ac_clean_files
2139 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2140 # Try to create an executable without -o first, disregard a.out.
2141 # It will help us diagnose broken compilers, and finding out an intuition
2143 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2144 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2145 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2147 # List of possible output files, starting from the most likely.
2148 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2149 # only as a last resort. b.out is created by i960 compilers.
2150 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2152 # The IRIX 6 linker writes into existing files which may not be
2153 # executable, retaining their permissions. Remove them first so a
2154 # subsequent execution test works.
2156 for ac_file in $ac_files
2159 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2160 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2165 if { (ac_try="$ac_link_default"
2167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2168 *) ac_try_echo=$ac_try;;
2170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2171 (eval "$ac_link_default") 2>&5
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }; then
2175 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2176 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2177 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2178 # so that the user can short-circuit this test for compilers unknown to
2180 for ac_file in $ac_files
2182 test -f "$ac_file" || continue
2184 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2187 # We found the default executable, but exeext='' is most
2191 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2193 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2195 # We set ac_cv_exeext here because the later test for it is not
2196 # safe: cross compilers may not add the suffix if given an `-o'
2197 # argument, so we may need to know it at that point already.
2198 # Even if this section looks crufty: it has the advantage of
2205 test "$ac_cv_exeext" = no && ac_cv_exeext=
2208 echo "$as_me: failed program was:" >&5
2209 sed 's/^/| /' conftest.$ac_ext >&5
2211 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2212 See \`config.log' for more details." >&5
2213 echo "$as_me: error: C compiler cannot create executables
2214 See \`config.log' for more details." >&2;}
2215 { (exit 77); exit 77; }; }
2218 ac_exeext=$ac_cv_exeext
2219 { echo "$as_me:$LINENO: result: $ac_file" >&5
2220 echo "${ECHO_T}$ac_file" >&6; }
2222 # Check that the compiler produces executables we can run. If not, either
2223 # the compiler is broken, or we cross compile.
2224 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2225 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2226 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2227 # If not cross compiling, check that we can run a simple program.
2228 if test "$cross_compiling" != yes; then
2229 if { ac_try='./$ac_file'
2230 { (case "(($ac_try" in
2231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2232 *) ac_try_echo=$ac_try;;
2234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2235 (eval "$ac_try") 2>&5
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); }; }; then
2241 if test "$cross_compiling" = maybe; then
2244 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2245 If you meant to cross compile, use \`--host'.
2246 See \`config.log' for more details." >&5
2247 echo "$as_me: error: cannot run C compiled programs.
2248 If you meant to cross compile, use \`--host'.
2249 See \`config.log' for more details." >&2;}
2250 { (exit 1); exit 1; }; }
2254 { echo "$as_me:$LINENO: result: yes" >&5
2255 echo "${ECHO_T}yes" >&6; }
2257 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2258 ac_clean_files=$ac_clean_files_save
2259 # Check that the compiler produces executables we can run. If not, either
2260 # the compiler is broken, or we cross compile.
2261 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2262 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2263 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2264 echo "${ECHO_T}$cross_compiling" >&6; }
2266 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2267 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2268 if { (ac_try="$ac_link"
2270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2271 *) ac_try_echo=$ac_try;;
2273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2274 (eval "$ac_link") 2>&5
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); }; then
2278 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2279 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2280 # work properly (i.e., refer to `conftest.exe'), while it won't with
2282 for ac_file in conftest.exe conftest conftest.*; do
2283 test -f "$ac_file" || continue
2285 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2286 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2292 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2293 See \`config.log' for more details." >&5
2294 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2295 See \`config.log' for more details." >&2;}
2296 { (exit 1); exit 1; }; }
2299 rm -f conftest$ac_cv_exeext
2300 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2301 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2303 rm -f conftest.$ac_ext
2304 EXEEXT=$ac_cv_exeext
2306 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2307 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2308 if test "${ac_cv_objext+set}" = set; then
2309 echo $ECHO_N "(cached) $ECHO_C" >&6
2311 cat >conftest.$ac_ext <<_ACEOF
2314 cat confdefs.h >>conftest.$ac_ext
2315 cat >>conftest.$ac_ext <<_ACEOF
2316 /* end confdefs.h. */
2326 rm -f conftest.o conftest.obj
2327 if { (ac_try="$ac_compile"
2329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2330 *) ac_try_echo=$ac_try;;
2332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2333 (eval "$ac_compile") 2>&5
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); }; then
2337 for ac_file in conftest.o conftest.obj conftest.*; do
2338 test -f "$ac_file" || continue;
2340 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2341 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2346 echo "$as_me: failed program was:" >&5
2347 sed 's/^/| /' conftest.$ac_ext >&5
2349 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2350 See \`config.log' for more details." >&5
2351 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2352 See \`config.log' for more details." >&2;}
2353 { (exit 1); exit 1; }; }
2356 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2358 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2359 echo "${ECHO_T}$ac_cv_objext" >&6; }
2360 OBJEXT=$ac_cv_objext
2362 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2363 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2364 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2365 echo $ECHO_N "(cached) $ECHO_C" >&6
2367 cat >conftest.$ac_ext <<_ACEOF
2370 cat confdefs.h >>conftest.$ac_ext
2371 cat >>conftest.$ac_ext <<_ACEOF
2372 /* end confdefs.h. */
2385 rm -f conftest.$ac_objext
2386 if { (ac_try="$ac_compile"
2388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2389 *) ac_try_echo=$ac_try;;
2391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2392 (eval "$ac_compile") 2>conftest.er1
2394 grep -v '^ *+' conftest.er1 >conftest.err
2396 cat conftest.err >&5
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); } &&
2399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2400 { (case "(($ac_try" in
2401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2402 *) ac_try_echo=$ac_try;;
2404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2405 (eval "$ac_try") 2>&5
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }; } &&
2409 { ac_try='test -s conftest.$ac_objext'
2410 { (case "(($ac_try" in
2411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2412 *) ac_try_echo=$ac_try;;
2414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2415 (eval "$ac_try") 2>&5
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); }; }; then
2421 echo "$as_me: failed program was:" >&5
2422 sed 's/^/| /' conftest.$ac_ext >&5
2427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2428 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2431 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2432 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2433 GCC=`test $ac_compiler_gnu = yes && echo yes`
2434 ac_test_CFLAGS=${CFLAGS+set}
2435 ac_save_CFLAGS=$CFLAGS
2436 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2437 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2438 if test "${ac_cv_prog_cc_g+set}" = set; then
2439 echo $ECHO_N "(cached) $ECHO_C" >&6
2441 ac_save_c_werror_flag=$ac_c_werror_flag
2442 ac_c_werror_flag=yes
2445 cat >conftest.$ac_ext <<_ACEOF
2448 cat confdefs.h >>conftest.$ac_ext
2449 cat >>conftest.$ac_ext <<_ACEOF
2450 /* end confdefs.h. */
2460 rm -f conftest.$ac_objext
2461 if { (ac_try="$ac_compile"
2463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2464 *) ac_try_echo=$ac_try;;
2466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2467 (eval "$ac_compile") 2>conftest.er1
2469 grep -v '^ *+' conftest.er1 >conftest.err
2471 cat conftest.err >&5
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); } &&
2474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2475 { (case "(($ac_try" in
2476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2477 *) ac_try_echo=$ac_try;;
2479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2480 (eval "$ac_try") 2>&5
2482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483 (exit $ac_status); }; } &&
2484 { ac_try='test -s conftest.$ac_objext'
2485 { (case "(($ac_try" in
2486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2487 *) ac_try_echo=$ac_try;;
2489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2490 (eval "$ac_try") 2>&5
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); }; }; then
2496 echo "$as_me: failed program was:" >&5
2497 sed 's/^/| /' conftest.$ac_ext >&5
2500 cat >conftest.$ac_ext <<_ACEOF
2503 cat confdefs.h >>conftest.$ac_ext
2504 cat >>conftest.$ac_ext <<_ACEOF
2505 /* end confdefs.h. */
2515 rm -f conftest.$ac_objext
2516 if { (ac_try="$ac_compile"
2518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2519 *) ac_try_echo=$ac_try;;
2521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2522 (eval "$ac_compile") 2>conftest.er1
2524 grep -v '^ *+' conftest.er1 >conftest.err
2526 cat conftest.err >&5
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); } &&
2529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2530 { (case "(($ac_try" in
2531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2532 *) ac_try_echo=$ac_try;;
2534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2535 (eval "$ac_try") 2>&5
2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538 (exit $ac_status); }; } &&
2539 { ac_try='test -s conftest.$ac_objext'
2540 { (case "(($ac_try" in
2541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2542 *) ac_try_echo=$ac_try;;
2544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2545 (eval "$ac_try") 2>&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; }; then
2551 echo "$as_me: failed program was:" >&5
2552 sed 's/^/| /' conftest.$ac_ext >&5
2554 ac_c_werror_flag=$ac_save_c_werror_flag
2556 cat >conftest.$ac_ext <<_ACEOF
2559 cat confdefs.h >>conftest.$ac_ext
2560 cat >>conftest.$ac_ext <<_ACEOF
2561 /* end confdefs.h. */
2571 rm -f conftest.$ac_objext
2572 if { (ac_try="$ac_compile"
2574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2575 *) ac_try_echo=$ac_try;;
2577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2578 (eval "$ac_compile") 2>conftest.er1
2580 grep -v '^ *+' conftest.er1 >conftest.err
2582 cat conftest.err >&5
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); } &&
2585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2586 { (case "(($ac_try" in
2587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2588 *) ac_try_echo=$ac_try;;
2590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2591 (eval "$ac_try") 2>&5
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }; } &&
2595 { ac_try='test -s conftest.$ac_objext'
2596 { (case "(($ac_try" in
2597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2598 *) ac_try_echo=$ac_try;;
2600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2601 (eval "$ac_try") 2>&5
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); }; }; then
2607 echo "$as_me: failed program was:" >&5
2608 sed 's/^/| /' conftest.$ac_ext >&5
2613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2620 ac_c_werror_flag=$ac_save_c_werror_flag
2622 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2623 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2624 if test "$ac_test_CFLAGS" = set; then
2625 CFLAGS=$ac_save_CFLAGS
2626 elif test $ac_cv_prog_cc_g = yes; then
2627 if test "$GCC" = yes; then
2633 if test "$GCC" = yes; then
2639 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2640 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2641 if test "${ac_cv_prog_cc_c89+set}" = set; then
2642 echo $ECHO_N "(cached) $ECHO_C" >&6
2644 ac_cv_prog_cc_c89=no
2646 cat >conftest.$ac_ext <<_ACEOF
2649 cat confdefs.h >>conftest.$ac_ext
2650 cat >>conftest.$ac_ext <<_ACEOF
2651 /* end confdefs.h. */
2654 #include <sys/types.h>
2655 #include <sys/stat.h>
2656 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2657 struct buf { int x; };
2658 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2659 static char *e (p, i)
2665 static char *f (char * (*g) (char **, int), char **p, ...)
2670 s = g (p, va_arg (v,int));
2675 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2676 function prototypes and stuff, but not '\xHH' hex character constants.
2677 These don't provoke an error unfortunately, instead are silently treated
2678 as 'x'. The following induces an error, until -std is added to get
2679 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2680 array size at least. It's necessary to write '\x00'==0 to get something
2681 that's true only with -std. */
2682 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2684 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2685 inside strings and character constants. */
2687 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2689 int test (int i, double x);
2690 struct s1 {int (*f) (int a);};
2691 struct s2 {int (*f) (double a);};
2692 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2698 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2703 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2704 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2706 CC="$ac_save_CC $ac_arg"
2707 rm -f conftest.$ac_objext
2708 if { (ac_try="$ac_compile"
2710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711 *) ac_try_echo=$ac_try;;
2713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2714 (eval "$ac_compile") 2>conftest.er1
2716 grep -v '^ *+' conftest.er1 >conftest.err
2718 cat conftest.err >&5
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); } &&
2721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2722 { (case "(($ac_try" in
2723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724 *) ac_try_echo=$ac_try;;
2726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727 (eval "$ac_try") 2>&5
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); }; } &&
2731 { ac_try='test -s conftest.$ac_objext'
2732 { (case "(($ac_try" in
2733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734 *) ac_try_echo=$ac_try;;
2736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2737 (eval "$ac_try") 2>&5
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }; }; then
2741 ac_cv_prog_cc_c89=$ac_arg
2743 echo "$as_me: failed program was:" >&5
2744 sed 's/^/| /' conftest.$ac_ext >&5
2749 rm -f core conftest.err conftest.$ac_objext
2750 test "x$ac_cv_prog_cc_c89" != "xno" && break
2752 rm -f conftest.$ac_ext
2757 case "x$ac_cv_prog_cc_c89" in
2759 { echo "$as_me:$LINENO: result: none needed" >&5
2760 echo "${ECHO_T}none needed" >&6; } ;;
2762 { echo "$as_me:$LINENO: result: unsupported" >&5
2763 echo "${ECHO_T}unsupported" >&6; } ;;
2765 CC="$CC $ac_cv_prog_cc_c89"
2766 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2767 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2772 ac_cpp='$CPP $CPPFLAGS'
2773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2778 ac_cpp='$CXXCPP $CPPFLAGS'
2779 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2780 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2781 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2782 if test -z "$CXX"; then
2783 if test -n "$CCC"; then
2786 if test -n "$ac_tool_prefix"; then
2787 for ac_prog in clang++ llvm-g++ g++
2789 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2790 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2791 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2793 if test "${ac_cv_prog_CXX+set}" = set; then
2794 echo $ECHO_N "(cached) $ECHO_C" >&6
2796 if test -n "$CXX"; then
2797 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803 test -z "$as_dir" && as_dir=.
2804 for ac_exec_ext in '' $ac_executable_extensions; do
2805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2806 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2817 if test -n "$CXX"; then
2818 { echo "$as_me:$LINENO: result: $CXX" >&5
2819 echo "${ECHO_T}$CXX" >&6; }
2821 { echo "$as_me:$LINENO: result: no" >&5
2822 echo "${ECHO_T}no" >&6; }
2826 test -n "$CXX" && break
2829 if test -z "$CXX"; then
2831 for ac_prog in clang++ llvm-g++ g++
2833 # Extract the first word of "$ac_prog", so it can be a program name with args.
2834 set dummy $ac_prog; ac_word=$2
2835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2837 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2838 echo $ECHO_N "(cached) $ECHO_C" >&6
2840 if test -n "$ac_ct_CXX"; then
2841 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 test -z "$as_dir" && as_dir=.
2848 for ac_exec_ext in '' $ac_executable_extensions; do
2849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2850 ac_cv_prog_ac_ct_CXX="$ac_prog"
2851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2860 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2861 if test -n "$ac_ct_CXX"; then
2862 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2863 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2865 { echo "$as_me:$LINENO: result: no" >&5
2866 echo "${ECHO_T}no" >&6; }
2870 test -n "$ac_ct_CXX" && break
2873 if test "x$ac_ct_CXX" = x; then
2876 case $cross_compiling:$ac_tool_warned in
2878 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2879 whose name does not start with the host triplet. If you think this
2880 configuration is useful to you, please write to autoconf@gnu.org." >&5
2881 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2882 whose name does not start with the host triplet. If you think this
2883 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2884 ac_tool_warned=yes ;;
2892 # Provide some information about the compiler.
2893 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2894 ac_compiler=`set X $ac_compile; echo $2`
2895 { (ac_try="$ac_compiler --version >&5"
2897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2898 *) ac_try_echo=$ac_try;;
2900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2901 (eval "$ac_compiler --version >&5") 2>&5
2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); }
2905 { (ac_try="$ac_compiler -v >&5"
2907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908 *) ac_try_echo=$ac_try;;
2910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2911 (eval "$ac_compiler -v >&5") 2>&5
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); }
2915 { (ac_try="$ac_compiler -V >&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 -V >&5") 2>&5
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); }
2926 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2927 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2928 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2929 echo $ECHO_N "(cached) $ECHO_C" >&6
2931 cat >conftest.$ac_ext <<_ACEOF
2934 cat confdefs.h >>conftest.$ac_ext
2935 cat >>conftest.$ac_ext <<_ACEOF
2936 /* end confdefs.h. */
2949 rm -f conftest.$ac_objext
2950 if { (ac_try="$ac_compile"
2952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953 *) ac_try_echo=$ac_try;;
2955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2956 (eval "$ac_compile") 2>conftest.er1
2958 grep -v '^ *+' conftest.er1 >conftest.err
2960 cat conftest.err >&5
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); } &&
2963 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2964 { (case "(($ac_try" in
2965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966 *) ac_try_echo=$ac_try;;
2968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2969 (eval "$ac_try") 2>&5
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); }; } &&
2973 { ac_try='test -s conftest.$ac_objext'
2974 { (case "(($ac_try" in
2975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2976 *) ac_try_echo=$ac_try;;
2978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2979 (eval "$ac_try") 2>&5
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); }; }; then
2985 echo "$as_me: failed program was:" >&5
2986 sed 's/^/| /' conftest.$ac_ext >&5
2991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2992 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2995 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2996 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2997 GXX=`test $ac_compiler_gnu = yes && echo yes`
2998 ac_test_CXXFLAGS=${CXXFLAGS+set}
2999 ac_save_CXXFLAGS=$CXXFLAGS
3000 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3001 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3002 if test "${ac_cv_prog_cxx_g+set}" = set; then
3003 echo $ECHO_N "(cached) $ECHO_C" >&6
3005 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3006 ac_cxx_werror_flag=yes
3009 cat >conftest.$ac_ext <<_ACEOF
3012 cat confdefs.h >>conftest.$ac_ext
3013 cat >>conftest.$ac_ext <<_ACEOF
3014 /* end confdefs.h. */
3024 rm -f conftest.$ac_objext
3025 if { (ac_try="$ac_compile"
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031 (eval "$ac_compile") 2>conftest.er1
3033 grep -v '^ *+' conftest.er1 >conftest.err
3035 cat conftest.err >&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); } &&
3038 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3039 { (case "(($ac_try" in
3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044 (eval "$ac_try") 2>&5
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }; } &&
3048 { ac_try='test -s conftest.$ac_objext'
3049 { (case "(($ac_try" in
3050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051 *) ac_try_echo=$ac_try;;
3053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3054 (eval "$ac_try") 2>&5
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); }; }; then
3058 ac_cv_prog_cxx_g=yes
3060 echo "$as_me: failed program was:" >&5
3061 sed 's/^/| /' conftest.$ac_ext >&5
3064 cat >conftest.$ac_ext <<_ACEOF
3067 cat confdefs.h >>conftest.$ac_ext
3068 cat >>conftest.$ac_ext <<_ACEOF
3069 /* end confdefs.h. */
3079 rm -f conftest.$ac_objext
3080 if { (ac_try="$ac_compile"
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086 (eval "$ac_compile") 2>conftest.er1
3088 grep -v '^ *+' conftest.er1 >conftest.err
3090 cat conftest.err >&5
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); } &&
3093 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3094 { (case "(($ac_try" in
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099 (eval "$ac_try") 2>&5
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; } &&
3103 { ac_try='test -s conftest.$ac_objext'
3104 { (case "(($ac_try" in
3105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106 *) ac_try_echo=$ac_try;;
3108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3109 (eval "$ac_try") 2>&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); }; }; then
3115 echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3118 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3120 cat >conftest.$ac_ext <<_ACEOF
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h. */
3135 rm -f conftest.$ac_objext
3136 if { (ac_try="$ac_compile"
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142 (eval "$ac_compile") 2>conftest.er1
3144 grep -v '^ *+' conftest.er1 >conftest.err
3146 cat conftest.err >&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } &&
3149 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3150 { (case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155 (eval "$ac_try") 2>&5
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; } &&
3159 { ac_try='test -s conftest.$ac_objext'
3160 { (case "(($ac_try" in
3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3165 (eval "$ac_try") 2>&5
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; }; then
3169 ac_cv_prog_cxx_g=yes
3171 echo "$as_me: failed program was:" >&5
3172 sed 's/^/| /' conftest.$ac_ext >&5
3177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3184 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3186 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3187 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3188 if test "$ac_test_CXXFLAGS" = set; then
3189 CXXFLAGS=$ac_save_CXXFLAGS
3190 elif test $ac_cv_prog_cxx_g = yes; then
3191 if test "$GXX" = yes; then
3197 if test "$GXX" = yes; then
3204 ac_cpp='$CPP $CPPFLAGS'
3205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3210 ac_cpp='$CPP $CPPFLAGS'
3211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3214 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3215 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3216 # On Suns, sometimes $CPP names a directory.
3217 if test -n "$CPP" && test -d "$CPP"; then
3220 if test -z "$CPP"; then
3221 if test "${ac_cv_prog_CPP+set}" = set; then
3222 echo $ECHO_N "(cached) $ECHO_C" >&6
3224 # Double quotes because CPP needs to be expanded
3225 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3228 for ac_c_preproc_warn_flag in '' yes
3230 # Use a header file that comes with gcc, so configuring glibc
3231 # with a fresh cross-compiler works.
3232 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3233 # <limits.h> exists even on freestanding compilers.
3234 # On the NeXT, cc -E runs the code through the compiler's parser,
3235 # not just through cpp. "Syntax error" is here to catch this case.
3236 cat >conftest.$ac_ext <<_ACEOF
3239 cat confdefs.h >>conftest.$ac_ext
3240 cat >>conftest.$ac_ext <<_ACEOF
3241 /* end confdefs.h. */
3243 # include <limits.h>
3245 # include <assert.h>
3249 if { (ac_try="$ac_cpp conftest.$ac_ext"
3251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252 *) ac_try_echo=$ac_try;;
3254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3257 grep -v '^ *+' conftest.er1 >conftest.err
3259 cat conftest.err >&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); } >/dev/null; then
3262 if test -s conftest.err; then
3263 ac_cpp_err=$ac_c_preproc_warn_flag
3264 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3271 if test -z "$ac_cpp_err"; then
3274 echo "$as_me: failed program was:" >&5
3275 sed 's/^/| /' conftest.$ac_ext >&5
3277 # Broken: fails on valid input.
3281 rm -f conftest.err conftest.$ac_ext
3283 # OK, works on sane cases. Now check whether nonexistent headers
3284 # can be detected and how.
3285 cat >conftest.$ac_ext <<_ACEOF
3288 cat confdefs.h >>conftest.$ac_ext
3289 cat >>conftest.$ac_ext <<_ACEOF
3290 /* end confdefs.h. */
3291 #include <ac_nonexistent.h>
3293 if { (ac_try="$ac_cpp conftest.$ac_ext"
3295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3296 *) ac_try_echo=$ac_try;;
3298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3299 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3301 grep -v '^ *+' conftest.er1 >conftest.err
3303 cat conftest.err >&5
3304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305 (exit $ac_status); } >/dev/null; then
3306 if test -s conftest.err; then
3307 ac_cpp_err=$ac_c_preproc_warn_flag
3308 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3315 if test -z "$ac_cpp_err"; then
3316 # Broken: success on invalid input.
3319 echo "$as_me: failed program was:" >&5
3320 sed 's/^/| /' conftest.$ac_ext >&5
3322 # Passes both tests.
3327 rm -f conftest.err conftest.$ac_ext
3330 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3331 rm -f conftest.err conftest.$ac_ext
3332 if $ac_preproc_ok; then
3344 { echo "$as_me:$LINENO: result: $CPP" >&5
3345 echo "${ECHO_T}$CPP" >&6; }
3347 for ac_c_preproc_warn_flag in '' yes
3349 # Use a header file that comes with gcc, so configuring glibc
3350 # with a fresh cross-compiler works.
3351 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3352 # <limits.h> exists even on freestanding compilers.
3353 # On the NeXT, cc -E runs the code through the compiler's parser,
3354 # not just through cpp. "Syntax error" is here to catch this case.
3355 cat >conftest.$ac_ext <<_ACEOF
3358 cat confdefs.h >>conftest.$ac_ext
3359 cat >>conftest.$ac_ext <<_ACEOF
3360 /* end confdefs.h. */
3362 # include <limits.h>
3364 # include <assert.h>
3368 if { (ac_try="$ac_cpp conftest.$ac_ext"
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3374 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3376 grep -v '^ *+' conftest.er1 >conftest.err
3378 cat conftest.err >&5
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); } >/dev/null; then
3381 if test -s conftest.err; then
3382 ac_cpp_err=$ac_c_preproc_warn_flag
3383 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3390 if test -z "$ac_cpp_err"; then
3393 echo "$as_me: failed program was:" >&5
3394 sed 's/^/| /' conftest.$ac_ext >&5
3396 # Broken: fails on valid input.
3400 rm -f conftest.err conftest.$ac_ext
3402 # OK, works on sane cases. Now check whether nonexistent headers
3403 # can be detected and how.
3404 cat >conftest.$ac_ext <<_ACEOF
3407 cat confdefs.h >>conftest.$ac_ext
3408 cat >>conftest.$ac_ext <<_ACEOF
3409 /* end confdefs.h. */
3410 #include <ac_nonexistent.h>
3412 if { (ac_try="$ac_cpp conftest.$ac_ext"
3414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415 *) ac_try_echo=$ac_try;;
3417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3418 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3420 grep -v '^ *+' conftest.er1 >conftest.err
3422 cat conftest.err >&5
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); } >/dev/null; then
3425 if test -s conftest.err; then
3426 ac_cpp_err=$ac_c_preproc_warn_flag
3427 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3434 if test -z "$ac_cpp_err"; then
3435 # Broken: success on invalid input.
3438 echo "$as_me: failed program was:" >&5
3439 sed 's/^/| /' conftest.$ac_ext >&5
3441 # Passes both tests.
3446 rm -f conftest.err conftest.$ac_ext
3449 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3450 rm -f conftest.err conftest.$ac_ext
3451 if $ac_preproc_ok; then
3454 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3455 See \`config.log' for more details." >&5
3456 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3457 See \`config.log' for more details." >&2;}
3458 { (exit 1); exit 1; }; }
3462 ac_cpp='$CPP $CPPFLAGS'
3463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3470 if test -d ${srcdir}/projects/llvm-gcc ; then
3471 subdirs="$subdirs projects/llvm-gcc"
3475 if test -d ${srcdir}/projects/test-suite ; then
3476 subdirs="$subdirs projects/test-suite"
3480 if test -d ${srcdir}/projects/llvm-test ; then
3481 subdirs="$subdirs projects/llvm-test"
3485 if test -d ${srcdir}/projects/poolalloc ; then
3486 subdirs="$subdirs projects/poolalloc"
3490 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3491 subdirs="$subdirs projects/llvm-poolalloc"
3495 for i in `ls ${srcdir}/projects`
3497 if test -d ${srcdir}/projects/${i} ; then
3499 sample) subdirs="$subdirs projects/sample"
3501 privbracket) subdirs="$subdirs projects/privbracket"
3503 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3505 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3507 llvm-java) subdirs="$subdirs projects/llvm-java"
3509 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3511 safecode) subdirs="$subdirs projects/safecode"
3513 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3522 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3523 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3529 # Check whether --enable-polly was given.
3530 if test "${enable_polly+set}" = set; then
3531 enableval=$enable_polly;
3536 case "$enableval" in
3541 default) ENABLE_POLLY=1
3543 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3544 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3545 { (exit 1); exit 1; }; } ;;
3549 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3552 subdirs="$subdirs tools/polly"
3557 # Make sure we can run config.sub.
3558 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3559 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3560 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3561 { (exit 1); exit 1; }; }
3563 { echo "$as_me:$LINENO: checking build system type" >&5
3564 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3565 if test "${ac_cv_build+set}" = set; then
3566 echo $ECHO_N "(cached) $ECHO_C" >&6
3568 ac_build_alias=$build_alias
3569 test "x$ac_build_alias" = x &&
3570 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3571 test "x$ac_build_alias" = x &&
3572 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3573 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3574 { (exit 1); exit 1; }; }
3575 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3576 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3577 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3578 { (exit 1); exit 1; }; }
3581 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3582 echo "${ECHO_T}$ac_cv_build" >&6; }
3583 case $ac_cv_build in
3585 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3586 echo "$as_me: error: invalid value of canonical build" >&2;}
3587 { (exit 1); exit 1; }; };;
3590 ac_save_IFS=$IFS; IFS='-'
3596 # Remember, the first character of IFS is used to create $*,
3597 # except with old shells:
3600 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3603 { echo "$as_me:$LINENO: checking host system type" >&5
3604 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3605 if test "${ac_cv_host+set}" = set; then
3606 echo $ECHO_N "(cached) $ECHO_C" >&6
3608 if test "x$host_alias" = x; then
3609 ac_cv_host=$ac_cv_build
3611 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3612 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3613 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3614 { (exit 1); exit 1; }; }
3618 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3619 echo "${ECHO_T}$ac_cv_host" >&6; }
3622 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3623 echo "$as_me: error: invalid value of canonical host" >&2;}
3624 { (exit 1); exit 1; }; };;
3627 ac_save_IFS=$IFS; IFS='-'
3633 # Remember, the first character of IFS is used to create $*,
3634 # except with old shells:
3637 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3640 { echo "$as_me:$LINENO: checking target system type" >&5
3641 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3642 if test "${ac_cv_target+set}" = set; then
3643 echo $ECHO_N "(cached) $ECHO_C" >&6
3645 if test "x$target_alias" = x; then
3646 ac_cv_target=$ac_cv_host
3648 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3649 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3650 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3651 { (exit 1); exit 1; }; }
3655 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3656 echo "${ECHO_T}$ac_cv_target" >&6; }
3657 case $ac_cv_target in
3659 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3660 echo "$as_me: error: invalid value of canonical target" >&2;}
3661 { (exit 1); exit 1; }; };;
3663 target=$ac_cv_target
3664 ac_save_IFS=$IFS; IFS='-'
3670 # Remember, the first character of IFS is used to create $*,
3671 # except with old shells:
3674 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3677 # The aliases save the names the user supplied, while $host etc.
3678 # will get canonicalized.
3679 test -n "$target_alias" &&
3680 test "$program_prefix$program_suffix$program_transform_name" = \
3682 program_prefix=${target_alias}-
3684 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3685 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3686 if test "${llvm_cv_os_type+set}" = set; then
3687 echo $ECHO_N "(cached) $ECHO_C" >&6
3691 llvm_cv_link_all_option="-Wl,--whole-archive"
3692 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3693 llvm_cv_os_type="AIX"
3694 llvm_cv_platform_type="Unix" ;;
3696 llvm_cv_link_all_option="-Wl,--whole-archive"
3697 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3698 llvm_cv_os_type="IRIX"
3699 llvm_cv_platform_type="Unix" ;;
3701 llvm_cv_link_all_option="-Wl,--whole-archive"
3702 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3703 llvm_cv_os_type="Cygwin"
3704 llvm_cv_platform_type="Unix" ;;
3706 llvm_cv_link_all_option="-Wl,-all_load"
3707 llvm_cv_no_link_all_option="-Wl,-noall_load"
3708 llvm_cv_os_type="Darwin"
3709 llvm_cv_platform_type="Unix" ;;
3711 llvm_cv_link_all_option="-Wl,-all_load"
3712 llvm_cv_no_link_all_option="-Wl,-noall_load"
3713 llvm_cv_os_type="Minix"
3714 llvm_cv_platform_type="Unix" ;;
3715 *-*-freebsd* | *-*-kfreebsd-gnu)
3716 llvm_cv_link_all_option="-Wl,--whole-archive"
3717 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3718 llvm_cv_os_type="FreeBSD"
3719 llvm_cv_platform_type="Unix" ;;
3721 llvm_cv_link_all_option="-Wl,--whole-archive"
3722 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3723 llvm_cv_os_type="OpenBSD"
3724 llvm_cv_platform_type="Unix" ;;
3726 llvm_cv_link_all_option="-Wl,--whole-archive"
3727 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3728 llvm_cv_os_type="NetBSD"
3729 llvm_cv_platform_type="Unix" ;;
3731 llvm_cv_link_all_option="-Wl,--whole-archive"
3732 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3733 llvm_cv_os_type="DragonFly"
3734 llvm_cv_platform_type="Unix" ;;
3736 llvm_cv_link_all_option="-Wl,--whole-archive"
3737 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3738 llvm_cv_os_type="HP-UX"
3739 llvm_cv_platform_type="Unix" ;;
3741 llvm_cv_link_all_option="-Wl,--whole-archive"
3742 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3743 llvm_cv_os_type="Interix"
3744 llvm_cv_platform_type="Unix" ;;
3746 llvm_cv_link_all_option="-Wl,--whole-archive"
3747 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3748 llvm_cv_os_type="Linux"
3749 llvm_cv_platform_type="Unix" ;;
3751 llvm_cv_link_all_option="-Wl,--whole-archive"
3752 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3753 llvm_cv_os_type="GNU"
3754 llvm_cv_platform_type="Unix" ;;
3756 llvm_cv_link_all_option="-Wl,-z,allextract"
3757 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3758 llvm_cv_os_type="SunOS"
3759 llvm_cv_platform_type="Unix" ;;
3761 llvm_cv_link_all_option="-Wl,-z,allextract"
3762 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3763 llvm_cv_os_type="AuroraUX"
3764 llvm_cv_platform_type="Unix" ;;
3766 llvm_cv_link_all_option="-Wl,--whole-archive"
3767 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3768 llvm_cv_os_type="Win32"
3769 llvm_cv_platform_type="Win32" ;;
3771 llvm_cv_link_all_option="-Wl,--whole-archive"
3772 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3773 llvm_cv_os_type="MingW"
3774 llvm_cv_platform_type="Win32" ;;
3776 llvm_cv_link_all_option="-Wl,--whole-archive"
3777 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3778 llvm_cv_os_type="Haiku"
3779 llvm_cv_platform_type="Unix" ;;
3781 llvm_cv_link_all_option="-Wl,--whole-archive"
3782 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3783 llvm_cv_os_type="Freestanding"
3784 llvm_cv_platform_type="Unix" ;;
3786 llvm_cv_link_all_option="-Wl,--whole-archive"
3787 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3788 llvm_cv_os_type="Freestanding"
3789 llvm_cv_platform_type="Unix" ;;
3791 llvm_cv_link_all_option=""
3792 llvm_cv_no_link_all_option=""
3793 llvm_cv_os_type="Unknown"
3794 llvm_cv_platform_type="Unknown" ;;
3797 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3798 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3800 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3801 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3802 if test "${llvm_cv_target_os_type+set}" = set; then
3803 echo $ECHO_N "(cached) $ECHO_C" >&6
3807 llvm_cv_target_os_type="AIX" ;;
3809 llvm_cv_target_os_type="IRIX" ;;
3811 llvm_cv_target_os_type="Cygwin" ;;
3813 llvm_cv_target_os_type="Darwin" ;;
3815 llvm_cv_target_os_type="Minix" ;;
3816 *-*-freebsd* | *-*-kfreebsd-gnu)
3817 llvm_cv_target_os_type="FreeBSD" ;;
3819 llvm_cv_target_os_type="OpenBSD" ;;
3821 llvm_cv_target_os_type="NetBSD" ;;
3823 llvm_cv_target_os_type="DragonFly" ;;
3825 llvm_cv_target_os_type="HP-UX" ;;
3827 llvm_cv_target_os_type="Interix" ;;
3829 llvm_cv_target_os_type="Linux" ;;
3831 llvm_cv_target_os_type="GNU" ;;
3833 llvm_cv_target_os_type="SunOS" ;;
3835 llvm_cv_target_os_type="AuroraUX" ;;
3837 llvm_cv_target_os_type="Win32" ;;
3839 llvm_cv_target_os_type="MingW" ;;
3841 llvm_cv_target_os_type="Haiku" ;;
3843 llvm_cv_target_os_type="RTEMS" ;;
3845 llvm_cv_target_os_type="NativeClient" ;;
3847 llvm_cv_target_os_type="Freestanding" ;;
3849 llvm_cv_target_os_type="Unknown" ;;
3852 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3853 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3855 if test "$llvm_cv_os_type" = "Unknown" ; then
3856 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3857 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3858 { (exit 1); exit 1; }; }
3863 HOST_OS=$llvm_cv_os_type
3865 TARGET_OS=$llvm_cv_target_os_type
3868 LINKALL=$llvm_cv_link_all_option
3870 NOLINKALL=$llvm_cv_no_link_all_option
3873 case $llvm_cv_platform_type in
3876 cat >>confdefs.h <<\_ACEOF
3877 #define LLVM_ON_UNIX 1
3887 cat >>confdefs.h <<\_ACEOF
3888 #define LLVM_ON_WIN32 1
3898 { echo "$as_me:$LINENO: checking target architecture" >&5
3899 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3900 if test "${llvm_cv_target_arch+set}" = set; then
3901 echo $ECHO_N "(cached) $ECHO_C" >&6
3904 i?86-*) llvm_cv_target_arch="x86" ;;
3905 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3906 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3907 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3908 arm*-*) llvm_cv_target_arch="ARM" ;;
3909 mips-*) llvm_cv_target_arch="Mips" ;;
3910 mipsel-*) llvm_cv_target_arch="Mips" ;;
3911 xcore-*) llvm_cv_target_arch="XCore" ;;
3912 msp430-*) llvm_cv_target_arch="MSP430" ;;
3913 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
3914 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3915 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
3916 *) llvm_cv_target_arch="Unknown" ;;
3919 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3920 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3922 if test "$llvm_cv_target_arch" = "Unknown" ; then
3923 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3924 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3927 case "$llvm_cv_target_arch" in
3928 x86) LLVM_NATIVE_ARCH="X86" ;;
3929 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3930 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3933 ARCH=$llvm_cv_target_arch
3937 i?86-*) host_arch="x86" ;;
3938 amd64-* | x86_64-*) host_arch="x86_64" ;;
3939 sparc*-*) host_arch="Sparc" ;;
3940 powerpc*-*) host_arch="PowerPC" ;;
3941 arm*-*) host_arch="ARM" ;;
3942 mips-*) host_arch="Mips" ;;
3943 mipsel-*) host_arch="Mips" ;;
3944 xcore-*) host_arch="XCore" ;;
3945 msp430-*) host_arch="MSP430" ;;
3946 hexagon-*) host_arch="Hexagon" ;;
3947 mblaze-*) host_arch="MBlaze" ;;
3948 *) host_arch="Unknown" ;;
3951 if test "$host_arch" = "Unknown" ; then
3952 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
3953 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
3956 HOST_ARCH=$host_arch
3961 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3962 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3963 if test "${ac_cv_path_GREP+set}" = set; then
3964 echo $ECHO_N "(cached) $ECHO_C" >&6
3966 # Extract the first word of "grep ggrep" to use in msg output
3967 if test -z "$GREP"; then
3968 set dummy grep ggrep; ac_prog_name=$2
3969 if test "${ac_cv_path_GREP+set}" = set; then
3970 echo $ECHO_N "(cached) $ECHO_C" >&6
3972 ac_path_GREP_found=false
3973 # Loop through the user's path and test for each of PROGNAME-LIST
3974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3978 test -z "$as_dir" && as_dir=.
3979 for ac_prog in grep ggrep; do
3980 for ac_exec_ext in '' $ac_executable_extensions; do
3981 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3982 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3983 # Check for GNU ac_path_GREP and select it if it is found.
3984 # Check for GNU $ac_path_GREP
3985 case `"$ac_path_GREP" --version 2>&1` in
3987 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3990 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3993 cat "conftest.in" "conftest.in" >"conftest.tmp"
3994 mv "conftest.tmp" "conftest.in"
3995 cp "conftest.in" "conftest.nl"
3996 echo 'GREP' >> "conftest.nl"
3997 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3998 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3999 ac_count=`expr $ac_count + 1`
4000 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4001 # Best one so far, save it but keep looking for a better one
4002 ac_cv_path_GREP="$ac_path_GREP"
4003 ac_path_GREP_max=$ac_count
4005 # 10*(2^10) chars as input seems more than enough
4006 test $ac_count -gt 10 && break
4008 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4012 $ac_path_GREP_found && break 3
4022 GREP="$ac_cv_path_GREP"
4023 if test -z "$GREP"; then
4024 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4025 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4026 { (exit 1); exit 1; }; }
4030 ac_cv_path_GREP=$GREP
4035 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4036 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4037 GREP="$ac_cv_path_GREP"
4040 { echo "$as_me:$LINENO: checking for egrep" >&5
4041 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4042 if test "${ac_cv_path_EGREP+set}" = set; then
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
4045 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4046 then ac_cv_path_EGREP="$GREP -E"
4048 # Extract the first word of "egrep" to use in msg output
4049 if test -z "$EGREP"; then
4050 set dummy egrep; ac_prog_name=$2
4051 if test "${ac_cv_path_EGREP+set}" = set; then
4052 echo $ECHO_N "(cached) $ECHO_C" >&6
4054 ac_path_EGREP_found=false
4055 # Loop through the user's path and test for each of PROGNAME-LIST
4056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4057 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4060 test -z "$as_dir" && as_dir=.
4061 for ac_prog in egrep; do
4062 for ac_exec_ext in '' $ac_executable_extensions; do
4063 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4064 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4065 # Check for GNU ac_path_EGREP and select it if it is found.
4066 # Check for GNU $ac_path_EGREP
4067 case `"$ac_path_EGREP" --version 2>&1` in
4069 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4072 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4075 cat "conftest.in" "conftest.in" >"conftest.tmp"
4076 mv "conftest.tmp" "conftest.in"
4077 cp "conftest.in" "conftest.nl"
4078 echo 'EGREP' >> "conftest.nl"
4079 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4080 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4081 ac_count=`expr $ac_count + 1`
4082 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4083 # Best one so far, save it but keep looking for a better one
4084 ac_cv_path_EGREP="$ac_path_EGREP"
4085 ac_path_EGREP_max=$ac_count
4087 # 10*(2^10) chars as input seems more than enough
4088 test $ac_count -gt 10 && break
4090 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4094 $ac_path_EGREP_found && break 3
4104 EGREP="$ac_cv_path_EGREP"
4105 if test -z "$EGREP"; then
4106 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4107 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4108 { (exit 1); exit 1; }; }
4112 ac_cv_path_EGREP=$EGREP
4118 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4119 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4120 EGREP="$ac_cv_path_EGREP"
4123 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4124 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4125 if test "${ac_cv_header_stdc+set}" = set; then
4126 echo $ECHO_N "(cached) $ECHO_C" >&6
4128 cat >conftest.$ac_ext <<_ACEOF
4131 cat confdefs.h >>conftest.$ac_ext
4132 cat >>conftest.$ac_ext <<_ACEOF
4133 /* end confdefs.h. */
4147 rm -f conftest.$ac_objext
4148 if { (ac_try="$ac_compile"
4150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4151 *) ac_try_echo=$ac_try;;
4153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4154 (eval "$ac_compile") 2>conftest.er1
4156 grep -v '^ *+' conftest.er1 >conftest.err
4158 cat conftest.err >&5
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); } &&
4161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4162 { (case "(($ac_try" in
4163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4164 *) ac_try_echo=$ac_try;;
4166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4167 (eval "$ac_try") 2>&5
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); }; } &&
4171 { ac_try='test -s conftest.$ac_objext'
4172 { (case "(($ac_try" in
4173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4174 *) ac_try_echo=$ac_try;;
4176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4177 (eval "$ac_try") 2>&5
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); }; }; then
4181 ac_cv_header_stdc=yes
4183 echo "$as_me: failed program was:" >&5
4184 sed 's/^/| /' conftest.$ac_ext >&5
4186 ac_cv_header_stdc=no
4189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4191 if test $ac_cv_header_stdc = yes; then
4192 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4193 cat >conftest.$ac_ext <<_ACEOF
4196 cat confdefs.h >>conftest.$ac_ext
4197 cat >>conftest.$ac_ext <<_ACEOF
4198 /* end confdefs.h. */
4202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4203 $EGREP "memchr" >/dev/null 2>&1; then
4206 ac_cv_header_stdc=no
4212 if test $ac_cv_header_stdc = yes; then
4213 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4214 cat >conftest.$ac_ext <<_ACEOF
4217 cat confdefs.h >>conftest.$ac_ext
4218 cat >>conftest.$ac_ext <<_ACEOF
4219 /* end confdefs.h. */
4223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4224 $EGREP "free" >/dev/null 2>&1; then
4227 ac_cv_header_stdc=no
4233 if test $ac_cv_header_stdc = yes; then
4234 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4235 if test "$cross_compiling" = yes; then
4238 cat >conftest.$ac_ext <<_ACEOF
4241 cat confdefs.h >>conftest.$ac_ext
4242 cat >>conftest.$ac_ext <<_ACEOF
4243 /* end confdefs.h. */
4246 #if ((' ' & 0x0FF) == 0x020)
4247 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4248 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4250 # define ISLOWER(c) \
4251 (('a' <= (c) && (c) <= 'i') \
4252 || ('j' <= (c) && (c) <= 'r') \
4253 || ('s' <= (c) && (c) <= 'z'))
4254 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4257 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4262 for (i = 0; i < 256; i++)
4263 if (XOR (islower (i), ISLOWER (i))
4264 || toupper (i) != TOUPPER (i))
4269 rm -f conftest$ac_exeext
4270 if { (ac_try="$ac_link"
4272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4273 *) ac_try_echo=$ac_try;;
4275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4276 (eval "$ac_link") 2>&5
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4280 { (case "(($ac_try" in
4281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4282 *) ac_try_echo=$ac_try;;
4284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4285 (eval "$ac_try") 2>&5
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); }; }; then
4291 echo "$as_me: program exited with status $ac_status" >&5
4292 echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4296 ac_cv_header_stdc=no
4298 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4304 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4305 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4306 if test $ac_cv_header_stdc = yes; then
4308 cat >>confdefs.h <<\_ACEOF
4309 #define STDC_HEADERS 1
4314 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4324 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4325 inttypes.h stdint.h unistd.h
4327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4328 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4331 echo $ECHO_N "(cached) $ECHO_C" >&6
4333 cat >conftest.$ac_ext <<_ACEOF
4336 cat confdefs.h >>conftest.$ac_ext
4337 cat >>conftest.$ac_ext <<_ACEOF
4338 /* end confdefs.h. */
4339 $ac_includes_default
4341 #include <$ac_header>
4343 rm -f conftest.$ac_objext
4344 if { (ac_try="$ac_compile"
4346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4347 *) ac_try_echo=$ac_try;;
4349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4350 (eval "$ac_compile") 2>conftest.er1
4352 grep -v '^ *+' conftest.er1 >conftest.err
4354 cat conftest.err >&5
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); } &&
4357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4358 { (case "(($ac_try" in
4359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4360 *) ac_try_echo=$ac_try;;
4362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4363 (eval "$ac_try") 2>&5
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); }; } &&
4367 { ac_try='test -s conftest.$ac_objext'
4368 { (case "(($ac_try" in
4369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4370 *) ac_try_echo=$ac_try;;
4372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4373 (eval "$ac_try") 2>&5
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); }; }; then
4377 eval "$as_ac_Header=yes"
4379 echo "$as_me: failed program was:" >&5
4380 sed 's/^/| /' conftest.$ac_ext >&5
4382 eval "$as_ac_Header=no"
4385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4387 ac_res=`eval echo '${'$as_ac_Header'}'`
4388 { echo "$as_me:$LINENO: result: $ac_res" >&5
4389 echo "${ECHO_T}$ac_res" >&6; }
4390 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4391 cat >>confdefs.h <<_ACEOF
4392 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4400 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4401 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4402 if test "${ac_cv_c_bigendian+set}" = set; then
4403 echo $ECHO_N "(cached) $ECHO_C" >&6
4405 # See if sys/param.h defines the BYTE_ORDER macro.
4406 cat >conftest.$ac_ext <<_ACEOF
4409 cat confdefs.h >>conftest.$ac_ext
4410 cat >>conftest.$ac_ext <<_ACEOF
4411 /* end confdefs.h. */
4412 #include <sys/types.h>
4413 #include <sys/param.h>
4418 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4426 rm -f conftest.$ac_objext
4427 if { (ac_try="$ac_compile"
4429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4430 *) ac_try_echo=$ac_try;;
4432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4433 (eval "$ac_compile") 2>conftest.er1
4435 grep -v '^ *+' conftest.er1 >conftest.err
4437 cat conftest.err >&5
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); } &&
4440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4441 { (case "(($ac_try" in
4442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4443 *) ac_try_echo=$ac_try;;
4445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4446 (eval "$ac_try") 2>&5
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); }; } &&
4450 { ac_try='test -s conftest.$ac_objext'
4451 { (case "(($ac_try" in
4452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4453 *) ac_try_echo=$ac_try;;
4455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4456 (eval "$ac_try") 2>&5
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); }; }; then
4460 # It does; now see whether it defined to BIG_ENDIAN or not.
4461 cat >conftest.$ac_ext <<_ACEOF
4464 cat confdefs.h >>conftest.$ac_ext
4465 cat >>conftest.$ac_ext <<_ACEOF
4466 /* end confdefs.h. */
4467 #include <sys/types.h>
4468 #include <sys/param.h>
4473 #if BYTE_ORDER != BIG_ENDIAN
4481 rm -f conftest.$ac_objext
4482 if { (ac_try="$ac_compile"
4484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4485 *) ac_try_echo=$ac_try;;
4487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4488 (eval "$ac_compile") 2>conftest.er1
4490 grep -v '^ *+' conftest.er1 >conftest.err
4492 cat conftest.err >&5
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); } &&
4495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4496 { (case "(($ac_try" in
4497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4498 *) ac_try_echo=$ac_try;;
4500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4501 (eval "$ac_try") 2>&5
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); }; } &&
4505 { ac_try='test -s conftest.$ac_objext'
4506 { (case "(($ac_try" in
4507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4508 *) ac_try_echo=$ac_try;;
4510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4511 (eval "$ac_try") 2>&5
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); }; }; then
4515 ac_cv_c_bigendian=yes
4517 echo "$as_me: failed program was:" >&5
4518 sed 's/^/| /' conftest.$ac_ext >&5
4520 ac_cv_c_bigendian=no
4523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4525 echo "$as_me: failed program was:" >&5
4526 sed 's/^/| /' conftest.$ac_ext >&5
4528 # It does not; compile a test program.
4529 if test "$cross_compiling" = yes; then
4530 # try to guess the endianness by grepping values into an object file
4531 ac_cv_c_bigendian=unknown
4532 cat >conftest.$ac_ext <<_ACEOF
4535 cat confdefs.h >>conftest.$ac_ext
4536 cat >>conftest.$ac_ext <<_ACEOF
4537 /* end confdefs.h. */
4538 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4539 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4540 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4541 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4542 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4543 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4547 _ascii (); _ebcdic ();
4552 rm -f conftest.$ac_objext
4553 if { (ac_try="$ac_compile"
4555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4556 *) ac_try_echo=$ac_try;;
4558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4559 (eval "$ac_compile") 2>conftest.er1
4561 grep -v '^ *+' conftest.er1 >conftest.err
4563 cat conftest.err >&5
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); } &&
4566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
4576 { ac_try='test -s conftest.$ac_objext'
4577 { (case "(($ac_try" in
4578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4579 *) ac_try_echo=$ac_try;;
4581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4582 (eval "$ac_try") 2>&5
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); }; }; then
4586 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4587 ac_cv_c_bigendian=yes
4589 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4590 if test "$ac_cv_c_bigendian" = unknown; then
4591 ac_cv_c_bigendian=no
4593 # finding both strings is unlikely to happen, but who knows?
4594 ac_cv_c_bigendian=unknown
4598 echo "$as_me: failed program was:" >&5
4599 sed 's/^/| /' conftest.$ac_ext >&5
4604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4606 cat >conftest.$ac_ext <<_ACEOF
4609 cat confdefs.h >>conftest.$ac_ext
4610 cat >>conftest.$ac_ext <<_ACEOF
4611 /* end confdefs.h. */
4612 $ac_includes_default
4617 /* Are we little or big endian? From Harbison&Steele. */
4621 char c[sizeof (long int)];
4624 return u.c[sizeof (long int) - 1] == 1;
4630 rm -f conftest$ac_exeext
4631 if { (ac_try="$ac_link"
4633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4634 *) ac_try_echo=$ac_try;;
4636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4637 (eval "$ac_link") 2>&5
4639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4641 { (case "(($ac_try" in
4642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4643 *) ac_try_echo=$ac_try;;
4645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4646 (eval "$ac_try") 2>&5
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); }; }; then
4650 ac_cv_c_bigendian=no
4652 echo "$as_me: program exited with status $ac_status" >&5
4653 echo "$as_me: failed program was:" >&5
4654 sed 's/^/| /' conftest.$ac_ext >&5
4657 ac_cv_c_bigendian=yes
4659 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4667 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4668 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4669 case $ac_cv_c_bigendian in
4677 { { echo "$as_me:$LINENO: error: unknown endianness
4678 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4679 echo "$as_me: error: unknown endianness
4680 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4681 { (exit 1); exit 1; }; } ;;
4685 if test "$cross_compiling" = yes; then
4686 LLVM_CROSS_COMPILING=1
4689 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4690 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4691 if test "${ac_cv_build_exeext+set}" = set; then
4692 echo $ECHO_N "(cached) $ECHO_C" >&6
4694 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4695 ac_cv_build_exeext=.exe
4697 ac_build_prefix=${build_alias}-
4699 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4700 set dummy ${ac_build_prefix}gcc; ac_word=$2
4701 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4703 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4704 echo $ECHO_N "(cached) $ECHO_C" >&6
4706 if test -n "$BUILD_CC"; then
4707 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713 test -z "$as_dir" && as_dir=.
4714 for ac_exec_ext in '' $ac_executable_extensions; do
4715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4716 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4726 BUILD_CC=$ac_cv_prog_BUILD_CC
4727 if test -n "$BUILD_CC"; then
4728 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4729 echo "${ECHO_T}$BUILD_CC" >&6; }
4731 { echo "$as_me:$LINENO: result: no" >&5
4732 echo "${ECHO_T}no" >&6; }
4736 if test -z "$BUILD_CC"; then
4737 # Extract the first word of "gcc", so it can be a program name with args.
4738 set dummy gcc; ac_word=$2
4739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4741 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4742 echo $ECHO_N "(cached) $ECHO_C" >&6
4744 if test -n "$BUILD_CC"; then
4745 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 test -z "$as_dir" && as_dir=.
4752 for ac_exec_ext in '' $ac_executable_extensions; do
4753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4754 ac_cv_prog_BUILD_CC="gcc"
4755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4764 BUILD_CC=$ac_cv_prog_BUILD_CC
4765 if test -n "$BUILD_CC"; then
4766 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4767 echo "${ECHO_T}$BUILD_CC" >&6; }
4769 { echo "$as_me:$LINENO: result: no" >&5
4770 echo "${ECHO_T}no" >&6; }
4774 if test -z "$BUILD_CC"; then
4775 # Extract the first word of "cc", so it can be a program name with args.
4776 set dummy cc; ac_word=$2
4777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4779 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4780 echo $ECHO_N "(cached) $ECHO_C" >&6
4782 if test -n "$BUILD_CC"; then
4783 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790 test -z "$as_dir" && as_dir=.
4791 for ac_exec_ext in '' $ac_executable_extensions; do
4792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4793 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4794 ac_prog_rejected=yes
4797 ac_cv_prog_BUILD_CC="cc"
4798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4805 if test $ac_prog_rejected = yes; then
4806 # We found a bogon in the path, so make sure we never use it.
4807 set dummy $ac_cv_prog_BUILD_CC
4809 if test $# != 0; then
4810 # We chose a different compiler from the bogus one.
4811 # However, it has the same basename, so the bogon will be chosen
4812 # first if we set BUILD_CC to just the basename; use the full file name.
4814 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4819 BUILD_CC=$ac_cv_prog_BUILD_CC
4820 if test -n "$BUILD_CC"; then
4821 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4822 echo "${ECHO_T}$BUILD_CC" >&6; }
4824 { echo "$as_me:$LINENO: result: no" >&5
4825 echo "${ECHO_T}no" >&6; }
4831 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4832 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4833 { (exit 1); exit 1; }; }
4834 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4836 echo 'int main () { return 0; }' > conftest.$ac_ext
4838 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4839 (eval $ac_build_link) 2>&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); }; then
4843 for file in conftest.*; do
4845 *.c | *.o | *.obj | *.dSYM) ;;
4846 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4850 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4851 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4852 { (exit 1); exit 1; }; }
4855 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4860 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4861 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4862 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4863 ac_build_exeext=$BUILD_EXEEXT
4865 ac_build_prefix=${build_alias}-
4866 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4867 set dummy ${ac_build_prefix}g++; ac_word=$2
4868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4870 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4871 echo $ECHO_N "(cached) $ECHO_C" >&6
4873 if test -n "$BUILD_CXX"; then
4874 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4880 test -z "$as_dir" && as_dir=.
4881 for ac_exec_ext in '' $ac_executable_extensions; do
4882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4883 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4893 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4894 if test -n "$BUILD_CXX"; then
4895 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4896 echo "${ECHO_T}$BUILD_CXX" >&6; }
4898 { echo "$as_me:$LINENO: result: no" >&5
4899 echo "${ECHO_T}no" >&6; }
4903 if test -z "$BUILD_CXX"; then
4904 # Extract the first word of "g++", so it can be a program name with args.
4905 set dummy g++; ac_word=$2
4906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4908 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4909 echo $ECHO_N "(cached) $ECHO_C" >&6
4911 if test -n "$BUILD_CXX"; then
4912 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918 test -z "$as_dir" && as_dir=.
4919 for ac_exec_ext in '' $ac_executable_extensions; do
4920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4921 ac_cv_prog_BUILD_CXX="g++"
4922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4931 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4932 if test -n "$BUILD_CXX"; then
4933 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4934 echo "${ECHO_T}$BUILD_CXX" >&6; }
4936 { echo "$as_me:$LINENO: result: no" >&5
4937 echo "${ECHO_T}no" >&6; }
4941 if test -z "$BUILD_CXX"; then
4942 # Extract the first word of "c++", so it can be a program name with args.
4943 set dummy c++; ac_word=$2
4944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4946 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4947 echo $ECHO_N "(cached) $ECHO_C" >&6
4949 if test -n "$BUILD_CXX"; then
4950 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4957 test -z "$as_dir" && as_dir=.
4958 for ac_exec_ext in '' $ac_executable_extensions; do
4959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4960 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4961 ac_prog_rejected=yes
4964 ac_cv_prog_BUILD_CXX="c++"
4965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4972 if test $ac_prog_rejected = yes; then
4973 # We found a bogon in the path, so make sure we never use it.
4974 set dummy $ac_cv_prog_BUILD_CXX
4976 if test $# != 0; then
4977 # We chose a different compiler from the bogus one.
4978 # However, it has the same basename, so the bogon will be chosen
4979 # first if we set BUILD_CXX to just the basename; use the full file name.
4981 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4986 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4987 if test -n "$BUILD_CXX"; then
4988 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4989 echo "${ECHO_T}$BUILD_CXX" >&6; }
4991 { echo "$as_me:$LINENO: result: no" >&5
4992 echo "${ECHO_T}no" >&6; }
4999 LLVM_CROSS_COMPILING=0
5003 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5014 # Check whether --enable-libcpp was given.
5015 if test "${enable_libcpp+set}" = set; then
5016 enableval=$enable_libcpp;
5021 case "$enableval" in
5022 yes) ENABLE_LIBCPP=1
5026 default) ENABLE_LIBCPP=0
5028 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5029 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5030 { (exit 1); exit 1; }; } ;;
5033 # Check whether --enable-cxx11 was given.
5034 if test "${enable_cxx11+set}" = set; then
5035 enableval=$enable_cxx11;
5040 case "$enableval" in
5045 default) ENABLE_CXX11=0
5047 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5048 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5049 { (exit 1); exit 1; }; } ;;
5052 # Check whether --enable-optimized was given.
5053 if test "${enable_optimized+set}" = set; then
5054 enableval=$enable_optimized;
5059 if test ${enableval} = "no" ; then
5063 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5067 # Check whether --enable-profiling was given.
5068 if test "${enable_profiling+set}" = set; then
5069 enableval=$enable_profiling;
5074 if test ${enableval} = "no" ; then
5078 ENABLE_PROFILING=ENABLE_PROFILING=1
5082 # Check whether --enable-assertions was given.
5083 if test "${enable_assertions+set}" = set; then
5084 enableval=$enable_assertions;
5089 if test ${enableval} = "yes" ; then
5093 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5097 # Check whether --enable-werror was given.
5098 if test "${enable_werror+set}" = set; then
5099 enableval=$enable_werror;
5104 case "$enableval" in
5105 yes) ENABLE_WERROR=1
5109 default) ENABLE_WERROR=0
5111 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5112 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5113 { (exit 1); exit 1; }; } ;;
5116 # Check whether --enable-expensive-checks was given.
5117 if test "${enable_expensive_checks+set}" = set; then
5118 enableval=$enable_expensive_checks;
5123 if test ${enableval} = "yes" ; then
5124 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5126 EXPENSIVE_CHECKS=yes
5129 ENABLE_EXPENSIVE_CHECKS=
5135 # Check whether --enable-debug-runtime was given.
5136 if test "${enable_debug_runtime+set}" = set; then
5137 enableval=$enable_debug_runtime;
5142 if test ${enableval} = "no" ; then
5146 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5150 # Check whether --enable-debug-symbols was given.
5151 if test "${enable_debug_symbols+set}" = set; then
5152 enableval=$enable_debug_symbols;
5157 if test ${enableval} = "no" ; then
5161 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5165 # Check whether --enable-keep-symbols was given.
5166 if test "${enable_keep_symbols+set}" = set; then
5167 enableval=$enable_keep_symbols;
5172 if test ${enableval} = "no" ; then
5176 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5180 # Check whether --enable-jit was given.
5181 if test "${enable_jit+set}" = set; then
5182 enableval=$enable_jit;
5187 if test ${enableval} = "no"
5192 case "$llvm_cv_target_arch" in
5193 x86) TARGET_HAS_JIT=1
5195 Sparc) TARGET_HAS_JIT=0
5197 PowerPC) TARGET_HAS_JIT=1
5199 x86_64) TARGET_HAS_JIT=1
5201 ARM) TARGET_HAS_JIT=1
5203 Mips) TARGET_HAS_JIT=1
5205 XCore) TARGET_HAS_JIT=0
5207 MSP430) TARGET_HAS_JIT=0
5209 Hexagon) TARGET_HAS_JIT=0
5211 MBlaze) TARGET_HAS_JIT=0
5213 NVPTX) TARGET_HAS_JIT=0
5220 # Check whether --enable-docs was given.
5221 if test "${enable_docs+set}" = set; then
5222 enableval=$enable_docs;
5227 case "$enableval" in
5232 default) ENABLE_DOCS=1
5234 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5235 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5236 { (exit 1); exit 1; }; } ;;
5239 # Check whether --enable-doxygen was given.
5240 if test "${enable_doxygen+set}" = set; then
5241 enableval=$enable_doxygen;
5246 case "$enableval" in
5247 yes) ENABLE_DOXYGEN=1
5249 no) ENABLE_DOXYGEN=0
5251 default) ENABLE_DOXYGEN=0
5253 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5254 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5255 { (exit 1); exit 1; }; } ;;
5258 # Check whether --enable-threads was given.
5259 if test "${enable_threads+set}" = set; then
5260 enableval=$enable_threads;
5265 case "$enableval" in
5266 yes) LLVM_ENABLE_THREADS=1
5268 no) LLVM_ENABLE_THREADS=0
5270 default) LLVM_ENABLE_THREADS=1
5272 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5273 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5274 { (exit 1); exit 1; }; } ;;
5277 cat >>confdefs.h <<_ACEOF
5278 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5282 # Check whether --enable-pthreads was given.
5283 if test "${enable_pthreads+set}" = set; then
5284 enableval=$enable_pthreads;
5289 case "$enableval" in
5290 yes) ENABLE_PTHREADS=1
5292 no) ENABLE_PTHREADS=0
5294 default) ENABLE_PTHREADS=1
5296 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5297 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5298 { (exit 1); exit 1; }; } ;;
5301 # Check whether --enable-pic was given.
5302 if test "${enable_pic+set}" = set; then
5303 enableval=$enable_pic;
5308 case "$enableval" in
5313 default) ENABLE_PIC=1
5315 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5316 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5317 { (exit 1); exit 1; }; } ;;
5320 cat >>confdefs.h <<_ACEOF
5321 #define ENABLE_PIC $ENABLE_PIC
5325 # Check whether --enable-shared was given.
5326 if test "${enable_shared+set}" = set; then
5327 enableval=$enable_shared;
5332 case "$enableval" in
5333 yes) ENABLE_SHARED=1
5337 default) ENABLE_SHARED=0
5339 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5340 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5341 { (exit 1); exit 1; }; } ;;
5344 # Check whether --enable-embed-stdcxx was given.
5345 if test "${enable_embed_stdcxx+set}" = set; then
5346 enableval=$enable_embed_stdcxx;
5351 case "$enableval" in
5352 yes) ENABLE_EMBED_STDCXX=1
5354 no) ENABLE_EMBED_STDCXX=0
5356 default) ENABLE_EMBED_STDCXX=0
5358 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5359 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5360 { (exit 1); exit 1; }; } ;;
5363 # Check whether --enable-timestamps was given.
5364 if test "${enable_timestamps+set}" = set; then
5365 enableval=$enable_timestamps;
5370 case "$enableval" in
5371 yes) ENABLE_TIMESTAMPS=1
5373 no) ENABLE_TIMESTAMPS=0
5375 default) ENABLE_TIMESTAMPS=1
5377 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5378 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5379 { (exit 1); exit 1; }; } ;;
5382 cat >>confdefs.h <<_ACEOF
5383 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5388 # Check whether --enable-backtraces was given.
5389 if test "${enable_backtraces+set}" = set; then
5390 enableval=$enable_backtraces;
5395 case "$enableval" in
5396 yes) ENABLE_TIMESTAMPS=1
5398 no) ENABLE_TIMESTAMPS=0
5400 default) ENABLE_TIMESTAMPS=1
5402 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5403 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5404 { (exit 1); exit 1; }; } ;;
5407 cat >>confdefs.h <<_ACEOF
5408 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5413 # Check whether --enable-targets was given.
5414 if test "${enable_targets+set}" = set; then
5415 enableval=$enable_targets;
5420 if test "$enableval" = host-only ; then
5423 case "$enableval" in
5424 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
5425 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5427 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5428 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5429 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5430 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5431 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5432 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5433 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5434 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5435 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5436 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5437 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5438 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5439 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5440 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5441 host) case "$llvm_cv_target_arch" in
5442 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5443 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5444 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5445 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5446 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5447 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5448 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5449 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5450 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5451 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5452 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5453 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5454 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5455 echo "$as_me: error: Can not set target to build" >&2;}
5456 { (exit 1); exit 1; }; } ;;
5458 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5459 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5460 { (exit 1); exit 1; }; } ;;
5466 # Check whether --enable-experimental-targets was given.
5467 if test "${enable_experimental_targets+set}" = set; then
5468 enableval=$enable_experimental_targets;
5474 if test ${enableval} != "disable"
5476 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5479 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5482 for a_target in $TARGETS_TO_BUILD; do
5483 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5485 cat >>confdefs.h <<_ACEOF
5486 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5489 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5490 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5491 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5492 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5493 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5494 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5496 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5497 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5500 cat >>confdefs.h <<_ACEOF
5501 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5505 cat >>confdefs.h <<_ACEOF
5506 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5510 cat >>confdefs.h <<_ACEOF
5511 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5515 cat >>confdefs.h <<_ACEOF
5516 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5519 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5521 cat >>confdefs.h <<_ACEOF
5522 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5526 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5528 cat >>confdefs.h <<_ACEOF
5529 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5536 LLVM_ENUM_TARGETS=""
5537 LLVM_ENUM_ASM_PRINTERS=""
5538 LLVM_ENUM_ASM_PARSERS=""
5539 LLVM_ENUM_DISASSEMBLERS=""
5540 for target_to_build in $TARGETS_TO_BUILD; do
5541 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5542 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5543 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5545 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5546 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5548 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5549 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5558 # Check whether --with-optimize-option was given.
5559 if test "${with_optimize_option+set}" = set; then
5560 withval=$with_optimize_option;
5565 { echo "$as_me:$LINENO: checking optimization flags" >&5
5566 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5569 case "$llvm_cv_os_type" in
5570 FreeBSD) optimize_option=-O2 ;;
5571 MingW) optimize_option=-O2 ;;
5572 *) optimize_option=-O3 ;;
5574 *) optimize_option="$withval" ;;
5576 OPTIMIZE_OPTION=$optimize_option
5578 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5579 echo "${ECHO_T}$optimize_option" >&6; }
5582 # Check whether --with-extra-options was given.
5583 if test "${with_extra_options+set}" = set; then
5584 withval=$with_extra_options;
5590 default) EXTRA_OPTIONS= ;;
5591 *) EXTRA_OPTIONS=$withval ;;
5593 EXTRA_OPTIONS=$EXTRA_OPTIONS
5597 # Check whether --with-extra-ld-options was given.
5598 if test "${with_extra_ld_options+set}" = set; then
5599 withval=$with_extra_ld_options;
5605 default) EXTRA_LD_OPTIONS= ;;
5606 *) EXTRA_LD_OPTIONS=$withval ;;
5608 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5611 # Check whether --enable-bindings was given.
5612 if test "${enable_bindings+set}" = set; then
5613 enableval=$enable_bindings;
5618 BINDINGS_TO_BUILD=""
5619 case "$enableval" in
5620 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5621 all ) BINDINGS_TO_BUILD="ocaml" ;;
5622 none | no) BINDINGS_TO_BUILD="" ;;
5623 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5624 case "$a_binding" in
5625 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5626 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5627 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5628 { (exit 1); exit 1; }; } ;;
5635 # Check whether --with-ocaml-libdir was given.
5636 if test "${with_ocaml_libdir+set}" = set; then
5637 withval=$with_ocaml_libdir;
5643 auto) with_ocaml_libdir="$withval" ;;
5644 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5645 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5646 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5647 { (exit 1); exit 1; }; } ;;
5651 # Check whether --with-clang-srcdir was given.
5652 if test "${with_clang_srcdir+set}" = set; then
5653 withval=$with_clang_srcdir;
5659 -) clang_src_root="" ;;
5660 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5661 *) clang_src_root="$ac_pwd/$withval" ;;
5663 CLANG_SRC_ROOT=$clang_src_root
5667 # Check whether --with-clang-resource-dir was given.
5668 if test "${with_clang_resource_dir+set}" = set; then
5669 withval=$with_clang_resource_dir;
5675 cat >>confdefs.h <<_ACEOF
5676 #define CLANG_RESOURCE_DIR "$withval"
5681 # Check whether --with-c-include-dirs was given.
5682 if test "${with_c_include_dirs+set}" = set; then
5683 withval=$with_c_include_dirs;
5689 cat >>confdefs.h <<_ACEOF
5690 #define C_INCLUDE_DIRS "$withval"
5694 # Clang normally uses the system c++ headers and libraries. With this option,
5695 # clang will use the ones provided by a gcc installation instead. This option should
5696 # be passed the same value that was used with --prefix when configuring gcc.
5698 # Check whether --with-gcc-toolchain was given.
5699 if test "${with_gcc_toolchain+set}" = set; then
5700 withval=$with_gcc_toolchain;
5706 cat >>confdefs.h <<_ACEOF
5707 #define GCC_INSTALL_PREFIX "$withval"
5712 # Check whether --with-default-sysroot was given.
5713 if test "${with_default_sysroot+set}" = set; then
5714 withval=$with_default_sysroot;
5720 cat >>confdefs.h <<_ACEOF
5721 #define DEFAULT_SYSROOT "$withval"
5726 # Check whether --with-binutils-include was given.
5727 if test "${with_binutils_include+set}" = set; then
5728 withval=$with_binutils_include;
5734 default) WITH_BINUTILS_INCDIR=default ;;
5735 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5736 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5737 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5738 { (exit 1); exit 1; }; } ;;
5740 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5741 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5743 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5744 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5745 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5746 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5747 { (exit 1); exit 1; }; };
5752 # Check whether --with-bug-report-url was given.
5753 if test "${with_bug_report_url+set}" = set; then
5754 withval=$with_bug_report_url;
5756 withval="http://llvm.org/bugs/"
5760 cat >>confdefs.h <<_ACEOF
5761 #define BUG_REPORT_URL "$withval"
5765 # Check whether --enable-libffi was given.
5766 if test "${enable_libffi+set}" = set; then
5767 enableval=$enable_libffi; case "$enableval" in
5768 yes) llvm_cv_enable_libffi="yes" ;;
5769 no) llvm_cv_enable_libffi="no" ;;
5770 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5771 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5772 { (exit 1); exit 1; }; } ;;
5775 llvm_cv_enable_libffi=no
5780 # Check whether --with-internal-prefix was given.
5781 if test "${with_internal_prefix+set}" = set; then
5782 withval=$with_internal_prefix;
5787 INTERNAL_PREFIX=$withval
5791 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5792 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5793 if test "${lt_cv_path_NM+set}" = set; then
5794 echo $ECHO_N "(cached) $ECHO_C" >&6
5796 if test -n "$NM"; then
5797 # Let the user override the test.
5800 lt_nm_to_check="${ac_tool_prefix}nm"
5801 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5802 lt_nm_to_check="$lt_nm_to_check nm"
5804 for lt_tmp_nm in $lt_nm_to_check; do
5805 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5806 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5808 test -z "$ac_dir" && ac_dir=.
5809 tmp_nm="$ac_dir/$lt_tmp_nm"
5810 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5811 # Check to see if the nm accepts a BSD-compat flag.
5812 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5813 # nm: unknown option "B" ignored
5814 # Tru64's nm complains that /dev/null is an invalid object file
5815 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5816 */dev/null* | *'Invalid file or object type'*)
5817 lt_cv_path_NM="$tmp_nm -B"
5821 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5823 lt_cv_path_NM="$tmp_nm -p"
5827 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5828 continue # so that we can try to find one that supports BSD flags
5837 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5840 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5841 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5846 { echo "$as_me:$LINENO: checking for GNU make" >&5
5847 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5848 if test "${llvm_cv_gnu_make_command+set}" = set; then
5849 echo $ECHO_N "(cached) $ECHO_C" >&6
5851 llvm_cv_gnu_make_command=''
5852 for a in "$MAKE" make gmake gnumake ; do
5853 if test -z "$a" ; then continue ; fi ;
5854 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5856 llvm_cv_gnu_make_command=$a ;
5861 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5862 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5863 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5867 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5868 echo "${ECHO_T}\"Not found\"" >&6; };
5872 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5873 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5875 if test "$LN_S" = "ln -s"; then
5876 { echo "$as_me:$LINENO: result: yes" >&5
5877 echo "${ECHO_T}yes" >&6; }
5879 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5880 echo "${ECHO_T}no, using $LN_S" >&6; }
5883 # Extract the first word of "cmp", so it can be a program name with args.
5884 set dummy cmp; ac_word=$2
5885 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5887 if test "${ac_cv_path_CMP+set}" = set; then
5888 echo $ECHO_N "(cached) $ECHO_C" >&6
5892 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899 test -z "$as_dir" && as_dir=.
5900 for ac_exec_ext in '' $ac_executable_extensions; do
5901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5902 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5910 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5915 if test -n "$CMP"; then
5916 { echo "$as_me:$LINENO: result: $CMP" >&5
5917 echo "${ECHO_T}$CMP" >&6; }
5919 { echo "$as_me:$LINENO: result: no" >&5
5920 echo "${ECHO_T}no" >&6; }
5924 # Extract the first word of "cp", so it can be a program name with args.
5925 set dummy cp; ac_word=$2
5926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5928 if test "${ac_cv_path_CP+set}" = set; then
5929 echo $ECHO_N "(cached) $ECHO_C" >&6
5933 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5940 test -z "$as_dir" && as_dir=.
5941 for ac_exec_ext in '' $ac_executable_extensions; do
5942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5943 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5951 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5956 if test -n "$CP"; then
5957 { echo "$as_me:$LINENO: result: $CP" >&5
5958 echo "${ECHO_T}$CP" >&6; }
5960 { echo "$as_me:$LINENO: result: no" >&5
5961 echo "${ECHO_T}no" >&6; }
5965 # Extract the first word of "date", so it can be a program name with args.
5966 set dummy date; ac_word=$2
5967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5969 if test "${ac_cv_path_DATE+set}" = set; then
5970 echo $ECHO_N "(cached) $ECHO_C" >&6
5974 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5981 test -z "$as_dir" && as_dir=.
5982 for ac_exec_ext in '' $ac_executable_extensions; do
5983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5984 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5992 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5996 DATE=$ac_cv_path_DATE
5997 if test -n "$DATE"; then
5998 { echo "$as_me:$LINENO: result: $DATE" >&5
5999 echo "${ECHO_T}$DATE" >&6; }
6001 { echo "$as_me:$LINENO: result: no" >&5
6002 echo "${ECHO_T}no" >&6; }
6006 # Extract the first word of "find", so it can be a program name with args.
6007 set dummy find; ac_word=$2
6008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6010 if test "${ac_cv_path_FIND+set}" = set; then
6011 echo $ECHO_N "(cached) $ECHO_C" >&6
6015 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022 test -z "$as_dir" && as_dir=.
6023 for ac_exec_ext in '' $ac_executable_extensions; do
6024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6025 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6033 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6037 FIND=$ac_cv_path_FIND
6038 if test -n "$FIND"; then
6039 { echo "$as_me:$LINENO: result: $FIND" >&5
6040 echo "${ECHO_T}$FIND" >&6; }
6042 { echo "$as_me:$LINENO: result: no" >&5
6043 echo "${ECHO_T}no" >&6; }
6047 # Extract the first word of "grep", so it can be a program name with args.
6048 set dummy grep; ac_word=$2
6049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6051 if test "${ac_cv_path_GREP+set}" = set; then
6052 echo $ECHO_N "(cached) $ECHO_C" >&6
6056 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063 test -z "$as_dir" && as_dir=.
6064 for ac_exec_ext in '' $ac_executable_extensions; do
6065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6066 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6074 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6078 GREP=$ac_cv_path_GREP
6079 if test -n "$GREP"; then
6080 { echo "$as_me:$LINENO: result: $GREP" >&5
6081 echo "${ECHO_T}$GREP" >&6; }
6083 { echo "$as_me:$LINENO: result: no" >&5
6084 echo "${ECHO_T}no" >&6; }
6088 # Extract the first word of "mkdir", so it can be a program name with args.
6089 set dummy mkdir; ac_word=$2
6090 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6092 if test "${ac_cv_path_MKDIR+set}" = set; then
6093 echo $ECHO_N "(cached) $ECHO_C" >&6
6097 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6104 test -z "$as_dir" && as_dir=.
6105 for ac_exec_ext in '' $ac_executable_extensions; do
6106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6107 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6115 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6119 MKDIR=$ac_cv_path_MKDIR
6120 if test -n "$MKDIR"; then
6121 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6122 echo "${ECHO_T}$MKDIR" >&6; }
6124 { echo "$as_me:$LINENO: result: no" >&5
6125 echo "${ECHO_T}no" >&6; }
6129 # Extract the first word of "mv", so it can be a program name with args.
6130 set dummy mv; ac_word=$2
6131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6133 if test "${ac_cv_path_MV+set}" = set; then
6134 echo $ECHO_N "(cached) $ECHO_C" >&6
6138 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6145 test -z "$as_dir" && as_dir=.
6146 for ac_exec_ext in '' $ac_executable_extensions; do
6147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6148 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6156 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6161 if test -n "$MV"; then
6162 { echo "$as_me:$LINENO: result: $MV" >&5
6163 echo "${ECHO_T}$MV" >&6; }
6165 { echo "$as_me:$LINENO: result: no" >&5
6166 echo "${ECHO_T}no" >&6; }
6170 if test -n "$ac_tool_prefix"; then
6171 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6172 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6175 if test "${ac_cv_prog_RANLIB+set}" = set; then
6176 echo $ECHO_N "(cached) $ECHO_C" >&6
6178 if test -n "$RANLIB"; then
6179 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185 test -z "$as_dir" && as_dir=.
6186 for ac_exec_ext in '' $ac_executable_extensions; do
6187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6188 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6198 RANLIB=$ac_cv_prog_RANLIB
6199 if test -n "$RANLIB"; then
6200 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6201 echo "${ECHO_T}$RANLIB" >&6; }
6203 { echo "$as_me:$LINENO: result: no" >&5
6204 echo "${ECHO_T}no" >&6; }
6209 if test -z "$ac_cv_prog_RANLIB"; then
6210 ac_ct_RANLIB=$RANLIB
6211 # Extract the first word of "ranlib", so it can be a program name with args.
6212 set dummy ranlib; ac_word=$2
6213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6215 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6216 echo $ECHO_N "(cached) $ECHO_C" >&6
6218 if test -n "$ac_ct_RANLIB"; then
6219 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6225 test -z "$as_dir" && as_dir=.
6226 for ac_exec_ext in '' $ac_executable_extensions; do
6227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6228 ac_cv_prog_ac_ct_RANLIB="ranlib"
6229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6238 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6239 if test -n "$ac_ct_RANLIB"; then
6240 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6241 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6243 { echo "$as_me:$LINENO: result: no" >&5
6244 echo "${ECHO_T}no" >&6; }
6247 if test "x$ac_ct_RANLIB" = x; then
6250 case $cross_compiling:$ac_tool_warned in
6252 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6253 whose name does not start with the host triplet. If you think this
6254 configuration is useful to you, please write to autoconf@gnu.org." >&5
6255 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6256 whose name does not start with the host triplet. If you think this
6257 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6258 ac_tool_warned=yes ;;
6260 RANLIB=$ac_ct_RANLIB
6263 RANLIB="$ac_cv_prog_RANLIB"
6266 if test -n "$ac_tool_prefix"; then
6267 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6268 set dummy ${ac_tool_prefix}ar; 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_prog_AR+set}" = set; then
6272 echo $ECHO_N "(cached) $ECHO_C" >&6
6274 if test -n "$AR"; then
6275 ac_cv_prog_AR="$AR" # Let the user override the test.
6277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281 test -z "$as_dir" && as_dir=.
6282 for ac_exec_ext in '' $ac_executable_extensions; do
6283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6284 ac_cv_prog_AR="${ac_tool_prefix}ar"
6285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6295 if test -n "$AR"; then
6296 { echo "$as_me:$LINENO: result: $AR" >&5
6297 echo "${ECHO_T}$AR" >&6; }
6299 { echo "$as_me:$LINENO: result: no" >&5
6300 echo "${ECHO_T}no" >&6; }
6305 if test -z "$ac_cv_prog_AR"; then
6307 # Extract the first word of "ar", so it can be a program name with args.
6308 set dummy ar; ac_word=$2
6309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6311 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6312 echo $ECHO_N "(cached) $ECHO_C" >&6
6314 if test -n "$ac_ct_AR"; then
6315 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6321 test -z "$as_dir" && as_dir=.
6322 for ac_exec_ext in '' $ac_executable_extensions; do
6323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6324 ac_cv_prog_ac_ct_AR="ar"
6325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6334 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6335 if test -n "$ac_ct_AR"; then
6336 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6337 echo "${ECHO_T}$ac_ct_AR" >&6; }
6339 { echo "$as_me:$LINENO: result: no" >&5
6340 echo "${ECHO_T}no" >&6; }
6343 if test "x$ac_ct_AR" = x; then
6346 case $cross_compiling:$ac_tool_warned in
6348 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6349 whose name does not start with the host triplet. If you think this
6350 configuration is useful to you, please write to autoconf@gnu.org." >&5
6351 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6352 whose name does not start with the host triplet. If you think this
6353 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6354 ac_tool_warned=yes ;;
6362 # Extract the first word of "rm", so it can be a program name with args.
6363 set dummy rm; ac_word=$2
6364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6366 if test "${ac_cv_path_RM+set}" = set; then
6367 echo $ECHO_N "(cached) $ECHO_C" >&6
6371 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6378 test -z "$as_dir" && as_dir=.
6379 for ac_exec_ext in '' $ac_executable_extensions; do
6380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6381 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6389 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6394 if test -n "$RM"; then
6395 { echo "$as_me:$LINENO: result: $RM" >&5
6396 echo "${ECHO_T}$RM" >&6; }
6398 { echo "$as_me:$LINENO: result: no" >&5
6399 echo "${ECHO_T}no" >&6; }
6403 # Extract the first word of "sed", so it can be a program name with args.
6404 set dummy sed; ac_word=$2
6405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6407 if test "${ac_cv_path_SED+set}" = set; then
6408 echo $ECHO_N "(cached) $ECHO_C" >&6
6412 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6419 test -z "$as_dir" && as_dir=.
6420 for ac_exec_ext in '' $ac_executable_extensions; do
6421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6422 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6430 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6435 if test -n "$SED"; then
6436 { echo "$as_me:$LINENO: result: $SED" >&5
6437 echo "${ECHO_T}$SED" >&6; }
6439 { echo "$as_me:$LINENO: result: no" >&5
6440 echo "${ECHO_T}no" >&6; }
6444 # Extract the first word of "tar", so it can be a program name with args.
6445 set dummy tar; ac_word=$2
6446 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6448 if test "${ac_cv_path_TAR+set}" = set; then
6449 echo $ECHO_N "(cached) $ECHO_C" >&6
6453 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6460 test -z "$as_dir" && as_dir=.
6461 for ac_exec_ext in '' $ac_executable_extensions; do
6462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6463 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6471 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6476 if test -n "$TAR"; then
6477 { echo "$as_me:$LINENO: result: $TAR" >&5
6478 echo "${ECHO_T}$TAR" >&6; }
6480 { echo "$as_me:$LINENO: result: no" >&5
6481 echo "${ECHO_T}no" >&6; }
6485 # Extract the first word of "pwd", so it can be a program name with args.
6486 set dummy pwd; ac_word=$2
6487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6489 if test "${ac_cv_path_BINPWD+set}" = set; then
6490 echo $ECHO_N "(cached) $ECHO_C" >&6
6494 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
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_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6512 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6516 BINPWD=$ac_cv_path_BINPWD
6517 if test -n "$BINPWD"; then
6518 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6519 echo "${ECHO_T}$BINPWD" >&6; }
6521 { echo "$as_me:$LINENO: result: no" >&5
6522 echo "${ECHO_T}no" >&6; }
6527 # Extract the first word of "Graphviz", so it can be a program name with args.
6528 set dummy Graphviz; 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_path_GRAPHVIZ+set}" = set; then
6532 echo $ECHO_N "(cached) $ECHO_C" >&6
6536 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543 test -z "$as_dir" && as_dir=.
6544 for ac_exec_ext in '' $ac_executable_extensions; do
6545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6546 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6554 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6558 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6559 if test -n "$GRAPHVIZ"; then
6560 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6561 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6563 { echo "$as_me:$LINENO: result: no" >&5
6564 echo "${ECHO_T}no" >&6; }
6568 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6570 cat >>confdefs.h <<\_ACEOF
6571 #define HAVE_GRAPHVIZ 1
6574 if test "$llvm_cv_os_type" = "MingW" ; then
6575 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6578 cat >>confdefs.h <<_ACEOF
6579 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6583 # Extract the first word of "dot", so it can be a program name with args.
6584 set dummy dot; ac_word=$2
6585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6587 if test "${ac_cv_path_DOT+set}" = set; then
6588 echo $ECHO_N "(cached) $ECHO_C" >&6
6592 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599 test -z "$as_dir" && as_dir=.
6600 for ac_exec_ext in '' $ac_executable_extensions; do
6601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6602 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6610 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6615 if test -n "$DOT"; then
6616 { echo "$as_me:$LINENO: result: $DOT" >&5
6617 echo "${ECHO_T}$DOT" >&6; }
6619 { echo "$as_me:$LINENO: result: no" >&5
6620 echo "${ECHO_T}no" >&6; }
6624 if test "$DOT" != "echo dot" ; then
6626 cat >>confdefs.h <<\_ACEOF
6630 if test "$llvm_cv_os_type" = "MingW" ; then
6631 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6634 cat >>confdefs.h <<_ACEOF
6635 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6639 # Extract the first word of "fdp", so it can be a program name with args.
6640 set dummy fdp; ac_word=$2
6641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6643 if test "${ac_cv_path_FDP+set}" = set; then
6644 echo $ECHO_N "(cached) $ECHO_C" >&6
6648 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6655 test -z "$as_dir" && as_dir=.
6656 for ac_exec_ext in '' $ac_executable_extensions; do
6657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6658 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6666 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6671 if test -n "$FDP"; then
6672 { echo "$as_me:$LINENO: result: $FDP" >&5
6673 echo "${ECHO_T}$FDP" >&6; }
6675 { echo "$as_me:$LINENO: result: no" >&5
6676 echo "${ECHO_T}no" >&6; }
6680 if test "$FDP" != "echo fdp" ; then
6682 cat >>confdefs.h <<\_ACEOF
6686 if test "$llvm_cv_os_type" = "MingW" ; then
6687 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6690 cat >>confdefs.h <<_ACEOF
6691 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6695 # Extract the first word of "neato", so it can be a program name with args.
6696 set dummy neato; ac_word=$2
6697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6699 if test "${ac_cv_path_NEATO+set}" = set; then
6700 echo $ECHO_N "(cached) $ECHO_C" >&6
6704 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711 test -z "$as_dir" && as_dir=.
6712 for ac_exec_ext in '' $ac_executable_extensions; do
6713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6714 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6722 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6726 NEATO=$ac_cv_path_NEATO
6727 if test -n "$NEATO"; then
6728 { echo "$as_me:$LINENO: result: $NEATO" >&5
6729 echo "${ECHO_T}$NEATO" >&6; }
6731 { echo "$as_me:$LINENO: result: no" >&5
6732 echo "${ECHO_T}no" >&6; }
6736 if test "$NEATO" != "echo neato" ; then
6738 cat >>confdefs.h <<\_ACEOF
6739 #define HAVE_NEATO 1
6742 if test "$llvm_cv_os_type" = "MingW" ; then
6743 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6746 cat >>confdefs.h <<_ACEOF
6747 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6751 # Extract the first word of "twopi", so it can be a program name with args.
6752 set dummy twopi; ac_word=$2
6753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6755 if test "${ac_cv_path_TWOPI+set}" = set; then
6756 echo $ECHO_N "(cached) $ECHO_C" >&6
6760 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767 test -z "$as_dir" && as_dir=.
6768 for ac_exec_ext in '' $ac_executable_extensions; do
6769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6770 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6778 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6782 TWOPI=$ac_cv_path_TWOPI
6783 if test -n "$TWOPI"; then
6784 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6785 echo "${ECHO_T}$TWOPI" >&6; }
6787 { echo "$as_me:$LINENO: result: no" >&5
6788 echo "${ECHO_T}no" >&6; }
6792 if test "$TWOPI" != "echo twopi" ; then
6794 cat >>confdefs.h <<\_ACEOF
6795 #define HAVE_TWOPI 1
6798 if test "$llvm_cv_os_type" = "MingW" ; then
6799 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6802 cat >>confdefs.h <<_ACEOF
6803 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6807 # Extract the first word of "circo", so it can be a program name with args.
6808 set dummy circo; ac_word=$2
6809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6811 if test "${ac_cv_path_CIRCO+set}" = set; then
6812 echo $ECHO_N "(cached) $ECHO_C" >&6
6816 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823 test -z "$as_dir" && as_dir=.
6824 for ac_exec_ext in '' $ac_executable_extensions; do
6825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6826 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6834 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6838 CIRCO=$ac_cv_path_CIRCO
6839 if test -n "$CIRCO"; then
6840 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6841 echo "${ECHO_T}$CIRCO" >&6; }
6843 { echo "$as_me:$LINENO: result: no" >&5
6844 echo "${ECHO_T}no" >&6; }
6848 if test "$CIRCO" != "echo circo" ; then
6850 cat >>confdefs.h <<\_ACEOF
6851 #define HAVE_CIRCO 1
6854 if test "$llvm_cv_os_type" = "MingW" ; then
6855 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6858 cat >>confdefs.h <<_ACEOF
6859 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6863 for ac_prog in gv gsview32
6865 # Extract the first word of "$ac_prog", so it can be a program name with args.
6866 set dummy $ac_prog; ac_word=$2
6867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6869 if test "${ac_cv_path_GV+set}" = set; then
6870 echo $ECHO_N "(cached) $ECHO_C" >&6
6874 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881 test -z "$as_dir" && as_dir=.
6882 for ac_exec_ext in '' $ac_executable_extensions; do
6883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6884 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6896 if test -n "$GV"; then
6897 { echo "$as_me:$LINENO: result: $GV" >&5
6898 echo "${ECHO_T}$GV" >&6; }
6900 { echo "$as_me:$LINENO: result: no" >&5
6901 echo "${ECHO_T}no" >&6; }
6905 test -n "$GV" && break
6907 test -n "$GV" || GV="echo gv"
6909 if test "$GV" != "echo gv" ; then
6911 cat >>confdefs.h <<\_ACEOF
6915 if test "$llvm_cv_os_type" = "MingW" ; then
6916 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6919 cat >>confdefs.h <<_ACEOF
6920 #define LLVM_PATH_GV "$GV${EXEEXT}"
6924 # Extract the first word of "dotty", so it can be a program name with args.
6925 set dummy dotty; ac_word=$2
6926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6928 if test "${ac_cv_path_DOTTY+set}" = set; then
6929 echo $ECHO_N "(cached) $ECHO_C" >&6
6933 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6940 test -z "$as_dir" && as_dir=.
6941 for ac_exec_ext in '' $ac_executable_extensions; do
6942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6943 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6951 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6955 DOTTY=$ac_cv_path_DOTTY
6956 if test -n "$DOTTY"; then
6957 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6958 echo "${ECHO_T}$DOTTY" >&6; }
6960 { echo "$as_me:$LINENO: result: no" >&5
6961 echo "${ECHO_T}no" >&6; }
6965 if test "$DOTTY" != "echo dotty" ; then
6967 cat >>confdefs.h <<\_ACEOF
6968 #define HAVE_DOTTY 1
6971 if test "$llvm_cv_os_type" = "MingW" ; then
6972 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6975 cat >>confdefs.h <<_ACEOF
6976 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6980 # Extract the first word of "xdot.py", so it can be a program name with args.
6981 set dummy xdot.py; ac_word=$2
6982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6984 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6985 echo $ECHO_N "(cached) $ECHO_C" >&6
6989 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996 test -z "$as_dir" && as_dir=.
6997 for ac_exec_ext in '' $ac_executable_extensions; do
6998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6999 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7007 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7011 XDOT_PY=$ac_cv_path_XDOT_PY
7012 if test -n "$XDOT_PY"; then
7013 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7014 echo "${ECHO_T}$XDOT_PY" >&6; }
7016 { echo "$as_me:$LINENO: result: no" >&5
7017 echo "${ECHO_T}no" >&6; }
7021 if test "$XDOT_PY" != "echo xdot.py" ; then
7023 cat >>confdefs.h <<\_ACEOF
7024 #define HAVE_XDOT_PY 1
7027 if test "$llvm_cv_os_type" = "MingW" ; then
7028 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7031 cat >>confdefs.h <<_ACEOF
7032 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7037 # Find a good install program. We prefer a C program (faster),
7038 # so one script is as good as another. But avoid the broken or
7039 # incompatible versions:
7040 # SysV /etc/install, /usr/sbin/install
7041 # SunOS /usr/etc/install
7042 # IRIX /sbin/install
7044 # AmigaOS /C/install, which installs bootblocks on floppy discs
7045 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7046 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7047 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7048 # OS/2's system install, which has a completely different semantic
7049 # ./install, which can be erroneously created by make from ./install.sh.
7050 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7051 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7052 if test -z "$INSTALL"; then
7053 if test "${ac_cv_path_install+set}" = set; then
7054 echo $ECHO_N "(cached) $ECHO_C" >&6
7056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7060 test -z "$as_dir" && as_dir=.
7061 # Account for people who put trailing slashes in PATH elements.
7063 ./ | .// | /cC/* | \
7064 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7065 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7068 # OSF1 and SCO ODT 3.0 have their own names for install.
7069 # Don't use installbsd from OSF since it installs stuff as root
7071 for ac_prog in ginstall scoinst install; do
7072 for ac_exec_ext in '' $ac_executable_extensions; do
7073 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7074 if test $ac_prog = install &&
7075 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7076 # AIX install. It has an incompatible calling convention.
7078 elif test $ac_prog = install &&
7079 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7080 # program-specific install script used by HP pwplus--don't use.
7083 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7096 if test "${ac_cv_path_install+set}" = set; then
7097 INSTALL=$ac_cv_path_install
7099 # As a last resort, use the slow shell script. Don't cache a
7100 # value for INSTALL within a source directory, because that will
7101 # break other packages using the cache if that directory is
7102 # removed, or if the value is a relative name.
7103 INSTALL=$ac_install_sh
7106 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7107 echo "${ECHO_T}$INSTALL" >&6; }
7109 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7110 # It thinks the first close brace ends the variable substitution.
7111 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7113 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7115 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7118 [\\/$]* | ?:[\\/]* ) ;;
7119 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7122 # Extract the first word of "bzip2", so it can be a program name with args.
7123 set dummy bzip2; ac_word=$2
7124 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7126 if test "${ac_cv_path_BZIP2+set}" = set; then
7127 echo $ECHO_N "(cached) $ECHO_C" >&6
7131 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138 test -z "$as_dir" && as_dir=.
7139 for ac_exec_ext in '' $ac_executable_extensions; do
7140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7141 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7152 BZIP2=$ac_cv_path_BZIP2
7153 if test -n "$BZIP2"; then
7154 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7155 echo "${ECHO_T}$BZIP2" >&6; }
7157 { echo "$as_me:$LINENO: result: no" >&5
7158 echo "${ECHO_T}no" >&6; }
7162 # Extract the first word of "cat", so it can be a program name with args.
7163 set dummy cat; ac_word=$2
7164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7166 if test "${ac_cv_path_CAT+set}" = set; then
7167 echo $ECHO_N "(cached) $ECHO_C" >&6
7171 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178 test -z "$as_dir" && as_dir=.
7179 for ac_exec_ext in '' $ac_executable_extensions; do
7180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7181 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7193 if test -n "$CAT"; then
7194 { echo "$as_me:$LINENO: result: $CAT" >&5
7195 echo "${ECHO_T}$CAT" >&6; }
7197 { echo "$as_me:$LINENO: result: no" >&5
7198 echo "${ECHO_T}no" >&6; }
7202 # Extract the first word of "doxygen", so it can be a program name with args.
7203 set dummy doxygen; ac_word=$2
7204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7206 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7207 echo $ECHO_N "(cached) $ECHO_C" >&6
7211 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7218 test -z "$as_dir" && as_dir=.
7219 for ac_exec_ext in '' $ac_executable_extensions; do
7220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7221 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7232 DOXYGEN=$ac_cv_path_DOXYGEN
7233 if test -n "$DOXYGEN"; then
7234 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7235 echo "${ECHO_T}$DOXYGEN" >&6; }
7237 { echo "$as_me:$LINENO: result: no" >&5
7238 echo "${ECHO_T}no" >&6; }
7242 # Extract the first word of "groff", so it can be a program name with args.
7243 set dummy groff; ac_word=$2
7244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7246 if test "${ac_cv_path_GROFF+set}" = set; then
7247 echo $ECHO_N "(cached) $ECHO_C" >&6
7251 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7258 test -z "$as_dir" && as_dir=.
7259 for ac_exec_ext in '' $ac_executable_extensions; do
7260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7261 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7272 GROFF=$ac_cv_path_GROFF
7273 if test -n "$GROFF"; then
7274 { echo "$as_me:$LINENO: result: $GROFF" >&5
7275 echo "${ECHO_T}$GROFF" >&6; }
7277 { echo "$as_me:$LINENO: result: no" >&5
7278 echo "${ECHO_T}no" >&6; }
7282 # Extract the first word of "gzip", so it can be a program name with args.
7283 set dummy gzip; ac_word=$2
7284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7286 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7287 echo $ECHO_N "(cached) $ECHO_C" >&6
7291 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298 test -z "$as_dir" && as_dir=.
7299 for ac_exec_ext in '' $ac_executable_extensions; do
7300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7301 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7312 GZIPBIN=$ac_cv_path_GZIPBIN
7313 if test -n "$GZIPBIN"; then
7314 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7315 echo "${ECHO_T}$GZIPBIN" >&6; }
7317 { echo "$as_me:$LINENO: result: no" >&5
7318 echo "${ECHO_T}no" >&6; }
7322 # Extract the first word of "pdfroff", so it can be a program name with args.
7323 set dummy pdfroff; ac_word=$2
7324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7326 if test "${ac_cv_path_PDFROFF+set}" = set; then
7327 echo $ECHO_N "(cached) $ECHO_C" >&6
7331 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338 test -z "$as_dir" && as_dir=.
7339 for ac_exec_ext in '' $ac_executable_extensions; do
7340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7341 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7352 PDFROFF=$ac_cv_path_PDFROFF
7353 if test -n "$PDFROFF"; then
7354 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7355 echo "${ECHO_T}$PDFROFF" >&6; }
7357 { echo "$as_me:$LINENO: result: no" >&5
7358 echo "${ECHO_T}no" >&6; }
7362 # Extract the first word of "zip", so it can be a program name with args.
7363 set dummy zip; ac_word=$2
7364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7366 if test "${ac_cv_path_ZIP+set}" = set; then
7367 echo $ECHO_N "(cached) $ECHO_C" >&6
7371 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7378 test -z "$as_dir" && as_dir=.
7379 for ac_exec_ext in '' $ac_executable_extensions; do
7380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7381 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7393 if test -n "$ZIP"; then
7394 { echo "$as_me:$LINENO: result: $ZIP" >&5
7395 echo "${ECHO_T}$ZIP" >&6; }
7397 { echo "$as_me:$LINENO: result: no" >&5
7398 echo "${ECHO_T}no" >&6; }
7402 for ac_prog in ocamlc
7404 # Extract the first word of "$ac_prog", so it can be a program name with args.
7405 set dummy $ac_prog; ac_word=$2
7406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7408 if test "${ac_cv_path_OCAMLC+set}" = set; then
7409 echo $ECHO_N "(cached) $ECHO_C" >&6
7413 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7420 test -z "$as_dir" && as_dir=.
7421 for ac_exec_ext in '' $ac_executable_extensions; do
7422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7423 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7434 OCAMLC=$ac_cv_path_OCAMLC
7435 if test -n "$OCAMLC"; then
7436 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7437 echo "${ECHO_T}$OCAMLC" >&6; }
7439 { echo "$as_me:$LINENO: result: no" >&5
7440 echo "${ECHO_T}no" >&6; }
7444 test -n "$OCAMLC" && break
7447 for ac_prog in ocamlopt
7449 # Extract the first word of "$ac_prog", so it can be a program name with args.
7450 set dummy $ac_prog; ac_word=$2
7451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7453 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7454 echo $ECHO_N "(cached) $ECHO_C" >&6
7458 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7465 test -z "$as_dir" && as_dir=.
7466 for ac_exec_ext in '' $ac_executable_extensions; do
7467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7468 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7479 OCAMLOPT=$ac_cv_path_OCAMLOPT
7480 if test -n "$OCAMLOPT"; then
7481 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7482 echo "${ECHO_T}$OCAMLOPT" >&6; }
7484 { echo "$as_me:$LINENO: result: no" >&5
7485 echo "${ECHO_T}no" >&6; }
7489 test -n "$OCAMLOPT" && break
7492 for ac_prog in ocamldep
7494 # Extract the first word of "$ac_prog", so it can be a program name with args.
7495 set dummy $ac_prog; ac_word=$2
7496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7498 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7499 echo $ECHO_N "(cached) $ECHO_C" >&6
7503 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7510 test -z "$as_dir" && as_dir=.
7511 for ac_exec_ext in '' $ac_executable_extensions; do
7512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7513 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7524 OCAMLDEP=$ac_cv_path_OCAMLDEP
7525 if test -n "$OCAMLDEP"; then
7526 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7527 echo "${ECHO_T}$OCAMLDEP" >&6; }
7529 { echo "$as_me:$LINENO: result: no" >&5
7530 echo "${ECHO_T}no" >&6; }
7534 test -n "$OCAMLDEP" && break
7537 for ac_prog in ocamldoc
7539 # Extract the first word of "$ac_prog", so it can be a program name with args.
7540 set dummy $ac_prog; ac_word=$2
7541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7543 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7544 echo $ECHO_N "(cached) $ECHO_C" >&6
7548 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7555 test -z "$as_dir" && as_dir=.
7556 for ac_exec_ext in '' $ac_executable_extensions; do
7557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7558 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7569 OCAMLDOC=$ac_cv_path_OCAMLDOC
7570 if test -n "$OCAMLDOC"; then
7571 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7572 echo "${ECHO_T}$OCAMLDOC" >&6; }
7574 { echo "$as_me:$LINENO: result: no" >&5
7575 echo "${ECHO_T}no" >&6; }
7579 test -n "$OCAMLDOC" && break
7582 for ac_prog in gas as
7584 # Extract the first word of "$ac_prog", so it can be a program name with args.
7585 set dummy $ac_prog; ac_word=$2
7586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7588 if test "${ac_cv_path_GAS+set}" = set; then
7589 echo $ECHO_N "(cached) $ECHO_C" >&6
7593 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7600 test -z "$as_dir" && as_dir=.
7601 for ac_exec_ext in '' $ac_executable_extensions; do
7602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7603 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7615 if test -n "$GAS"; then
7616 { echo "$as_me:$LINENO: result: $GAS" >&5
7617 echo "${ECHO_T}$GAS" >&6; }
7619 { echo "$as_me:$LINENO: result: no" >&5
7620 echo "${ECHO_T}no" >&6; }
7624 test -n "$GAS" && break
7628 { echo "$as_me:$LINENO: checking for linker version" >&5
7629 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7630 if test "${llvm_cv_link_version+set}" = set; then
7631 echo $ECHO_N "(cached) $ECHO_C" >&6
7634 version_string="$(ld -v 2>&1 | head -1)"
7637 if (echo "$version_string" | grep -q "ld64"); then
7638 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7640 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7644 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7645 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7647 cat >>confdefs.h <<_ACEOF
7648 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7653 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7654 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7655 if test "${llvm_cv_link_use_r+set}" = set; then
7656 echo $ECHO_N "(cached) $ECHO_C" >&6
7659 ac_cpp='$CPP $CPPFLAGS'
7660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7665 CFLAGS="$CFLAGS -Wl,-R."
7666 cat >conftest.$ac_ext <<_ACEOF
7669 cat confdefs.h >>conftest.$ac_ext
7670 cat >>conftest.$ac_ext <<_ACEOF
7671 /* end confdefs.h. */
7681 rm -f conftest.$ac_objext conftest$ac_exeext
7682 if { (ac_try="$ac_link"
7684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7685 *) ac_try_echo=$ac_try;;
7687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7688 (eval "$ac_link") 2>conftest.er1
7690 grep -v '^ *+' conftest.er1 >conftest.err
7692 cat conftest.err >&5
7693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694 (exit $ac_status); } &&
7695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7696 { (case "(($ac_try" in
7697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7698 *) ac_try_echo=$ac_try;;
7700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7701 (eval "$ac_try") 2>&5
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); }; } &&
7705 { ac_try='test -s conftest$ac_exeext'
7706 { (case "(($ac_try" in
7707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7708 *) ac_try_echo=$ac_try;;
7710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7711 (eval "$ac_try") 2>&5
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); }; }; then
7715 llvm_cv_link_use_r=yes
7717 echo "$as_me: failed program was:" >&5
7718 sed 's/^/| /' conftest.$ac_ext >&5
7720 llvm_cv_link_use_r=no
7723 rm -f core conftest.err conftest.$ac_objext \
7724 conftest$ac_exeext conftest.$ac_ext
7727 ac_cpp='$CPP $CPPFLAGS'
7728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7734 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7735 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7736 if test "$llvm_cv_link_use_r" = yes ; then
7738 cat >>confdefs.h <<\_ACEOF
7739 #define HAVE_LINK_R 1
7745 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7746 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7747 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7748 echo $ECHO_N "(cached) $ECHO_C" >&6
7751 ac_cpp='$CPP $CPPFLAGS'
7752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7757 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7758 cat >conftest.$ac_ext <<_ACEOF
7761 cat confdefs.h >>conftest.$ac_ext
7762 cat >>conftest.$ac_ext <<_ACEOF
7763 /* end confdefs.h. */
7773 rm -f conftest.$ac_objext conftest$ac_exeext
7774 if { (ac_try="$ac_link"
7776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7777 *) ac_try_echo=$ac_try;;
7779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7780 (eval "$ac_link") 2>conftest.er1
7782 grep -v '^ *+' conftest.er1 >conftest.err
7784 cat conftest.err >&5
7785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786 (exit $ac_status); } &&
7787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7788 { (case "(($ac_try" in
7789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7790 *) ac_try_echo=$ac_try;;
7792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7793 (eval "$ac_try") 2>&5
7795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796 (exit $ac_status); }; } &&
7797 { ac_try='test -s conftest$ac_exeext'
7798 { (case "(($ac_try" in
7799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7800 *) ac_try_echo=$ac_try;;
7802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7803 (eval "$ac_try") 2>&5
7805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7806 (exit $ac_status); }; }; then
7807 llvm_cv_link_use_export_dynamic=yes
7809 echo "$as_me: failed program was:" >&5
7810 sed 's/^/| /' conftest.$ac_ext >&5
7812 llvm_cv_link_use_export_dynamic=no
7815 rm -f core conftest.err conftest.$ac_objext \
7816 conftest$ac_exeext conftest.$ac_ext
7819 ac_cpp='$CPP $CPPFLAGS'
7820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7826 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7827 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7828 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7830 cat >>confdefs.h <<\_ACEOF
7831 #define HAVE_LINK_EXPORT_DYNAMIC 1
7837 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7838 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7839 if test "${llvm_cv_link_use_version_script+set}" = set; then
7840 echo $ECHO_N "(cached) $ECHO_C" >&6
7843 ac_cpp='$CPP $CPPFLAGS'
7844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7850 # The following code is from the autoconf manual,
7851 # "11.13: Limitations of Usual Tools".
7852 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7853 # Use mktemp if possible; otherwise fall back on mkdir,
7854 # with $RANDOM to make collisions less likely.
7858 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7860 test -n "$tmp" && test -d "$tmp"
7862 tmp=$TMPDIR/foo$$-$RANDOM
7863 (umask 077 && mkdir "$tmp")
7866 echo "{" > "$tmp/export.map"
7867 echo " global: main;" >> "$tmp/export.map"
7868 echo " local: *;" >> "$tmp/export.map"
7869 echo "};" >> "$tmp/export.map"
7871 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7872 cat >conftest.$ac_ext <<_ACEOF
7875 cat confdefs.h >>conftest.$ac_ext
7876 cat >>conftest.$ac_ext <<_ACEOF
7877 /* end confdefs.h. */
7887 rm -f conftest.$ac_objext conftest$ac_exeext
7888 if { (ac_try="$ac_link"
7890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7891 *) ac_try_echo=$ac_try;;
7893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7894 (eval "$ac_link") 2>conftest.er1
7896 grep -v '^ *+' conftest.er1 >conftest.err
7898 cat conftest.err >&5
7899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900 (exit $ac_status); } &&
7901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7902 { (case "(($ac_try" in
7903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7904 *) ac_try_echo=$ac_try;;
7906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7907 (eval "$ac_try") 2>&5
7909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 (exit $ac_status); }; } &&
7911 { ac_try='test -s conftest$ac_exeext'
7912 { (case "(($ac_try" in
7913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7914 *) ac_try_echo=$ac_try;;
7916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7917 (eval "$ac_try") 2>&5
7919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920 (exit $ac_status); }; }; then
7921 llvm_cv_link_use_version_script=yes
7923 echo "$as_me: failed program was:" >&5
7924 sed 's/^/| /' conftest.$ac_ext >&5
7926 llvm_cv_link_use_version_script=no
7929 rm -f core conftest.err conftest.$ac_objext \
7930 conftest$ac_exeext conftest.$ac_ext
7931 rm "$tmp/export.map"
7935 ac_cpp='$CPP $CPPFLAGS'
7936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7942 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7943 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7944 if test "$llvm_cv_link_use_version_script" = yes ; then
7945 HAVE_LINK_VERSION_SCRIPT=1
7952 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7953 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7954 if test "${ac_cv_c_const+set}" = set; then
7955 echo $ECHO_N "(cached) $ECHO_C" >&6
7957 cat >conftest.$ac_ext <<_ACEOF
7960 cat confdefs.h >>conftest.$ac_ext
7961 cat >>conftest.$ac_ext <<_ACEOF
7962 /* end confdefs.h. */
7967 /* FIXME: Include the comments suggested by Paul. */
7969 /* Ultrix mips cc rejects this. */
7970 typedef int charset[2];
7972 /* SunOS 4.1.1 cc rejects this. */
7973 char const *const *ccp;
7975 /* NEC SVR4.0.2 mips cc rejects this. */
7976 struct point {int x, y;};
7977 static struct point const zero = {0,0};
7978 /* AIX XL C 1.02.0.0 rejects this.
7979 It does not let you subtract one const X* pointer from another in
7980 an arm of an if-expression whose if-part is not a constant
7982 const char *g = "string";
7983 ccp = &g + (g ? g-g : 0);
7984 /* HPUX 7.0 cc rejects these. */
7987 ccp = (char const *const *) p;
7988 { /* SCO 3.2v4 cc rejects this. */
7990 char const *s = 0 ? (char *) 0 : (char const *) 0;
7995 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7997 const int *foo = &x[0];
8000 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8001 typedef const int *iptr;
8005 { /* AIX XL C 1.02.0.0 rejects this saying
8006 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8007 struct s { int j; const int *ap[3]; };
8008 struct s *b; b->j = 5;
8010 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8014 return !x[0] && !zero.x;
8021 rm -f conftest.$ac_objext
8022 if { (ac_try="$ac_compile"
8024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8025 *) ac_try_echo=$ac_try;;
8027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8028 (eval "$ac_compile") 2>conftest.er1
8030 grep -v '^ *+' conftest.er1 >conftest.err
8032 cat conftest.err >&5
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); } &&
8035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8036 { (case "(($ac_try" in
8037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8038 *) ac_try_echo=$ac_try;;
8040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8041 (eval "$ac_try") 2>&5
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); }; } &&
8045 { ac_try='test -s conftest.$ac_objext'
8046 { (case "(($ac_try" in
8047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8048 *) ac_try_echo=$ac_try;;
8050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8051 (eval "$ac_try") 2>&5
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); }; }; then
8057 echo "$as_me: failed program was:" >&5
8058 sed 's/^/| /' conftest.$ac_ext >&5
8063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8065 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8066 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8067 if test $ac_cv_c_const = no; then
8069 cat >>confdefs.h <<\_ACEOF
8081 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8082 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8083 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8084 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8086 echo $ECHO_N "(cached) $ECHO_C" >&6
8088 cat >conftest.$ac_ext <<_ACEOF
8091 cat confdefs.h >>conftest.$ac_ext
8092 cat >>conftest.$ac_ext <<_ACEOF
8093 /* end confdefs.h. */
8094 #include <sys/types.h>
8106 rm -f conftest.$ac_objext
8107 if { (ac_try="$ac_compile"
8109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8110 *) ac_try_echo=$ac_try;;
8112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8113 (eval "$ac_compile") 2>conftest.er1
8115 grep -v '^ *+' conftest.er1 >conftest.err
8117 cat conftest.err >&5
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); } &&
8120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8121 { (case "(($ac_try" in
8122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8123 *) ac_try_echo=$ac_try;;
8125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8126 (eval "$ac_try") 2>&5
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); }; } &&
8130 { ac_try='test -s conftest.$ac_objext'
8131 { (case "(($ac_try" in
8132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8133 *) ac_try_echo=$ac_try;;
8135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8136 (eval "$ac_try") 2>&5
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); }; }; then
8140 eval "$as_ac_Header=yes"
8142 echo "$as_me: failed program was:" >&5
8143 sed 's/^/| /' conftest.$ac_ext >&5
8145 eval "$as_ac_Header=no"
8148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8150 ac_res=`eval echo '${'$as_ac_Header'}'`
8151 { echo "$as_me:$LINENO: result: $ac_res" >&5
8152 echo "${ECHO_T}$ac_res" >&6; }
8153 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8154 cat >>confdefs.h <<_ACEOF
8155 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8158 ac_header_dirent=$ac_hdr; break
8162 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8163 if test $ac_header_dirent = dirent.h; then
8164 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8165 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8166 if test "${ac_cv_search_opendir+set}" = set; then
8167 echo $ECHO_N "(cached) $ECHO_C" >&6
8169 ac_func_search_save_LIBS=$LIBS
8170 cat >conftest.$ac_ext <<_ACEOF
8173 cat confdefs.h >>conftest.$ac_ext
8174 cat >>conftest.$ac_ext <<_ACEOF
8175 /* end confdefs.h. */
8177 /* Override any GCC internal prototype to avoid an error.
8178 Use char because int might match the return type of a GCC
8179 builtin and then its argument prototype would still apply. */
8192 for ac_lib in '' dir; do
8193 if test -z "$ac_lib"; then
8194 ac_res="none required"
8197 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8199 rm -f conftest.$ac_objext conftest$ac_exeext
8200 if { (ac_try="$ac_link"
8202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8203 *) ac_try_echo=$ac_try;;
8205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8206 (eval "$ac_link") 2>conftest.er1
8208 grep -v '^ *+' conftest.er1 >conftest.err
8210 cat conftest.err >&5
8211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212 (exit $ac_status); } &&
8213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8214 { (case "(($ac_try" in
8215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8216 *) ac_try_echo=$ac_try;;
8218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8219 (eval "$ac_try") 2>&5
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); }; } &&
8223 { ac_try='test -s conftest$ac_exeext'
8224 { (case "(($ac_try" in
8225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8226 *) ac_try_echo=$ac_try;;
8228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8229 (eval "$ac_try") 2>&5
8231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232 (exit $ac_status); }; }; then
8233 ac_cv_search_opendir=$ac_res
8235 echo "$as_me: failed program was:" >&5
8236 sed 's/^/| /' conftest.$ac_ext >&5
8241 rm -f core conftest.err conftest.$ac_objext \
8243 if test "${ac_cv_search_opendir+set}" = set; then
8247 if test "${ac_cv_search_opendir+set}" = set; then
8250 ac_cv_search_opendir=no
8253 LIBS=$ac_func_search_save_LIBS
8255 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8256 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8257 ac_res=$ac_cv_search_opendir
8258 if test "$ac_res" != no; then
8259 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8264 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8265 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8266 if test "${ac_cv_search_opendir+set}" = set; then
8267 echo $ECHO_N "(cached) $ECHO_C" >&6
8269 ac_func_search_save_LIBS=$LIBS
8270 cat >conftest.$ac_ext <<_ACEOF
8273 cat confdefs.h >>conftest.$ac_ext
8274 cat >>conftest.$ac_ext <<_ACEOF
8275 /* end confdefs.h. */
8277 /* Override any GCC internal prototype to avoid an error.
8278 Use char because int might match the return type of a GCC
8279 builtin and then its argument prototype would still apply. */
8292 for ac_lib in '' x; do
8293 if test -z "$ac_lib"; then
8294 ac_res="none required"
8297 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8299 rm -f conftest.$ac_objext conftest$ac_exeext
8300 if { (ac_try="$ac_link"
8302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8303 *) ac_try_echo=$ac_try;;
8305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8306 (eval "$ac_link") 2>conftest.er1
8308 grep -v '^ *+' conftest.er1 >conftest.err
8310 cat conftest.err >&5
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); } &&
8313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8314 { (case "(($ac_try" in
8315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8316 *) ac_try_echo=$ac_try;;
8318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8319 (eval "$ac_try") 2>&5
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); }; } &&
8323 { ac_try='test -s conftest$ac_exeext'
8324 { (case "(($ac_try" in
8325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8326 *) ac_try_echo=$ac_try;;
8328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8329 (eval "$ac_try") 2>&5
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); }; }; then
8333 ac_cv_search_opendir=$ac_res
8335 echo "$as_me: failed program was:" >&5
8336 sed 's/^/| /' conftest.$ac_ext >&5
8341 rm -f core conftest.err conftest.$ac_objext \
8343 if test "${ac_cv_search_opendir+set}" = set; then
8347 if test "${ac_cv_search_opendir+set}" = set; then
8350 ac_cv_search_opendir=no
8353 LIBS=$ac_func_search_save_LIBS
8355 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8356 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8357 ac_res=$ac_cv_search_opendir
8358 if test "$ac_res" != no; then
8359 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8366 for ac_header in dlfcn.h
8368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8370 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8373 echo $ECHO_N "(cached) $ECHO_C" >&6
8375 ac_res=`eval echo '${'$as_ac_Header'}'`
8376 { echo "$as_me:$LINENO: result: $ac_res" >&5
8377 echo "${ECHO_T}$ac_res" >&6; }
8379 # Is the header compilable?
8380 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8381 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8382 cat >conftest.$ac_ext <<_ACEOF
8385 cat confdefs.h >>conftest.$ac_ext
8386 cat >>conftest.$ac_ext <<_ACEOF
8387 /* end confdefs.h. */
8388 $ac_includes_default
8389 #include <$ac_header>
8391 rm -f conftest.$ac_objext
8392 if { (ac_try="$ac_compile"
8394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8395 *) ac_try_echo=$ac_try;;
8397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8398 (eval "$ac_compile") 2>conftest.er1
8400 grep -v '^ *+' conftest.er1 >conftest.err
8402 cat conftest.err >&5
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 (exit $ac_status); } &&
8405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8406 { (case "(($ac_try" in
8407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8408 *) ac_try_echo=$ac_try;;
8410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8411 (eval "$ac_try") 2>&5
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); }; } &&
8415 { ac_try='test -s conftest.$ac_objext'
8416 { (case "(($ac_try" in
8417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8418 *) ac_try_echo=$ac_try;;
8420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8421 (eval "$ac_try") 2>&5
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); }; }; then
8425 ac_header_compiler=yes
8427 echo "$as_me: failed program was:" >&5
8428 sed 's/^/| /' conftest.$ac_ext >&5
8430 ac_header_compiler=no
8433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8434 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8435 echo "${ECHO_T}$ac_header_compiler" >&6; }
8437 # Is the header present?
8438 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8439 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8440 cat >conftest.$ac_ext <<_ACEOF
8443 cat confdefs.h >>conftest.$ac_ext
8444 cat >>conftest.$ac_ext <<_ACEOF
8445 /* end confdefs.h. */
8446 #include <$ac_header>
8448 if { (ac_try="$ac_cpp conftest.$ac_ext"
8450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8451 *) ac_try_echo=$ac_try;;
8453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8456 grep -v '^ *+' conftest.er1 >conftest.err
8458 cat conftest.err >&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); } >/dev/null; then
8461 if test -s conftest.err; then
8462 ac_cpp_err=$ac_c_preproc_warn_flag
8463 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8470 if test -z "$ac_cpp_err"; then
8471 ac_header_preproc=yes
8473 echo "$as_me: failed program was:" >&5
8474 sed 's/^/| /' conftest.$ac_ext >&5
8476 ac_header_preproc=no
8479 rm -f conftest.err conftest.$ac_ext
8480 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8481 echo "${ECHO_T}$ac_header_preproc" >&6; }
8483 # So? What about this header?
8484 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8486 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8487 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8489 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8490 ac_header_preproc=yes
8493 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8494 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8495 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8496 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8497 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8498 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8499 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8500 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8502 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8503 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8504 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8506 ## ------------------------------------ ##
8507 ## Report this to http://llvm.org/bugs/ ##
8508 ## ------------------------------------ ##
8510 ) | sed "s/^/$as_me: WARNING: /" >&2
8513 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8516 echo $ECHO_N "(cached) $ECHO_C" >&6
8518 eval "$as_ac_Header=\$ac_header_preproc"
8520 ac_res=`eval echo '${'$as_ac_Header'}'`
8521 { echo "$as_me:$LINENO: result: $ac_res" >&5
8522 echo "${ECHO_T}$ac_res" >&6; }
8525 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8526 cat >>confdefs.h <<_ACEOF
8527 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8534 # Check whether --enable-ltdl-install was given.
8535 if test "${enable_ltdl_install+set}" = set; then
8536 enableval=$enable_ltdl_install;
8542 if test x"${enable_ltdl_install-no}" != xno; then
8544 INSTALL_LTDL_FALSE='#'
8546 INSTALL_LTDL_TRUE='#'
8552 if test x"${enable_ltdl_convenience-no}" != xno; then
8553 CONVENIENCE_LTDL_TRUE=
8554 CONVENIENCE_LTDL_FALSE='#'
8556 CONVENIENCE_LTDL_TRUE='#'
8557 CONVENIENCE_LTDL_FALSE=
8561 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8562 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8564 libname_spec='lib$name'
8572 shlibpath_overrides_runpath=unknown
8574 dynamic_linker="$host_os ld.so"
8575 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8576 if test "$GCC" = yes; then
8577 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8578 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8579 # if the path contains ";" then we assume it to be the separator
8580 # otherwise default to the standard path separator (i.e. ":") - it is
8581 # assumed that no part of a normal pathname contains ";" but that should
8582 # okay in the real world where ";" in dirpaths is itself problematic.
8583 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8585 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8588 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8590 need_lib_prefix=unknown
8591 hardcode_into_libs=no
8593 # when you set need_version to no, make sure it does not cause -set_version
8594 # flags to be left without arguments
8595 need_version=unknown
8600 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8601 shlibpath_var=LIBPATH
8603 # AIX 3 has no versioning support, so we append a major version to the name.
8604 soname_spec='${libname}${release}${shared_ext}$major'
8611 hardcode_into_libs=yes
8612 if test "$host_cpu" = ia64; then
8613 # AIX 5 supports IA64
8614 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8615 shlibpath_var=LD_LIBRARY_PATH
8617 # With GCC up to 2.95.x, collect2 would create an import file
8618 # for dependence libraries. The import file would start with
8619 # the line `#! .'. This would cause the generated library to
8620 # depend on `.', always an invalid library. This was fixed in
8621 # development snapshots of GCC prior to 3.0.
8623 aix4 | aix4.[01] | aix4.[01].*)
8624 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8626 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8633 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8634 # soname into executable. Probably we can add versioning support to
8635 # collect2, so additional links can be useful in future.
8636 if test "$aix_use_runtimelinking" = yes; then
8637 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8638 # instead of lib<name>.a to let people know that these are not
8639 # typical AIX shared libraries.
8640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8642 # We preserve .a as extension for shared libraries through AIX4.2
8643 # and later when we are not doing run time linking.
8644 library_names_spec='${libname}${release}.a $libname.a'
8645 soname_spec='${libname}${release}${shared_ext}$major'
8647 shlibpath_var=LIBPATH
8652 library_names_spec='$libname.ixlibrary $libname.a'
8653 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8654 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'
8658 library_names_spec='${libname}${shared_ext}'
8659 dynamic_linker="$host_os ld.so"
8660 shlibpath_var=LIBRARY_PATH
8666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8667 soname_spec='${libname}${release}${shared_ext}$major'
8668 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8669 shlibpath_var=LD_LIBRARY_PATH
8670 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8671 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8672 # the default ld.so.conf also contains /usr/contrib/lib and
8673 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8674 # libtool to hard-code these into programs
8677 cygwin* | mingw* | pw32*)
8678 version_type=windows
8683 case $GCC,$host_os in
8684 yes,cygwin* | yes,mingw* | yes,pw32*)
8685 library_names_spec='$libname.dll.a'
8686 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8687 postinstall_cmds='base_file=`basename \${file}`~
8688 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8689 dldir=$destdir/`dirname \$dlpath`~
8690 test -d \$dldir || mkdir -p \$dldir~
8691 $install_prog $dir/$dlname \$dldir/$dlname~
8692 chmod a+x \$dldir/$dlname'
8693 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8694 dlpath=$dir/\$dldll~
8696 shlibpath_overrides_runpath=yes
8700 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8701 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8702 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8705 # MinGW DLLs use traditional 'lib' prefix
8706 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8707 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8708 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8709 # It is most probably a Windows format PATH printed by
8710 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8711 # path with ; separators, and with drive letters. We can handle the
8712 # drive letters (cygwin fileutils understands them), so leave them,
8713 # especially as we might pass files found there to a mingw objdump,
8714 # which wouldn't understand a cygwinified path. Ahh.
8715 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8717 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8721 # pw32 DLLs use 'pw' prefix rather than 'lib'
8722 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8728 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8731 dynamic_linker='Win32 ld.exe'
8732 # FIXME: first we should search . and the directory the executable is in
8736 darwin* | rhapsody*)
8737 dynamic_linker="$host_os dyld"
8741 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8742 soname_spec='${libname}${release}${major}$shared_ext'
8743 shlibpath_overrides_runpath=yes
8744 shlibpath_var=DYLD_LIBRARY_PATH
8745 shrext_cmds='.dylib'
8746 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8747 if test "$GCC" = yes; then
8748 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"`
8750 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8752 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8760 soname_spec='${libname}${release}${shared_ext}$major'
8761 shlibpath_var=LD_LIBRARY_PATH
8772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8773 soname_spec='${libname}${release}${shared_ext}$major'
8774 shlibpath_var=LD_LIBRARY_PATH
8775 shlibpath_overrides_runpath=no
8776 hardcode_into_libs=yes
8777 dynamic_linker='GNU ld.so'
8780 freebsd* | dragonfly*)
8781 # DragonFly does not have aout. When/if they implement a new
8782 # versioning mechanism, adjust this.
8783 if test -x /usr/bin/objformat; then
8784 objformat=`/usr/bin/objformat`
8787 freebsd[123].*) objformat=aout ;;
8791 version_type=freebsd-$objformat
8792 case $version_type in
8794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8799 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8803 shlibpath_var=LD_LIBRARY_PATH
8806 shlibpath_overrides_runpath=yes
8808 freebsd3.[01]* | freebsdelf3.[01]*)
8809 shlibpath_overrides_runpath=yes
8810 hardcode_into_libs=yes
8812 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8813 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8814 shlibpath_overrides_runpath=no
8815 hardcode_into_libs=yes
8817 freebsd*) # from 4.6 on
8818 shlibpath_overrides_runpath=yes
8819 hardcode_into_libs=yes
8828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8829 soname_spec='${libname}${release}${shared_ext}$major'
8830 shlibpath_var=LD_LIBRARY_PATH
8831 hardcode_into_libs=yes
8834 hpux9* | hpux10* | hpux11*)
8835 # Give a soname corresponding to the major version so that dld.sl refuses to
8836 # link against other versions.
8843 hardcode_into_libs=yes
8844 dynamic_linker="$host_os dld.so"
8845 shlibpath_var=LD_LIBRARY_PATH
8846 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8848 soname_spec='${libname}${release}${shared_ext}$major'
8849 if test "X$HPUX_IA64_MODE" = X32; then
8850 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8852 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8854 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8858 hardcode_into_libs=yes
8859 dynamic_linker="$host_os dld.sl"
8860 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8861 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8863 soname_spec='${libname}${release}${shared_ext}$major'
8864 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8865 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8869 dynamic_linker="$host_os dld.sl"
8870 shlibpath_var=SHLIB_PATH
8871 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8873 soname_spec='${libname}${release}${shared_ext}$major'
8876 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8877 postinstall_cmds='chmod 555 $lib'
8884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8885 soname_spec='${libname}${release}${shared_ext}$major'
8886 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8887 shlibpath_var=LD_LIBRARY_PATH
8888 shlibpath_overrides_runpath=no
8889 hardcode_into_libs=yes
8892 irix5* | irix6* | nonstopux*)
8894 nonstopux*) version_type=nonstopux ;;
8896 if test "$lt_cv_prog_gnu_ld" = yes; then
8904 soname_spec='${libname}${release}${shared_ext}$major'
8905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8907 irix5* | nonstopux*)
8911 case $LD in # libtool.m4 will add one of these switches to LD
8912 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8913 libsuff= shlibsuff= libmagic=32-bit;;
8914 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8915 libsuff=32 shlibsuff=N32 libmagic=N32;;
8916 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8917 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8918 *) libsuff= shlibsuff= libmagic=never-match;;
8922 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8923 shlibpath_overrides_runpath=no
8924 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8925 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8926 hardcode_into_libs=yes
8929 # No shared lib support for Linux oldld, aout, or coff.
8930 linux*oldld* | linux*aout* | linux*coff*)
8934 # This must be Linux ELF.
8939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8940 soname_spec='${libname}${release}${shared_ext}$major'
8941 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8942 shlibpath_var=LD_LIBRARY_PATH
8943 shlibpath_overrides_runpath=no
8944 # This implies no fast_install, which is unacceptable.
8945 # Some rework will be needed to allow for fast_install
8946 # before this can be enabled.
8947 hardcode_into_libs=yes
8949 # Append ld.so.conf contents to the search path
8950 if test -f /etc/ld.so.conf; then
8951 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' ' '`
8952 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8955 # We used to test for /lib/ld.so.1 and disable shared libraries on
8956 # powerpc, because MkLinux only supported shared libraries with the
8957 # GNU dynamic linker. Since this was broken with cross compilers,
8958 # most powerpc-linux boxes support dynamic linking these days and
8959 # people can always --disable-shared, the test was removed, and we
8960 # assume the GNU/Linux dynamic linker is in use.
8961 dynamic_linker='GNU/Linux ld.so'
8968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8969 soname_spec='${libname}${release}${shared_ext}$major'
8970 shlibpath_var=LD_LIBRARY_PATH
8971 shlibpath_overrides_runpath=no
8972 hardcode_into_libs=yes
8973 dynamic_linker='GNU ld.so'
8980 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8982 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8983 dynamic_linker='NetBSD (a.out) ld.so'
8985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8986 soname_spec='${libname}${release}${shared_ext}$major'
8987 dynamic_linker='NetBSD ld.elf_so'
8989 shlibpath_var=LD_LIBRARY_PATH
8990 shlibpath_overrides_runpath=yes
8991 hardcode_into_libs=yes
8996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8997 shlibpath_var=LD_LIBRARY_PATH
8998 shlibpath_overrides_runpath=yes
9005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9006 soname_spec='${libname}${release}${shared_ext}$major'
9007 shlibpath_var=LD_LIBRARY_PATH
9008 shlibpath_overrides_runpath=yes
9013 sys_lib_dlsearch_path_spec="/usr/lib"
9015 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9017 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9018 *) need_version=no ;;
9020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9021 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9022 shlibpath_var=LD_LIBRARY_PATH
9023 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9025 openbsd2.[89] | openbsd2.[89].*)
9026 shlibpath_overrides_runpath=no
9029 shlibpath_overrides_runpath=yes
9033 shlibpath_overrides_runpath=yes
9038 libname_spec='$name'
9041 library_names_spec='$libname${shared_ext} $libname.a'
9042 dynamic_linker='OS/2 ld.exe'
9043 shlibpath_var=LIBPATH
9046 osf3* | osf4* | osf5*)
9050 soname_spec='${libname}${release}${shared_ext}$major'
9051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9052 shlibpath_var=LD_LIBRARY_PATH
9053 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9054 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9062 soname_spec='${libname}${release}${shared_ext}$major'
9063 shlibpath_var=LD_LIBRARY_PATH
9064 shlibpath_overrides_runpath=yes
9065 hardcode_into_libs=yes
9066 # ldd complains unless libraries are executable
9067 postinstall_cmds='chmod +x $lib'
9072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9073 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9074 shlibpath_var=LD_LIBRARY_PATH
9075 shlibpath_overrides_runpath=yes
9076 if test "$with_gnu_ld" = yes; then
9084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9085 soname_spec='${libname}${release}${shared_ext}$major'
9086 shlibpath_var=LD_LIBRARY_PATH
9087 case $host_vendor in
9089 shlibpath_overrides_runpath=no
9091 export_dynamic_flag_spec='${wl}-Blargedynsym'
9092 runpath_var=LD_RUN_PATH
9100 shlibpath_overrides_runpath=no
9101 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9107 if test -d /usr/nec ;then
9109 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9110 soname_spec='$libname${shared_ext}.$major'
9111 shlibpath_var=LD_LIBRARY_PATH
9115 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9116 version_type=freebsd-elf
9119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9120 soname_spec='${libname}${release}${shared_ext}$major'
9121 shlibpath_var=LD_LIBRARY_PATH
9122 hardcode_into_libs=yes
9123 if test "$with_gnu_ld" = yes; then
9124 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9125 shlibpath_overrides_runpath=no
9127 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9128 shlibpath_overrides_runpath=yes
9131 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9135 sys_lib_dlsearch_path_spec='/usr/lib'
9140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9141 soname_spec='${libname}${release}${shared_ext}$major'
9142 shlibpath_var=LD_LIBRARY_PATH
9149 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9150 echo "${ECHO_T}$dynamic_linker" >&6; }
9151 test "$dynamic_linker" = no && can_build_shared=no
9153 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9154 if test "$GCC" = yes; then
9155 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9159 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9160 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9161 if test "${libltdl_cv_shlibext+set}" = set; then
9162 echo $ECHO_N "(cached) $ECHO_C" >&6
9166 eval libltdl_cv_shlibext=$shrext_cmds
9169 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9170 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9171 if test -n "$libltdl_cv_shlibext"; then
9173 cat >>confdefs.h <<_ACEOF
9174 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9180 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9181 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9182 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9183 echo $ECHO_N "(cached) $ECHO_C" >&6
9185 libltdl_cv_shlibpath_var="$shlibpath_var"
9187 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9188 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9189 if test -n "$libltdl_cv_shlibpath_var"; then
9191 cat >>confdefs.h <<_ACEOF
9192 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9198 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9199 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9200 if test "${libltdl_cv_sys_search_path+set}" = set; then
9201 echo $ECHO_N "(cached) $ECHO_C" >&6
9203 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9205 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9206 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9207 if test -n "$libltdl_cv_sys_search_path"; then
9209 for dir in $libltdl_cv_sys_search_path; do
9210 if test -z "$sys_search_path"; then
9211 sys_search_path="$dir"
9213 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9217 cat >>confdefs.h <<_ACEOF
9218 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9223 { echo "$as_me:$LINENO: checking for objdir" >&5
9224 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9225 if test "${libltdl_cv_objdir+set}" = set; then
9226 echo $ECHO_N "(cached) $ECHO_C" >&6
9228 libltdl_cv_objdir="$objdir"
9229 if test -n "$objdir"; then
9232 rm -f .libs 2>/dev/null
9233 mkdir .libs 2>/dev/null
9234 if test -d .libs; then
9235 libltdl_cv_objdir=.libs
9237 # MS-DOS does not allow filenames that begin with a dot.
9238 libltdl_cv_objdir=_libs
9240 rmdir .libs 2>/dev/null
9244 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9245 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9247 cat >>confdefs.h <<_ACEOF
9248 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9256 # Check for command to grab the raw symbol name followed by C symbol from nm.
9257 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9258 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9259 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9260 echo $ECHO_N "(cached) $ECHO_C" >&6
9263 # These are sane defaults that work on at least a few old systems.
9264 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9266 # Character class describing NM global symbol codes.
9267 symcode='[BCDEGRST]'
9269 # Regexp to match symbols that can be accessed directly from C.
9270 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9272 # Transform an extracted symbol line into a proper C declaration
9273 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9275 # Transform an extracted symbol line into symbol name and symbol address
9276 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'"
9278 # Define system-specific variables.
9283 cygwin* | mingw* | pw32*)
9284 symcode='[ABCDGISTW]'
9286 hpux*) # Its linker distinguishes data from code symbols
9287 if test "$host_cpu" = ia64; then
9288 symcode='[ABCDEGRST]'
9290 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9291 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'"
9294 if test "$host_cpu" = ia64; then
9295 symcode='[ABCDGIRSTW]'
9296 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9297 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'"
9301 symcode='[BCDEGRST]'
9304 symcode='[BCDEGQRST]'
9315 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9323 # Handle CRLF in mingw tool chain
9327 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9331 # If we're using GNU nm, then use its standard symbol codes.
9332 case `$NM -V 2>&1` in
9333 *GNU* | *'with BFD'*)
9334 symcode='[ABCDGIRSTW]' ;;
9337 # Try without a prefix undercore, then with it.
9338 for ac_symprfx in "" "_"; do
9340 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9341 symxfrm="\\1 $ac_symprfx\\2 \\2"
9343 # Write the raw and C identifiers.
9344 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9346 # Check to see that the pipe works correctly.
9350 cat > conftest.$ac_ext <<EOF
9355 void nm_test_func(){}
9359 int main(){nm_test_var='a';nm_test_func();return(0);}
9362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9363 (eval $ac_compile) 2>&5
9365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); }; then
9367 # Now try to grab the symbols.
9369 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9370 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); } && test -s "$nlist"; then
9374 # Try sorting and uniquifying the output.
9375 if sort "$nlist" | uniq > "$nlist"T; then
9376 mv -f "$nlist"T "$nlist"
9381 # Make sure that we snagged all the symbols we need.
9382 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9383 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9384 cat <<EOF > conftest.$ac_ext
9390 # Now generate the symbol file.
9391 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9393 cat <<EOF >> conftest.$ac_ext
9394 #if defined (__STDC__) && __STDC__
9395 # define lt_ptr_t void *
9397 # define lt_ptr_t char *
9401 /* The mapping between symbol names and symbols. */
9406 lt_preloaded_symbols[] =
9409 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9410 cat <<\EOF >> conftest.$ac_ext
9418 # Now try linking the two files.
9419 mv conftest.$ac_objext conftstm.$ac_objext
9420 lt_save_LIBS="$LIBS"
9421 lt_save_CFLAGS="$CFLAGS"
9422 LIBS="conftstm.$ac_objext"
9423 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9425 (eval $ac_link) 2>&5
9427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9431 LIBS="$lt_save_LIBS"
9432 CFLAGS="$lt_save_CFLAGS"
9434 echo "cannot find nm_test_func in $nlist" >&5
9437 echo "cannot find nm_test_var in $nlist" >&5
9440 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9443 echo "$progname: failed program was:" >&5
9444 cat conftest.$ac_ext >&5
9446 rm -f conftest* conftst*
9448 # Do not use the global_symbol_pipe unless it works.
9449 if test "$pipe_works" = yes; then
9452 lt_cv_sys_global_symbol_pipe=
9458 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9459 lt_cv_sys_global_symbol_to_cdecl=
9461 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9462 { echo "$as_me:$LINENO: result: failed" >&5
9463 echo "${ECHO_T}failed" >&6; }
9465 { echo "$as_me:$LINENO: result: ok" >&5
9466 echo "${ECHO_T}ok" >&6; }
9470 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9471 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9472 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9473 echo $ECHO_N "(cached) $ECHO_C" >&6
9475 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9476 libltdl_cv_preloaded_symbols=yes
9478 libltdl_cv_preloaded_symbols=no
9482 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9483 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9484 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9486 cat >>confdefs.h <<\_ACEOF
9487 #define HAVE_PRELOADED_SYMBOLS 1
9495 ac_cpp='$CPP $CPPFLAGS'
9496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9501 { echo "$as_me:$LINENO: checking for shl_load" >&5
9502 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9503 if test "${ac_cv_func_shl_load+set}" = set; then
9504 echo $ECHO_N "(cached) $ECHO_C" >&6
9506 cat >conftest.$ac_ext <<_ACEOF
9509 cat confdefs.h >>conftest.$ac_ext
9510 cat >>conftest.$ac_ext <<_ACEOF
9511 /* end confdefs.h. */
9512 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9513 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9514 #define shl_load innocuous_shl_load
9516 /* System header to define __stub macros and hopefully few prototypes,
9517 which can conflict with char shl_load (); below.
9518 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9519 <limits.h> exists even on freestanding compilers. */
9522 # include <limits.h>
9524 # include <assert.h>
9529 /* Override any GCC internal prototype to avoid an error.
9530 Use char because int might match the return type of a GCC
9531 builtin and then its argument prototype would still apply. */
9536 /* The GNU C library defines this for functions which it implements
9537 to always fail with ENOSYS. Some functions are actually named
9538 something starting with __ and the normal name is an alias. */
9539 #if defined __stub_shl_load || defined __stub___shl_load
9551 rm -f conftest.$ac_objext conftest$ac_exeext
9552 if { (ac_try="$ac_link"
9554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9555 *) ac_try_echo=$ac_try;;
9557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9558 (eval "$ac_link") 2>conftest.er1
9560 grep -v '^ *+' conftest.er1 >conftest.err
9562 cat conftest.err >&5
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); } &&
9565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9566 { (case "(($ac_try" in
9567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9568 *) ac_try_echo=$ac_try;;
9570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9571 (eval "$ac_try") 2>&5
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); }; } &&
9575 { ac_try='test -s conftest$ac_exeext'
9576 { (case "(($ac_try" in
9577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9578 *) ac_try_echo=$ac_try;;
9580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9581 (eval "$ac_try") 2>&5
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 (exit $ac_status); }; }; then
9585 ac_cv_func_shl_load=yes
9587 echo "$as_me: failed program was:" >&5
9588 sed 's/^/| /' conftest.$ac_ext >&5
9590 ac_cv_func_shl_load=no
9593 rm -f core conftest.err conftest.$ac_objext \
9594 conftest$ac_exeext conftest.$ac_ext
9596 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9597 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9598 if test $ac_cv_func_shl_load = yes; then
9600 cat >>confdefs.h <<\_ACEOF
9601 #define HAVE_SHL_LOAD 1
9605 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9606 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9607 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9608 echo $ECHO_N "(cached) $ECHO_C" >&6
9610 ac_check_lib_save_LIBS=$LIBS
9612 cat >conftest.$ac_ext <<_ACEOF
9615 cat confdefs.h >>conftest.$ac_ext
9616 cat >>conftest.$ac_ext <<_ACEOF
9617 /* end confdefs.h. */
9619 /* Override any GCC internal prototype to avoid an error.
9620 Use char because int might match the return type of a GCC
9621 builtin and then its argument prototype would still apply. */
9634 rm -f conftest.$ac_objext conftest$ac_exeext
9635 if { (ac_try="$ac_link"
9637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9638 *) ac_try_echo=$ac_try;;
9640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9641 (eval "$ac_link") 2>conftest.er1
9643 grep -v '^ *+' conftest.er1 >conftest.err
9645 cat conftest.err >&5
9646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); } &&
9648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9649 { (case "(($ac_try" in
9650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9651 *) ac_try_echo=$ac_try;;
9653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9654 (eval "$ac_try") 2>&5
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); }; } &&
9658 { ac_try='test -s conftest$ac_exeext'
9659 { (case "(($ac_try" in
9660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9661 *) ac_try_echo=$ac_try;;
9663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9664 (eval "$ac_try") 2>&5
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); }; }; then
9668 ac_cv_lib_dld_shl_load=yes
9670 echo "$as_me: failed program was:" >&5
9671 sed 's/^/| /' conftest.$ac_ext >&5
9673 ac_cv_lib_dld_shl_load=no
9676 rm -f core conftest.err conftest.$ac_objext \
9677 conftest$ac_exeext conftest.$ac_ext
9678 LIBS=$ac_check_lib_save_LIBS
9680 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9681 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9682 if test $ac_cv_lib_dld_shl_load = yes; then
9684 cat >>confdefs.h <<\_ACEOF
9685 #define HAVE_SHL_LOAD 1
9688 LIBADD_DL="$LIBADD_DL -ldld"
9690 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9691 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9692 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9693 echo $ECHO_N "(cached) $ECHO_C" >&6
9695 ac_check_lib_save_LIBS=$LIBS
9697 cat >conftest.$ac_ext <<_ACEOF
9700 cat confdefs.h >>conftest.$ac_ext
9701 cat >>conftest.$ac_ext <<_ACEOF
9702 /* end confdefs.h. */
9704 /* Override any GCC internal prototype to avoid an error.
9705 Use char because int might match the return type of a GCC
9706 builtin and then its argument prototype would still apply. */
9719 rm -f conftest.$ac_objext conftest$ac_exeext
9720 if { (ac_try="$ac_link"
9722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9723 *) ac_try_echo=$ac_try;;
9725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9726 (eval "$ac_link") 2>conftest.er1
9728 grep -v '^ *+' conftest.er1 >conftest.err
9730 cat conftest.err >&5
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); } &&
9733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9734 { (case "(($ac_try" in
9735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9736 *) ac_try_echo=$ac_try;;
9738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9739 (eval "$ac_try") 2>&5
9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); }; } &&
9743 { ac_try='test -s conftest$ac_exeext'
9744 { (case "(($ac_try" in
9745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9746 *) ac_try_echo=$ac_try;;
9748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9749 (eval "$ac_try") 2>&5
9751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752 (exit $ac_status); }; }; then
9753 ac_cv_lib_dl_dlopen=yes
9755 echo "$as_me: failed program was:" >&5
9756 sed 's/^/| /' conftest.$ac_ext >&5
9758 ac_cv_lib_dl_dlopen=no
9761 rm -f core conftest.err conftest.$ac_objext \
9762 conftest$ac_exeext conftest.$ac_ext
9763 LIBS=$ac_check_lib_save_LIBS
9765 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9766 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9767 if test $ac_cv_lib_dl_dlopen = yes; then
9769 cat >>confdefs.h <<\_ACEOF
9770 #define HAVE_LIBDL 1
9773 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9775 cat >conftest.$ac_ext <<_ACEOF
9778 cat confdefs.h >>conftest.$ac_ext
9779 cat >>conftest.$ac_ext <<_ACEOF
9780 /* end confdefs.h. */
9793 rm -f conftest.$ac_objext conftest$ac_exeext
9794 if { (ac_try="$ac_link"
9796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9797 *) ac_try_echo=$ac_try;;
9799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9800 (eval "$ac_link") 2>conftest.er1
9802 grep -v '^ *+' conftest.er1 >conftest.err
9804 cat conftest.err >&5
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 (exit $ac_status); } &&
9807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9808 { (case "(($ac_try" in
9809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9810 *) ac_try_echo=$ac_try;;
9812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9813 (eval "$ac_try") 2>&5
9815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816 (exit $ac_status); }; } &&
9817 { ac_try='test -s conftest$ac_exeext'
9818 { (case "(($ac_try" in
9819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9820 *) ac_try_echo=$ac_try;;
9822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9823 (eval "$ac_try") 2>&5
9825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826 (exit $ac_status); }; }; then
9828 cat >>confdefs.h <<\_ACEOF
9829 #define HAVE_LIBDL 1
9831 libltdl_cv_func_dlopen="yes"
9833 echo "$as_me: failed program was:" >&5
9834 sed 's/^/| /' conftest.$ac_ext >&5
9836 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9837 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9838 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9839 echo $ECHO_N "(cached) $ECHO_C" >&6
9841 ac_check_lib_save_LIBS=$LIBS
9843 cat >conftest.$ac_ext <<_ACEOF
9846 cat confdefs.h >>conftest.$ac_ext
9847 cat >>conftest.$ac_ext <<_ACEOF
9848 /* end confdefs.h. */
9850 /* Override any GCC internal prototype to avoid an error.
9851 Use char because int might match the return type of a GCC
9852 builtin and then its argument prototype would still apply. */
9865 rm -f conftest.$ac_objext conftest$ac_exeext
9866 if { (ac_try="$ac_link"
9868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9869 *) ac_try_echo=$ac_try;;
9871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9872 (eval "$ac_link") 2>conftest.er1
9874 grep -v '^ *+' conftest.er1 >conftest.err
9876 cat conftest.err >&5
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); } &&
9879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9880 { (case "(($ac_try" in
9881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9882 *) ac_try_echo=$ac_try;;
9884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9885 (eval "$ac_try") 2>&5
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); }; } &&
9889 { ac_try='test -s conftest$ac_exeext'
9890 { (case "(($ac_try" in
9891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9892 *) ac_try_echo=$ac_try;;
9894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9895 (eval "$ac_try") 2>&5
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); }; }; then
9899 ac_cv_lib_svld_dlopen=yes
9901 echo "$as_me: failed program was:" >&5
9902 sed 's/^/| /' conftest.$ac_ext >&5
9904 ac_cv_lib_svld_dlopen=no
9907 rm -f core conftest.err conftest.$ac_objext \
9908 conftest$ac_exeext conftest.$ac_ext
9909 LIBS=$ac_check_lib_save_LIBS
9911 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9912 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9913 if test $ac_cv_lib_svld_dlopen = yes; then
9915 cat >>confdefs.h <<\_ACEOF
9916 #define HAVE_LIBDL 1
9919 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9921 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9922 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9923 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9924 echo $ECHO_N "(cached) $ECHO_C" >&6
9926 ac_check_lib_save_LIBS=$LIBS
9928 cat >conftest.$ac_ext <<_ACEOF
9931 cat confdefs.h >>conftest.$ac_ext
9932 cat >>conftest.$ac_ext <<_ACEOF
9933 /* end confdefs.h. */
9935 /* Override any GCC internal prototype to avoid an error.
9936 Use char because int might match the return type of a GCC
9937 builtin and then its argument prototype would still apply. */
9950 rm -f conftest.$ac_objext conftest$ac_exeext
9951 if { (ac_try="$ac_link"
9953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9954 *) ac_try_echo=$ac_try;;
9956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9957 (eval "$ac_link") 2>conftest.er1
9959 grep -v '^ *+' conftest.er1 >conftest.err
9961 cat conftest.err >&5
9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963 (exit $ac_status); } &&
9964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9965 { (case "(($ac_try" in
9966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9967 *) ac_try_echo=$ac_try;;
9969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9970 (eval "$ac_try") 2>&5
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); }; } &&
9974 { ac_try='test -s conftest$ac_exeext'
9975 { (case "(($ac_try" in
9976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9977 *) ac_try_echo=$ac_try;;
9979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9980 (eval "$ac_try") 2>&5
9982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983 (exit $ac_status); }; }; then
9984 ac_cv_lib_dld_dld_link=yes
9986 echo "$as_me: failed program was:" >&5
9987 sed 's/^/| /' conftest.$ac_ext >&5
9989 ac_cv_lib_dld_dld_link=no
9992 rm -f core conftest.err conftest.$ac_objext \
9993 conftest$ac_exeext conftest.$ac_ext
9994 LIBS=$ac_check_lib_save_LIBS
9996 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9997 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9998 if test $ac_cv_lib_dld_dld_link = yes; then
10000 cat >>confdefs.h <<\_ACEOF
10004 LIBADD_DL="$LIBADD_DL -ldld"
10006 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10007 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10008 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10009 echo $ECHO_N "(cached) $ECHO_C" >&6
10011 cat >conftest.$ac_ext <<_ACEOF
10014 cat confdefs.h >>conftest.$ac_ext
10015 cat >>conftest.$ac_ext <<_ACEOF
10016 /* end confdefs.h. */
10017 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10019 #define _dyld_func_lookup innocuous__dyld_func_lookup
10021 /* System header to define __stub macros and hopefully few prototypes,
10022 which can conflict with char _dyld_func_lookup (); below.
10023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10024 <limits.h> exists even on freestanding compilers. */
10027 # include <limits.h>
10029 # include <assert.h>
10032 #undef _dyld_func_lookup
10034 /* Override any GCC internal prototype to avoid an error.
10035 Use char because int might match the return type of a GCC
10036 builtin and then its argument prototype would still apply. */
10040 char _dyld_func_lookup ();
10041 /* The GNU C library defines this for functions which it implements
10042 to always fail with ENOSYS. Some functions are actually named
10043 something starting with __ and the normal name is an alias. */
10044 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10051 return _dyld_func_lookup ();
10056 rm -f conftest.$ac_objext conftest$ac_exeext
10057 if { (ac_try="$ac_link"
10058 case "(($ac_try" in
10059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10060 *) ac_try_echo=$ac_try;;
10062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10063 (eval "$ac_link") 2>conftest.er1
10065 grep -v '^ *+' conftest.er1 >conftest.err
10067 cat conftest.err >&5
10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 (exit $ac_status); } &&
10070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10071 { (case "(($ac_try" in
10072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10073 *) ac_try_echo=$ac_try;;
10075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10076 (eval "$ac_try") 2>&5
10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); }; } &&
10080 { ac_try='test -s conftest$ac_exeext'
10081 { (case "(($ac_try" in
10082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10083 *) ac_try_echo=$ac_try;;
10085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10086 (eval "$ac_try") 2>&5
10088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089 (exit $ac_status); }; }; then
10090 ac_cv_func__dyld_func_lookup=yes
10092 echo "$as_me: failed program was:" >&5
10093 sed 's/^/| /' conftest.$ac_ext >&5
10095 ac_cv_func__dyld_func_lookup=no
10098 rm -f core conftest.err conftest.$ac_objext \
10099 conftest$ac_exeext conftest.$ac_ext
10101 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10102 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10103 if test $ac_cv_func__dyld_func_lookup = yes; then
10105 cat >>confdefs.h <<\_ACEOF
10106 #define HAVE_DYLD 1
10120 rm -f core conftest.err conftest.$ac_objext \
10121 conftest$ac_exeext conftest.$ac_ext
10132 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10134 lt_save_LIBS="$LIBS"
10135 LIBS="$LIBS $LIBADD_DL"
10137 for ac_func in dlerror
10139 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10140 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10141 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10142 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10143 echo $ECHO_N "(cached) $ECHO_C" >&6
10145 cat >conftest.$ac_ext <<_ACEOF
10148 cat confdefs.h >>conftest.$ac_ext
10149 cat >>conftest.$ac_ext <<_ACEOF
10150 /* end confdefs.h. */
10151 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10153 #define $ac_func innocuous_$ac_func
10155 /* System header to define __stub macros and hopefully few prototypes,
10156 which can conflict with char $ac_func (); below.
10157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10158 <limits.h> exists even on freestanding compilers. */
10161 # include <limits.h>
10163 # include <assert.h>
10168 /* Override any GCC internal prototype to avoid an error.
10169 Use char because int might match the return type of a GCC
10170 builtin and then its argument prototype would still apply. */
10175 /* The GNU C library defines this for functions which it implements
10176 to always fail with ENOSYS. Some functions are actually named
10177 something starting with __ and the normal name is an alias. */
10178 #if defined __stub_$ac_func || defined __stub___$ac_func
10185 return $ac_func ();
10190 rm -f conftest.$ac_objext conftest$ac_exeext
10191 if { (ac_try="$ac_link"
10192 case "(($ac_try" in
10193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10194 *) ac_try_echo=$ac_try;;
10196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10197 (eval "$ac_link") 2>conftest.er1
10199 grep -v '^ *+' conftest.er1 >conftest.err
10201 cat conftest.err >&5
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); } &&
10204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10205 { (case "(($ac_try" in
10206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10207 *) ac_try_echo=$ac_try;;
10209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10210 (eval "$ac_try") 2>&5
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); }; } &&
10214 { ac_try='test -s conftest$ac_exeext'
10215 { (case "(($ac_try" in
10216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10217 *) ac_try_echo=$ac_try;;
10219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10220 (eval "$ac_try") 2>&5
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); }; }; then
10224 eval "$as_ac_var=yes"
10226 echo "$as_me: failed program was:" >&5
10227 sed 's/^/| /' conftest.$ac_ext >&5
10229 eval "$as_ac_var=no"
10232 rm -f core conftest.err conftest.$ac_objext \
10233 conftest$ac_exeext conftest.$ac_ext
10235 ac_res=`eval echo '${'$as_ac_var'}'`
10236 { echo "$as_me:$LINENO: result: $ac_res" >&5
10237 echo "${ECHO_T}$ac_res" >&6; }
10238 if test `eval echo '${'$as_ac_var'}'` = yes; then
10239 cat >>confdefs.h <<_ACEOF
10240 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10246 LIBS="$lt_save_LIBS"
10249 ac_cpp='$CPP $CPPFLAGS'
10250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10256 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10257 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10258 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10259 echo $ECHO_N "(cached) $ECHO_C" >&6
10261 ac_cv_sys_symbol_underscore=no
10262 cat > conftest.$ac_ext <<EOF
10263 void nm_test_func(){}
10264 int main(){nm_test_func;return 0;}
10266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10267 (eval $ac_compile) 2>&5
10269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270 (exit $ac_status); }; then
10271 # Now try to grab the symbols.
10272 ac_nlist=conftest.nm
10273 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10274 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277 (exit $ac_status); } && test -s "$ac_nlist"; then
10278 # See whether the symbols have a leading underscore.
10279 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10280 ac_cv_sys_symbol_underscore=yes
10282 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10285 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10289 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10292 echo "configure: failed program was:" >&5
10298 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10299 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10302 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10303 if test x"$libltdl_cv_func_dlopen" = xyes ||
10304 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10305 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10306 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10307 if test "${libltdl_cv_need_uscore+set}" = set; then
10308 echo $ECHO_N "(cached) $ECHO_C" >&6
10310 libltdl_cv_need_uscore=unknown
10312 LIBS="$LIBS $LIBADD_DL"
10313 if test "$cross_compiling" = yes; then :
10314 libltdl_cv_need_uscore=cross
10316 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10317 lt_status=$lt_dlunknown
10318 cat > conftest.$ac_ext <<EOF
10319 #line 10319 "configure"
10320 #include "confdefs.h"
10329 # define LT_DLGLOBAL RTLD_GLOBAL
10332 # define LT_DLGLOBAL DL_GLOBAL
10334 # define LT_DLGLOBAL 0
10338 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10339 find out it does not work in some platform. */
10340 #ifndef LT_DLLAZY_OR_NOW
10342 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10345 # define LT_DLLAZY_OR_NOW DL_LAZY
10348 # define LT_DLLAZY_OR_NOW RTLD_NOW
10351 # define LT_DLLAZY_OR_NOW DL_NOW
10353 # define LT_DLLAZY_OR_NOW 0
10361 extern "C" void exit (int);
10364 void fnord() { int i=42;}
10367 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10368 int status = $lt_dlunknown;
10372 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10373 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10374 /* dlclose (self); */
10382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10383 (eval $ac_link) 2>&5
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10387 (./conftest; exit; ) >&5 2>/dev/null
10389 case x$lt_status in
10390 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10391 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10392 x$lt_dlunknown|x*) ;;
10395 # compilation failed
10404 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10405 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10409 if test x"$libltdl_cv_need_uscore" = xyes; then
10411 cat >>confdefs.h <<\_ACEOF
10412 #define NEED_USCORE 1
10418 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10419 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10420 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10421 echo $ECHO_N "(cached) $ECHO_C" >&6
10423 # PORTME does your system automatically load deplibs for dlopen?
10424 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10425 # For now, we just catch OSes we know something about -- in the
10426 # future, we'll try test this programmatically.
10427 libltdl_cv_sys_dlopen_deplibs=unknown
10429 aix3*|aix4.1.*|aix4.2.*)
10430 # Unknown whether this is true for these versions of AIX, but
10431 # we want this `case' here to explicitly catch those versions.
10432 libltdl_cv_sys_dlopen_deplibs=unknown
10435 libltdl_cv_sys_dlopen_deplibs=yes
10438 # Assuming the user has installed a libdl from somewhere, this is true
10439 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10440 libltdl_cv_sys_dlopen_deplibs=yes
10442 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10443 # GNU and its variants, using gnu ld.so (Glibc)
10444 libltdl_cv_sys_dlopen_deplibs=yes
10447 libltdl_cv_sys_dlopen_deplibs=yes
10450 libltdl_cv_sys_dlopen_deplibs=yes
10452 irix[12345]*|irix6.[01]*)
10453 # Catch all versions of IRIX before 6.2, and indicate that we don't
10454 # know how it worked for any of those versions.
10455 libltdl_cv_sys_dlopen_deplibs=unknown
10458 # The case above catches anything before 6.2, and it's known that
10459 # at 6.2 and later dlopen does load deplibs.
10460 libltdl_cv_sys_dlopen_deplibs=yes
10463 libltdl_cv_sys_dlopen_deplibs=yes
10466 libltdl_cv_sys_dlopen_deplibs=yes
10469 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10470 # it did *not* use an RPATH in a shared library to find objects the
10471 # library depends on, so we explicitly say `no'.
10472 libltdl_cv_sys_dlopen_deplibs=no
10474 osf5.0|osf5.0a|osf5.1)
10475 # dlopen *does* load deplibs and with the right loader patch applied
10476 # it even uses RPATH in a shared library to search for shared objects
10477 # that the library depends on, but there's no easy way to know if that
10478 # patch is installed. Since this is the case, all we can really
10479 # say is unknown -- it depends on the patch being installed. If
10480 # it is, this changes to `yes'. Without it, it would be `no'.
10481 libltdl_cv_sys_dlopen_deplibs=unknown
10484 # the two cases above should catch all versions of osf <= 5.1. Read
10485 # the comments above for what we know about them.
10486 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10487 # is used to find them so we can finally say `yes'.
10488 libltdl_cv_sys_dlopen_deplibs=yes
10491 libltdl_cv_sys_dlopen_deplibs=yes
10493 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10494 libltdl_cv_sys_dlopen_deplibs=yes
10499 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10500 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10501 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10503 cat >>confdefs.h <<\_ACEOF
10504 #define LTDL_DLOPEN_DEPLIBS 1
10510 for ac_header in argz.h
10512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10514 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10517 echo $ECHO_N "(cached) $ECHO_C" >&6
10519 ac_res=`eval echo '${'$as_ac_Header'}'`
10520 { echo "$as_me:$LINENO: result: $ac_res" >&5
10521 echo "${ECHO_T}$ac_res" >&6; }
10523 # Is the header compilable?
10524 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10525 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10526 cat >conftest.$ac_ext <<_ACEOF
10529 cat confdefs.h >>conftest.$ac_ext
10530 cat >>conftest.$ac_ext <<_ACEOF
10531 /* end confdefs.h. */
10532 $ac_includes_default
10533 #include <$ac_header>
10535 rm -f conftest.$ac_objext
10536 if { (ac_try="$ac_compile"
10537 case "(($ac_try" in
10538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10539 *) ac_try_echo=$ac_try;;
10541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10542 (eval "$ac_compile") 2>conftest.er1
10544 grep -v '^ *+' conftest.er1 >conftest.err
10546 cat conftest.err >&5
10547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548 (exit $ac_status); } &&
10549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10550 { (case "(($ac_try" in
10551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10552 *) ac_try_echo=$ac_try;;
10554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10555 (eval "$ac_try") 2>&5
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); }; } &&
10559 { ac_try='test -s conftest.$ac_objext'
10560 { (case "(($ac_try" in
10561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10562 *) ac_try_echo=$ac_try;;
10564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10565 (eval "$ac_try") 2>&5
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); }; }; then
10569 ac_header_compiler=yes
10571 echo "$as_me: failed program was:" >&5
10572 sed 's/^/| /' conftest.$ac_ext >&5
10574 ac_header_compiler=no
10577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10578 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10579 echo "${ECHO_T}$ac_header_compiler" >&6; }
10581 # Is the header present?
10582 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10583 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10584 cat >conftest.$ac_ext <<_ACEOF
10587 cat confdefs.h >>conftest.$ac_ext
10588 cat >>conftest.$ac_ext <<_ACEOF
10589 /* end confdefs.h. */
10590 #include <$ac_header>
10592 if { (ac_try="$ac_cpp conftest.$ac_ext"
10593 case "(($ac_try" in
10594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10595 *) ac_try_echo=$ac_try;;
10597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10600 grep -v '^ *+' conftest.er1 >conftest.err
10602 cat conftest.err >&5
10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); } >/dev/null; then
10605 if test -s conftest.err; then
10606 ac_cpp_err=$ac_c_preproc_warn_flag
10607 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10614 if test -z "$ac_cpp_err"; then
10615 ac_header_preproc=yes
10617 echo "$as_me: failed program was:" >&5
10618 sed 's/^/| /' conftest.$ac_ext >&5
10620 ac_header_preproc=no
10623 rm -f conftest.err conftest.$ac_ext
10624 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10625 echo "${ECHO_T}$ac_header_preproc" >&6; }
10627 # So? What about this header?
10628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10630 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10631 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10633 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10634 ac_header_preproc=yes
10637 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10638 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10639 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10640 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10641 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10642 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10643 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10644 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10646 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10647 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10648 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10650 ## ------------------------------------ ##
10651 ## Report this to http://llvm.org/bugs/ ##
10652 ## ------------------------------------ ##
10654 ) | sed "s/^/$as_me: WARNING: /" >&2
10657 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10659 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10660 echo $ECHO_N "(cached) $ECHO_C" >&6
10662 eval "$as_ac_Header=\$ac_header_preproc"
10664 ac_res=`eval echo '${'$as_ac_Header'}'`
10665 { echo "$as_me:$LINENO: result: $ac_res" >&5
10666 echo "${ECHO_T}$ac_res" >&6; }
10669 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10670 cat >>confdefs.h <<_ACEOF
10671 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10679 { echo "$as_me:$LINENO: checking for error_t" >&5
10680 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10681 if test "${ac_cv_type_error_t+set}" = set; then
10682 echo $ECHO_N "(cached) $ECHO_C" >&6
10684 cat >conftest.$ac_ext <<_ACEOF
10687 cat confdefs.h >>conftest.$ac_ext
10688 cat >>conftest.$ac_ext <<_ACEOF
10689 /* end confdefs.h. */
10694 typedef error_t ac__type_new_;
10698 if ((ac__type_new_ *) 0)
10700 if (sizeof (ac__type_new_))
10706 rm -f conftest.$ac_objext
10707 if { (ac_try="$ac_compile"
10708 case "(($ac_try" in
10709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10710 *) ac_try_echo=$ac_try;;
10712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10713 (eval "$ac_compile") 2>conftest.er1
10715 grep -v '^ *+' conftest.er1 >conftest.err
10717 cat conftest.err >&5
10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); } &&
10720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10721 { (case "(($ac_try" in
10722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10723 *) ac_try_echo=$ac_try;;
10725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10726 (eval "$ac_try") 2>&5
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); }; } &&
10730 { ac_try='test -s conftest.$ac_objext'
10731 { (case "(($ac_try" in
10732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10733 *) ac_try_echo=$ac_try;;
10735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10736 (eval "$ac_try") 2>&5
10738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739 (exit $ac_status); }; }; then
10740 ac_cv_type_error_t=yes
10742 echo "$as_me: failed program was:" >&5
10743 sed 's/^/| /' conftest.$ac_ext >&5
10745 ac_cv_type_error_t=no
10748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10750 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10751 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10752 if test $ac_cv_type_error_t = yes; then
10754 cat >>confdefs.h <<_ACEOF
10755 #define HAVE_ERROR_T 1
10761 cat >>confdefs.h <<\_ACEOF
10762 #define error_t int
10773 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10775 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10776 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10777 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10778 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10779 echo $ECHO_N "(cached) $ECHO_C" >&6
10781 cat >conftest.$ac_ext <<_ACEOF
10784 cat confdefs.h >>conftest.$ac_ext
10785 cat >>conftest.$ac_ext <<_ACEOF
10786 /* end confdefs.h. */
10787 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10788 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10789 #define $ac_func innocuous_$ac_func
10791 /* System header to define __stub macros and hopefully few prototypes,
10792 which can conflict with char $ac_func (); below.
10793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10794 <limits.h> exists even on freestanding compilers. */
10797 # include <limits.h>
10799 # include <assert.h>
10804 /* Override any GCC internal prototype to avoid an error.
10805 Use char because int might match the return type of a GCC
10806 builtin and then its argument prototype would still apply. */
10811 /* The GNU C library defines this for functions which it implements
10812 to always fail with ENOSYS. Some functions are actually named
10813 something starting with __ and the normal name is an alias. */
10814 #if defined __stub_$ac_func || defined __stub___$ac_func
10821 return $ac_func ();
10826 rm -f conftest.$ac_objext conftest$ac_exeext
10827 if { (ac_try="$ac_link"
10828 case "(($ac_try" in
10829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10830 *) ac_try_echo=$ac_try;;
10832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10833 (eval "$ac_link") 2>conftest.er1
10835 grep -v '^ *+' conftest.er1 >conftest.err
10837 cat conftest.err >&5
10838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); } &&
10840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10841 { (case "(($ac_try" in
10842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10843 *) ac_try_echo=$ac_try;;
10845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10846 (eval "$ac_try") 2>&5
10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 (exit $ac_status); }; } &&
10850 { ac_try='test -s conftest$ac_exeext'
10851 { (case "(($ac_try" in
10852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10853 *) ac_try_echo=$ac_try;;
10855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10856 (eval "$ac_try") 2>&5
10858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); }; }; then
10860 eval "$as_ac_var=yes"
10862 echo "$as_me: failed program was:" >&5
10863 sed 's/^/| /' conftest.$ac_ext >&5
10865 eval "$as_ac_var=no"
10868 rm -f core conftest.err conftest.$ac_objext \
10869 conftest$ac_exeext conftest.$ac_ext
10871 ac_res=`eval echo '${'$as_ac_var'}'`
10872 { echo "$as_me:$LINENO: result: $ac_res" >&5
10873 echo "${ECHO_T}$ac_res" >&6; }
10874 if test `eval echo '${'$as_ac_var'}'` = yes; then
10875 cat >>confdefs.h <<_ACEOF
10876 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10909 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10912 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10914 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10917 echo $ECHO_N "(cached) $ECHO_C" >&6
10919 ac_res=`eval echo '${'$as_ac_Header'}'`
10920 { echo "$as_me:$LINENO: result: $ac_res" >&5
10921 echo "${ECHO_T}$ac_res" >&6; }
10923 # Is the header compilable?
10924 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10925 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10926 cat >conftest.$ac_ext <<_ACEOF
10929 cat confdefs.h >>conftest.$ac_ext
10930 cat >>conftest.$ac_ext <<_ACEOF
10931 /* end confdefs.h. */
10932 $ac_includes_default
10933 #include <$ac_header>
10935 rm -f conftest.$ac_objext
10936 if { (ac_try="$ac_compile"
10937 case "(($ac_try" in
10938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10939 *) ac_try_echo=$ac_try;;
10941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10942 (eval "$ac_compile") 2>conftest.er1
10944 grep -v '^ *+' conftest.er1 >conftest.err
10946 cat conftest.err >&5
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); } &&
10949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10950 { (case "(($ac_try" in
10951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10952 *) ac_try_echo=$ac_try;;
10954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10955 (eval "$ac_try") 2>&5
10957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958 (exit $ac_status); }; } &&
10959 { ac_try='test -s conftest.$ac_objext'
10960 { (case "(($ac_try" in
10961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10962 *) ac_try_echo=$ac_try;;
10964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10965 (eval "$ac_try") 2>&5
10967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968 (exit $ac_status); }; }; then
10969 ac_header_compiler=yes
10971 echo "$as_me: failed program was:" >&5
10972 sed 's/^/| /' conftest.$ac_ext >&5
10974 ac_header_compiler=no
10977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10978 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10979 echo "${ECHO_T}$ac_header_compiler" >&6; }
10981 # Is the header present?
10982 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10983 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10984 cat >conftest.$ac_ext <<_ACEOF
10987 cat confdefs.h >>conftest.$ac_ext
10988 cat >>conftest.$ac_ext <<_ACEOF
10989 /* end confdefs.h. */
10990 #include <$ac_header>
10992 if { (ac_try="$ac_cpp conftest.$ac_ext"
10993 case "(($ac_try" in
10994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10995 *) ac_try_echo=$ac_try;;
10997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11000 grep -v '^ *+' conftest.er1 >conftest.err
11002 cat conftest.err >&5
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); } >/dev/null; then
11005 if test -s conftest.err; then
11006 ac_cpp_err=$ac_c_preproc_warn_flag
11007 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11014 if test -z "$ac_cpp_err"; then
11015 ac_header_preproc=yes
11017 echo "$as_me: failed program was:" >&5
11018 sed 's/^/| /' conftest.$ac_ext >&5
11020 ac_header_preproc=no
11023 rm -f conftest.err conftest.$ac_ext
11024 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11025 echo "${ECHO_T}$ac_header_preproc" >&6; }
11027 # So? What about this header?
11028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11030 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11031 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11033 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11034 ac_header_preproc=yes
11037 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11038 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11039 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11040 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11041 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11042 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11043 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11044 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11046 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11047 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11048 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11050 ## ------------------------------------ ##
11051 ## Report this to http://llvm.org/bugs/ ##
11052 ## ------------------------------------ ##
11054 ) | sed "s/^/$as_me: WARNING: /" >&2
11057 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11060 echo $ECHO_N "(cached) $ECHO_C" >&6
11062 eval "$as_ac_Header=\$ac_header_preproc"
11064 ac_res=`eval echo '${'$as_ac_Header'}'`
11065 { echo "$as_me:$LINENO: result: $ac_res" >&5
11066 echo "${ECHO_T}$ac_res" >&6; }
11069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11070 cat >>confdefs.h <<_ACEOF
11071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11082 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11084 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11086 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11089 echo $ECHO_N "(cached) $ECHO_C" >&6
11091 ac_res=`eval echo '${'$as_ac_Header'}'`
11092 { echo "$as_me:$LINENO: result: $ac_res" >&5
11093 echo "${ECHO_T}$ac_res" >&6; }
11095 # Is the header compilable?
11096 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11097 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11098 cat >conftest.$ac_ext <<_ACEOF
11101 cat confdefs.h >>conftest.$ac_ext
11102 cat >>conftest.$ac_ext <<_ACEOF
11103 /* end confdefs.h. */
11104 $ac_includes_default
11105 #include <$ac_header>
11107 rm -f conftest.$ac_objext
11108 if { (ac_try="$ac_compile"
11109 case "(($ac_try" in
11110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11111 *) ac_try_echo=$ac_try;;
11113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11114 (eval "$ac_compile") 2>conftest.er1
11116 grep -v '^ *+' conftest.er1 >conftest.err
11118 cat conftest.err >&5
11119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120 (exit $ac_status); } &&
11121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11122 { (case "(($ac_try" in
11123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11124 *) ac_try_echo=$ac_try;;
11126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11127 (eval "$ac_try") 2>&5
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); }; } &&
11131 { ac_try='test -s conftest.$ac_objext'
11132 { (case "(($ac_try" in
11133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11134 *) ac_try_echo=$ac_try;;
11136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11137 (eval "$ac_try") 2>&5
11139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140 (exit $ac_status); }; }; then
11141 ac_header_compiler=yes
11143 echo "$as_me: failed program was:" >&5
11144 sed 's/^/| /' conftest.$ac_ext >&5
11146 ac_header_compiler=no
11149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11150 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11151 echo "${ECHO_T}$ac_header_compiler" >&6; }
11153 # Is the header present?
11154 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11155 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11156 cat >conftest.$ac_ext <<_ACEOF
11159 cat confdefs.h >>conftest.$ac_ext
11160 cat >>conftest.$ac_ext <<_ACEOF
11161 /* end confdefs.h. */
11162 #include <$ac_header>
11164 if { (ac_try="$ac_cpp conftest.$ac_ext"
11165 case "(($ac_try" in
11166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11167 *) ac_try_echo=$ac_try;;
11169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11172 grep -v '^ *+' conftest.er1 >conftest.err
11174 cat conftest.err >&5
11175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176 (exit $ac_status); } >/dev/null; then
11177 if test -s conftest.err; then
11178 ac_cpp_err=$ac_c_preproc_warn_flag
11179 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11186 if test -z "$ac_cpp_err"; then
11187 ac_header_preproc=yes
11189 echo "$as_me: failed program was:" >&5
11190 sed 's/^/| /' conftest.$ac_ext >&5
11192 ac_header_preproc=no
11195 rm -f conftest.err conftest.$ac_ext
11196 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11197 echo "${ECHO_T}$ac_header_preproc" >&6; }
11199 # So? What about this header?
11200 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11202 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11203 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11205 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11206 ac_header_preproc=yes
11209 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11210 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11211 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11212 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11213 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11214 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11215 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11216 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11218 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11219 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11220 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11222 ## ------------------------------------ ##
11223 ## Report this to http://llvm.org/bugs/ ##
11224 ## ------------------------------------ ##
11226 ) | sed "s/^/$as_me: WARNING: /" >&2
11229 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11232 echo $ECHO_N "(cached) $ECHO_C" >&6
11234 eval "$as_ac_Header=\$ac_header_preproc"
11236 ac_res=`eval echo '${'$as_ac_Header'}'`
11237 { echo "$as_me:$LINENO: result: $ac_res" >&5
11238 echo "${ECHO_T}$ac_res" >&6; }
11241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11242 cat >>confdefs.h <<_ACEOF
11243 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11252 for ac_header in string.h strings.h
11254 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11256 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11259 echo $ECHO_N "(cached) $ECHO_C" >&6
11261 ac_res=`eval echo '${'$as_ac_Header'}'`
11262 { echo "$as_me:$LINENO: result: $ac_res" >&5
11263 echo "${ECHO_T}$ac_res" >&6; }
11265 # Is the header compilable?
11266 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11267 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11268 cat >conftest.$ac_ext <<_ACEOF
11271 cat confdefs.h >>conftest.$ac_ext
11272 cat >>conftest.$ac_ext <<_ACEOF
11273 /* end confdefs.h. */
11274 $ac_includes_default
11275 #include <$ac_header>
11277 rm -f conftest.$ac_objext
11278 if { (ac_try="$ac_compile"
11279 case "(($ac_try" in
11280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11281 *) ac_try_echo=$ac_try;;
11283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11284 (eval "$ac_compile") 2>conftest.er1
11286 grep -v '^ *+' conftest.er1 >conftest.err
11288 cat conftest.err >&5
11289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); } &&
11291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11292 { (case "(($ac_try" in
11293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11294 *) ac_try_echo=$ac_try;;
11296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11297 (eval "$ac_try") 2>&5
11299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300 (exit $ac_status); }; } &&
11301 { ac_try='test -s conftest.$ac_objext'
11302 { (case "(($ac_try" in
11303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11304 *) ac_try_echo=$ac_try;;
11306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11307 (eval "$ac_try") 2>&5
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); }; }; then
11311 ac_header_compiler=yes
11313 echo "$as_me: failed program was:" >&5
11314 sed 's/^/| /' conftest.$ac_ext >&5
11316 ac_header_compiler=no
11319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11320 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11321 echo "${ECHO_T}$ac_header_compiler" >&6; }
11323 # Is the header present?
11324 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11325 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11326 cat >conftest.$ac_ext <<_ACEOF
11329 cat confdefs.h >>conftest.$ac_ext
11330 cat >>conftest.$ac_ext <<_ACEOF
11331 /* end confdefs.h. */
11332 #include <$ac_header>
11334 if { (ac_try="$ac_cpp conftest.$ac_ext"
11335 case "(($ac_try" in
11336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11337 *) ac_try_echo=$ac_try;;
11339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11340 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11342 grep -v '^ *+' conftest.er1 >conftest.err
11344 cat conftest.err >&5
11345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346 (exit $ac_status); } >/dev/null; then
11347 if test -s conftest.err; then
11348 ac_cpp_err=$ac_c_preproc_warn_flag
11349 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11356 if test -z "$ac_cpp_err"; then
11357 ac_header_preproc=yes
11359 echo "$as_me: failed program was:" >&5
11360 sed 's/^/| /' conftest.$ac_ext >&5
11362 ac_header_preproc=no
11365 rm -f conftest.err conftest.$ac_ext
11366 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11367 echo "${ECHO_T}$ac_header_preproc" >&6; }
11369 # So? What about this header?
11370 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11372 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11373 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11374 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11375 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11376 ac_header_preproc=yes
11379 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11380 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11381 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11382 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11383 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11384 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11385 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11386 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11388 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11389 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11390 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11392 ## ------------------------------------ ##
11393 ## Report this to http://llvm.org/bugs/ ##
11394 ## ------------------------------------ ##
11396 ) | sed "s/^/$as_me: WARNING: /" >&2
11399 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11402 echo $ECHO_N "(cached) $ECHO_C" >&6
11404 eval "$as_ac_Header=\$ac_header_preproc"
11406 ac_res=`eval echo '${'$as_ac_Header'}'`
11407 { echo "$as_me:$LINENO: result: $ac_res" >&5
11408 echo "${ECHO_T}$ac_res" >&6; }
11411 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11412 cat >>confdefs.h <<_ACEOF
11413 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11423 for ac_func in strchr index
11425 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11426 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11427 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11428 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11429 echo $ECHO_N "(cached) $ECHO_C" >&6
11431 cat >conftest.$ac_ext <<_ACEOF
11434 cat confdefs.h >>conftest.$ac_ext
11435 cat >>conftest.$ac_ext <<_ACEOF
11436 /* end confdefs.h. */
11437 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11438 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11439 #define $ac_func innocuous_$ac_func
11441 /* System header to define __stub macros and hopefully few prototypes,
11442 which can conflict with char $ac_func (); below.
11443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11444 <limits.h> exists even on freestanding compilers. */
11447 # include <limits.h>
11449 # include <assert.h>
11454 /* Override any GCC internal prototype to avoid an error.
11455 Use char because int might match the return type of a GCC
11456 builtin and then its argument prototype would still apply. */
11461 /* The GNU C library defines this for functions which it implements
11462 to always fail with ENOSYS. Some functions are actually named
11463 something starting with __ and the normal name is an alias. */
11464 #if defined __stub_$ac_func || defined __stub___$ac_func
11471 return $ac_func ();
11476 rm -f conftest.$ac_objext conftest$ac_exeext
11477 if { (ac_try="$ac_link"
11478 case "(($ac_try" in
11479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11480 *) ac_try_echo=$ac_try;;
11482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11483 (eval "$ac_link") 2>conftest.er1
11485 grep -v '^ *+' conftest.er1 >conftest.err
11487 cat conftest.err >&5
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); } &&
11490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11491 { (case "(($ac_try" in
11492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11493 *) ac_try_echo=$ac_try;;
11495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11496 (eval "$ac_try") 2>&5
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); }; } &&
11500 { ac_try='test -s conftest$ac_exeext'
11501 { (case "(($ac_try" in
11502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11503 *) ac_try_echo=$ac_try;;
11505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11506 (eval "$ac_try") 2>&5
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; }; then
11510 eval "$as_ac_var=yes"
11512 echo "$as_me: failed program was:" >&5
11513 sed 's/^/| /' conftest.$ac_ext >&5
11515 eval "$as_ac_var=no"
11518 rm -f core conftest.err conftest.$ac_objext \
11519 conftest$ac_exeext conftest.$ac_ext
11521 ac_res=`eval echo '${'$as_ac_var'}'`
11522 { echo "$as_me:$LINENO: result: $ac_res" >&5
11523 echo "${ECHO_T}$ac_res" >&6; }
11524 if test `eval echo '${'$as_ac_var'}'` = yes; then
11525 cat >>confdefs.h <<_ACEOF
11526 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11534 for ac_func in strrchr rindex
11536 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11537 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11538 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11539 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11540 echo $ECHO_N "(cached) $ECHO_C" >&6
11542 cat >conftest.$ac_ext <<_ACEOF
11545 cat confdefs.h >>conftest.$ac_ext
11546 cat >>conftest.$ac_ext <<_ACEOF
11547 /* end confdefs.h. */
11548 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11549 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11550 #define $ac_func innocuous_$ac_func
11552 /* System header to define __stub macros and hopefully few prototypes,
11553 which can conflict with char $ac_func (); below.
11554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11555 <limits.h> exists even on freestanding compilers. */
11558 # include <limits.h>
11560 # include <assert.h>
11565 /* Override any GCC internal prototype to avoid an error.
11566 Use char because int might match the return type of a GCC
11567 builtin and then its argument prototype would still apply. */
11572 /* The GNU C library defines this for functions which it implements
11573 to always fail with ENOSYS. Some functions are actually named
11574 something starting with __ and the normal name is an alias. */
11575 #if defined __stub_$ac_func || defined __stub___$ac_func
11582 return $ac_func ();
11587 rm -f conftest.$ac_objext conftest$ac_exeext
11588 if { (ac_try="$ac_link"
11589 case "(($ac_try" in
11590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11591 *) ac_try_echo=$ac_try;;
11593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11594 (eval "$ac_link") 2>conftest.er1
11596 grep -v '^ *+' conftest.er1 >conftest.err
11598 cat conftest.err >&5
11599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600 (exit $ac_status); } &&
11601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11602 { (case "(($ac_try" in
11603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11604 *) ac_try_echo=$ac_try;;
11606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11607 (eval "$ac_try") 2>&5
11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); }; } &&
11611 { ac_try='test -s conftest$ac_exeext'
11612 { (case "(($ac_try" in
11613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11614 *) ac_try_echo=$ac_try;;
11616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11617 (eval "$ac_try") 2>&5
11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); }; }; then
11621 eval "$as_ac_var=yes"
11623 echo "$as_me: failed program was:" >&5
11624 sed 's/^/| /' conftest.$ac_ext >&5
11626 eval "$as_ac_var=no"
11629 rm -f core conftest.err conftest.$ac_objext \
11630 conftest$ac_exeext conftest.$ac_ext
11632 ac_res=`eval echo '${'$as_ac_var'}'`
11633 { echo "$as_me:$LINENO: result: $ac_res" >&5
11634 echo "${ECHO_T}$ac_res" >&6; }
11635 if test `eval echo '${'$as_ac_var'}'` = yes; then
11636 cat >>confdefs.h <<_ACEOF
11637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11645 for ac_func in memcpy bcopy
11647 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11648 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11649 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11650 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11651 echo $ECHO_N "(cached) $ECHO_C" >&6
11653 cat >conftest.$ac_ext <<_ACEOF
11656 cat confdefs.h >>conftest.$ac_ext
11657 cat >>conftest.$ac_ext <<_ACEOF
11658 /* end confdefs.h. */
11659 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11661 #define $ac_func innocuous_$ac_func
11663 /* System header to define __stub macros and hopefully few prototypes,
11664 which can conflict with char $ac_func (); below.
11665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11666 <limits.h> exists even on freestanding compilers. */
11669 # include <limits.h>
11671 # include <assert.h>
11676 /* Override any GCC internal prototype to avoid an error.
11677 Use char because int might match the return type of a GCC
11678 builtin and then its argument prototype would still apply. */
11683 /* The GNU C library defines this for functions which it implements
11684 to always fail with ENOSYS. Some functions are actually named
11685 something starting with __ and the normal name is an alias. */
11686 #if defined __stub_$ac_func || defined __stub___$ac_func
11693 return $ac_func ();
11698 rm -f conftest.$ac_objext conftest$ac_exeext
11699 if { (ac_try="$ac_link"
11700 case "(($ac_try" in
11701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11702 *) ac_try_echo=$ac_try;;
11704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11705 (eval "$ac_link") 2>conftest.er1
11707 grep -v '^ *+' conftest.er1 >conftest.err
11709 cat conftest.err >&5
11710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711 (exit $ac_status); } &&
11712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11713 { (case "(($ac_try" in
11714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11715 *) ac_try_echo=$ac_try;;
11717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11718 (eval "$ac_try") 2>&5
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); }; } &&
11722 { ac_try='test -s conftest$ac_exeext'
11723 { (case "(($ac_try" in
11724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11725 *) ac_try_echo=$ac_try;;
11727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11728 (eval "$ac_try") 2>&5
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); }; }; then
11732 eval "$as_ac_var=yes"
11734 echo "$as_me: failed program was:" >&5
11735 sed 's/^/| /' conftest.$ac_ext >&5
11737 eval "$as_ac_var=no"
11740 rm -f core conftest.err conftest.$ac_objext \
11741 conftest$ac_exeext conftest.$ac_ext
11743 ac_res=`eval echo '${'$as_ac_var'}'`
11744 { echo "$as_me:$LINENO: result: $ac_res" >&5
11745 echo "${ECHO_T}$ac_res" >&6; }
11746 if test `eval echo '${'$as_ac_var'}'` = yes; then
11747 cat >>confdefs.h <<_ACEOF
11748 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11756 for ac_func in memmove strcmp
11758 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11759 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11760 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11761 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11762 echo $ECHO_N "(cached) $ECHO_C" >&6
11764 cat >conftest.$ac_ext <<_ACEOF
11767 cat confdefs.h >>conftest.$ac_ext
11768 cat >>conftest.$ac_ext <<_ACEOF
11769 /* end confdefs.h. */
11770 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11772 #define $ac_func innocuous_$ac_func
11774 /* System header to define __stub macros and hopefully few prototypes,
11775 which can conflict with char $ac_func (); below.
11776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11777 <limits.h> exists even on freestanding compilers. */
11780 # include <limits.h>
11782 # include <assert.h>
11787 /* Override any GCC internal prototype to avoid an error.
11788 Use char because int might match the return type of a GCC
11789 builtin and then its argument prototype would still apply. */
11794 /* The GNU C library defines this for functions which it implements
11795 to always fail with ENOSYS. Some functions are actually named
11796 something starting with __ and the normal name is an alias. */
11797 #if defined __stub_$ac_func || defined __stub___$ac_func
11804 return $ac_func ();
11809 rm -f conftest.$ac_objext conftest$ac_exeext
11810 if { (ac_try="$ac_link"
11811 case "(($ac_try" in
11812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11813 *) ac_try_echo=$ac_try;;
11815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11816 (eval "$ac_link") 2>conftest.er1
11818 grep -v '^ *+' conftest.er1 >conftest.err
11820 cat conftest.err >&5
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); } &&
11823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11824 { (case "(($ac_try" in
11825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11826 *) ac_try_echo=$ac_try;;
11828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11829 (eval "$ac_try") 2>&5
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); }; } &&
11833 { ac_try='test -s conftest$ac_exeext'
11834 { (case "(($ac_try" in
11835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11836 *) ac_try_echo=$ac_try;;
11838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11839 (eval "$ac_try") 2>&5
11841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842 (exit $ac_status); }; }; then
11843 eval "$as_ac_var=yes"
11845 echo "$as_me: failed program was:" >&5
11846 sed 's/^/| /' conftest.$ac_ext >&5
11848 eval "$as_ac_var=no"
11851 rm -f core conftest.err conftest.$ac_objext \
11852 conftest$ac_exeext conftest.$ac_ext
11854 ac_res=`eval echo '${'$as_ac_var'}'`
11855 { echo "$as_me:$LINENO: result: $ac_res" >&5
11856 echo "${ECHO_T}$ac_res" >&6; }
11857 if test `eval echo '${'$as_ac_var'}'` = yes; then
11858 cat >>confdefs.h <<_ACEOF
11859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11868 for ac_func in closedir opendir readdir
11870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11871 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11873 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11874 echo $ECHO_N "(cached) $ECHO_C" >&6
11876 cat >conftest.$ac_ext <<_ACEOF
11879 cat confdefs.h >>conftest.$ac_ext
11880 cat >>conftest.$ac_ext <<_ACEOF
11881 /* end confdefs.h. */
11882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11884 #define $ac_func innocuous_$ac_func
11886 /* System header to define __stub macros and hopefully few prototypes,
11887 which can conflict with char $ac_func (); below.
11888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11889 <limits.h> exists even on freestanding compilers. */
11892 # include <limits.h>
11894 # include <assert.h>
11899 /* Override any GCC internal prototype to avoid an error.
11900 Use char because int might match the return type of a GCC
11901 builtin and then its argument prototype would still apply. */
11906 /* The GNU C library defines this for functions which it implements
11907 to always fail with ENOSYS. Some functions are actually named
11908 something starting with __ and the normal name is an alias. */
11909 #if defined __stub_$ac_func || defined __stub___$ac_func
11916 return $ac_func ();
11921 rm -f conftest.$ac_objext conftest$ac_exeext
11922 if { (ac_try="$ac_link"
11923 case "(($ac_try" in
11924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11925 *) ac_try_echo=$ac_try;;
11927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11928 (eval "$ac_link") 2>conftest.er1
11930 grep -v '^ *+' conftest.er1 >conftest.err
11932 cat conftest.err >&5
11933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934 (exit $ac_status); } &&
11935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11936 { (case "(($ac_try" in
11937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11938 *) ac_try_echo=$ac_try;;
11940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11941 (eval "$ac_try") 2>&5
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); }; } &&
11945 { ac_try='test -s conftest$ac_exeext'
11946 { (case "(($ac_try" in
11947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11948 *) ac_try_echo=$ac_try;;
11950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11951 (eval "$ac_try") 2>&5
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); }; }; then
11955 eval "$as_ac_var=yes"
11957 echo "$as_me: failed program was:" >&5
11958 sed 's/^/| /' conftest.$ac_ext >&5
11960 eval "$as_ac_var=no"
11963 rm -f core conftest.err conftest.$ac_objext \
11964 conftest$ac_exeext conftest.$ac_ext
11966 ac_res=`eval echo '${'$as_ac_var'}'`
11967 { echo "$as_me:$LINENO: result: $ac_res" >&5
11968 echo "${ECHO_T}$ac_res" >&6; }
11969 if test `eval echo '${'$as_ac_var'}'` = yes; then
11970 cat >>confdefs.h <<_ACEOF
11971 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11979 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11980 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11993 if test "$GCC" != "yes" && test "$ICC" != "yes"
11995 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11996 echo "$as_me: error: gcc|icc required but not found" >&2;}
11997 { (exit 1); exit 1; }; }
12000 if test "$GXX" != "yes" && test "$IXX" != "yes"
12002 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12003 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12004 { (exit 1); exit 1; }; }
12007 if test "$GCC" = "yes"
12009 cat >conftest.$ac_ext <<_ACEOF
12010 #if !defined(__GNUC__) || __GNUC__ < 3
12011 #error Unsupported GCC version
12015 rm -f conftest.$ac_objext
12016 if { (ac_try="$ac_compile"
12017 case "(($ac_try" in
12018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12019 *) ac_try_echo=$ac_try;;
12021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12022 (eval "$ac_compile") 2>conftest.er1
12024 grep -v '^ *+' conftest.er1 >conftest.err
12026 cat conftest.err >&5
12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028 (exit $ac_status); } &&
12029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12030 { (case "(($ac_try" in
12031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12032 *) ac_try_echo=$ac_try;;
12034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12035 (eval "$ac_try") 2>&5
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); }; } &&
12039 { ac_try='test -s conftest.$ac_objext'
12040 { (case "(($ac_try" in
12041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12042 *) ac_try_echo=$ac_try;;
12044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12045 (eval "$ac_try") 2>&5
12047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048 (exit $ac_status); }; }; then
12051 echo "$as_me: failed program was:" >&5
12052 sed 's/^/| /' conftest.$ac_ext >&5
12054 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12055 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12056 { (exit 1); exit 1; }; }
12059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12062 if test -z "$llvm_cv_gnu_make_command"
12064 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12065 echo "$as_me: error: GNU Make required but not found" >&2;}
12066 { (exit 1); exit 1; }; }
12069 { echo "$as_me:$LINENO: result: ok" >&5
12070 echo "${ECHO_T}ok" >&6; }
12072 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12073 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12074 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12076 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12078 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12080 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12081 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12085 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12086 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12087 if test "${ac_cv_lib_m_sin+set}" = set; then
12088 echo $ECHO_N "(cached) $ECHO_C" >&6
12090 ac_check_lib_save_LIBS=$LIBS
12092 cat >conftest.$ac_ext <<_ACEOF
12095 cat confdefs.h >>conftest.$ac_ext
12096 cat >>conftest.$ac_ext <<_ACEOF
12097 /* end confdefs.h. */
12099 /* Override any GCC internal prototype to avoid an error.
12100 Use char because int might match the return type of a GCC
12101 builtin and then its argument prototype would still apply. */
12114 rm -f conftest.$ac_objext conftest$ac_exeext
12115 if { (ac_try="$ac_link"
12116 case "(($ac_try" in
12117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12118 *) ac_try_echo=$ac_try;;
12120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12121 (eval "$ac_link") 2>conftest.er1
12123 grep -v '^ *+' conftest.er1 >conftest.err
12125 cat conftest.err >&5
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); } &&
12128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12129 { (case "(($ac_try" in
12130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12131 *) ac_try_echo=$ac_try;;
12133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12134 (eval "$ac_try") 2>&5
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); }; } &&
12138 { ac_try='test -s conftest$ac_exeext'
12139 { (case "(($ac_try" in
12140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12141 *) ac_try_echo=$ac_try;;
12143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12144 (eval "$ac_try") 2>&5
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); }; }; then
12148 ac_cv_lib_m_sin=yes
12150 echo "$as_me: failed program was:" >&5
12151 sed 's/^/| /' conftest.$ac_ext >&5
12156 rm -f core conftest.err conftest.$ac_objext \
12157 conftest$ac_exeext conftest.$ac_ext
12158 LIBS=$ac_check_lib_save_LIBS
12160 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12161 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12162 if test $ac_cv_lib_m_sin = yes; then
12163 cat >>confdefs.h <<_ACEOF
12164 #define HAVE_LIBM 1
12171 if test "$llvm_cv_os_type" = "MingW" ; then
12173 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12174 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12175 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12176 echo $ECHO_N "(cached) $ECHO_C" >&6
12178 ac_check_lib_save_LIBS=$LIBS
12179 LIBS="-limagehlp $LIBS"
12180 cat >conftest.$ac_ext <<_ACEOF
12183 cat confdefs.h >>conftest.$ac_ext
12184 cat >>conftest.$ac_ext <<_ACEOF
12185 /* end confdefs.h. */
12196 rm -f conftest.$ac_objext conftest$ac_exeext
12197 if { (ac_try="$ac_link"
12198 case "(($ac_try" in
12199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12200 *) ac_try_echo=$ac_try;;
12202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12203 (eval "$ac_link") 2>conftest.er1
12205 grep -v '^ *+' conftest.er1 >conftest.err
12207 cat conftest.err >&5
12208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209 (exit $ac_status); } &&
12210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12211 { (case "(($ac_try" in
12212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12213 *) ac_try_echo=$ac_try;;
12215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12216 (eval "$ac_try") 2>&5
12218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); }; } &&
12220 { ac_try='test -s conftest$ac_exeext'
12221 { (case "(($ac_try" in
12222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12223 *) ac_try_echo=$ac_try;;
12225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12226 (eval "$ac_try") 2>&5
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); }; }; then
12230 ac_cv_lib_imagehlp_main=yes
12232 echo "$as_me: failed program was:" >&5
12233 sed 's/^/| /' conftest.$ac_ext >&5
12235 ac_cv_lib_imagehlp_main=no
12238 rm -f core conftest.err conftest.$ac_objext \
12239 conftest$ac_exeext conftest.$ac_ext
12240 LIBS=$ac_check_lib_save_LIBS
12242 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12243 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12244 if test $ac_cv_lib_imagehlp_main = yes; then
12245 cat >>confdefs.h <<_ACEOF
12246 #define HAVE_LIBIMAGEHLP 1
12249 LIBS="-limagehlp $LIBS"
12254 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12255 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12256 if test "${ac_cv_lib_psapi_main+set}" = set; then
12257 echo $ECHO_N "(cached) $ECHO_C" >&6
12259 ac_check_lib_save_LIBS=$LIBS
12260 LIBS="-lpsapi $LIBS"
12261 cat >conftest.$ac_ext <<_ACEOF
12264 cat confdefs.h >>conftest.$ac_ext
12265 cat >>conftest.$ac_ext <<_ACEOF
12266 /* end confdefs.h. */
12277 rm -f conftest.$ac_objext conftest$ac_exeext
12278 if { (ac_try="$ac_link"
12279 case "(($ac_try" in
12280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12281 *) ac_try_echo=$ac_try;;
12283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12284 (eval "$ac_link") 2>conftest.er1
12286 grep -v '^ *+' conftest.er1 >conftest.err
12288 cat conftest.err >&5
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); } &&
12291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12292 { (case "(($ac_try" in
12293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12294 *) ac_try_echo=$ac_try;;
12296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12297 (eval "$ac_try") 2>&5
12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); }; } &&
12301 { ac_try='test -s conftest$ac_exeext'
12302 { (case "(($ac_try" in
12303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12304 *) ac_try_echo=$ac_try;;
12306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12307 (eval "$ac_try") 2>&5
12309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); }; }; then
12311 ac_cv_lib_psapi_main=yes
12313 echo "$as_me: failed program was:" >&5
12314 sed 's/^/| /' conftest.$ac_ext >&5
12316 ac_cv_lib_psapi_main=no
12319 rm -f core conftest.err conftest.$ac_objext \
12320 conftest$ac_exeext conftest.$ac_ext
12321 LIBS=$ac_check_lib_save_LIBS
12323 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12324 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12325 if test $ac_cv_lib_psapi_main = yes; then
12326 cat >>confdefs.h <<_ACEOF
12327 #define HAVE_LIBPSAPI 1
12330 LIBS="-lpsapi $LIBS"
12336 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12337 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12338 if test "${ac_cv_search_dlopen+set}" = set; then
12339 echo $ECHO_N "(cached) $ECHO_C" >&6
12341 ac_func_search_save_LIBS=$LIBS
12342 cat >conftest.$ac_ext <<_ACEOF
12345 cat confdefs.h >>conftest.$ac_ext
12346 cat >>conftest.$ac_ext <<_ACEOF
12347 /* end confdefs.h. */
12349 /* Override any GCC internal prototype to avoid an error.
12350 Use char because int might match the return type of a GCC
12351 builtin and then its argument prototype would still apply. */
12364 for ac_lib in '' dl; do
12365 if test -z "$ac_lib"; then
12366 ac_res="none required"
12369 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12371 rm -f conftest.$ac_objext conftest$ac_exeext
12372 if { (ac_try="$ac_link"
12373 case "(($ac_try" in
12374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12375 *) ac_try_echo=$ac_try;;
12377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12378 (eval "$ac_link") 2>conftest.er1
12380 grep -v '^ *+' conftest.er1 >conftest.err
12382 cat conftest.err >&5
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); } &&
12385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12386 { (case "(($ac_try" in
12387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12388 *) ac_try_echo=$ac_try;;
12390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12391 (eval "$ac_try") 2>&5
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); }; } &&
12395 { ac_try='test -s conftest$ac_exeext'
12396 { (case "(($ac_try" in
12397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12398 *) ac_try_echo=$ac_try;;
12400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12401 (eval "$ac_try") 2>&5
12403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); }; }; then
12405 ac_cv_search_dlopen=$ac_res
12407 echo "$as_me: failed program was:" >&5
12408 sed 's/^/| /' conftest.$ac_ext >&5
12413 rm -f core conftest.err conftest.$ac_objext \
12415 if test "${ac_cv_search_dlopen+set}" = set; then
12419 if test "${ac_cv_search_dlopen+set}" = set; then
12422 ac_cv_search_dlopen=no
12424 rm conftest.$ac_ext
12425 LIBS=$ac_func_search_save_LIBS
12427 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12428 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12429 ac_res=$ac_cv_search_dlopen
12430 if test "$ac_res" != no; then
12431 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12433 cat >>confdefs.h <<\_ACEOF
12434 #define HAVE_DLOPEN 1
12438 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12439 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12443 if test "$llvm_cv_enable_libffi" = "yes" ; then
12444 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12445 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12446 if test "${ac_cv_search_ffi_call+set}" = set; then
12447 echo $ECHO_N "(cached) $ECHO_C" >&6
12449 ac_func_search_save_LIBS=$LIBS
12450 cat >conftest.$ac_ext <<_ACEOF
12453 cat confdefs.h >>conftest.$ac_ext
12454 cat >>conftest.$ac_ext <<_ACEOF
12455 /* end confdefs.h. */
12457 /* Override any GCC internal prototype to avoid an error.
12458 Use char because int might match the return type of a GCC
12459 builtin and then its argument prototype would still apply. */
12467 return ffi_call ();
12472 for ac_lib in '' ffi; do
12473 if test -z "$ac_lib"; then
12474 ac_res="none required"
12477 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12479 rm -f conftest.$ac_objext conftest$ac_exeext
12480 if { (ac_try="$ac_link"
12481 case "(($ac_try" in
12482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12483 *) ac_try_echo=$ac_try;;
12485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12486 (eval "$ac_link") 2>conftest.er1
12488 grep -v '^ *+' conftest.er1 >conftest.err
12490 cat conftest.err >&5
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); } &&
12493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12494 { (case "(($ac_try" in
12495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12496 *) ac_try_echo=$ac_try;;
12498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12499 (eval "$ac_try") 2>&5
12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); }; } &&
12503 { ac_try='test -s conftest$ac_exeext'
12504 { (case "(($ac_try" in
12505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12506 *) ac_try_echo=$ac_try;;
12508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12509 (eval "$ac_try") 2>&5
12511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512 (exit $ac_status); }; }; then
12513 ac_cv_search_ffi_call=$ac_res
12515 echo "$as_me: failed program was:" >&5
12516 sed 's/^/| /' conftest.$ac_ext >&5
12521 rm -f core conftest.err conftest.$ac_objext \
12523 if test "${ac_cv_search_ffi_call+set}" = set; then
12527 if test "${ac_cv_search_ffi_call+set}" = set; then
12530 ac_cv_search_ffi_call=no
12532 rm conftest.$ac_ext
12533 LIBS=$ac_func_search_save_LIBS
12535 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12536 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12537 ac_res=$ac_cv_search_ffi_call
12538 if test "$ac_res" != no; then
12539 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12541 cat >>confdefs.h <<\_ACEOF
12542 #define HAVE_FFI_CALL 1
12546 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12547 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12548 { (exit 1); exit 1; }; }
12553 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12554 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12555 if test "${ac_cv_search_mallinfo+set}" = set; then
12556 echo $ECHO_N "(cached) $ECHO_C" >&6
12558 ac_func_search_save_LIBS=$LIBS
12559 cat >conftest.$ac_ext <<_ACEOF
12562 cat confdefs.h >>conftest.$ac_ext
12563 cat >>conftest.$ac_ext <<_ACEOF
12564 /* end confdefs.h. */
12566 /* Override any GCC internal prototype to avoid an error.
12567 Use char because int might match the return type of a GCC
12568 builtin and then its argument prototype would still apply. */
12576 return mallinfo ();
12581 for ac_lib in '' malloc; do
12582 if test -z "$ac_lib"; then
12583 ac_res="none required"
12586 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12588 rm -f conftest.$ac_objext conftest$ac_exeext
12589 if { (ac_try="$ac_link"
12590 case "(($ac_try" in
12591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12592 *) ac_try_echo=$ac_try;;
12594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12595 (eval "$ac_link") 2>conftest.er1
12597 grep -v '^ *+' conftest.er1 >conftest.err
12599 cat conftest.err >&5
12600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601 (exit $ac_status); } &&
12602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12603 { (case "(($ac_try" in
12604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12605 *) ac_try_echo=$ac_try;;
12607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12608 (eval "$ac_try") 2>&5
12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); }; } &&
12612 { ac_try='test -s conftest$ac_exeext'
12613 { (case "(($ac_try" in
12614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12615 *) ac_try_echo=$ac_try;;
12617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12618 (eval "$ac_try") 2>&5
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); }; }; then
12622 ac_cv_search_mallinfo=$ac_res
12624 echo "$as_me: failed program was:" >&5
12625 sed 's/^/| /' conftest.$ac_ext >&5
12630 rm -f core conftest.err conftest.$ac_objext \
12632 if test "${ac_cv_search_mallinfo+set}" = set; then
12636 if test "${ac_cv_search_mallinfo+set}" = set; then
12639 ac_cv_search_mallinfo=no
12641 rm conftest.$ac_ext
12642 LIBS=$ac_func_search_save_LIBS
12644 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12645 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12646 ac_res=$ac_cv_search_mallinfo
12647 if test "$ac_res" != no; then
12648 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12650 cat >>confdefs.h <<\_ACEOF
12651 #define HAVE_MALLINFO 1
12657 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12659 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12660 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12661 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12662 echo $ECHO_N "(cached) $ECHO_C" >&6
12664 ac_check_lib_save_LIBS=$LIBS
12665 LIBS="-lpthread $LIBS"
12666 cat >conftest.$ac_ext <<_ACEOF
12669 cat confdefs.h >>conftest.$ac_ext
12670 cat >>conftest.$ac_ext <<_ACEOF
12671 /* end confdefs.h. */
12673 /* Override any GCC internal prototype to avoid an error.
12674 Use char because int might match the return type of a GCC
12675 builtin and then its argument prototype would still apply. */
12679 char pthread_mutex_init ();
12683 return pthread_mutex_init ();
12688 rm -f conftest.$ac_objext conftest$ac_exeext
12689 if { (ac_try="$ac_link"
12690 case "(($ac_try" in
12691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12692 *) ac_try_echo=$ac_try;;
12694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12695 (eval "$ac_link") 2>conftest.er1
12697 grep -v '^ *+' conftest.er1 >conftest.err
12699 cat conftest.err >&5
12700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701 (exit $ac_status); } &&
12702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12703 { (case "(($ac_try" in
12704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12705 *) ac_try_echo=$ac_try;;
12707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12708 (eval "$ac_try") 2>&5
12710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); }; } &&
12712 { ac_try='test -s conftest$ac_exeext'
12713 { (case "(($ac_try" in
12714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12715 *) ac_try_echo=$ac_try;;
12717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12718 (eval "$ac_try") 2>&5
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); }; }; then
12722 ac_cv_lib_pthread_pthread_mutex_init=yes
12724 echo "$as_me: failed program was:" >&5
12725 sed 's/^/| /' conftest.$ac_ext >&5
12727 ac_cv_lib_pthread_pthread_mutex_init=no
12730 rm -f core conftest.err conftest.$ac_objext \
12731 conftest$ac_exeext conftest.$ac_ext
12732 LIBS=$ac_check_lib_save_LIBS
12734 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12735 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12736 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12737 cat >>confdefs.h <<_ACEOF
12738 #define HAVE_LIBPTHREAD 1
12741 LIBS="-lpthread $LIBS"
12745 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12746 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12747 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12748 echo $ECHO_N "(cached) $ECHO_C" >&6
12750 ac_func_search_save_LIBS=$LIBS
12751 cat >conftest.$ac_ext <<_ACEOF
12754 cat confdefs.h >>conftest.$ac_ext
12755 cat >>conftest.$ac_ext <<_ACEOF
12756 /* end confdefs.h. */
12758 /* Override any GCC internal prototype to avoid an error.
12759 Use char because int might match the return type of a GCC
12760 builtin and then its argument prototype would still apply. */
12764 char pthread_mutex_lock ();
12768 return pthread_mutex_lock ();
12773 for ac_lib in '' pthread; do
12774 if test -z "$ac_lib"; then
12775 ac_res="none required"
12778 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12780 rm -f conftest.$ac_objext conftest$ac_exeext
12781 if { (ac_try="$ac_link"
12782 case "(($ac_try" in
12783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12784 *) ac_try_echo=$ac_try;;
12786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12787 (eval "$ac_link") 2>conftest.er1
12789 grep -v '^ *+' conftest.er1 >conftest.err
12791 cat conftest.err >&5
12792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); } &&
12794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12795 { (case "(($ac_try" in
12796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12797 *) ac_try_echo=$ac_try;;
12799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12800 (eval "$ac_try") 2>&5
12802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803 (exit $ac_status); }; } &&
12804 { ac_try='test -s conftest$ac_exeext'
12805 { (case "(($ac_try" in
12806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12807 *) ac_try_echo=$ac_try;;
12809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12810 (eval "$ac_try") 2>&5
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); }; }; then
12814 ac_cv_search_pthread_mutex_lock=$ac_res
12816 echo "$as_me: failed program was:" >&5
12817 sed 's/^/| /' conftest.$ac_ext >&5
12822 rm -f core conftest.err conftest.$ac_objext \
12824 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12828 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12831 ac_cv_search_pthread_mutex_lock=no
12833 rm conftest.$ac_ext
12834 LIBS=$ac_func_search_save_LIBS
12836 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12837 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12838 ac_res=$ac_cv_search_pthread_mutex_lock
12839 if test "$ac_res" != no; then
12840 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12842 cat >>confdefs.h <<\_ACEOF
12843 #define HAVE_PTHREAD_MUTEX_LOCK 1
12848 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12849 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12850 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12851 echo $ECHO_N "(cached) $ECHO_C" >&6
12853 ac_func_search_save_LIBS=$LIBS
12854 cat >conftest.$ac_ext <<_ACEOF
12857 cat confdefs.h >>conftest.$ac_ext
12858 cat >>conftest.$ac_ext <<_ACEOF
12859 /* end confdefs.h. */
12861 /* Override any GCC internal prototype to avoid an error.
12862 Use char because int might match the return type of a GCC
12863 builtin and then its argument prototype would still apply. */
12867 char pthread_rwlock_init ();
12871 return pthread_rwlock_init ();
12876 for ac_lib in '' pthread; do
12877 if test -z "$ac_lib"; then
12878 ac_res="none required"
12881 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12883 rm -f conftest.$ac_objext conftest$ac_exeext
12884 if { (ac_try="$ac_link"
12885 case "(($ac_try" in
12886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12887 *) ac_try_echo=$ac_try;;
12889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12890 (eval "$ac_link") 2>conftest.er1
12892 grep -v '^ *+' conftest.er1 >conftest.err
12894 cat conftest.err >&5
12895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896 (exit $ac_status); } &&
12897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12898 { (case "(($ac_try" in
12899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12900 *) ac_try_echo=$ac_try;;
12902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12903 (eval "$ac_try") 2>&5
12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); }; } &&
12907 { ac_try='test -s conftest$ac_exeext'
12908 { (case "(($ac_try" in
12909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12910 *) ac_try_echo=$ac_try;;
12912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12913 (eval "$ac_try") 2>&5
12915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916 (exit $ac_status); }; }; then
12917 ac_cv_search_pthread_rwlock_init=$ac_res
12919 echo "$as_me: failed program was:" >&5
12920 sed 's/^/| /' conftest.$ac_ext >&5
12925 rm -f core conftest.err conftest.$ac_objext \
12927 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12931 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12934 ac_cv_search_pthread_rwlock_init=no
12936 rm conftest.$ac_ext
12937 LIBS=$ac_func_search_save_LIBS
12939 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12940 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12941 ac_res=$ac_cv_search_pthread_rwlock_init
12942 if test "$ac_res" != no; then
12943 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12945 cat >>confdefs.h <<\_ACEOF
12946 #define HAVE_PTHREAD_RWLOCK_INIT 1
12951 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12952 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12953 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12954 echo $ECHO_N "(cached) $ECHO_C" >&6
12956 ac_func_search_save_LIBS=$LIBS
12957 cat >conftest.$ac_ext <<_ACEOF
12960 cat confdefs.h >>conftest.$ac_ext
12961 cat >>conftest.$ac_ext <<_ACEOF
12962 /* end confdefs.h. */
12964 /* Override any GCC internal prototype to avoid an error.
12965 Use char because int might match the return type of a GCC
12966 builtin and then its argument prototype would still apply. */
12970 char pthread_getspecific ();
12974 return pthread_getspecific ();
12979 for ac_lib in '' pthread; do
12980 if test -z "$ac_lib"; then
12981 ac_res="none required"
12984 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12986 rm -f conftest.$ac_objext conftest$ac_exeext
12987 if { (ac_try="$ac_link"
12988 case "(($ac_try" in
12989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12990 *) ac_try_echo=$ac_try;;
12992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12993 (eval "$ac_link") 2>conftest.er1
12995 grep -v '^ *+' conftest.er1 >conftest.err
12997 cat conftest.err >&5
12998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999 (exit $ac_status); } &&
13000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13001 { (case "(($ac_try" in
13002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13003 *) ac_try_echo=$ac_try;;
13005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13006 (eval "$ac_try") 2>&5
13008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009 (exit $ac_status); }; } &&
13010 { ac_try='test -s conftest$ac_exeext'
13011 { (case "(($ac_try" in
13012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13013 *) ac_try_echo=$ac_try;;
13015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13016 (eval "$ac_try") 2>&5
13018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019 (exit $ac_status); }; }; then
13020 ac_cv_search_pthread_getspecific=$ac_res
13022 echo "$as_me: failed program was:" >&5
13023 sed 's/^/| /' conftest.$ac_ext >&5
13028 rm -f core conftest.err conftest.$ac_objext \
13030 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13034 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13037 ac_cv_search_pthread_getspecific=no
13039 rm conftest.$ac_ext
13040 LIBS=$ac_func_search_save_LIBS
13042 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13043 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13044 ac_res=$ac_cv_search_pthread_getspecific
13045 if test "$ac_res" != no; then
13046 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13048 cat >>confdefs.h <<\_ACEOF
13049 #define HAVE_PTHREAD_GETSPECIFIC 1
13057 # Check whether --with-udis86 was given.
13058 if test "${with_udis86+set}" = set; then
13059 withval=$with_udis86;
13064 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13067 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13068 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13069 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13070 echo $ECHO_N "(cached) $ECHO_C" >&6
13072 ac_check_lib_save_LIBS=$LIBS
13073 LIBS="-ludis86 $LIBS"
13074 cat >conftest.$ac_ext <<_ACEOF
13077 cat confdefs.h >>conftest.$ac_ext
13078 cat >>conftest.$ac_ext <<_ACEOF
13079 /* end confdefs.h. */
13081 /* Override any GCC internal prototype to avoid an error.
13082 Use char because int might match the return type of a GCC
13083 builtin and then its argument prototype would still apply. */
13096 rm -f conftest.$ac_objext conftest$ac_exeext
13097 if { (ac_try="$ac_link"
13098 case "(($ac_try" in
13099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13100 *) ac_try_echo=$ac_try;;
13102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13103 (eval "$ac_link") 2>conftest.er1
13105 grep -v '^ *+' conftest.er1 >conftest.err
13107 cat conftest.err >&5
13108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109 (exit $ac_status); } &&
13110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13111 { (case "(($ac_try" in
13112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13113 *) ac_try_echo=$ac_try;;
13115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13116 (eval "$ac_try") 2>&5
13118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119 (exit $ac_status); }; } &&
13120 { ac_try='test -s conftest$ac_exeext'
13121 { (case "(($ac_try" in
13122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13123 *) ac_try_echo=$ac_try;;
13125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13126 (eval "$ac_try") 2>&5
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); }; }; then
13130 ac_cv_lib_udis86_ud_init=yes
13132 echo "$as_me: failed program was:" >&5
13133 sed 's/^/| /' conftest.$ac_ext >&5
13135 ac_cv_lib_udis86_ud_init=no
13138 rm -f core conftest.err conftest.$ac_objext \
13139 conftest$ac_exeext conftest.$ac_ext
13140 LIBS=$ac_check_lib_save_LIBS
13142 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13143 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13144 if test $ac_cv_lib_udis86_ud_init = yes; then
13145 cat >>confdefs.h <<_ACEOF
13146 #define HAVE_LIBUDIS86 1
13149 LIBS="-ludis86 $LIBS"
13153 echo "Error! You need to have libudis86 around."
13165 cat >>confdefs.h <<_ACEOF
13166 #define USE_UDIS86 $USE_UDIS86
13171 # Check whether --with-oprofile was given.
13172 if test "${with_oprofile+set}" = set; then
13173 withval=$with_oprofile;
13177 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13178 no) llvm_cv_oppath=
13181 *) llvm_cv_oppath="${withval}/lib/oprofile"
13182 CPPFLAGS="-I${withval}/include";;
13184 case $llvm_cv_os_type in
13186 if test -n "$llvm_cv_oppath" ; then
13187 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13188 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13189 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13190 if test "${ac_cv_search_bfd_init+set}" = set; then
13191 echo $ECHO_N "(cached) $ECHO_C" >&6
13193 ac_func_search_save_LIBS=$LIBS
13194 cat >conftest.$ac_ext <<_ACEOF
13197 cat confdefs.h >>conftest.$ac_ext
13198 cat >>conftest.$ac_ext <<_ACEOF
13199 /* end confdefs.h. */
13201 /* Override any GCC internal prototype to avoid an error.
13202 Use char because int might match the return type of a GCC
13203 builtin and then its argument prototype would still apply. */
13211 return bfd_init ();
13216 for ac_lib in '' bfd; do
13217 if test -z "$ac_lib"; then
13218 ac_res="none required"
13221 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13223 rm -f conftest.$ac_objext conftest$ac_exeext
13224 if { (ac_try="$ac_link"
13225 case "(($ac_try" in
13226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13227 *) ac_try_echo=$ac_try;;
13229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13230 (eval "$ac_link") 2>conftest.er1
13232 grep -v '^ *+' conftest.er1 >conftest.err
13234 cat conftest.err >&5
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); } &&
13237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13238 { (case "(($ac_try" in
13239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13240 *) ac_try_echo=$ac_try;;
13242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13243 (eval "$ac_try") 2>&5
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); }; } &&
13247 { ac_try='test -s conftest$ac_exeext'
13248 { (case "(($ac_try" in
13249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13250 *) ac_try_echo=$ac_try;;
13252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13253 (eval "$ac_try") 2>&5
13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); }; }; then
13257 ac_cv_search_bfd_init=$ac_res
13259 echo "$as_me: failed program was:" >&5
13260 sed 's/^/| /' conftest.$ac_ext >&5
13265 rm -f core conftest.err conftest.$ac_objext \
13267 if test "${ac_cv_search_bfd_init+set}" = set; then
13271 if test "${ac_cv_search_bfd_init+set}" = set; then
13274 ac_cv_search_bfd_init=no
13276 rm conftest.$ac_ext
13277 LIBS=$ac_func_search_save_LIBS
13279 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13280 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13281 ac_res=$ac_cv_search_bfd_init
13282 if test "$ac_res" != no; then
13283 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13287 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13288 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13289 if test "${ac_cv_search_op_open_agent+set}" = set; then
13290 echo $ECHO_N "(cached) $ECHO_C" >&6
13292 ac_func_search_save_LIBS=$LIBS
13293 cat >conftest.$ac_ext <<_ACEOF
13296 cat confdefs.h >>conftest.$ac_ext
13297 cat >>conftest.$ac_ext <<_ACEOF
13298 /* end confdefs.h. */
13300 /* Override any GCC internal prototype to avoid an error.
13301 Use char because int might match the return type of a GCC
13302 builtin and then its argument prototype would still apply. */
13306 char op_open_agent ();
13310 return op_open_agent ();
13315 for ac_lib in '' opagent; do
13316 if test -z "$ac_lib"; then
13317 ac_res="none required"
13320 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13322 rm -f conftest.$ac_objext conftest$ac_exeext
13323 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
13331 grep -v '^ *+' conftest.er1 >conftest.err
13333 cat conftest.err >&5
13334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335 (exit $ac_status); } &&
13336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13337 { (case "(($ac_try" in
13338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13339 *) ac_try_echo=$ac_try;;
13341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13342 (eval "$ac_try") 2>&5
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); }; } &&
13346 { ac_try='test -s conftest$ac_exeext'
13347 { (case "(($ac_try" in
13348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13349 *) ac_try_echo=$ac_try;;
13351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13352 (eval "$ac_try") 2>&5
13354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355 (exit $ac_status); }; }; then
13356 ac_cv_search_op_open_agent=$ac_res
13358 echo "$as_me: failed program was:" >&5
13359 sed 's/^/| /' conftest.$ac_ext >&5
13364 rm -f core conftest.err conftest.$ac_objext \
13366 if test "${ac_cv_search_op_open_agent+set}" = set; then
13370 if test "${ac_cv_search_op_open_agent+set}" = set; then
13373 ac_cv_search_op_open_agent=no
13375 rm conftest.$ac_ext
13376 LIBS=$ac_func_search_save_LIBS
13378 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13379 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13380 ac_res=$ac_cv_search_op_open_agent
13381 if test "$ac_res" != no; then
13382 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13386 echo "Error! You need to have libopagent around."
13391 if test "${ac_cv_header_opagent_h+set}" = set; then
13392 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13393 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13394 if test "${ac_cv_header_opagent_h+set}" = set; then
13395 echo $ECHO_N "(cached) $ECHO_C" >&6
13397 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13398 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13400 # Is the header compilable?
13401 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13402 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13403 cat >conftest.$ac_ext <<_ACEOF
13406 cat confdefs.h >>conftest.$ac_ext
13407 cat >>conftest.$ac_ext <<_ACEOF
13408 /* end confdefs.h. */
13409 $ac_includes_default
13410 #include <opagent.h>
13412 rm -f conftest.$ac_objext
13413 if { (ac_try="$ac_compile"
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_compile") 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_objext'
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_header_compiler=yes
13448 echo "$as_me: failed program was:" >&5
13449 sed 's/^/| /' conftest.$ac_ext >&5
13451 ac_header_compiler=no
13454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13455 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13456 echo "${ECHO_T}$ac_header_compiler" >&6; }
13458 # Is the header present?
13459 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13460 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13461 cat >conftest.$ac_ext <<_ACEOF
13464 cat confdefs.h >>conftest.$ac_ext
13465 cat >>conftest.$ac_ext <<_ACEOF
13466 /* end confdefs.h. */
13467 #include <opagent.h>
13469 if { (ac_try="$ac_cpp conftest.$ac_ext"
13470 case "(($ac_try" in
13471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13472 *) ac_try_echo=$ac_try;;
13474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13477 grep -v '^ *+' conftest.er1 >conftest.err
13479 cat conftest.err >&5
13480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); } >/dev/null; then
13482 if test -s conftest.err; then
13483 ac_cpp_err=$ac_c_preproc_warn_flag
13484 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13491 if test -z "$ac_cpp_err"; then
13492 ac_header_preproc=yes
13494 echo "$as_me: failed program was:" >&5
13495 sed 's/^/| /' conftest.$ac_ext >&5
13497 ac_header_preproc=no
13500 rm -f conftest.err conftest.$ac_ext
13501 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13502 echo "${ECHO_T}$ac_header_preproc" >&6; }
13504 # So? What about this header?
13505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13507 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13508 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13509 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13510 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13511 ac_header_preproc=yes
13514 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13515 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13516 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13517 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13518 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13519 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13520 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13521 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13522 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13523 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13524 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13525 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13527 ## ------------------------------------ ##
13528 ## Report this to http://llvm.org/bugs/ ##
13529 ## ------------------------------------ ##
13531 ) | sed "s/^/$as_me: WARNING: /" >&2
13534 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13535 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13536 if test "${ac_cv_header_opagent_h+set}" = set; then
13537 echo $ECHO_N "(cached) $ECHO_C" >&6
13539 ac_cv_header_opagent_h=$ac_header_preproc
13541 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13542 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13545 if test $ac_cv_header_opagent_h = yes; then
13549 echo "Error! You need to have opagent.h around."
13557 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13558 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13559 { (exit 1); exit 1; }; } ;;
13570 cat >>confdefs.h <<_ACEOF
13571 #define LLVM_USE_OPROFILE $USE_OPROFILE
13576 # Check whether --with-intel-jitevents was given.
13577 if test "${with_intel_jitevents+set}" = set; then
13578 withval=$with_intel_jitevents;
13579 case $llvm_cv_os_type in
13580 Linux|Win32|Cygwin|MingW) ;;
13582 { { echo "$as_me:$LINENO: error:
13583 Intel JIT API support is available on Linux and Windows only.\"" >&5
13584 echo "$as_me: error:
13585 Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13586 { (exit 1); exit 1; }; } ;;
13589 USE_INTEL_JITEVENTS=1
13591 case "$llvm_cv_target_arch" in
13592 x86) llvm_intel_jitevents_archdir="lib32";;
13593 x86_64) llvm_intel_jitevents_archdir="lib64";;
13594 *) echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13597 INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13598 INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13600 /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13601 INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13608 LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
13609 CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
13611 { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13612 echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13613 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13614 echo $ECHO_N "(cached) $ECHO_C" >&6
13616 ac_func_search_save_LIBS=$LIBS
13617 cat >conftest.$ac_ext <<_ACEOF
13620 cat confdefs.h >>conftest.$ac_ext
13621 cat >>conftest.$ac_ext <<_ACEOF
13622 /* end confdefs.h. */
13624 /* Override any GCC internal prototype to avoid an error.
13625 Use char because int might match the return type of a GCC
13626 builtin and then its argument prototype would still apply. */
13630 char iJIT_IsProfilingActive ();
13634 return iJIT_IsProfilingActive ();
13639 for ac_lib in '' jitprofiling; do
13640 if test -z "$ac_lib"; then
13641 ac_res="none required"
13644 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13646 rm -f conftest.$ac_objext conftest$ac_exeext
13647 if { (ac_try="$ac_link"
13648 case "(($ac_try" in
13649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13650 *) ac_try_echo=$ac_try;;
13652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13653 (eval "$ac_link") 2>conftest.er1
13655 grep -v '^ *+' conftest.er1 >conftest.err
13657 cat conftest.err >&5
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); } &&
13660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13661 { (case "(($ac_try" in
13662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13663 *) ac_try_echo=$ac_try;;
13665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13666 (eval "$ac_try") 2>&5
13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); }; } &&
13670 { ac_try='test -s conftest$ac_exeext'
13671 { (case "(($ac_try" in
13672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13673 *) ac_try_echo=$ac_try;;
13675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13676 (eval "$ac_try") 2>&5
13678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679 (exit $ac_status); }; }; then
13680 ac_cv_search_iJIT_IsProfilingActive=$ac_res
13682 echo "$as_me: failed program was:" >&5
13683 sed 's/^/| /' conftest.$ac_ext >&5
13688 rm -f core conftest.err conftest.$ac_objext \
13690 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13694 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13697 ac_cv_search_iJIT_IsProfilingActive=no
13699 rm conftest.$ac_ext
13700 LIBS=$ac_func_search_save_LIBS
13702 { echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13703 echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13704 ac_res=$ac_cv_search_iJIT_IsProfilingActive
13705 if test "$ac_res" != no; then
13706 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13710 echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13715 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13716 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13717 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13718 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13719 echo $ECHO_N "(cached) $ECHO_C" >&6
13721 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13722 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13724 # Is the header compilable?
13725 { echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13726 echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13727 cat >conftest.$ac_ext <<_ACEOF
13730 cat confdefs.h >>conftest.$ac_ext
13731 cat >>conftest.$ac_ext <<_ACEOF
13732 /* end confdefs.h. */
13733 $ac_includes_default
13734 #include <jitprofiling.h>
13736 rm -f conftest.$ac_objext
13737 if { (ac_try="$ac_compile"
13738 case "(($ac_try" in
13739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13740 *) ac_try_echo=$ac_try;;
13742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13743 (eval "$ac_compile") 2>conftest.er1
13745 grep -v '^ *+' conftest.er1 >conftest.err
13747 cat conftest.err >&5
13748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749 (exit $ac_status); } &&
13750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13751 { (case "(($ac_try" in
13752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13753 *) ac_try_echo=$ac_try;;
13755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13756 (eval "$ac_try") 2>&5
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); }; } &&
13760 { ac_try='test -s conftest.$ac_objext'
13761 { (case "(($ac_try" in
13762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13763 *) ac_try_echo=$ac_try;;
13765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13766 (eval "$ac_try") 2>&5
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); }; }; then
13770 ac_header_compiler=yes
13772 echo "$as_me: failed program was:" >&5
13773 sed 's/^/| /' conftest.$ac_ext >&5
13775 ac_header_compiler=no
13778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13779 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13780 echo "${ECHO_T}$ac_header_compiler" >&6; }
13782 # Is the header present?
13783 { echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13784 echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13785 cat >conftest.$ac_ext <<_ACEOF
13788 cat confdefs.h >>conftest.$ac_ext
13789 cat >>conftest.$ac_ext <<_ACEOF
13790 /* end confdefs.h. */
13791 #include <jitprofiling.h>
13793 if { (ac_try="$ac_cpp conftest.$ac_ext"
13794 case "(($ac_try" in
13795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13796 *) ac_try_echo=$ac_try;;
13798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13799 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13801 grep -v '^ *+' conftest.er1 >conftest.err
13803 cat conftest.err >&5
13804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805 (exit $ac_status); } >/dev/null; then
13806 if test -s conftest.err; then
13807 ac_cpp_err=$ac_c_preproc_warn_flag
13808 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13815 if test -z "$ac_cpp_err"; then
13816 ac_header_preproc=yes
13818 echo "$as_me: failed program was:" >&5
13819 sed 's/^/| /' conftest.$ac_ext >&5
13821 ac_header_preproc=no
13824 rm -f conftest.err conftest.$ac_ext
13825 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13826 echo "${ECHO_T}$ac_header_preproc" >&6; }
13828 # So? What about this header?
13829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13831 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13832 echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13833 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13834 echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13835 ac_header_preproc=yes
13838 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13839 echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13840 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&5
13841 echo "$as_me: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&2;}
13842 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13843 echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13844 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&5
13845 echo "$as_me: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&2;}
13846 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13847 echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13848 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13849 echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13851 ## ------------------------------------ ##
13852 ## Report this to http://llvm.org/bugs/ ##
13853 ## ------------------------------------ ##
13855 ) | sed "s/^/$as_me: WARNING: /" >&2
13858 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13859 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13860 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13861 echo $ECHO_N "(cached) $ECHO_C" >&6
13863 ac_cv_header_jitprofiling_h=$ac_header_preproc
13865 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13866 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13869 if test $ac_cv_header_jitprofiling_h = yes; then
13873 echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13883 USE_INTEL_JITEVENTS=0
13889 cat >>confdefs.h <<_ACEOF
13890 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13894 for ac_prog in xml2-config
13896 # Extract the first word of "$ac_prog", so it can be a program name with args.
13897 set dummy $ac_prog; ac_word=$2
13898 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13900 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13901 echo $ECHO_N "(cached) $ECHO_C" >&6
13903 if test -n "$XML2CONFIG"; then
13904 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13907 for as_dir in $PATH
13910 test -z "$as_dir" && as_dir=.
13911 for ac_exec_ext in '' $ac_executable_extensions; do
13912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13913 ac_cv_prog_XML2CONFIG="$ac_prog"
13914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13923 XML2CONFIG=$ac_cv_prog_XML2CONFIG
13924 if test -n "$XML2CONFIG"; then
13925 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13926 echo "${ECHO_T}$XML2CONFIG" >&6; }
13928 { echo "$as_me:$LINENO: result: no" >&5
13929 echo "${ECHO_T}no" >&6; }
13933 test -n "$XML2CONFIG" && break
13937 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13938 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13939 if test "x$XML2CONFIG" = "x"; then
13940 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13941 echo "${ECHO_T}xml2-config not found" >&6; }
13943 LIBXML2_INC=`$XML2CONFIG --cflags`
13944 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13945 echo "${ECHO_T}$LIBXML2_INC" >&6; }
13946 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13947 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13948 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13949 echo $ECHO_N "(cached) $ECHO_C" >&6
13951 ac_check_lib_save_LIBS=$LIBS
13952 LIBS="-lxml2 $LIBS"
13953 cat >conftest.$ac_ext <<_ACEOF
13956 cat confdefs.h >>conftest.$ac_ext
13957 cat >>conftest.$ac_ext <<_ACEOF
13958 /* end confdefs.h. */
13960 /* Override any GCC internal prototype to avoid an error.
13961 Use char because int might match the return type of a GCC
13962 builtin and then its argument prototype would still apply. */
13966 char xmlReadFile ();
13970 return xmlReadFile ();
13975 rm -f conftest.$ac_objext conftest$ac_exeext
13976 if { (ac_try="$ac_link"
13977 case "(($ac_try" in
13978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13979 *) ac_try_echo=$ac_try;;
13981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13982 (eval "$ac_link") 2>conftest.er1
13984 grep -v '^ *+' conftest.er1 >conftest.err
13986 cat conftest.err >&5
13987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988 (exit $ac_status); } &&
13989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13990 { (case "(($ac_try" in
13991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13992 *) ac_try_echo=$ac_try;;
13994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13995 (eval "$ac_try") 2>&5
13997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998 (exit $ac_status); }; } &&
13999 { ac_try='test -s conftest$ac_exeext'
14000 { (case "(($ac_try" in
14001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14002 *) ac_try_echo=$ac_try;;
14004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14005 (eval "$ac_try") 2>&5
14007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008 (exit $ac_status); }; }; then
14009 ac_cv_lib_xml2_xmlReadFile=yes
14011 echo "$as_me: failed program was:" >&5
14012 sed 's/^/| /' conftest.$ac_ext >&5
14014 ac_cv_lib_xml2_xmlReadFile=no
14017 rm -f core conftest.err conftest.$ac_objext \
14018 conftest$ac_exeext conftest.$ac_ext
14019 LIBS=$ac_check_lib_save_LIBS
14021 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14022 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14023 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14025 cat >>confdefs.h <<\_ACEOF
14026 #define CLANG_HAVE_LIBXML 1
14029 LIBXML2_LIBS="-lxml2"
14042 ac_header_dirent=no
14043 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14044 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14045 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14046 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14048 echo $ECHO_N "(cached) $ECHO_C" >&6
14050 cat >conftest.$ac_ext <<_ACEOF
14053 cat confdefs.h >>conftest.$ac_ext
14054 cat >>conftest.$ac_ext <<_ACEOF
14055 /* end confdefs.h. */
14056 #include <sys/types.h>
14068 rm -f conftest.$ac_objext
14069 if { (ac_try="$ac_compile"
14070 case "(($ac_try" in
14071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14072 *) ac_try_echo=$ac_try;;
14074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14075 (eval "$ac_compile") 2>conftest.er1
14077 grep -v '^ *+' conftest.er1 >conftest.err
14079 cat conftest.err >&5
14080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081 (exit $ac_status); } &&
14082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14083 { (case "(($ac_try" in
14084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14085 *) ac_try_echo=$ac_try;;
14087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14088 (eval "$ac_try") 2>&5
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); }; } &&
14092 { ac_try='test -s conftest.$ac_objext'
14093 { (case "(($ac_try" in
14094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14095 *) ac_try_echo=$ac_try;;
14097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14098 (eval "$ac_try") 2>&5
14100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 (exit $ac_status); }; }; then
14102 eval "$as_ac_Header=yes"
14104 echo "$as_me: failed program was:" >&5
14105 sed 's/^/| /' conftest.$ac_ext >&5
14107 eval "$as_ac_Header=no"
14110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14112 ac_res=`eval echo '${'$as_ac_Header'}'`
14113 { echo "$as_me:$LINENO: result: $ac_res" >&5
14114 echo "${ECHO_T}$ac_res" >&6; }
14115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14116 cat >>confdefs.h <<_ACEOF
14117 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14120 ac_header_dirent=$ac_hdr; break
14124 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14125 if test $ac_header_dirent = dirent.h; then
14126 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14127 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14128 if test "${ac_cv_search_opendir+set}" = set; then
14129 echo $ECHO_N "(cached) $ECHO_C" >&6
14131 ac_func_search_save_LIBS=$LIBS
14132 cat >conftest.$ac_ext <<_ACEOF
14135 cat confdefs.h >>conftest.$ac_ext
14136 cat >>conftest.$ac_ext <<_ACEOF
14137 /* end confdefs.h. */
14139 /* Override any GCC internal prototype to avoid an error.
14140 Use char because int might match the return type of a GCC
14141 builtin and then its argument prototype would still apply. */
14154 for ac_lib in '' dir; do
14155 if test -z "$ac_lib"; then
14156 ac_res="none required"
14159 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14161 rm -f conftest.$ac_objext conftest$ac_exeext
14162 if { (ac_try="$ac_link"
14163 case "(($ac_try" in
14164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14165 *) ac_try_echo=$ac_try;;
14167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14168 (eval "$ac_link") 2>conftest.er1
14170 grep -v '^ *+' conftest.er1 >conftest.err
14172 cat conftest.err >&5
14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); } &&
14175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14176 { (case "(($ac_try" in
14177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14178 *) ac_try_echo=$ac_try;;
14180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14181 (eval "$ac_try") 2>&5
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); }; } &&
14185 { ac_try='test -s conftest$ac_exeext'
14186 { (case "(($ac_try" in
14187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14188 *) ac_try_echo=$ac_try;;
14190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14191 (eval "$ac_try") 2>&5
14193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194 (exit $ac_status); }; }; then
14195 ac_cv_search_opendir=$ac_res
14197 echo "$as_me: failed program was:" >&5
14198 sed 's/^/| /' conftest.$ac_ext >&5
14203 rm -f core conftest.err conftest.$ac_objext \
14205 if test "${ac_cv_search_opendir+set}" = set; then
14209 if test "${ac_cv_search_opendir+set}" = set; then
14212 ac_cv_search_opendir=no
14214 rm conftest.$ac_ext
14215 LIBS=$ac_func_search_save_LIBS
14217 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14218 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14219 ac_res=$ac_cv_search_opendir
14220 if test "$ac_res" != no; then
14221 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14226 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14227 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14228 if test "${ac_cv_search_opendir+set}" = set; then
14229 echo $ECHO_N "(cached) $ECHO_C" >&6
14231 ac_func_search_save_LIBS=$LIBS
14232 cat >conftest.$ac_ext <<_ACEOF
14235 cat confdefs.h >>conftest.$ac_ext
14236 cat >>conftest.$ac_ext <<_ACEOF
14237 /* end confdefs.h. */
14239 /* Override any GCC internal prototype to avoid an error.
14240 Use char because int might match the return type of a GCC
14241 builtin and then its argument prototype would still apply. */
14254 for ac_lib in '' x; do
14255 if test -z "$ac_lib"; then
14256 ac_res="none required"
14259 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14261 rm -f conftest.$ac_objext conftest$ac_exeext
14262 if { (ac_try="$ac_link"
14263 case "(($ac_try" in
14264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14265 *) ac_try_echo=$ac_try;;
14267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14268 (eval "$ac_link") 2>conftest.er1
14270 grep -v '^ *+' conftest.er1 >conftest.err
14272 cat conftest.err >&5
14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); } &&
14275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14276 { (case "(($ac_try" in
14277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14278 *) ac_try_echo=$ac_try;;
14280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14281 (eval "$ac_try") 2>&5
14283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284 (exit $ac_status); }; } &&
14285 { ac_try='test -s conftest$ac_exeext'
14286 { (case "(($ac_try" in
14287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14288 *) ac_try_echo=$ac_try;;
14290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14291 (eval "$ac_try") 2>&5
14293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294 (exit $ac_status); }; }; then
14295 ac_cv_search_opendir=$ac_res
14297 echo "$as_me: failed program was:" >&5
14298 sed 's/^/| /' conftest.$ac_ext >&5
14303 rm -f core conftest.err conftest.$ac_objext \
14305 if test "${ac_cv_search_opendir+set}" = set; then
14309 if test "${ac_cv_search_opendir+set}" = set; then
14312 ac_cv_search_opendir=no
14314 rm conftest.$ac_ext
14315 LIBS=$ac_func_search_save_LIBS
14317 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14318 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14319 ac_res=$ac_cv_search_opendir
14320 if test "$ac_res" != no; then
14321 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14327 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14328 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14329 if test "${ac_cv_header_mmap_anon+set}" = set; then
14330 echo $ECHO_N "(cached) $ECHO_C" >&6
14333 ac_cpp='$CPP $CPPFLAGS'
14334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14338 cat >conftest.$ac_ext <<_ACEOF
14341 cat confdefs.h >>conftest.$ac_ext
14342 cat >>conftest.$ac_ext <<_ACEOF
14343 /* end confdefs.h. */
14344 #include <sys/mman.h>
14345 #include <unistd.h>
14350 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14355 rm -f conftest.$ac_objext
14356 if { (ac_try="$ac_compile"
14357 case "(($ac_try" in
14358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14359 *) ac_try_echo=$ac_try;;
14361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14362 (eval "$ac_compile") 2>conftest.er1
14364 grep -v '^ *+' conftest.er1 >conftest.err
14366 cat conftest.err >&5
14367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368 (exit $ac_status); } &&
14369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14370 { (case "(($ac_try" in
14371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14372 *) ac_try_echo=$ac_try;;
14374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14375 (eval "$ac_try") 2>&5
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); }; } &&
14379 { ac_try='test -s conftest.$ac_objext'
14380 { (case "(($ac_try" in
14381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14382 *) ac_try_echo=$ac_try;;
14384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14385 (eval "$ac_try") 2>&5
14387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388 (exit $ac_status); }; }; then
14389 ac_cv_header_mmap_anon=yes
14391 echo "$as_me: failed program was:" >&5
14392 sed 's/^/| /' conftest.$ac_ext >&5
14394 ac_cv_header_mmap_anon=no
14397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14399 ac_cpp='$CPP $CPPFLAGS'
14400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14406 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14407 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14408 if test "$ac_cv_header_mmap_anon" = yes; then
14410 cat >>confdefs.h <<\_ACEOF
14411 #define HAVE_MMAP_ANONYMOUS 1
14416 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14417 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14418 if test "${ac_cv_header_stat_broken+set}" = set; then
14419 echo $ECHO_N "(cached) $ECHO_C" >&6
14421 cat >conftest.$ac_ext <<_ACEOF
14424 cat confdefs.h >>conftest.$ac_ext
14425 cat >>conftest.$ac_ext <<_ACEOF
14426 /* end confdefs.h. */
14427 #include <sys/types.h>
14428 #include <sys/stat.h>
14430 #if defined S_ISBLK && defined S_IFDIR
14431 # if S_ISBLK (S_IFDIR)
14436 #if defined S_ISBLK && defined S_IFCHR
14437 # if S_ISBLK (S_IFCHR)
14442 #if defined S_ISLNK && defined S_IFREG
14443 # if S_ISLNK (S_IFREG)
14448 #if defined S_ISSOCK && defined S_IFREG
14449 # if S_ISSOCK (S_IFREG)
14455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14456 $EGREP "You lose" >/dev/null 2>&1; then
14457 ac_cv_header_stat_broken=yes
14459 ac_cv_header_stat_broken=no
14464 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14465 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14466 if test $ac_cv_header_stat_broken = yes; then
14468 cat >>confdefs.h <<\_ACEOF
14469 #define STAT_MACROS_BROKEN 1
14474 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14475 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14476 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14477 echo $ECHO_N "(cached) $ECHO_C" >&6
14479 cat >conftest.$ac_ext <<_ACEOF
14482 cat confdefs.h >>conftest.$ac_ext
14483 cat >>conftest.$ac_ext <<_ACEOF
14484 /* end confdefs.h. */
14485 #include <sys/types.h>
14486 #include <sys/wait.h>
14487 #ifndef WEXITSTATUS
14488 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14491 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14499 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14504 rm -f conftest.$ac_objext
14505 if { (ac_try="$ac_compile"
14506 case "(($ac_try" in
14507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14508 *) ac_try_echo=$ac_try;;
14510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14511 (eval "$ac_compile") 2>conftest.er1
14513 grep -v '^ *+' conftest.er1 >conftest.err
14515 cat conftest.err >&5
14516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517 (exit $ac_status); } &&
14518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14519 { (case "(($ac_try" in
14520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14521 *) ac_try_echo=$ac_try;;
14523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14524 (eval "$ac_try") 2>&5
14526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 (exit $ac_status); }; } &&
14528 { ac_try='test -s conftest.$ac_objext'
14529 { (case "(($ac_try" in
14530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14531 *) ac_try_echo=$ac_try;;
14533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14534 (eval "$ac_try") 2>&5
14536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537 (exit $ac_status); }; }; then
14538 ac_cv_header_sys_wait_h=yes
14540 echo "$as_me: failed program was:" >&5
14541 sed 's/^/| /' conftest.$ac_ext >&5
14543 ac_cv_header_sys_wait_h=no
14546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14548 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14549 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14550 if test $ac_cv_header_sys_wait_h = yes; then
14552 cat >>confdefs.h <<\_ACEOF
14553 #define HAVE_SYS_WAIT_H 1
14558 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14559 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14560 if test "${ac_cv_header_time+set}" = set; then
14561 echo $ECHO_N "(cached) $ECHO_C" >&6
14563 cat >conftest.$ac_ext <<_ACEOF
14566 cat confdefs.h >>conftest.$ac_ext
14567 cat >>conftest.$ac_ext <<_ACEOF
14568 /* end confdefs.h. */
14569 #include <sys/types.h>
14570 #include <sys/time.h>
14576 if ((struct tm *) 0)
14582 rm -f conftest.$ac_objext
14583 if { (ac_try="$ac_compile"
14584 case "(($ac_try" in
14585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14586 *) ac_try_echo=$ac_try;;
14588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14589 (eval "$ac_compile") 2>conftest.er1
14591 grep -v '^ *+' conftest.er1 >conftest.err
14593 cat conftest.err >&5
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); } &&
14596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14597 { (case "(($ac_try" in
14598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14599 *) ac_try_echo=$ac_try;;
14601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14602 (eval "$ac_try") 2>&5
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); }; } &&
14606 { ac_try='test -s conftest.$ac_objext'
14607 { (case "(($ac_try" in
14608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14609 *) ac_try_echo=$ac_try;;
14611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14612 (eval "$ac_try") 2>&5
14614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615 (exit $ac_status); }; }; then
14616 ac_cv_header_time=yes
14618 echo "$as_me: failed program was:" >&5
14619 sed 's/^/| /' conftest.$ac_ext >&5
14621 ac_cv_header_time=no
14624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14626 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14627 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14628 if test $ac_cv_header_time = yes; then
14630 cat >>confdefs.h <<\_ACEOF
14631 #define TIME_WITH_SYS_TIME 1
14643 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14645 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14647 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14650 echo $ECHO_N "(cached) $ECHO_C" >&6
14652 ac_res=`eval echo '${'$as_ac_Header'}'`
14653 { echo "$as_me:$LINENO: result: $ac_res" >&5
14654 echo "${ECHO_T}$ac_res" >&6; }
14656 # Is the header compilable?
14657 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14658 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
14666 #include <$ac_header>
14668 rm -f conftest.$ac_objext
14669 if { (ac_try="$ac_compile"
14670 case "(($ac_try" in
14671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14672 *) ac_try_echo=$ac_try;;
14674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14675 (eval "$ac_compile") 2>conftest.er1
14677 grep -v '^ *+' conftest.er1 >conftest.err
14679 cat conftest.err >&5
14680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681 (exit $ac_status); } &&
14682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14683 { (case "(($ac_try" in
14684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14685 *) ac_try_echo=$ac_try;;
14687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14688 (eval "$ac_try") 2>&5
14690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691 (exit $ac_status); }; } &&
14692 { ac_try='test -s conftest.$ac_objext'
14693 { (case "(($ac_try" in
14694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14695 *) ac_try_echo=$ac_try;;
14697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14698 (eval "$ac_try") 2>&5
14700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14701 (exit $ac_status); }; }; then
14702 ac_header_compiler=yes
14704 echo "$as_me: failed program was:" >&5
14705 sed 's/^/| /' conftest.$ac_ext >&5
14707 ac_header_compiler=no
14710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14711 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14712 echo "${ECHO_T}$ac_header_compiler" >&6; }
14714 # Is the header present?
14715 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14716 echo $ECHO_N "checking $ac_header presence... $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 <$ac_header>
14725 if { (ac_try="$ac_cpp conftest.$ac_ext"
14726 case "(($ac_try" in
14727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14728 *) ac_try_echo=$ac_try;;
14730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14733 grep -v '^ *+' conftest.er1 >conftest.err
14735 cat conftest.err >&5
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); } >/dev/null; then
14738 if test -s conftest.err; then
14739 ac_cpp_err=$ac_c_preproc_warn_flag
14740 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14747 if test -z "$ac_cpp_err"; then
14748 ac_header_preproc=yes
14750 echo "$as_me: failed program was:" >&5
14751 sed 's/^/| /' conftest.$ac_ext >&5
14753 ac_header_preproc=no
14756 rm -f conftest.err conftest.$ac_ext
14757 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14758 echo "${ECHO_T}$ac_header_preproc" >&6; }
14760 # So? What about this header?
14761 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14763 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14764 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14766 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14767 ac_header_preproc=yes
14770 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14771 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14772 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14773 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14774 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14775 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14776 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14777 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14779 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14780 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14781 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14783 ## ------------------------------------ ##
14784 ## Report this to http://llvm.org/bugs/ ##
14785 ## ------------------------------------ ##
14787 ) | sed "s/^/$as_me: WARNING: /" >&2
14790 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14793 echo $ECHO_N "(cached) $ECHO_C" >&6
14795 eval "$as_ac_Header=\$ac_header_preproc"
14797 ac_res=`eval echo '${'$as_ac_Header'}'`
14798 { echo "$as_me:$LINENO: result: $ac_res" >&5
14799 echo "${ECHO_T}$ac_res" >&6; }
14802 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14803 cat >>confdefs.h <<_ACEOF
14804 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14817 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14819 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14821 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14824 echo $ECHO_N "(cached) $ECHO_C" >&6
14826 ac_res=`eval echo '${'$as_ac_Header'}'`
14827 { echo "$as_me:$LINENO: result: $ac_res" >&5
14828 echo "${ECHO_T}$ac_res" >&6; }
14830 # Is the header compilable?
14831 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14832 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14833 cat >conftest.$ac_ext <<_ACEOF
14836 cat confdefs.h >>conftest.$ac_ext
14837 cat >>conftest.$ac_ext <<_ACEOF
14838 /* end confdefs.h. */
14839 $ac_includes_default
14840 #include <$ac_header>
14842 rm -f conftest.$ac_objext
14843 if { (ac_try="$ac_compile"
14844 case "(($ac_try" in
14845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14846 *) ac_try_echo=$ac_try;;
14848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14849 (eval "$ac_compile") 2>conftest.er1
14851 grep -v '^ *+' conftest.er1 >conftest.err
14853 cat conftest.err >&5
14854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855 (exit $ac_status); } &&
14856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14857 { (case "(($ac_try" in
14858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14859 *) ac_try_echo=$ac_try;;
14861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14862 (eval "$ac_try") 2>&5
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); }; } &&
14866 { ac_try='test -s conftest.$ac_objext'
14867 { (case "(($ac_try" in
14868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14869 *) ac_try_echo=$ac_try;;
14871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14872 (eval "$ac_try") 2>&5
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); }; }; then
14876 ac_header_compiler=yes
14878 echo "$as_me: failed program was:" >&5
14879 sed 's/^/| /' conftest.$ac_ext >&5
14881 ac_header_compiler=no
14884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14885 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14886 echo "${ECHO_T}$ac_header_compiler" >&6; }
14888 # Is the header present?
14889 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14890 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14891 cat >conftest.$ac_ext <<_ACEOF
14894 cat confdefs.h >>conftest.$ac_ext
14895 cat >>conftest.$ac_ext <<_ACEOF
14896 /* end confdefs.h. */
14897 #include <$ac_header>
14899 if { (ac_try="$ac_cpp conftest.$ac_ext"
14900 case "(($ac_try" in
14901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14902 *) ac_try_echo=$ac_try;;
14904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14907 grep -v '^ *+' conftest.er1 >conftest.err
14909 cat conftest.err >&5
14910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911 (exit $ac_status); } >/dev/null; then
14912 if test -s conftest.err; then
14913 ac_cpp_err=$ac_c_preproc_warn_flag
14914 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14921 if test -z "$ac_cpp_err"; then
14922 ac_header_preproc=yes
14924 echo "$as_me: failed program was:" >&5
14925 sed 's/^/| /' conftest.$ac_ext >&5
14927 ac_header_preproc=no
14930 rm -f conftest.err conftest.$ac_ext
14931 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14932 echo "${ECHO_T}$ac_header_preproc" >&6; }
14934 # So? What about this header?
14935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14937 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14940 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14941 ac_header_preproc=yes
14944 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14945 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14946 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14947 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14948 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14949 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14950 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14951 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14954 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14955 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14957 ## ------------------------------------ ##
14958 ## Report this to http://llvm.org/bugs/ ##
14959 ## ------------------------------------ ##
14961 ) | sed "s/^/$as_me: WARNING: /" >&2
14964 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14967 echo $ECHO_N "(cached) $ECHO_C" >&6
14969 eval "$as_ac_Header=\$ac_header_preproc"
14971 ac_res=`eval echo '${'$as_ac_Header'}'`
14972 { echo "$as_me:$LINENO: result: $ac_res" >&5
14973 echo "${ECHO_T}$ac_res" >&6; }
14976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14977 cat >>confdefs.h <<_ACEOF
14978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14987 for ac_header in utime.h windows.h
14989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14991 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14994 echo $ECHO_N "(cached) $ECHO_C" >&6
14996 ac_res=`eval echo '${'$as_ac_Header'}'`
14997 { echo "$as_me:$LINENO: result: $ac_res" >&5
14998 echo "${ECHO_T}$ac_res" >&6; }
15000 # Is the header compilable?
15001 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15002 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15003 cat >conftest.$ac_ext <<_ACEOF
15006 cat confdefs.h >>conftest.$ac_ext
15007 cat >>conftest.$ac_ext <<_ACEOF
15008 /* end confdefs.h. */
15009 $ac_includes_default
15010 #include <$ac_header>
15012 rm -f conftest.$ac_objext
15013 if { (ac_try="$ac_compile"
15014 case "(($ac_try" in
15015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15016 *) ac_try_echo=$ac_try;;
15018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15019 (eval "$ac_compile") 2>conftest.er1
15021 grep -v '^ *+' conftest.er1 >conftest.err
15023 cat conftest.err >&5
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); } &&
15026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15027 { (case "(($ac_try" in
15028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15029 *) ac_try_echo=$ac_try;;
15031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15032 (eval "$ac_try") 2>&5
15034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035 (exit $ac_status); }; } &&
15036 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); }; }; then
15046 ac_header_compiler=yes
15048 echo "$as_me: failed program was:" >&5
15049 sed 's/^/| /' conftest.$ac_ext >&5
15051 ac_header_compiler=no
15054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15055 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15056 echo "${ECHO_T}$ac_header_compiler" >&6; }
15058 # Is the header present?
15059 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15060 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15061 cat >conftest.$ac_ext <<_ACEOF
15064 cat confdefs.h >>conftest.$ac_ext
15065 cat >>conftest.$ac_ext <<_ACEOF
15066 /* end confdefs.h. */
15067 #include <$ac_header>
15069 if { (ac_try="$ac_cpp conftest.$ac_ext"
15070 case "(($ac_try" in
15071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15072 *) ac_try_echo=$ac_try;;
15074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15075 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15077 grep -v '^ *+' conftest.er1 >conftest.err
15079 cat conftest.err >&5
15080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081 (exit $ac_status); } >/dev/null; then
15082 if test -s conftest.err; then
15083 ac_cpp_err=$ac_c_preproc_warn_flag
15084 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15091 if test -z "$ac_cpp_err"; then
15092 ac_header_preproc=yes
15094 echo "$as_me: failed program was:" >&5
15095 sed 's/^/| /' conftest.$ac_ext >&5
15097 ac_header_preproc=no
15100 rm -f conftest.err conftest.$ac_ext
15101 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15102 echo "${ECHO_T}$ac_header_preproc" >&6; }
15104 # So? What about this header?
15105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15107 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15108 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15110 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15111 ac_header_preproc=yes
15114 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15115 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15116 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15117 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15118 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15119 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15120 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15121 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15123 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15124 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15125 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15127 ## ------------------------------------ ##
15128 ## Report this to http://llvm.org/bugs/ ##
15129 ## ------------------------------------ ##
15131 ) | sed "s/^/$as_me: WARNING: /" >&2
15134 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15137 echo $ECHO_N "(cached) $ECHO_C" >&6
15139 eval "$as_ac_Header=\$ac_header_preproc"
15141 ac_res=`eval echo '${'$as_ac_Header'}'`
15142 { echo "$as_me:$LINENO: result: $ac_res" >&5
15143 echo "${ECHO_T}$ac_res" >&6; }
15146 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15147 cat >>confdefs.h <<_ACEOF
15148 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15160 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15162 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15164 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15167 echo $ECHO_N "(cached) $ECHO_C" >&6
15169 ac_res=`eval echo '${'$as_ac_Header'}'`
15170 { echo "$as_me:$LINENO: result: $ac_res" >&5
15171 echo "${ECHO_T}$ac_res" >&6; }
15173 # Is the header compilable?
15174 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15175 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15176 cat >conftest.$ac_ext <<_ACEOF
15179 cat confdefs.h >>conftest.$ac_ext
15180 cat >>conftest.$ac_ext <<_ACEOF
15181 /* end confdefs.h. */
15182 $ac_includes_default
15183 #include <$ac_header>
15185 rm -f conftest.$ac_objext
15186 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
15194 grep -v '^ *+' conftest.er1 >conftest.err
15196 cat conftest.err >&5
15197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15198 (exit $ac_status); } &&
15199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15200 { (case "(($ac_try" in
15201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15202 *) ac_try_echo=$ac_try;;
15204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15205 (eval "$ac_try") 2>&5
15207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208 (exit $ac_status); }; } &&
15209 { ac_try='test -s conftest.$ac_objext'
15210 { (case "(($ac_try" in
15211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15212 *) ac_try_echo=$ac_try;;
15214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15215 (eval "$ac_try") 2>&5
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); }; }; then
15219 ac_header_compiler=yes
15221 echo "$as_me: failed program was:" >&5
15222 sed 's/^/| /' conftest.$ac_ext >&5
15224 ac_header_compiler=no
15227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15228 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15229 echo "${ECHO_T}$ac_header_compiler" >&6; }
15231 # Is the header present?
15232 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15233 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15234 cat >conftest.$ac_ext <<_ACEOF
15237 cat confdefs.h >>conftest.$ac_ext
15238 cat >>conftest.$ac_ext <<_ACEOF
15239 /* end confdefs.h. */
15240 #include <$ac_header>
15242 if { (ac_try="$ac_cpp conftest.$ac_ext"
15243 case "(($ac_try" in
15244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15245 *) ac_try_echo=$ac_try;;
15247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15250 grep -v '^ *+' conftest.er1 >conftest.err
15252 cat conftest.err >&5
15253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); } >/dev/null; then
15255 if test -s conftest.err; then
15256 ac_cpp_err=$ac_c_preproc_warn_flag
15257 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15264 if test -z "$ac_cpp_err"; then
15265 ac_header_preproc=yes
15267 echo "$as_me: failed program was:" >&5
15268 sed 's/^/| /' conftest.$ac_ext >&5
15270 ac_header_preproc=no
15273 rm -f conftest.err conftest.$ac_ext
15274 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15275 echo "${ECHO_T}$ac_header_preproc" >&6; }
15277 # So? What about this header?
15278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15280 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15281 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15283 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15284 ac_header_preproc=yes
15287 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15288 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15289 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15290 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15291 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15292 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15293 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15294 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15296 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15297 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15298 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15300 ## ------------------------------------ ##
15301 ## Report this to http://llvm.org/bugs/ ##
15302 ## ------------------------------------ ##
15304 ) | sed "s/^/$as_me: WARNING: /" >&2
15307 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15310 echo $ECHO_N "(cached) $ECHO_C" >&6
15312 eval "$as_ac_Header=\$ac_header_preproc"
15314 ac_res=`eval echo '${'$as_ac_Header'}'`
15315 { echo "$as_me:$LINENO: result: $ac_res" >&5
15316 echo "${ECHO_T}$ac_res" >&6; }
15319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15320 cat >>confdefs.h <<_ACEOF
15321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15332 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15336 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15339 echo $ECHO_N "(cached) $ECHO_C" >&6
15341 ac_res=`eval echo '${'$as_ac_Header'}'`
15342 { echo "$as_me:$LINENO: result: $ac_res" >&5
15343 echo "${ECHO_T}$ac_res" >&6; }
15345 # Is the header compilable?
15346 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15347 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15348 cat >conftest.$ac_ext <<_ACEOF
15351 cat confdefs.h >>conftest.$ac_ext
15352 cat >>conftest.$ac_ext <<_ACEOF
15353 /* end confdefs.h. */
15354 $ac_includes_default
15355 #include <$ac_header>
15357 rm -f conftest.$ac_objext
15358 if { (ac_try="$ac_compile"
15359 case "(($ac_try" in
15360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15361 *) ac_try_echo=$ac_try;;
15363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15364 (eval "$ac_compile") 2>conftest.er1
15366 grep -v '^ *+' conftest.er1 >conftest.err
15368 cat conftest.err >&5
15369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15370 (exit $ac_status); } &&
15371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15372 { (case "(($ac_try" in
15373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15374 *) ac_try_echo=$ac_try;;
15376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15377 (eval "$ac_try") 2>&5
15379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); }; } &&
15381 { ac_try='test -s conftest.$ac_objext'
15382 { (case "(($ac_try" in
15383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15384 *) ac_try_echo=$ac_try;;
15386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15387 (eval "$ac_try") 2>&5
15389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390 (exit $ac_status); }; }; then
15391 ac_header_compiler=yes
15393 echo "$as_me: failed program was:" >&5
15394 sed 's/^/| /' conftest.$ac_ext >&5
15396 ac_header_compiler=no
15399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15400 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15401 echo "${ECHO_T}$ac_header_compiler" >&6; }
15403 # Is the header present?
15404 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15405 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15406 cat >conftest.$ac_ext <<_ACEOF
15409 cat confdefs.h >>conftest.$ac_ext
15410 cat >>conftest.$ac_ext <<_ACEOF
15411 /* end confdefs.h. */
15412 #include <$ac_header>
15414 if { (ac_try="$ac_cpp conftest.$ac_ext"
15415 case "(($ac_try" in
15416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15417 *) ac_try_echo=$ac_try;;
15419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15422 grep -v '^ *+' conftest.er1 >conftest.err
15424 cat conftest.err >&5
15425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426 (exit $ac_status); } >/dev/null; then
15427 if test -s conftest.err; then
15428 ac_cpp_err=$ac_c_preproc_warn_flag
15429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15436 if test -z "$ac_cpp_err"; then
15437 ac_header_preproc=yes
15439 echo "$as_me: failed program was:" >&5
15440 sed 's/^/| /' conftest.$ac_ext >&5
15442 ac_header_preproc=no
15445 rm -f conftest.err conftest.$ac_ext
15446 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15447 echo "${ECHO_T}$ac_header_preproc" >&6; }
15449 # So? What about this header?
15450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15452 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15453 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15455 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15456 ac_header_preproc=yes
15459 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15460 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15461 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15462 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15463 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15464 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15465 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15466 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15468 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15469 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15470 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15472 ## ------------------------------------ ##
15473 ## Report this to http://llvm.org/bugs/ ##
15474 ## ------------------------------------ ##
15476 ) | sed "s/^/$as_me: WARNING: /" >&2
15479 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15482 echo $ECHO_N "(cached) $ECHO_C" >&6
15484 eval "$as_ac_Header=\$ac_header_preproc"
15486 ac_res=`eval echo '${'$as_ac_Header'}'`
15487 { echo "$as_me:$LINENO: result: $ac_res" >&5
15488 echo "${ECHO_T}$ac_res" >&6; }
15491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15492 cat >>confdefs.h <<_ACEOF
15493 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15501 for ac_header in valgrind/valgrind.h
15503 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15505 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15508 echo $ECHO_N "(cached) $ECHO_C" >&6
15510 ac_res=`eval echo '${'$as_ac_Header'}'`
15511 { echo "$as_me:$LINENO: result: $ac_res" >&5
15512 echo "${ECHO_T}$ac_res" >&6; }
15514 # Is the header compilable?
15515 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15516 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15517 cat >conftest.$ac_ext <<_ACEOF
15520 cat confdefs.h >>conftest.$ac_ext
15521 cat >>conftest.$ac_ext <<_ACEOF
15522 /* end confdefs.h. */
15523 $ac_includes_default
15524 #include <$ac_header>
15526 rm -f conftest.$ac_objext
15527 if { (ac_try="$ac_compile"
15528 case "(($ac_try" in
15529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15530 *) ac_try_echo=$ac_try;;
15532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15533 (eval "$ac_compile") 2>conftest.er1
15535 grep -v '^ *+' conftest.er1 >conftest.err
15537 cat conftest.err >&5
15538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539 (exit $ac_status); } &&
15540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
15550 { ac_try='test -s conftest.$ac_objext'
15551 { (case "(($ac_try" in
15552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15553 *) ac_try_echo=$ac_try;;
15555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15556 (eval "$ac_try") 2>&5
15558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559 (exit $ac_status); }; }; then
15560 ac_header_compiler=yes
15562 echo "$as_me: failed program was:" >&5
15563 sed 's/^/| /' conftest.$ac_ext >&5
15565 ac_header_compiler=no
15568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15569 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15570 echo "${ECHO_T}$ac_header_compiler" >&6; }
15572 # Is the header present?
15573 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15574 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15575 cat >conftest.$ac_ext <<_ACEOF
15578 cat confdefs.h >>conftest.$ac_ext
15579 cat >>conftest.$ac_ext <<_ACEOF
15580 /* end confdefs.h. */
15581 #include <$ac_header>
15583 if { (ac_try="$ac_cpp conftest.$ac_ext"
15584 case "(($ac_try" in
15585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15586 *) ac_try_echo=$ac_try;;
15588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15591 grep -v '^ *+' conftest.er1 >conftest.err
15593 cat conftest.err >&5
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); } >/dev/null; then
15596 if test -s conftest.err; then
15597 ac_cpp_err=$ac_c_preproc_warn_flag
15598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15605 if test -z "$ac_cpp_err"; then
15606 ac_header_preproc=yes
15608 echo "$as_me: failed program was:" >&5
15609 sed 's/^/| /' conftest.$ac_ext >&5
15611 ac_header_preproc=no
15614 rm -f conftest.err conftest.$ac_ext
15615 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15616 echo "${ECHO_T}$ac_header_preproc" >&6; }
15618 # So? What about this header?
15619 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15621 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15622 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15624 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15625 ac_header_preproc=yes
15628 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15629 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15630 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15631 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15632 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15633 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15634 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15635 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15637 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15638 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15639 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15641 ## ------------------------------------ ##
15642 ## Report this to http://llvm.org/bugs/ ##
15643 ## ------------------------------------ ##
15645 ) | sed "s/^/$as_me: WARNING: /" >&2
15648 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15651 echo $ECHO_N "(cached) $ECHO_C" >&6
15653 eval "$as_ac_Header=\$ac_header_preproc"
15655 ac_res=`eval echo '${'$as_ac_Header'}'`
15656 { echo "$as_me:$LINENO: result: $ac_res" >&5
15657 echo "${ECHO_T}$ac_res" >&6; }
15660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15661 cat >>confdefs.h <<_ACEOF
15662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15670 for ac_header in fenv.h
15672 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15674 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15677 echo $ECHO_N "(cached) $ECHO_C" >&6
15679 ac_res=`eval echo '${'$as_ac_Header'}'`
15680 { echo "$as_me:$LINENO: result: $ac_res" >&5
15681 echo "${ECHO_T}$ac_res" >&6; }
15683 # Is the header compilable?
15684 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15685 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15686 cat >conftest.$ac_ext <<_ACEOF
15689 cat confdefs.h >>conftest.$ac_ext
15690 cat >>conftest.$ac_ext <<_ACEOF
15691 /* end confdefs.h. */
15692 $ac_includes_default
15693 #include <$ac_header>
15695 rm -f conftest.$ac_objext
15696 if { (ac_try="$ac_compile"
15697 case "(($ac_try" in
15698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15699 *) ac_try_echo=$ac_try;;
15701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15702 (eval "$ac_compile") 2>conftest.er1
15704 grep -v '^ *+' conftest.er1 >conftest.err
15706 cat conftest.err >&5
15707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708 (exit $ac_status); } &&
15709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15710 { (case "(($ac_try" in
15711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15712 *) ac_try_echo=$ac_try;;
15714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15715 (eval "$ac_try") 2>&5
15717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718 (exit $ac_status); }; } &&
15719 { ac_try='test -s conftest.$ac_objext'
15720 { (case "(($ac_try" in
15721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15722 *) ac_try_echo=$ac_try;;
15724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15725 (eval "$ac_try") 2>&5
15727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728 (exit $ac_status); }; }; then
15729 ac_header_compiler=yes
15731 echo "$as_me: failed program was:" >&5
15732 sed 's/^/| /' conftest.$ac_ext >&5
15734 ac_header_compiler=no
15737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15738 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15739 echo "${ECHO_T}$ac_header_compiler" >&6; }
15741 # Is the header present?
15742 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15743 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15744 cat >conftest.$ac_ext <<_ACEOF
15747 cat confdefs.h >>conftest.$ac_ext
15748 cat >>conftest.$ac_ext <<_ACEOF
15749 /* end confdefs.h. */
15750 #include <$ac_header>
15752 if { (ac_try="$ac_cpp conftest.$ac_ext"
15753 case "(($ac_try" in
15754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15755 *) ac_try_echo=$ac_try;;
15757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15758 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15760 grep -v '^ *+' conftest.er1 >conftest.err
15762 cat conftest.err >&5
15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); } >/dev/null; then
15765 if test -s conftest.err; then
15766 ac_cpp_err=$ac_c_preproc_warn_flag
15767 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15774 if test -z "$ac_cpp_err"; then
15775 ac_header_preproc=yes
15777 echo "$as_me: failed program was:" >&5
15778 sed 's/^/| /' conftest.$ac_ext >&5
15780 ac_header_preproc=no
15783 rm -f conftest.err conftest.$ac_ext
15784 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15785 echo "${ECHO_T}$ac_header_preproc" >&6; }
15787 # So? What about this header?
15788 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15790 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15791 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15793 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15794 ac_header_preproc=yes
15797 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15798 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15799 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15800 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15801 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15802 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15803 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15804 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15806 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15807 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15808 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15810 ## ------------------------------------ ##
15811 ## Report this to http://llvm.org/bugs/ ##
15812 ## ------------------------------------ ##
15814 ) | sed "s/^/$as_me: WARNING: /" >&2
15817 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15820 echo $ECHO_N "(cached) $ECHO_C" >&6
15822 eval "$as_ac_Header=\$ac_header_preproc"
15824 ac_res=`eval echo '${'$as_ac_Header'}'`
15825 { echo "$as_me:$LINENO: result: $ac_res" >&5
15826 echo "${ECHO_T}$ac_res" >&6; }
15829 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15830 cat >>confdefs.h <<_ACEOF
15831 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15838 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15840 for ac_header in pthread.h
15842 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15844 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15847 echo $ECHO_N "(cached) $ECHO_C" >&6
15849 ac_res=`eval echo '${'$as_ac_Header'}'`
15850 { echo "$as_me:$LINENO: result: $ac_res" >&5
15851 echo "${ECHO_T}$ac_res" >&6; }
15853 # Is the header compilable?
15854 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15855 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15856 cat >conftest.$ac_ext <<_ACEOF
15859 cat confdefs.h >>conftest.$ac_ext
15860 cat >>conftest.$ac_ext <<_ACEOF
15861 /* end confdefs.h. */
15862 $ac_includes_default
15863 #include <$ac_header>
15865 rm -f conftest.$ac_objext
15866 if { (ac_try="$ac_compile"
15867 case "(($ac_try" in
15868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15869 *) ac_try_echo=$ac_try;;
15871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15872 (eval "$ac_compile") 2>conftest.er1
15874 grep -v '^ *+' conftest.er1 >conftest.err
15876 cat conftest.err >&5
15877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878 (exit $ac_status); } &&
15879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15880 { (case "(($ac_try" in
15881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15882 *) ac_try_echo=$ac_try;;
15884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15885 (eval "$ac_try") 2>&5
15887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888 (exit $ac_status); }; } &&
15889 { ac_try='test -s conftest.$ac_objext'
15890 { (case "(($ac_try" in
15891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15892 *) ac_try_echo=$ac_try;;
15894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15895 (eval "$ac_try") 2>&5
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); }; }; then
15899 ac_header_compiler=yes
15901 echo "$as_me: failed program was:" >&5
15902 sed 's/^/| /' conftest.$ac_ext >&5
15904 ac_header_compiler=no
15907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15908 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15909 echo "${ECHO_T}$ac_header_compiler" >&6; }
15911 # Is the header present?
15912 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15913 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15914 cat >conftest.$ac_ext <<_ACEOF
15917 cat confdefs.h >>conftest.$ac_ext
15918 cat >>conftest.$ac_ext <<_ACEOF
15919 /* end confdefs.h. */
15920 #include <$ac_header>
15922 if { (ac_try="$ac_cpp conftest.$ac_ext"
15923 case "(($ac_try" in
15924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15925 *) ac_try_echo=$ac_try;;
15927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15930 grep -v '^ *+' conftest.er1 >conftest.err
15932 cat conftest.err >&5
15933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934 (exit $ac_status); } >/dev/null; then
15935 if test -s conftest.err; then
15936 ac_cpp_err=$ac_c_preproc_warn_flag
15937 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15944 if test -z "$ac_cpp_err"; then
15945 ac_header_preproc=yes
15947 echo "$as_me: failed program was:" >&5
15948 sed 's/^/| /' conftest.$ac_ext >&5
15950 ac_header_preproc=no
15953 rm -f conftest.err conftest.$ac_ext
15954 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15955 echo "${ECHO_T}$ac_header_preproc" >&6; }
15957 # So? What about this header?
15958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15960 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15961 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15963 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15964 ac_header_preproc=yes
15967 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15968 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15969 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15970 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15971 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15972 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15973 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15974 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15976 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15977 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15978 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15980 ## ------------------------------------ ##
15981 ## Report this to http://llvm.org/bugs/ ##
15982 ## ------------------------------------ ##
15984 ) | sed "s/^/$as_me: WARNING: /" >&2
15987 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15990 echo $ECHO_N "(cached) $ECHO_C" >&6
15992 eval "$as_ac_Header=\$ac_header_preproc"
15994 ac_res=`eval echo '${'$as_ac_Header'}'`
15995 { echo "$as_me:$LINENO: result: $ac_res" >&5
15996 echo "${ECHO_T}$ac_res" >&6; }
15999 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16000 cat >>confdefs.h <<_ACEOF
16001 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16017 if test "$llvm_cv_enable_libffi" = "yes" ; then
16020 for ac_header in ffi.h ffi/ffi.h
16022 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16024 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16027 echo $ECHO_N "(cached) $ECHO_C" >&6
16029 ac_res=`eval echo '${'$as_ac_Header'}'`
16030 { echo "$as_me:$LINENO: result: $ac_res" >&5
16031 echo "${ECHO_T}$ac_res" >&6; }
16033 # Is the header compilable?
16034 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16035 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16036 cat >conftest.$ac_ext <<_ACEOF
16039 cat confdefs.h >>conftest.$ac_ext
16040 cat >>conftest.$ac_ext <<_ACEOF
16041 /* end confdefs.h. */
16042 $ac_includes_default
16043 #include <$ac_header>
16045 rm -f conftest.$ac_objext
16046 if { (ac_try="$ac_compile"
16047 case "(($ac_try" in
16048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16049 *) ac_try_echo=$ac_try;;
16051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16052 (eval "$ac_compile") 2>conftest.er1
16054 grep -v '^ *+' conftest.er1 >conftest.err
16056 cat conftest.err >&5
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); } &&
16059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16060 { (case "(($ac_try" in
16061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16062 *) ac_try_echo=$ac_try;;
16064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16065 (eval "$ac_try") 2>&5
16067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068 (exit $ac_status); }; } &&
16069 { ac_try='test -s conftest.$ac_objext'
16070 { (case "(($ac_try" in
16071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16072 *) ac_try_echo=$ac_try;;
16074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16075 (eval "$ac_try") 2>&5
16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 (exit $ac_status); }; }; then
16079 ac_header_compiler=yes
16081 echo "$as_me: failed program was:" >&5
16082 sed 's/^/| /' conftest.$ac_ext >&5
16084 ac_header_compiler=no
16087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16088 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16089 echo "${ECHO_T}$ac_header_compiler" >&6; }
16091 # Is the header present?
16092 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16093 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16094 cat >conftest.$ac_ext <<_ACEOF
16097 cat confdefs.h >>conftest.$ac_ext
16098 cat >>conftest.$ac_ext <<_ACEOF
16099 /* end confdefs.h. */
16100 #include <$ac_header>
16102 if { (ac_try="$ac_cpp conftest.$ac_ext"
16103 case "(($ac_try" in
16104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16105 *) ac_try_echo=$ac_try;;
16107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16108 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16110 grep -v '^ *+' conftest.er1 >conftest.err
16112 cat conftest.err >&5
16113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114 (exit $ac_status); } >/dev/null; then
16115 if test -s conftest.err; then
16116 ac_cpp_err=$ac_c_preproc_warn_flag
16117 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16124 if test -z "$ac_cpp_err"; then
16125 ac_header_preproc=yes
16127 echo "$as_me: failed program was:" >&5
16128 sed 's/^/| /' conftest.$ac_ext >&5
16130 ac_header_preproc=no
16133 rm -f conftest.err conftest.$ac_ext
16134 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16135 echo "${ECHO_T}$ac_header_preproc" >&6; }
16137 # So? What about this header?
16138 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16140 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16141 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16143 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16144 ac_header_preproc=yes
16147 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16148 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16149 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16150 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16151 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16152 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16153 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16154 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16156 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16157 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16158 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16160 ## ------------------------------------ ##
16161 ## Report this to http://llvm.org/bugs/ ##
16162 ## ------------------------------------ ##
16164 ) | sed "s/^/$as_me: WARNING: /" >&2
16167 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16170 echo $ECHO_N "(cached) $ECHO_C" >&6
16172 eval "$as_ac_Header=\$ac_header_preproc"
16174 ac_res=`eval echo '${'$as_ac_Header'}'`
16175 { echo "$as_me:$LINENO: result: $ac_res" >&5
16176 echo "${ECHO_T}$ac_res" >&6; }
16179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16180 cat >>confdefs.h <<_ACEOF
16181 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16191 for ac_header in CrashReporterClient.h
16193 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16195 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16198 echo $ECHO_N "(cached) $ECHO_C" >&6
16200 ac_res=`eval echo '${'$as_ac_Header'}'`
16201 { echo "$as_me:$LINENO: result: $ac_res" >&5
16202 echo "${ECHO_T}$ac_res" >&6; }
16204 # Is the header compilable?
16205 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16207 cat >conftest.$ac_ext <<_ACEOF
16210 cat confdefs.h >>conftest.$ac_ext
16211 cat >>conftest.$ac_ext <<_ACEOF
16212 /* end confdefs.h. */
16213 $ac_includes_default
16214 #include <$ac_header>
16216 rm -f conftest.$ac_objext
16217 if { (ac_try="$ac_compile"
16218 case "(($ac_try" in
16219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16220 *) ac_try_echo=$ac_try;;
16222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16223 (eval "$ac_compile") 2>conftest.er1
16225 grep -v '^ *+' conftest.er1 >conftest.err
16227 cat conftest.err >&5
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); } &&
16230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16231 { (case "(($ac_try" in
16232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16233 *) ac_try_echo=$ac_try;;
16235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16236 (eval "$ac_try") 2>&5
16238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16239 (exit $ac_status); }; } &&
16240 { ac_try='test -s conftest.$ac_objext'
16241 { (case "(($ac_try" in
16242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16243 *) ac_try_echo=$ac_try;;
16245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16246 (eval "$ac_try") 2>&5
16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); }; }; then
16250 ac_header_compiler=yes
16252 echo "$as_me: failed program was:" >&5
16253 sed 's/^/| /' conftest.$ac_ext >&5
16255 ac_header_compiler=no
16258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16259 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16260 echo "${ECHO_T}$ac_header_compiler" >&6; }
16262 # Is the header present?
16263 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16264 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16265 cat >conftest.$ac_ext <<_ACEOF
16268 cat confdefs.h >>conftest.$ac_ext
16269 cat >>conftest.$ac_ext <<_ACEOF
16270 /* end confdefs.h. */
16271 #include <$ac_header>
16273 if { (ac_try="$ac_cpp conftest.$ac_ext"
16274 case "(($ac_try" in
16275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16276 *) ac_try_echo=$ac_try;;
16278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16279 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16281 grep -v '^ *+' conftest.er1 >conftest.err
16283 cat conftest.err >&5
16284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285 (exit $ac_status); } >/dev/null; then
16286 if test -s conftest.err; then
16287 ac_cpp_err=$ac_c_preproc_warn_flag
16288 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16295 if test -z "$ac_cpp_err"; then
16296 ac_header_preproc=yes
16298 echo "$as_me: failed program was:" >&5
16299 sed 's/^/| /' conftest.$ac_ext >&5
16301 ac_header_preproc=no
16304 rm -f conftest.err conftest.$ac_ext
16305 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16306 echo "${ECHO_T}$ac_header_preproc" >&6; }
16308 # So? What about this header?
16309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16311 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16312 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16314 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16315 ac_header_preproc=yes
16318 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16319 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16320 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16321 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16322 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16323 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16324 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16325 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16327 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16328 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16329 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16331 ## ------------------------------------ ##
16332 ## Report this to http://llvm.org/bugs/ ##
16333 ## ------------------------------------ ##
16335 ) | sed "s/^/$as_me: WARNING: /" >&2
16338 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16341 echo $ECHO_N "(cached) $ECHO_C" >&6
16343 eval "$as_ac_Header=\$ac_header_preproc"
16345 ac_res=`eval echo '${'$as_ac_Header'}'`
16346 { echo "$as_me:$LINENO: result: $ac_res" >&5
16347 echo "${ECHO_T}$ac_res" >&6; }
16350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16351 cat >>confdefs.h <<_ACEOF
16352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16360 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16361 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16362 cat >conftest.$ac_ext <<_ACEOF
16365 cat confdefs.h >>conftest.$ac_ext
16366 cat >>conftest.$ac_ext <<_ACEOF
16367 /* end confdefs.h. */
16368 extern const char *__crashreporter_info__;
16370 __crashreporter_info__ = "test";
16375 rm -f conftest.$ac_objext conftest$ac_exeext
16376 if { (ac_try="$ac_link"
16377 case "(($ac_try" in
16378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16379 *) ac_try_echo=$ac_try;;
16381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16382 (eval "$ac_link") 2>conftest.er1
16384 grep -v '^ *+' conftest.er1 >conftest.err
16386 cat conftest.err >&5
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); } &&
16389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16390 { (case "(($ac_try" in
16391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16392 *) ac_try_echo=$ac_try;;
16394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16395 (eval "$ac_try") 2>&5
16397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398 (exit $ac_status); }; } &&
16399 { ac_try='test -s conftest$ac_exeext'
16400 { (case "(($ac_try" in
16401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16402 *) ac_try_echo=$ac_try;;
16404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16405 (eval "$ac_try") 2>&5
16407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408 (exit $ac_status); }; }; then
16409 { echo "$as_me:$LINENO: result: yes" >&5
16410 echo "${ECHO_T}yes" >&6; }
16412 cat >>confdefs.h <<\_ACEOF
16413 #define HAVE_CRASHREPORTER_INFO 1
16417 echo "$as_me: failed program was:" >&5
16418 sed 's/^/| /' conftest.$ac_ext >&5
16420 { echo "$as_me:$LINENO: result: no" >&5
16421 echo "${ECHO_T}no" >&6; }
16423 cat >>confdefs.h <<\_ACEOF
16424 #define HAVE_CRASHREPORTER_INFO 0
16429 rm -f core conftest.err conftest.$ac_objext \
16430 conftest$ac_exeext conftest.$ac_ext
16435 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16436 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16437 if test "${ac_cv_huge_val_sanity+set}" = set; then
16438 echo $ECHO_N "(cached) $ECHO_C" >&6
16442 ac_cpp='$CXXCPP $CPPFLAGS'
16443 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16444 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16445 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16447 ac_save_CXXFLAGS=$CXXFLAGS
16448 CXXFLAGS="$CXXFLAGS -pedantic"
16449 if test "$cross_compiling" = yes; then
16450 ac_cv_huge_val_sanity=yes
16452 cat >conftest.$ac_ext <<_ACEOF
16455 cat confdefs.h >>conftest.$ac_ext
16456 cat >>conftest.$ac_ext <<_ACEOF
16457 /* end confdefs.h. */
16462 double x = HUGE_VAL; return x != x;
16467 rm -f conftest$ac_exeext
16468 if { (ac_try="$ac_link"
16469 case "(($ac_try" in
16470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16471 *) ac_try_echo=$ac_try;;
16473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16474 (eval "$ac_link") 2>&5
16476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16478 { (case "(($ac_try" in
16479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16480 *) ac_try_echo=$ac_try;;
16482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16483 (eval "$ac_try") 2>&5
16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); }; }; then
16487 ac_cv_huge_val_sanity=yes
16489 echo "$as_me: program exited with status $ac_status" >&5
16490 echo "$as_me: failed program was:" >&5
16491 sed 's/^/| /' conftest.$ac_ext >&5
16493 ( exit $ac_status )
16494 ac_cv_huge_val_sanity=no
16496 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16500 CXXFLAGS=$ac_save_CXXFLAGS
16502 ac_cpp='$CPP $CPPFLAGS'
16503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16509 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16510 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16511 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16514 { echo "$as_me:$LINENO: checking for pid_t" >&5
16515 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16516 if test "${ac_cv_type_pid_t+set}" = set; then
16517 echo $ECHO_N "(cached) $ECHO_C" >&6
16519 cat >conftest.$ac_ext <<_ACEOF
16522 cat confdefs.h >>conftest.$ac_ext
16523 cat >>conftest.$ac_ext <<_ACEOF
16524 /* end confdefs.h. */
16525 $ac_includes_default
16526 typedef pid_t ac__type_new_;
16530 if ((ac__type_new_ *) 0)
16532 if (sizeof (ac__type_new_))
16538 rm -f conftest.$ac_objext
16539 if { (ac_try="$ac_compile"
16540 case "(($ac_try" in
16541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16542 *) ac_try_echo=$ac_try;;
16544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16545 (eval "$ac_compile") 2>conftest.er1
16547 grep -v '^ *+' conftest.er1 >conftest.err
16549 cat conftest.err >&5
16550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16551 (exit $ac_status); } &&
16552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16553 { (case "(($ac_try" in
16554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16555 *) ac_try_echo=$ac_try;;
16557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16558 (eval "$ac_try") 2>&5
16560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16561 (exit $ac_status); }; } &&
16562 { ac_try='test -s conftest.$ac_objext'
16563 { (case "(($ac_try" in
16564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16565 *) ac_try_echo=$ac_try;;
16567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16568 (eval "$ac_try") 2>&5
16570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571 (exit $ac_status); }; }; then
16572 ac_cv_type_pid_t=yes
16574 echo "$as_me: failed program was:" >&5
16575 sed 's/^/| /' conftest.$ac_ext >&5
16577 ac_cv_type_pid_t=no
16580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16582 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16583 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16584 if test $ac_cv_type_pid_t = yes; then
16588 cat >>confdefs.h <<_ACEOF
16594 { echo "$as_me:$LINENO: checking for size_t" >&5
16595 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16596 if test "${ac_cv_type_size_t+set}" = set; then
16597 echo $ECHO_N "(cached) $ECHO_C" >&6
16599 cat >conftest.$ac_ext <<_ACEOF
16602 cat confdefs.h >>conftest.$ac_ext
16603 cat >>conftest.$ac_ext <<_ACEOF
16604 /* end confdefs.h. */
16605 $ac_includes_default
16606 typedef size_t ac__type_new_;
16610 if ((ac__type_new_ *) 0)
16612 if (sizeof (ac__type_new_))
16618 rm -f conftest.$ac_objext
16619 if { (ac_try="$ac_compile"
16620 case "(($ac_try" in
16621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16622 *) ac_try_echo=$ac_try;;
16624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16625 (eval "$ac_compile") 2>conftest.er1
16627 grep -v '^ *+' conftest.er1 >conftest.err
16629 cat conftest.err >&5
16630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631 (exit $ac_status); } &&
16632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16633 { (case "(($ac_try" in
16634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16635 *) ac_try_echo=$ac_try;;
16637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16638 (eval "$ac_try") 2>&5
16640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641 (exit $ac_status); }; } &&
16642 { ac_try='test -s conftest.$ac_objext'
16643 { (case "(($ac_try" in
16644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16645 *) ac_try_echo=$ac_try;;
16647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16648 (eval "$ac_try") 2>&5
16650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651 (exit $ac_status); }; }; then
16652 ac_cv_type_size_t=yes
16654 echo "$as_me: failed program was:" >&5
16655 sed 's/^/| /' conftest.$ac_ext >&5
16657 ac_cv_type_size_t=no
16660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16662 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16663 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16664 if test $ac_cv_type_size_t = yes; then
16668 cat >>confdefs.h <<_ACEOF
16669 #define size_t unsigned int
16675 cat >>confdefs.h <<_ACEOF
16676 #define RETSIGTYPE void
16679 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16680 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16681 if test "${ac_cv_struct_tm+set}" = set; then
16682 echo $ECHO_N "(cached) $ECHO_C" >&6
16684 cat >conftest.$ac_ext <<_ACEOF
16687 cat confdefs.h >>conftest.$ac_ext
16688 cat >>conftest.$ac_ext <<_ACEOF
16689 /* end confdefs.h. */
16690 #include <sys/types.h>
16696 struct tm *tp; tp->tm_sec;
16701 rm -f conftest.$ac_objext
16702 if { (ac_try="$ac_compile"
16703 case "(($ac_try" in
16704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16705 *) ac_try_echo=$ac_try;;
16707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16708 (eval "$ac_compile") 2>conftest.er1
16710 grep -v '^ *+' conftest.er1 >conftest.err
16712 cat conftest.err >&5
16713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714 (exit $ac_status); } &&
16715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16716 { (case "(($ac_try" in
16717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16718 *) ac_try_echo=$ac_try;;
16720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16721 (eval "$ac_try") 2>&5
16723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724 (exit $ac_status); }; } &&
16725 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16735 ac_cv_struct_tm=time.h
16737 echo "$as_me: failed program was:" >&5
16738 sed 's/^/| /' conftest.$ac_ext >&5
16740 ac_cv_struct_tm=sys/time.h
16743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16745 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16746 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16747 if test $ac_cv_struct_tm = sys/time.h; then
16749 cat >>confdefs.h <<\_ACEOF
16750 #define TM_IN_SYS_TIME 1
16755 { echo "$as_me:$LINENO: checking for int64_t" >&5
16756 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16757 if test "${ac_cv_type_int64_t+set}" = set; then
16758 echo $ECHO_N "(cached) $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 $ac_includes_default
16767 typedef int64_t ac__type_new_;
16771 if ((ac__type_new_ *) 0)
16773 if (sizeof (ac__type_new_))
16779 rm -f conftest.$ac_objext
16780 if { (ac_try="$ac_compile"
16781 case "(($ac_try" in
16782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16783 *) ac_try_echo=$ac_try;;
16785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16786 (eval "$ac_compile") 2>conftest.er1
16788 grep -v '^ *+' conftest.er1 >conftest.err
16790 cat conftest.err >&5
16791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16792 (exit $ac_status); } &&
16793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16794 { (case "(($ac_try" in
16795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16796 *) ac_try_echo=$ac_try;;
16798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16799 (eval "$ac_try") 2>&5
16801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802 (exit $ac_status); }; } &&
16803 { ac_try='test -s conftest.$ac_objext'
16804 { (case "(($ac_try" in
16805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16806 *) ac_try_echo=$ac_try;;
16808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16809 (eval "$ac_try") 2>&5
16811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812 (exit $ac_status); }; }; then
16813 ac_cv_type_int64_t=yes
16815 echo "$as_me: failed program was:" >&5
16816 sed 's/^/| /' conftest.$ac_ext >&5
16818 ac_cv_type_int64_t=no
16821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16823 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16824 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16825 if test $ac_cv_type_int64_t = yes; then
16827 cat >>confdefs.h <<_ACEOF
16828 #define HAVE_INT64_T 1
16833 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16834 echo "$as_me: error: Type int64_t required but not found" >&2;}
16835 { (exit 1); exit 1; }; }
16838 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16839 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16840 if test "${ac_cv_type_uint64_t+set}" = set; then
16841 echo $ECHO_N "(cached) $ECHO_C" >&6
16843 cat >conftest.$ac_ext <<_ACEOF
16846 cat confdefs.h >>conftest.$ac_ext
16847 cat >>conftest.$ac_ext <<_ACEOF
16848 /* end confdefs.h. */
16849 $ac_includes_default
16850 typedef uint64_t ac__type_new_;
16854 if ((ac__type_new_ *) 0)
16856 if (sizeof (ac__type_new_))
16862 rm -f conftest.$ac_objext
16863 if { (ac_try="$ac_compile"
16864 case "(($ac_try" in
16865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16866 *) ac_try_echo=$ac_try;;
16868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16869 (eval "$ac_compile") 2>conftest.er1
16871 grep -v '^ *+' conftest.er1 >conftest.err
16873 cat conftest.err >&5
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); } &&
16876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16877 { (case "(($ac_try" in
16878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16879 *) ac_try_echo=$ac_try;;
16881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16882 (eval "$ac_try") 2>&5
16884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); }; } &&
16886 { ac_try='test -s conftest.$ac_objext'
16887 { (case "(($ac_try" in
16888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16889 *) ac_try_echo=$ac_try;;
16891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16892 (eval "$ac_try") 2>&5
16894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895 (exit $ac_status); }; }; then
16896 ac_cv_type_uint64_t=yes
16898 echo "$as_me: failed program was:" >&5
16899 sed 's/^/| /' conftest.$ac_ext >&5
16901 ac_cv_type_uint64_t=no
16904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16906 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16907 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16908 if test $ac_cv_type_uint64_t = yes; then
16910 cat >>confdefs.h <<_ACEOF
16911 #define HAVE_UINT64_T 1
16916 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16917 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16918 if test "${ac_cv_type_u_int64_t+set}" = set; then
16919 echo $ECHO_N "(cached) $ECHO_C" >&6
16921 cat >conftest.$ac_ext <<_ACEOF
16924 cat confdefs.h >>conftest.$ac_ext
16925 cat >>conftest.$ac_ext <<_ACEOF
16926 /* end confdefs.h. */
16927 $ac_includes_default
16928 typedef u_int64_t ac__type_new_;
16932 if ((ac__type_new_ *) 0)
16934 if (sizeof (ac__type_new_))
16940 rm -f conftest.$ac_objext
16941 if { (ac_try="$ac_compile"
16942 case "(($ac_try" in
16943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16944 *) ac_try_echo=$ac_try;;
16946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16947 (eval "$ac_compile") 2>conftest.er1
16949 grep -v '^ *+' conftest.er1 >conftest.err
16951 cat conftest.err >&5
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); } &&
16954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16955 { (case "(($ac_try" in
16956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16957 *) ac_try_echo=$ac_try;;
16959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16960 (eval "$ac_try") 2>&5
16962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963 (exit $ac_status); }; } &&
16964 { ac_try='test -s conftest.$ac_objext'
16965 { (case "(($ac_try" in
16966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16967 *) ac_try_echo=$ac_try;;
16969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16970 (eval "$ac_try") 2>&5
16972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16973 (exit $ac_status); }; }; then
16974 ac_cv_type_u_int64_t=yes
16976 echo "$as_me: failed program was:" >&5
16977 sed 's/^/| /' conftest.$ac_ext >&5
16979 ac_cv_type_u_int64_t=no
16982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16984 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16985 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16986 if test $ac_cv_type_u_int64_t = yes; then
16988 cat >>confdefs.h <<_ACEOF
16989 #define HAVE_U_INT64_T 1
16994 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16995 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16996 { (exit 1); exit 1; }; }
17010 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17013 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17015 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17016 echo $ECHO_N "(cached) $ECHO_C" >&6
17018 cat >conftest.$ac_ext <<_ACEOF
17021 cat confdefs.h >>conftest.$ac_ext
17022 cat >>conftest.$ac_ext <<_ACEOF
17023 /* end confdefs.h. */
17024 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17026 #define $ac_func innocuous_$ac_func
17028 /* System header to define __stub macros and hopefully few prototypes,
17029 which can conflict with char $ac_func (); below.
17030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17031 <limits.h> exists even on freestanding compilers. */
17034 # include <limits.h>
17036 # include <assert.h>
17041 /* Override any GCC internal prototype to avoid an error.
17042 Use char because int might match the return type of a GCC
17043 builtin and then its argument prototype would still apply. */
17048 /* The GNU C library defines this for functions which it implements
17049 to always fail with ENOSYS. Some functions are actually named
17050 something starting with __ and the normal name is an alias. */
17051 #if defined __stub_$ac_func || defined __stub___$ac_func
17058 return $ac_func ();
17063 rm -f conftest.$ac_objext conftest$ac_exeext
17064 if { (ac_try="$ac_link"
17065 case "(($ac_try" in
17066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17067 *) ac_try_echo=$ac_try;;
17069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17070 (eval "$ac_link") 2>conftest.er1
17072 grep -v '^ *+' conftest.er1 >conftest.err
17074 cat conftest.err >&5
17075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); } &&
17077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17078 { (case "(($ac_try" in
17079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17080 *) ac_try_echo=$ac_try;;
17082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17083 (eval "$ac_try") 2>&5
17085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17086 (exit $ac_status); }; } &&
17087 { ac_try='test -s conftest$ac_exeext'
17088 { (case "(($ac_try" in
17089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17090 *) ac_try_echo=$ac_try;;
17092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17093 (eval "$ac_try") 2>&5
17095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096 (exit $ac_status); }; }; then
17097 eval "$as_ac_var=yes"
17099 echo "$as_me: failed program was:" >&5
17100 sed 's/^/| /' conftest.$ac_ext >&5
17102 eval "$as_ac_var=no"
17105 rm -f core conftest.err conftest.$ac_objext \
17106 conftest$ac_exeext conftest.$ac_ext
17108 ac_res=`eval echo '${'$as_ac_var'}'`
17109 { echo "$as_me:$LINENO: result: $ac_res" >&5
17110 echo "${ECHO_T}$ac_res" >&6; }
17111 if test `eval echo '${'$as_ac_var'}'` = yes; then
17112 cat >>confdefs.h <<_ACEOF
17113 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17123 for ac_func in powf fmodf strtof round
17125 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17126 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17127 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17128 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17129 echo $ECHO_N "(cached) $ECHO_C" >&6
17131 cat >conftest.$ac_ext <<_ACEOF
17134 cat confdefs.h >>conftest.$ac_ext
17135 cat >>conftest.$ac_ext <<_ACEOF
17136 /* end confdefs.h. */
17137 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17138 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17139 #define $ac_func innocuous_$ac_func
17141 /* System header to define __stub macros and hopefully few prototypes,
17142 which can conflict with char $ac_func (); below.
17143 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17144 <limits.h> exists even on freestanding compilers. */
17147 # include <limits.h>
17149 # include <assert.h>
17154 /* Override any GCC internal prototype to avoid an error.
17155 Use char because int might match the return type of a GCC
17156 builtin and then its argument prototype would still apply. */
17161 /* The GNU C library defines this for functions which it implements
17162 to always fail with ENOSYS. Some functions are actually named
17163 something starting with __ and the normal name is an alias. */
17164 #if defined __stub_$ac_func || defined __stub___$ac_func
17171 return $ac_func ();
17176 rm -f conftest.$ac_objext conftest$ac_exeext
17177 if { (ac_try="$ac_link"
17178 case "(($ac_try" in
17179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17180 *) ac_try_echo=$ac_try;;
17182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17183 (eval "$ac_link") 2>conftest.er1
17185 grep -v '^ *+' conftest.er1 >conftest.err
17187 cat conftest.err >&5
17188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); } &&
17190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17191 { (case "(($ac_try" in
17192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17193 *) ac_try_echo=$ac_try;;
17195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17196 (eval "$ac_try") 2>&5
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); }; } &&
17200 { ac_try='test -s conftest$ac_exeext'
17201 { (case "(($ac_try" in
17202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17203 *) ac_try_echo=$ac_try;;
17205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17206 (eval "$ac_try") 2>&5
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); }; }; then
17210 eval "$as_ac_var=yes"
17212 echo "$as_me: failed program was:" >&5
17213 sed 's/^/| /' conftest.$ac_ext >&5
17215 eval "$as_ac_var=no"
17218 rm -f core conftest.err conftest.$ac_objext \
17219 conftest$ac_exeext conftest.$ac_ext
17221 ac_res=`eval echo '${'$as_ac_var'}'`
17222 { echo "$as_me:$LINENO: result: $ac_res" >&5
17223 echo "${ECHO_T}$ac_res" >&6; }
17224 if test `eval echo '${'$as_ac_var'}'` = yes; then
17225 cat >>confdefs.h <<_ACEOF
17226 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17237 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17239 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17240 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17241 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17242 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17243 echo $ECHO_N "(cached) $ECHO_C" >&6
17245 cat >conftest.$ac_ext <<_ACEOF
17248 cat confdefs.h >>conftest.$ac_ext
17249 cat >>conftest.$ac_ext <<_ACEOF
17250 /* end confdefs.h. */
17251 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17252 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17253 #define $ac_func innocuous_$ac_func
17255 /* System header to define __stub macros and hopefully few prototypes,
17256 which can conflict with char $ac_func (); below.
17257 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17258 <limits.h> exists even on freestanding compilers. */
17261 # include <limits.h>
17263 # include <assert.h>
17268 /* Override any GCC internal prototype to avoid an error.
17269 Use char because int might match the return type of a GCC
17270 builtin and then its argument prototype would still apply. */
17275 /* The GNU C library defines this for functions which it implements
17276 to always fail with ENOSYS. Some functions are actually named
17277 something starting with __ and the normal name is an alias. */
17278 #if defined __stub_$ac_func || defined __stub___$ac_func
17285 return $ac_func ();
17290 rm -f conftest.$ac_objext conftest$ac_exeext
17291 if { (ac_try="$ac_link"
17292 case "(($ac_try" in
17293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17294 *) ac_try_echo=$ac_try;;
17296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17297 (eval "$ac_link") 2>conftest.er1
17299 grep -v '^ *+' conftest.er1 >conftest.err
17301 cat conftest.err >&5
17302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303 (exit $ac_status); } &&
17304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17305 { (case "(($ac_try" in
17306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17307 *) ac_try_echo=$ac_try;;
17309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17310 (eval "$ac_try") 2>&5
17312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313 (exit $ac_status); }; } &&
17314 { ac_try='test -s conftest$ac_exeext'
17315 { (case "(($ac_try" in
17316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17317 *) ac_try_echo=$ac_try;;
17319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17320 (eval "$ac_try") 2>&5
17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); }; }; then
17324 eval "$as_ac_var=yes"
17326 echo "$as_me: failed program was:" >&5
17327 sed 's/^/| /' conftest.$ac_ext >&5
17329 eval "$as_ac_var=no"
17332 rm -f core conftest.err conftest.$ac_objext \
17333 conftest$ac_exeext conftest.$ac_ext
17335 ac_res=`eval echo '${'$as_ac_var'}'`
17336 { echo "$as_me:$LINENO: result: $ac_res" >&5
17337 echo "${ECHO_T}$ac_res" >&6; }
17338 if test `eval echo '${'$as_ac_var'}'` = yes; then
17339 cat >>confdefs.h <<_ACEOF
17340 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17349 for ac_func in isatty mkdtemp mkstemp
17351 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17352 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17353 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17354 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17355 echo $ECHO_N "(cached) $ECHO_C" >&6
17357 cat >conftest.$ac_ext <<_ACEOF
17360 cat confdefs.h >>conftest.$ac_ext
17361 cat >>conftest.$ac_ext <<_ACEOF
17362 /* end confdefs.h. */
17363 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17364 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17365 #define $ac_func innocuous_$ac_func
17367 /* System header to define __stub macros and hopefully few prototypes,
17368 which can conflict with char $ac_func (); below.
17369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17370 <limits.h> exists even on freestanding compilers. */
17373 # include <limits.h>
17375 # include <assert.h>
17380 /* Override any GCC internal prototype to avoid an error.
17381 Use char because int might match the return type of a GCC
17382 builtin and then its argument prototype would still apply. */
17387 /* The GNU C library defines this for functions which it implements
17388 to always fail with ENOSYS. Some functions are actually named
17389 something starting with __ and the normal name is an alias. */
17390 #if defined __stub_$ac_func || defined __stub___$ac_func
17397 return $ac_func ();
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
17436 eval "$as_ac_var=yes"
17438 echo "$as_me: failed program was:" >&5
17439 sed 's/^/| /' conftest.$ac_ext >&5
17441 eval "$as_ac_var=no"
17444 rm -f core conftest.err conftest.$ac_objext \
17445 conftest$ac_exeext conftest.$ac_ext
17447 ac_res=`eval echo '${'$as_ac_var'}'`
17448 { echo "$as_me:$LINENO: result: $ac_res" >&5
17449 echo "${ECHO_T}$ac_res" >&6; }
17450 if test `eval echo '${'$as_ac_var'}'` = yes; then
17451 cat >>confdefs.h <<_ACEOF
17452 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17465 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17467 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17468 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17469 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17470 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17471 echo $ECHO_N "(cached) $ECHO_C" >&6
17473 cat >conftest.$ac_ext <<_ACEOF
17476 cat confdefs.h >>conftest.$ac_ext
17477 cat >>conftest.$ac_ext <<_ACEOF
17478 /* end confdefs.h. */
17479 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17481 #define $ac_func innocuous_$ac_func
17483 /* System header to define __stub macros and hopefully few prototypes,
17484 which can conflict with char $ac_func (); below.
17485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17486 <limits.h> exists even on freestanding compilers. */
17489 # include <limits.h>
17491 # include <assert.h>
17496 /* Override any GCC internal prototype to avoid an error.
17497 Use char because int might match the return type of a GCC
17498 builtin and then its argument prototype would still apply. */
17503 /* The GNU C library defines this for functions which it implements
17504 to always fail with ENOSYS. Some functions are actually named
17505 something starting with __ and the normal name is an alias. */
17506 #if defined __stub_$ac_func || defined __stub___$ac_func
17513 return $ac_func ();
17518 rm -f conftest.$ac_objext conftest$ac_exeext
17519 if { (ac_try="$ac_link"
17520 case "(($ac_try" in
17521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17522 *) ac_try_echo=$ac_try;;
17524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17525 (eval "$ac_link") 2>conftest.er1
17527 grep -v '^ *+' conftest.er1 >conftest.err
17529 cat conftest.err >&5
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); } &&
17532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17533 { (case "(($ac_try" in
17534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17535 *) ac_try_echo=$ac_try;;
17537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17538 (eval "$ac_try") 2>&5
17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); }; } &&
17542 { ac_try='test -s conftest$ac_exeext'
17543 { (case "(($ac_try" in
17544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17545 *) ac_try_echo=$ac_try;;
17547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17548 (eval "$ac_try") 2>&5
17550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); }; }; then
17552 eval "$as_ac_var=yes"
17554 echo "$as_me: failed program was:" >&5
17555 sed 's/^/| /' conftest.$ac_ext >&5
17557 eval "$as_ac_var=no"
17560 rm -f core conftest.err conftest.$ac_objext \
17561 conftest$ac_exeext conftest.$ac_ext
17563 ac_res=`eval echo '${'$as_ac_var'}'`
17564 { echo "$as_me:$LINENO: result: $ac_res" >&5
17565 echo "${ECHO_T}$ac_res" >&6; }
17566 if test `eval echo '${'$as_ac_var'}'` = yes; then
17567 cat >>confdefs.h <<_ACEOF
17568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17578 for ac_func in strerror strerror_r setenv arc4random
17580 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17581 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17583 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17584 echo $ECHO_N "(cached) $ECHO_C" >&6
17586 cat >conftest.$ac_ext <<_ACEOF
17589 cat confdefs.h >>conftest.$ac_ext
17590 cat >>conftest.$ac_ext <<_ACEOF
17591 /* end confdefs.h. */
17592 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17594 #define $ac_func innocuous_$ac_func
17596 /* System header to define __stub macros and hopefully few prototypes,
17597 which can conflict with char $ac_func (); below.
17598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17599 <limits.h> exists even on freestanding compilers. */
17602 # include <limits.h>
17604 # include <assert.h>
17609 /* Override any GCC internal prototype to avoid an error.
17610 Use char because int might match the return type of a GCC
17611 builtin and then its argument prototype would still apply. */
17616 /* The GNU C library defines this for functions which it implements
17617 to always fail with ENOSYS. Some functions are actually named
17618 something starting with __ and the normal name is an alias. */
17619 #if defined __stub_$ac_func || defined __stub___$ac_func
17626 return $ac_func ();
17631 rm -f conftest.$ac_objext conftest$ac_exeext
17632 if { (ac_try="$ac_link"
17633 case "(($ac_try" in
17634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17635 *) ac_try_echo=$ac_try;;
17637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17638 (eval "$ac_link") 2>conftest.er1
17640 grep -v '^ *+' conftest.er1 >conftest.err
17642 cat conftest.err >&5
17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); } &&
17645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17646 { (case "(($ac_try" in
17647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17648 *) ac_try_echo=$ac_try;;
17650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17651 (eval "$ac_try") 2>&5
17653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654 (exit $ac_status); }; } &&
17655 { ac_try='test -s conftest$ac_exeext'
17656 { (case "(($ac_try" in
17657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17658 *) ac_try_echo=$ac_try;;
17660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17661 (eval "$ac_try") 2>&5
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); }; }; then
17665 eval "$as_ac_var=yes"
17667 echo "$as_me: failed program was:" >&5
17668 sed 's/^/| /' conftest.$ac_ext >&5
17670 eval "$as_ac_var=no"
17673 rm -f core conftest.err conftest.$ac_objext \
17674 conftest$ac_exeext conftest.$ac_ext
17676 ac_res=`eval echo '${'$as_ac_var'}'`
17677 { echo "$as_me:$LINENO: result: $ac_res" >&5
17678 echo "${ECHO_T}$ac_res" >&6; }
17679 if test `eval echo '${'$as_ac_var'}'` = yes; then
17680 cat >>confdefs.h <<_ACEOF
17681 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17691 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17694 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17696 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17697 echo $ECHO_N "(cached) $ECHO_C" >&6
17699 cat >conftest.$ac_ext <<_ACEOF
17702 cat confdefs.h >>conftest.$ac_ext
17703 cat >>conftest.$ac_ext <<_ACEOF
17704 /* end confdefs.h. */
17705 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17706 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17707 #define $ac_func innocuous_$ac_func
17709 /* System header to define __stub macros and hopefully few prototypes,
17710 which can conflict with char $ac_func (); below.
17711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17712 <limits.h> exists even on freestanding compilers. */
17715 # include <limits.h>
17717 # include <assert.h>
17722 /* Override any GCC internal prototype to avoid an error.
17723 Use char because int might match the return type of a GCC
17724 builtin and then its argument prototype would still apply. */
17729 /* The GNU C library defines this for functions which it implements
17730 to always fail with ENOSYS. Some functions are actually named
17731 something starting with __ and the normal name is an alias. */
17732 #if defined __stub_$ac_func || defined __stub___$ac_func
17739 return $ac_func ();
17744 rm -f conftest.$ac_objext conftest$ac_exeext
17745 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
17753 grep -v '^ *+' conftest.er1 >conftest.err
17755 cat conftest.err >&5
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); } &&
17758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17759 { (case "(($ac_try" in
17760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17761 *) ac_try_echo=$ac_try;;
17763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17764 (eval "$ac_try") 2>&5
17766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); }; } &&
17768 { ac_try='test -s conftest$ac_exeext'
17769 { (case "(($ac_try" in
17770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17771 *) ac_try_echo=$ac_try;;
17773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17774 (eval "$ac_try") 2>&5
17776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777 (exit $ac_status); }; }; then
17778 eval "$as_ac_var=yes"
17780 echo "$as_me: failed program was:" >&5
17781 sed 's/^/| /' conftest.$ac_ext >&5
17783 eval "$as_ac_var=no"
17786 rm -f core conftest.err conftest.$ac_objext \
17787 conftest$ac_exeext conftest.$ac_ext
17789 ac_res=`eval echo '${'$as_ac_var'}'`
17790 { echo "$as_me:$LINENO: result: $ac_res" >&5
17791 echo "${ECHO_T}$ac_res" >&6; }
17792 if test `eval echo '${'$as_ac_var'}'` = yes; then
17793 cat >>confdefs.h <<_ACEOF
17794 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17805 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17807 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17808 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17809 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17810 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17811 echo $ECHO_N "(cached) $ECHO_C" >&6
17813 cat >conftest.$ac_ext <<_ACEOF
17816 cat confdefs.h >>conftest.$ac_ext
17817 cat >>conftest.$ac_ext <<_ACEOF
17818 /* end confdefs.h. */
17819 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17820 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17821 #define $ac_func innocuous_$ac_func
17823 /* System header to define __stub macros and hopefully few prototypes,
17824 which can conflict with char $ac_func (); below.
17825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17826 <limits.h> exists even on freestanding compilers. */
17829 # include <limits.h>
17831 # include <assert.h>
17836 /* Override any GCC internal prototype to avoid an error.
17837 Use char because int might match the return type of a GCC
17838 builtin and then its argument prototype would still apply. */
17843 /* The GNU C library defines this for functions which it implements
17844 to always fail with ENOSYS. Some functions are actually named
17845 something starting with __ and the normal name is an alias. */
17846 #if defined __stub_$ac_func || defined __stub___$ac_func
17853 return $ac_func ();
17858 rm -f conftest.$ac_objext conftest$ac_exeext
17859 if { (ac_try="$ac_link"
17860 case "(($ac_try" in
17861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17862 *) ac_try_echo=$ac_try;;
17864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17865 (eval "$ac_link") 2>conftest.er1
17867 grep -v '^ *+' conftest.er1 >conftest.err
17869 cat conftest.err >&5
17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871 (exit $ac_status); } &&
17872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17873 { (case "(($ac_try" in
17874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17875 *) ac_try_echo=$ac_try;;
17877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17878 (eval "$ac_try") 2>&5
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); }; } &&
17882 { ac_try='test -s conftest$ac_exeext'
17883 { (case "(($ac_try" in
17884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17885 *) ac_try_echo=$ac_try;;
17887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17888 (eval "$ac_try") 2>&5
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); }; }; then
17892 eval "$as_ac_var=yes"
17894 echo "$as_me: failed program was:" >&5
17895 sed 's/^/| /' conftest.$ac_ext >&5
17897 eval "$as_ac_var=no"
17900 rm -f core conftest.err conftest.$ac_objext \
17901 conftest$ac_exeext conftest.$ac_ext
17903 ac_res=`eval echo '${'$as_ac_var'}'`
17904 { echo "$as_me:$LINENO: result: $ac_res" >&5
17905 echo "${ECHO_T}$ac_res" >&6; }
17906 if test `eval echo '${'$as_ac_var'}'` = yes; then
17907 cat >>confdefs.h <<_ACEOF
17908 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17914 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17915 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17916 if test "${llvm_cv_c_printf_a+set}" = set; then
17917 echo $ECHO_N "(cached) $ECHO_C" >&6
17920 ac_cpp='$CPP $CPPFLAGS'
17921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17925 if test "$cross_compiling" = yes; then
17926 llvmac_cv_c_printf_a=no
17928 cat >conftest.$ac_ext <<_ACEOF
17932 cat confdefs.h >>conftest.$ac_ext
17933 cat >>conftest.$ac_ext <<_ACEOF
17934 /* end confdefs.h. */
17937 #include <stdlib.h>
17943 volatile double A, B;
17947 sprintf(Buffer, "%a", A);
17951 if (A != 0x1.999999999999ap-4)
17958 rm -f conftest$ac_exeext
17959 if { (ac_try="$ac_link"
17960 case "(($ac_try" in
17961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17962 *) ac_try_echo=$ac_try;;
17964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17965 (eval "$ac_link") 2>&5
17967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17969 { (case "(($ac_try" in
17970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17971 *) ac_try_echo=$ac_try;;
17973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17974 (eval "$ac_try") 2>&5
17976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977 (exit $ac_status); }; }; then
17978 llvm_cv_c_printf_a=yes
17980 echo "$as_me: program exited with status $ac_status" >&5
17981 echo "$as_me: failed program was:" >&5
17982 sed 's/^/| /' conftest.$ac_ext >&5
17984 ( exit $ac_status )
17985 llvmac_cv_c_printf_a=no
17987 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17992 ac_cpp='$CPP $CPPFLAGS'
17993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17998 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17999 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18000 if test "$llvm_cv_c_printf_a" = "yes"; then
18002 cat >>confdefs.h <<\_ACEOF
18003 #define HAVE_PRINTF_A 1
18009 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18010 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18011 if test "${ac_cv_func_rand48+set}" = set; then
18012 echo $ECHO_N "(cached) $ECHO_C" >&6
18015 ac_cpp='$CXXCPP $CPPFLAGS'
18016 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18017 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18018 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18020 cat >conftest.$ac_ext <<_ACEOF
18023 cat confdefs.h >>conftest.$ac_ext
18024 cat >>conftest.$ac_ext <<_ACEOF
18025 /* end confdefs.h. */
18026 #include <stdlib.h>
18030 srand48(0);lrand48();drand48();
18035 rm -f conftest.$ac_objext
18036 if { (ac_try="$ac_compile"
18037 case "(($ac_try" in
18038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18039 *) ac_try_echo=$ac_try;;
18041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18042 (eval "$ac_compile") 2>conftest.er1
18044 grep -v '^ *+' conftest.er1 >conftest.err
18046 cat conftest.err >&5
18047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048 (exit $ac_status); } &&
18049 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18050 { (case "(($ac_try" in
18051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18052 *) ac_try_echo=$ac_try;;
18054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18055 (eval "$ac_try") 2>&5
18057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058 (exit $ac_status); }; } &&
18059 { ac_try='test -s conftest.$ac_objext'
18060 { (case "(($ac_try" in
18061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18062 *) ac_try_echo=$ac_try;;
18064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18065 (eval "$ac_try") 2>&5
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); }; }; then
18069 ac_cv_func_rand48=yes
18071 echo "$as_me: failed program was:" >&5
18072 sed 's/^/| /' conftest.$ac_ext >&5
18074 ac_cv_func_rand48=no
18077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18079 ac_cpp='$CPP $CPPFLAGS'
18080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18085 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18086 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18088 if test "$ac_cv_func_rand48" = "yes" ; then
18090 cat >>confdefs.h <<\_ACEOF
18091 #define HAVE_RAND48 1
18097 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18098 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18099 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18100 echo $ECHO_N "(cached) $ECHO_C" >&6
18102 cat >conftest.$ac_ext <<_ACEOF
18105 cat confdefs.h >>conftest.$ac_ext
18106 cat >>conftest.$ac_ext <<_ACEOF
18107 /* end confdefs.h. */
18108 $ac_includes_default
18113 char *p = (char *) strerror_s;
18121 rm -f conftest.$ac_objext
18122 if { (ac_try="$ac_compile"
18123 case "(($ac_try" in
18124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18125 *) ac_try_echo=$ac_try;;
18127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18128 (eval "$ac_compile") 2>conftest.er1
18130 grep -v '^ *+' conftest.er1 >conftest.err
18132 cat conftest.err >&5
18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134 (exit $ac_status); } &&
18135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18136 { (case "(($ac_try" in
18137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18138 *) ac_try_echo=$ac_try;;
18140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18141 (eval "$ac_try") 2>&5
18143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144 (exit $ac_status); }; } &&
18145 { ac_try='test -s conftest.$ac_objext'
18146 { (case "(($ac_try" in
18147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18148 *) ac_try_echo=$ac_try;;
18150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18151 (eval "$ac_try") 2>&5
18153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154 (exit $ac_status); }; }; then
18155 ac_cv_have_decl_strerror_s=yes
18157 echo "$as_me: failed program was:" >&5
18158 sed 's/^/| /' conftest.$ac_ext >&5
18160 ac_cv_have_decl_strerror_s=no
18163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18165 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18166 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18167 if test $ac_cv_have_decl_strerror_s = yes; then
18169 cat >>confdefs.h <<_ACEOF
18170 #define HAVE_DECL_STRERROR_S 1
18175 cat >>confdefs.h <<_ACEOF
18176 #define HAVE_DECL_STRERROR_S 0
18184 if test "$llvm_cv_os_type" = "MingW" ; then
18185 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18186 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18187 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18188 echo $ECHO_N "(cached) $ECHO_C" >&6
18190 ac_check_lib_save_LIBS=$LIBS
18192 cat >conftest.$ac_ext <<_ACEOF
18195 cat confdefs.h >>conftest.$ac_ext
18196 cat >>conftest.$ac_ext <<_ACEOF
18197 /* end confdefs.h. */
18199 /* Override any GCC internal prototype to avoid an error.
18200 Use char because int might match the return type of a GCC
18201 builtin and then its argument prototype would still apply. */
18214 rm -f conftest.$ac_objext conftest$ac_exeext
18215 if { (ac_try="$ac_link"
18216 case "(($ac_try" in
18217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18218 *) ac_try_echo=$ac_try;;
18220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18221 (eval "$ac_link") 2>conftest.er1
18223 grep -v '^ *+' conftest.er1 >conftest.err
18225 cat conftest.err >&5
18226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227 (exit $ac_status); } &&
18228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18229 { (case "(($ac_try" in
18230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18231 *) ac_try_echo=$ac_try;;
18233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18234 (eval "$ac_try") 2>&5
18236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237 (exit $ac_status); }; } &&
18238 { ac_try='test -s conftest$ac_exeext'
18239 { (case "(($ac_try" in
18240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18241 *) ac_try_echo=$ac_try;;
18243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18244 (eval "$ac_try") 2>&5
18246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247 (exit $ac_status); }; }; then
18248 ac_cv_lib_gcc__alloca=yes
18250 echo "$as_me: failed program was:" >&5
18251 sed 's/^/| /' conftest.$ac_ext >&5
18253 ac_cv_lib_gcc__alloca=no
18256 rm -f core conftest.err conftest.$ac_objext \
18257 conftest$ac_exeext conftest.$ac_ext
18258 LIBS=$ac_check_lib_save_LIBS
18260 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18261 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18262 if test $ac_cv_lib_gcc__alloca = yes; then
18264 cat >>confdefs.h <<\_ACEOF
18265 #define HAVE__ALLOCA 1
18270 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18271 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18272 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18273 echo $ECHO_N "(cached) $ECHO_C" >&6
18275 ac_check_lib_save_LIBS=$LIBS
18277 cat >conftest.$ac_ext <<_ACEOF
18280 cat confdefs.h >>conftest.$ac_ext
18281 cat >>conftest.$ac_ext <<_ACEOF
18282 /* end confdefs.h. */
18284 /* Override any GCC internal prototype to avoid an error.
18285 Use char because int might match the return type of a GCC
18286 builtin and then its argument prototype would still apply. */
18294 return __alloca ();
18299 rm -f conftest.$ac_objext conftest$ac_exeext
18300 if { (ac_try="$ac_link"
18301 case "(($ac_try" in
18302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18303 *) ac_try_echo=$ac_try;;
18305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18306 (eval "$ac_link") 2>conftest.er1
18308 grep -v '^ *+' conftest.er1 >conftest.err
18310 cat conftest.err >&5
18311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312 (exit $ac_status); } &&
18313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18314 { (case "(($ac_try" in
18315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18316 *) ac_try_echo=$ac_try;;
18318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18319 (eval "$ac_try") 2>&5
18321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322 (exit $ac_status); }; } &&
18323 { ac_try='test -s conftest$ac_exeext'
18324 { (case "(($ac_try" in
18325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18326 *) ac_try_echo=$ac_try;;
18328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18329 (eval "$ac_try") 2>&5
18331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332 (exit $ac_status); }; }; then
18333 ac_cv_lib_gcc___alloca=yes
18335 echo "$as_me: failed program was:" >&5
18336 sed 's/^/| /' conftest.$ac_ext >&5
18338 ac_cv_lib_gcc___alloca=no
18341 rm -f core conftest.err conftest.$ac_objext \
18342 conftest$ac_exeext conftest.$ac_ext
18343 LIBS=$ac_check_lib_save_LIBS
18345 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18346 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18347 if test $ac_cv_lib_gcc___alloca = yes; then
18349 cat >>confdefs.h <<\_ACEOF
18350 #define HAVE___ALLOCA 1
18355 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18356 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18357 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18358 echo $ECHO_N "(cached) $ECHO_C" >&6
18360 ac_check_lib_save_LIBS=$LIBS
18362 cat >conftest.$ac_ext <<_ACEOF
18365 cat confdefs.h >>conftest.$ac_ext
18366 cat >>conftest.$ac_ext <<_ACEOF
18367 /* end confdefs.h. */
18369 /* Override any GCC internal prototype to avoid an error.
18370 Use char because int might match the return type of a GCC
18371 builtin and then its argument prototype would still apply. */
18379 return __chkstk ();
18384 rm -f conftest.$ac_objext conftest$ac_exeext
18385 if { (ac_try="$ac_link"
18386 case "(($ac_try" in
18387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18388 *) ac_try_echo=$ac_try;;
18390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18391 (eval "$ac_link") 2>conftest.er1
18393 grep -v '^ *+' conftest.er1 >conftest.err
18395 cat conftest.err >&5
18396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); } &&
18398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18399 { (case "(($ac_try" in
18400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18401 *) ac_try_echo=$ac_try;;
18403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18404 (eval "$ac_try") 2>&5
18406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407 (exit $ac_status); }; } &&
18408 { ac_try='test -s conftest$ac_exeext'
18409 { (case "(($ac_try" in
18410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18411 *) ac_try_echo=$ac_try;;
18413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18414 (eval "$ac_try") 2>&5
18416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417 (exit $ac_status); }; }; then
18418 ac_cv_lib_gcc___chkstk=yes
18420 echo "$as_me: failed program was:" >&5
18421 sed 's/^/| /' conftest.$ac_ext >&5
18423 ac_cv_lib_gcc___chkstk=no
18426 rm -f core conftest.err conftest.$ac_objext \
18427 conftest$ac_exeext conftest.$ac_ext
18428 LIBS=$ac_check_lib_save_LIBS
18430 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18431 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18432 if test $ac_cv_lib_gcc___chkstk = yes; then
18434 cat >>confdefs.h <<\_ACEOF
18435 #define HAVE___CHKSTK 1
18440 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18441 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18442 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18443 echo $ECHO_N "(cached) $ECHO_C" >&6
18445 ac_check_lib_save_LIBS=$LIBS
18447 cat >conftest.$ac_ext <<_ACEOF
18450 cat confdefs.h >>conftest.$ac_ext
18451 cat >>conftest.$ac_ext <<_ACEOF
18452 /* end confdefs.h. */
18454 /* Override any GCC internal prototype to avoid an error.
18455 Use char because int might match the return type of a GCC
18456 builtin and then its argument prototype would still apply. */
18464 return ___chkstk ();
18469 rm -f conftest.$ac_objext conftest$ac_exeext
18470 if { (ac_try="$ac_link"
18471 case "(($ac_try" in
18472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18473 *) ac_try_echo=$ac_try;;
18475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18476 (eval "$ac_link") 2>conftest.er1
18478 grep -v '^ *+' conftest.er1 >conftest.err
18480 cat conftest.err >&5
18481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482 (exit $ac_status); } &&
18483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18484 { (case "(($ac_try" in
18485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18486 *) ac_try_echo=$ac_try;;
18488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18489 (eval "$ac_try") 2>&5
18491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18492 (exit $ac_status); }; } &&
18493 { ac_try='test -s conftest$ac_exeext'
18494 { (case "(($ac_try" in
18495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18496 *) ac_try_echo=$ac_try;;
18498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18499 (eval "$ac_try") 2>&5
18501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18502 (exit $ac_status); }; }; then
18503 ac_cv_lib_gcc____chkstk=yes
18505 echo "$as_me: failed program was:" >&5
18506 sed 's/^/| /' conftest.$ac_ext >&5
18508 ac_cv_lib_gcc____chkstk=no
18511 rm -f core conftest.err conftest.$ac_objext \
18512 conftest$ac_exeext conftest.$ac_ext
18513 LIBS=$ac_check_lib_save_LIBS
18515 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18516 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18517 if test $ac_cv_lib_gcc____chkstk = yes; then
18519 cat >>confdefs.h <<\_ACEOF
18520 #define HAVE____CHKSTK 1
18526 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18527 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18528 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18529 echo $ECHO_N "(cached) $ECHO_C" >&6
18531 ac_check_lib_save_LIBS=$LIBS
18533 cat >conftest.$ac_ext <<_ACEOF
18536 cat confdefs.h >>conftest.$ac_ext
18537 cat >>conftest.$ac_ext <<_ACEOF
18538 /* end confdefs.h. */
18540 /* Override any GCC internal prototype to avoid an error.
18541 Use char because int might match the return type of a GCC
18542 builtin and then its argument prototype would still apply. */
18550 return __ashldi3 ();
18555 rm -f conftest.$ac_objext conftest$ac_exeext
18556 if { (ac_try="$ac_link"
18557 case "(($ac_try" in
18558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18559 *) ac_try_echo=$ac_try;;
18561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18562 (eval "$ac_link") 2>conftest.er1
18564 grep -v '^ *+' conftest.er1 >conftest.err
18566 cat conftest.err >&5
18567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568 (exit $ac_status); } &&
18569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18570 { (case "(($ac_try" in
18571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18572 *) ac_try_echo=$ac_try;;
18574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18575 (eval "$ac_try") 2>&5
18577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578 (exit $ac_status); }; } &&
18579 { ac_try='test -s conftest$ac_exeext'
18580 { (case "(($ac_try" in
18581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18582 *) ac_try_echo=$ac_try;;
18584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18585 (eval "$ac_try") 2>&5
18587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588 (exit $ac_status); }; }; then
18589 ac_cv_lib_gcc___ashldi3=yes
18591 echo "$as_me: failed program was:" >&5
18592 sed 's/^/| /' conftest.$ac_ext >&5
18594 ac_cv_lib_gcc___ashldi3=no
18597 rm -f core conftest.err conftest.$ac_objext \
18598 conftest$ac_exeext conftest.$ac_ext
18599 LIBS=$ac_check_lib_save_LIBS
18601 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18602 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18603 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18605 cat >>confdefs.h <<\_ACEOF
18606 #define HAVE___ASHLDI3 1
18611 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18612 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18613 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18614 echo $ECHO_N "(cached) $ECHO_C" >&6
18616 ac_check_lib_save_LIBS=$LIBS
18618 cat >conftest.$ac_ext <<_ACEOF
18621 cat confdefs.h >>conftest.$ac_ext
18622 cat >>conftest.$ac_ext <<_ACEOF
18623 /* end confdefs.h. */
18625 /* Override any GCC internal prototype to avoid an error.
18626 Use char because int might match the return type of a GCC
18627 builtin and then its argument prototype would still apply. */
18635 return __ashrdi3 ();
18640 rm -f conftest.$ac_objext conftest$ac_exeext
18641 if { (ac_try="$ac_link"
18642 case "(($ac_try" in
18643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18644 *) ac_try_echo=$ac_try;;
18646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18647 (eval "$ac_link") 2>conftest.er1
18649 grep -v '^ *+' conftest.er1 >conftest.err
18651 cat conftest.err >&5
18652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653 (exit $ac_status); } &&
18654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18655 { (case "(($ac_try" in
18656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18657 *) ac_try_echo=$ac_try;;
18659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18660 (eval "$ac_try") 2>&5
18662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663 (exit $ac_status); }; } &&
18664 { ac_try='test -s conftest$ac_exeext'
18665 { (case "(($ac_try" in
18666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18667 *) ac_try_echo=$ac_try;;
18669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18670 (eval "$ac_try") 2>&5
18672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18673 (exit $ac_status); }; }; then
18674 ac_cv_lib_gcc___ashrdi3=yes
18676 echo "$as_me: failed program was:" >&5
18677 sed 's/^/| /' conftest.$ac_ext >&5
18679 ac_cv_lib_gcc___ashrdi3=no
18682 rm -f core conftest.err conftest.$ac_objext \
18683 conftest$ac_exeext conftest.$ac_ext
18684 LIBS=$ac_check_lib_save_LIBS
18686 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18687 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18688 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18690 cat >>confdefs.h <<\_ACEOF
18691 #define HAVE___ASHRDI3 1
18696 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18697 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18698 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18699 echo $ECHO_N "(cached) $ECHO_C" >&6
18701 ac_check_lib_save_LIBS=$LIBS
18703 cat >conftest.$ac_ext <<_ACEOF
18706 cat confdefs.h >>conftest.$ac_ext
18707 cat >>conftest.$ac_ext <<_ACEOF
18708 /* end confdefs.h. */
18710 /* Override any GCC internal prototype to avoid an error.
18711 Use char because int might match the return type of a GCC
18712 builtin and then its argument prototype would still apply. */
18720 return __divdi3 ();
18725 rm -f conftest.$ac_objext conftest$ac_exeext
18726 if { (ac_try="$ac_link"
18727 case "(($ac_try" in
18728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18729 *) ac_try_echo=$ac_try;;
18731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18732 (eval "$ac_link") 2>conftest.er1
18734 grep -v '^ *+' conftest.er1 >conftest.err
18736 cat conftest.err >&5
18737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738 (exit $ac_status); } &&
18739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18740 { (case "(($ac_try" in
18741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18742 *) ac_try_echo=$ac_try;;
18744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18745 (eval "$ac_try") 2>&5
18747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748 (exit $ac_status); }; } &&
18749 { ac_try='test -s conftest$ac_exeext'
18750 { (case "(($ac_try" in
18751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18752 *) ac_try_echo=$ac_try;;
18754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18755 (eval "$ac_try") 2>&5
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); }; }; then
18759 ac_cv_lib_gcc___divdi3=yes
18761 echo "$as_me: failed program was:" >&5
18762 sed 's/^/| /' conftest.$ac_ext >&5
18764 ac_cv_lib_gcc___divdi3=no
18767 rm -f core conftest.err conftest.$ac_objext \
18768 conftest$ac_exeext conftest.$ac_ext
18769 LIBS=$ac_check_lib_save_LIBS
18771 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18772 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18773 if test $ac_cv_lib_gcc___divdi3 = yes; then
18775 cat >>confdefs.h <<\_ACEOF
18776 #define HAVE___DIVDI3 1
18781 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18782 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18783 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18784 echo $ECHO_N "(cached) $ECHO_C" >&6
18786 ac_check_lib_save_LIBS=$LIBS
18788 cat >conftest.$ac_ext <<_ACEOF
18791 cat confdefs.h >>conftest.$ac_ext
18792 cat >>conftest.$ac_ext <<_ACEOF
18793 /* end confdefs.h. */
18795 /* Override any GCC internal prototype to avoid an error.
18796 Use char because int might match the return type of a GCC
18797 builtin and then its argument prototype would still apply. */
18805 return __fixdfdi ();
18810 rm -f conftest.$ac_objext conftest$ac_exeext
18811 if { (ac_try="$ac_link"
18812 case "(($ac_try" in
18813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18814 *) ac_try_echo=$ac_try;;
18816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18817 (eval "$ac_link") 2>conftest.er1
18819 grep -v '^ *+' conftest.er1 >conftest.err
18821 cat conftest.err >&5
18822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823 (exit $ac_status); } &&
18824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18825 { (case "(($ac_try" in
18826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18827 *) ac_try_echo=$ac_try;;
18829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18830 (eval "$ac_try") 2>&5
18832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833 (exit $ac_status); }; } &&
18834 { ac_try='test -s conftest$ac_exeext'
18835 { (case "(($ac_try" in
18836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18837 *) ac_try_echo=$ac_try;;
18839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18840 (eval "$ac_try") 2>&5
18842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843 (exit $ac_status); }; }; then
18844 ac_cv_lib_gcc___fixdfdi=yes
18846 echo "$as_me: failed program was:" >&5
18847 sed 's/^/| /' conftest.$ac_ext >&5
18849 ac_cv_lib_gcc___fixdfdi=no
18852 rm -f core conftest.err conftest.$ac_objext \
18853 conftest$ac_exeext conftest.$ac_ext
18854 LIBS=$ac_check_lib_save_LIBS
18856 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18857 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18858 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18860 cat >>confdefs.h <<\_ACEOF
18861 #define HAVE___FIXDFDI 1
18866 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18867 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18868 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18869 echo $ECHO_N "(cached) $ECHO_C" >&6
18871 ac_check_lib_save_LIBS=$LIBS
18873 cat >conftest.$ac_ext <<_ACEOF
18876 cat confdefs.h >>conftest.$ac_ext
18877 cat >>conftest.$ac_ext <<_ACEOF
18878 /* end confdefs.h. */
18880 /* Override any GCC internal prototype to avoid an error.
18881 Use char because int might match the return type of a GCC
18882 builtin and then its argument prototype would still apply. */
18890 return __fixsfdi ();
18895 rm -f conftest.$ac_objext conftest$ac_exeext
18896 if { (ac_try="$ac_link"
18897 case "(($ac_try" in
18898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18899 *) ac_try_echo=$ac_try;;
18901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18902 (eval "$ac_link") 2>conftest.er1
18904 grep -v '^ *+' conftest.er1 >conftest.err
18906 cat conftest.err >&5
18907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908 (exit $ac_status); } &&
18909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18910 { (case "(($ac_try" in
18911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18912 *) ac_try_echo=$ac_try;;
18914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18915 (eval "$ac_try") 2>&5
18917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918 (exit $ac_status); }; } &&
18919 { ac_try='test -s conftest$ac_exeext'
18920 { (case "(($ac_try" in
18921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18922 *) ac_try_echo=$ac_try;;
18924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18925 (eval "$ac_try") 2>&5
18927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928 (exit $ac_status); }; }; then
18929 ac_cv_lib_gcc___fixsfdi=yes
18931 echo "$as_me: failed program was:" >&5
18932 sed 's/^/| /' conftest.$ac_ext >&5
18934 ac_cv_lib_gcc___fixsfdi=no
18937 rm -f core conftest.err conftest.$ac_objext \
18938 conftest$ac_exeext conftest.$ac_ext
18939 LIBS=$ac_check_lib_save_LIBS
18941 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18942 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18943 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18945 cat >>confdefs.h <<\_ACEOF
18946 #define HAVE___FIXSFDI 1
18951 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18952 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18953 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18954 echo $ECHO_N "(cached) $ECHO_C" >&6
18956 ac_check_lib_save_LIBS=$LIBS
18958 cat >conftest.$ac_ext <<_ACEOF
18961 cat confdefs.h >>conftest.$ac_ext
18962 cat >>conftest.$ac_ext <<_ACEOF
18963 /* end confdefs.h. */
18965 /* Override any GCC internal prototype to avoid an error.
18966 Use char because int might match the return type of a GCC
18967 builtin and then its argument prototype would still apply. */
18971 char __floatdidf ();
18975 return __floatdidf ();
18980 rm -f conftest.$ac_objext conftest$ac_exeext
18981 if { (ac_try="$ac_link"
18982 case "(($ac_try" in
18983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18984 *) ac_try_echo=$ac_try;;
18986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18987 (eval "$ac_link") 2>conftest.er1
18989 grep -v '^ *+' conftest.er1 >conftest.err
18991 cat conftest.err >&5
18992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993 (exit $ac_status); } &&
18994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18995 { (case "(($ac_try" in
18996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18997 *) ac_try_echo=$ac_try;;
18999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19000 (eval "$ac_try") 2>&5
19002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003 (exit $ac_status); }; } &&
19004 { ac_try='test -s conftest$ac_exeext'
19005 { (case "(($ac_try" in
19006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19007 *) ac_try_echo=$ac_try;;
19009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19010 (eval "$ac_try") 2>&5
19012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013 (exit $ac_status); }; }; then
19014 ac_cv_lib_gcc___floatdidf=yes
19016 echo "$as_me: failed program was:" >&5
19017 sed 's/^/| /' conftest.$ac_ext >&5
19019 ac_cv_lib_gcc___floatdidf=no
19022 rm -f core conftest.err conftest.$ac_objext \
19023 conftest$ac_exeext conftest.$ac_ext
19024 LIBS=$ac_check_lib_save_LIBS
19026 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19027 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19028 if test $ac_cv_lib_gcc___floatdidf = yes; then
19030 cat >>confdefs.h <<\_ACEOF
19031 #define HAVE___FLOATDIDF 1
19036 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19037 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19038 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19039 echo $ECHO_N "(cached) $ECHO_C" >&6
19041 ac_check_lib_save_LIBS=$LIBS
19043 cat >conftest.$ac_ext <<_ACEOF
19046 cat confdefs.h >>conftest.$ac_ext
19047 cat >>conftest.$ac_ext <<_ACEOF
19048 /* end confdefs.h. */
19050 /* Override any GCC internal prototype to avoid an error.
19051 Use char because int might match the return type of a GCC
19052 builtin and then its argument prototype would still apply. */
19060 return __lshrdi3 ();
19065 rm -f conftest.$ac_objext conftest$ac_exeext
19066 if { (ac_try="$ac_link"
19067 case "(($ac_try" in
19068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19069 *) ac_try_echo=$ac_try;;
19071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19072 (eval "$ac_link") 2>conftest.er1
19074 grep -v '^ *+' conftest.er1 >conftest.err
19076 cat conftest.err >&5
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); } &&
19079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19080 { (case "(($ac_try" in
19081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19082 *) ac_try_echo=$ac_try;;
19084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19085 (eval "$ac_try") 2>&5
19087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088 (exit $ac_status); }; } &&
19089 { ac_try='test -s conftest$ac_exeext'
19090 { (case "(($ac_try" in
19091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19092 *) ac_try_echo=$ac_try;;
19094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19095 (eval "$ac_try") 2>&5
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); }; }; then
19099 ac_cv_lib_gcc___lshrdi3=yes
19101 echo "$as_me: failed program was:" >&5
19102 sed 's/^/| /' conftest.$ac_ext >&5
19104 ac_cv_lib_gcc___lshrdi3=no
19107 rm -f core conftest.err conftest.$ac_objext \
19108 conftest$ac_exeext conftest.$ac_ext
19109 LIBS=$ac_check_lib_save_LIBS
19111 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19112 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19113 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19115 cat >>confdefs.h <<\_ACEOF
19116 #define HAVE___LSHRDI3 1
19121 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19122 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19123 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19124 echo $ECHO_N "(cached) $ECHO_C" >&6
19126 ac_check_lib_save_LIBS=$LIBS
19128 cat >conftest.$ac_ext <<_ACEOF
19131 cat confdefs.h >>conftest.$ac_ext
19132 cat >>conftest.$ac_ext <<_ACEOF
19133 /* end confdefs.h. */
19135 /* Override any GCC internal prototype to avoid an error.
19136 Use char because int might match the return type of a GCC
19137 builtin and then its argument prototype would still apply. */
19145 return __moddi3 ();
19150 rm -f conftest.$ac_objext conftest$ac_exeext
19151 if { (ac_try="$ac_link"
19152 case "(($ac_try" in
19153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19154 *) ac_try_echo=$ac_try;;
19156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19157 (eval "$ac_link") 2>conftest.er1
19159 grep -v '^ *+' conftest.er1 >conftest.err
19161 cat conftest.err >&5
19162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163 (exit $ac_status); } &&
19164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19165 { (case "(($ac_try" in
19166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19167 *) ac_try_echo=$ac_try;;
19169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19170 (eval "$ac_try") 2>&5
19172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173 (exit $ac_status); }; } &&
19174 { ac_try='test -s conftest$ac_exeext'
19175 { (case "(($ac_try" in
19176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19177 *) ac_try_echo=$ac_try;;
19179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19180 (eval "$ac_try") 2>&5
19182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183 (exit $ac_status); }; }; then
19184 ac_cv_lib_gcc___moddi3=yes
19186 echo "$as_me: failed program was:" >&5
19187 sed 's/^/| /' conftest.$ac_ext >&5
19189 ac_cv_lib_gcc___moddi3=no
19192 rm -f core conftest.err conftest.$ac_objext \
19193 conftest$ac_exeext conftest.$ac_ext
19194 LIBS=$ac_check_lib_save_LIBS
19196 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19197 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19198 if test $ac_cv_lib_gcc___moddi3 = yes; then
19200 cat >>confdefs.h <<\_ACEOF
19201 #define HAVE___MODDI3 1
19206 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19207 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19208 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19209 echo $ECHO_N "(cached) $ECHO_C" >&6
19211 ac_check_lib_save_LIBS=$LIBS
19213 cat >conftest.$ac_ext <<_ACEOF
19216 cat confdefs.h >>conftest.$ac_ext
19217 cat >>conftest.$ac_ext <<_ACEOF
19218 /* end confdefs.h. */
19220 /* Override any GCC internal prototype to avoid an error.
19221 Use char because int might match the return type of a GCC
19222 builtin and then its argument prototype would still apply. */
19230 return __udivdi3 ();
19235 rm -f conftest.$ac_objext conftest$ac_exeext
19236 if { (ac_try="$ac_link"
19237 case "(($ac_try" in
19238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19239 *) ac_try_echo=$ac_try;;
19241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19242 (eval "$ac_link") 2>conftest.er1
19244 grep -v '^ *+' conftest.er1 >conftest.err
19246 cat conftest.err >&5
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); } &&
19249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19250 { (case "(($ac_try" in
19251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19252 *) ac_try_echo=$ac_try;;
19254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19255 (eval "$ac_try") 2>&5
19257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258 (exit $ac_status); }; } &&
19259 { ac_try='test -s conftest$ac_exeext'
19260 { (case "(($ac_try" in
19261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19262 *) ac_try_echo=$ac_try;;
19264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19265 (eval "$ac_try") 2>&5
19267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 (exit $ac_status); }; }; then
19269 ac_cv_lib_gcc___udivdi3=yes
19271 echo "$as_me: failed program was:" >&5
19272 sed 's/^/| /' conftest.$ac_ext >&5
19274 ac_cv_lib_gcc___udivdi3=no
19277 rm -f core conftest.err conftest.$ac_objext \
19278 conftest$ac_exeext conftest.$ac_ext
19279 LIBS=$ac_check_lib_save_LIBS
19281 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19282 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19283 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19285 cat >>confdefs.h <<\_ACEOF
19286 #define HAVE___UDIVDI3 1
19291 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19292 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19293 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19294 echo $ECHO_N "(cached) $ECHO_C" >&6
19296 ac_check_lib_save_LIBS=$LIBS
19298 cat >conftest.$ac_ext <<_ACEOF
19301 cat confdefs.h >>conftest.$ac_ext
19302 cat >>conftest.$ac_ext <<_ACEOF
19303 /* end confdefs.h. */
19305 /* Override any GCC internal prototype to avoid an error.
19306 Use char because int might match the return type of a GCC
19307 builtin and then its argument prototype would still apply. */
19315 return __umoddi3 ();
19320 rm -f conftest.$ac_objext conftest$ac_exeext
19321 if { (ac_try="$ac_link"
19322 case "(($ac_try" in
19323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19324 *) ac_try_echo=$ac_try;;
19326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19327 (eval "$ac_link") 2>conftest.er1
19329 grep -v '^ *+' conftest.er1 >conftest.err
19331 cat conftest.err >&5
19332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333 (exit $ac_status); } &&
19334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19335 { (case "(($ac_try" in
19336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19337 *) ac_try_echo=$ac_try;;
19339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19340 (eval "$ac_try") 2>&5
19342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343 (exit $ac_status); }; } &&
19344 { ac_try='test -s conftest$ac_exeext'
19345 { (case "(($ac_try" in
19346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19347 *) ac_try_echo=$ac_try;;
19349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19350 (eval "$ac_try") 2>&5
19352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353 (exit $ac_status); }; }; then
19354 ac_cv_lib_gcc___umoddi3=yes
19356 echo "$as_me: failed program was:" >&5
19357 sed 's/^/| /' conftest.$ac_ext >&5
19359 ac_cv_lib_gcc___umoddi3=no
19362 rm -f core conftest.err conftest.$ac_objext \
19363 conftest$ac_exeext conftest.$ac_ext
19364 LIBS=$ac_check_lib_save_LIBS
19366 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19367 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19368 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19370 cat >>confdefs.h <<\_ACEOF
19371 #define HAVE___UMODDI3 1
19377 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19378 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19379 if test "${ac_cv_lib_gcc___main+set}" = set; then
19380 echo $ECHO_N "(cached) $ECHO_C" >&6
19382 ac_check_lib_save_LIBS=$LIBS
19384 cat >conftest.$ac_ext <<_ACEOF
19387 cat confdefs.h >>conftest.$ac_ext
19388 cat >>conftest.$ac_ext <<_ACEOF
19389 /* end confdefs.h. */
19391 /* Override any GCC internal prototype to avoid an error.
19392 Use char because int might match the return type of a GCC
19393 builtin and then its argument prototype would still apply. */
19406 rm -f conftest.$ac_objext conftest$ac_exeext
19407 if { (ac_try="$ac_link"
19408 case "(($ac_try" in
19409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19410 *) ac_try_echo=$ac_try;;
19412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19413 (eval "$ac_link") 2>conftest.er1
19415 grep -v '^ *+' conftest.er1 >conftest.err
19417 cat conftest.err >&5
19418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419 (exit $ac_status); } &&
19420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19421 { (case "(($ac_try" in
19422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19423 *) ac_try_echo=$ac_try;;
19425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19426 (eval "$ac_try") 2>&5
19428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429 (exit $ac_status); }; } &&
19430 { ac_try='test -s conftest$ac_exeext'
19431 { (case "(($ac_try" in
19432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19433 *) ac_try_echo=$ac_try;;
19435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19436 (eval "$ac_try") 2>&5
19438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439 (exit $ac_status); }; }; then
19440 ac_cv_lib_gcc___main=yes
19442 echo "$as_me: failed program was:" >&5
19443 sed 's/^/| /' conftest.$ac_ext >&5
19445 ac_cv_lib_gcc___main=no
19448 rm -f core conftest.err conftest.$ac_objext \
19449 conftest$ac_exeext conftest.$ac_ext
19450 LIBS=$ac_check_lib_save_LIBS
19452 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19453 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19454 if test $ac_cv_lib_gcc___main = yes; then
19456 cat >>confdefs.h <<\_ACEOF
19457 #define HAVE___MAIN 1
19462 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19463 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19464 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19465 echo $ECHO_N "(cached) $ECHO_C" >&6
19467 ac_check_lib_save_LIBS=$LIBS
19469 cat >conftest.$ac_ext <<_ACEOF
19472 cat confdefs.h >>conftest.$ac_ext
19473 cat >>conftest.$ac_ext <<_ACEOF
19474 /* end confdefs.h. */
19476 /* Override any GCC internal prototype to avoid an error.
19477 Use char because int might match the return type of a GCC
19478 builtin and then its argument prototype would still apply. */
19486 return __cmpdi2 ();
19491 rm -f conftest.$ac_objext conftest$ac_exeext
19492 if { (ac_try="$ac_link"
19493 case "(($ac_try" in
19494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19495 *) ac_try_echo=$ac_try;;
19497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19498 (eval "$ac_link") 2>conftest.er1
19500 grep -v '^ *+' conftest.er1 >conftest.err
19502 cat conftest.err >&5
19503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504 (exit $ac_status); } &&
19505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19506 { (case "(($ac_try" in
19507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19508 *) ac_try_echo=$ac_try;;
19510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19511 (eval "$ac_try") 2>&5
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); }; } &&
19515 { ac_try='test -s conftest$ac_exeext'
19516 { (case "(($ac_try" in
19517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19518 *) ac_try_echo=$ac_try;;
19520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19521 (eval "$ac_try") 2>&5
19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); }; }; then
19525 ac_cv_lib_gcc___cmpdi2=yes
19527 echo "$as_me: failed program was:" >&5
19528 sed 's/^/| /' conftest.$ac_ext >&5
19530 ac_cv_lib_gcc___cmpdi2=no
19533 rm -f core conftest.err conftest.$ac_objext \
19534 conftest$ac_exeext conftest.$ac_ext
19535 LIBS=$ac_check_lib_save_LIBS
19537 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19538 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19539 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19541 cat >>confdefs.h <<\_ACEOF
19542 #define HAVE___CMPDI2 1
19549 if test "$llvm_cv_os_type" = "MingW" ; then
19550 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19551 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19552 cat >conftest.$ac_ext <<_ACEOF
19553 #include <windows.h>
19554 #include <imagehlp.h>
19555 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19556 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19558 rm -f conftest.$ac_objext
19559 if { (ac_try="$ac_compile"
19560 case "(($ac_try" in
19561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19562 *) ac_try_echo=$ac_try;;
19564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19565 (eval "$ac_compile") 2>conftest.er1
19567 grep -v '^ *+' conftest.er1 >conftest.err
19569 cat conftest.err >&5
19570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571 (exit $ac_status); } &&
19572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19573 { (case "(($ac_try" in
19574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19575 *) ac_try_echo=$ac_try;;
19577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19578 (eval "$ac_try") 2>&5
19580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581 (exit $ac_status); }; } &&
19582 { ac_try='test -s conftest.$ac_objext'
19583 { (case "(($ac_try" in
19584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19585 *) ac_try_echo=$ac_try;;
19587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19588 (eval "$ac_try") 2>&5
19590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591 (exit $ac_status); }; }; then
19593 { echo "$as_me:$LINENO: result: yes" >&5
19594 echo "${ECHO_T}yes" >&6; }
19595 llvm_cv_win32_elmcb_pcstr="PCSTR"
19598 echo "$as_me: failed program was:" >&5
19599 sed 's/^/| /' conftest.$ac_ext >&5
19602 { echo "$as_me:$LINENO: result: no" >&5
19603 echo "${ECHO_T}no" >&6; }
19604 llvm_cv_win32_elmcb_pcstr="PSTR"
19608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19610 cat >>confdefs.h <<_ACEOF
19611 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19617 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19618 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19619 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19620 echo $ECHO_N "(cached) $ECHO_C" >&6
19623 ac_cpp='$CXXCPP $CPPFLAGS'
19624 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19625 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19626 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19628 cat >conftest.$ac_ext <<_ACEOF
19631 cat confdefs.h >>conftest.$ac_ext
19632 cat >>conftest.$ac_ext <<_ACEOF
19633 /* end confdefs.h. */
19643 rm -f conftest.$ac_objext
19644 if { (ac_try="$ac_compile"
19645 case "(($ac_try" in
19646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19647 *) ac_try_echo=$ac_try;;
19649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19650 (eval "$ac_compile") 2>conftest.er1
19652 grep -v '^ *+' conftest.er1 >conftest.err
19654 cat conftest.err >&5
19655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656 (exit $ac_status); } &&
19657 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19658 { (case "(($ac_try" in
19659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19660 *) ac_try_echo=$ac_try;;
19662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19663 (eval "$ac_try") 2>&5
19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); }; } &&
19667 { ac_try='test -s conftest.$ac_objext'
19668 { (case "(($ac_try" in
19669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19670 *) ac_try_echo=$ac_try;;
19672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19673 (eval "$ac_try") 2>&5
19675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676 (exit $ac_status); }; }; then
19677 ac_cv_func_isnan_in_math_h=yes
19679 echo "$as_me: failed program was:" >&5
19680 sed 's/^/| /' conftest.$ac_ext >&5
19682 ac_cv_func_isnan_in_math_h=no
19685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19687 ac_cpp='$CPP $CPPFLAGS'
19688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19693 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19694 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19697 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19699 cat >>confdefs.h <<\_ACEOF
19700 #define HAVE_ISNAN_IN_MATH_H 1
19705 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19706 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19707 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19708 echo $ECHO_N "(cached) $ECHO_C" >&6
19711 ac_cpp='$CXXCPP $CPPFLAGS'
19712 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19713 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19714 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19716 cat >conftest.$ac_ext <<_ACEOF
19719 cat confdefs.h >>conftest.$ac_ext
19720 cat >>conftest.$ac_ext <<_ACEOF
19721 /* end confdefs.h. */
19731 rm -f conftest.$ac_objext
19732 if { (ac_try="$ac_compile"
19733 case "(($ac_try" in
19734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19735 *) ac_try_echo=$ac_try;;
19737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19738 (eval "$ac_compile") 2>conftest.er1
19740 grep -v '^ *+' conftest.er1 >conftest.err
19742 cat conftest.err >&5
19743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744 (exit $ac_status); } &&
19745 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19746 { (case "(($ac_try" in
19747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19748 *) ac_try_echo=$ac_try;;
19750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19751 (eval "$ac_try") 2>&5
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); }; } &&
19755 { ac_try='test -s conftest.$ac_objext'
19756 { (case "(($ac_try" in
19757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19758 *) ac_try_echo=$ac_try;;
19760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19761 (eval "$ac_try") 2>&5
19763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764 (exit $ac_status); }; }; then
19765 ac_cv_func_isnan_in_cmath=yes
19767 echo "$as_me: failed program was:" >&5
19768 sed 's/^/| /' conftest.$ac_ext >&5
19770 ac_cv_func_isnan_in_cmath=no
19773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19775 ac_cpp='$CPP $CPPFLAGS'
19776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19781 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19782 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19784 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19786 cat >>confdefs.h <<\_ACEOF
19787 #define HAVE_ISNAN_IN_CMATH 1
19792 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19793 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19794 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19795 echo $ECHO_N "(cached) $ECHO_C" >&6
19798 ac_cpp='$CXXCPP $CPPFLAGS'
19799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19803 cat >conftest.$ac_ext <<_ACEOF
19806 cat confdefs.h >>conftest.$ac_ext
19807 cat >>conftest.$ac_ext <<_ACEOF
19808 /* end confdefs.h. */
19813 float f; std::isnan(f);
19818 rm -f conftest.$ac_objext
19819 if { (ac_try="$ac_compile"
19820 case "(($ac_try" in
19821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19822 *) ac_try_echo=$ac_try;;
19824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19825 (eval "$ac_compile") 2>conftest.er1
19827 grep -v '^ *+' conftest.er1 >conftest.err
19829 cat conftest.err >&5
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); } &&
19832 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19833 { (case "(($ac_try" in
19834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19835 *) ac_try_echo=$ac_try;;
19837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19838 (eval "$ac_try") 2>&5
19840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841 (exit $ac_status); }; } &&
19842 { ac_try='test -s conftest.$ac_objext'
19843 { (case "(($ac_try" in
19844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19845 *) ac_try_echo=$ac_try;;
19847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19848 (eval "$ac_try") 2>&5
19850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851 (exit $ac_status); }; }; then
19852 ac_cv_func_std_isnan_in_cmath=yes
19854 echo "$as_me: failed program was:" >&5
19855 sed 's/^/| /' conftest.$ac_ext >&5
19857 ac_cv_func_std_isnan_in_cmath=no
19860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19862 ac_cpp='$CPP $CPPFLAGS'
19863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19868 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19869 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19871 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19873 cat >>confdefs.h <<\_ACEOF
19874 #define HAVE_STD_ISNAN_IN_CMATH 1
19880 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19881 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19882 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19883 echo $ECHO_N "(cached) $ECHO_C" >&6
19886 ac_cpp='$CXXCPP $CPPFLAGS'
19887 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19888 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19889 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19891 cat >conftest.$ac_ext <<_ACEOF
19894 cat confdefs.h >>conftest.$ac_ext
19895 cat >>conftest.$ac_ext <<_ACEOF
19896 /* end confdefs.h. */
19906 rm -f conftest.$ac_objext
19907 if { (ac_try="$ac_compile"
19908 case "(($ac_try" in
19909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19910 *) ac_try_echo=$ac_try;;
19912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19913 (eval "$ac_compile") 2>conftest.er1
19915 grep -v '^ *+' conftest.er1 >conftest.err
19917 cat conftest.err >&5
19918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919 (exit $ac_status); } &&
19920 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19921 { (case "(($ac_try" in
19922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19923 *) ac_try_echo=$ac_try;;
19925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19926 (eval "$ac_try") 2>&5
19928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); }; } &&
19930 { ac_try='test -s conftest.$ac_objext'
19931 { (case "(($ac_try" in
19932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19933 *) ac_try_echo=$ac_try;;
19935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19936 (eval "$ac_try") 2>&5
19938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939 (exit $ac_status); }; }; then
19940 ac_cv_func_isinf_in_math_h=yes
19942 echo "$as_me: failed program was:" >&5
19943 sed 's/^/| /' conftest.$ac_ext >&5
19945 ac_cv_func_isinf_in_math_h=no
19948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19950 ac_cpp='$CPP $CPPFLAGS'
19951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19956 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19957 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19959 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19961 cat >>confdefs.h <<\_ACEOF
19962 #define HAVE_ISINF_IN_MATH_H 1
19967 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19968 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19969 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19970 echo $ECHO_N "(cached) $ECHO_C" >&6
19973 ac_cpp='$CXXCPP $CPPFLAGS'
19974 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19975 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19978 cat >conftest.$ac_ext <<_ACEOF
19981 cat confdefs.h >>conftest.$ac_ext
19982 cat >>conftest.$ac_ext <<_ACEOF
19983 /* end confdefs.h. */
19993 rm -f conftest.$ac_objext
19994 if { (ac_try="$ac_compile"
19995 case "(($ac_try" in
19996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19997 *) ac_try_echo=$ac_try;;
19999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20000 (eval "$ac_compile") 2>conftest.er1
20002 grep -v '^ *+' conftest.er1 >conftest.err
20004 cat conftest.err >&5
20005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); } &&
20007 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20008 { (case "(($ac_try" in
20009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20010 *) ac_try_echo=$ac_try;;
20012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20013 (eval "$ac_try") 2>&5
20015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016 (exit $ac_status); }; } &&
20017 { ac_try='test -s conftest.$ac_objext'
20018 { (case "(($ac_try" in
20019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20020 *) ac_try_echo=$ac_try;;
20022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20023 (eval "$ac_try") 2>&5
20025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026 (exit $ac_status); }; }; then
20027 ac_cv_func_isinf_in_cmath=yes
20029 echo "$as_me: failed program was:" >&5
20030 sed 's/^/| /' conftest.$ac_ext >&5
20032 ac_cv_func_isinf_in_cmath=no
20035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20037 ac_cpp='$CPP $CPPFLAGS'
20038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20043 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20044 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20046 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20048 cat >>confdefs.h <<\_ACEOF
20049 #define HAVE_ISINF_IN_CMATH 1
20054 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20055 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20056 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20057 echo $ECHO_N "(cached) $ECHO_C" >&6
20060 ac_cpp='$CXXCPP $CPPFLAGS'
20061 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20062 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20063 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20065 cat >conftest.$ac_ext <<_ACEOF
20068 cat confdefs.h >>conftest.$ac_ext
20069 cat >>conftest.$ac_ext <<_ACEOF
20070 /* end confdefs.h. */
20075 float f; std::isinf(f);
20080 rm -f conftest.$ac_objext
20081 if { (ac_try="$ac_compile"
20082 case "(($ac_try" in
20083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20084 *) ac_try_echo=$ac_try;;
20086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20087 (eval "$ac_compile") 2>conftest.er1
20089 grep -v '^ *+' conftest.er1 >conftest.err
20091 cat conftest.err >&5
20092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093 (exit $ac_status); } &&
20094 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20095 { (case "(($ac_try" in
20096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20097 *) ac_try_echo=$ac_try;;
20099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20100 (eval "$ac_try") 2>&5
20102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103 (exit $ac_status); }; } &&
20104 { ac_try='test -s conftest.$ac_objext'
20105 { (case "(($ac_try" in
20106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20107 *) ac_try_echo=$ac_try;;
20109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20110 (eval "$ac_try") 2>&5
20112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20113 (exit $ac_status); }; }; then
20114 ac_cv_func_std_isinf_in_cmath=yes
20116 echo "$as_me: failed program was:" >&5
20117 sed 's/^/| /' conftest.$ac_ext >&5
20119 ac_cv_func_std_isinf_in_cmath=no
20122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20124 ac_cpp='$CPP $CPPFLAGS'
20125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20130 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20131 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20133 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20135 cat >>confdefs.h <<\_ACEOF
20136 #define HAVE_STD_ISINF_IN_CMATH 1
20141 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20142 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20143 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20144 echo $ECHO_N "(cached) $ECHO_C" >&6
20147 ac_cpp='$CXXCPP $CPPFLAGS'
20148 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20149 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20150 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20152 cat >conftest.$ac_ext <<_ACEOF
20155 cat confdefs.h >>conftest.$ac_ext
20156 cat >>conftest.$ac_ext <<_ACEOF
20157 /* end confdefs.h. */
20158 #include <ieeefp.h>
20162 float f; finite(f);
20167 rm -f conftest.$ac_objext
20168 if { (ac_try="$ac_compile"
20169 case "(($ac_try" in
20170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20171 *) ac_try_echo=$ac_try;;
20173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20174 (eval "$ac_compile") 2>conftest.er1
20176 grep -v '^ *+' conftest.er1 >conftest.err
20178 cat conftest.err >&5
20179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180 (exit $ac_status); } &&
20181 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20182 { (case "(($ac_try" in
20183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20184 *) ac_try_echo=$ac_try;;
20186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20187 (eval "$ac_try") 2>&5
20189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190 (exit $ac_status); }; } &&
20191 { ac_try='test -s conftest.$ac_objext'
20192 { (case "(($ac_try" in
20193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20194 *) ac_try_echo=$ac_try;;
20196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20197 (eval "$ac_try") 2>&5
20199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200 (exit $ac_status); }; }; then
20201 ac_cv_func_finite_in_ieeefp_h=yes
20203 echo "$as_me: failed program was:" >&5
20204 sed 's/^/| /' conftest.$ac_ext >&5
20206 ac_cv_func_finite_in_ieeefp_h=no
20209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20211 ac_cpp='$CPP $CPPFLAGS'
20212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20217 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20218 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20220 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20222 cat >>confdefs.h <<\_ACEOF
20223 #define HAVE_FINITE_IN_IEEEFP_H 1
20230 if test "$llvm_cv_platform_type" = "Unix" ; then
20233 for ac_header in stdlib.h unistd.h
20235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20237 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20240 echo $ECHO_N "(cached) $ECHO_C" >&6
20242 ac_res=`eval echo '${'$as_ac_Header'}'`
20243 { echo "$as_me:$LINENO: result: $ac_res" >&5
20244 echo "${ECHO_T}$ac_res" >&6; }
20246 # Is the header compilable?
20247 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20248 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20249 cat >conftest.$ac_ext <<_ACEOF
20252 cat confdefs.h >>conftest.$ac_ext
20253 cat >>conftest.$ac_ext <<_ACEOF
20254 /* end confdefs.h. */
20255 $ac_includes_default
20256 #include <$ac_header>
20258 rm -f conftest.$ac_objext
20259 if { (ac_try="$ac_compile"
20260 case "(($ac_try" in
20261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20262 *) ac_try_echo=$ac_try;;
20264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20265 (eval "$ac_compile") 2>conftest.er1
20267 grep -v '^ *+' conftest.er1 >conftest.err
20269 cat conftest.err >&5
20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271 (exit $ac_status); } &&
20272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20273 { (case "(($ac_try" in
20274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20275 *) ac_try_echo=$ac_try;;
20277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20278 (eval "$ac_try") 2>&5
20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 (exit $ac_status); }; } &&
20282 { ac_try='test -s conftest.$ac_objext'
20283 { (case "(($ac_try" in
20284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20285 *) ac_try_echo=$ac_try;;
20287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20288 (eval "$ac_try") 2>&5
20290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291 (exit $ac_status); }; }; then
20292 ac_header_compiler=yes
20294 echo "$as_me: failed program was:" >&5
20295 sed 's/^/| /' conftest.$ac_ext >&5
20297 ac_header_compiler=no
20300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20301 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20302 echo "${ECHO_T}$ac_header_compiler" >&6; }
20304 # Is the header present?
20305 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20306 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20307 cat >conftest.$ac_ext <<_ACEOF
20310 cat confdefs.h >>conftest.$ac_ext
20311 cat >>conftest.$ac_ext <<_ACEOF
20312 /* end confdefs.h. */
20313 #include <$ac_header>
20315 if { (ac_try="$ac_cpp conftest.$ac_ext"
20316 case "(($ac_try" in
20317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20318 *) ac_try_echo=$ac_try;;
20320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20321 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20323 grep -v '^ *+' conftest.er1 >conftest.err
20325 cat conftest.err >&5
20326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327 (exit $ac_status); } >/dev/null; then
20328 if test -s conftest.err; then
20329 ac_cpp_err=$ac_c_preproc_warn_flag
20330 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20337 if test -z "$ac_cpp_err"; then
20338 ac_header_preproc=yes
20340 echo "$as_me: failed program was:" >&5
20341 sed 's/^/| /' conftest.$ac_ext >&5
20343 ac_header_preproc=no
20346 rm -f conftest.err conftest.$ac_ext
20347 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20348 echo "${ECHO_T}$ac_header_preproc" >&6; }
20350 # So? What about this header?
20351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20353 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20354 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20356 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20357 ac_header_preproc=yes
20360 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20361 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20362 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20363 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20364 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20365 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20366 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20367 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20369 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20370 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20371 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20373 ## ------------------------------------ ##
20374 ## Report this to http://llvm.org/bugs/ ##
20375 ## ------------------------------------ ##
20377 ) | sed "s/^/$as_me: WARNING: /" >&2
20380 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20383 echo $ECHO_N "(cached) $ECHO_C" >&6
20385 eval "$as_ac_Header=\$ac_header_preproc"
20387 ac_res=`eval echo '${'$as_ac_Header'}'`
20388 { echo "$as_me:$LINENO: result: $ac_res" >&5
20389 echo "${ECHO_T}$ac_res" >&6; }
20392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20393 cat >>confdefs.h <<_ACEOF
20394 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20402 for ac_func in getpagesize
20404 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20405 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20407 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20408 echo $ECHO_N "(cached) $ECHO_C" >&6
20410 cat >conftest.$ac_ext <<_ACEOF
20413 cat confdefs.h >>conftest.$ac_ext
20414 cat >>conftest.$ac_ext <<_ACEOF
20415 /* end confdefs.h. */
20416 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20418 #define $ac_func innocuous_$ac_func
20420 /* System header to define __stub macros and hopefully few prototypes,
20421 which can conflict with char $ac_func (); below.
20422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20423 <limits.h> exists even on freestanding compilers. */
20426 # include <limits.h>
20428 # include <assert.h>
20433 /* Override any GCC internal prototype to avoid an error.
20434 Use char because int might match the return type of a GCC
20435 builtin and then its argument prototype would still apply. */
20440 /* The GNU C library defines this for functions which it implements
20441 to always fail with ENOSYS. Some functions are actually named
20442 something starting with __ and the normal name is an alias. */
20443 #if defined __stub_$ac_func || defined __stub___$ac_func
20450 return $ac_func ();
20455 rm -f conftest.$ac_objext conftest$ac_exeext
20456 if { (ac_try="$ac_link"
20457 case "(($ac_try" in
20458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20459 *) ac_try_echo=$ac_try;;
20461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20462 (eval "$ac_link") 2>conftest.er1
20464 grep -v '^ *+' conftest.er1 >conftest.err
20466 cat conftest.err >&5
20467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468 (exit $ac_status); } &&
20469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20470 { (case "(($ac_try" in
20471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20472 *) ac_try_echo=$ac_try;;
20474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20475 (eval "$ac_try") 2>&5
20477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478 (exit $ac_status); }; } &&
20479 { ac_try='test -s conftest$ac_exeext'
20480 { (case "(($ac_try" in
20481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20482 *) ac_try_echo=$ac_try;;
20484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20485 (eval "$ac_try") 2>&5
20487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488 (exit $ac_status); }; }; then
20489 eval "$as_ac_var=yes"
20491 echo "$as_me: failed program was:" >&5
20492 sed 's/^/| /' conftest.$ac_ext >&5
20494 eval "$as_ac_var=no"
20497 rm -f core conftest.err conftest.$ac_objext \
20498 conftest$ac_exeext conftest.$ac_ext
20500 ac_res=`eval echo '${'$as_ac_var'}'`
20501 { echo "$as_me:$LINENO: result: $ac_res" >&5
20502 echo "${ECHO_T}$ac_res" >&6; }
20503 if test `eval echo '${'$as_ac_var'}'` = yes; then
20504 cat >>confdefs.h <<_ACEOF
20505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20511 { echo "$as_me:$LINENO: checking for working mmap" >&5
20512 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20513 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20514 echo $ECHO_N "(cached) $ECHO_C" >&6
20516 if test "$cross_compiling" = yes; then
20517 ac_cv_func_mmap_fixed_mapped=no
20519 cat >conftest.$ac_ext <<_ACEOF
20522 cat confdefs.h >>conftest.$ac_ext
20523 cat >>conftest.$ac_ext <<_ACEOF
20524 /* end confdefs.h. */
20525 $ac_includes_default
20526 /* malloc might have been renamed as rpl_malloc. */
20529 /* Thanks to Mike Haertel and Jim Avera for this test.
20530 Here is a matrix of mmap possibilities:
20531 mmap private not fixed
20532 mmap private fixed at somewhere currently unmapped
20533 mmap private fixed at somewhere already mapped
20534 mmap shared not fixed
20535 mmap shared fixed at somewhere currently unmapped
20536 mmap shared fixed at somewhere already mapped
20537 For private mappings, we should verify that changes cannot be read()
20538 back from the file, nor mmap's back from the file at a different
20539 address. (There have been systems where private was not correctly
20540 implemented like the infamous i386 svr4.0, and systems where the
20541 VM page cache was not coherent with the file system buffer cache
20542 like early versions of FreeBSD and possibly contemporary NetBSD.)
20543 For shared mappings, we should conversely verify that changes get
20544 propagated back to all the places they're supposed to be.
20546 Grep wants private fixed already mapped.
20547 The main things grep needs to know about mmap are:
20548 * does it exist and is it safe to write into the mmap'd area
20549 * how to use it (BSD variants) */
20552 #include <sys/mman.h>
20554 #if !STDC_HEADERS && !HAVE_STDLIB_H
20558 /* This mess was copied from the GNU getpagesize.h. */
20559 #if !HAVE_GETPAGESIZE
20560 /* Assume that all systems that can run configure have sys/param.h. */
20561 # if !HAVE_SYS_PARAM_H
20562 # define HAVE_SYS_PARAM_H 1
20565 # ifdef _SC_PAGESIZE
20566 # define getpagesize() sysconf(_SC_PAGESIZE)
20567 # else /* no _SC_PAGESIZE */
20568 # if HAVE_SYS_PARAM_H
20569 # include <sys/param.h>
20570 # ifdef EXEC_PAGESIZE
20571 # define getpagesize() EXEC_PAGESIZE
20572 # else /* no EXEC_PAGESIZE */
20574 # define getpagesize() NBPG * CLSIZE
20577 # endif /* no CLSIZE */
20578 # else /* no NBPG */
20580 # define getpagesize() NBPC
20581 # else /* no NBPC */
20583 # define getpagesize() PAGESIZE
20584 # endif /* PAGESIZE */
20585 # endif /* no NBPC */
20586 # endif /* no NBPG */
20587 # endif /* no EXEC_PAGESIZE */
20588 # else /* no HAVE_SYS_PARAM_H */
20589 # define getpagesize() 8192 /* punt totally */
20590 # endif /* no HAVE_SYS_PARAM_H */
20591 # endif /* no _SC_PAGESIZE */
20593 #endif /* no HAVE_GETPAGESIZE */
20598 char *data, *data2, *data3;
20602 pagesize = getpagesize ();
20604 /* First, make a file with some known garbage in it. */
20605 data = (char *) malloc (pagesize);
20608 for (i = 0; i < pagesize; ++i)
20609 *(data + i) = rand ();
20611 fd = creat ("conftest.mmap", 0600);
20614 if (write (fd, data, pagesize) != pagesize)
20618 /* Next, try to mmap the file at a fixed address which already has
20619 something else allocated at it. If we can, also make sure that
20620 we see the same garbage. */
20621 fd = open ("conftest.mmap", O_RDWR);
20624 data2 = (char *) malloc (2 * pagesize);
20627 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20628 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20629 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20631 for (i = 0; i < pagesize; ++i)
20632 if (*(data + i) != *(data2 + i))
20635 /* Finally, make sure that changes to the mapped area do not
20636 percolate back to the file as seen by read(). (This is a bug on
20637 some variants of i386 svr4.0.) */
20638 for (i = 0; i < pagesize; ++i)
20639 *(data2 + i) = *(data2 + i) + 1;
20640 data3 = (char *) malloc (pagesize);
20643 if (read (fd, data3, pagesize) != pagesize)
20645 for (i = 0; i < pagesize; ++i)
20646 if (*(data + i) != *(data3 + i))
20652 rm -f conftest$ac_exeext
20653 if { (ac_try="$ac_link"
20654 case "(($ac_try" in
20655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20656 *) ac_try_echo=$ac_try;;
20658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20659 (eval "$ac_link") 2>&5
20661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662 (exit $ac_status); } && { ac_try='./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_func_mmap_fixed_mapped=yes
20674 echo "$as_me: program exited with status $ac_status" >&5
20675 echo "$as_me: failed program was:" >&5
20676 sed 's/^/| /' conftest.$ac_ext >&5
20678 ( exit $ac_status )
20679 ac_cv_func_mmap_fixed_mapped=no
20681 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20686 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20687 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20688 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20690 cat >>confdefs.h <<\_ACEOF
20691 #define HAVE_MMAP 1
20695 rm -f conftest.mmap
20697 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20698 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20699 if test "${ac_cv_func_mmap_file+set}" = set; then
20700 echo $ECHO_N "(cached) $ECHO_C" >&6
20703 ac_cpp='$CPP $CPPFLAGS'
20704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20708 if test "$cross_compiling" = yes; then
20709 ac_cv_func_mmap_file=no
20711 cat >conftest.$ac_ext <<_ACEOF
20715 cat confdefs.h >>conftest.$ac_ext
20716 cat >>conftest.$ac_ext <<_ACEOF
20717 /* end confdefs.h. */
20719 #include <sys/types.h>
20720 #include <sys/mman.h>
20728 fd = creat ("foo",0777);
20729 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20731 return (fd != (int) MAP_FAILED);
20736 rm -f conftest$ac_exeext
20737 if { (ac_try="$ac_link"
20738 case "(($ac_try" in
20739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20740 *) ac_try_echo=$ac_try;;
20742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20743 (eval "$ac_link") 2>&5
20745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20747 { (case "(($ac_try" in
20748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20749 *) ac_try_echo=$ac_try;;
20751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20752 (eval "$ac_try") 2>&5
20754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20755 (exit $ac_status); }; }; then
20756 ac_cv_func_mmap_file=yes
20758 echo "$as_me: program exited with status $ac_status" >&5
20759 echo "$as_me: failed program was:" >&5
20760 sed 's/^/| /' conftest.$ac_ext >&5
20762 ( exit $ac_status )
20763 ac_cv_func_mmap_file=no
20765 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20770 ac_cpp='$CPP $CPPFLAGS'
20771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20777 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20778 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20779 if test "$ac_cv_func_mmap_file" = yes; then
20781 cat >>confdefs.h <<\_ACEOF
20782 #define HAVE_MMAP_FILE
20789 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20790 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20791 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20792 echo $ECHO_N "(cached) $ECHO_C" >&6
20794 if test "$llvm_cv_os_type" = "Interix" ; then
20795 ac_cv_need_dev_zero_for_mmap=yes
20797 ac_cv_need_dev_zero_for_mmap=no
20801 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20802 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20803 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20805 cat >>confdefs.h <<\_ACEOF
20806 #define NEED_DEV_ZERO_FOR_MMAP 1
20811 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20813 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20814 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20816 if test "$ac_cv_func_mmap_file" = "no"
20818 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20819 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20823 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20824 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20826 ac_cpp='$CXXCPP $CPPFLAGS'
20827 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20828 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20829 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20831 cat >conftest.$ac_ext <<_ACEOF
20834 cat confdefs.h >>conftest.$ac_ext
20835 cat >>conftest.$ac_ext <<_ACEOF
20836 /* end confdefs.h. */
20838 volatile unsigned long val = 1;
20839 __sync_synchronize();
20840 __sync_val_compare_and_swap(&val, 1, 0);
20841 __sync_add_and_fetch(&val, 1);
20842 __sync_sub_and_fetch(&val, 1);
20847 rm -f conftest.$ac_objext conftest$ac_exeext
20848 if { (ac_try="$ac_link"
20849 case "(($ac_try" in
20850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20851 *) ac_try_echo=$ac_try;;
20853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20854 (eval "$ac_link") 2>conftest.er1
20856 grep -v '^ *+' conftest.er1 >conftest.err
20858 cat conftest.err >&5
20859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20860 (exit $ac_status); } &&
20861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20862 { (case "(($ac_try" in
20863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20864 *) ac_try_echo=$ac_try;;
20866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20867 (eval "$ac_try") 2>&5
20869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20870 (exit $ac_status); }; } &&
20871 { ac_try='test -s conftest$ac_exeext'
20872 { (case "(($ac_try" in
20873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20874 *) ac_try_echo=$ac_try;;
20876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20877 (eval "$ac_try") 2>&5
20879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20880 (exit $ac_status); }; }; then
20882 ac_cpp='$CPP $CPPFLAGS'
20883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20887 { echo "$as_me:$LINENO: result: yes" >&5
20888 echo "${ECHO_T}yes" >&6; }
20890 cat >>confdefs.h <<\_ACEOF
20891 #define LLVM_HAS_ATOMICS 1
20895 echo "$as_me: failed program was:" >&5
20896 sed 's/^/| /' conftest.$ac_ext >&5
20898 { echo "$as_me:$LINENO: result: no" >&5
20899 echo "${ECHO_T}no" >&6; }
20901 cat >>confdefs.h <<\_ACEOF
20902 #define LLVM_HAS_ATOMICS 0
20905 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20906 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20909 rm -f core conftest.err conftest.$ac_objext \
20910 conftest$ac_exeext conftest.$ac_ext
20913 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20914 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20915 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20916 if test "${llvm_cv_linux_mixed+set}" = set; then
20917 echo $ECHO_N "(cached) $ECHO_C" >&6
20920 ac_cpp='$CPP $CPPFLAGS'
20921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20925 cat >conftest.$ac_ext <<_ACEOF
20928 cat confdefs.h >>conftest.$ac_ext
20929 cat >>conftest.$ac_ext <<_ACEOF
20930 /* end confdefs.h. */
20932 error: Not x86-64 even if uname says so!
20943 rm -f conftest.$ac_objext
20944 if { (ac_try="$ac_compile"
20945 case "(($ac_try" in
20946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20947 *) ac_try_echo=$ac_try;;
20949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20950 (eval "$ac_compile") 2>conftest.er1
20952 grep -v '^ *+' conftest.er1 >conftest.err
20954 cat conftest.err >&5
20955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956 (exit $ac_status); } &&
20957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20958 { (case "(($ac_try" in
20959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20960 *) ac_try_echo=$ac_try;;
20962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20963 (eval "$ac_try") 2>&5
20965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20966 (exit $ac_status); }; } &&
20967 { ac_try='test -s conftest.$ac_objext'
20968 { (case "(($ac_try" in
20969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20970 *) ac_try_echo=$ac_try;;
20972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20973 (eval "$ac_try") 2>&5
20975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976 (exit $ac_status); }; }; then
20977 llvm_cv_linux_mixed=no
20979 echo "$as_me: failed program was:" >&5
20980 sed 's/^/| /' conftest.$ac_ext >&5
20982 llvm_cv_linux_mixed=yes
20985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20987 ac_cpp='$CPP $CPPFLAGS'
20988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20994 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20995 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20997 if test "$llvm_cv_linux_mixed" = "yes"; then
20998 llvm_cv_target_arch="x86"
21004 for ac_func in __dso_handle
21006 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21007 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21008 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21009 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21010 echo $ECHO_N "(cached) $ECHO_C" >&6
21012 cat >conftest.$ac_ext <<_ACEOF
21015 cat confdefs.h >>conftest.$ac_ext
21016 cat >>conftest.$ac_ext <<_ACEOF
21017 /* end confdefs.h. */
21018 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21019 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21020 #define $ac_func innocuous_$ac_func
21022 /* System header to define __stub macros and hopefully few prototypes,
21023 which can conflict with char $ac_func (); below.
21024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21025 <limits.h> exists even on freestanding compilers. */
21028 # include <limits.h>
21030 # include <assert.h>
21035 /* Override any GCC internal prototype to avoid an error.
21036 Use char because int might match the return type of a GCC
21037 builtin and then its argument prototype would still apply. */
21042 /* The GNU C library defines this for functions which it implements
21043 to always fail with ENOSYS. Some functions are actually named
21044 something starting with __ and the normal name is an alias. */
21045 #if defined __stub_$ac_func || defined __stub___$ac_func
21052 return $ac_func ();
21057 rm -f conftest.$ac_objext conftest$ac_exeext
21058 if { (ac_try="$ac_link"
21059 case "(($ac_try" in
21060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21061 *) ac_try_echo=$ac_try;;
21063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21064 (eval "$ac_link") 2>conftest.er1
21066 grep -v '^ *+' conftest.er1 >conftest.err
21068 cat conftest.err >&5
21069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070 (exit $ac_status); } &&
21071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21072 { (case "(($ac_try" in
21073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21074 *) ac_try_echo=$ac_try;;
21076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21077 (eval "$ac_try") 2>&5
21079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080 (exit $ac_status); }; } &&
21081 { ac_try='test -s conftest$ac_exeext'
21082 { (case "(($ac_try" in
21083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21084 *) ac_try_echo=$ac_try;;
21086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21087 (eval "$ac_try") 2>&5
21089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21090 (exit $ac_status); }; }; then
21091 eval "$as_ac_var=yes"
21093 echo "$as_me: failed program was:" >&5
21094 sed 's/^/| /' conftest.$ac_ext >&5
21096 eval "$as_ac_var=no"
21099 rm -f core conftest.err conftest.$ac_objext \
21100 conftest$ac_exeext conftest.$ac_ext
21102 ac_res=`eval echo '${'$as_ac_var'}'`
21103 { echo "$as_me:$LINENO: result: $ac_res" >&5
21104 echo "${ECHO_T}$ac_res" >&6; }
21105 if test `eval echo '${'$as_ac_var'}'` = yes; then
21106 cat >>confdefs.h <<_ACEOF
21107 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21114 SHLIBEXT=$libltdl_cv_shlibext
21117 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21120 if test "${prefix}" = "NONE" ; then
21121 prefix="/usr/local"
21123 eval LLVM_PREFIX="${prefix}";
21124 eval LLVM_BINDIR="${prefix}/bin";
21125 eval LLVM_LIBDIR="${prefix}/lib";
21126 eval LLVM_DATADIR="${prefix}/share/llvm";
21127 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21128 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21129 eval LLVM_INCLUDEDIR="${prefix}/include";
21130 eval LLVM_INFODIR="${prefix}/info";
21131 eval LLVM_MANDIR="${prefix}/man";
21132 LLVM_CONFIGTIME=`date`
21144 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21145 LLVM_CONFIGTIME="(timestamp not enabled)"
21149 cat >>confdefs.h <<_ACEOF
21150 #define LLVM_PREFIX "$LLVM_PREFIX"
21154 cat >>confdefs.h <<_ACEOF
21155 #define LLVM_BINDIR "$LLVM_BINDIR"
21159 cat >>confdefs.h <<_ACEOF
21160 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21164 cat >>confdefs.h <<_ACEOF
21165 #define LLVM_DATADIR "$LLVM_DATADIR"
21169 cat >>confdefs.h <<_ACEOF
21170 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21174 cat >>confdefs.h <<_ACEOF
21175 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21179 cat >>confdefs.h <<_ACEOF
21180 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21184 cat >>confdefs.h <<_ACEOF
21185 #define LLVM_INFODIR "$LLVM_INFODIR"
21189 cat >>confdefs.h <<_ACEOF
21190 #define LLVM_MANDIR "$LLVM_MANDIR"
21194 cat >>confdefs.h <<_ACEOF
21195 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21199 cat >>confdefs.h <<_ACEOF
21200 #define LLVM_HOSTTRIPLE "$host"
21204 cat >>confdefs.h <<_ACEOF
21205 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21209 if test "$BINDINGS_TO_BUILD" = auto ; then
21210 BINDINGS_TO_BUILD=""
21211 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21212 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21215 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21221 binding_prereqs_failed=0
21222 for a_binding in $BINDINGS_TO_BUILD ; do
21223 case "$a_binding" in
21225 if test "x$OCAMLC" = x ; then
21226 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21227 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21228 binding_prereqs_failed=1
21230 if test "x$OCAMLDEP" = x ; then
21231 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21232 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21233 binding_prereqs_failed=1
21235 if test "x$OCAMLOPT" = x ; then
21236 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21237 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21239 if test "x$with_ocaml_libdir" != xauto ; then
21240 OCAML_LIBDIR=$with_ocaml_libdir
21243 ocaml_stdlib="`"$OCAMLC" -where`"
21244 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21246 # ocaml stdlib is beneath our prefix; use stdlib
21247 OCAML_LIBDIR=$ocaml_stdlib
21250 # ocaml stdlib is outside our prefix; use libdir/ocaml
21251 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21258 if test "$binding_prereqs_failed" = 1 ; then
21259 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21260 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21261 { (exit 1); exit 1; }; }
21264 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21265 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21266 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21267 echo $ECHO_N "(cached) $ECHO_C" >&6
21270 ac_cpp='$CXXCPP $CPPFLAGS'
21271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21275 oldcxxflags="$CXXFLAGS"
21276 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21277 cat >conftest.$ac_ext <<_ACEOF
21280 cat confdefs.h >>conftest.$ac_ext
21281 cat >>conftest.$ac_ext <<_ACEOF
21282 /* end confdefs.h. */
21283 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21292 rm -f conftest.$ac_objext
21293 if { (ac_try="$ac_compile"
21294 case "(($ac_try" in
21295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21296 *) ac_try_echo=$ac_try;;
21298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21299 (eval "$ac_compile") 2>conftest.er1
21301 grep -v '^ *+' conftest.er1 >conftest.err
21303 cat conftest.err >&5
21304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305 (exit $ac_status); } &&
21306 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21307 { (case "(($ac_try" in
21308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21309 *) ac_try_echo=$ac_try;;
21311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21312 (eval "$ac_try") 2>&5
21314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21315 (exit $ac_status); }; } &&
21316 { ac_try='test -s conftest.$ac_objext'
21317 { (case "(($ac_try" in
21318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21319 *) ac_try_echo=$ac_try;;
21321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21322 (eval "$ac_try") 2>&5
21324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21325 (exit $ac_status); }; }; then
21326 llvm_cv_cxx_visibility_inlines_hidden=yes
21328 echo "$as_me: failed program was:" >&5
21329 sed 's/^/| /' conftest.$ac_ext >&5
21331 llvm_cv_cxx_visibility_inlines_hidden=no
21334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21335 CXXFLAGS="$oldcxxflags"
21337 ac_cpp='$CPP $CPPFLAGS'
21338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21344 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21345 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21346 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21347 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21350 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21355 if test "$llvm_cv_link_use_r" = "yes" ; then
21362 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21363 RDYNAMIC="-Wl,-export-dynamic"
21370 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21377 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21379 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21381 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21383 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21385 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21388 ac_config_files="$ac_config_files Makefile.config"
21391 ac_config_files="$ac_config_files llvm.spec"
21394 ac_config_files="$ac_config_files docs/doxygen.cfg"
21397 if test "${clang_src_root}" = ""; then
21398 clang_src_root="$srcdir/tools/clang"
21400 if test -f ${clang_src_root}/README.txt; then
21401 configh="include/clang/Config/config.h"
21402 doxy="docs/doxygen.cfg"
21403 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21405 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21409 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21412 ac_config_commands="$ac_config_commands setup"
21414 ac_config_commands="$ac_config_commands Makefile"
21417 ac_config_commands="$ac_config_commands Makefile.common"
21420 ac_config_commands="$ac_config_commands examples/Makefile"
21423 ac_config_commands="$ac_config_commands lib/Makefile"
21426 ac_config_commands="$ac_config_commands runtime/Makefile"
21429 ac_config_commands="$ac_config_commands test/Makefile"
21432 ac_config_commands="$ac_config_commands test/Makefile.tests"
21435 ac_config_commands="$ac_config_commands unittests/Makefile"
21438 ac_config_commands="$ac_config_commands tools/Makefile"
21441 ac_config_commands="$ac_config_commands utils/Makefile"
21444 ac_config_commands="$ac_config_commands projects/Makefile"
21447 ac_config_commands="$ac_config_commands bindings/Makefile"
21450 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21454 cat >confcache <<\_ACEOF
21455 # This file is a shell script that caches the results of configure
21456 # tests run on this system so they can be shared between configure
21457 # scripts and configure runs, see configure's option --config-cache.
21458 # It is not useful on other systems. If it contains results you don't
21459 # want to keep, you may remove or edit it.
21461 # config.status only pays attention to the cache file if you give it
21462 # the --recheck option to rerun configure.
21464 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21465 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21466 # following values.
21470 # The following way of writing the cache mishandles newlines in values,
21471 # but we know of no workaround that is simple, portable, and efficient.
21472 # So, we kill variables containing newlines.
21473 # Ultrix sh set writes to stderr and can't be redirected directly,
21474 # and sets the high bit in the cache file unless we assign to the vars.
21476 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21477 eval ac_val=\$$ac_var
21481 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21482 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21485 _ | IFS | as_nl) ;; #(
21486 *) $as_unset $ac_var ;;
21492 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21493 *${as_nl}ac_space=\ *)
21494 # `set' does not quote correctly, so add quotes (double-quote
21495 # substitution turns \\\\ into \\, and sed turns \\ into \).
21498 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21501 # `set' quotes correctly as required by POSIX, so do not add quotes.
21502 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21511 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21513 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21515 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21516 if test -w "$cache_file"; then
21517 test "x$cache_file" != "x/dev/null" &&
21518 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21519 echo "$as_me: updating cache $cache_file" >&6;}
21520 cat confcache >$cache_file
21522 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21523 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21528 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21529 # Let make expand exec_prefix.
21530 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21532 DEFS=-DHAVE_CONFIG_H
21536 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21537 # 1. Remove the extension, and $U if already installed.
21538 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21539 ac_i=`echo "$ac_i" | sed "$ac_script"`
21540 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21541 # will be set to the directory where LIBOBJS objects are built.
21542 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21543 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21545 LIBOBJS=$ac_libobjs
21547 LTLIBOBJS=$ac_ltlibobjs
21550 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21551 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21552 Usually this means the macro was only invoked conditionally." >&5
21553 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21554 Usually this means the macro was only invoked conditionally." >&2;}
21555 { (exit 1); exit 1; }; }
21557 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21558 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21559 Usually this means the macro was only invoked conditionally." >&5
21560 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21561 Usually this means the macro was only invoked conditionally." >&2;}
21562 { (exit 1); exit 1; }; }
21565 : ${CONFIG_STATUS=./config.status}
21566 ac_clean_files_save=$ac_clean_files
21567 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21568 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21569 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21570 cat >$CONFIG_STATUS <<_ACEOF
21572 # Generated by $as_me.
21573 # Run this file to recreate the current configuration.
21574 # Compiler output produced by configure, useful for debugging
21575 # configure, is in config.log if it exists.
21578 ac_cs_recheck=false
21580 SHELL=\${CONFIG_SHELL-$SHELL}
21583 cat >>$CONFIG_STATUS <<\_ACEOF
21584 ## --------------------- ##
21585 ## M4sh Initialization. ##
21586 ## --------------------- ##
21588 # Be Bourne compatible
21589 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21592 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21593 # is contrary to our usage. Disable this feature.
21594 alias -g '${1+"$@"}'='"$@"'
21595 setopt NO_GLOB_SUBST
21597 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21599 BIN_SH=xpg4; export BIN_SH # for Tru64
21600 DUALCASE=1; export DUALCASE # for MKS sh
21604 # Avoid depending upon Character Ranges.
21605 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21606 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21607 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21608 as_cr_digits='0123456789'
21609 as_cr_alnum=$as_cr_Letters$as_cr_digits
21611 # The user is always right.
21612 if test "${PATH_SEPARATOR+set}" != set; then
21613 echo "#! /bin/sh" >conf$$.sh
21614 echo "exit 0" >>conf$$.sh
21616 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21624 # Support unset when possible.
21625 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21633 # We need space, tab and new line, in precisely that order. Quoting is
21634 # there to prevent editors from complaining about space-tab.
21635 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21636 # splitting by setting IFS to empty value.)
21641 # Find who we are. Look in the path if we contain no directory separator.
21643 *[\\/]* ) as_myself=$0 ;;
21644 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21645 for as_dir in $PATH
21648 test -z "$as_dir" && as_dir=.
21649 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21655 # We did not find ourselves, most probably we were run as `sh COMMAND'
21656 # in which case we are not to be found in the path.
21657 if test "x$as_myself" = x; then
21660 if test ! -f "$as_myself"; then
21661 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21662 { (exit 1); exit 1; }
21665 # Work around bugs in pre-3.0 UWIN ksh.
21666 for as_var in ENV MAIL MAILPATH
21667 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21675 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21676 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21677 LC_TELEPHONE LC_TIME
21679 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21680 eval $as_var=C; export $as_var
21682 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21686 # Required to use basename.
21687 if expr a : '\(a\)' >/dev/null 2>&1 &&
21688 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21694 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21695 as_basename=basename
21701 # Name of the executable.
21702 as_me=`$as_basename -- "$0" ||
21703 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21704 X"$0" : 'X\(//\)$' \| \
21705 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21707 sed '/^.*\/\([^/][^/]*\)\/*$/{
21726 as_lineno_1=$LINENO
21727 as_lineno_2=$LINENO
21728 test "x$as_lineno_1" != "x$as_lineno_2" &&
21729 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21731 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21732 # uniformly replaced by the line number. The first 'sed' inserts a
21733 # line-number line after each line using $LINENO; the second 'sed'
21734 # does the real work. The second script uses 'N' to pair each
21735 # line-number line with the line containing $LINENO, and appends
21736 # trailing '-' during substitution so that $LINENO is not a special
21737 # case at line end.
21738 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21739 # scripts with optimization help from Paolo Bonzini. Blame Lee
21740 # E. McMahon (1931-1989) for sed's syntax. :-)
21752 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21755 ' >$as_me.lineno &&
21756 chmod +x "$as_me.lineno" ||
21757 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21758 { (exit 1); exit 1; }; }
21760 # Don't try to exec as it changes $[0], causing all sort of problems
21761 # (the dirname of $[0] is not the place where we might find the
21762 # original and so on. Autoconf is especially sensitive to this).
21763 . "./$as_me.lineno"
21764 # Exit status is that of the last command.
21769 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21775 ECHO_C= ECHO_N= ECHO_T=
21776 case `echo -n x` in
21778 case `echo 'x\c'` in
21779 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21786 if expr a : '\(a\)' >/dev/null 2>&1 &&
21787 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21793 rm -f conf$$ conf$$.exe conf$$.file
21794 if test -d conf$$.dir; then
21795 rm -f conf$$.dir/conf$$.file
21801 if ln -s conf$$.file conf$$ 2>/dev/null; then
21803 # ... but there are two gotchas:
21804 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21805 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21806 # In both cases, we have to default to `cp -p'.
21807 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21809 elif ln conf$$.file conf$$ 2>/dev/null; then
21814 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21815 rmdir conf$$.dir 2>/dev/null
21817 if mkdir -p . 2>/dev/null; then
21820 test -d ./-p && rmdir ./-p
21824 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21825 # systems may use methods other than mode bits to determine executability.
21826 cat >conf$$.file <<_ASEOF
21830 chmod +x conf$$.file
21831 if test -x conf$$.file >/dev/null 2>&1; then
21832 as_executable_p="test -x"
21838 # Sed expression to map a string onto a valid CPP name.
21839 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21841 # Sed expression to map a string onto a valid variable name.
21842 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21847 # Save the log message, to keep $[0] and so on meaningful, and to
21848 # report actual input values of CONFIG_FILES etc. instead of their
21849 # values after options handling.
21851 This file was extended by LLVM $as_me 3.2svn, which was
21852 generated by GNU Autoconf 2.60. Invocation command line was
21854 CONFIG_FILES = $CONFIG_FILES
21855 CONFIG_HEADERS = $CONFIG_HEADERS
21856 CONFIG_LINKS = $CONFIG_LINKS
21857 CONFIG_COMMANDS = $CONFIG_COMMANDS
21860 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21865 cat >>$CONFIG_STATUS <<_ACEOF
21866 # Files that config.status was made for.
21867 config_files="$ac_config_files"
21868 config_headers="$ac_config_headers"
21869 config_commands="$ac_config_commands"
21873 cat >>$CONFIG_STATUS <<\_ACEOF
21875 \`$as_me' instantiates files from templates according to the
21876 current configuration.
21878 Usage: $0 [OPTIONS] [FILE]...
21880 -h, --help print this help, then exit
21881 -V, --version print version number, then exit
21882 -q, --quiet do not print progress messages
21883 -d, --debug don't remove temporary files
21884 --recheck update $as_me by reconfiguring in the same conditions
21885 --file=FILE[:TEMPLATE]
21886 instantiate the configuration file FILE
21887 --header=FILE[:TEMPLATE]
21888 instantiate the configuration header FILE
21890 Configuration files:
21893 Configuration headers:
21896 Configuration commands:
21899 Report bugs to <bug-autoconf@gnu.org>."
21902 cat >>$CONFIG_STATUS <<_ACEOF
21904 LLVM config.status 3.2svn
21905 configured by $0, generated by GNU Autoconf 2.60,
21906 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21908 Copyright (C) 2006 Free Software Foundation, Inc.
21909 This config.status script is free software; the Free Software Foundation
21910 gives unlimited permission to copy, distribute and modify it."
21917 cat >>$CONFIG_STATUS <<\_ACEOF
21918 # If no file are specified by the user, then we need to provide default
21919 # value. By we need to know if files were specified by the user.
21925 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21926 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21937 # Handling of the options.
21938 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21940 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21941 echo "$ac_cs_version"; exit ;;
21942 --debug | --debu | --deb | --de | --d | -d )
21944 --file | --fil | --fi | --f )
21946 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21947 ac_need_defaults=false;;
21948 --header | --heade | --head | --hea )
21950 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21951 ac_need_defaults=false;;
21953 # Conflict between --help and --header
21954 { echo "$as_me: error: ambiguous option: $1
21955 Try \`$0 --help' for more information." >&2
21956 { (exit 1); exit 1; }; };;
21957 --help | --hel | -h )
21958 echo "$ac_cs_usage"; exit ;;
21959 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21960 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21963 # This is an error.
21964 -*) { echo "$as_me: error: unrecognized option: $1
21965 Try \`$0 --help' for more information." >&2
21966 { (exit 1); exit 1; }; } ;;
21968 *) ac_config_targets="$ac_config_targets $1"
21969 ac_need_defaults=false ;;
21975 ac_configure_extra_args=
21977 if $ac_cs_silent; then
21979 ac_configure_extra_args="$ac_configure_extra_args --silent"
21983 cat >>$CONFIG_STATUS <<_ACEOF
21984 if \$ac_cs_recheck; then
21985 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21986 CONFIG_SHELL=$SHELL
21987 export CONFIG_SHELL
21988 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21992 cat >>$CONFIG_STATUS <<\_ACEOF
21996 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21997 ## Running $as_me. ##
22003 cat >>$CONFIG_STATUS <<_ACEOF
22007 llvm_src="${srcdir}"
22011 cat >>$CONFIG_STATUS <<\_ACEOF
22013 # Handling of arguments.
22014 for ac_config_target in $ac_config_targets
22016 case $ac_config_target in
22017 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22018 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22019 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22020 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22021 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
22022 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
22023 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
22024 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22025 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
22026 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
22027 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22028 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
22029 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
22030 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22031 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22032 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22033 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22034 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22035 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22036 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22037 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22038 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
22039 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22040 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22041 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22042 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22043 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
22045 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22046 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22047 { (exit 1); exit 1; }; };;
22052 # If the user did not use the arguments to specify the items to instantiate,
22053 # then the envvar interface is used. Set only those that are not.
22054 # We use the long form for the default assignment because of an extremely
22055 # bizarre bug on SunOS 4.1.3.
22056 if $ac_need_defaults; then
22057 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22058 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22059 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22062 # Have a temporary directory for convenience. Make it in the build tree
22063 # simply because there is no reason against having it here, and in addition,
22064 # creating and moving files from /tmp can sometimes cause problems.
22065 # Hook for its removal unless debugging.
22066 # Note that there is a small window in which the directory will not be cleaned:
22067 # after its creation but before its name has been assigned to `$tmp'.
22071 trap 'exit_status=$?
22072 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22074 trap '{ (exit 1); exit 1; }' 1 2 13 15
22076 # Create a (secure) tmp directory for tmp files.
22079 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22080 test -n "$tmp" && test -d "$tmp"
22083 tmp=./conf$$-$RANDOM
22084 (umask 077 && mkdir "$tmp")
22087 echo "$me: cannot create a temporary directory in ." >&2
22088 { (exit 1); exit 1; }
22092 # Set up the sed scripts for CONFIG_FILES section.
22095 # No need to generate the scripts if there are no CONFIG_FILES.
22096 # This happens for instance when ./config.status config.h
22097 if test -n "$CONFIG_FILES"; then
22104 for ac_last_try in false false false false false :; do
22105 cat >conf$$subs.sed <<_ACEOF
22106 SHELL!$SHELL$ac_delim
22107 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22108 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22109 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22110 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22111 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22112 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22113 exec_prefix!$exec_prefix$ac_delim
22114 prefix!$prefix$ac_delim
22115 program_transform_name!$program_transform_name$ac_delim
22116 bindir!$bindir$ac_delim
22117 sbindir!$sbindir$ac_delim
22118 libexecdir!$libexecdir$ac_delim
22119 datarootdir!$datarootdir$ac_delim
22120 datadir!$datadir$ac_delim
22121 sysconfdir!$sysconfdir$ac_delim
22122 sharedstatedir!$sharedstatedir$ac_delim
22123 localstatedir!$localstatedir$ac_delim
22124 includedir!$includedir$ac_delim
22125 oldincludedir!$oldincludedir$ac_delim
22126 docdir!$docdir$ac_delim
22127 infodir!$infodir$ac_delim
22128 htmldir!$htmldir$ac_delim
22129 dvidir!$dvidir$ac_delim
22130 pdfdir!$pdfdir$ac_delim
22131 psdir!$psdir$ac_delim
22132 libdir!$libdir$ac_delim
22133 localedir!$localedir$ac_delim
22134 mandir!$mandir$ac_delim
22135 DEFS!$DEFS$ac_delim
22136 ECHO_C!$ECHO_C$ac_delim
22137 ECHO_N!$ECHO_N$ac_delim
22138 ECHO_T!$ECHO_T$ac_delim
22139 LIBS!$LIBS$ac_delim
22140 build_alias!$build_alias$ac_delim
22141 host_alias!$host_alias$ac_delim
22142 target_alias!$target_alias$ac_delim
22143 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22145 CFLAGS!$CFLAGS$ac_delim
22146 LDFLAGS!$LDFLAGS$ac_delim
22147 CPPFLAGS!$CPPFLAGS$ac_delim
22148 ac_ct_CC!$ac_ct_CC$ac_delim
22149 EXEEXT!$EXEEXT$ac_delim
22150 OBJEXT!$OBJEXT$ac_delim
22152 CXXFLAGS!$CXXFLAGS$ac_delim
22153 ac_ct_CXX!$ac_ct_CXX$ac_delim
22155 subdirs!$subdirs$ac_delim
22156 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22157 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22158 build!$build$ac_delim
22159 build_cpu!$build_cpu$ac_delim
22160 build_vendor!$build_vendor$ac_delim
22161 build_os!$build_os$ac_delim
22162 host!$host$ac_delim
22163 host_cpu!$host_cpu$ac_delim
22164 host_vendor!$host_vendor$ac_delim
22165 host_os!$host_os$ac_delim
22166 target!$target$ac_delim
22167 target_cpu!$target_cpu$ac_delim
22168 target_vendor!$target_vendor$ac_delim
22169 target_os!$target_os$ac_delim
22171 HOST_OS!$HOST_OS$ac_delim
22172 TARGET_OS!$TARGET_OS$ac_delim
22173 LINKALL!$LINKALL$ac_delim
22174 NOLINKALL!$NOLINKALL$ac_delim
22175 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22176 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22177 ARCH!$ARCH$ac_delim
22178 HOST_ARCH!$HOST_ARCH$ac_delim
22179 ENDIAN!$ENDIAN$ac_delim
22180 GREP!$GREP$ac_delim
22181 EGREP!$EGREP$ac_delim
22182 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22183 BUILD_CC!$BUILD_CC$ac_delim
22184 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22185 BUILD_CXX!$BUILD_CXX$ac_delim
22186 CVSBUILD!$CVSBUILD$ac_delim
22187 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22188 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
22189 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22190 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22191 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22192 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
22193 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22194 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22195 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22196 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22197 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
22199 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22200 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22201 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22202 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22205 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22207 elif $ac_last_try; then
22208 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22209 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22210 { (exit 1); exit 1; }; }
22212 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22216 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22217 if test -n "$ac_eof"; then
22218 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22219 ac_eof=`expr $ac_eof + 1`
22222 cat >>$CONFIG_STATUS <<_ACEOF
22223 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22224 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22227 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22228 s/^/s,@/; s/!/@,|#_!!_#|/
22231 s/'"$ac_delim"'$/,g/; t
22233 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22234 ' >>$CONFIG_STATUS <conf$$subs.sed
22235 rm -f conf$$subs.sed
22236 cat >>$CONFIG_STATUS <<_ACEOF
22242 for ac_last_try in false false false false false :; do
22243 cat >conf$$subs.sed <<_ACEOF
22244 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22245 ENABLE_PIC!$ENABLE_PIC$ac_delim
22246 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22247 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22248 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22249 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22250 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22251 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22252 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22253 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22254 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22255 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22256 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22257 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22258 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22259 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22261 ifGNUmake!$ifGNUmake$ac_delim
22262 LN_S!$LN_S$ac_delim
22265 DATE!$DATE$ac_delim
22266 FIND!$FIND$ac_delim
22267 MKDIR!$MKDIR$ac_delim
22269 RANLIB!$RANLIB$ac_delim
22274 BINPWD!$BINPWD$ac_delim
22275 GRAPHVIZ!$GRAPHVIZ$ac_delim
22278 NEATO!$NEATO$ac_delim
22279 TWOPI!$TWOPI$ac_delim
22280 CIRCO!$CIRCO$ac_delim
22282 DOTTY!$DOTTY$ac_delim
22283 XDOT_PY!$XDOT_PY$ac_delim
22284 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22285 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22286 INSTALL_DATA!$INSTALL_DATA$ac_delim
22287 BZIP2!$BZIP2$ac_delim
22289 DOXYGEN!$DOXYGEN$ac_delim
22290 GROFF!$GROFF$ac_delim
22291 GZIPBIN!$GZIPBIN$ac_delim
22292 PDFROFF!$PDFROFF$ac_delim
22294 OCAMLC!$OCAMLC$ac_delim
22295 OCAMLOPT!$OCAMLOPT$ac_delim
22296 OCAMLDEP!$OCAMLDEP$ac_delim
22297 OCAMLDOC!$OCAMLDOC$ac_delim
22299 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22300 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22301 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22302 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22303 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22304 LIBADD_DL!$LIBADD_DL$ac_delim
22305 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22306 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22307 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22308 USE_UDIS86!$USE_UDIS86$ac_delim
22309 USE_OPROFILE!$USE_OPROFILE$ac_delim
22310 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22311 INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
22312 INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
22313 XML2CONFIG!$XML2CONFIG$ac_delim
22314 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22315 LIBXML2_INC!$LIBXML2_INC$ac_delim
22316 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22317 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22318 MMAP_FILE!$MMAP_FILE$ac_delim
22319 SHLIBEXT!$SHLIBEXT$ac_delim
22320 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22321 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22322 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22323 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22324 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22325 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22326 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22327 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22328 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22329 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22330 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22331 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22332 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22333 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22334 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22335 RPATH!$RPATH$ac_delim
22336 RDYNAMIC!$RDYNAMIC$ac_delim
22337 LIBOBJS!$LIBOBJS$ac_delim
22338 LTLIBOBJS!$LTLIBOBJS$ac_delim
22341 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 95; then
22343 elif $ac_last_try; then
22344 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22345 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22346 { (exit 1); exit 1; }; }
22348 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22352 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22353 if test -n "$ac_eof"; then
22354 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22355 ac_eof=`expr $ac_eof + 1`
22358 cat >>$CONFIG_STATUS <<_ACEOF
22359 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22360 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22363 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22364 s/^/s,@/; s/!/@,|#_!!_#|/
22367 s/'"$ac_delim"'$/,g/; t
22369 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22370 ' >>$CONFIG_STATUS <conf$$subs.sed
22371 rm -f conf$$subs.sed
22372 cat >>$CONFIG_STATUS <<_ACEOF
22379 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22380 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22381 # trailing colons and then remove the whole line if VPATH becomes empty
22382 # (actually we leave an empty line to preserve line numbers).
22383 if test "x$srcdir" = x.; then
22384 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22385 s/:*\$(srcdir):*/:/
22386 s/:*\${srcdir}:*/:/
22388 s/^\([^=]*=[ ]*\):*/\1/
22394 cat >>$CONFIG_STATUS <<\_ACEOF
22395 fi # test -n "$CONFIG_FILES"
22398 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22401 :[FHLC]) ac_mode=$ac_tag; continue;;
22403 case $ac_mode$ac_tag in
22405 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22406 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22407 { (exit 1); exit 1; }; };;
22408 :[FH]-) ac_tag=-:-;;
22409 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22426 -) ac_f="$tmp/stdin";;
22427 *) # Look for the file first in the build tree, then in the source tree
22428 # (if the path is not absolute). The absolute path cannot be DOS-style,
22429 # because $ac_f cannot contain `:'.
22433 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22435 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22436 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22437 { (exit 1); exit 1; }; };;
22439 ac_file_inputs="$ac_file_inputs $ac_f"
22442 # Let's still pretend it is `configure' which instantiates (i.e., don't
22443 # use $as_me), people would be surprised to read:
22444 # /* config.h. Generated by config.status. */
22445 configure_input="Generated from "`IFS=:
22446 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22447 if test x"$ac_file" != x-; then
22448 configure_input="$ac_file. $configure_input"
22449 { echo "$as_me:$LINENO: creating $ac_file" >&5
22450 echo "$as_me: creating $ac_file" >&6;}
22454 *:-:* | *:-) cat >"$tmp/stdin";;
22459 ac_dir=`$as_dirname -- "$ac_file" ||
22460 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22461 X"$ac_file" : 'X\(//\)[^/]' \| \
22462 X"$ac_file" : 'X\(//\)$' \| \
22463 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22469 /^X\(\/\/\)[^/].*/{
22484 -*) as_dir=./$as_dir;;
22486 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22490 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22491 *) as_qdir=$as_dir;;
22493 as_dirs="'$as_qdir' $as_dirs"
22494 as_dir=`$as_dirname -- "$as_dir" ||
22495 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22496 X"$as_dir" : 'X\(//\)[^/]' \| \
22497 X"$as_dir" : 'X\(//\)$' \| \
22498 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22500 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22504 /^X\(\/\/\)[^/].*/{
22517 test -d "$as_dir" && break
22519 test -z "$as_dirs" || eval "mkdir $as_dirs"
22520 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22521 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22522 { (exit 1); exit 1; }; }; }
22526 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22528 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22529 # A ".." for each directory in $ac_dir_suffix.
22530 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22531 case $ac_top_builddir_sub in
22532 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22533 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22536 ac_abs_top_builddir=$ac_pwd
22537 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22538 # for backward compatibility:
22539 ac_top_builddir=$ac_top_build_prefix
22542 .) # We are building in place.
22544 ac_top_srcdir=$ac_top_builddir_sub
22545 ac_abs_top_srcdir=$ac_pwd ;;
22546 [\\/]* | ?:[\\/]* ) # Absolute name.
22547 ac_srcdir=$srcdir$ac_dir_suffix;
22548 ac_top_srcdir=$srcdir
22549 ac_abs_top_srcdir=$srcdir ;;
22550 *) # Relative name.
22551 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22552 ac_top_srcdir=$ac_top_build_prefix$srcdir
22553 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22555 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22565 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22566 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22570 cat >>$CONFIG_STATUS <<\_ACEOF
22571 # If the template does not know about datarootdir, expand it.
22572 # FIXME: This hack should be removed a few years after 2.60.
22573 ac_datarootdir_hack=; ac_datarootdir_seen=
22575 case `sed -n '/datarootdir/ {
22584 ' $ac_file_inputs` in
22585 *datarootdir*) ac_datarootdir_seen=yes;;
22586 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22587 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22588 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22590 cat >>$CONFIG_STATUS <<_ACEOF
22591 ac_datarootdir_hack='
22592 s&@datadir@&$datadir&g
22593 s&@docdir@&$docdir&g
22594 s&@infodir@&$infodir&g
22595 s&@localedir@&$localedir&g
22596 s&@mandir@&$mandir&g
22597 s&\\\${datarootdir}&$datarootdir&g' ;;
22601 # Neutralize VPATH when `$srcdir' = `.'.
22602 # Shell code in configure.ac might set extrasub.
22603 # FIXME: do we really want to maintain this feature?
22604 cat >>$CONFIG_STATUS <<_ACEOF
22608 cat >>$CONFIG_STATUS <<\_ACEOF
22610 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22611 s&@configure_input@&$configure_input&;t t
22612 s&@top_builddir@&$ac_top_builddir_sub&;t t
22613 s&@srcdir@&$ac_srcdir&;t t
22614 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22615 s&@top_srcdir@&$ac_top_srcdir&;t t
22616 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22617 s&@builddir@&$ac_builddir&;t t
22618 s&@abs_builddir@&$ac_abs_builddir&;t t
22619 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22620 s&@INSTALL@&$ac_INSTALL&;t t
22621 $ac_datarootdir_hack
22622 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22624 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22625 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22626 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22627 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22628 which seems to be undefined. Please make sure it is defined." >&5
22629 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22630 which seems to be undefined. Please make sure it is defined." >&2;}
22634 -) cat "$tmp/out"; rm -f "$tmp/out";;
22635 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22644 # Transform confdefs.h into a sed script `conftest.defines', that
22645 # substitutes the proper values into config.h.in to produce config.h.
22646 rm -f conftest.defines conftest.tail
22647 # First, append a space to every undef/define line, to ease matching.
22648 echo 's/$/ /' >conftest.defines
22649 # Then, protect against being on the right side of a sed subst, or in
22650 # an unquoted here document, in config.status. If some macros were
22651 # called several times there might be several #defines for the same
22652 # symbol, which is useless. But do not sort them, since the last
22653 # AC_DEFINE must be honored.
22654 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22655 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22656 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22657 # PARAMS is the parameter list in the macro definition--in most cases, it's
22658 # just an empty string.
22659 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22660 ac_dB='\\)[ (].*,\\1define\\2'
22668 s/^[ ]*#[ ]*define[ ][ ]*//
22673 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22674 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22675 ' >>conftest.defines
22677 # Remove the space that was appended to ease matching.
22678 # Then replace #undef with comments. This is necessary, for
22679 # example, in the case of _POSIX_SOURCE, which is predefined and required
22680 # on some systems where configure will not decide to define it.
22681 # (The regexp can be short, since the line contains either #define or #undef.)
22683 s,^[ #]*u.*,/* & */,' >>conftest.defines
22685 # Break up conftest.defines:
22686 ac_max_sed_lines=50
22688 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22689 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22690 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22692 ac_in='$ac_file_inputs'
22693 ac_out='"$tmp/out1"'
22694 ac_nxt='"$tmp/out2"'
22698 # Write a here document:
22699 cat >>$CONFIG_STATUS <<_ACEOF
22700 # First, check the format of the line:
22701 cat >"\$tmp/defines.sed" <<\\CEOF
22702 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22703 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22707 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22709 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22710 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22711 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22712 grep . conftest.tail >/dev/null || break
22713 rm -f conftest.defines
22714 mv conftest.tail conftest.defines
22716 rm -f conftest.defines conftest.tail
22718 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22719 cat >>$CONFIG_STATUS <<\_ACEOF
22720 if test x"$ac_file" != x-; then
22721 echo "/* $configure_input */" >"$tmp/config.h"
22722 cat "$ac_result" >>"$tmp/config.h"
22723 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22724 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22725 echo "$as_me: $ac_file is unchanged" >&6;}
22728 mv "$tmp/config.h" $ac_file
22731 echo "/* $configure_input */"
22737 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22738 echo "$as_me: executing $ac_file commands" >&6;}
22743 case $ac_file$ac_mode in
22744 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22745 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22746 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22747 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22748 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22749 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22750 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22751 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22752 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22753 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22754 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22755 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22756 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22757 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22758 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22759 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22760 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22761 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22762 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22763 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22764 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22765 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22766 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22767 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22768 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22769 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22775 { (exit 0); exit 0; }
22777 chmod +x $CONFIG_STATUS
22778 ac_clean_files=$ac_clean_files_save
22781 # configure is writing to config.log, and then calls config.status.
22782 # config.status does its own redirection, appending to config.log.
22783 # Unfortunately, on DOS this fails, as config.log is still kept open
22784 # by configure, so config.status won't be able to write to it; its
22785 # output is simply discarded. So we exec the FD to /dev/null,
22786 # effectively closing config.log, so it can be properly (re)opened and
22787 # appended to by config.status. When coming back to configure, we
22788 # need to make the FD available again.
22789 if test "$no_create" != yes; then
22791 ac_config_status_args=
22792 test "$silent" = yes &&
22793 ac_config_status_args="$ac_config_status_args --quiet"
22795 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22797 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22798 # would make configure fail if this is the last instruction.
22799 $ac_cs_success || { (exit 1); exit 1; }
22803 # CONFIG_SUBDIRS section.
22805 if test "$no_recursion" != yes; then
22807 # Remove --cache-file and --srcdir arguments so they do not pile up.
22808 ac_sub_configure_args=
22810 eval "set x $ac_configure_args"
22814 if test -n "$ac_prev"; then
22819 -cache-file | --cache-file | --cache-fil | --cache-fi \
22820 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22821 ac_prev=cache_file ;;
22822 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22823 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22826 --config-cache | -C)
22828 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22830 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22832 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22834 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22838 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22840 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22844 # Always prepend --prefix to ensure using the same prefix
22845 # in subdir configurations.
22846 ac_arg="--prefix=$prefix"
22848 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22850 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22853 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22855 # Do not complain, so a configure script can configure whichever
22856 # parts of a large source tree are present.
22857 test -d "$srcdir/$ac_dir" || continue
22859 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22860 echo "$as_me:$LINENO: $ac_msg" >&5
22864 -*) as_dir=./$as_dir;;
22866 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22870 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22871 *) as_qdir=$as_dir;;
22873 as_dirs="'$as_qdir' $as_dirs"
22874 as_dir=`$as_dirname -- "$as_dir" ||
22875 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22876 X"$as_dir" : 'X\(//\)[^/]' \| \
22877 X"$as_dir" : 'X\(//\)$' \| \
22878 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22880 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22884 /^X\(\/\/\)[^/].*/{
22897 test -d "$as_dir" && break
22899 test -z "$as_dirs" || eval "mkdir $as_dirs"
22900 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22901 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22902 { (exit 1); exit 1; }; }; }
22906 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22908 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22909 # A ".." for each directory in $ac_dir_suffix.
22910 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22911 case $ac_top_builddir_sub in
22912 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22913 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22916 ac_abs_top_builddir=$ac_pwd
22917 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22918 # for backward compatibility:
22919 ac_top_builddir=$ac_top_build_prefix
22922 .) # We are building in place.
22924 ac_top_srcdir=$ac_top_builddir_sub
22925 ac_abs_top_srcdir=$ac_pwd ;;
22926 [\\/]* | ?:[\\/]* ) # Absolute name.
22927 ac_srcdir=$srcdir$ac_dir_suffix;
22928 ac_top_srcdir=$srcdir
22929 ac_abs_top_srcdir=$srcdir ;;
22930 *) # Relative name.
22931 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22932 ac_top_srcdir=$ac_top_build_prefix$srcdir
22933 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22935 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22940 # Check for guested configure; otherwise get Cygnus style configure.
22941 if test -f "$ac_srcdir/configure.gnu"; then
22942 ac_sub_configure=$ac_srcdir/configure.gnu
22943 elif test -f "$ac_srcdir/configure"; then
22944 ac_sub_configure=$ac_srcdir/configure
22945 elif test -f "$ac_srcdir/configure.in"; then
22946 # This should be Cygnus configure.
22947 ac_sub_configure=$ac_aux_dir/configure
22949 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22950 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22954 # The recursion is here.
22955 if test -n "$ac_sub_configure"; then
22956 # Make the cache file name correct relative to the subdirectory.
22957 case $cache_file in
22958 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22959 *) # Relative name.
22960 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22963 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22964 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22965 # The eval makes quoting arguments work.
22966 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22967 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22968 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22969 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22970 { (exit 1); exit 1; }; }