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
790 ENABLE_VISIBILITY_INLINES_HIDDEN
796 ac_precious_vars='build_alias
807 ac_subdirs_all='projects/llvm-gcc
811 projects/llvm-poolalloc
814 projects/llvm-stacker
822 # Initialize some variables set by options.
824 ac_init_version=false
825 # The variables have the same names as the options, with
826 # dashes changed to underlines.
834 program_transform_name=s,x,x,
842 # Installation directory options.
843 # These are left unexpanded so users can "make install exec_prefix=/foo"
844 # and all the variables that are supposed to be based on exec_prefix
845 # by default will actually change.
846 # Use braces instead of parens because sh, perl, etc. also accept them.
847 # (The list follows the same order as the GNU Coding Standards.)
848 bindir='${exec_prefix}/bin'
849 sbindir='${exec_prefix}/sbin'
850 libexecdir='${exec_prefix}/libexec'
851 datarootdir='${prefix}/share'
852 datadir='${datarootdir}'
853 sysconfdir='${prefix}/etc'
854 sharedstatedir='${prefix}/com'
855 localstatedir='${prefix}/var'
856 includedir='${prefix}/include'
857 oldincludedir='/usr/include'
858 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
859 infodir='${datarootdir}/info'
864 libdir='${exec_prefix}/lib'
865 localedir='${datarootdir}/locale'
866 mandir='${datarootdir}/man'
872 # If the previous option needs an argument, assign it.
873 if test -n "$ac_prev"; then
874 eval $ac_prev=\$ac_option
880 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
884 # Accept the important Cygnus configure options, so we can diagnose typos.
886 case $ac_dashdash$ac_option in
890 -bindir | --bindir | --bindi | --bind | --bin | --bi)
892 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
895 -build | --build | --buil | --bui | --bu)
896 ac_prev=build_alias ;;
897 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
898 build_alias=$ac_optarg ;;
900 -cache-file | --cache-file | --cache-fil | --cache-fi \
901 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
902 ac_prev=cache_file ;;
903 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
904 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
905 cache_file=$ac_optarg ;;
908 cache_file=config.cache ;;
910 -datadir | --datadir | --datadi | --datad)
912 -datadir=* | --datadir=* | --datadi=* | --datad=*)
913 datadir=$ac_optarg ;;
915 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
916 | --dataroo | --dataro | --datar)
917 ac_prev=datarootdir ;;
918 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
919 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
920 datarootdir=$ac_optarg ;;
922 -disable-* | --disable-*)
923 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
924 # Reject names that are not valid shell variable names.
925 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
926 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
927 { (exit 1); exit 1; }; }
928 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
929 eval enable_$ac_feature=no ;;
931 -docdir | --docdir | --docdi | --doc | --do)
933 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
936 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
938 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
941 -enable-* | --enable-*)
942 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
943 # Reject names that are not valid shell variable names.
944 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
945 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
946 { (exit 1); exit 1; }; }
947 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
948 eval enable_$ac_feature=\$ac_optarg ;;
950 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952 | --exec | --exe | --ex)
953 ac_prev=exec_prefix ;;
954 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956 | --exec=* | --exe=* | --ex=*)
957 exec_prefix=$ac_optarg ;;
959 -gas | --gas | --ga | --g)
960 # Obsolete; use --with-gas.
963 -help | --help | --hel | --he | -h)
965 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966 ac_init_help=recursive ;;
967 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968 ac_init_help=short ;;
970 -host | --host | --hos | --ho)
971 ac_prev=host_alias ;;
972 -host=* | --host=* | --hos=* | --ho=*)
973 host_alias=$ac_optarg ;;
975 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979 htmldir=$ac_optarg ;;
981 -includedir | --includedir | --includedi | --included | --include \
982 | --includ | --inclu | --incl | --inc)
983 ac_prev=includedir ;;
984 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985 | --includ=* | --inclu=* | --incl=* | --inc=*)
986 includedir=$ac_optarg ;;
988 -infodir | --infodir | --infodi | --infod | --info | --inf)
990 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991 infodir=$ac_optarg ;;
993 -libdir | --libdir | --libdi | --libd)
995 -libdir=* | --libdir=* | --libdi=* | --libd=*)
998 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999 | --libexe | --libex | --libe)
1000 ac_prev=libexecdir ;;
1001 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002 | --libexe=* | --libex=* | --libe=*)
1003 libexecdir=$ac_optarg ;;
1005 -localedir | --localedir | --localedi | --localed | --locale)
1006 ac_prev=localedir ;;
1007 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008 localedir=$ac_optarg ;;
1010 -localstatedir | --localstatedir | --localstatedi | --localstated \
1011 | --localstate | --localstat | --localsta | --localst | --locals)
1012 ac_prev=localstatedir ;;
1013 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1014 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1015 localstatedir=$ac_optarg ;;
1017 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020 mandir=$ac_optarg ;;
1022 -nfp | --nfp | --nf)
1023 # Obsolete; use --without-fp.
1026 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027 | --no-cr | --no-c | -n)
1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1034 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036 | --oldin | --oldi | --old | --ol | --o)
1037 ac_prev=oldincludedir ;;
1038 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041 oldincludedir=$ac_optarg ;;
1043 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046 prefix=$ac_optarg ;;
1048 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049 | --program-pre | --program-pr | --program-p)
1050 ac_prev=program_prefix ;;
1051 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053 program_prefix=$ac_optarg ;;
1055 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056 | --program-suf | --program-su | --program-s)
1057 ac_prev=program_suffix ;;
1058 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060 program_suffix=$ac_optarg ;;
1062 -program-transform-name | --program-transform-name \
1063 | --program-transform-nam | --program-transform-na \
1064 | --program-transform-n | --program-transform- \
1065 | --program-transform | --program-transfor \
1066 | --program-transfo | --program-transf \
1067 | --program-trans | --program-tran \
1068 | --progr-tra | --program-tr | --program-t)
1069 ac_prev=program_transform_name ;;
1070 -program-transform-name=* | --program-transform-name=* \
1071 | --program-transform-nam=* | --program-transform-na=* \
1072 | --program-transform-n=* | --program-transform-=* \
1073 | --program-transform=* | --program-transfor=* \
1074 | --program-transfo=* | --program-transf=* \
1075 | --program-trans=* | --program-tran=* \
1076 | --progr-tra=* | --program-tr=* | --program-t=*)
1077 program_transform_name=$ac_optarg ;;
1079 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082 pdfdir=$ac_optarg ;;
1084 -psdir | --psdir | --psdi | --psd | --ps)
1086 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090 | -silent | --silent | --silen | --sile | --sil)
1093 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1095 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1097 sbindir=$ac_optarg ;;
1099 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1100 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1101 | --sharedst | --shareds | --shared | --share | --shar \
1103 ac_prev=sharedstatedir ;;
1104 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1105 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1106 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1108 sharedstatedir=$ac_optarg ;;
1110 -site | --site | --sit)
1112 -site=* | --site=* | --sit=*)
1115 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1117 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1118 srcdir=$ac_optarg ;;
1120 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1121 | --syscon | --sysco | --sysc | --sys | --sy)
1122 ac_prev=sysconfdir ;;
1123 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1124 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1125 sysconfdir=$ac_optarg ;;
1127 -target | --target | --targe | --targ | --tar | --ta | --t)
1128 ac_prev=target_alias ;;
1129 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1130 target_alias=$ac_optarg ;;
1132 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1135 -version | --version | --versio | --versi | --vers | -V)
1136 ac_init_version=: ;;
1139 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1142 { echo "$as_me: error: invalid package name: $ac_package" >&2
1143 { (exit 1); exit 1; }; }
1144 ac_package=`echo $ac_package| sed 's/-/_/g'`
1145 eval with_$ac_package=\$ac_optarg ;;
1147 -without-* | --without-*)
1148 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1151 { echo "$as_me: error: invalid package name: $ac_package" >&2
1152 { (exit 1); exit 1; }; }
1153 ac_package=`echo $ac_package | sed 's/-/_/g'`
1154 eval with_$ac_package=no ;;
1157 # Obsolete; use --with-x.
1160 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1161 | --x-incl | --x-inc | --x-in | --x-i)
1162 ac_prev=x_includes ;;
1163 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1164 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1165 x_includes=$ac_optarg ;;
1167 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1168 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1169 ac_prev=x_libraries ;;
1170 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1171 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1172 x_libraries=$ac_optarg ;;
1174 -*) { echo "$as_me: error: unrecognized option: $ac_option
1175 Try \`$0 --help' for more information." >&2
1176 { (exit 1); exit 1; }; }
1180 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181 # Reject names that are not valid shell variable names.
1182 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1183 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1184 { (exit 1); exit 1; }; }
1185 eval $ac_envvar=\$ac_optarg
1186 export $ac_envvar ;;
1189 # FIXME: should be removed in autoconf 3.0.
1190 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1191 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1192 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1193 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1199 if test -n "$ac_prev"; then
1200 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1201 { echo "$as_me: error: missing argument to $ac_option" >&2
1202 { (exit 1); exit 1; }; }
1205 # Be sure to have absolute directory names.
1206 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1207 datadir sysconfdir sharedstatedir localstatedir includedir \
1208 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1209 libdir localedir mandir
1211 eval ac_val=\$$ac_var
1213 [\\/$]* | ?:[\\/]* ) continue;;
1214 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1216 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1217 { (exit 1); exit 1; }; }
1220 # There might be people who depend on the old broken behavior: `$host'
1221 # used to hold the argument of --host etc.
1222 # FIXME: To remove some day.
1225 target=$target_alias
1227 # FIXME: To remove some day.
1228 if test "x$host_alias" != x; then
1229 if test "x$build_alias" = x; then
1230 cross_compiling=maybe
1231 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1232 If a cross compiler is detected then cross compile mode will be used." >&2
1233 elif test "x$build_alias" != "x$host_alias"; then
1239 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1241 test "$silent" = yes && exec 6>/dev/null
1244 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1245 ac_ls_di=`ls -di .` &&
1246 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1247 { echo "$as_me: error: Working directory cannot be determined" >&2
1248 { (exit 1); exit 1; }; }
1249 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1250 { echo "$as_me: error: pwd does not report name of working directory" >&2
1251 { (exit 1); exit 1; }; }
1254 # Find the source files, if location was not specified.
1255 if test -z "$srcdir"; then
1256 ac_srcdir_defaulted=yes
1257 # Try the directory containing this script, then the parent directory.
1258 ac_confdir=`$as_dirname -- "$0" ||
1259 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260 X"$0" : 'X\(//\)[^/]' \| \
1261 X"$0" : 'X\(//\)$' \| \
1262 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1282 if test ! -r "$srcdir/$ac_unique_file"; then
1286 ac_srcdir_defaulted=no
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1290 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1291 { (exit 1); exit 1; }; }
1293 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1295 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1296 { (exit 1); exit 1; }; }
1298 # When building in place, set srcdir=.
1299 if test "$ac_abs_confdir" = "$ac_pwd"; then
1302 # Remove unnecessary trailing slashes from srcdir.
1303 # Double slashes in file names in object file debugging info
1304 # mess up M-x gdb in Emacs.
1306 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1308 for ac_var in $ac_precious_vars; do
1309 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_env_${ac_var}_value=\$${ac_var}
1311 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1312 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1316 # Report the --help message.
1318 if test "$ac_init_help" = "long"; then
1319 # Omit some internal or obsolete options to make the list less imposing.
1320 # This message is too long to be a string in the A/UX 3.1 sh.
1322 \`configure' configures LLVM 3.2svn to adapt to many kinds of systems.
1324 Usage: $0 [OPTION]... [VAR=VALUE]...
1326 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1327 VAR=VALUE. See below for descriptions of some of the useful variables.
1329 Defaults for the options are specified in brackets.
1332 -h, --help display this help and exit
1333 --help=short display options specific to this package
1334 --help=recursive display the short help of all the included packages
1335 -V, --version display version information and exit
1336 -q, --quiet, --silent do not print \`checking...' messages
1337 --cache-file=FILE cache test results in FILE [disabled]
1338 -C, --config-cache alias for \`--cache-file=config.cache'
1339 -n, --no-create do not create output files
1340 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1342 Installation directories:
1343 --prefix=PREFIX install architecture-independent files in PREFIX
1344 [$ac_default_prefix]
1345 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1348 By default, \`make install' will install all the files in
1349 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1350 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1351 for instance \`--prefix=\$HOME'.
1353 For better control, use the options below.
1355 Fine tuning of the installation directories:
1356 --bindir=DIR user executables [EPREFIX/bin]
1357 --sbindir=DIR system admin executables [EPREFIX/sbin]
1358 --libexecdir=DIR program executables [EPREFIX/libexec]
1359 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1360 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1361 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1362 --libdir=DIR object code libraries [EPREFIX/lib]
1363 --includedir=DIR C header files [PREFIX/include]
1364 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1365 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1366 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1367 --infodir=DIR info documentation [DATAROOTDIR/info]
1368 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1369 --mandir=DIR man documentation [DATAROOTDIR/man]
1370 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1371 --htmldir=DIR html documentation [DOCDIR]
1372 --dvidir=DIR dvi documentation [DOCDIR]
1373 --pdfdir=DIR pdf documentation [DOCDIR]
1374 --psdir=DIR ps documentation [DOCDIR]
1380 --build=BUILD configure for building on BUILD [guessed]
1381 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1382 --target=TARGET configure for building compilers for TARGET [HOST]
1386 if test -n "$ac_init_help"; then
1387 case $ac_init_help in
1388 short | recursive ) echo "Configuration of LLVM 3.2svn:";;
1393 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1394 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1395 --enable-polly Use polly if available (default is YES)
1396 --enable-libcpp Use libc++ if available (default is NO)
1397 --enable-cxx11 Use c++11 if available (default is NO)
1398 --enable-optimized Compile with optimizations enabled (default is NO)
1399 --enable-profiling Compile with profiling enabled (default is NO)
1400 --enable-assertions Compile with assertion checks enabled (default is
1402 --enable-werror Compile with -Werror enabled (default is NO)
1403 --enable-expensive-checks
1404 Compile with expensive debug checks enabled (default
1406 --enable-debug-runtime Build runtime libs with debug symbols (default is
1408 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1409 optimization is on and YES if it's off)
1410 --enable-keep-symbols Do not strip installed executables)
1411 --enable-jit Enable Just In Time Compiling (default is YES)
1412 --enable-docs Build documents (default is YES)
1413 --enable-doxygen Build doxygen documentation (default is NO)
1414 --enable-threads Use threads if available (default is YES)
1415 --enable-pthreads Use pthreads if available (default is YES)
1416 --enable-pic Build LLVM with Position Independent Code (default
1418 --enable-shared Build a shared library and link tools against it
1420 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1421 Win32 DLL (default is NO)
1422 --enable-timestamps Enable embedding timestamp information in build
1424 --enable-backtraces Enable embedding backtraces on crash (default is
1426 --enable-targets Build specific host targets: all or
1427 target1,target2,... Valid targets are: host, x86,
1428 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1429 xcore, msp430, nvptx, and cpp (default=all)
1430 --enable-experimental-targets
1431 Build experimental host targets: disable or
1432 target1,target2,... (default=disable)
1433 --enable-bindings Build specific language bindings:
1434 all,auto,none,{binding-name} (default=auto)
1435 --enable-libffi Check for the presence of libffi (default is NO)
1436 --enable-ltdl-install install libltdl
1439 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1440 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1441 --with-optimize-option Select the compiler options to use for optimized
1443 --with-extra-options Specify additional options to compile LLVM with
1444 --with-extra-ld-options Specify additional options to link LLVM with
1445 --with-ocaml-libdir Specify install location for ocaml bindings (default
1447 --with-clang-srcdir Directory to the out-of-tree Clang source
1448 --with-clang-resource-dir
1449 Relative directory from the Clang binary for
1451 --with-c-include-dirs Colon separated list of directories clang will
1453 --with-gcc-toolchain Directory where gcc is installed.
1454 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1455 --with-binutils-include Specify path to binutils/include/ containing
1456 plugin-api.h file for gold plugin.
1457 --with-bug-report-url Specify the URL where bug reports should be
1458 submitted (default=http://llvm.org/bugs/)
1459 --with-internal-prefix Installation directory for internal files
1460 --with-udis86=<path> Use udis86 external x86 disassembler library
1461 --with-oprofile=<prefix>
1462 Tell OProfile >= 0.9.4 how to symbolize JIT output
1463 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1466 Some influential environment variables:
1467 CC C compiler command
1468 CFLAGS C compiler flags
1469 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1470 nonstandard directory <lib dir>
1471 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1472 you have headers in a nonstandard directory <include dir>
1473 CXX C++ compiler command
1474 CXXFLAGS C++ compiler flags
1477 Use these variables to override the choices made by `configure' or to help
1478 it to find libraries and programs with nonstandard names/locations.
1480 Report bugs to <http://llvm.org/bugs/>.
1485 if test "$ac_init_help" = "recursive"; then
1486 # If there are subdirs, report their specific --help.
1487 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1488 test -d "$ac_dir" || continue
1492 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1495 # A ".." for each directory in $ac_dir_suffix.
1496 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1497 case $ac_top_builddir_sub in
1498 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1502 ac_abs_top_builddir=$ac_pwd
1503 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1504 # for backward compatibility:
1505 ac_top_builddir=$ac_top_build_prefix
1508 .) # We are building in place.
1510 ac_top_srcdir=$ac_top_builddir_sub
1511 ac_abs_top_srcdir=$ac_pwd ;;
1512 [\\/]* | ?:[\\/]* ) # Absolute name.
1513 ac_srcdir=$srcdir$ac_dir_suffix;
1514 ac_top_srcdir=$srcdir
1515 ac_abs_top_srcdir=$srcdir ;;
1517 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1518 ac_top_srcdir=$ac_top_build_prefix$srcdir
1519 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1521 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1523 cd "$ac_dir" || { ac_status=$?; continue; }
1524 # Check for guested configure.
1525 if test -f "$ac_srcdir/configure.gnu"; then
1527 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1528 elif test -f "$ac_srcdir/configure"; then
1530 $SHELL "$ac_srcdir/configure" --help=recursive
1532 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1534 cd "$ac_pwd" || { ac_status=$?; break; }
1538 test -n "$ac_init_help" && exit $ac_status
1539 if $ac_init_version; then
1541 LLVM configure 3.2svn
1542 generated by GNU Autoconf 2.60
1544 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1545 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1546 This configure script is free software; the Free Software Foundation
1547 gives unlimited permission to copy, distribute and modify it.
1549 Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
1553 cat >config.log <<_ACEOF
1554 This file contains any messages produced by compilers while
1555 running configure, to aid debugging if configure makes a mistake.
1557 It was created by LLVM $as_me 3.2svn, which was
1558 generated by GNU Autoconf 2.60. Invocation command line was
1570 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1571 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1572 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1573 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1574 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1576 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1577 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1579 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1580 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1581 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1582 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1583 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1584 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1585 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1593 test -z "$as_dir" && as_dir=.
1594 echo "PATH: $as_dir"
1610 # Keep a trace of the command line.
1611 # Strip out --no-create and --no-recursion so they do not pile up.
1612 # Strip out --silent because we don't want to record it for future runs.
1613 # Also quote any args containing shell meta-characters.
1614 # Make two passes to allow for proper duplicate-argument suppression.
1618 ac_must_keep_next=false
1624 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1625 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1626 | -silent | --silent | --silen | --sile | --sil)
1629 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1632 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1634 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1635 if test $ac_must_keep_next = true; then
1636 ac_must_keep_next=false # Got value, back to normal.
1639 *=* | --config-cache | -C | -disable-* | --disable-* \
1640 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1641 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1642 | -with-* | --with-* | -without-* | --without-* | --x)
1643 case "$ac_configure_args0 " in
1644 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1647 -* ) ac_must_keep_next=true ;;
1650 ac_configure_args="$ac_configure_args '$ac_arg'"
1655 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1656 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1658 # When interrupted or exit'd, cleanup temporary files, and complete
1659 # config.log. We remove comments because anyway the quotes in there
1660 # would cause problems or look ugly.
1661 # WARNING: Use '\'' to represent an apostrophe within the trap.
1662 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1663 trap 'exit_status=$?
1664 # Save into config.log some information that might help in debugging.
1669 ## ---------------- ##
1670 ## Cache variables. ##
1671 ## ---------------- ##
1674 # The following way of writing the cache mishandles newlines in values,
1676 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1677 eval ac_val=\$$ac_var
1681 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1682 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1685 _ | IFS | as_nl) ;; #(
1686 *) $as_unset $ac_var ;;
1691 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1692 *${as_nl}ac_space=\ *)
1694 "s/'\''/'\''\\\\'\'''\''/g;
1695 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1698 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1706 ## ----------------- ##
1707 ## Output variables. ##
1708 ## ----------------- ##
1711 for ac_var in $ac_subst_vars
1713 eval ac_val=\$$ac_var
1715 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1717 echo "$ac_var='\''$ac_val'\''"
1721 if test -n "$ac_subst_files"; then
1723 ## ------------------- ##
1724 ## File substitutions. ##
1725 ## ------------------- ##
1728 for ac_var in $ac_subst_files
1730 eval ac_val=\$$ac_var
1732 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1734 echo "$ac_var='\''$ac_val'\''"
1739 if test -s confdefs.h; then
1749 test "$ac_signal" != 0 &&
1750 echo "$as_me: caught signal $ac_signal"
1751 echo "$as_me: exit $exit_status"
1753 rm -f core *.core core.conftest.* &&
1754 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1757 for ac_signal in 1 2 13 15; do
1758 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1762 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1763 rm -f -r conftest* confdefs.h
1765 # Predefined preprocessor variables.
1767 cat >>confdefs.h <<_ACEOF
1768 #define PACKAGE_NAME "$PACKAGE_NAME"
1772 cat >>confdefs.h <<_ACEOF
1773 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_STRING "$PACKAGE_STRING"
1787 cat >>confdefs.h <<_ACEOF
1788 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1792 # Let the site file select an alternate cache file if it wants to.
1793 # Prefer explicitly selected file to automatically selected ones.
1794 if test -n "$CONFIG_SITE"; then
1795 set x "$CONFIG_SITE"
1796 elif test "x$prefix" != xNONE; then
1797 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1799 set x "$ac_default_prefix/share/config.site" \
1800 "$ac_default_prefix/etc/config.site"
1805 if test -r "$ac_site_file"; then
1806 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1807 echo "$as_me: loading site script $ac_site_file" >&6;}
1808 sed 's/^/| /' "$ac_site_file" >&5
1813 if test -r "$cache_file"; then
1814 # Some versions of bash will fail to source /dev/null (special
1815 # files actually), so we avoid doing that.
1816 if test -f "$cache_file"; then
1817 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1818 echo "$as_me: loading cache $cache_file" >&6;}
1820 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1821 *) . "./$cache_file";;
1825 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1826 echo "$as_me: creating cache $cache_file" >&6;}
1830 # Check that the precious variables saved in the cache have kept the same
1832 ac_cache_corrupted=false
1833 for ac_var in $ac_precious_vars; do
1834 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1835 eval ac_new_set=\$ac_env_${ac_var}_set
1836 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1837 eval ac_new_val=\$ac_env_${ac_var}_value
1838 case $ac_old_set,$ac_new_set in
1840 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1841 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1842 ac_cache_corrupted=: ;;
1844 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1845 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1846 ac_cache_corrupted=: ;;
1849 if test "x$ac_old_val" != "x$ac_new_val"; then
1850 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1851 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1852 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1853 echo "$as_me: former value: $ac_old_val" >&2;}
1854 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1855 echo "$as_me: current value: $ac_new_val" >&2;}
1856 ac_cache_corrupted=:
1859 # Pass precious variables to config.status.
1860 if test "$ac_new_set" = set; then
1862 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1863 *) ac_arg=$ac_var=$ac_new_val ;;
1865 case " $ac_configure_args " in
1866 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1867 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1871 if $ac_cache_corrupted; then
1872 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1873 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1874 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1875 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1876 { (exit 1); exit 1; }; }
1904 ac_cpp='$CPP $CPPFLAGS'
1905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1911 cat >>confdefs.h <<\_ACEOF
1912 #define LLVM_VERSION_MAJOR 3
1916 cat >>confdefs.h <<\_ACEOF
1917 #define LLVM_VERSION_MINOR 2
1921 LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
1930 for ac_dir in autoconf "$srcdir"/autoconf; do
1931 if test -f "$ac_dir/install-sh"; then
1933 ac_install_sh="$ac_aux_dir/install-sh -c"
1935 elif test -f "$ac_dir/install.sh"; then
1937 ac_install_sh="$ac_aux_dir/install.sh -c"
1939 elif test -f "$ac_dir/shtool"; then
1941 ac_install_sh="$ac_aux_dir/shtool install -c"
1945 if test -z "$ac_aux_dir"; then
1946 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1947 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1948 { (exit 1); exit 1; }; }
1951 # These three variables are undocumented and unsupported,
1952 # and are intended to be withdrawn in a future Autoconf release.
1953 # They can cause serious problems if a builder's source tree is in a directory
1954 # whose full name contains unusual characters.
1955 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1956 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1957 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1961 if test ${srcdir} != "." ; then
1962 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1963 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1964 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1965 { (exit 1); exit 1; }; }
1970 ac_cpp='$CPP $CPPFLAGS'
1971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1974 if test -n "$ac_tool_prefix"; then
1975 for ac_prog in clang llvm-gcc gcc
1977 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1978 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1981 if test "${ac_cv_prog_CC+set}" = set; then
1982 echo $ECHO_N "(cached) $ECHO_C" >&6
1984 if test -n "$CC"; then
1985 ac_cv_prog_CC="$CC" # Let the user override the test.
1987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1991 test -z "$as_dir" && as_dir=.
1992 for ac_exec_ext in '' $ac_executable_extensions; do
1993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1994 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2005 if test -n "$CC"; then
2006 { echo "$as_me:$LINENO: result: $CC" >&5
2007 echo "${ECHO_T}$CC" >&6; }
2009 { echo "$as_me:$LINENO: result: no" >&5
2010 echo "${ECHO_T}no" >&6; }
2014 test -n "$CC" && break
2017 if test -z "$CC"; then
2019 for ac_prog in clang llvm-gcc gcc
2021 # Extract the first word of "$ac_prog", so it can be a program name with args.
2022 set dummy $ac_prog; ac_word=$2
2023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2025 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2026 echo $ECHO_N "(cached) $ECHO_C" >&6
2028 if test -n "$ac_ct_CC"; then
2029 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2035 test -z "$as_dir" && as_dir=.
2036 for ac_exec_ext in '' $ac_executable_extensions; do
2037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2038 ac_cv_prog_ac_ct_CC="$ac_prog"
2039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2048 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2049 if test -n "$ac_ct_CC"; then
2050 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2051 echo "${ECHO_T}$ac_ct_CC" >&6; }
2053 { echo "$as_me:$LINENO: result: no" >&5
2054 echo "${ECHO_T}no" >&6; }
2058 test -n "$ac_ct_CC" && break
2061 if test "x$ac_ct_CC" = x; then
2064 case $cross_compiling:$ac_tool_warned in
2066 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2067 whose name does not start with the host triplet. If you think this
2068 configuration is useful to you, please write to autoconf@gnu.org." >&5
2069 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2070 whose name does not start with the host triplet. If you think this
2071 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2072 ac_tool_warned=yes ;;
2079 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2080 See \`config.log' for more details." >&5
2081 echo "$as_me: error: no acceptable C compiler found in \$PATH
2082 See \`config.log' for more details." >&2;}
2083 { (exit 1); exit 1; }; }
2085 # Provide some information about the compiler.
2086 echo "$as_me:$LINENO: checking for C compiler version" >&5
2087 ac_compiler=`set X $ac_compile; echo $2`
2088 { (ac_try="$ac_compiler --version >&5"
2090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2091 *) ac_try_echo=$ac_try;;
2093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2094 (eval "$ac_compiler --version >&5") 2>&5
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }
2098 { (ac_try="$ac_compiler -v >&5"
2100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2101 *) ac_try_echo=$ac_try;;
2103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2104 (eval "$ac_compiler -v >&5") 2>&5
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); }
2108 { (ac_try="$ac_compiler -V >&5"
2110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2111 *) ac_try_echo=$ac_try;;
2113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2114 (eval "$ac_compiler -V >&5") 2>&5
2116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117 (exit $ac_status); }
2119 cat >conftest.$ac_ext <<_ACEOF
2122 cat confdefs.h >>conftest.$ac_ext
2123 cat >>conftest.$ac_ext <<_ACEOF
2124 /* end confdefs.h. */
2134 ac_clean_files_save=$ac_clean_files
2135 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2136 # Try to create an executable without -o first, disregard a.out.
2137 # It will help us diagnose broken compilers, and finding out an intuition
2139 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2140 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2141 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2143 # List of possible output files, starting from the most likely.
2144 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2145 # only as a last resort. b.out is created by i960 compilers.
2146 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2148 # The IRIX 6 linker writes into existing files which may not be
2149 # executable, retaining their permissions. Remove them first so a
2150 # subsequent execution test works.
2152 for ac_file in $ac_files
2155 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2156 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2161 if { (ac_try="$ac_link_default"
2163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2164 *) ac_try_echo=$ac_try;;
2166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2167 (eval "$ac_link_default") 2>&5
2169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170 (exit $ac_status); }; then
2171 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2172 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2173 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2174 # so that the user can short-circuit this test for compilers unknown to
2176 for ac_file in $ac_files
2178 test -f "$ac_file" || continue
2180 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2183 # We found the default executable, but exeext='' is most
2187 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2189 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2191 # We set ac_cv_exeext here because the later test for it is not
2192 # safe: cross compilers may not add the suffix if given an `-o'
2193 # argument, so we may need to know it at that point already.
2194 # Even if this section looks crufty: it has the advantage of
2201 test "$ac_cv_exeext" = no && ac_cv_exeext=
2204 echo "$as_me: failed program was:" >&5
2205 sed 's/^/| /' conftest.$ac_ext >&5
2207 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2208 See \`config.log' for more details." >&5
2209 echo "$as_me: error: C compiler cannot create executables
2210 See \`config.log' for more details." >&2;}
2211 { (exit 77); exit 77; }; }
2214 ac_exeext=$ac_cv_exeext
2215 { echo "$as_me:$LINENO: result: $ac_file" >&5
2216 echo "${ECHO_T}$ac_file" >&6; }
2218 # Check that the compiler produces executables we can run. If not, either
2219 # the compiler is broken, or we cross compile.
2220 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2221 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2222 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2223 # If not cross compiling, check that we can run a simple program.
2224 if test "$cross_compiling" != yes; then
2225 if { ac_try='./$ac_file'
2226 { (case "(($ac_try" in
2227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2228 *) ac_try_echo=$ac_try;;
2230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2231 (eval "$ac_try") 2>&5
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); }; }; then
2237 if test "$cross_compiling" = maybe; then
2240 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2241 If you meant to cross compile, use \`--host'.
2242 See \`config.log' for more details." >&5
2243 echo "$as_me: error: cannot run C compiled programs.
2244 If you meant to cross compile, use \`--host'.
2245 See \`config.log' for more details." >&2;}
2246 { (exit 1); exit 1; }; }
2250 { echo "$as_me:$LINENO: result: yes" >&5
2251 echo "${ECHO_T}yes" >&6; }
2253 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2254 ac_clean_files=$ac_clean_files_save
2255 # Check that the compiler produces executables we can run. If not, either
2256 # the compiler is broken, or we cross compile.
2257 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2258 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2259 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2260 echo "${ECHO_T}$cross_compiling" >&6; }
2262 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2263 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2264 if { (ac_try="$ac_link"
2266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2267 *) ac_try_echo=$ac_try;;
2269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2270 (eval "$ac_link") 2>&5
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); }; then
2274 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2275 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2276 # work properly (i.e., refer to `conftest.exe'), while it won't with
2278 for ac_file in conftest.exe conftest conftest.*; do
2279 test -f "$ac_file" || continue
2281 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2282 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2288 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2289 See \`config.log' for more details." >&5
2290 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2291 See \`config.log' for more details." >&2;}
2292 { (exit 1); exit 1; }; }
2295 rm -f conftest$ac_cv_exeext
2296 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2297 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2299 rm -f conftest.$ac_ext
2300 EXEEXT=$ac_cv_exeext
2302 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2303 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2304 if test "${ac_cv_objext+set}" = set; then
2305 echo $ECHO_N "(cached) $ECHO_C" >&6
2307 cat >conftest.$ac_ext <<_ACEOF
2310 cat confdefs.h >>conftest.$ac_ext
2311 cat >>conftest.$ac_ext <<_ACEOF
2312 /* end confdefs.h. */
2322 rm -f conftest.o conftest.obj
2323 if { (ac_try="$ac_compile"
2325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2326 *) ac_try_echo=$ac_try;;
2328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2329 (eval "$ac_compile") 2>&5
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; then
2333 for ac_file in conftest.o conftest.obj conftest.*; do
2334 test -f "$ac_file" || continue;
2336 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2337 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2342 echo "$as_me: failed program was:" >&5
2343 sed 's/^/| /' conftest.$ac_ext >&5
2345 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2346 See \`config.log' for more details." >&5
2347 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2348 See \`config.log' for more details." >&2;}
2349 { (exit 1); exit 1; }; }
2352 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2354 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2355 echo "${ECHO_T}$ac_cv_objext" >&6; }
2356 OBJEXT=$ac_cv_objext
2358 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2359 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2360 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2361 echo $ECHO_N "(cached) $ECHO_C" >&6
2363 cat >conftest.$ac_ext <<_ACEOF
2366 cat confdefs.h >>conftest.$ac_ext
2367 cat >>conftest.$ac_ext <<_ACEOF
2368 /* end confdefs.h. */
2381 rm -f conftest.$ac_objext
2382 if { (ac_try="$ac_compile"
2384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2385 *) ac_try_echo=$ac_try;;
2387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2388 (eval "$ac_compile") 2>conftest.er1
2390 grep -v '^ *+' conftest.er1 >conftest.err
2392 cat conftest.err >&5
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); } &&
2395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2396 { (case "(($ac_try" in
2397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2398 *) ac_try_echo=$ac_try;;
2400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2401 (eval "$ac_try") 2>&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; } &&
2405 { ac_try='test -s conftest.$ac_objext'
2406 { (case "(($ac_try" in
2407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2408 *) ac_try_echo=$ac_try;;
2410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2411 (eval "$ac_try") 2>&5
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; }; then
2417 echo "$as_me: failed program was:" >&5
2418 sed 's/^/| /' conftest.$ac_ext >&5
2423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2424 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2427 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2428 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2429 GCC=`test $ac_compiler_gnu = yes && echo yes`
2430 ac_test_CFLAGS=${CFLAGS+set}
2431 ac_save_CFLAGS=$CFLAGS
2432 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2433 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2434 if test "${ac_cv_prog_cc_g+set}" = set; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
2437 ac_save_c_werror_flag=$ac_c_werror_flag
2438 ac_c_werror_flag=yes
2441 cat >conftest.$ac_ext <<_ACEOF
2444 cat confdefs.h >>conftest.$ac_ext
2445 cat >>conftest.$ac_ext <<_ACEOF
2446 /* end confdefs.h. */
2456 rm -f conftest.$ac_objext
2457 if { (ac_try="$ac_compile"
2459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2460 *) ac_try_echo=$ac_try;;
2462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2463 (eval "$ac_compile") 2>conftest.er1
2465 grep -v '^ *+' conftest.er1 >conftest.err
2467 cat conftest.err >&5
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); } &&
2470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2471 { (case "(($ac_try" in
2472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2473 *) ac_try_echo=$ac_try;;
2475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2476 (eval "$ac_try") 2>&5
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); }; } &&
2480 { ac_try='test -s conftest.$ac_objext'
2481 { (case "(($ac_try" in
2482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2483 *) ac_try_echo=$ac_try;;
2485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2486 (eval "$ac_try") 2>&5
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); }; }; then
2492 echo "$as_me: failed program was:" >&5
2493 sed 's/^/| /' conftest.$ac_ext >&5
2496 cat >conftest.$ac_ext <<_ACEOF
2499 cat confdefs.h >>conftest.$ac_ext
2500 cat >>conftest.$ac_ext <<_ACEOF
2501 /* end confdefs.h. */
2511 rm -f conftest.$ac_objext
2512 if { (ac_try="$ac_compile"
2514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2515 *) ac_try_echo=$ac_try;;
2517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2518 (eval "$ac_compile") 2>conftest.er1
2520 grep -v '^ *+' conftest.er1 >conftest.err
2522 cat conftest.err >&5
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); } &&
2525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2526 { (case "(($ac_try" in
2527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2528 *) ac_try_echo=$ac_try;;
2530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2531 (eval "$ac_try") 2>&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); }; } &&
2535 { ac_try='test -s conftest.$ac_objext'
2536 { (case "(($ac_try" in
2537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2538 *) ac_try_echo=$ac_try;;
2540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2541 (eval "$ac_try") 2>&5
2543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544 (exit $ac_status); }; }; then
2547 echo "$as_me: failed program was:" >&5
2548 sed 's/^/| /' conftest.$ac_ext >&5
2550 ac_c_werror_flag=$ac_save_c_werror_flag
2552 cat >conftest.$ac_ext <<_ACEOF
2555 cat confdefs.h >>conftest.$ac_ext
2556 cat >>conftest.$ac_ext <<_ACEOF
2557 /* end confdefs.h. */
2567 rm -f conftest.$ac_objext
2568 if { (ac_try="$ac_compile"
2570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2571 *) ac_try_echo=$ac_try;;
2573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2574 (eval "$ac_compile") 2>conftest.er1
2576 grep -v '^ *+' conftest.er1 >conftest.err
2578 cat conftest.err >&5
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); } &&
2581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2582 { (case "(($ac_try" in
2583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2584 *) ac_try_echo=$ac_try;;
2586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2587 (eval "$ac_try") 2>&5
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; } &&
2591 { ac_try='test -s conftest.$ac_objext'
2592 { (case "(($ac_try" in
2593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2594 *) ac_try_echo=$ac_try;;
2596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2597 (eval "$ac_try") 2>&5
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); }; }; then
2603 echo "$as_me: failed program was:" >&5
2604 sed 's/^/| /' conftest.$ac_ext >&5
2609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2616 ac_c_werror_flag=$ac_save_c_werror_flag
2618 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2619 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2620 if test "$ac_test_CFLAGS" = set; then
2621 CFLAGS=$ac_save_CFLAGS
2622 elif test $ac_cv_prog_cc_g = yes; then
2623 if test "$GCC" = yes; then
2629 if test "$GCC" = yes; then
2635 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2636 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2637 if test "${ac_cv_prog_cc_c89+set}" = set; then
2638 echo $ECHO_N "(cached) $ECHO_C" >&6
2640 ac_cv_prog_cc_c89=no
2642 cat >conftest.$ac_ext <<_ACEOF
2645 cat confdefs.h >>conftest.$ac_ext
2646 cat >>conftest.$ac_ext <<_ACEOF
2647 /* end confdefs.h. */
2650 #include <sys/types.h>
2651 #include <sys/stat.h>
2652 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2653 struct buf { int x; };
2654 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2655 static char *e (p, i)
2661 static char *f (char * (*g) (char **, int), char **p, ...)
2666 s = g (p, va_arg (v,int));
2671 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2672 function prototypes and stuff, but not '\xHH' hex character constants.
2673 These don't provoke an error unfortunately, instead are silently treated
2674 as 'x'. The following induces an error, until -std is added to get
2675 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2676 array size at least. It's necessary to write '\x00'==0 to get something
2677 that's true only with -std. */
2678 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2680 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2681 inside strings and character constants. */
2683 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2685 int test (int i, double x);
2686 struct s1 {int (*f) (int a);};
2687 struct s2 {int (*f) (double a);};
2688 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2694 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2699 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2700 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2702 CC="$ac_save_CC $ac_arg"
2703 rm -f conftest.$ac_objext
2704 if { (ac_try="$ac_compile"
2706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2707 *) ac_try_echo=$ac_try;;
2709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2710 (eval "$ac_compile") 2>conftest.er1
2712 grep -v '^ *+' conftest.er1 >conftest.err
2714 cat conftest.err >&5
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); } &&
2717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2718 { (case "(($ac_try" in
2719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720 *) ac_try_echo=$ac_try;;
2722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2723 (eval "$ac_try") 2>&5
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }; } &&
2727 { ac_try='test -s conftest.$ac_objext'
2728 { (case "(($ac_try" in
2729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730 *) ac_try_echo=$ac_try;;
2732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2733 (eval "$ac_try") 2>&5
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); }; }; then
2737 ac_cv_prog_cc_c89=$ac_arg
2739 echo "$as_me: failed program was:" >&5
2740 sed 's/^/| /' conftest.$ac_ext >&5
2745 rm -f core conftest.err conftest.$ac_objext
2746 test "x$ac_cv_prog_cc_c89" != "xno" && break
2748 rm -f conftest.$ac_ext
2753 case "x$ac_cv_prog_cc_c89" in
2755 { echo "$as_me:$LINENO: result: none needed" >&5
2756 echo "${ECHO_T}none needed" >&6; } ;;
2758 { echo "$as_me:$LINENO: result: unsupported" >&5
2759 echo "${ECHO_T}unsupported" >&6; } ;;
2761 CC="$CC $ac_cv_prog_cc_c89"
2762 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2763 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2768 ac_cpp='$CPP $CPPFLAGS'
2769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2774 ac_cpp='$CXXCPP $CPPFLAGS'
2775 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2776 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2777 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2778 if test -z "$CXX"; then
2779 if test -n "$CCC"; then
2782 if test -n "$ac_tool_prefix"; then
2783 for ac_prog in clang++ llvm-g++ g++
2785 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2786 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2787 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2789 if test "${ac_cv_prog_CXX+set}" = set; then
2790 echo $ECHO_N "(cached) $ECHO_C" >&6
2792 if test -n "$CXX"; then
2793 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799 test -z "$as_dir" && as_dir=.
2800 for ac_exec_ext in '' $ac_executable_extensions; do
2801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2802 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2813 if test -n "$CXX"; then
2814 { echo "$as_me:$LINENO: result: $CXX" >&5
2815 echo "${ECHO_T}$CXX" >&6; }
2817 { echo "$as_me:$LINENO: result: no" >&5
2818 echo "${ECHO_T}no" >&6; }
2822 test -n "$CXX" && break
2825 if test -z "$CXX"; then
2827 for ac_prog in clang++ llvm-g++ g++
2829 # Extract the first word of "$ac_prog", so it can be a program name with args.
2830 set dummy $ac_prog; ac_word=$2
2831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2833 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2834 echo $ECHO_N "(cached) $ECHO_C" >&6
2836 if test -n "$ac_ct_CXX"; then
2837 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843 test -z "$as_dir" && as_dir=.
2844 for ac_exec_ext in '' $ac_executable_extensions; do
2845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2846 ac_cv_prog_ac_ct_CXX="$ac_prog"
2847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2856 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2857 if test -n "$ac_ct_CXX"; then
2858 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2859 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2861 { echo "$as_me:$LINENO: result: no" >&5
2862 echo "${ECHO_T}no" >&6; }
2866 test -n "$ac_ct_CXX" && break
2869 if test "x$ac_ct_CXX" = x; then
2872 case $cross_compiling:$ac_tool_warned in
2874 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2875 whose name does not start with the host triplet. If you think this
2876 configuration is useful to you, please write to autoconf@gnu.org." >&5
2877 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2878 whose name does not start with the host triplet. If you think this
2879 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2880 ac_tool_warned=yes ;;
2888 # Provide some information about the compiler.
2889 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2890 ac_compiler=`set X $ac_compile; echo $2`
2891 { (ac_try="$ac_compiler --version >&5"
2893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894 *) ac_try_echo=$ac_try;;
2896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2897 (eval "$ac_compiler --version >&5") 2>&5
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); }
2901 { (ac_try="$ac_compiler -v >&5"
2903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904 *) ac_try_echo=$ac_try;;
2906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2907 (eval "$ac_compiler -v >&5") 2>&5
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); }
2911 { (ac_try="$ac_compiler -V >&5"
2913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914 *) ac_try_echo=$ac_try;;
2916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2917 (eval "$ac_compiler -V >&5") 2>&5
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }
2922 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2923 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2924 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2925 echo $ECHO_N "(cached) $ECHO_C" >&6
2927 cat >conftest.$ac_ext <<_ACEOF
2930 cat confdefs.h >>conftest.$ac_ext
2931 cat >>conftest.$ac_ext <<_ACEOF
2932 /* end confdefs.h. */
2945 rm -f conftest.$ac_objext
2946 if { (ac_try="$ac_compile"
2948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2949 *) ac_try_echo=$ac_try;;
2951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2952 (eval "$ac_compile") 2>conftest.er1
2954 grep -v '^ *+' conftest.er1 >conftest.err
2956 cat conftest.err >&5
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); } &&
2959 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2960 { (case "(($ac_try" in
2961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962 *) ac_try_echo=$ac_try;;
2964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2965 (eval "$ac_try") 2>&5
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); }; } &&
2969 { ac_try='test -s conftest.$ac_objext'
2970 { (case "(($ac_try" in
2971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972 *) ac_try_echo=$ac_try;;
2974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2975 (eval "$ac_try") 2>&5
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); }; }; then
2981 echo "$as_me: failed program was:" >&5
2982 sed 's/^/| /' conftest.$ac_ext >&5
2987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2988 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2991 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2992 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2993 GXX=`test $ac_compiler_gnu = yes && echo yes`
2994 ac_test_CXXFLAGS=${CXXFLAGS+set}
2995 ac_save_CXXFLAGS=$CXXFLAGS
2996 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2997 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2998 if test "${ac_cv_prog_cxx_g+set}" = set; then
2999 echo $ECHO_N "(cached) $ECHO_C" >&6
3001 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3002 ac_cxx_werror_flag=yes
3005 cat >conftest.$ac_ext <<_ACEOF
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h. */
3020 rm -f conftest.$ac_objext
3021 if { (ac_try="$ac_compile"
3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024 *) ac_try_echo=$ac_try;;
3026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027 (eval "$ac_compile") 2>conftest.er1
3029 grep -v '^ *+' conftest.er1 >conftest.err
3031 cat conftest.err >&5
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); } &&
3034 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3035 { (case "(($ac_try" in
3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037 *) ac_try_echo=$ac_try;;
3039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040 (eval "$ac_try") 2>&5
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); }; } &&
3044 { ac_try='test -s conftest.$ac_objext'
3045 { (case "(($ac_try" in
3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047 *) ac_try_echo=$ac_try;;
3049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3050 (eval "$ac_try") 2>&5
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); }; }; then
3054 ac_cv_prog_cxx_g=yes
3056 echo "$as_me: failed program was:" >&5
3057 sed 's/^/| /' conftest.$ac_ext >&5
3060 cat >conftest.$ac_ext <<_ACEOF
3063 cat confdefs.h >>conftest.$ac_ext
3064 cat >>conftest.$ac_ext <<_ACEOF
3065 /* end confdefs.h. */
3075 rm -f conftest.$ac_objext
3076 if { (ac_try="$ac_compile"
3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3082 (eval "$ac_compile") 2>conftest.er1
3084 grep -v '^ *+' conftest.er1 >conftest.err
3086 cat conftest.err >&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); } &&
3089 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3090 { (case "(($ac_try" in
3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092 *) ac_try_echo=$ac_try;;
3094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3095 (eval "$ac_try") 2>&5
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); }; } &&
3099 { ac_try='test -s conftest.$ac_objext'
3100 { (case "(($ac_try" in
3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102 *) ac_try_echo=$ac_try;;
3104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3105 (eval "$ac_try") 2>&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); }; }; then
3111 echo "$as_me: failed program was:" >&5
3112 sed 's/^/| /' conftest.$ac_ext >&5
3114 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3116 cat >conftest.$ac_ext <<_ACEOF
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h. */
3131 rm -f conftest.$ac_objext
3132 if { (ac_try="$ac_compile"
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138 (eval "$ac_compile") 2>conftest.er1
3140 grep -v '^ *+' conftest.er1 >conftest.err
3142 cat conftest.err >&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); } &&
3145 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3146 { (case "(($ac_try" in
3147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148 *) ac_try_echo=$ac_try;;
3150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151 (eval "$ac_try") 2>&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }; } &&
3155 { ac_try='test -s conftest.$ac_objext'
3156 { (case "(($ac_try" in
3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161 (eval "$ac_try") 2>&5
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }; }; then
3165 ac_cv_prog_cxx_g=yes
3167 echo "$as_me: failed program was:" >&5
3168 sed 's/^/| /' conftest.$ac_ext >&5
3173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3180 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3182 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3183 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3184 if test "$ac_test_CXXFLAGS" = set; then
3185 CXXFLAGS=$ac_save_CXXFLAGS
3186 elif test $ac_cv_prog_cxx_g = yes; then
3187 if test "$GXX" = yes; then
3193 if test "$GXX" = yes; then
3200 ac_cpp='$CPP $CPPFLAGS'
3201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3206 ac_cpp='$CPP $CPPFLAGS'
3207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3210 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3211 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3212 # On Suns, sometimes $CPP names a directory.
3213 if test -n "$CPP" && test -d "$CPP"; then
3216 if test -z "$CPP"; then
3217 if test "${ac_cv_prog_CPP+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3220 # Double quotes because CPP needs to be expanded
3221 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3224 for ac_c_preproc_warn_flag in '' yes
3226 # Use a header file that comes with gcc, so configuring glibc
3227 # with a fresh cross-compiler works.
3228 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3229 # <limits.h> exists even on freestanding compilers.
3230 # On the NeXT, cc -E runs the code through the compiler's parser,
3231 # not just through cpp. "Syntax error" is here to catch this case.
3232 cat >conftest.$ac_ext <<_ACEOF
3235 cat confdefs.h >>conftest.$ac_ext
3236 cat >>conftest.$ac_ext <<_ACEOF
3237 /* end confdefs.h. */
3239 # include <limits.h>
3241 # include <assert.h>
3245 if { (ac_try="$ac_cpp conftest.$ac_ext"
3247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248 *) ac_try_echo=$ac_try;;
3250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3251 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3253 grep -v '^ *+' conftest.er1 >conftest.err
3255 cat conftest.err >&5
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); } >/dev/null; then
3258 if test -s conftest.err; then
3259 ac_cpp_err=$ac_c_preproc_warn_flag
3260 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3267 if test -z "$ac_cpp_err"; then
3270 echo "$as_me: failed program was:" >&5
3271 sed 's/^/| /' conftest.$ac_ext >&5
3273 # Broken: fails on valid input.
3277 rm -f conftest.err conftest.$ac_ext
3279 # OK, works on sane cases. Now check whether nonexistent headers
3280 # can be detected and how.
3281 cat >conftest.$ac_ext <<_ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h. */
3287 #include <ac_nonexistent.h>
3289 if { (ac_try="$ac_cpp conftest.$ac_ext"
3291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292 *) ac_try_echo=$ac_try;;
3294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3295 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3297 grep -v '^ *+' conftest.er1 >conftest.err
3299 cat conftest.err >&5
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); } >/dev/null; then
3302 if test -s conftest.err; then
3303 ac_cpp_err=$ac_c_preproc_warn_flag
3304 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3311 if test -z "$ac_cpp_err"; then
3312 # Broken: success on invalid input.
3315 echo "$as_me: failed program was:" >&5
3316 sed 's/^/| /' conftest.$ac_ext >&5
3318 # Passes both tests.
3323 rm -f conftest.err conftest.$ac_ext
3326 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3327 rm -f conftest.err conftest.$ac_ext
3328 if $ac_preproc_ok; then
3340 { echo "$as_me:$LINENO: result: $CPP" >&5
3341 echo "${ECHO_T}$CPP" >&6; }
3343 for ac_c_preproc_warn_flag in '' yes
3345 # Use a header file that comes with gcc, so configuring glibc
3346 # with a fresh cross-compiler works.
3347 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3348 # <limits.h> exists even on freestanding compilers.
3349 # On the NeXT, cc -E runs the code through the compiler's parser,
3350 # not just through cpp. "Syntax error" is here to catch this case.
3351 cat >conftest.$ac_ext <<_ACEOF
3354 cat confdefs.h >>conftest.$ac_ext
3355 cat >>conftest.$ac_ext <<_ACEOF
3356 /* end confdefs.h. */
3358 # include <limits.h>
3360 # include <assert.h>
3364 if { (ac_try="$ac_cpp conftest.$ac_ext"
3366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367 *) ac_try_echo=$ac_try;;
3369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3372 grep -v '^ *+' conftest.er1 >conftest.err
3374 cat conftest.err >&5
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); } >/dev/null; then
3377 if test -s conftest.err; then
3378 ac_cpp_err=$ac_c_preproc_warn_flag
3379 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3386 if test -z "$ac_cpp_err"; then
3389 echo "$as_me: failed program was:" >&5
3390 sed 's/^/| /' conftest.$ac_ext >&5
3392 # Broken: fails on valid input.
3396 rm -f conftest.err conftest.$ac_ext
3398 # OK, works on sane cases. Now check whether nonexistent headers
3399 # can be detected and how.
3400 cat >conftest.$ac_ext <<_ACEOF
3403 cat confdefs.h >>conftest.$ac_ext
3404 cat >>conftest.$ac_ext <<_ACEOF
3405 /* end confdefs.h. */
3406 #include <ac_nonexistent.h>
3408 if { (ac_try="$ac_cpp conftest.$ac_ext"
3410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411 *) ac_try_echo=$ac_try;;
3413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3414 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3416 grep -v '^ *+' conftest.er1 >conftest.err
3418 cat conftest.err >&5
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); } >/dev/null; then
3421 if test -s conftest.err; then
3422 ac_cpp_err=$ac_c_preproc_warn_flag
3423 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3430 if test -z "$ac_cpp_err"; then
3431 # Broken: success on invalid input.
3434 echo "$as_me: failed program was:" >&5
3435 sed 's/^/| /' conftest.$ac_ext >&5
3437 # Passes both tests.
3442 rm -f conftest.err conftest.$ac_ext
3445 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3446 rm -f conftest.err conftest.$ac_ext
3447 if $ac_preproc_ok; then
3450 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3451 See \`config.log' for more details." >&5
3452 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3453 See \`config.log' for more details." >&2;}
3454 { (exit 1); exit 1; }; }
3458 ac_cpp='$CPP $CPPFLAGS'
3459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3466 if test -d ${srcdir}/projects/llvm-gcc ; then
3467 subdirs="$subdirs projects/llvm-gcc"
3471 if test -d ${srcdir}/projects/test-suite ; then
3472 subdirs="$subdirs projects/test-suite"
3476 if test -d ${srcdir}/projects/llvm-test ; then
3477 subdirs="$subdirs projects/llvm-test"
3481 if test -d ${srcdir}/projects/poolalloc ; then
3482 subdirs="$subdirs projects/poolalloc"
3486 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3487 subdirs="$subdirs projects/llvm-poolalloc"
3491 for i in `ls ${srcdir}/projects`
3493 if test -d ${srcdir}/projects/${i} ; then
3495 sample) subdirs="$subdirs projects/sample"
3497 privbracket) subdirs="$subdirs projects/privbracket"
3499 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3501 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3503 llvm-java) subdirs="$subdirs projects/llvm-java"
3505 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3507 safecode) subdirs="$subdirs projects/safecode"
3509 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3518 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3519 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3525 # Check whether --enable-polly was given.
3526 if test "${enable_polly+set}" = set; then
3527 enableval=$enable_polly;
3532 case "$enableval" in
3537 default) ENABLE_POLLY=1
3539 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3540 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3541 { (exit 1); exit 1; }; } ;;
3545 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3548 subdirs="$subdirs tools/polly"
3553 # Make sure we can run config.sub.
3554 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3555 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3556 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3557 { (exit 1); exit 1; }; }
3559 { echo "$as_me:$LINENO: checking build system type" >&5
3560 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3561 if test "${ac_cv_build+set}" = set; then
3562 echo $ECHO_N "(cached) $ECHO_C" >&6
3564 ac_build_alias=$build_alias
3565 test "x$ac_build_alias" = x &&
3566 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3567 test "x$ac_build_alias" = x &&
3568 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3569 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3570 { (exit 1); exit 1; }; }
3571 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3572 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3573 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3574 { (exit 1); exit 1; }; }
3577 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3578 echo "${ECHO_T}$ac_cv_build" >&6; }
3579 case $ac_cv_build in
3581 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3582 echo "$as_me: error: invalid value of canonical build" >&2;}
3583 { (exit 1); exit 1; }; };;
3586 ac_save_IFS=$IFS; IFS='-'
3592 # Remember, the first character of IFS is used to create $*,
3593 # except with old shells:
3596 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3599 { echo "$as_me:$LINENO: checking host system type" >&5
3600 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3601 if test "${ac_cv_host+set}" = set; then
3602 echo $ECHO_N "(cached) $ECHO_C" >&6
3604 if test "x$host_alias" = x; then
3605 ac_cv_host=$ac_cv_build
3607 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3608 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3609 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3610 { (exit 1); exit 1; }; }
3614 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3615 echo "${ECHO_T}$ac_cv_host" >&6; }
3618 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3619 echo "$as_me: error: invalid value of canonical host" >&2;}
3620 { (exit 1); exit 1; }; };;
3623 ac_save_IFS=$IFS; IFS='-'
3629 # Remember, the first character of IFS is used to create $*,
3630 # except with old shells:
3633 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3636 { echo "$as_me:$LINENO: checking target system type" >&5
3637 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3638 if test "${ac_cv_target+set}" = set; then
3639 echo $ECHO_N "(cached) $ECHO_C" >&6
3641 if test "x$target_alias" = x; then
3642 ac_cv_target=$ac_cv_host
3644 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3645 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3646 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3647 { (exit 1); exit 1; }; }
3651 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3652 echo "${ECHO_T}$ac_cv_target" >&6; }
3653 case $ac_cv_target in
3655 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3656 echo "$as_me: error: invalid value of canonical target" >&2;}
3657 { (exit 1); exit 1; }; };;
3659 target=$ac_cv_target
3660 ac_save_IFS=$IFS; IFS='-'
3666 # Remember, the first character of IFS is used to create $*,
3667 # except with old shells:
3670 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3673 # The aliases save the names the user supplied, while $host etc.
3674 # will get canonicalized.
3675 test -n "$target_alias" &&
3676 test "$program_prefix$program_suffix$program_transform_name" = \
3678 program_prefix=${target_alias}-
3680 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3681 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3682 if test "${llvm_cv_os_type+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3687 llvm_cv_link_all_option="-Wl,--whole-archive"
3688 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3689 llvm_cv_os_type="AIX"
3690 llvm_cv_platform_type="Unix" ;;
3692 llvm_cv_link_all_option="-Wl,--whole-archive"
3693 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3694 llvm_cv_os_type="IRIX"
3695 llvm_cv_platform_type="Unix" ;;
3697 llvm_cv_link_all_option="-Wl,--whole-archive"
3698 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3699 llvm_cv_os_type="Cygwin"
3700 llvm_cv_platform_type="Unix" ;;
3702 llvm_cv_link_all_option="-Wl,-all_load"
3703 llvm_cv_no_link_all_option="-Wl,-noall_load"
3704 llvm_cv_os_type="Darwin"
3705 llvm_cv_platform_type="Unix" ;;
3707 llvm_cv_link_all_option="-Wl,-all_load"
3708 llvm_cv_no_link_all_option="-Wl,-noall_load"
3709 llvm_cv_os_type="Minix"
3710 llvm_cv_platform_type="Unix" ;;
3711 *-*-freebsd* | *-*-kfreebsd-gnu)
3712 llvm_cv_link_all_option="-Wl,--whole-archive"
3713 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3714 llvm_cv_os_type="FreeBSD"
3715 llvm_cv_platform_type="Unix" ;;
3717 llvm_cv_link_all_option="-Wl,--whole-archive"
3718 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3719 llvm_cv_os_type="OpenBSD"
3720 llvm_cv_platform_type="Unix" ;;
3722 llvm_cv_link_all_option="-Wl,--whole-archive"
3723 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3724 llvm_cv_os_type="NetBSD"
3725 llvm_cv_platform_type="Unix" ;;
3727 llvm_cv_link_all_option="-Wl,--whole-archive"
3728 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3729 llvm_cv_os_type="DragonFly"
3730 llvm_cv_platform_type="Unix" ;;
3732 llvm_cv_link_all_option="-Wl,--whole-archive"
3733 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3734 llvm_cv_os_type="HP-UX"
3735 llvm_cv_platform_type="Unix" ;;
3737 llvm_cv_link_all_option="-Wl,--whole-archive"
3738 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3739 llvm_cv_os_type="Interix"
3740 llvm_cv_platform_type="Unix" ;;
3742 llvm_cv_link_all_option="-Wl,--whole-archive"
3743 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3744 llvm_cv_os_type="Linux"
3745 llvm_cv_platform_type="Unix" ;;
3747 llvm_cv_link_all_option="-Wl,--whole-archive"
3748 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3749 llvm_cv_os_type="GNU"
3750 llvm_cv_platform_type="Unix" ;;
3752 llvm_cv_link_all_option="-Wl,-z,allextract"
3753 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3754 llvm_cv_os_type="SunOS"
3755 llvm_cv_platform_type="Unix" ;;
3757 llvm_cv_link_all_option="-Wl,-z,allextract"
3758 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3759 llvm_cv_os_type="AuroraUX"
3760 llvm_cv_platform_type="Unix" ;;
3762 llvm_cv_link_all_option="-Wl,--whole-archive"
3763 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3764 llvm_cv_os_type="Win32"
3765 llvm_cv_platform_type="Win32" ;;
3767 llvm_cv_link_all_option="-Wl,--whole-archive"
3768 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3769 llvm_cv_os_type="MingW"
3770 llvm_cv_platform_type="Win32" ;;
3772 llvm_cv_link_all_option="-Wl,--whole-archive"
3773 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3774 llvm_cv_os_type="Haiku"
3775 llvm_cv_platform_type="Unix" ;;
3777 llvm_cv_link_all_option="-Wl,--whole-archive"
3778 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3779 llvm_cv_os_type="Freestanding"
3780 llvm_cv_platform_type="Unix" ;;
3782 llvm_cv_link_all_option="-Wl,--whole-archive"
3783 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3784 llvm_cv_os_type="Freestanding"
3785 llvm_cv_platform_type="Unix" ;;
3787 llvm_cv_link_all_option=""
3788 llvm_cv_no_link_all_option=""
3789 llvm_cv_os_type="Unknown"
3790 llvm_cv_platform_type="Unknown" ;;
3793 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3794 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3796 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3797 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3798 if test "${llvm_cv_target_os_type+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
3803 llvm_cv_target_os_type="AIX" ;;
3805 llvm_cv_target_os_type="IRIX" ;;
3807 llvm_cv_target_os_type="Cygwin" ;;
3809 llvm_cv_target_os_type="Darwin" ;;
3811 llvm_cv_target_os_type="Minix" ;;
3812 *-*-freebsd* | *-*-kfreebsd-gnu)
3813 llvm_cv_target_os_type="FreeBSD" ;;
3815 llvm_cv_target_os_type="OpenBSD" ;;
3817 llvm_cv_target_os_type="NetBSD" ;;
3819 llvm_cv_target_os_type="DragonFly" ;;
3821 llvm_cv_target_os_type="HP-UX" ;;
3823 llvm_cv_target_os_type="Interix" ;;
3825 llvm_cv_target_os_type="Linux" ;;
3827 llvm_cv_target_os_type="GNU" ;;
3829 llvm_cv_target_os_type="SunOS" ;;
3831 llvm_cv_target_os_type="AuroraUX" ;;
3833 llvm_cv_target_os_type="Win32" ;;
3835 llvm_cv_target_os_type="MingW" ;;
3837 llvm_cv_target_os_type="Haiku" ;;
3839 llvm_cv_target_os_type="RTEMS" ;;
3841 llvm_cv_target_os_type="NativeClient" ;;
3843 llvm_cv_target_os_type="Freestanding" ;;
3845 llvm_cv_target_os_type="Unknown" ;;
3848 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3849 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3851 if test "$llvm_cv_os_type" = "Unknown" ; then
3852 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3853 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3854 { (exit 1); exit 1; }; }
3859 HOST_OS=$llvm_cv_os_type
3861 TARGET_OS=$llvm_cv_target_os_type
3864 LINKALL=$llvm_cv_link_all_option
3866 NOLINKALL=$llvm_cv_no_link_all_option
3869 case $llvm_cv_platform_type in
3872 cat >>confdefs.h <<\_ACEOF
3873 #define LLVM_ON_UNIX 1
3883 cat >>confdefs.h <<\_ACEOF
3884 #define LLVM_ON_WIN32 1
3894 { echo "$as_me:$LINENO: checking target architecture" >&5
3895 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3896 if test "${llvm_cv_target_arch+set}" = set; then
3897 echo $ECHO_N "(cached) $ECHO_C" >&6
3900 i?86-*) llvm_cv_target_arch="x86" ;;
3901 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3902 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3903 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3904 arm*-*) llvm_cv_target_arch="ARM" ;;
3905 mips-*) llvm_cv_target_arch="Mips" ;;
3906 mipsel-*) llvm_cv_target_arch="Mips" ;;
3907 xcore-*) llvm_cv_target_arch="XCore" ;;
3908 msp430-*) llvm_cv_target_arch="MSP430" ;;
3909 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
3910 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3911 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
3912 *) llvm_cv_target_arch="Unknown" ;;
3915 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3916 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3918 if test "$llvm_cv_target_arch" = "Unknown" ; then
3919 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3920 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3923 case "$llvm_cv_target_arch" in
3924 x86) LLVM_NATIVE_ARCH="X86" ;;
3925 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3926 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3929 ARCH=$llvm_cv_target_arch
3933 i?86-*) host_arch="x86" ;;
3934 amd64-* | x86_64-*) host_arch="x86_64" ;;
3935 sparc*-*) host_arch="Sparc" ;;
3936 powerpc*-*) host_arch="PowerPC" ;;
3937 arm*-*) host_arch="ARM" ;;
3938 mips-*) host_arch="Mips" ;;
3939 mipsel-*) host_arch="Mips" ;;
3940 xcore-*) host_arch="XCore" ;;
3941 msp430-*) host_arch="MSP430" ;;
3942 hexagon-*) host_arch="Hexagon" ;;
3943 mblaze-*) host_arch="MBlaze" ;;
3944 *) host_arch="Unknown" ;;
3947 if test "$host_arch" = "Unknown" ; then
3948 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
3949 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
3952 HOST_ARCH=$host_arch
3957 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3958 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3959 if test "${ac_cv_path_GREP+set}" = set; then
3960 echo $ECHO_N "(cached) $ECHO_C" >&6
3962 # Extract the first word of "grep ggrep" to use in msg output
3963 if test -z "$GREP"; then
3964 set dummy grep ggrep; ac_prog_name=$2
3965 if test "${ac_cv_path_GREP+set}" = set; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
3968 ac_path_GREP_found=false
3969 # Loop through the user's path and test for each of PROGNAME-LIST
3970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3974 test -z "$as_dir" && as_dir=.
3975 for ac_prog in grep ggrep; do
3976 for ac_exec_ext in '' $ac_executable_extensions; do
3977 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3978 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3979 # Check for GNU ac_path_GREP and select it if it is found.
3980 # Check for GNU $ac_path_GREP
3981 case `"$ac_path_GREP" --version 2>&1` in
3983 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3986 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3989 cat "conftest.in" "conftest.in" >"conftest.tmp"
3990 mv "conftest.tmp" "conftest.in"
3991 cp "conftest.in" "conftest.nl"
3992 echo 'GREP' >> "conftest.nl"
3993 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3994 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3995 ac_count=`expr $ac_count + 1`
3996 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3997 # Best one so far, save it but keep looking for a better one
3998 ac_cv_path_GREP="$ac_path_GREP"
3999 ac_path_GREP_max=$ac_count
4001 # 10*(2^10) chars as input seems more than enough
4002 test $ac_count -gt 10 && break
4004 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4008 $ac_path_GREP_found && break 3
4018 GREP="$ac_cv_path_GREP"
4019 if test -z "$GREP"; then
4020 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4021 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4022 { (exit 1); exit 1; }; }
4026 ac_cv_path_GREP=$GREP
4031 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4032 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4033 GREP="$ac_cv_path_GREP"
4036 { echo "$as_me:$LINENO: checking for egrep" >&5
4037 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4038 if test "${ac_cv_path_EGREP+set}" = set; then
4039 echo $ECHO_N "(cached) $ECHO_C" >&6
4041 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4042 then ac_cv_path_EGREP="$GREP -E"
4044 # Extract the first word of "egrep" to use in msg output
4045 if test -z "$EGREP"; then
4046 set dummy egrep; ac_prog_name=$2
4047 if test "${ac_cv_path_EGREP+set}" = set; then
4048 echo $ECHO_N "(cached) $ECHO_C" >&6
4050 ac_path_EGREP_found=false
4051 # Loop through the user's path and test for each of PROGNAME-LIST
4052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4056 test -z "$as_dir" && as_dir=.
4057 for ac_prog in egrep; do
4058 for ac_exec_ext in '' $ac_executable_extensions; do
4059 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4060 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4061 # Check for GNU ac_path_EGREP and select it if it is found.
4062 # Check for GNU $ac_path_EGREP
4063 case `"$ac_path_EGREP" --version 2>&1` in
4065 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4068 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4071 cat "conftest.in" "conftest.in" >"conftest.tmp"
4072 mv "conftest.tmp" "conftest.in"
4073 cp "conftest.in" "conftest.nl"
4074 echo 'EGREP' >> "conftest.nl"
4075 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4076 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4077 ac_count=`expr $ac_count + 1`
4078 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4079 # Best one so far, save it but keep looking for a better one
4080 ac_cv_path_EGREP="$ac_path_EGREP"
4081 ac_path_EGREP_max=$ac_count
4083 # 10*(2^10) chars as input seems more than enough
4084 test $ac_count -gt 10 && break
4086 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4090 $ac_path_EGREP_found && break 3
4100 EGREP="$ac_cv_path_EGREP"
4101 if test -z "$EGREP"; then
4102 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4103 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4104 { (exit 1); exit 1; }; }
4108 ac_cv_path_EGREP=$EGREP
4114 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4115 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4116 EGREP="$ac_cv_path_EGREP"
4119 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4120 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4121 if test "${ac_cv_header_stdc+set}" = set; then
4122 echo $ECHO_N "(cached) $ECHO_C" >&6
4124 cat >conftest.$ac_ext <<_ACEOF
4127 cat confdefs.h >>conftest.$ac_ext
4128 cat >>conftest.$ac_ext <<_ACEOF
4129 /* end confdefs.h. */
4143 rm -f conftest.$ac_objext
4144 if { (ac_try="$ac_compile"
4146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4147 *) ac_try_echo=$ac_try;;
4149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4150 (eval "$ac_compile") 2>conftest.er1
4152 grep -v '^ *+' conftest.er1 >conftest.err
4154 cat conftest.err >&5
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); } &&
4157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4158 { (case "(($ac_try" in
4159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4160 *) ac_try_echo=$ac_try;;
4162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4163 (eval "$ac_try") 2>&5
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); }; } &&
4167 { ac_try='test -s conftest.$ac_objext'
4168 { (case "(($ac_try" in
4169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170 *) ac_try_echo=$ac_try;;
4172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4173 (eval "$ac_try") 2>&5
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); }; }; then
4177 ac_cv_header_stdc=yes
4179 echo "$as_me: failed program was:" >&5
4180 sed 's/^/| /' conftest.$ac_ext >&5
4182 ac_cv_header_stdc=no
4185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4187 if test $ac_cv_header_stdc = yes; then
4188 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4189 cat >conftest.$ac_ext <<_ACEOF
4192 cat confdefs.h >>conftest.$ac_ext
4193 cat >>conftest.$ac_ext <<_ACEOF
4194 /* end confdefs.h. */
4198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4199 $EGREP "memchr" >/dev/null 2>&1; then
4202 ac_cv_header_stdc=no
4208 if test $ac_cv_header_stdc = yes; then
4209 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4210 cat >conftest.$ac_ext <<_ACEOF
4213 cat confdefs.h >>conftest.$ac_ext
4214 cat >>conftest.$ac_ext <<_ACEOF
4215 /* end confdefs.h. */
4219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4220 $EGREP "free" >/dev/null 2>&1; then
4223 ac_cv_header_stdc=no
4229 if test $ac_cv_header_stdc = yes; then
4230 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4231 if test "$cross_compiling" = yes; then
4234 cat >conftest.$ac_ext <<_ACEOF
4237 cat confdefs.h >>conftest.$ac_ext
4238 cat >>conftest.$ac_ext <<_ACEOF
4239 /* end confdefs.h. */
4242 #if ((' ' & 0x0FF) == 0x020)
4243 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4244 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4246 # define ISLOWER(c) \
4247 (('a' <= (c) && (c) <= 'i') \
4248 || ('j' <= (c) && (c) <= 'r') \
4249 || ('s' <= (c) && (c) <= 'z'))
4250 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4253 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4258 for (i = 0; i < 256; i++)
4259 if (XOR (islower (i), ISLOWER (i))
4260 || toupper (i) != TOUPPER (i))
4265 rm -f conftest$ac_exeext
4266 if { (ac_try="$ac_link"
4268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4269 *) ac_try_echo=$ac_try;;
4271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4272 (eval "$ac_link") 2>&5
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4276 { (case "(($ac_try" in
4277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4278 *) ac_try_echo=$ac_try;;
4280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4281 (eval "$ac_try") 2>&5
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); }; }; then
4287 echo "$as_me: program exited with status $ac_status" >&5
4288 echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.$ac_ext >&5
4292 ac_cv_header_stdc=no
4294 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4300 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4301 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4302 if test $ac_cv_header_stdc = yes; then
4304 cat >>confdefs.h <<\_ACEOF
4305 #define STDC_HEADERS 1
4310 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4320 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4321 inttypes.h stdint.h unistd.h
4323 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4324 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4327 echo $ECHO_N "(cached) $ECHO_C" >&6
4329 cat >conftest.$ac_ext <<_ACEOF
4332 cat confdefs.h >>conftest.$ac_ext
4333 cat >>conftest.$ac_ext <<_ACEOF
4334 /* end confdefs.h. */
4335 $ac_includes_default
4337 #include <$ac_header>
4339 rm -f conftest.$ac_objext
4340 if { (ac_try="$ac_compile"
4342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4343 *) ac_try_echo=$ac_try;;
4345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4346 (eval "$ac_compile") 2>conftest.er1
4348 grep -v '^ *+' conftest.er1 >conftest.err
4350 cat conftest.err >&5
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); } &&
4353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4354 { (case "(($ac_try" in
4355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4356 *) ac_try_echo=$ac_try;;
4358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4359 (eval "$ac_try") 2>&5
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); }; } &&
4363 { ac_try='test -s conftest.$ac_objext'
4364 { (case "(($ac_try" in
4365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4366 *) ac_try_echo=$ac_try;;
4368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4369 (eval "$ac_try") 2>&5
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); }; }; then
4373 eval "$as_ac_Header=yes"
4375 echo "$as_me: failed program was:" >&5
4376 sed 's/^/| /' conftest.$ac_ext >&5
4378 eval "$as_ac_Header=no"
4381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4383 ac_res=`eval echo '${'$as_ac_Header'}'`
4384 { echo "$as_me:$LINENO: result: $ac_res" >&5
4385 echo "${ECHO_T}$ac_res" >&6; }
4386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4387 cat >>confdefs.h <<_ACEOF
4388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4396 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4397 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4398 if test "${ac_cv_c_bigendian+set}" = set; then
4399 echo $ECHO_N "(cached) $ECHO_C" >&6
4401 # See if sys/param.h defines the BYTE_ORDER macro.
4402 cat >conftest.$ac_ext <<_ACEOF
4405 cat confdefs.h >>conftest.$ac_ext
4406 cat >>conftest.$ac_ext <<_ACEOF
4407 /* end confdefs.h. */
4408 #include <sys/types.h>
4409 #include <sys/param.h>
4414 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4422 rm -f conftest.$ac_objext
4423 if { (ac_try="$ac_compile"
4425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4426 *) ac_try_echo=$ac_try;;
4428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4429 (eval "$ac_compile") 2>conftest.er1
4431 grep -v '^ *+' conftest.er1 >conftest.err
4433 cat conftest.err >&5
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); } &&
4436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4437 { (case "(($ac_try" in
4438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4439 *) ac_try_echo=$ac_try;;
4441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4442 (eval "$ac_try") 2>&5
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); }; } &&
4446 { ac_try='test -s conftest.$ac_objext'
4447 { (case "(($ac_try" in
4448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4449 *) ac_try_echo=$ac_try;;
4451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4452 (eval "$ac_try") 2>&5
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); }; }; then
4456 # It does; now see whether it defined to BIG_ENDIAN or not.
4457 cat >conftest.$ac_ext <<_ACEOF
4460 cat confdefs.h >>conftest.$ac_ext
4461 cat >>conftest.$ac_ext <<_ACEOF
4462 /* end confdefs.h. */
4463 #include <sys/types.h>
4464 #include <sys/param.h>
4469 #if BYTE_ORDER != BIG_ENDIAN
4477 rm -f conftest.$ac_objext
4478 if { (ac_try="$ac_compile"
4480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4481 *) ac_try_echo=$ac_try;;
4483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4484 (eval "$ac_compile") 2>conftest.er1
4486 grep -v '^ *+' conftest.er1 >conftest.err
4488 cat conftest.err >&5
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); } &&
4491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4492 { (case "(($ac_try" in
4493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4494 *) ac_try_echo=$ac_try;;
4496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4497 (eval "$ac_try") 2>&5
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); }; } &&
4501 { ac_try='test -s conftest.$ac_objext'
4502 { (case "(($ac_try" in
4503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4504 *) ac_try_echo=$ac_try;;
4506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4507 (eval "$ac_try") 2>&5
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); }; }; then
4511 ac_cv_c_bigendian=yes
4513 echo "$as_me: failed program was:" >&5
4514 sed 's/^/| /' conftest.$ac_ext >&5
4516 ac_cv_c_bigendian=no
4519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4521 echo "$as_me: failed program was:" >&5
4522 sed 's/^/| /' conftest.$ac_ext >&5
4524 # It does not; compile a test program.
4525 if test "$cross_compiling" = yes; then
4526 # try to guess the endianness by grepping values into an object file
4527 ac_cv_c_bigendian=unknown
4528 cat >conftest.$ac_ext <<_ACEOF
4531 cat confdefs.h >>conftest.$ac_ext
4532 cat >>conftest.$ac_ext <<_ACEOF
4533 /* end confdefs.h. */
4534 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4535 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4536 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4537 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4538 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4539 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4543 _ascii (); _ebcdic ();
4548 rm -f conftest.$ac_objext
4549 if { (ac_try="$ac_compile"
4551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4552 *) ac_try_echo=$ac_try;;
4554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4555 (eval "$ac_compile") 2>conftest.er1
4557 grep -v '^ *+' conftest.er1 >conftest.err
4559 cat conftest.err >&5
4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561 (exit $ac_status); } &&
4562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4563 { (case "(($ac_try" in
4564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4565 *) ac_try_echo=$ac_try;;
4567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4568 (eval "$ac_try") 2>&5
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); }; } &&
4572 { ac_try='test -s conftest.$ac_objext'
4573 { (case "(($ac_try" in
4574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4575 *) ac_try_echo=$ac_try;;
4577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4578 (eval "$ac_try") 2>&5
4580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581 (exit $ac_status); }; }; then
4582 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4583 ac_cv_c_bigendian=yes
4585 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4586 if test "$ac_cv_c_bigendian" = unknown; then
4587 ac_cv_c_bigendian=no
4589 # finding both strings is unlikely to happen, but who knows?
4590 ac_cv_c_bigendian=unknown
4594 echo "$as_me: failed program was:" >&5
4595 sed 's/^/| /' conftest.$ac_ext >&5
4600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4602 cat >conftest.$ac_ext <<_ACEOF
4605 cat confdefs.h >>conftest.$ac_ext
4606 cat >>conftest.$ac_ext <<_ACEOF
4607 /* end confdefs.h. */
4608 $ac_includes_default
4613 /* Are we little or big endian? From Harbison&Steele. */
4617 char c[sizeof (long int)];
4620 return u.c[sizeof (long int) - 1] == 1;
4626 rm -f conftest$ac_exeext
4627 if { (ac_try="$ac_link"
4629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4630 *) ac_try_echo=$ac_try;;
4632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4633 (eval "$ac_link") 2>&5
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4637 { (case "(($ac_try" in
4638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4639 *) ac_try_echo=$ac_try;;
4641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4642 (eval "$ac_try") 2>&5
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); }; }; then
4646 ac_cv_c_bigendian=no
4648 echo "$as_me: program exited with status $ac_status" >&5
4649 echo "$as_me: failed program was:" >&5
4650 sed 's/^/| /' conftest.$ac_ext >&5
4653 ac_cv_c_bigendian=yes
4655 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4663 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4664 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4665 case $ac_cv_c_bigendian in
4673 { { echo "$as_me:$LINENO: error: unknown endianness
4674 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4675 echo "$as_me: error: unknown endianness
4676 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4677 { (exit 1); exit 1; }; } ;;
4681 if test "$cross_compiling" = yes; then
4682 LLVM_CROSS_COMPILING=1
4685 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4686 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4687 if test "${ac_cv_build_exeext+set}" = set; then
4688 echo $ECHO_N "(cached) $ECHO_C" >&6
4690 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4691 ac_cv_build_exeext=.exe
4693 ac_build_prefix=${build_alias}-
4695 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4696 set dummy ${ac_build_prefix}gcc; ac_word=$2
4697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4699 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4702 if test -n "$BUILD_CC"; then
4703 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709 test -z "$as_dir" && as_dir=.
4710 for ac_exec_ext in '' $ac_executable_extensions; do
4711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4712 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4722 BUILD_CC=$ac_cv_prog_BUILD_CC
4723 if test -n "$BUILD_CC"; then
4724 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4725 echo "${ECHO_T}$BUILD_CC" >&6; }
4727 { echo "$as_me:$LINENO: result: no" >&5
4728 echo "${ECHO_T}no" >&6; }
4732 if test -z "$BUILD_CC"; then
4733 # Extract the first word of "gcc", so it can be a program name with args.
4734 set dummy gcc; ac_word=$2
4735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4737 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4738 echo $ECHO_N "(cached) $ECHO_C" >&6
4740 if test -n "$BUILD_CC"; then
4741 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 test -z "$as_dir" && as_dir=.
4748 for ac_exec_ext in '' $ac_executable_extensions; do
4749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4750 ac_cv_prog_BUILD_CC="gcc"
4751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4760 BUILD_CC=$ac_cv_prog_BUILD_CC
4761 if test -n "$BUILD_CC"; then
4762 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4763 echo "${ECHO_T}$BUILD_CC" >&6; }
4765 { echo "$as_me:$LINENO: result: no" >&5
4766 echo "${ECHO_T}no" >&6; }
4770 if test -z "$BUILD_CC"; then
4771 # Extract the first word of "cc", so it can be a program name with args.
4772 set dummy cc; ac_word=$2
4773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4775 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4776 echo $ECHO_N "(cached) $ECHO_C" >&6
4778 if test -n "$BUILD_CC"; then
4779 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786 test -z "$as_dir" && as_dir=.
4787 for ac_exec_ext in '' $ac_executable_extensions; do
4788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4789 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4790 ac_prog_rejected=yes
4793 ac_cv_prog_BUILD_CC="cc"
4794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4801 if test $ac_prog_rejected = yes; then
4802 # We found a bogon in the path, so make sure we never use it.
4803 set dummy $ac_cv_prog_BUILD_CC
4805 if test $# != 0; then
4806 # We chose a different compiler from the bogus one.
4807 # However, it has the same basename, so the bogon will be chosen
4808 # first if we set BUILD_CC to just the basename; use the full file name.
4810 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4815 BUILD_CC=$ac_cv_prog_BUILD_CC
4816 if test -n "$BUILD_CC"; then
4817 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4818 echo "${ECHO_T}$BUILD_CC" >&6; }
4820 { echo "$as_me:$LINENO: result: no" >&5
4821 echo "${ECHO_T}no" >&6; }
4827 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4828 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4829 { (exit 1); exit 1; }; }
4830 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4832 echo 'int main () { return 0; }' > conftest.$ac_ext
4834 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4835 (eval $ac_build_link) 2>&5
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); }; then
4839 for file in conftest.*; do
4841 *.c | *.o | *.obj | *.dSYM) ;;
4842 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4846 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4847 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4848 { (exit 1); exit 1; }; }
4851 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4856 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4857 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4858 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4859 ac_build_exeext=$BUILD_EXEEXT
4861 ac_build_prefix=${build_alias}-
4862 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4863 set dummy ${ac_build_prefix}g++; ac_word=$2
4864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4866 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4867 echo $ECHO_N "(cached) $ECHO_C" >&6
4869 if test -n "$BUILD_CXX"; then
4870 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876 test -z "$as_dir" && as_dir=.
4877 for ac_exec_ext in '' $ac_executable_extensions; do
4878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4879 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4889 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4890 if test -n "$BUILD_CXX"; then
4891 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4892 echo "${ECHO_T}$BUILD_CXX" >&6; }
4894 { echo "$as_me:$LINENO: result: no" >&5
4895 echo "${ECHO_T}no" >&6; }
4899 if test -z "$BUILD_CXX"; then
4900 # Extract the first word of "g++", so it can be a program name with args.
4901 set dummy g++; ac_word=$2
4902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4904 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4905 echo $ECHO_N "(cached) $ECHO_C" >&6
4907 if test -n "$BUILD_CXX"; then
4908 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914 test -z "$as_dir" && as_dir=.
4915 for ac_exec_ext in '' $ac_executable_extensions; do
4916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4917 ac_cv_prog_BUILD_CXX="g++"
4918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4927 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4928 if test -n "$BUILD_CXX"; then
4929 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4930 echo "${ECHO_T}$BUILD_CXX" >&6; }
4932 { echo "$as_me:$LINENO: result: no" >&5
4933 echo "${ECHO_T}no" >&6; }
4937 if test -z "$BUILD_CXX"; then
4938 # Extract the first word of "c++", so it can be a program name with args.
4939 set dummy c++; ac_word=$2
4940 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4942 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4943 echo $ECHO_N "(cached) $ECHO_C" >&6
4945 if test -n "$BUILD_CXX"; then
4946 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953 test -z "$as_dir" && as_dir=.
4954 for ac_exec_ext in '' $ac_executable_extensions; do
4955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4956 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4957 ac_prog_rejected=yes
4960 ac_cv_prog_BUILD_CXX="c++"
4961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4968 if test $ac_prog_rejected = yes; then
4969 # We found a bogon in the path, so make sure we never use it.
4970 set dummy $ac_cv_prog_BUILD_CXX
4972 if test $# != 0; then
4973 # We chose a different compiler from the bogus one.
4974 # However, it has the same basename, so the bogon will be chosen
4975 # first if we set BUILD_CXX to just the basename; use the full file name.
4977 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4982 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4983 if test -n "$BUILD_CXX"; then
4984 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4985 echo "${ECHO_T}$BUILD_CXX" >&6; }
4987 { echo "$as_me:$LINENO: result: no" >&5
4988 echo "${ECHO_T}no" >&6; }
4995 LLVM_CROSS_COMPILING=0
4999 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5010 # Check whether --enable-libcpp was given.
5011 if test "${enable_libcpp+set}" = set; then
5012 enableval=$enable_libcpp;
5017 case "$enableval" in
5018 yes) ENABLE_LIBCPP=1
5022 default) ENABLE_LIBCPP=0
5024 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5025 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5026 { (exit 1); exit 1; }; } ;;
5029 # Check whether --enable-cxx11 was given.
5030 if test "${enable_cxx11+set}" = set; then
5031 enableval=$enable_cxx11;
5036 case "$enableval" in
5041 default) ENABLE_CXX11=0
5043 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5044 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5045 { (exit 1); exit 1; }; } ;;
5048 # Check whether --enable-optimized was given.
5049 if test "${enable_optimized+set}" = set; then
5050 enableval=$enable_optimized;
5055 if test ${enableval} = "no" ; then
5059 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5063 # Check whether --enable-profiling was given.
5064 if test "${enable_profiling+set}" = set; then
5065 enableval=$enable_profiling;
5070 if test ${enableval} = "no" ; then
5074 ENABLE_PROFILING=ENABLE_PROFILING=1
5078 # Check whether --enable-assertions was given.
5079 if test "${enable_assertions+set}" = set; then
5080 enableval=$enable_assertions;
5085 if test ${enableval} = "yes" ; then
5089 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5093 # Check whether --enable-werror was given.
5094 if test "${enable_werror+set}" = set; then
5095 enableval=$enable_werror;
5100 case "$enableval" in
5101 yes) ENABLE_WERROR=1
5105 default) ENABLE_WERROR=0
5107 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5108 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5109 { (exit 1); exit 1; }; } ;;
5112 # Check whether --enable-expensive-checks was given.
5113 if test "${enable_expensive_checks+set}" = set; then
5114 enableval=$enable_expensive_checks;
5119 if test ${enableval} = "yes" ; then
5120 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5122 EXPENSIVE_CHECKS=yes
5125 ENABLE_EXPENSIVE_CHECKS=
5131 # Check whether --enable-debug-runtime was given.
5132 if test "${enable_debug_runtime+set}" = set; then
5133 enableval=$enable_debug_runtime;
5138 if test ${enableval} = "no" ; then
5142 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5146 # Check whether --enable-debug-symbols was given.
5147 if test "${enable_debug_symbols+set}" = set; then
5148 enableval=$enable_debug_symbols;
5153 if test ${enableval} = "no" ; then
5157 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5161 # Check whether --enable-keep-symbols was given.
5162 if test "${enable_keep_symbols+set}" = set; then
5163 enableval=$enable_keep_symbols;
5168 if test ${enableval} = "no" ; then
5172 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5176 # Check whether --enable-jit was given.
5177 if test "${enable_jit+set}" = set; then
5178 enableval=$enable_jit;
5183 if test ${enableval} = "no"
5188 case "$llvm_cv_target_arch" in
5189 x86) TARGET_HAS_JIT=1
5191 Sparc) TARGET_HAS_JIT=0
5193 PowerPC) TARGET_HAS_JIT=1
5195 x86_64) TARGET_HAS_JIT=1
5197 ARM) TARGET_HAS_JIT=1
5199 Mips) TARGET_HAS_JIT=1
5201 XCore) TARGET_HAS_JIT=0
5203 MSP430) TARGET_HAS_JIT=0
5205 Hexagon) TARGET_HAS_JIT=0
5207 MBlaze) TARGET_HAS_JIT=0
5209 NVPTX) TARGET_HAS_JIT=0
5216 # Check whether --enable-docs was given.
5217 if test "${enable_docs+set}" = set; then
5218 enableval=$enable_docs;
5223 case "$enableval" in
5228 default) ENABLE_DOCS=1
5230 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5231 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5232 { (exit 1); exit 1; }; } ;;
5235 # Check whether --enable-doxygen was given.
5236 if test "${enable_doxygen+set}" = set; then
5237 enableval=$enable_doxygen;
5242 case "$enableval" in
5243 yes) ENABLE_DOXYGEN=1
5245 no) ENABLE_DOXYGEN=0
5247 default) ENABLE_DOXYGEN=0
5249 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5250 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5251 { (exit 1); exit 1; }; } ;;
5254 # Check whether --enable-threads was given.
5255 if test "${enable_threads+set}" = set; then
5256 enableval=$enable_threads;
5261 case "$enableval" in
5262 yes) LLVM_ENABLE_THREADS=1
5264 no) LLVM_ENABLE_THREADS=0
5266 default) LLVM_ENABLE_THREADS=1
5268 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5269 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5270 { (exit 1); exit 1; }; } ;;
5273 cat >>confdefs.h <<_ACEOF
5274 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5278 # Check whether --enable-pthreads was given.
5279 if test "${enable_pthreads+set}" = set; then
5280 enableval=$enable_pthreads;
5285 case "$enableval" in
5286 yes) ENABLE_PTHREADS=1
5288 no) ENABLE_PTHREADS=0
5290 default) ENABLE_PTHREADS=1
5292 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5293 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5294 { (exit 1); exit 1; }; } ;;
5297 # Check whether --enable-pic was given.
5298 if test "${enable_pic+set}" = set; then
5299 enableval=$enable_pic;
5304 case "$enableval" in
5309 default) ENABLE_PIC=1
5311 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5312 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5313 { (exit 1); exit 1; }; } ;;
5316 cat >>confdefs.h <<_ACEOF
5317 #define ENABLE_PIC $ENABLE_PIC
5321 # Check whether --enable-shared was given.
5322 if test "${enable_shared+set}" = set; then
5323 enableval=$enable_shared;
5328 case "$enableval" in
5329 yes) ENABLE_SHARED=1
5333 default) ENABLE_SHARED=0
5335 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5336 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5337 { (exit 1); exit 1; }; } ;;
5340 # Check whether --enable-embed-stdcxx was given.
5341 if test "${enable_embed_stdcxx+set}" = set; then
5342 enableval=$enable_embed_stdcxx;
5347 case "$enableval" in
5348 yes) ENABLE_EMBED_STDCXX=1
5350 no) ENABLE_EMBED_STDCXX=0
5352 default) ENABLE_EMBED_STDCXX=0
5354 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5355 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5356 { (exit 1); exit 1; }; } ;;
5359 # Check whether --enable-timestamps was given.
5360 if test "${enable_timestamps+set}" = set; then
5361 enableval=$enable_timestamps;
5366 case "$enableval" in
5367 yes) ENABLE_TIMESTAMPS=1
5369 no) ENABLE_TIMESTAMPS=0
5371 default) ENABLE_TIMESTAMPS=1
5373 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5374 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5375 { (exit 1); exit 1; }; } ;;
5378 cat >>confdefs.h <<_ACEOF
5379 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5384 # Check whether --enable-backtraces was given.
5385 if test "${enable_backtraces+set}" = set; then
5386 enableval=$enable_backtraces;
5391 case "$enableval" in
5392 yes) ENABLE_TIMESTAMPS=1
5394 no) ENABLE_TIMESTAMPS=0
5396 default) ENABLE_TIMESTAMPS=1
5398 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5399 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5400 { (exit 1); exit 1; }; } ;;
5403 cat >>confdefs.h <<_ACEOF
5404 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5409 # Check whether --enable-targets was given.
5410 if test "${enable_targets+set}" = set; then
5411 enableval=$enable_targets;
5416 if test "$enableval" = host-only ; then
5419 case "$enableval" in
5420 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
5421 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5423 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5424 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5425 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5426 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5427 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5428 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5429 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5430 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5431 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5432 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5433 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5434 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5435 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5436 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5437 host) case "$llvm_cv_target_arch" in
5438 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5439 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5440 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5441 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5442 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5443 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5444 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5445 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5446 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5447 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5448 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5449 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5450 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5451 echo "$as_me: error: Can not set target to build" >&2;}
5452 { (exit 1); exit 1; }; } ;;
5454 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5455 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5456 { (exit 1); exit 1; }; } ;;
5462 # Check whether --enable-experimental-targets was given.
5463 if test "${enable_experimental_targets+set}" = set; then
5464 enableval=$enable_experimental_targets;
5470 if test ${enableval} != "disable"
5472 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5475 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5478 for a_target in $TARGETS_TO_BUILD; do
5479 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5481 cat >>confdefs.h <<_ACEOF
5482 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5485 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5486 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5487 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5488 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5489 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5490 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5492 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5493 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5496 cat >>confdefs.h <<_ACEOF
5497 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5501 cat >>confdefs.h <<_ACEOF
5502 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5506 cat >>confdefs.h <<_ACEOF
5507 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5511 cat >>confdefs.h <<_ACEOF
5512 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5515 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5517 cat >>confdefs.h <<_ACEOF
5518 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5522 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5524 cat >>confdefs.h <<_ACEOF
5525 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5532 LLVM_ENUM_TARGETS=""
5533 LLVM_ENUM_ASM_PRINTERS=""
5534 LLVM_ENUM_ASM_PARSERS=""
5535 LLVM_ENUM_DISASSEMBLERS=""
5536 for target_to_build in $TARGETS_TO_BUILD; do
5537 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5538 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5539 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5541 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5542 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5544 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5545 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5554 # Check whether --with-optimize-option was given.
5555 if test "${with_optimize_option+set}" = set; then
5556 withval=$with_optimize_option;
5561 { echo "$as_me:$LINENO: checking optimization flags" >&5
5562 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5565 case "$llvm_cv_os_type" in
5566 FreeBSD) optimize_option=-O2 ;;
5567 MingW) optimize_option=-O2 ;;
5568 *) optimize_option=-O3 ;;
5570 *) optimize_option="$withval" ;;
5572 OPTIMIZE_OPTION=$optimize_option
5574 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5575 echo "${ECHO_T}$optimize_option" >&6; }
5578 # Check whether --with-extra-options was given.
5579 if test "${with_extra_options+set}" = set; then
5580 withval=$with_extra_options;
5586 default) EXTRA_OPTIONS= ;;
5587 *) EXTRA_OPTIONS=$withval ;;
5589 EXTRA_OPTIONS=$EXTRA_OPTIONS
5593 # Check whether --with-extra-ld-options was given.
5594 if test "${with_extra_ld_options+set}" = set; then
5595 withval=$with_extra_ld_options;
5601 default) EXTRA_LD_OPTIONS= ;;
5602 *) EXTRA_LD_OPTIONS=$withval ;;
5604 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5607 # Check whether --enable-bindings was given.
5608 if test "${enable_bindings+set}" = set; then
5609 enableval=$enable_bindings;
5614 BINDINGS_TO_BUILD=""
5615 case "$enableval" in
5616 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5617 all ) BINDINGS_TO_BUILD="ocaml" ;;
5618 none | no) BINDINGS_TO_BUILD="" ;;
5619 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5620 case "$a_binding" in
5621 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5622 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5623 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5624 { (exit 1); exit 1; }; } ;;
5631 # Check whether --with-ocaml-libdir was given.
5632 if test "${with_ocaml_libdir+set}" = set; then
5633 withval=$with_ocaml_libdir;
5639 auto) with_ocaml_libdir="$withval" ;;
5640 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5641 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5642 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5643 { (exit 1); exit 1; }; } ;;
5647 # Check whether --with-clang-srcdir was given.
5648 if test "${with_clang_srcdir+set}" = set; then
5649 withval=$with_clang_srcdir;
5655 -) clang_src_root="" ;;
5656 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5657 *) clang_src_root="$ac_pwd/$withval" ;;
5659 CLANG_SRC_ROOT=$clang_src_root
5663 # Check whether --with-clang-resource-dir was given.
5664 if test "${with_clang_resource_dir+set}" = set; then
5665 withval=$with_clang_resource_dir;
5671 cat >>confdefs.h <<_ACEOF
5672 #define CLANG_RESOURCE_DIR "$withval"
5677 # Check whether --with-c-include-dirs was given.
5678 if test "${with_c_include_dirs+set}" = set; then
5679 withval=$with_c_include_dirs;
5685 cat >>confdefs.h <<_ACEOF
5686 #define C_INCLUDE_DIRS "$withval"
5690 # Clang normally uses the system c++ headers and libraries. With this option,
5691 # clang will use the ones provided by a gcc installation instead. This option should
5692 # be passed the same value that was used with --prefix when configuring gcc.
5694 # Check whether --with-gcc-toolchain was given.
5695 if test "${with_gcc_toolchain+set}" = set; then
5696 withval=$with_gcc_toolchain;
5702 cat >>confdefs.h <<_ACEOF
5703 #define GCC_INSTALL_PREFIX "$withval"
5708 # Check whether --with-default-sysroot was given.
5709 if test "${with_default_sysroot+set}" = set; then
5710 withval=$with_default_sysroot;
5716 cat >>confdefs.h <<_ACEOF
5717 #define DEFAULT_SYSROOT "$withval"
5722 # Check whether --with-binutils-include was given.
5723 if test "${with_binutils_include+set}" = set; then
5724 withval=$with_binutils_include;
5730 default) WITH_BINUTILS_INCDIR=default ;;
5731 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5732 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5733 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5734 { (exit 1); exit 1; }; } ;;
5736 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5737 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5739 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5740 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5741 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5742 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5743 { (exit 1); exit 1; }; };
5748 # Check whether --with-bug-report-url was given.
5749 if test "${with_bug_report_url+set}" = set; then
5750 withval=$with_bug_report_url;
5752 withval="http://llvm.org/bugs/"
5756 cat >>confdefs.h <<_ACEOF
5757 #define BUG_REPORT_URL "$withval"
5761 # Check whether --enable-libffi was given.
5762 if test "${enable_libffi+set}" = set; then
5763 enableval=$enable_libffi; case "$enableval" in
5764 yes) llvm_cv_enable_libffi="yes" ;;
5765 no) llvm_cv_enable_libffi="no" ;;
5766 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5767 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5768 { (exit 1); exit 1; }; } ;;
5771 llvm_cv_enable_libffi=no
5776 # Check whether --with-internal-prefix was given.
5777 if test "${with_internal_prefix+set}" = set; then
5778 withval=$with_internal_prefix;
5783 INTERNAL_PREFIX=$withval
5787 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5788 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5789 if test "${lt_cv_path_NM+set}" = set; then
5790 echo $ECHO_N "(cached) $ECHO_C" >&6
5792 if test -n "$NM"; then
5793 # Let the user override the test.
5796 lt_nm_to_check="${ac_tool_prefix}nm"
5797 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5798 lt_nm_to_check="$lt_nm_to_check nm"
5800 for lt_tmp_nm in $lt_nm_to_check; do
5801 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5802 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5804 test -z "$ac_dir" && ac_dir=.
5805 tmp_nm="$ac_dir/$lt_tmp_nm"
5806 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5807 # Check to see if the nm accepts a BSD-compat flag.
5808 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5809 # nm: unknown option "B" ignored
5810 # Tru64's nm complains that /dev/null is an invalid object file
5811 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5812 */dev/null* | *'Invalid file or object type'*)
5813 lt_cv_path_NM="$tmp_nm -B"
5817 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5819 lt_cv_path_NM="$tmp_nm -p"
5823 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5824 continue # so that we can try to find one that supports BSD flags
5833 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5836 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5837 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5842 { echo "$as_me:$LINENO: checking for GNU make" >&5
5843 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5844 if test "${llvm_cv_gnu_make_command+set}" = set; then
5845 echo $ECHO_N "(cached) $ECHO_C" >&6
5847 llvm_cv_gnu_make_command=''
5848 for a in "$MAKE" make gmake gnumake ; do
5849 if test -z "$a" ; then continue ; fi ;
5850 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5852 llvm_cv_gnu_make_command=$a ;
5857 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5858 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5859 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5863 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5864 echo "${ECHO_T}\"Not found\"" >&6; };
5868 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5869 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5871 if test "$LN_S" = "ln -s"; then
5872 { echo "$as_me:$LINENO: result: yes" >&5
5873 echo "${ECHO_T}yes" >&6; }
5875 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5876 echo "${ECHO_T}no, using $LN_S" >&6; }
5879 # Extract the first word of "cmp", so it can be a program name with args.
5880 set dummy cmp; ac_word=$2
5881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5883 if test "${ac_cv_path_CMP+set}" = set; then
5884 echo $ECHO_N "(cached) $ECHO_C" >&6
5888 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895 test -z "$as_dir" && as_dir=.
5896 for ac_exec_ext in '' $ac_executable_extensions; do
5897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5898 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5906 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5911 if test -n "$CMP"; then
5912 { echo "$as_me:$LINENO: result: $CMP" >&5
5913 echo "${ECHO_T}$CMP" >&6; }
5915 { echo "$as_me:$LINENO: result: no" >&5
5916 echo "${ECHO_T}no" >&6; }
5920 # Extract the first word of "cp", so it can be a program name with args.
5921 set dummy cp; ac_word=$2
5922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5924 if test "${ac_cv_path_CP+set}" = set; then
5925 echo $ECHO_N "(cached) $ECHO_C" >&6
5929 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936 test -z "$as_dir" && as_dir=.
5937 for ac_exec_ext in '' $ac_executable_extensions; do
5938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5939 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5947 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5952 if test -n "$CP"; then
5953 { echo "$as_me:$LINENO: result: $CP" >&5
5954 echo "${ECHO_T}$CP" >&6; }
5956 { echo "$as_me:$LINENO: result: no" >&5
5957 echo "${ECHO_T}no" >&6; }
5961 # Extract the first word of "date", so it can be a program name with args.
5962 set dummy date; ac_word=$2
5963 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5965 if test "${ac_cv_path_DATE+set}" = set; then
5966 echo $ECHO_N "(cached) $ECHO_C" >&6
5970 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5977 test -z "$as_dir" && as_dir=.
5978 for ac_exec_ext in '' $ac_executable_extensions; do
5979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5980 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5988 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5992 DATE=$ac_cv_path_DATE
5993 if test -n "$DATE"; then
5994 { echo "$as_me:$LINENO: result: $DATE" >&5
5995 echo "${ECHO_T}$DATE" >&6; }
5997 { echo "$as_me:$LINENO: result: no" >&5
5998 echo "${ECHO_T}no" >&6; }
6002 # Extract the first word of "find", so it can be a program name with args.
6003 set dummy find; ac_word=$2
6004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6006 if test "${ac_cv_path_FIND+set}" = set; then
6007 echo $ECHO_N "(cached) $ECHO_C" >&6
6011 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6018 test -z "$as_dir" && as_dir=.
6019 for ac_exec_ext in '' $ac_executable_extensions; do
6020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6021 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6029 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6033 FIND=$ac_cv_path_FIND
6034 if test -n "$FIND"; then
6035 { echo "$as_me:$LINENO: result: $FIND" >&5
6036 echo "${ECHO_T}$FIND" >&6; }
6038 { echo "$as_me:$LINENO: result: no" >&5
6039 echo "${ECHO_T}no" >&6; }
6043 # Extract the first word of "grep", so it can be a program name with args.
6044 set dummy grep; ac_word=$2
6045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6047 if test "${ac_cv_path_GREP+set}" = set; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6052 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059 test -z "$as_dir" && as_dir=.
6060 for ac_exec_ext in '' $ac_executable_extensions; do
6061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6062 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6070 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6074 GREP=$ac_cv_path_GREP
6075 if test -n "$GREP"; then
6076 { echo "$as_me:$LINENO: result: $GREP" >&5
6077 echo "${ECHO_T}$GREP" >&6; }
6079 { echo "$as_me:$LINENO: result: no" >&5
6080 echo "${ECHO_T}no" >&6; }
6084 # Extract the first word of "mkdir", so it can be a program name with args.
6085 set dummy mkdir; ac_word=$2
6086 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6088 if test "${ac_cv_path_MKDIR+set}" = set; then
6089 echo $ECHO_N "(cached) $ECHO_C" >&6
6093 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100 test -z "$as_dir" && as_dir=.
6101 for ac_exec_ext in '' $ac_executable_extensions; do
6102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6103 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6111 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6115 MKDIR=$ac_cv_path_MKDIR
6116 if test -n "$MKDIR"; then
6117 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6118 echo "${ECHO_T}$MKDIR" >&6; }
6120 { echo "$as_me:$LINENO: result: no" >&5
6121 echo "${ECHO_T}no" >&6; }
6125 # Extract the first word of "mv", so it can be a program name with args.
6126 set dummy mv; ac_word=$2
6127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6129 if test "${ac_cv_path_MV+set}" = set; then
6130 echo $ECHO_N "(cached) $ECHO_C" >&6
6134 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141 test -z "$as_dir" && as_dir=.
6142 for ac_exec_ext in '' $ac_executable_extensions; do
6143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6144 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6152 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6157 if test -n "$MV"; then
6158 { echo "$as_me:$LINENO: result: $MV" >&5
6159 echo "${ECHO_T}$MV" >&6; }
6161 { echo "$as_me:$LINENO: result: no" >&5
6162 echo "${ECHO_T}no" >&6; }
6166 if test -n "$ac_tool_prefix"; then
6167 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6168 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6171 if test "${ac_cv_prog_RANLIB+set}" = set; then
6172 echo $ECHO_N "(cached) $ECHO_C" >&6
6174 if test -n "$RANLIB"; then
6175 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181 test -z "$as_dir" && as_dir=.
6182 for ac_exec_ext in '' $ac_executable_extensions; do
6183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6184 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6194 RANLIB=$ac_cv_prog_RANLIB
6195 if test -n "$RANLIB"; then
6196 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6197 echo "${ECHO_T}$RANLIB" >&6; }
6199 { echo "$as_me:$LINENO: result: no" >&5
6200 echo "${ECHO_T}no" >&6; }
6205 if test -z "$ac_cv_prog_RANLIB"; then
6206 ac_ct_RANLIB=$RANLIB
6207 # Extract the first word of "ranlib", so it can be a program name with args.
6208 set dummy ranlib; ac_word=$2
6209 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6211 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6212 echo $ECHO_N "(cached) $ECHO_C" >&6
6214 if test -n "$ac_ct_RANLIB"; then
6215 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221 test -z "$as_dir" && as_dir=.
6222 for ac_exec_ext in '' $ac_executable_extensions; do
6223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6224 ac_cv_prog_ac_ct_RANLIB="ranlib"
6225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6234 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6235 if test -n "$ac_ct_RANLIB"; then
6236 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6237 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6239 { echo "$as_me:$LINENO: result: no" >&5
6240 echo "${ECHO_T}no" >&6; }
6243 if test "x$ac_ct_RANLIB" = x; then
6246 case $cross_compiling:$ac_tool_warned in
6248 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6249 whose name does not start with the host triplet. If you think this
6250 configuration is useful to you, please write to autoconf@gnu.org." >&5
6251 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6252 whose name does not start with the host triplet. If you think this
6253 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6254 ac_tool_warned=yes ;;
6256 RANLIB=$ac_ct_RANLIB
6259 RANLIB="$ac_cv_prog_RANLIB"
6262 if test -n "$ac_tool_prefix"; then
6263 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6264 set dummy ${ac_tool_prefix}ar; ac_word=$2
6265 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6267 if test "${ac_cv_prog_AR+set}" = set; then
6268 echo $ECHO_N "(cached) $ECHO_C" >&6
6270 if test -n "$AR"; then
6271 ac_cv_prog_AR="$AR" # Let the user override the test.
6273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6277 test -z "$as_dir" && as_dir=.
6278 for ac_exec_ext in '' $ac_executable_extensions; do
6279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6280 ac_cv_prog_AR="${ac_tool_prefix}ar"
6281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6291 if test -n "$AR"; then
6292 { echo "$as_me:$LINENO: result: $AR" >&5
6293 echo "${ECHO_T}$AR" >&6; }
6295 { echo "$as_me:$LINENO: result: no" >&5
6296 echo "${ECHO_T}no" >&6; }
6301 if test -z "$ac_cv_prog_AR"; then
6303 # Extract the first word of "ar", so it can be a program name with args.
6304 set dummy ar; ac_word=$2
6305 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6307 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6308 echo $ECHO_N "(cached) $ECHO_C" >&6
6310 if test -n "$ac_ct_AR"; then
6311 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6317 test -z "$as_dir" && as_dir=.
6318 for ac_exec_ext in '' $ac_executable_extensions; do
6319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6320 ac_cv_prog_ac_ct_AR="ar"
6321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6330 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6331 if test -n "$ac_ct_AR"; then
6332 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6333 echo "${ECHO_T}$ac_ct_AR" >&6; }
6335 { echo "$as_me:$LINENO: result: no" >&5
6336 echo "${ECHO_T}no" >&6; }
6339 if test "x$ac_ct_AR" = x; then
6342 case $cross_compiling:$ac_tool_warned in
6344 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6345 whose name does not start with the host triplet. If you think this
6346 configuration is useful to you, please write to autoconf@gnu.org." >&5
6347 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6348 whose name does not start with the host triplet. If you think this
6349 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6350 ac_tool_warned=yes ;;
6358 # Extract the first word of "rm", so it can be a program name with args.
6359 set dummy rm; ac_word=$2
6360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6362 if test "${ac_cv_path_RM+set}" = set; then
6363 echo $ECHO_N "(cached) $ECHO_C" >&6
6367 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6374 test -z "$as_dir" && as_dir=.
6375 for ac_exec_ext in '' $ac_executable_extensions; do
6376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6377 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6385 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6390 if test -n "$RM"; then
6391 { echo "$as_me:$LINENO: result: $RM" >&5
6392 echo "${ECHO_T}$RM" >&6; }
6394 { echo "$as_me:$LINENO: result: no" >&5
6395 echo "${ECHO_T}no" >&6; }
6399 # Extract the first word of "sed", so it can be a program name with args.
6400 set dummy sed; ac_word=$2
6401 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6403 if test "${ac_cv_path_SED+set}" = set; then
6404 echo $ECHO_N "(cached) $ECHO_C" >&6
6408 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6415 test -z "$as_dir" && as_dir=.
6416 for ac_exec_ext in '' $ac_executable_extensions; do
6417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6418 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6426 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6431 if test -n "$SED"; then
6432 { echo "$as_me:$LINENO: result: $SED" >&5
6433 echo "${ECHO_T}$SED" >&6; }
6435 { echo "$as_me:$LINENO: result: no" >&5
6436 echo "${ECHO_T}no" >&6; }
6440 # Extract the first word of "tar", so it can be a program name with args.
6441 set dummy tar; ac_word=$2
6442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6444 if test "${ac_cv_path_TAR+set}" = set; then
6445 echo $ECHO_N "(cached) $ECHO_C" >&6
6449 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456 test -z "$as_dir" && as_dir=.
6457 for ac_exec_ext in '' $ac_executable_extensions; do
6458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6459 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6467 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6472 if test -n "$TAR"; then
6473 { echo "$as_me:$LINENO: result: $TAR" >&5
6474 echo "${ECHO_T}$TAR" >&6; }
6476 { echo "$as_me:$LINENO: result: no" >&5
6477 echo "${ECHO_T}no" >&6; }
6481 # Extract the first word of "pwd", so it can be a program name with args.
6482 set dummy pwd; ac_word=$2
6483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6485 if test "${ac_cv_path_BINPWD+set}" = set; then
6486 echo $ECHO_N "(cached) $ECHO_C" >&6
6490 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497 test -z "$as_dir" && as_dir=.
6498 for ac_exec_ext in '' $ac_executable_extensions; do
6499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6500 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6508 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6512 BINPWD=$ac_cv_path_BINPWD
6513 if test -n "$BINPWD"; then
6514 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6515 echo "${ECHO_T}$BINPWD" >&6; }
6517 { echo "$as_me:$LINENO: result: no" >&5
6518 echo "${ECHO_T}no" >&6; }
6523 # Extract the first word of "Graphviz", so it can be a program name with args.
6524 set dummy Graphviz; ac_word=$2
6525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6527 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6528 echo $ECHO_N "(cached) $ECHO_C" >&6
6532 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539 test -z "$as_dir" && as_dir=.
6540 for ac_exec_ext in '' $ac_executable_extensions; do
6541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6542 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6550 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6554 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6555 if test -n "$GRAPHVIZ"; then
6556 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6557 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6559 { echo "$as_me:$LINENO: result: no" >&5
6560 echo "${ECHO_T}no" >&6; }
6564 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6566 cat >>confdefs.h <<\_ACEOF
6567 #define HAVE_GRAPHVIZ 1
6570 if test "$llvm_cv_os_type" = "MingW" ; then
6571 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6574 cat >>confdefs.h <<_ACEOF
6575 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6579 # Extract the first word of "dot", so it can be a program name with args.
6580 set dummy dot; ac_word=$2
6581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6583 if test "${ac_cv_path_DOT+set}" = set; then
6584 echo $ECHO_N "(cached) $ECHO_C" >&6
6588 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6595 test -z "$as_dir" && as_dir=.
6596 for ac_exec_ext in '' $ac_executable_extensions; do
6597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6598 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6606 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6611 if test -n "$DOT"; then
6612 { echo "$as_me:$LINENO: result: $DOT" >&5
6613 echo "${ECHO_T}$DOT" >&6; }
6615 { echo "$as_me:$LINENO: result: no" >&5
6616 echo "${ECHO_T}no" >&6; }
6620 if test "$DOT" != "echo dot" ; then
6622 cat >>confdefs.h <<\_ACEOF
6626 if test "$llvm_cv_os_type" = "MingW" ; then
6627 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6630 cat >>confdefs.h <<_ACEOF
6631 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6635 # Extract the first word of "fdp", so it can be a program name with args.
6636 set dummy fdp; ac_word=$2
6637 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6639 if test "${ac_cv_path_FDP+set}" = set; then
6640 echo $ECHO_N "(cached) $ECHO_C" >&6
6644 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6651 test -z "$as_dir" && as_dir=.
6652 for ac_exec_ext in '' $ac_executable_extensions; do
6653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6654 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6662 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6667 if test -n "$FDP"; then
6668 { echo "$as_me:$LINENO: result: $FDP" >&5
6669 echo "${ECHO_T}$FDP" >&6; }
6671 { echo "$as_me:$LINENO: result: no" >&5
6672 echo "${ECHO_T}no" >&6; }
6676 if test "$FDP" != "echo fdp" ; then
6678 cat >>confdefs.h <<\_ACEOF
6682 if test "$llvm_cv_os_type" = "MingW" ; then
6683 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6686 cat >>confdefs.h <<_ACEOF
6687 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6691 # Extract the first word of "neato", so it can be a program name with args.
6692 set dummy neato; ac_word=$2
6693 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6695 if test "${ac_cv_path_NEATO+set}" = set; then
6696 echo $ECHO_N "(cached) $ECHO_C" >&6
6700 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707 test -z "$as_dir" && as_dir=.
6708 for ac_exec_ext in '' $ac_executable_extensions; do
6709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6710 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6718 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6722 NEATO=$ac_cv_path_NEATO
6723 if test -n "$NEATO"; then
6724 { echo "$as_me:$LINENO: result: $NEATO" >&5
6725 echo "${ECHO_T}$NEATO" >&6; }
6727 { echo "$as_me:$LINENO: result: no" >&5
6728 echo "${ECHO_T}no" >&6; }
6732 if test "$NEATO" != "echo neato" ; then
6734 cat >>confdefs.h <<\_ACEOF
6735 #define HAVE_NEATO 1
6738 if test "$llvm_cv_os_type" = "MingW" ; then
6739 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6742 cat >>confdefs.h <<_ACEOF
6743 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6747 # Extract the first word of "twopi", so it can be a program name with args.
6748 set dummy twopi; ac_word=$2
6749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6751 if test "${ac_cv_path_TWOPI+set}" = set; then
6752 echo $ECHO_N "(cached) $ECHO_C" >&6
6756 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763 test -z "$as_dir" && as_dir=.
6764 for ac_exec_ext in '' $ac_executable_extensions; do
6765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6766 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6774 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6778 TWOPI=$ac_cv_path_TWOPI
6779 if test -n "$TWOPI"; then
6780 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6781 echo "${ECHO_T}$TWOPI" >&6; }
6783 { echo "$as_me:$LINENO: result: no" >&5
6784 echo "${ECHO_T}no" >&6; }
6788 if test "$TWOPI" != "echo twopi" ; then
6790 cat >>confdefs.h <<\_ACEOF
6791 #define HAVE_TWOPI 1
6794 if test "$llvm_cv_os_type" = "MingW" ; then
6795 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6798 cat >>confdefs.h <<_ACEOF
6799 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6803 # Extract the first word of "circo", so it can be a program name with args.
6804 set dummy circo; ac_word=$2
6805 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6807 if test "${ac_cv_path_CIRCO+set}" = set; then
6808 echo $ECHO_N "(cached) $ECHO_C" >&6
6812 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819 test -z "$as_dir" && as_dir=.
6820 for ac_exec_ext in '' $ac_executable_extensions; do
6821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6822 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6830 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6834 CIRCO=$ac_cv_path_CIRCO
6835 if test -n "$CIRCO"; then
6836 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6837 echo "${ECHO_T}$CIRCO" >&6; }
6839 { echo "$as_me:$LINENO: result: no" >&5
6840 echo "${ECHO_T}no" >&6; }
6844 if test "$CIRCO" != "echo circo" ; then
6846 cat >>confdefs.h <<\_ACEOF
6847 #define HAVE_CIRCO 1
6850 if test "$llvm_cv_os_type" = "MingW" ; then
6851 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6854 cat >>confdefs.h <<_ACEOF
6855 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6859 for ac_prog in gv gsview32
6861 # Extract the first word of "$ac_prog", so it can be a program name with args.
6862 set dummy $ac_prog; ac_word=$2
6863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6865 if test "${ac_cv_path_GV+set}" = set; then
6866 echo $ECHO_N "(cached) $ECHO_C" >&6
6870 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877 test -z "$as_dir" && as_dir=.
6878 for ac_exec_ext in '' $ac_executable_extensions; do
6879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6880 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6892 if test -n "$GV"; then
6893 { echo "$as_me:$LINENO: result: $GV" >&5
6894 echo "${ECHO_T}$GV" >&6; }
6896 { echo "$as_me:$LINENO: result: no" >&5
6897 echo "${ECHO_T}no" >&6; }
6901 test -n "$GV" && break
6903 test -n "$GV" || GV="echo gv"
6905 if test "$GV" != "echo gv" ; then
6907 cat >>confdefs.h <<\_ACEOF
6911 if test "$llvm_cv_os_type" = "MingW" ; then
6912 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6915 cat >>confdefs.h <<_ACEOF
6916 #define LLVM_PATH_GV "$GV${EXEEXT}"
6920 # Extract the first word of "dotty", so it can be a program name with args.
6921 set dummy dotty; ac_word=$2
6922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6924 if test "${ac_cv_path_DOTTY+set}" = set; then
6925 echo $ECHO_N "(cached) $ECHO_C" >&6
6929 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936 test -z "$as_dir" && as_dir=.
6937 for ac_exec_ext in '' $ac_executable_extensions; do
6938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6939 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6947 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6951 DOTTY=$ac_cv_path_DOTTY
6952 if test -n "$DOTTY"; then
6953 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6954 echo "${ECHO_T}$DOTTY" >&6; }
6956 { echo "$as_me:$LINENO: result: no" >&5
6957 echo "${ECHO_T}no" >&6; }
6961 if test "$DOTTY" != "echo dotty" ; then
6963 cat >>confdefs.h <<\_ACEOF
6964 #define HAVE_DOTTY 1
6967 if test "$llvm_cv_os_type" = "MingW" ; then
6968 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6971 cat >>confdefs.h <<_ACEOF
6972 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6976 # Extract the first word of "xdot.py", so it can be a program name with args.
6977 set dummy xdot.py; ac_word=$2
6978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6980 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6981 echo $ECHO_N "(cached) $ECHO_C" >&6
6985 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992 test -z "$as_dir" && as_dir=.
6993 for ac_exec_ext in '' $ac_executable_extensions; do
6994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6995 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7003 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7007 XDOT_PY=$ac_cv_path_XDOT_PY
7008 if test -n "$XDOT_PY"; then
7009 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7010 echo "${ECHO_T}$XDOT_PY" >&6; }
7012 { echo "$as_me:$LINENO: result: no" >&5
7013 echo "${ECHO_T}no" >&6; }
7017 if test "$XDOT_PY" != "echo xdot.py" ; then
7019 cat >>confdefs.h <<\_ACEOF
7020 #define HAVE_XDOT_PY 1
7023 if test "$llvm_cv_os_type" = "MingW" ; then
7024 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7027 cat >>confdefs.h <<_ACEOF
7028 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7033 # Find a good install program. We prefer a C program (faster),
7034 # so one script is as good as another. But avoid the broken or
7035 # incompatible versions:
7036 # SysV /etc/install, /usr/sbin/install
7037 # SunOS /usr/etc/install
7038 # IRIX /sbin/install
7040 # AmigaOS /C/install, which installs bootblocks on floppy discs
7041 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7042 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7043 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7044 # OS/2's system install, which has a completely different semantic
7045 # ./install, which can be erroneously created by make from ./install.sh.
7046 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7047 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7048 if test -z "$INSTALL"; then
7049 if test "${ac_cv_path_install+set}" = set; then
7050 echo $ECHO_N "(cached) $ECHO_C" >&6
7052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7056 test -z "$as_dir" && as_dir=.
7057 # Account for people who put trailing slashes in PATH elements.
7059 ./ | .// | /cC/* | \
7060 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7061 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7064 # OSF1 and SCO ODT 3.0 have their own names for install.
7065 # Don't use installbsd from OSF since it installs stuff as root
7067 for ac_prog in ginstall scoinst install; do
7068 for ac_exec_ext in '' $ac_executable_extensions; do
7069 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7070 if test $ac_prog = install &&
7071 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7072 # AIX install. It has an incompatible calling convention.
7074 elif test $ac_prog = install &&
7075 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7076 # program-specific install script used by HP pwplus--don't use.
7079 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7092 if test "${ac_cv_path_install+set}" = set; then
7093 INSTALL=$ac_cv_path_install
7095 # As a last resort, use the slow shell script. Don't cache a
7096 # value for INSTALL within a source directory, because that will
7097 # break other packages using the cache if that directory is
7098 # removed, or if the value is a relative name.
7099 INSTALL=$ac_install_sh
7102 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7103 echo "${ECHO_T}$INSTALL" >&6; }
7105 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7106 # It thinks the first close brace ends the variable substitution.
7107 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7109 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7111 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7114 [\\/$]* | ?:[\\/]* ) ;;
7115 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7118 # Extract the first word of "bzip2", so it can be a program name with args.
7119 set dummy bzip2; ac_word=$2
7120 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7122 if test "${ac_cv_path_BZIP2+set}" = set; then
7123 echo $ECHO_N "(cached) $ECHO_C" >&6
7127 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134 test -z "$as_dir" && as_dir=.
7135 for ac_exec_ext in '' $ac_executable_extensions; do
7136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7137 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7148 BZIP2=$ac_cv_path_BZIP2
7149 if test -n "$BZIP2"; then
7150 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7151 echo "${ECHO_T}$BZIP2" >&6; }
7153 { echo "$as_me:$LINENO: result: no" >&5
7154 echo "${ECHO_T}no" >&6; }
7158 # Extract the first word of "cat", so it can be a program name with args.
7159 set dummy cat; ac_word=$2
7160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7162 if test "${ac_cv_path_CAT+set}" = set; then
7163 echo $ECHO_N "(cached) $ECHO_C" >&6
7167 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7174 test -z "$as_dir" && as_dir=.
7175 for ac_exec_ext in '' $ac_executable_extensions; do
7176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7177 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7189 if test -n "$CAT"; then
7190 { echo "$as_me:$LINENO: result: $CAT" >&5
7191 echo "${ECHO_T}$CAT" >&6; }
7193 { echo "$as_me:$LINENO: result: no" >&5
7194 echo "${ECHO_T}no" >&6; }
7198 # Extract the first word of "doxygen", so it can be a program name with args.
7199 set dummy doxygen; ac_word=$2
7200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7202 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7203 echo $ECHO_N "(cached) $ECHO_C" >&6
7207 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7214 test -z "$as_dir" && as_dir=.
7215 for ac_exec_ext in '' $ac_executable_extensions; do
7216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7217 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7228 DOXYGEN=$ac_cv_path_DOXYGEN
7229 if test -n "$DOXYGEN"; then
7230 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7231 echo "${ECHO_T}$DOXYGEN" >&6; }
7233 { echo "$as_me:$LINENO: result: no" >&5
7234 echo "${ECHO_T}no" >&6; }
7238 # Extract the first word of "groff", so it can be a program name with args.
7239 set dummy groff; ac_word=$2
7240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7242 if test "${ac_cv_path_GROFF+set}" = set; then
7243 echo $ECHO_N "(cached) $ECHO_C" >&6
7247 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254 test -z "$as_dir" && as_dir=.
7255 for ac_exec_ext in '' $ac_executable_extensions; do
7256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7257 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7268 GROFF=$ac_cv_path_GROFF
7269 if test -n "$GROFF"; then
7270 { echo "$as_me:$LINENO: result: $GROFF" >&5
7271 echo "${ECHO_T}$GROFF" >&6; }
7273 { echo "$as_me:$LINENO: result: no" >&5
7274 echo "${ECHO_T}no" >&6; }
7278 # Extract the first word of "gzip", so it can be a program name with args.
7279 set dummy gzip; ac_word=$2
7280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7282 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7283 echo $ECHO_N "(cached) $ECHO_C" >&6
7287 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7294 test -z "$as_dir" && as_dir=.
7295 for ac_exec_ext in '' $ac_executable_extensions; do
7296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7297 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7308 GZIPBIN=$ac_cv_path_GZIPBIN
7309 if test -n "$GZIPBIN"; then
7310 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7311 echo "${ECHO_T}$GZIPBIN" >&6; }
7313 { echo "$as_me:$LINENO: result: no" >&5
7314 echo "${ECHO_T}no" >&6; }
7318 # Extract the first word of "pdfroff", so it can be a program name with args.
7319 set dummy pdfroff; ac_word=$2
7320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7322 if test "${ac_cv_path_PDFROFF+set}" = set; then
7323 echo $ECHO_N "(cached) $ECHO_C" >&6
7327 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7334 test -z "$as_dir" && as_dir=.
7335 for ac_exec_ext in '' $ac_executable_extensions; do
7336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7337 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7348 PDFROFF=$ac_cv_path_PDFROFF
7349 if test -n "$PDFROFF"; then
7350 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7351 echo "${ECHO_T}$PDFROFF" >&6; }
7353 { echo "$as_me:$LINENO: result: no" >&5
7354 echo "${ECHO_T}no" >&6; }
7358 # Extract the first word of "zip", so it can be a program name with args.
7359 set dummy zip; ac_word=$2
7360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7362 if test "${ac_cv_path_ZIP+set}" = set; then
7363 echo $ECHO_N "(cached) $ECHO_C" >&6
7367 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7374 test -z "$as_dir" && as_dir=.
7375 for ac_exec_ext in '' $ac_executable_extensions; do
7376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7377 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7389 if test -n "$ZIP"; then
7390 { echo "$as_me:$LINENO: result: $ZIP" >&5
7391 echo "${ECHO_T}$ZIP" >&6; }
7393 { echo "$as_me:$LINENO: result: no" >&5
7394 echo "${ECHO_T}no" >&6; }
7398 for ac_prog in ocamlc
7400 # Extract the first word of "$ac_prog", so it can be a program name with args.
7401 set dummy $ac_prog; ac_word=$2
7402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7404 if test "${ac_cv_path_OCAMLC+set}" = set; then
7405 echo $ECHO_N "(cached) $ECHO_C" >&6
7409 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7416 test -z "$as_dir" && as_dir=.
7417 for ac_exec_ext in '' $ac_executable_extensions; do
7418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7419 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7430 OCAMLC=$ac_cv_path_OCAMLC
7431 if test -n "$OCAMLC"; then
7432 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7433 echo "${ECHO_T}$OCAMLC" >&6; }
7435 { echo "$as_me:$LINENO: result: no" >&5
7436 echo "${ECHO_T}no" >&6; }
7440 test -n "$OCAMLC" && break
7443 for ac_prog in ocamlopt
7445 # Extract the first word of "$ac_prog", so it can be a program name with args.
7446 set dummy $ac_prog; ac_word=$2
7447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7449 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7450 echo $ECHO_N "(cached) $ECHO_C" >&6
7454 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7461 test -z "$as_dir" && as_dir=.
7462 for ac_exec_ext in '' $ac_executable_extensions; do
7463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7464 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7475 OCAMLOPT=$ac_cv_path_OCAMLOPT
7476 if test -n "$OCAMLOPT"; then
7477 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7478 echo "${ECHO_T}$OCAMLOPT" >&6; }
7480 { echo "$as_me:$LINENO: result: no" >&5
7481 echo "${ECHO_T}no" >&6; }
7485 test -n "$OCAMLOPT" && break
7488 for ac_prog in ocamldep
7490 # Extract the first word of "$ac_prog", so it can be a program name with args.
7491 set dummy $ac_prog; ac_word=$2
7492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7494 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7495 echo $ECHO_N "(cached) $ECHO_C" >&6
7499 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7506 test -z "$as_dir" && as_dir=.
7507 for ac_exec_ext in '' $ac_executable_extensions; do
7508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7509 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7520 OCAMLDEP=$ac_cv_path_OCAMLDEP
7521 if test -n "$OCAMLDEP"; then
7522 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7523 echo "${ECHO_T}$OCAMLDEP" >&6; }
7525 { echo "$as_me:$LINENO: result: no" >&5
7526 echo "${ECHO_T}no" >&6; }
7530 test -n "$OCAMLDEP" && break
7533 for ac_prog in ocamldoc
7535 # Extract the first word of "$ac_prog", so it can be a program name with args.
7536 set dummy $ac_prog; ac_word=$2
7537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7539 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7540 echo $ECHO_N "(cached) $ECHO_C" >&6
7544 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7551 test -z "$as_dir" && as_dir=.
7552 for ac_exec_ext in '' $ac_executable_extensions; do
7553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7554 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7565 OCAMLDOC=$ac_cv_path_OCAMLDOC
7566 if test -n "$OCAMLDOC"; then
7567 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7568 echo "${ECHO_T}$OCAMLDOC" >&6; }
7570 { echo "$as_me:$LINENO: result: no" >&5
7571 echo "${ECHO_T}no" >&6; }
7575 test -n "$OCAMLDOC" && break
7578 for ac_prog in gas as
7580 # Extract the first word of "$ac_prog", so it can be a program name with args.
7581 set dummy $ac_prog; ac_word=$2
7582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7584 if test "${ac_cv_path_GAS+set}" = set; then
7585 echo $ECHO_N "(cached) $ECHO_C" >&6
7589 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596 test -z "$as_dir" && as_dir=.
7597 for ac_exec_ext in '' $ac_executable_extensions; do
7598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7599 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7611 if test -n "$GAS"; then
7612 { echo "$as_me:$LINENO: result: $GAS" >&5
7613 echo "${ECHO_T}$GAS" >&6; }
7615 { echo "$as_me:$LINENO: result: no" >&5
7616 echo "${ECHO_T}no" >&6; }
7620 test -n "$GAS" && break
7624 { echo "$as_me:$LINENO: checking for linker version" >&5
7625 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7626 if test "${llvm_cv_link_version+set}" = set; then
7627 echo $ECHO_N "(cached) $ECHO_C" >&6
7630 version_string="$(ld -v 2>&1 | head -1)"
7633 if (echo "$version_string" | grep -q "ld64"); then
7634 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7636 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7640 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7641 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7643 cat >>confdefs.h <<_ACEOF
7644 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7649 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7650 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7651 if test "${llvm_cv_link_use_r+set}" = set; then
7652 echo $ECHO_N "(cached) $ECHO_C" >&6
7655 ac_cpp='$CPP $CPPFLAGS'
7656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7661 CFLAGS="$CFLAGS -Wl,-R."
7662 cat >conftest.$ac_ext <<_ACEOF
7665 cat confdefs.h >>conftest.$ac_ext
7666 cat >>conftest.$ac_ext <<_ACEOF
7667 /* end confdefs.h. */
7677 rm -f conftest.$ac_objext conftest$ac_exeext
7678 if { (ac_try="$ac_link"
7680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7681 *) ac_try_echo=$ac_try;;
7683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7684 (eval "$ac_link") 2>conftest.er1
7686 grep -v '^ *+' conftest.er1 >conftest.err
7688 cat conftest.err >&5
7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690 (exit $ac_status); } &&
7691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7692 { (case "(($ac_try" in
7693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7694 *) ac_try_echo=$ac_try;;
7696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7697 (eval "$ac_try") 2>&5
7699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700 (exit $ac_status); }; } &&
7701 { ac_try='test -s conftest$ac_exeext'
7702 { (case "(($ac_try" in
7703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7704 *) ac_try_echo=$ac_try;;
7706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7707 (eval "$ac_try") 2>&5
7709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710 (exit $ac_status); }; }; then
7711 llvm_cv_link_use_r=yes
7713 echo "$as_me: failed program was:" >&5
7714 sed 's/^/| /' conftest.$ac_ext >&5
7716 llvm_cv_link_use_r=no
7719 rm -f core conftest.err conftest.$ac_objext \
7720 conftest$ac_exeext conftest.$ac_ext
7723 ac_cpp='$CPP $CPPFLAGS'
7724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7730 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7731 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7732 if test "$llvm_cv_link_use_r" = yes ; then
7734 cat >>confdefs.h <<\_ACEOF
7735 #define HAVE_LINK_R 1
7741 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7742 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7743 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7744 echo $ECHO_N "(cached) $ECHO_C" >&6
7747 ac_cpp='$CPP $CPPFLAGS'
7748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7753 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7754 cat >conftest.$ac_ext <<_ACEOF
7757 cat confdefs.h >>conftest.$ac_ext
7758 cat >>conftest.$ac_ext <<_ACEOF
7759 /* end confdefs.h. */
7769 rm -f conftest.$ac_objext conftest$ac_exeext
7770 if { (ac_try="$ac_link"
7772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7773 *) ac_try_echo=$ac_try;;
7775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7776 (eval "$ac_link") 2>conftest.er1
7778 grep -v '^ *+' conftest.er1 >conftest.err
7780 cat conftest.err >&5
7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); } &&
7783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7784 { (case "(($ac_try" in
7785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7786 *) ac_try_echo=$ac_try;;
7788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7789 (eval "$ac_try") 2>&5
7791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792 (exit $ac_status); }; } &&
7793 { ac_try='test -s conftest$ac_exeext'
7794 { (case "(($ac_try" in
7795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7796 *) ac_try_echo=$ac_try;;
7798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7799 (eval "$ac_try") 2>&5
7801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802 (exit $ac_status); }; }; then
7803 llvm_cv_link_use_export_dynamic=yes
7805 echo "$as_me: failed program was:" >&5
7806 sed 's/^/| /' conftest.$ac_ext >&5
7808 llvm_cv_link_use_export_dynamic=no
7811 rm -f core conftest.err conftest.$ac_objext \
7812 conftest$ac_exeext conftest.$ac_ext
7815 ac_cpp='$CPP $CPPFLAGS'
7816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7822 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7823 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7824 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7826 cat >>confdefs.h <<\_ACEOF
7827 #define HAVE_LINK_EXPORT_DYNAMIC 1
7833 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7834 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7835 if test "${llvm_cv_link_use_version_script+set}" = set; then
7836 echo $ECHO_N "(cached) $ECHO_C" >&6
7839 ac_cpp='$CPP $CPPFLAGS'
7840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7846 # The following code is from the autoconf manual,
7847 # "11.13: Limitations of Usual Tools".
7848 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7849 # Use mktemp if possible; otherwise fall back on mkdir,
7850 # with $RANDOM to make collisions less likely.
7854 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7856 test -n "$tmp" && test -d "$tmp"
7858 tmp=$TMPDIR/foo$$-$RANDOM
7859 (umask 077 && mkdir "$tmp")
7862 echo "{" > "$tmp/export.map"
7863 echo " global: main;" >> "$tmp/export.map"
7864 echo " local: *;" >> "$tmp/export.map"
7865 echo "};" >> "$tmp/export.map"
7867 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7868 cat >conftest.$ac_ext <<_ACEOF
7871 cat confdefs.h >>conftest.$ac_ext
7872 cat >>conftest.$ac_ext <<_ACEOF
7873 /* end confdefs.h. */
7883 rm -f conftest.$ac_objext conftest$ac_exeext
7884 if { (ac_try="$ac_link"
7886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7887 *) ac_try_echo=$ac_try;;
7889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7890 (eval "$ac_link") 2>conftest.er1
7892 grep -v '^ *+' conftest.er1 >conftest.err
7894 cat conftest.err >&5
7895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 (exit $ac_status); } &&
7897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7898 { (case "(($ac_try" in
7899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7900 *) ac_try_echo=$ac_try;;
7902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7903 (eval "$ac_try") 2>&5
7905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906 (exit $ac_status); }; } &&
7907 { ac_try='test -s conftest$ac_exeext'
7908 { (case "(($ac_try" in
7909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7910 *) ac_try_echo=$ac_try;;
7912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7913 (eval "$ac_try") 2>&5
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); }; }; then
7917 llvm_cv_link_use_version_script=yes
7919 echo "$as_me: failed program was:" >&5
7920 sed 's/^/| /' conftest.$ac_ext >&5
7922 llvm_cv_link_use_version_script=no
7925 rm -f core conftest.err conftest.$ac_objext \
7926 conftest$ac_exeext conftest.$ac_ext
7927 rm "$tmp/export.map"
7931 ac_cpp='$CPP $CPPFLAGS'
7932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7938 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7939 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7940 if test "$llvm_cv_link_use_version_script" = yes ; then
7941 HAVE_LINK_VERSION_SCRIPT=1
7948 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7949 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7950 if test "${ac_cv_c_const+set}" = set; then
7951 echo $ECHO_N "(cached) $ECHO_C" >&6
7953 cat >conftest.$ac_ext <<_ACEOF
7956 cat confdefs.h >>conftest.$ac_ext
7957 cat >>conftest.$ac_ext <<_ACEOF
7958 /* end confdefs.h. */
7963 /* FIXME: Include the comments suggested by Paul. */
7965 /* Ultrix mips cc rejects this. */
7966 typedef int charset[2];
7968 /* SunOS 4.1.1 cc rejects this. */
7969 char const *const *ccp;
7971 /* NEC SVR4.0.2 mips cc rejects this. */
7972 struct point {int x, y;};
7973 static struct point const zero = {0,0};
7974 /* AIX XL C 1.02.0.0 rejects this.
7975 It does not let you subtract one const X* pointer from another in
7976 an arm of an if-expression whose if-part is not a constant
7978 const char *g = "string";
7979 ccp = &g + (g ? g-g : 0);
7980 /* HPUX 7.0 cc rejects these. */
7983 ccp = (char const *const *) p;
7984 { /* SCO 3.2v4 cc rejects this. */
7986 char const *s = 0 ? (char *) 0 : (char const *) 0;
7991 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7993 const int *foo = &x[0];
7996 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7997 typedef const int *iptr;
8001 { /* AIX XL C 1.02.0.0 rejects this saying
8002 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8003 struct s { int j; const int *ap[3]; };
8004 struct s *b; b->j = 5;
8006 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8010 return !x[0] && !zero.x;
8017 rm -f conftest.$ac_objext
8018 if { (ac_try="$ac_compile"
8020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8021 *) ac_try_echo=$ac_try;;
8023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8024 (eval "$ac_compile") 2>conftest.er1
8026 grep -v '^ *+' conftest.er1 >conftest.err
8028 cat conftest.err >&5
8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); } &&
8031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8032 { (case "(($ac_try" in
8033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8034 *) ac_try_echo=$ac_try;;
8036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8037 (eval "$ac_try") 2>&5
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); }; } &&
8041 { ac_try='test -s conftest.$ac_objext'
8042 { (case "(($ac_try" in
8043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8044 *) ac_try_echo=$ac_try;;
8046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8047 (eval "$ac_try") 2>&5
8049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); }; }; then
8053 echo "$as_me: failed program was:" >&5
8054 sed 's/^/| /' conftest.$ac_ext >&5
8059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8061 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8062 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8063 if test $ac_cv_c_const = no; then
8065 cat >>confdefs.h <<\_ACEOF
8077 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8078 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8079 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8080 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8082 echo $ECHO_N "(cached) $ECHO_C" >&6
8084 cat >conftest.$ac_ext <<_ACEOF
8087 cat confdefs.h >>conftest.$ac_ext
8088 cat >>conftest.$ac_ext <<_ACEOF
8089 /* end confdefs.h. */
8090 #include <sys/types.h>
8102 rm -f conftest.$ac_objext
8103 if { (ac_try="$ac_compile"
8105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8106 *) ac_try_echo=$ac_try;;
8108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8109 (eval "$ac_compile") 2>conftest.er1
8111 grep -v '^ *+' conftest.er1 >conftest.err
8113 cat conftest.err >&5
8114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115 (exit $ac_status); } &&
8116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8117 { (case "(($ac_try" in
8118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8119 *) ac_try_echo=$ac_try;;
8121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8122 (eval "$ac_try") 2>&5
8124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125 (exit $ac_status); }; } &&
8126 { ac_try='test -s conftest.$ac_objext'
8127 { (case "(($ac_try" in
8128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8129 *) ac_try_echo=$ac_try;;
8131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8132 (eval "$ac_try") 2>&5
8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 (exit $ac_status); }; }; then
8136 eval "$as_ac_Header=yes"
8138 echo "$as_me: failed program was:" >&5
8139 sed 's/^/| /' conftest.$ac_ext >&5
8141 eval "$as_ac_Header=no"
8144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8146 ac_res=`eval echo '${'$as_ac_Header'}'`
8147 { echo "$as_me:$LINENO: result: $ac_res" >&5
8148 echo "${ECHO_T}$ac_res" >&6; }
8149 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8150 cat >>confdefs.h <<_ACEOF
8151 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8154 ac_header_dirent=$ac_hdr; break
8158 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8159 if test $ac_header_dirent = dirent.h; then
8160 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8161 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8162 if test "${ac_cv_search_opendir+set}" = set; then
8163 echo $ECHO_N "(cached) $ECHO_C" >&6
8165 ac_func_search_save_LIBS=$LIBS
8166 cat >conftest.$ac_ext <<_ACEOF
8169 cat confdefs.h >>conftest.$ac_ext
8170 cat >>conftest.$ac_ext <<_ACEOF
8171 /* end confdefs.h. */
8173 /* Override any GCC internal prototype to avoid an error.
8174 Use char because int might match the return type of a GCC
8175 builtin and then its argument prototype would still apply. */
8188 for ac_lib in '' dir; do
8189 if test -z "$ac_lib"; then
8190 ac_res="none required"
8193 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8195 rm -f conftest.$ac_objext conftest$ac_exeext
8196 if { (ac_try="$ac_link"
8198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8199 *) ac_try_echo=$ac_try;;
8201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8202 (eval "$ac_link") 2>conftest.er1
8204 grep -v '^ *+' conftest.er1 >conftest.err
8206 cat conftest.err >&5
8207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208 (exit $ac_status); } &&
8209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8210 { (case "(($ac_try" in
8211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8212 *) ac_try_echo=$ac_try;;
8214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8215 (eval "$ac_try") 2>&5
8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218 (exit $ac_status); }; } &&
8219 { ac_try='test -s conftest$ac_exeext'
8220 { (case "(($ac_try" in
8221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8222 *) ac_try_echo=$ac_try;;
8224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8225 (eval "$ac_try") 2>&5
8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 (exit $ac_status); }; }; then
8229 ac_cv_search_opendir=$ac_res
8231 echo "$as_me: failed program was:" >&5
8232 sed 's/^/| /' conftest.$ac_ext >&5
8237 rm -f core conftest.err conftest.$ac_objext \
8239 if test "${ac_cv_search_opendir+set}" = set; then
8243 if test "${ac_cv_search_opendir+set}" = set; then
8246 ac_cv_search_opendir=no
8249 LIBS=$ac_func_search_save_LIBS
8251 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8252 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8253 ac_res=$ac_cv_search_opendir
8254 if test "$ac_res" != no; then
8255 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8260 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8261 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8262 if test "${ac_cv_search_opendir+set}" = set; then
8263 echo $ECHO_N "(cached) $ECHO_C" >&6
8265 ac_func_search_save_LIBS=$LIBS
8266 cat >conftest.$ac_ext <<_ACEOF
8269 cat confdefs.h >>conftest.$ac_ext
8270 cat >>conftest.$ac_ext <<_ACEOF
8271 /* end confdefs.h. */
8273 /* Override any GCC internal prototype to avoid an error.
8274 Use char because int might match the return type of a GCC
8275 builtin and then its argument prototype would still apply. */
8288 for ac_lib in '' x; do
8289 if test -z "$ac_lib"; then
8290 ac_res="none required"
8293 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8295 rm -f conftest.$ac_objext conftest$ac_exeext
8296 if { (ac_try="$ac_link"
8298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8299 *) ac_try_echo=$ac_try;;
8301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8302 (eval "$ac_link") 2>conftest.er1
8304 grep -v '^ *+' conftest.er1 >conftest.err
8306 cat conftest.err >&5
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); } &&
8309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8310 { (case "(($ac_try" in
8311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8312 *) ac_try_echo=$ac_try;;
8314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8315 (eval "$ac_try") 2>&5
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); }; } &&
8319 { ac_try='test -s conftest$ac_exeext'
8320 { (case "(($ac_try" in
8321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8322 *) ac_try_echo=$ac_try;;
8324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8325 (eval "$ac_try") 2>&5
8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 (exit $ac_status); }; }; then
8329 ac_cv_search_opendir=$ac_res
8331 echo "$as_me: failed program was:" >&5
8332 sed 's/^/| /' conftest.$ac_ext >&5
8337 rm -f core conftest.err conftest.$ac_objext \
8339 if test "${ac_cv_search_opendir+set}" = set; then
8343 if test "${ac_cv_search_opendir+set}" = set; then
8346 ac_cv_search_opendir=no
8349 LIBS=$ac_func_search_save_LIBS
8351 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8352 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8353 ac_res=$ac_cv_search_opendir
8354 if test "$ac_res" != no; then
8355 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8362 for ac_header in dlfcn.h
8364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8366 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8369 echo $ECHO_N "(cached) $ECHO_C" >&6
8371 ac_res=`eval echo '${'$as_ac_Header'}'`
8372 { echo "$as_me:$LINENO: result: $ac_res" >&5
8373 echo "${ECHO_T}$ac_res" >&6; }
8375 # Is the header compilable?
8376 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8378 cat >conftest.$ac_ext <<_ACEOF
8381 cat confdefs.h >>conftest.$ac_ext
8382 cat >>conftest.$ac_ext <<_ACEOF
8383 /* end confdefs.h. */
8384 $ac_includes_default
8385 #include <$ac_header>
8387 rm -f conftest.$ac_objext
8388 if { (ac_try="$ac_compile"
8390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8391 *) ac_try_echo=$ac_try;;
8393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8394 (eval "$ac_compile") 2>conftest.er1
8396 grep -v '^ *+' conftest.er1 >conftest.err
8398 cat conftest.err >&5
8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); } &&
8401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8402 { (case "(($ac_try" in
8403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8404 *) ac_try_echo=$ac_try;;
8406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8407 (eval "$ac_try") 2>&5
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); }; } &&
8411 { ac_try='test -s conftest.$ac_objext'
8412 { (case "(($ac_try" in
8413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8414 *) ac_try_echo=$ac_try;;
8416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8417 (eval "$ac_try") 2>&5
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); }; }; then
8421 ac_header_compiler=yes
8423 echo "$as_me: failed program was:" >&5
8424 sed 's/^/| /' conftest.$ac_ext >&5
8426 ac_header_compiler=no
8429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8430 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8431 echo "${ECHO_T}$ac_header_compiler" >&6; }
8433 # Is the header present?
8434 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8435 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8436 cat >conftest.$ac_ext <<_ACEOF
8439 cat confdefs.h >>conftest.$ac_ext
8440 cat >>conftest.$ac_ext <<_ACEOF
8441 /* end confdefs.h. */
8442 #include <$ac_header>
8444 if { (ac_try="$ac_cpp conftest.$ac_ext"
8446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8447 *) ac_try_echo=$ac_try;;
8449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8452 grep -v '^ *+' conftest.er1 >conftest.err
8454 cat conftest.err >&5
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); } >/dev/null; then
8457 if test -s conftest.err; then
8458 ac_cpp_err=$ac_c_preproc_warn_flag
8459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8466 if test -z "$ac_cpp_err"; then
8467 ac_header_preproc=yes
8469 echo "$as_me: failed program was:" >&5
8470 sed 's/^/| /' conftest.$ac_ext >&5
8472 ac_header_preproc=no
8475 rm -f conftest.err conftest.$ac_ext
8476 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8477 echo "${ECHO_T}$ac_header_preproc" >&6; }
8479 # So? What about this header?
8480 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8482 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8483 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8485 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8486 ac_header_preproc=yes
8489 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8490 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8491 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8492 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8493 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8494 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8495 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8496 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8498 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8499 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8500 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8502 ## ------------------------------------ ##
8503 ## Report this to http://llvm.org/bugs/ ##
8504 ## ------------------------------------ ##
8506 ) | sed "s/^/$as_me: WARNING: /" >&2
8509 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8512 echo $ECHO_N "(cached) $ECHO_C" >&6
8514 eval "$as_ac_Header=\$ac_header_preproc"
8516 ac_res=`eval echo '${'$as_ac_Header'}'`
8517 { echo "$as_me:$LINENO: result: $ac_res" >&5
8518 echo "${ECHO_T}$ac_res" >&6; }
8521 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8522 cat >>confdefs.h <<_ACEOF
8523 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8530 # Check whether --enable-ltdl-install was given.
8531 if test "${enable_ltdl_install+set}" = set; then
8532 enableval=$enable_ltdl_install;
8538 if test x"${enable_ltdl_install-no}" != xno; then
8540 INSTALL_LTDL_FALSE='#'
8542 INSTALL_LTDL_TRUE='#'
8548 if test x"${enable_ltdl_convenience-no}" != xno; then
8549 CONVENIENCE_LTDL_TRUE=
8550 CONVENIENCE_LTDL_FALSE='#'
8552 CONVENIENCE_LTDL_TRUE='#'
8553 CONVENIENCE_LTDL_FALSE=
8557 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8558 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8560 libname_spec='lib$name'
8568 shlibpath_overrides_runpath=unknown
8570 dynamic_linker="$host_os ld.so"
8571 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8572 if test "$GCC" = yes; then
8573 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8574 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8575 # if the path contains ";" then we assume it to be the separator
8576 # otherwise default to the standard path separator (i.e. ":") - it is
8577 # assumed that no part of a normal pathname contains ";" but that should
8578 # okay in the real world where ";" in dirpaths is itself problematic.
8579 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8581 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8584 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8586 need_lib_prefix=unknown
8587 hardcode_into_libs=no
8589 # when you set need_version to no, make sure it does not cause -set_version
8590 # flags to be left without arguments
8591 need_version=unknown
8596 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8597 shlibpath_var=LIBPATH
8599 # AIX 3 has no versioning support, so we append a major version to the name.
8600 soname_spec='${libname}${release}${shared_ext}$major'
8607 hardcode_into_libs=yes
8608 if test "$host_cpu" = ia64; then
8609 # AIX 5 supports IA64
8610 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8611 shlibpath_var=LD_LIBRARY_PATH
8613 # With GCC up to 2.95.x, collect2 would create an import file
8614 # for dependence libraries. The import file would start with
8615 # the line `#! .'. This would cause the generated library to
8616 # depend on `.', always an invalid library. This was fixed in
8617 # development snapshots of GCC prior to 3.0.
8619 aix4 | aix4.[01] | aix4.[01].*)
8620 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8622 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8629 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8630 # soname into executable. Probably we can add versioning support to
8631 # collect2, so additional links can be useful in future.
8632 if test "$aix_use_runtimelinking" = yes; then
8633 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8634 # instead of lib<name>.a to let people know that these are not
8635 # typical AIX shared libraries.
8636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8638 # We preserve .a as extension for shared libraries through AIX4.2
8639 # and later when we are not doing run time linking.
8640 library_names_spec='${libname}${release}.a $libname.a'
8641 soname_spec='${libname}${release}${shared_ext}$major'
8643 shlibpath_var=LIBPATH
8648 library_names_spec='$libname.ixlibrary $libname.a'
8649 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8650 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'
8654 library_names_spec='${libname}${shared_ext}'
8655 dynamic_linker="$host_os ld.so"
8656 shlibpath_var=LIBRARY_PATH
8662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8663 soname_spec='${libname}${release}${shared_ext}$major'
8664 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8665 shlibpath_var=LD_LIBRARY_PATH
8666 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8667 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8668 # the default ld.so.conf also contains /usr/contrib/lib and
8669 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8670 # libtool to hard-code these into programs
8673 cygwin* | mingw* | pw32*)
8674 version_type=windows
8679 case $GCC,$host_os in
8680 yes,cygwin* | yes,mingw* | yes,pw32*)
8681 library_names_spec='$libname.dll.a'
8682 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8683 postinstall_cmds='base_file=`basename \${file}`~
8684 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8685 dldir=$destdir/`dirname \$dlpath`~
8686 test -d \$dldir || mkdir -p \$dldir~
8687 $install_prog $dir/$dlname \$dldir/$dlname~
8688 chmod a+x \$dldir/$dlname'
8689 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8690 dlpath=$dir/\$dldll~
8692 shlibpath_overrides_runpath=yes
8696 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8697 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8698 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8701 # MinGW DLLs use traditional 'lib' prefix
8702 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8703 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8704 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8705 # It is most probably a Windows format PATH printed by
8706 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8707 # path with ; separators, and with drive letters. We can handle the
8708 # drive letters (cygwin fileutils understands them), so leave them,
8709 # especially as we might pass files found there to a mingw objdump,
8710 # which wouldn't understand a cygwinified path. Ahh.
8711 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8713 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8717 # pw32 DLLs use 'pw' prefix rather than 'lib'
8718 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8724 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8727 dynamic_linker='Win32 ld.exe'
8728 # FIXME: first we should search . and the directory the executable is in
8732 darwin* | rhapsody*)
8733 dynamic_linker="$host_os dyld"
8737 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8738 soname_spec='${libname}${release}${major}$shared_ext'
8739 shlibpath_overrides_runpath=yes
8740 shlibpath_var=DYLD_LIBRARY_PATH
8741 shrext_cmds='.dylib'
8742 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8743 if test "$GCC" = yes; then
8744 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"`
8746 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8748 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8756 soname_spec='${libname}${release}${shared_ext}$major'
8757 shlibpath_var=LD_LIBRARY_PATH
8768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8769 soname_spec='${libname}${release}${shared_ext}$major'
8770 shlibpath_var=LD_LIBRARY_PATH
8771 shlibpath_overrides_runpath=no
8772 hardcode_into_libs=yes
8773 dynamic_linker='GNU ld.so'
8776 freebsd* | dragonfly*)
8777 # DragonFly does not have aout. When/if they implement a new
8778 # versioning mechanism, adjust this.
8779 if test -x /usr/bin/objformat; then
8780 objformat=`/usr/bin/objformat`
8783 freebsd[123].*) objformat=aout ;;
8787 version_type=freebsd-$objformat
8788 case $version_type in
8790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8795 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8799 shlibpath_var=LD_LIBRARY_PATH
8802 shlibpath_overrides_runpath=yes
8804 freebsd3.[01]* | freebsdelf3.[01]*)
8805 shlibpath_overrides_runpath=yes
8806 hardcode_into_libs=yes
8808 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8809 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8810 shlibpath_overrides_runpath=no
8811 hardcode_into_libs=yes
8813 freebsd*) # from 4.6 on
8814 shlibpath_overrides_runpath=yes
8815 hardcode_into_libs=yes
8824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8825 soname_spec='${libname}${release}${shared_ext}$major'
8826 shlibpath_var=LD_LIBRARY_PATH
8827 hardcode_into_libs=yes
8830 hpux9* | hpux10* | hpux11*)
8831 # Give a soname corresponding to the major version so that dld.sl refuses to
8832 # link against other versions.
8839 hardcode_into_libs=yes
8840 dynamic_linker="$host_os dld.so"
8841 shlibpath_var=LD_LIBRARY_PATH
8842 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8844 soname_spec='${libname}${release}${shared_ext}$major'
8845 if test "X$HPUX_IA64_MODE" = X32; then
8846 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8848 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8850 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8854 hardcode_into_libs=yes
8855 dynamic_linker="$host_os dld.sl"
8856 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8857 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8859 soname_spec='${libname}${release}${shared_ext}$major'
8860 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8861 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8865 dynamic_linker="$host_os dld.sl"
8866 shlibpath_var=SHLIB_PATH
8867 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8869 soname_spec='${libname}${release}${shared_ext}$major'
8872 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8873 postinstall_cmds='chmod 555 $lib'
8880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8881 soname_spec='${libname}${release}${shared_ext}$major'
8882 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8883 shlibpath_var=LD_LIBRARY_PATH
8884 shlibpath_overrides_runpath=no
8885 hardcode_into_libs=yes
8888 irix5* | irix6* | nonstopux*)
8890 nonstopux*) version_type=nonstopux ;;
8892 if test "$lt_cv_prog_gnu_ld" = yes; then
8900 soname_spec='${libname}${release}${shared_ext}$major'
8901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8903 irix5* | nonstopux*)
8907 case $LD in # libtool.m4 will add one of these switches to LD
8908 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8909 libsuff= shlibsuff= libmagic=32-bit;;
8910 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8911 libsuff=32 shlibsuff=N32 libmagic=N32;;
8912 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8913 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8914 *) libsuff= shlibsuff= libmagic=never-match;;
8918 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8919 shlibpath_overrides_runpath=no
8920 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8921 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8922 hardcode_into_libs=yes
8925 # No shared lib support for Linux oldld, aout, or coff.
8926 linux*oldld* | linux*aout* | linux*coff*)
8930 # This must be Linux ELF.
8935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8936 soname_spec='${libname}${release}${shared_ext}$major'
8937 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8938 shlibpath_var=LD_LIBRARY_PATH
8939 shlibpath_overrides_runpath=no
8940 # This implies no fast_install, which is unacceptable.
8941 # Some rework will be needed to allow for fast_install
8942 # before this can be enabled.
8943 hardcode_into_libs=yes
8945 # Append ld.so.conf contents to the search path
8946 if test -f /etc/ld.so.conf; then
8947 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' ' '`
8948 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8951 # We used to test for /lib/ld.so.1 and disable shared libraries on
8952 # powerpc, because MkLinux only supported shared libraries with the
8953 # GNU dynamic linker. Since this was broken with cross compilers,
8954 # most powerpc-linux boxes support dynamic linking these days and
8955 # people can always --disable-shared, the test was removed, and we
8956 # assume the GNU/Linux dynamic linker is in use.
8957 dynamic_linker='GNU/Linux ld.so'
8964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8965 soname_spec='${libname}${release}${shared_ext}$major'
8966 shlibpath_var=LD_LIBRARY_PATH
8967 shlibpath_overrides_runpath=no
8968 hardcode_into_libs=yes
8969 dynamic_linker='GNU ld.so'
8976 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8978 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8979 dynamic_linker='NetBSD (a.out) ld.so'
8981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8982 soname_spec='${libname}${release}${shared_ext}$major'
8983 dynamic_linker='NetBSD ld.elf_so'
8985 shlibpath_var=LD_LIBRARY_PATH
8986 shlibpath_overrides_runpath=yes
8987 hardcode_into_libs=yes
8992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8993 shlibpath_var=LD_LIBRARY_PATH
8994 shlibpath_overrides_runpath=yes
9001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9002 soname_spec='${libname}${release}${shared_ext}$major'
9003 shlibpath_var=LD_LIBRARY_PATH
9004 shlibpath_overrides_runpath=yes
9009 sys_lib_dlsearch_path_spec="/usr/lib"
9011 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9013 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9014 *) need_version=no ;;
9016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9017 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9018 shlibpath_var=LD_LIBRARY_PATH
9019 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9021 openbsd2.[89] | openbsd2.[89].*)
9022 shlibpath_overrides_runpath=no
9025 shlibpath_overrides_runpath=yes
9029 shlibpath_overrides_runpath=yes
9034 libname_spec='$name'
9037 library_names_spec='$libname${shared_ext} $libname.a'
9038 dynamic_linker='OS/2 ld.exe'
9039 shlibpath_var=LIBPATH
9042 osf3* | osf4* | osf5*)
9046 soname_spec='${libname}${release}${shared_ext}$major'
9047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9048 shlibpath_var=LD_LIBRARY_PATH
9049 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9050 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9058 soname_spec='${libname}${release}${shared_ext}$major'
9059 shlibpath_var=LD_LIBRARY_PATH
9060 shlibpath_overrides_runpath=yes
9061 hardcode_into_libs=yes
9062 # ldd complains unless libraries are executable
9063 postinstall_cmds='chmod +x $lib'
9068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9069 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9070 shlibpath_var=LD_LIBRARY_PATH
9071 shlibpath_overrides_runpath=yes
9072 if test "$with_gnu_ld" = yes; then
9080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9081 soname_spec='${libname}${release}${shared_ext}$major'
9082 shlibpath_var=LD_LIBRARY_PATH
9083 case $host_vendor in
9085 shlibpath_overrides_runpath=no
9087 export_dynamic_flag_spec='${wl}-Blargedynsym'
9088 runpath_var=LD_RUN_PATH
9096 shlibpath_overrides_runpath=no
9097 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9103 if test -d /usr/nec ;then
9105 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9106 soname_spec='$libname${shared_ext}.$major'
9107 shlibpath_var=LD_LIBRARY_PATH
9111 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9112 version_type=freebsd-elf
9115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9116 soname_spec='${libname}${release}${shared_ext}$major'
9117 shlibpath_var=LD_LIBRARY_PATH
9118 hardcode_into_libs=yes
9119 if test "$with_gnu_ld" = yes; then
9120 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9121 shlibpath_overrides_runpath=no
9123 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9124 shlibpath_overrides_runpath=yes
9127 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9131 sys_lib_dlsearch_path_spec='/usr/lib'
9136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9137 soname_spec='${libname}${release}${shared_ext}$major'
9138 shlibpath_var=LD_LIBRARY_PATH
9145 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9146 echo "${ECHO_T}$dynamic_linker" >&6; }
9147 test "$dynamic_linker" = no && can_build_shared=no
9149 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9150 if test "$GCC" = yes; then
9151 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9155 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9156 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9157 if test "${libltdl_cv_shlibext+set}" = set; then
9158 echo $ECHO_N "(cached) $ECHO_C" >&6
9162 eval libltdl_cv_shlibext=$shrext_cmds
9165 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9166 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9167 if test -n "$libltdl_cv_shlibext"; then
9169 cat >>confdefs.h <<_ACEOF
9170 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9176 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9177 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9178 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9179 echo $ECHO_N "(cached) $ECHO_C" >&6
9181 libltdl_cv_shlibpath_var="$shlibpath_var"
9183 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9184 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9185 if test -n "$libltdl_cv_shlibpath_var"; then
9187 cat >>confdefs.h <<_ACEOF
9188 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9194 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9195 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9196 if test "${libltdl_cv_sys_search_path+set}" = set; then
9197 echo $ECHO_N "(cached) $ECHO_C" >&6
9199 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9201 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9202 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9203 if test -n "$libltdl_cv_sys_search_path"; then
9205 for dir in $libltdl_cv_sys_search_path; do
9206 if test -z "$sys_search_path"; then
9207 sys_search_path="$dir"
9209 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9213 cat >>confdefs.h <<_ACEOF
9214 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9219 { echo "$as_me:$LINENO: checking for objdir" >&5
9220 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9221 if test "${libltdl_cv_objdir+set}" = set; then
9222 echo $ECHO_N "(cached) $ECHO_C" >&6
9224 libltdl_cv_objdir="$objdir"
9225 if test -n "$objdir"; then
9228 rm -f .libs 2>/dev/null
9229 mkdir .libs 2>/dev/null
9230 if test -d .libs; then
9231 libltdl_cv_objdir=.libs
9233 # MS-DOS does not allow filenames that begin with a dot.
9234 libltdl_cv_objdir=_libs
9236 rmdir .libs 2>/dev/null
9240 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9241 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9243 cat >>confdefs.h <<_ACEOF
9244 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9252 # Check for command to grab the raw symbol name followed by C symbol from nm.
9253 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9254 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9255 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9256 echo $ECHO_N "(cached) $ECHO_C" >&6
9259 # These are sane defaults that work on at least a few old systems.
9260 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9262 # Character class describing NM global symbol codes.
9263 symcode='[BCDEGRST]'
9265 # Regexp to match symbols that can be accessed directly from C.
9266 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9268 # Transform an extracted symbol line into a proper C declaration
9269 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9271 # Transform an extracted symbol line into symbol name and symbol address
9272 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'"
9274 # Define system-specific variables.
9279 cygwin* | mingw* | pw32*)
9280 symcode='[ABCDGISTW]'
9282 hpux*) # Its linker distinguishes data from code symbols
9283 if test "$host_cpu" = ia64; then
9284 symcode='[ABCDEGRST]'
9286 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9287 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'"
9290 if test "$host_cpu" = ia64; then
9291 symcode='[ABCDGIRSTW]'
9292 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9293 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'"
9297 symcode='[BCDEGRST]'
9300 symcode='[BCDEGQRST]'
9311 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9319 # Handle CRLF in mingw tool chain
9323 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9327 # If we're using GNU nm, then use its standard symbol codes.
9328 case `$NM -V 2>&1` in
9329 *GNU* | *'with BFD'*)
9330 symcode='[ABCDGIRSTW]' ;;
9333 # Try without a prefix undercore, then with it.
9334 for ac_symprfx in "" "_"; do
9336 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9337 symxfrm="\\1 $ac_symprfx\\2 \\2"
9339 # Write the raw and C identifiers.
9340 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9342 # Check to see that the pipe works correctly.
9346 cat > conftest.$ac_ext <<EOF
9351 void nm_test_func(){}
9355 int main(){nm_test_var='a';nm_test_func();return(0);}
9358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9359 (eval $ac_compile) 2>&5
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); }; then
9363 # Now try to grab the symbols.
9365 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9366 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); } && test -s "$nlist"; then
9370 # Try sorting and uniquifying the output.
9371 if sort "$nlist" | uniq > "$nlist"T; then
9372 mv -f "$nlist"T "$nlist"
9377 # Make sure that we snagged all the symbols we need.
9378 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9379 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9380 cat <<EOF > conftest.$ac_ext
9386 # Now generate the symbol file.
9387 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9389 cat <<EOF >> conftest.$ac_ext
9390 #if defined (__STDC__) && __STDC__
9391 # define lt_ptr_t void *
9393 # define lt_ptr_t char *
9397 /* The mapping between symbol names and symbols. */
9402 lt_preloaded_symbols[] =
9405 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9406 cat <<\EOF >> conftest.$ac_ext
9414 # Now try linking the two files.
9415 mv conftest.$ac_objext conftstm.$ac_objext
9416 lt_save_LIBS="$LIBS"
9417 lt_save_CFLAGS="$CFLAGS"
9418 LIBS="conftstm.$ac_objext"
9419 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9421 (eval $ac_link) 2>&5
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9427 LIBS="$lt_save_LIBS"
9428 CFLAGS="$lt_save_CFLAGS"
9430 echo "cannot find nm_test_func in $nlist" >&5
9433 echo "cannot find nm_test_var in $nlist" >&5
9436 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9439 echo "$progname: failed program was:" >&5
9440 cat conftest.$ac_ext >&5
9442 rm -f conftest* conftst*
9444 # Do not use the global_symbol_pipe unless it works.
9445 if test "$pipe_works" = yes; then
9448 lt_cv_sys_global_symbol_pipe=
9454 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9455 lt_cv_sys_global_symbol_to_cdecl=
9457 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9458 { echo "$as_me:$LINENO: result: failed" >&5
9459 echo "${ECHO_T}failed" >&6; }
9461 { echo "$as_me:$LINENO: result: ok" >&5
9462 echo "${ECHO_T}ok" >&6; }
9466 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9467 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9468 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9469 echo $ECHO_N "(cached) $ECHO_C" >&6
9471 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9472 libltdl_cv_preloaded_symbols=yes
9474 libltdl_cv_preloaded_symbols=no
9478 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9479 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9480 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9482 cat >>confdefs.h <<\_ACEOF
9483 #define HAVE_PRELOADED_SYMBOLS 1
9491 ac_cpp='$CPP $CPPFLAGS'
9492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9497 { echo "$as_me:$LINENO: checking for shl_load" >&5
9498 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9499 if test "${ac_cv_func_shl_load+set}" = set; then
9500 echo $ECHO_N "(cached) $ECHO_C" >&6
9502 cat >conftest.$ac_ext <<_ACEOF
9505 cat confdefs.h >>conftest.$ac_ext
9506 cat >>conftest.$ac_ext <<_ACEOF
9507 /* end confdefs.h. */
9508 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9510 #define shl_load innocuous_shl_load
9512 /* System header to define __stub macros and hopefully few prototypes,
9513 which can conflict with char shl_load (); below.
9514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9515 <limits.h> exists even on freestanding compilers. */
9518 # include <limits.h>
9520 # include <assert.h>
9525 /* Override any GCC internal prototype to avoid an error.
9526 Use char because int might match the return type of a GCC
9527 builtin and then its argument prototype would still apply. */
9532 /* The GNU C library defines this for functions which it implements
9533 to always fail with ENOSYS. Some functions are actually named
9534 something starting with __ and the normal name is an alias. */
9535 #if defined __stub_shl_load || defined __stub___shl_load
9547 rm -f conftest.$ac_objext conftest$ac_exeext
9548 if { (ac_try="$ac_link"
9550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9551 *) ac_try_echo=$ac_try;;
9553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9554 (eval "$ac_link") 2>conftest.er1
9556 grep -v '^ *+' conftest.er1 >conftest.err
9558 cat conftest.err >&5
9559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560 (exit $ac_status); } &&
9561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9562 { (case "(($ac_try" in
9563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9564 *) ac_try_echo=$ac_try;;
9566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9567 (eval "$ac_try") 2>&5
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); }; } &&
9571 { ac_try='test -s conftest$ac_exeext'
9572 { (case "(($ac_try" in
9573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9574 *) ac_try_echo=$ac_try;;
9576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9577 (eval "$ac_try") 2>&5
9579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580 (exit $ac_status); }; }; then
9581 ac_cv_func_shl_load=yes
9583 echo "$as_me: failed program was:" >&5
9584 sed 's/^/| /' conftest.$ac_ext >&5
9586 ac_cv_func_shl_load=no
9589 rm -f core conftest.err conftest.$ac_objext \
9590 conftest$ac_exeext conftest.$ac_ext
9592 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9593 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9594 if test $ac_cv_func_shl_load = yes; then
9596 cat >>confdefs.h <<\_ACEOF
9597 #define HAVE_SHL_LOAD 1
9601 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9602 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9603 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9604 echo $ECHO_N "(cached) $ECHO_C" >&6
9606 ac_check_lib_save_LIBS=$LIBS
9608 cat >conftest.$ac_ext <<_ACEOF
9611 cat confdefs.h >>conftest.$ac_ext
9612 cat >>conftest.$ac_ext <<_ACEOF
9613 /* end confdefs.h. */
9615 /* Override any GCC internal prototype to avoid an error.
9616 Use char because int might match the return type of a GCC
9617 builtin and then its argument prototype would still apply. */
9630 rm -f conftest.$ac_objext conftest$ac_exeext
9631 if { (ac_try="$ac_link"
9633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9634 *) ac_try_echo=$ac_try;;
9636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9637 (eval "$ac_link") 2>conftest.er1
9639 grep -v '^ *+' conftest.er1 >conftest.err
9641 cat conftest.err >&5
9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); } &&
9644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9645 { (case "(($ac_try" in
9646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9647 *) ac_try_echo=$ac_try;;
9649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9650 (eval "$ac_try") 2>&5
9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653 (exit $ac_status); }; } &&
9654 { ac_try='test -s conftest$ac_exeext'
9655 { (case "(($ac_try" in
9656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9657 *) ac_try_echo=$ac_try;;
9659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9660 (eval "$ac_try") 2>&5
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); }; }; then
9664 ac_cv_lib_dld_shl_load=yes
9666 echo "$as_me: failed program was:" >&5
9667 sed 's/^/| /' conftest.$ac_ext >&5
9669 ac_cv_lib_dld_shl_load=no
9672 rm -f core conftest.err conftest.$ac_objext \
9673 conftest$ac_exeext conftest.$ac_ext
9674 LIBS=$ac_check_lib_save_LIBS
9676 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9677 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9678 if test $ac_cv_lib_dld_shl_load = yes; then
9680 cat >>confdefs.h <<\_ACEOF
9681 #define HAVE_SHL_LOAD 1
9684 LIBADD_DL="$LIBADD_DL -ldld"
9686 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9687 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9688 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9689 echo $ECHO_N "(cached) $ECHO_C" >&6
9691 ac_check_lib_save_LIBS=$LIBS
9693 cat >conftest.$ac_ext <<_ACEOF
9696 cat confdefs.h >>conftest.$ac_ext
9697 cat >>conftest.$ac_ext <<_ACEOF
9698 /* end confdefs.h. */
9700 /* Override any GCC internal prototype to avoid an error.
9701 Use char because int might match the return type of a GCC
9702 builtin and then its argument prototype would still apply. */
9715 rm -f conftest.$ac_objext conftest$ac_exeext
9716 if { (ac_try="$ac_link"
9718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9719 *) ac_try_echo=$ac_try;;
9721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9722 (eval "$ac_link") 2>conftest.er1
9724 grep -v '^ *+' conftest.er1 >conftest.err
9726 cat conftest.err >&5
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); } &&
9729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9730 { (case "(($ac_try" in
9731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9732 *) ac_try_echo=$ac_try;;
9734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9735 (eval "$ac_try") 2>&5
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); }; } &&
9739 { ac_try='test -s conftest$ac_exeext'
9740 { (case "(($ac_try" in
9741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9742 *) ac_try_echo=$ac_try;;
9744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9745 (eval "$ac_try") 2>&5
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); }; }; then
9749 ac_cv_lib_dl_dlopen=yes
9751 echo "$as_me: failed program was:" >&5
9752 sed 's/^/| /' conftest.$ac_ext >&5
9754 ac_cv_lib_dl_dlopen=no
9757 rm -f core conftest.err conftest.$ac_objext \
9758 conftest$ac_exeext conftest.$ac_ext
9759 LIBS=$ac_check_lib_save_LIBS
9761 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9762 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9763 if test $ac_cv_lib_dl_dlopen = yes; then
9765 cat >>confdefs.h <<\_ACEOF
9766 #define HAVE_LIBDL 1
9769 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9771 cat >conftest.$ac_ext <<_ACEOF
9774 cat confdefs.h >>conftest.$ac_ext
9775 cat >>conftest.$ac_ext <<_ACEOF
9776 /* end confdefs.h. */
9789 rm -f conftest.$ac_objext conftest$ac_exeext
9790 if { (ac_try="$ac_link"
9792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9793 *) ac_try_echo=$ac_try;;
9795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9796 (eval "$ac_link") 2>conftest.er1
9798 grep -v '^ *+' conftest.er1 >conftest.err
9800 cat conftest.err >&5
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); } &&
9803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9804 { (case "(($ac_try" in
9805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9806 *) ac_try_echo=$ac_try;;
9808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9809 (eval "$ac_try") 2>&5
9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); }; } &&
9813 { ac_try='test -s conftest$ac_exeext'
9814 { (case "(($ac_try" in
9815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9816 *) ac_try_echo=$ac_try;;
9818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9819 (eval "$ac_try") 2>&5
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); }; }; then
9824 cat >>confdefs.h <<\_ACEOF
9825 #define HAVE_LIBDL 1
9827 libltdl_cv_func_dlopen="yes"
9829 echo "$as_me: failed program was:" >&5
9830 sed 's/^/| /' conftest.$ac_ext >&5
9832 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9833 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9834 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9835 echo $ECHO_N "(cached) $ECHO_C" >&6
9837 ac_check_lib_save_LIBS=$LIBS
9839 cat >conftest.$ac_ext <<_ACEOF
9842 cat confdefs.h >>conftest.$ac_ext
9843 cat >>conftest.$ac_ext <<_ACEOF
9844 /* end confdefs.h. */
9846 /* Override any GCC internal prototype to avoid an error.
9847 Use char because int might match the return type of a GCC
9848 builtin and then its argument prototype would still apply. */
9861 rm -f conftest.$ac_objext conftest$ac_exeext
9862 if { (ac_try="$ac_link"
9864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9865 *) ac_try_echo=$ac_try;;
9867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9868 (eval "$ac_link") 2>conftest.er1
9870 grep -v '^ *+' conftest.er1 >conftest.err
9872 cat conftest.err >&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); } &&
9875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9876 { (case "(($ac_try" in
9877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9878 *) ac_try_echo=$ac_try;;
9880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9881 (eval "$ac_try") 2>&5
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); }; } &&
9885 { ac_try='test -s conftest$ac_exeext'
9886 { (case "(($ac_try" in
9887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9888 *) ac_try_echo=$ac_try;;
9890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9891 (eval "$ac_try") 2>&5
9893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894 (exit $ac_status); }; }; then
9895 ac_cv_lib_svld_dlopen=yes
9897 echo "$as_me: failed program was:" >&5
9898 sed 's/^/| /' conftest.$ac_ext >&5
9900 ac_cv_lib_svld_dlopen=no
9903 rm -f core conftest.err conftest.$ac_objext \
9904 conftest$ac_exeext conftest.$ac_ext
9905 LIBS=$ac_check_lib_save_LIBS
9907 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9908 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9909 if test $ac_cv_lib_svld_dlopen = yes; then
9911 cat >>confdefs.h <<\_ACEOF
9912 #define HAVE_LIBDL 1
9915 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9917 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9918 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9919 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9920 echo $ECHO_N "(cached) $ECHO_C" >&6
9922 ac_check_lib_save_LIBS=$LIBS
9924 cat >conftest.$ac_ext <<_ACEOF
9927 cat confdefs.h >>conftest.$ac_ext
9928 cat >>conftest.$ac_ext <<_ACEOF
9929 /* end confdefs.h. */
9931 /* Override any GCC internal prototype to avoid an error.
9932 Use char because int might match the return type of a GCC
9933 builtin and then its argument prototype would still apply. */
9946 rm -f conftest.$ac_objext conftest$ac_exeext
9947 if { (ac_try="$ac_link"
9949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9950 *) ac_try_echo=$ac_try;;
9952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9953 (eval "$ac_link") 2>conftest.er1
9955 grep -v '^ *+' conftest.er1 >conftest.err
9957 cat conftest.err >&5
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); } &&
9960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9961 { (case "(($ac_try" in
9962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9963 *) ac_try_echo=$ac_try;;
9965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9966 (eval "$ac_try") 2>&5
9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); }; } &&
9970 { ac_try='test -s conftest$ac_exeext'
9971 { (case "(($ac_try" in
9972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9973 *) ac_try_echo=$ac_try;;
9975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9976 (eval "$ac_try") 2>&5
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); }; }; then
9980 ac_cv_lib_dld_dld_link=yes
9982 echo "$as_me: failed program was:" >&5
9983 sed 's/^/| /' conftest.$ac_ext >&5
9985 ac_cv_lib_dld_dld_link=no
9988 rm -f core conftest.err conftest.$ac_objext \
9989 conftest$ac_exeext conftest.$ac_ext
9990 LIBS=$ac_check_lib_save_LIBS
9992 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9993 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9994 if test $ac_cv_lib_dld_dld_link = yes; then
9996 cat >>confdefs.h <<\_ACEOF
10000 LIBADD_DL="$LIBADD_DL -ldld"
10002 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10003 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10004 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10005 echo $ECHO_N "(cached) $ECHO_C" >&6
10007 cat >conftest.$ac_ext <<_ACEOF
10010 cat confdefs.h >>conftest.$ac_ext
10011 cat >>conftest.$ac_ext <<_ACEOF
10012 /* end confdefs.h. */
10013 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10015 #define _dyld_func_lookup innocuous__dyld_func_lookup
10017 /* System header to define __stub macros and hopefully few prototypes,
10018 which can conflict with char _dyld_func_lookup (); below.
10019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10020 <limits.h> exists even on freestanding compilers. */
10023 # include <limits.h>
10025 # include <assert.h>
10028 #undef _dyld_func_lookup
10030 /* Override any GCC internal prototype to avoid an error.
10031 Use char because int might match the return type of a GCC
10032 builtin and then its argument prototype would still apply. */
10036 char _dyld_func_lookup ();
10037 /* The GNU C library defines this for functions which it implements
10038 to always fail with ENOSYS. Some functions are actually named
10039 something starting with __ and the normal name is an alias. */
10040 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10047 return _dyld_func_lookup ();
10052 rm -f conftest.$ac_objext conftest$ac_exeext
10053 if { (ac_try="$ac_link"
10054 case "(($ac_try" in
10055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10056 *) ac_try_echo=$ac_try;;
10058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10059 (eval "$ac_link") 2>conftest.er1
10061 grep -v '^ *+' conftest.er1 >conftest.err
10063 cat conftest.err >&5
10064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065 (exit $ac_status); } &&
10066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10067 { (case "(($ac_try" in
10068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10069 *) ac_try_echo=$ac_try;;
10071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10072 (eval "$ac_try") 2>&5
10074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075 (exit $ac_status); }; } &&
10076 { ac_try='test -s conftest$ac_exeext'
10077 { (case "(($ac_try" in
10078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10079 *) ac_try_echo=$ac_try;;
10081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10082 (eval "$ac_try") 2>&5
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 (exit $ac_status); }; }; then
10086 ac_cv_func__dyld_func_lookup=yes
10088 echo "$as_me: failed program was:" >&5
10089 sed 's/^/| /' conftest.$ac_ext >&5
10091 ac_cv_func__dyld_func_lookup=no
10094 rm -f core conftest.err conftest.$ac_objext \
10095 conftest$ac_exeext conftest.$ac_ext
10097 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10098 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10099 if test $ac_cv_func__dyld_func_lookup = yes; then
10101 cat >>confdefs.h <<\_ACEOF
10102 #define HAVE_DYLD 1
10116 rm -f core conftest.err conftest.$ac_objext \
10117 conftest$ac_exeext conftest.$ac_ext
10128 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10130 lt_save_LIBS="$LIBS"
10131 LIBS="$LIBS $LIBADD_DL"
10133 for ac_func in dlerror
10135 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10136 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10137 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10138 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10139 echo $ECHO_N "(cached) $ECHO_C" >&6
10141 cat >conftest.$ac_ext <<_ACEOF
10144 cat confdefs.h >>conftest.$ac_ext
10145 cat >>conftest.$ac_ext <<_ACEOF
10146 /* end confdefs.h. */
10147 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10149 #define $ac_func innocuous_$ac_func
10151 /* System header to define __stub macros and hopefully few prototypes,
10152 which can conflict with char $ac_func (); below.
10153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10154 <limits.h> exists even on freestanding compilers. */
10157 # include <limits.h>
10159 # include <assert.h>
10164 /* Override any GCC internal prototype to avoid an error.
10165 Use char because int might match the return type of a GCC
10166 builtin and then its argument prototype would still apply. */
10171 /* The GNU C library defines this for functions which it implements
10172 to always fail with ENOSYS. Some functions are actually named
10173 something starting with __ and the normal name is an alias. */
10174 #if defined __stub_$ac_func || defined __stub___$ac_func
10181 return $ac_func ();
10186 rm -f conftest.$ac_objext conftest$ac_exeext
10187 if { (ac_try="$ac_link"
10188 case "(($ac_try" in
10189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10190 *) ac_try_echo=$ac_try;;
10192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10193 (eval "$ac_link") 2>conftest.er1
10195 grep -v '^ *+' conftest.er1 >conftest.err
10197 cat conftest.err >&5
10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 (exit $ac_status); } &&
10200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10201 { (case "(($ac_try" in
10202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10203 *) ac_try_echo=$ac_try;;
10205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10206 (eval "$ac_try") 2>&5
10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209 (exit $ac_status); }; } &&
10210 { ac_try='test -s conftest$ac_exeext'
10211 { (case "(($ac_try" in
10212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10213 *) ac_try_echo=$ac_try;;
10215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10216 (eval "$ac_try") 2>&5
10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); }; }; then
10220 eval "$as_ac_var=yes"
10222 echo "$as_me: failed program was:" >&5
10223 sed 's/^/| /' conftest.$ac_ext >&5
10225 eval "$as_ac_var=no"
10228 rm -f core conftest.err conftest.$ac_objext \
10229 conftest$ac_exeext conftest.$ac_ext
10231 ac_res=`eval echo '${'$as_ac_var'}'`
10232 { echo "$as_me:$LINENO: result: $ac_res" >&5
10233 echo "${ECHO_T}$ac_res" >&6; }
10234 if test `eval echo '${'$as_ac_var'}'` = yes; then
10235 cat >>confdefs.h <<_ACEOF
10236 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10242 LIBS="$lt_save_LIBS"
10245 ac_cpp='$CPP $CPPFLAGS'
10246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10252 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10253 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10254 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10255 echo $ECHO_N "(cached) $ECHO_C" >&6
10257 ac_cv_sys_symbol_underscore=no
10258 cat > conftest.$ac_ext <<EOF
10259 void nm_test_func(){}
10260 int main(){nm_test_func;return 0;}
10262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10263 (eval $ac_compile) 2>&5
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); }; then
10267 # Now try to grab the symbols.
10268 ac_nlist=conftest.nm
10269 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10270 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273 (exit $ac_status); } && test -s "$ac_nlist"; then
10274 # See whether the symbols have a leading underscore.
10275 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10276 ac_cv_sys_symbol_underscore=yes
10278 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10281 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10285 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10288 echo "configure: failed program was:" >&5
10294 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10295 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10298 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10299 if test x"$libltdl_cv_func_dlopen" = xyes ||
10300 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10301 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10302 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10303 if test "${libltdl_cv_need_uscore+set}" = set; then
10304 echo $ECHO_N "(cached) $ECHO_C" >&6
10306 libltdl_cv_need_uscore=unknown
10308 LIBS="$LIBS $LIBADD_DL"
10309 if test "$cross_compiling" = yes; then :
10310 libltdl_cv_need_uscore=cross
10312 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10313 lt_status=$lt_dlunknown
10314 cat > conftest.$ac_ext <<EOF
10315 #line 10315 "configure"
10316 #include "confdefs.h"
10325 # define LT_DLGLOBAL RTLD_GLOBAL
10328 # define LT_DLGLOBAL DL_GLOBAL
10330 # define LT_DLGLOBAL 0
10334 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10335 find out it does not work in some platform. */
10336 #ifndef LT_DLLAZY_OR_NOW
10338 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10341 # define LT_DLLAZY_OR_NOW DL_LAZY
10344 # define LT_DLLAZY_OR_NOW RTLD_NOW
10347 # define LT_DLLAZY_OR_NOW DL_NOW
10349 # define LT_DLLAZY_OR_NOW 0
10357 extern "C" void exit (int);
10360 void fnord() { int i=42;}
10363 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10364 int status = $lt_dlunknown;
10368 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10369 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10370 /* dlclose (self); */
10378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10379 (eval $ac_link) 2>&5
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10383 (./conftest; exit; ) >&5 2>/dev/null
10385 case x$lt_status in
10386 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10387 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10388 x$lt_dlunknown|x*) ;;
10391 # compilation failed
10400 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10401 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10405 if test x"$libltdl_cv_need_uscore" = xyes; then
10407 cat >>confdefs.h <<\_ACEOF
10408 #define NEED_USCORE 1
10414 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10415 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10416 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10417 echo $ECHO_N "(cached) $ECHO_C" >&6
10419 # PORTME does your system automatically load deplibs for dlopen?
10420 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10421 # For now, we just catch OSes we know something about -- in the
10422 # future, we'll try test this programmatically.
10423 libltdl_cv_sys_dlopen_deplibs=unknown
10425 aix3*|aix4.1.*|aix4.2.*)
10426 # Unknown whether this is true for these versions of AIX, but
10427 # we want this `case' here to explicitly catch those versions.
10428 libltdl_cv_sys_dlopen_deplibs=unknown
10431 libltdl_cv_sys_dlopen_deplibs=yes
10434 # Assuming the user has installed a libdl from somewhere, this is true
10435 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10436 libltdl_cv_sys_dlopen_deplibs=yes
10438 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10439 # GNU and its variants, using gnu ld.so (Glibc)
10440 libltdl_cv_sys_dlopen_deplibs=yes
10443 libltdl_cv_sys_dlopen_deplibs=yes
10446 libltdl_cv_sys_dlopen_deplibs=yes
10448 irix[12345]*|irix6.[01]*)
10449 # Catch all versions of IRIX before 6.2, and indicate that we don't
10450 # know how it worked for any of those versions.
10451 libltdl_cv_sys_dlopen_deplibs=unknown
10454 # The case above catches anything before 6.2, and it's known that
10455 # at 6.2 and later dlopen does load deplibs.
10456 libltdl_cv_sys_dlopen_deplibs=yes
10459 libltdl_cv_sys_dlopen_deplibs=yes
10462 libltdl_cv_sys_dlopen_deplibs=yes
10465 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10466 # it did *not* use an RPATH in a shared library to find objects the
10467 # library depends on, so we explicitly say `no'.
10468 libltdl_cv_sys_dlopen_deplibs=no
10470 osf5.0|osf5.0a|osf5.1)
10471 # dlopen *does* load deplibs and with the right loader patch applied
10472 # it even uses RPATH in a shared library to search for shared objects
10473 # that the library depends on, but there's no easy way to know if that
10474 # patch is installed. Since this is the case, all we can really
10475 # say is unknown -- it depends on the patch being installed. If
10476 # it is, this changes to `yes'. Without it, it would be `no'.
10477 libltdl_cv_sys_dlopen_deplibs=unknown
10480 # the two cases above should catch all versions of osf <= 5.1. Read
10481 # the comments above for what we know about them.
10482 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10483 # is used to find them so we can finally say `yes'.
10484 libltdl_cv_sys_dlopen_deplibs=yes
10487 libltdl_cv_sys_dlopen_deplibs=yes
10489 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10490 libltdl_cv_sys_dlopen_deplibs=yes
10495 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10496 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10497 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10499 cat >>confdefs.h <<\_ACEOF
10500 #define LTDL_DLOPEN_DEPLIBS 1
10506 for ac_header in argz.h
10508 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10510 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10513 echo $ECHO_N "(cached) $ECHO_C" >&6
10515 ac_res=`eval echo '${'$as_ac_Header'}'`
10516 { echo "$as_me:$LINENO: result: $ac_res" >&5
10517 echo "${ECHO_T}$ac_res" >&6; }
10519 # Is the header compilable?
10520 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10521 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10522 cat >conftest.$ac_ext <<_ACEOF
10525 cat confdefs.h >>conftest.$ac_ext
10526 cat >>conftest.$ac_ext <<_ACEOF
10527 /* end confdefs.h. */
10528 $ac_includes_default
10529 #include <$ac_header>
10531 rm -f conftest.$ac_objext
10532 if { (ac_try="$ac_compile"
10533 case "(($ac_try" in
10534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10535 *) ac_try_echo=$ac_try;;
10537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10538 (eval "$ac_compile") 2>conftest.er1
10540 grep -v '^ *+' conftest.er1 >conftest.err
10542 cat conftest.err >&5
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); } &&
10545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10546 { (case "(($ac_try" in
10547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10548 *) ac_try_echo=$ac_try;;
10550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10551 (eval "$ac_try") 2>&5
10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554 (exit $ac_status); }; } &&
10555 { ac_try='test -s conftest.$ac_objext'
10556 { (case "(($ac_try" in
10557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10558 *) ac_try_echo=$ac_try;;
10560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10561 (eval "$ac_try") 2>&5
10563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564 (exit $ac_status); }; }; then
10565 ac_header_compiler=yes
10567 echo "$as_me: failed program was:" >&5
10568 sed 's/^/| /' conftest.$ac_ext >&5
10570 ac_header_compiler=no
10573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10574 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10575 echo "${ECHO_T}$ac_header_compiler" >&6; }
10577 # Is the header present?
10578 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10579 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10580 cat >conftest.$ac_ext <<_ACEOF
10583 cat confdefs.h >>conftest.$ac_ext
10584 cat >>conftest.$ac_ext <<_ACEOF
10585 /* end confdefs.h. */
10586 #include <$ac_header>
10588 if { (ac_try="$ac_cpp conftest.$ac_ext"
10589 case "(($ac_try" in
10590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10591 *) ac_try_echo=$ac_try;;
10593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10596 grep -v '^ *+' conftest.er1 >conftest.err
10598 cat conftest.err >&5
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); } >/dev/null; then
10601 if test -s conftest.err; then
10602 ac_cpp_err=$ac_c_preproc_warn_flag
10603 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10610 if test -z "$ac_cpp_err"; then
10611 ac_header_preproc=yes
10613 echo "$as_me: failed program was:" >&5
10614 sed 's/^/| /' conftest.$ac_ext >&5
10616 ac_header_preproc=no
10619 rm -f conftest.err conftest.$ac_ext
10620 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10621 echo "${ECHO_T}$ac_header_preproc" >&6; }
10623 # So? What about this header?
10624 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10626 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10627 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10629 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10630 ac_header_preproc=yes
10633 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10634 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10635 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10636 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10637 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10638 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10639 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10640 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10641 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10642 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10643 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10644 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10646 ## ------------------------------------ ##
10647 ## Report this to http://llvm.org/bugs/ ##
10648 ## ------------------------------------ ##
10650 ) | sed "s/^/$as_me: WARNING: /" >&2
10653 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10656 echo $ECHO_N "(cached) $ECHO_C" >&6
10658 eval "$as_ac_Header=\$ac_header_preproc"
10660 ac_res=`eval echo '${'$as_ac_Header'}'`
10661 { echo "$as_me:$LINENO: result: $ac_res" >&5
10662 echo "${ECHO_T}$ac_res" >&6; }
10665 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10666 cat >>confdefs.h <<_ACEOF
10667 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10675 { echo "$as_me:$LINENO: checking for error_t" >&5
10676 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10677 if test "${ac_cv_type_error_t+set}" = set; then
10678 echo $ECHO_N "(cached) $ECHO_C" >&6
10680 cat >conftest.$ac_ext <<_ACEOF
10683 cat confdefs.h >>conftest.$ac_ext
10684 cat >>conftest.$ac_ext <<_ACEOF
10685 /* end confdefs.h. */
10690 typedef error_t ac__type_new_;
10694 if ((ac__type_new_ *) 0)
10696 if (sizeof (ac__type_new_))
10702 rm -f conftest.$ac_objext
10703 if { (ac_try="$ac_compile"
10704 case "(($ac_try" in
10705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10706 *) ac_try_echo=$ac_try;;
10708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10709 (eval "$ac_compile") 2>conftest.er1
10711 grep -v '^ *+' conftest.er1 >conftest.err
10713 cat conftest.err >&5
10714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715 (exit $ac_status); } &&
10716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10717 { (case "(($ac_try" in
10718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10719 *) ac_try_echo=$ac_try;;
10721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10722 (eval "$ac_try") 2>&5
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); }; } &&
10726 { ac_try='test -s conftest.$ac_objext'
10727 { (case "(($ac_try" in
10728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10729 *) ac_try_echo=$ac_try;;
10731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10732 (eval "$ac_try") 2>&5
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); }; }; then
10736 ac_cv_type_error_t=yes
10738 echo "$as_me: failed program was:" >&5
10739 sed 's/^/| /' conftest.$ac_ext >&5
10741 ac_cv_type_error_t=no
10744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10746 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10747 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10748 if test $ac_cv_type_error_t = yes; then
10750 cat >>confdefs.h <<_ACEOF
10751 #define HAVE_ERROR_T 1
10757 cat >>confdefs.h <<\_ACEOF
10758 #define error_t int
10769 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10771 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10772 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10773 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10774 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10775 echo $ECHO_N "(cached) $ECHO_C" >&6
10777 cat >conftest.$ac_ext <<_ACEOF
10780 cat confdefs.h >>conftest.$ac_ext
10781 cat >>conftest.$ac_ext <<_ACEOF
10782 /* end confdefs.h. */
10783 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10785 #define $ac_func innocuous_$ac_func
10787 /* System header to define __stub macros and hopefully few prototypes,
10788 which can conflict with char $ac_func (); below.
10789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10790 <limits.h> exists even on freestanding compilers. */
10793 # include <limits.h>
10795 # include <assert.h>
10800 /* Override any GCC internal prototype to avoid an error.
10801 Use char because int might match the return type of a GCC
10802 builtin and then its argument prototype would still apply. */
10807 /* The GNU C library defines this for functions which it implements
10808 to always fail with ENOSYS. Some functions are actually named
10809 something starting with __ and the normal name is an alias. */
10810 #if defined __stub_$ac_func || defined __stub___$ac_func
10817 return $ac_func ();
10822 rm -f conftest.$ac_objext conftest$ac_exeext
10823 if { (ac_try="$ac_link"
10824 case "(($ac_try" in
10825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10826 *) ac_try_echo=$ac_try;;
10828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10829 (eval "$ac_link") 2>conftest.er1
10831 grep -v '^ *+' conftest.er1 >conftest.err
10833 cat conftest.err >&5
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); } &&
10836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10837 { (case "(($ac_try" in
10838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10839 *) ac_try_echo=$ac_try;;
10841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10842 (eval "$ac_try") 2>&5
10844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); }; } &&
10846 { ac_try='test -s conftest$ac_exeext'
10847 { (case "(($ac_try" in
10848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10849 *) ac_try_echo=$ac_try;;
10851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10852 (eval "$ac_try") 2>&5
10854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); }; }; then
10856 eval "$as_ac_var=yes"
10858 echo "$as_me: failed program was:" >&5
10859 sed 's/^/| /' conftest.$ac_ext >&5
10861 eval "$as_ac_var=no"
10864 rm -f core conftest.err conftest.$ac_objext \
10865 conftest$ac_exeext conftest.$ac_ext
10867 ac_res=`eval echo '${'$as_ac_var'}'`
10868 { echo "$as_me:$LINENO: result: $ac_res" >&5
10869 echo "${ECHO_T}$ac_res" >&6; }
10870 if test `eval echo '${'$as_ac_var'}'` = yes; then
10871 cat >>confdefs.h <<_ACEOF
10872 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10905 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10908 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10910 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10913 echo $ECHO_N "(cached) $ECHO_C" >&6
10915 ac_res=`eval echo '${'$as_ac_Header'}'`
10916 { echo "$as_me:$LINENO: result: $ac_res" >&5
10917 echo "${ECHO_T}$ac_res" >&6; }
10919 # Is the header compilable?
10920 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10921 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10922 cat >conftest.$ac_ext <<_ACEOF
10925 cat confdefs.h >>conftest.$ac_ext
10926 cat >>conftest.$ac_ext <<_ACEOF
10927 /* end confdefs.h. */
10928 $ac_includes_default
10929 #include <$ac_header>
10931 rm -f conftest.$ac_objext
10932 if { (ac_try="$ac_compile"
10933 case "(($ac_try" in
10934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10935 *) ac_try_echo=$ac_try;;
10937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10938 (eval "$ac_compile") 2>conftest.er1
10940 grep -v '^ *+' conftest.er1 >conftest.err
10942 cat conftest.err >&5
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); } &&
10945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10946 { (case "(($ac_try" in
10947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10948 *) ac_try_echo=$ac_try;;
10950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10951 (eval "$ac_try") 2>&5
10953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954 (exit $ac_status); }; } &&
10955 { ac_try='test -s conftest.$ac_objext'
10956 { (case "(($ac_try" in
10957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10958 *) ac_try_echo=$ac_try;;
10960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10961 (eval "$ac_try") 2>&5
10963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964 (exit $ac_status); }; }; then
10965 ac_header_compiler=yes
10967 echo "$as_me: failed program was:" >&5
10968 sed 's/^/| /' conftest.$ac_ext >&5
10970 ac_header_compiler=no
10973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10974 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10975 echo "${ECHO_T}$ac_header_compiler" >&6; }
10977 # Is the header present?
10978 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10979 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10980 cat >conftest.$ac_ext <<_ACEOF
10983 cat confdefs.h >>conftest.$ac_ext
10984 cat >>conftest.$ac_ext <<_ACEOF
10985 /* end confdefs.h. */
10986 #include <$ac_header>
10988 if { (ac_try="$ac_cpp conftest.$ac_ext"
10989 case "(($ac_try" in
10990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10991 *) ac_try_echo=$ac_try;;
10993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10996 grep -v '^ *+' conftest.er1 >conftest.err
10998 cat conftest.err >&5
10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); } >/dev/null; then
11001 if test -s conftest.err; then
11002 ac_cpp_err=$ac_c_preproc_warn_flag
11003 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11010 if test -z "$ac_cpp_err"; then
11011 ac_header_preproc=yes
11013 echo "$as_me: failed program was:" >&5
11014 sed 's/^/| /' conftest.$ac_ext >&5
11016 ac_header_preproc=no
11019 rm -f conftest.err conftest.$ac_ext
11020 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11021 echo "${ECHO_T}$ac_header_preproc" >&6; }
11023 # So? What about this header?
11024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11026 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11027 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11029 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11030 ac_header_preproc=yes
11033 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11034 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11035 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11036 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11037 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11038 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11039 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11040 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11042 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11043 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11044 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11046 ## ------------------------------------ ##
11047 ## Report this to http://llvm.org/bugs/ ##
11048 ## ------------------------------------ ##
11050 ) | sed "s/^/$as_me: WARNING: /" >&2
11053 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11056 echo $ECHO_N "(cached) $ECHO_C" >&6
11058 eval "$as_ac_Header=\$ac_header_preproc"
11060 ac_res=`eval echo '${'$as_ac_Header'}'`
11061 { echo "$as_me:$LINENO: result: $ac_res" >&5
11062 echo "${ECHO_T}$ac_res" >&6; }
11065 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11066 cat >>confdefs.h <<_ACEOF
11067 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11078 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11080 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11082 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11085 echo $ECHO_N "(cached) $ECHO_C" >&6
11087 ac_res=`eval echo '${'$as_ac_Header'}'`
11088 { echo "$as_me:$LINENO: result: $ac_res" >&5
11089 echo "${ECHO_T}$ac_res" >&6; }
11091 # Is the header compilable?
11092 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11093 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11094 cat >conftest.$ac_ext <<_ACEOF
11097 cat confdefs.h >>conftest.$ac_ext
11098 cat >>conftest.$ac_ext <<_ACEOF
11099 /* end confdefs.h. */
11100 $ac_includes_default
11101 #include <$ac_header>
11103 rm -f conftest.$ac_objext
11104 if { (ac_try="$ac_compile"
11105 case "(($ac_try" in
11106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11107 *) ac_try_echo=$ac_try;;
11109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11110 (eval "$ac_compile") 2>conftest.er1
11112 grep -v '^ *+' conftest.er1 >conftest.err
11114 cat conftest.err >&5
11115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116 (exit $ac_status); } &&
11117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11118 { (case "(($ac_try" in
11119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11120 *) ac_try_echo=$ac_try;;
11122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11123 (eval "$ac_try") 2>&5
11125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11126 (exit $ac_status); }; } &&
11127 { ac_try='test -s conftest.$ac_objext'
11128 { (case "(($ac_try" in
11129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11130 *) ac_try_echo=$ac_try;;
11132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11133 (eval "$ac_try") 2>&5
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); }; }; then
11137 ac_header_compiler=yes
11139 echo "$as_me: failed program was:" >&5
11140 sed 's/^/| /' conftest.$ac_ext >&5
11142 ac_header_compiler=no
11145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11146 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11147 echo "${ECHO_T}$ac_header_compiler" >&6; }
11149 # Is the header present?
11150 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11151 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11152 cat >conftest.$ac_ext <<_ACEOF
11155 cat confdefs.h >>conftest.$ac_ext
11156 cat >>conftest.$ac_ext <<_ACEOF
11157 /* end confdefs.h. */
11158 #include <$ac_header>
11160 if { (ac_try="$ac_cpp conftest.$ac_ext"
11161 case "(($ac_try" in
11162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11163 *) ac_try_echo=$ac_try;;
11165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11166 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11168 grep -v '^ *+' conftest.er1 >conftest.err
11170 cat conftest.err >&5
11171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172 (exit $ac_status); } >/dev/null; then
11173 if test -s conftest.err; then
11174 ac_cpp_err=$ac_c_preproc_warn_flag
11175 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11182 if test -z "$ac_cpp_err"; then
11183 ac_header_preproc=yes
11185 echo "$as_me: failed program was:" >&5
11186 sed 's/^/| /' conftest.$ac_ext >&5
11188 ac_header_preproc=no
11191 rm -f conftest.err conftest.$ac_ext
11192 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11193 echo "${ECHO_T}$ac_header_preproc" >&6; }
11195 # So? What about this header?
11196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11198 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11199 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11201 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11202 ac_header_preproc=yes
11205 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11206 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11207 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11208 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11209 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11210 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11211 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11212 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11214 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11215 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11216 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11218 ## ------------------------------------ ##
11219 ## Report this to http://llvm.org/bugs/ ##
11220 ## ------------------------------------ ##
11222 ) | sed "s/^/$as_me: WARNING: /" >&2
11225 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11228 echo $ECHO_N "(cached) $ECHO_C" >&6
11230 eval "$as_ac_Header=\$ac_header_preproc"
11232 ac_res=`eval echo '${'$as_ac_Header'}'`
11233 { echo "$as_me:$LINENO: result: $ac_res" >&5
11234 echo "${ECHO_T}$ac_res" >&6; }
11237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11238 cat >>confdefs.h <<_ACEOF
11239 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11248 for ac_header in string.h strings.h
11250 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11252 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11255 echo $ECHO_N "(cached) $ECHO_C" >&6
11257 ac_res=`eval echo '${'$as_ac_Header'}'`
11258 { echo "$as_me:$LINENO: result: $ac_res" >&5
11259 echo "${ECHO_T}$ac_res" >&6; }
11261 # Is the header compilable?
11262 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11263 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11264 cat >conftest.$ac_ext <<_ACEOF
11267 cat confdefs.h >>conftest.$ac_ext
11268 cat >>conftest.$ac_ext <<_ACEOF
11269 /* end confdefs.h. */
11270 $ac_includes_default
11271 #include <$ac_header>
11273 rm -f conftest.$ac_objext
11274 if { (ac_try="$ac_compile"
11275 case "(($ac_try" in
11276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11277 *) ac_try_echo=$ac_try;;
11279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11280 (eval "$ac_compile") 2>conftest.er1
11282 grep -v '^ *+' conftest.er1 >conftest.err
11284 cat conftest.err >&5
11285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286 (exit $ac_status); } &&
11287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11288 { (case "(($ac_try" in
11289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11290 *) ac_try_echo=$ac_try;;
11292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11293 (eval "$ac_try") 2>&5
11295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296 (exit $ac_status); }; } &&
11297 { ac_try='test -s conftest.$ac_objext'
11298 { (case "(($ac_try" in
11299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11300 *) ac_try_echo=$ac_try;;
11302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11303 (eval "$ac_try") 2>&5
11305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306 (exit $ac_status); }; }; then
11307 ac_header_compiler=yes
11309 echo "$as_me: failed program was:" >&5
11310 sed 's/^/| /' conftest.$ac_ext >&5
11312 ac_header_compiler=no
11315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11316 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11317 echo "${ECHO_T}$ac_header_compiler" >&6; }
11319 # Is the header present?
11320 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11321 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11322 cat >conftest.$ac_ext <<_ACEOF
11325 cat confdefs.h >>conftest.$ac_ext
11326 cat >>conftest.$ac_ext <<_ACEOF
11327 /* end confdefs.h. */
11328 #include <$ac_header>
11330 if { (ac_try="$ac_cpp conftest.$ac_ext"
11331 case "(($ac_try" in
11332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11333 *) ac_try_echo=$ac_try;;
11335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11336 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11338 grep -v '^ *+' conftest.er1 >conftest.err
11340 cat conftest.err >&5
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); } >/dev/null; then
11343 if test -s conftest.err; then
11344 ac_cpp_err=$ac_c_preproc_warn_flag
11345 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11352 if test -z "$ac_cpp_err"; then
11353 ac_header_preproc=yes
11355 echo "$as_me: failed program was:" >&5
11356 sed 's/^/| /' conftest.$ac_ext >&5
11358 ac_header_preproc=no
11361 rm -f conftest.err conftest.$ac_ext
11362 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11363 echo "${ECHO_T}$ac_header_preproc" >&6; }
11365 # So? What about this header?
11366 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11368 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11369 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11371 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11372 ac_header_preproc=yes
11375 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11376 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11377 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11378 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11379 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11380 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11381 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11382 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11384 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11385 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11386 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11388 ## ------------------------------------ ##
11389 ## Report this to http://llvm.org/bugs/ ##
11390 ## ------------------------------------ ##
11392 ) | sed "s/^/$as_me: WARNING: /" >&2
11395 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11398 echo $ECHO_N "(cached) $ECHO_C" >&6
11400 eval "$as_ac_Header=\$ac_header_preproc"
11402 ac_res=`eval echo '${'$as_ac_Header'}'`
11403 { echo "$as_me:$LINENO: result: $ac_res" >&5
11404 echo "${ECHO_T}$ac_res" >&6; }
11407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11408 cat >>confdefs.h <<_ACEOF
11409 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11419 for ac_func in strchr index
11421 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11422 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11423 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11424 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11425 echo $ECHO_N "(cached) $ECHO_C" >&6
11427 cat >conftest.$ac_ext <<_ACEOF
11430 cat confdefs.h >>conftest.$ac_ext
11431 cat >>conftest.$ac_ext <<_ACEOF
11432 /* end confdefs.h. */
11433 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11435 #define $ac_func innocuous_$ac_func
11437 /* System header to define __stub macros and hopefully few prototypes,
11438 which can conflict with char $ac_func (); below.
11439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11440 <limits.h> exists even on freestanding compilers. */
11443 # include <limits.h>
11445 # include <assert.h>
11450 /* Override any GCC internal prototype to avoid an error.
11451 Use char because int might match the return type of a GCC
11452 builtin and then its argument prototype would still apply. */
11457 /* The GNU C library defines this for functions which it implements
11458 to always fail with ENOSYS. Some functions are actually named
11459 something starting with __ and the normal name is an alias. */
11460 #if defined __stub_$ac_func || defined __stub___$ac_func
11467 return $ac_func ();
11472 rm -f conftest.$ac_objext conftest$ac_exeext
11473 if { (ac_try="$ac_link"
11474 case "(($ac_try" in
11475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11476 *) ac_try_echo=$ac_try;;
11478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11479 (eval "$ac_link") 2>conftest.er1
11481 grep -v '^ *+' conftest.er1 >conftest.err
11483 cat conftest.err >&5
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); } &&
11486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11487 { (case "(($ac_try" in
11488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11489 *) ac_try_echo=$ac_try;;
11491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11492 (eval "$ac_try") 2>&5
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); }; } &&
11496 { ac_try='test -s conftest$ac_exeext'
11497 { (case "(($ac_try" in
11498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11499 *) ac_try_echo=$ac_try;;
11501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11502 (eval "$ac_try") 2>&5
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); }; }; then
11506 eval "$as_ac_var=yes"
11508 echo "$as_me: failed program was:" >&5
11509 sed 's/^/| /' conftest.$ac_ext >&5
11511 eval "$as_ac_var=no"
11514 rm -f core conftest.err conftest.$ac_objext \
11515 conftest$ac_exeext conftest.$ac_ext
11517 ac_res=`eval echo '${'$as_ac_var'}'`
11518 { echo "$as_me:$LINENO: result: $ac_res" >&5
11519 echo "${ECHO_T}$ac_res" >&6; }
11520 if test `eval echo '${'$as_ac_var'}'` = yes; then
11521 cat >>confdefs.h <<_ACEOF
11522 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11530 for ac_func in strrchr rindex
11532 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11533 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11534 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11535 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11536 echo $ECHO_N "(cached) $ECHO_C" >&6
11538 cat >conftest.$ac_ext <<_ACEOF
11541 cat confdefs.h >>conftest.$ac_ext
11542 cat >>conftest.$ac_ext <<_ACEOF
11543 /* end confdefs.h. */
11544 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11545 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11546 #define $ac_func innocuous_$ac_func
11548 /* System header to define __stub macros and hopefully few prototypes,
11549 which can conflict with char $ac_func (); below.
11550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11551 <limits.h> exists even on freestanding compilers. */
11554 # include <limits.h>
11556 # include <assert.h>
11561 /* Override any GCC internal prototype to avoid an error.
11562 Use char because int might match the return type of a GCC
11563 builtin and then its argument prototype would still apply. */
11568 /* The GNU C library defines this for functions which it implements
11569 to always fail with ENOSYS. Some functions are actually named
11570 something starting with __ and the normal name is an alias. */
11571 #if defined __stub_$ac_func || defined __stub___$ac_func
11578 return $ac_func ();
11583 rm -f conftest.$ac_objext conftest$ac_exeext
11584 if { (ac_try="$ac_link"
11585 case "(($ac_try" in
11586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11587 *) ac_try_echo=$ac_try;;
11589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11590 (eval "$ac_link") 2>conftest.er1
11592 grep -v '^ *+' conftest.er1 >conftest.err
11594 cat conftest.err >&5
11595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596 (exit $ac_status); } &&
11597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11598 { (case "(($ac_try" in
11599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11600 *) ac_try_echo=$ac_try;;
11602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11603 (eval "$ac_try") 2>&5
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); }; } &&
11607 { ac_try='test -s conftest$ac_exeext'
11608 { (case "(($ac_try" in
11609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11610 *) ac_try_echo=$ac_try;;
11612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11613 (eval "$ac_try") 2>&5
11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616 (exit $ac_status); }; }; then
11617 eval "$as_ac_var=yes"
11619 echo "$as_me: failed program was:" >&5
11620 sed 's/^/| /' conftest.$ac_ext >&5
11622 eval "$as_ac_var=no"
11625 rm -f core conftest.err conftest.$ac_objext \
11626 conftest$ac_exeext conftest.$ac_ext
11628 ac_res=`eval echo '${'$as_ac_var'}'`
11629 { echo "$as_me:$LINENO: result: $ac_res" >&5
11630 echo "${ECHO_T}$ac_res" >&6; }
11631 if test `eval echo '${'$as_ac_var'}'` = yes; then
11632 cat >>confdefs.h <<_ACEOF
11633 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11641 for ac_func in memcpy bcopy
11643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11644 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11646 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11647 echo $ECHO_N "(cached) $ECHO_C" >&6
11649 cat >conftest.$ac_ext <<_ACEOF
11652 cat confdefs.h >>conftest.$ac_ext
11653 cat >>conftest.$ac_ext <<_ACEOF
11654 /* end confdefs.h. */
11655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11657 #define $ac_func innocuous_$ac_func
11659 /* System header to define __stub macros and hopefully few prototypes,
11660 which can conflict with char $ac_func (); below.
11661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11662 <limits.h> exists even on freestanding compilers. */
11665 # include <limits.h>
11667 # include <assert.h>
11672 /* Override any GCC internal prototype to avoid an error.
11673 Use char because int might match the return type of a GCC
11674 builtin and then its argument prototype would still apply. */
11679 /* The GNU C library defines this for functions which it implements
11680 to always fail with ENOSYS. Some functions are actually named
11681 something starting with __ and the normal name is an alias. */
11682 #if defined __stub_$ac_func || defined __stub___$ac_func
11689 return $ac_func ();
11694 rm -f conftest.$ac_objext conftest$ac_exeext
11695 if { (ac_try="$ac_link"
11696 case "(($ac_try" in
11697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11698 *) ac_try_echo=$ac_try;;
11700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11701 (eval "$ac_link") 2>conftest.er1
11703 grep -v '^ *+' conftest.er1 >conftest.err
11705 cat conftest.err >&5
11706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707 (exit $ac_status); } &&
11708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11709 { (case "(($ac_try" in
11710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11711 *) ac_try_echo=$ac_try;;
11713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11714 (eval "$ac_try") 2>&5
11716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); }; } &&
11718 { ac_try='test -s conftest$ac_exeext'
11719 { (case "(($ac_try" in
11720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11721 *) ac_try_echo=$ac_try;;
11723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11724 (eval "$ac_try") 2>&5
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); }; }; then
11728 eval "$as_ac_var=yes"
11730 echo "$as_me: failed program was:" >&5
11731 sed 's/^/| /' conftest.$ac_ext >&5
11733 eval "$as_ac_var=no"
11736 rm -f core conftest.err conftest.$ac_objext \
11737 conftest$ac_exeext conftest.$ac_ext
11739 ac_res=`eval echo '${'$as_ac_var'}'`
11740 { echo "$as_me:$LINENO: result: $ac_res" >&5
11741 echo "${ECHO_T}$ac_res" >&6; }
11742 if test `eval echo '${'$as_ac_var'}'` = yes; then
11743 cat >>confdefs.h <<_ACEOF
11744 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11752 for ac_func in memmove strcmp
11754 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11755 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11756 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11757 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11758 echo $ECHO_N "(cached) $ECHO_C" >&6
11760 cat >conftest.$ac_ext <<_ACEOF
11763 cat confdefs.h >>conftest.$ac_ext
11764 cat >>conftest.$ac_ext <<_ACEOF
11765 /* end confdefs.h. */
11766 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11768 #define $ac_func innocuous_$ac_func
11770 /* System header to define __stub macros and hopefully few prototypes,
11771 which can conflict with char $ac_func (); below.
11772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11773 <limits.h> exists even on freestanding compilers. */
11776 # include <limits.h>
11778 # include <assert.h>
11783 /* Override any GCC internal prototype to avoid an error.
11784 Use char because int might match the return type of a GCC
11785 builtin and then its argument prototype would still apply. */
11790 /* The GNU C library defines this for functions which it implements
11791 to always fail with ENOSYS. Some functions are actually named
11792 something starting with __ and the normal name is an alias. */
11793 #if defined __stub_$ac_func || defined __stub___$ac_func
11800 return $ac_func ();
11805 rm -f conftest.$ac_objext conftest$ac_exeext
11806 if { (ac_try="$ac_link"
11807 case "(($ac_try" in
11808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11809 *) ac_try_echo=$ac_try;;
11811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11812 (eval "$ac_link") 2>conftest.er1
11814 grep -v '^ *+' conftest.er1 >conftest.err
11816 cat conftest.err >&5
11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); } &&
11819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11820 { (case "(($ac_try" in
11821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11822 *) ac_try_echo=$ac_try;;
11824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11825 (eval "$ac_try") 2>&5
11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828 (exit $ac_status); }; } &&
11829 { ac_try='test -s conftest$ac_exeext'
11830 { (case "(($ac_try" in
11831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11832 *) ac_try_echo=$ac_try;;
11834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11835 (eval "$ac_try") 2>&5
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); }; }; then
11839 eval "$as_ac_var=yes"
11841 echo "$as_me: failed program was:" >&5
11842 sed 's/^/| /' conftest.$ac_ext >&5
11844 eval "$as_ac_var=no"
11847 rm -f core conftest.err conftest.$ac_objext \
11848 conftest$ac_exeext conftest.$ac_ext
11850 ac_res=`eval echo '${'$as_ac_var'}'`
11851 { echo "$as_me:$LINENO: result: $ac_res" >&5
11852 echo "${ECHO_T}$ac_res" >&6; }
11853 if test `eval echo '${'$as_ac_var'}'` = yes; then
11854 cat >>confdefs.h <<_ACEOF
11855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11864 for ac_func in closedir opendir readdir
11866 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11867 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11868 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11869 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11870 echo $ECHO_N "(cached) $ECHO_C" >&6
11872 cat >conftest.$ac_ext <<_ACEOF
11875 cat confdefs.h >>conftest.$ac_ext
11876 cat >>conftest.$ac_ext <<_ACEOF
11877 /* end confdefs.h. */
11878 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11880 #define $ac_func innocuous_$ac_func
11882 /* System header to define __stub macros and hopefully few prototypes,
11883 which can conflict with char $ac_func (); below.
11884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11885 <limits.h> exists even on freestanding compilers. */
11888 # include <limits.h>
11890 # include <assert.h>
11895 /* Override any GCC internal prototype to avoid an error.
11896 Use char because int might match the return type of a GCC
11897 builtin and then its argument prototype would still apply. */
11902 /* The GNU C library defines this for functions which it implements
11903 to always fail with ENOSYS. Some functions are actually named
11904 something starting with __ and the normal name is an alias. */
11905 #if defined __stub_$ac_func || defined __stub___$ac_func
11912 return $ac_func ();
11917 rm -f conftest.$ac_objext conftest$ac_exeext
11918 if { (ac_try="$ac_link"
11919 case "(($ac_try" in
11920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11921 *) ac_try_echo=$ac_try;;
11923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11924 (eval "$ac_link") 2>conftest.er1
11926 grep -v '^ *+' conftest.er1 >conftest.err
11928 cat conftest.err >&5
11929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); } &&
11931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11932 { (case "(($ac_try" in
11933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11934 *) ac_try_echo=$ac_try;;
11936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11937 (eval "$ac_try") 2>&5
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); }; } &&
11941 { ac_try='test -s conftest$ac_exeext'
11942 { (case "(($ac_try" in
11943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11944 *) ac_try_echo=$ac_try;;
11946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11947 (eval "$ac_try") 2>&5
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); }; }; then
11951 eval "$as_ac_var=yes"
11953 echo "$as_me: failed program was:" >&5
11954 sed 's/^/| /' conftest.$ac_ext >&5
11956 eval "$as_ac_var=no"
11959 rm -f core conftest.err conftest.$ac_objext \
11960 conftest$ac_exeext conftest.$ac_ext
11962 ac_res=`eval echo '${'$as_ac_var'}'`
11963 { echo "$as_me:$LINENO: result: $ac_res" >&5
11964 echo "${ECHO_T}$ac_res" >&6; }
11965 if test `eval echo '${'$as_ac_var'}'` = yes; then
11966 cat >>confdefs.h <<_ACEOF
11967 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11975 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11976 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11989 if test "$GCC" != "yes" && test "$ICC" != "yes"
11991 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11992 echo "$as_me: error: gcc|icc required but not found" >&2;}
11993 { (exit 1); exit 1; }; }
11996 if test "$GXX" != "yes" && test "$IXX" != "yes"
11998 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11999 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12000 { (exit 1); exit 1; }; }
12003 if test "$GCC" = "yes"
12005 cat >conftest.$ac_ext <<_ACEOF
12006 #if !defined(__GNUC__) || __GNUC__ < 3
12007 #error Unsupported GCC version
12011 rm -f conftest.$ac_objext
12012 if { (ac_try="$ac_compile"
12013 case "(($ac_try" in
12014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12015 *) ac_try_echo=$ac_try;;
12017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12018 (eval "$ac_compile") 2>conftest.er1
12020 grep -v '^ *+' conftest.er1 >conftest.err
12022 cat conftest.err >&5
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); } &&
12025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12026 { (case "(($ac_try" in
12027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12028 *) ac_try_echo=$ac_try;;
12030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12031 (eval "$ac_try") 2>&5
12033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034 (exit $ac_status); }; } &&
12035 { ac_try='test -s conftest.$ac_objext'
12036 { (case "(($ac_try" in
12037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12038 *) ac_try_echo=$ac_try;;
12040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12041 (eval "$ac_try") 2>&5
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 (exit $ac_status); }; }; then
12047 echo "$as_me: failed program was:" >&5
12048 sed 's/^/| /' conftest.$ac_ext >&5
12050 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12051 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12052 { (exit 1); exit 1; }; }
12055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12058 if test -z "$llvm_cv_gnu_make_command"
12060 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12061 echo "$as_me: error: GNU Make required but not found" >&2;}
12062 { (exit 1); exit 1; }; }
12065 { echo "$as_me:$LINENO: result: ok" >&5
12066 echo "${ECHO_T}ok" >&6; }
12068 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12069 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12070 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12072 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12074 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12076 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12077 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12081 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12082 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12083 if test "${ac_cv_lib_m_sin+set}" = set; then
12084 echo $ECHO_N "(cached) $ECHO_C" >&6
12086 ac_check_lib_save_LIBS=$LIBS
12088 cat >conftest.$ac_ext <<_ACEOF
12091 cat confdefs.h >>conftest.$ac_ext
12092 cat >>conftest.$ac_ext <<_ACEOF
12093 /* end confdefs.h. */
12095 /* Override any GCC internal prototype to avoid an error.
12096 Use char because int might match the return type of a GCC
12097 builtin and then its argument prototype would still apply. */
12110 rm -f conftest.$ac_objext conftest$ac_exeext
12111 if { (ac_try="$ac_link"
12112 case "(($ac_try" in
12113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12114 *) ac_try_echo=$ac_try;;
12116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12117 (eval "$ac_link") 2>conftest.er1
12119 grep -v '^ *+' conftest.er1 >conftest.err
12121 cat conftest.err >&5
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); } &&
12124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12125 { (case "(($ac_try" in
12126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12127 *) ac_try_echo=$ac_try;;
12129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12130 (eval "$ac_try") 2>&5
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); }; } &&
12134 { ac_try='test -s conftest$ac_exeext'
12135 { (case "(($ac_try" in
12136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12137 *) ac_try_echo=$ac_try;;
12139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12140 (eval "$ac_try") 2>&5
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); }; }; then
12144 ac_cv_lib_m_sin=yes
12146 echo "$as_me: failed program was:" >&5
12147 sed 's/^/| /' conftest.$ac_ext >&5
12152 rm -f core conftest.err conftest.$ac_objext \
12153 conftest$ac_exeext conftest.$ac_ext
12154 LIBS=$ac_check_lib_save_LIBS
12156 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12157 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12158 if test $ac_cv_lib_m_sin = yes; then
12159 cat >>confdefs.h <<_ACEOF
12160 #define HAVE_LIBM 1
12167 if test "$llvm_cv_os_type" = "MingW" ; then
12169 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12170 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12171 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12172 echo $ECHO_N "(cached) $ECHO_C" >&6
12174 ac_check_lib_save_LIBS=$LIBS
12175 LIBS="-limagehlp $LIBS"
12176 cat >conftest.$ac_ext <<_ACEOF
12179 cat confdefs.h >>conftest.$ac_ext
12180 cat >>conftest.$ac_ext <<_ACEOF
12181 /* end confdefs.h. */
12192 rm -f conftest.$ac_objext conftest$ac_exeext
12193 if { (ac_try="$ac_link"
12194 case "(($ac_try" in
12195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12196 *) ac_try_echo=$ac_try;;
12198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12199 (eval "$ac_link") 2>conftest.er1
12201 grep -v '^ *+' conftest.er1 >conftest.err
12203 cat conftest.err >&5
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); } &&
12206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12207 { (case "(($ac_try" in
12208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12209 *) ac_try_echo=$ac_try;;
12211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12212 (eval "$ac_try") 2>&5
12214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215 (exit $ac_status); }; } &&
12216 { ac_try='test -s conftest$ac_exeext'
12217 { (case "(($ac_try" in
12218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12219 *) ac_try_echo=$ac_try;;
12221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12222 (eval "$ac_try") 2>&5
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); }; }; then
12226 ac_cv_lib_imagehlp_main=yes
12228 echo "$as_me: failed program was:" >&5
12229 sed 's/^/| /' conftest.$ac_ext >&5
12231 ac_cv_lib_imagehlp_main=no
12234 rm -f core conftest.err conftest.$ac_objext \
12235 conftest$ac_exeext conftest.$ac_ext
12236 LIBS=$ac_check_lib_save_LIBS
12238 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12239 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12240 if test $ac_cv_lib_imagehlp_main = yes; then
12241 cat >>confdefs.h <<_ACEOF
12242 #define HAVE_LIBIMAGEHLP 1
12245 LIBS="-limagehlp $LIBS"
12250 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12251 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12252 if test "${ac_cv_lib_psapi_main+set}" = set; then
12253 echo $ECHO_N "(cached) $ECHO_C" >&6
12255 ac_check_lib_save_LIBS=$LIBS
12256 LIBS="-lpsapi $LIBS"
12257 cat >conftest.$ac_ext <<_ACEOF
12260 cat confdefs.h >>conftest.$ac_ext
12261 cat >>conftest.$ac_ext <<_ACEOF
12262 /* end confdefs.h. */
12273 rm -f conftest.$ac_objext conftest$ac_exeext
12274 if { (ac_try="$ac_link"
12275 case "(($ac_try" in
12276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12277 *) ac_try_echo=$ac_try;;
12279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12280 (eval "$ac_link") 2>conftest.er1
12282 grep -v '^ *+' conftest.er1 >conftest.err
12284 cat conftest.err >&5
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); } &&
12287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12288 { (case "(($ac_try" in
12289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12290 *) ac_try_echo=$ac_try;;
12292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12293 (eval "$ac_try") 2>&5
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); }; } &&
12297 { ac_try='test -s conftest$ac_exeext'
12298 { (case "(($ac_try" in
12299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12300 *) ac_try_echo=$ac_try;;
12302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12303 (eval "$ac_try") 2>&5
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); }; }; then
12307 ac_cv_lib_psapi_main=yes
12309 echo "$as_me: failed program was:" >&5
12310 sed 's/^/| /' conftest.$ac_ext >&5
12312 ac_cv_lib_psapi_main=no
12315 rm -f core conftest.err conftest.$ac_objext \
12316 conftest$ac_exeext conftest.$ac_ext
12317 LIBS=$ac_check_lib_save_LIBS
12319 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12320 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12321 if test $ac_cv_lib_psapi_main = yes; then
12322 cat >>confdefs.h <<_ACEOF
12323 #define HAVE_LIBPSAPI 1
12326 LIBS="-lpsapi $LIBS"
12332 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12333 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12334 if test "${ac_cv_search_dlopen+set}" = set; then
12335 echo $ECHO_N "(cached) $ECHO_C" >&6
12337 ac_func_search_save_LIBS=$LIBS
12338 cat >conftest.$ac_ext <<_ACEOF
12341 cat confdefs.h >>conftest.$ac_ext
12342 cat >>conftest.$ac_ext <<_ACEOF
12343 /* end confdefs.h. */
12345 /* Override any GCC internal prototype to avoid an error.
12346 Use char because int might match the return type of a GCC
12347 builtin and then its argument prototype would still apply. */
12360 for ac_lib in '' dl; do
12361 if test -z "$ac_lib"; then
12362 ac_res="none required"
12365 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12367 rm -f conftest.$ac_objext conftest$ac_exeext
12368 if { (ac_try="$ac_link"
12369 case "(($ac_try" in
12370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12371 *) ac_try_echo=$ac_try;;
12373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12374 (eval "$ac_link") 2>conftest.er1
12376 grep -v '^ *+' conftest.er1 >conftest.err
12378 cat conftest.err >&5
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); } &&
12381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12382 { (case "(($ac_try" in
12383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12384 *) ac_try_echo=$ac_try;;
12386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12387 (eval "$ac_try") 2>&5
12389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390 (exit $ac_status); }; } &&
12391 { ac_try='test -s conftest$ac_exeext'
12392 { (case "(($ac_try" in
12393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12394 *) ac_try_echo=$ac_try;;
12396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12397 (eval "$ac_try") 2>&5
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); }; }; then
12401 ac_cv_search_dlopen=$ac_res
12403 echo "$as_me: failed program was:" >&5
12404 sed 's/^/| /' conftest.$ac_ext >&5
12409 rm -f core conftest.err conftest.$ac_objext \
12411 if test "${ac_cv_search_dlopen+set}" = set; then
12415 if test "${ac_cv_search_dlopen+set}" = set; then
12418 ac_cv_search_dlopen=no
12420 rm conftest.$ac_ext
12421 LIBS=$ac_func_search_save_LIBS
12423 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12424 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12425 ac_res=$ac_cv_search_dlopen
12426 if test "$ac_res" != no; then
12427 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12429 cat >>confdefs.h <<\_ACEOF
12430 #define HAVE_DLOPEN 1
12434 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12435 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12439 if test "$llvm_cv_enable_libffi" = "yes" ; then
12440 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12441 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12442 if test "${ac_cv_search_ffi_call+set}" = set; then
12443 echo $ECHO_N "(cached) $ECHO_C" >&6
12445 ac_func_search_save_LIBS=$LIBS
12446 cat >conftest.$ac_ext <<_ACEOF
12449 cat confdefs.h >>conftest.$ac_ext
12450 cat >>conftest.$ac_ext <<_ACEOF
12451 /* end confdefs.h. */
12453 /* Override any GCC internal prototype to avoid an error.
12454 Use char because int might match the return type of a GCC
12455 builtin and then its argument prototype would still apply. */
12463 return ffi_call ();
12468 for ac_lib in '' ffi; do
12469 if test -z "$ac_lib"; then
12470 ac_res="none required"
12473 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12475 rm -f conftest.$ac_objext conftest$ac_exeext
12476 if { (ac_try="$ac_link"
12477 case "(($ac_try" in
12478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12479 *) ac_try_echo=$ac_try;;
12481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12482 (eval "$ac_link") 2>conftest.er1
12484 grep -v '^ *+' conftest.er1 >conftest.err
12486 cat conftest.err >&5
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); } &&
12489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12490 { (case "(($ac_try" in
12491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12492 *) ac_try_echo=$ac_try;;
12494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12495 (eval "$ac_try") 2>&5
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 (exit $ac_status); }; } &&
12499 { ac_try='test -s conftest$ac_exeext'
12500 { (case "(($ac_try" in
12501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12502 *) ac_try_echo=$ac_try;;
12504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12505 (eval "$ac_try") 2>&5
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); }; }; then
12509 ac_cv_search_ffi_call=$ac_res
12511 echo "$as_me: failed program was:" >&5
12512 sed 's/^/| /' conftest.$ac_ext >&5
12517 rm -f core conftest.err conftest.$ac_objext \
12519 if test "${ac_cv_search_ffi_call+set}" = set; then
12523 if test "${ac_cv_search_ffi_call+set}" = set; then
12526 ac_cv_search_ffi_call=no
12528 rm conftest.$ac_ext
12529 LIBS=$ac_func_search_save_LIBS
12531 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12532 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12533 ac_res=$ac_cv_search_ffi_call
12534 if test "$ac_res" != no; then
12535 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12537 cat >>confdefs.h <<\_ACEOF
12538 #define HAVE_FFI_CALL 1
12542 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12543 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12544 { (exit 1); exit 1; }; }
12549 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12550 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12551 if test "${ac_cv_search_mallinfo+set}" = set; then
12552 echo $ECHO_N "(cached) $ECHO_C" >&6
12554 ac_func_search_save_LIBS=$LIBS
12555 cat >conftest.$ac_ext <<_ACEOF
12558 cat confdefs.h >>conftest.$ac_ext
12559 cat >>conftest.$ac_ext <<_ACEOF
12560 /* end confdefs.h. */
12562 /* Override any GCC internal prototype to avoid an error.
12563 Use char because int might match the return type of a GCC
12564 builtin and then its argument prototype would still apply. */
12572 return mallinfo ();
12577 for ac_lib in '' malloc; do
12578 if test -z "$ac_lib"; then
12579 ac_res="none required"
12582 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12584 rm -f conftest.$ac_objext conftest$ac_exeext
12585 if { (ac_try="$ac_link"
12586 case "(($ac_try" in
12587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12588 *) ac_try_echo=$ac_try;;
12590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12591 (eval "$ac_link") 2>conftest.er1
12593 grep -v '^ *+' conftest.er1 >conftest.err
12595 cat conftest.err >&5
12596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597 (exit $ac_status); } &&
12598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12599 { (case "(($ac_try" in
12600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12601 *) ac_try_echo=$ac_try;;
12603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12604 (eval "$ac_try") 2>&5
12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); }; } &&
12608 { ac_try='test -s conftest$ac_exeext'
12609 { (case "(($ac_try" in
12610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12611 *) ac_try_echo=$ac_try;;
12613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12614 (eval "$ac_try") 2>&5
12616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617 (exit $ac_status); }; }; then
12618 ac_cv_search_mallinfo=$ac_res
12620 echo "$as_me: failed program was:" >&5
12621 sed 's/^/| /' conftest.$ac_ext >&5
12626 rm -f core conftest.err conftest.$ac_objext \
12628 if test "${ac_cv_search_mallinfo+set}" = set; then
12632 if test "${ac_cv_search_mallinfo+set}" = set; then
12635 ac_cv_search_mallinfo=no
12637 rm conftest.$ac_ext
12638 LIBS=$ac_func_search_save_LIBS
12640 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12641 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12642 ac_res=$ac_cv_search_mallinfo
12643 if test "$ac_res" != no; then
12644 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12646 cat >>confdefs.h <<\_ACEOF
12647 #define HAVE_MALLINFO 1
12653 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12655 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12656 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12657 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12658 echo $ECHO_N "(cached) $ECHO_C" >&6
12660 ac_check_lib_save_LIBS=$LIBS
12661 LIBS="-lpthread $LIBS"
12662 cat >conftest.$ac_ext <<_ACEOF
12665 cat confdefs.h >>conftest.$ac_ext
12666 cat >>conftest.$ac_ext <<_ACEOF
12667 /* end confdefs.h. */
12669 /* Override any GCC internal prototype to avoid an error.
12670 Use char because int might match the return type of a GCC
12671 builtin and then its argument prototype would still apply. */
12675 char pthread_mutex_init ();
12679 return pthread_mutex_init ();
12684 rm -f conftest.$ac_objext conftest$ac_exeext
12685 if { (ac_try="$ac_link"
12686 case "(($ac_try" in
12687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12688 *) ac_try_echo=$ac_try;;
12690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12691 (eval "$ac_link") 2>conftest.er1
12693 grep -v '^ *+' conftest.er1 >conftest.err
12695 cat conftest.err >&5
12696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697 (exit $ac_status); } &&
12698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12699 { (case "(($ac_try" in
12700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12701 *) ac_try_echo=$ac_try;;
12703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12704 (eval "$ac_try") 2>&5
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); }; } &&
12708 { ac_try='test -s conftest$ac_exeext'
12709 { (case "(($ac_try" in
12710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12711 *) ac_try_echo=$ac_try;;
12713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12714 (eval "$ac_try") 2>&5
12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717 (exit $ac_status); }; }; then
12718 ac_cv_lib_pthread_pthread_mutex_init=yes
12720 echo "$as_me: failed program was:" >&5
12721 sed 's/^/| /' conftest.$ac_ext >&5
12723 ac_cv_lib_pthread_pthread_mutex_init=no
12726 rm -f core conftest.err conftest.$ac_objext \
12727 conftest$ac_exeext conftest.$ac_ext
12728 LIBS=$ac_check_lib_save_LIBS
12730 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12731 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12732 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12733 cat >>confdefs.h <<_ACEOF
12734 #define HAVE_LIBPTHREAD 1
12737 LIBS="-lpthread $LIBS"
12741 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12742 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12743 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12744 echo $ECHO_N "(cached) $ECHO_C" >&6
12746 ac_func_search_save_LIBS=$LIBS
12747 cat >conftest.$ac_ext <<_ACEOF
12750 cat confdefs.h >>conftest.$ac_ext
12751 cat >>conftest.$ac_ext <<_ACEOF
12752 /* end confdefs.h. */
12754 /* Override any GCC internal prototype to avoid an error.
12755 Use char because int might match the return type of a GCC
12756 builtin and then its argument prototype would still apply. */
12760 char pthread_mutex_lock ();
12764 return pthread_mutex_lock ();
12769 for ac_lib in '' pthread; do
12770 if test -z "$ac_lib"; then
12771 ac_res="none required"
12774 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12776 rm -f conftest.$ac_objext conftest$ac_exeext
12777 if { (ac_try="$ac_link"
12778 case "(($ac_try" in
12779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12780 *) ac_try_echo=$ac_try;;
12782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12783 (eval "$ac_link") 2>conftest.er1
12785 grep -v '^ *+' conftest.er1 >conftest.err
12787 cat conftest.err >&5
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); } &&
12790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12791 { (case "(($ac_try" in
12792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12793 *) ac_try_echo=$ac_try;;
12795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12796 (eval "$ac_try") 2>&5
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); }; } &&
12800 { ac_try='test -s conftest$ac_exeext'
12801 { (case "(($ac_try" in
12802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12803 *) ac_try_echo=$ac_try;;
12805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12806 (eval "$ac_try") 2>&5
12808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809 (exit $ac_status); }; }; then
12810 ac_cv_search_pthread_mutex_lock=$ac_res
12812 echo "$as_me: failed program was:" >&5
12813 sed 's/^/| /' conftest.$ac_ext >&5
12818 rm -f core conftest.err conftest.$ac_objext \
12820 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12824 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12827 ac_cv_search_pthread_mutex_lock=no
12829 rm conftest.$ac_ext
12830 LIBS=$ac_func_search_save_LIBS
12832 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12833 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12834 ac_res=$ac_cv_search_pthread_mutex_lock
12835 if test "$ac_res" != no; then
12836 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12838 cat >>confdefs.h <<\_ACEOF
12839 #define HAVE_PTHREAD_MUTEX_LOCK 1
12844 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12845 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12846 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12847 echo $ECHO_N "(cached) $ECHO_C" >&6
12849 ac_func_search_save_LIBS=$LIBS
12850 cat >conftest.$ac_ext <<_ACEOF
12853 cat confdefs.h >>conftest.$ac_ext
12854 cat >>conftest.$ac_ext <<_ACEOF
12855 /* end confdefs.h. */
12857 /* Override any GCC internal prototype to avoid an error.
12858 Use char because int might match the return type of a GCC
12859 builtin and then its argument prototype would still apply. */
12863 char pthread_rwlock_init ();
12867 return pthread_rwlock_init ();
12872 for ac_lib in '' pthread; do
12873 if test -z "$ac_lib"; then
12874 ac_res="none required"
12877 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12879 rm -f conftest.$ac_objext conftest$ac_exeext
12880 if { (ac_try="$ac_link"
12881 case "(($ac_try" in
12882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12883 *) ac_try_echo=$ac_try;;
12885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12886 (eval "$ac_link") 2>conftest.er1
12888 grep -v '^ *+' conftest.er1 >conftest.err
12890 cat conftest.err >&5
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); } &&
12893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12894 { (case "(($ac_try" in
12895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12896 *) ac_try_echo=$ac_try;;
12898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12899 (eval "$ac_try") 2>&5
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); }; } &&
12903 { ac_try='test -s conftest$ac_exeext'
12904 { (case "(($ac_try" in
12905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12906 *) ac_try_echo=$ac_try;;
12908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12909 (eval "$ac_try") 2>&5
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); }; }; then
12913 ac_cv_search_pthread_rwlock_init=$ac_res
12915 echo "$as_me: failed program was:" >&5
12916 sed 's/^/| /' conftest.$ac_ext >&5
12921 rm -f core conftest.err conftest.$ac_objext \
12923 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12927 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12930 ac_cv_search_pthread_rwlock_init=no
12932 rm conftest.$ac_ext
12933 LIBS=$ac_func_search_save_LIBS
12935 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12936 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12937 ac_res=$ac_cv_search_pthread_rwlock_init
12938 if test "$ac_res" != no; then
12939 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12941 cat >>confdefs.h <<\_ACEOF
12942 #define HAVE_PTHREAD_RWLOCK_INIT 1
12947 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12948 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12949 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12950 echo $ECHO_N "(cached) $ECHO_C" >&6
12952 ac_func_search_save_LIBS=$LIBS
12953 cat >conftest.$ac_ext <<_ACEOF
12956 cat confdefs.h >>conftest.$ac_ext
12957 cat >>conftest.$ac_ext <<_ACEOF
12958 /* end confdefs.h. */
12960 /* Override any GCC internal prototype to avoid an error.
12961 Use char because int might match the return type of a GCC
12962 builtin and then its argument prototype would still apply. */
12966 char pthread_getspecific ();
12970 return pthread_getspecific ();
12975 for ac_lib in '' pthread; do
12976 if test -z "$ac_lib"; then
12977 ac_res="none required"
12980 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12982 rm -f conftest.$ac_objext conftest$ac_exeext
12983 if { (ac_try="$ac_link"
12984 case "(($ac_try" in
12985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12986 *) ac_try_echo=$ac_try;;
12988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12989 (eval "$ac_link") 2>conftest.er1
12991 grep -v '^ *+' conftest.er1 >conftest.err
12993 cat conftest.err >&5
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); } &&
12996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12997 { (case "(($ac_try" in
12998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12999 *) ac_try_echo=$ac_try;;
13001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13002 (eval "$ac_try") 2>&5
13004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 (exit $ac_status); }; } &&
13006 { ac_try='test -s conftest$ac_exeext'
13007 { (case "(($ac_try" in
13008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13009 *) ac_try_echo=$ac_try;;
13011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13012 (eval "$ac_try") 2>&5
13014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015 (exit $ac_status); }; }; then
13016 ac_cv_search_pthread_getspecific=$ac_res
13018 echo "$as_me: failed program was:" >&5
13019 sed 's/^/| /' conftest.$ac_ext >&5
13024 rm -f core conftest.err conftest.$ac_objext \
13026 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13030 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13033 ac_cv_search_pthread_getspecific=no
13035 rm conftest.$ac_ext
13036 LIBS=$ac_func_search_save_LIBS
13038 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13039 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13040 ac_res=$ac_cv_search_pthread_getspecific
13041 if test "$ac_res" != no; then
13042 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13044 cat >>confdefs.h <<\_ACEOF
13045 #define HAVE_PTHREAD_GETSPECIFIC 1
13053 # Check whether --with-udis86 was given.
13054 if test "${with_udis86+set}" = set; then
13055 withval=$with_udis86;
13060 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13063 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13064 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13065 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13066 echo $ECHO_N "(cached) $ECHO_C" >&6
13068 ac_check_lib_save_LIBS=$LIBS
13069 LIBS="-ludis86 $LIBS"
13070 cat >conftest.$ac_ext <<_ACEOF
13073 cat confdefs.h >>conftest.$ac_ext
13074 cat >>conftest.$ac_ext <<_ACEOF
13075 /* end confdefs.h. */
13077 /* Override any GCC internal prototype to avoid an error.
13078 Use char because int might match the return type of a GCC
13079 builtin and then its argument prototype would still apply. */
13092 rm -f conftest.$ac_objext conftest$ac_exeext
13093 if { (ac_try="$ac_link"
13094 case "(($ac_try" in
13095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13096 *) ac_try_echo=$ac_try;;
13098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13099 (eval "$ac_link") 2>conftest.er1
13101 grep -v '^ *+' conftest.er1 >conftest.err
13103 cat conftest.err >&5
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); } &&
13106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13107 { (case "(($ac_try" in
13108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13109 *) ac_try_echo=$ac_try;;
13111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13112 (eval "$ac_try") 2>&5
13114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115 (exit $ac_status); }; } &&
13116 { ac_try='test -s conftest$ac_exeext'
13117 { (case "(($ac_try" in
13118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13119 *) ac_try_echo=$ac_try;;
13121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13122 (eval "$ac_try") 2>&5
13124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125 (exit $ac_status); }; }; then
13126 ac_cv_lib_udis86_ud_init=yes
13128 echo "$as_me: failed program was:" >&5
13129 sed 's/^/| /' conftest.$ac_ext >&5
13131 ac_cv_lib_udis86_ud_init=no
13134 rm -f core conftest.err conftest.$ac_objext \
13135 conftest$ac_exeext conftest.$ac_ext
13136 LIBS=$ac_check_lib_save_LIBS
13138 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13139 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13140 if test $ac_cv_lib_udis86_ud_init = yes; then
13141 cat >>confdefs.h <<_ACEOF
13142 #define HAVE_LIBUDIS86 1
13145 LIBS="-ludis86 $LIBS"
13149 echo "Error! You need to have libudis86 around."
13161 cat >>confdefs.h <<_ACEOF
13162 #define USE_UDIS86 $USE_UDIS86
13167 # Check whether --with-oprofile was given.
13168 if test "${with_oprofile+set}" = set; then
13169 withval=$with_oprofile;
13173 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13174 no) llvm_cv_oppath=
13177 *) llvm_cv_oppath="${withval}/lib/oprofile"
13178 CPPFLAGS="-I${withval}/include";;
13180 case $llvm_cv_os_type in
13182 if test -n "$llvm_cv_oppath" ; then
13183 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13184 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13185 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13186 if test "${ac_cv_search_bfd_init+set}" = set; then
13187 echo $ECHO_N "(cached) $ECHO_C" >&6
13189 ac_func_search_save_LIBS=$LIBS
13190 cat >conftest.$ac_ext <<_ACEOF
13193 cat confdefs.h >>conftest.$ac_ext
13194 cat >>conftest.$ac_ext <<_ACEOF
13195 /* end confdefs.h. */
13197 /* Override any GCC internal prototype to avoid an error.
13198 Use char because int might match the return type of a GCC
13199 builtin and then its argument prototype would still apply. */
13207 return bfd_init ();
13212 for ac_lib in '' bfd; do
13213 if test -z "$ac_lib"; then
13214 ac_res="none required"
13217 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13219 rm -f conftest.$ac_objext conftest$ac_exeext
13220 if { (ac_try="$ac_link"
13221 case "(($ac_try" in
13222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13223 *) ac_try_echo=$ac_try;;
13225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13226 (eval "$ac_link") 2>conftest.er1
13228 grep -v '^ *+' conftest.er1 >conftest.err
13230 cat conftest.err >&5
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); } &&
13233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13234 { (case "(($ac_try" in
13235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13236 *) ac_try_echo=$ac_try;;
13238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13239 (eval "$ac_try") 2>&5
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); }; } &&
13243 { ac_try='test -s conftest$ac_exeext'
13244 { (case "(($ac_try" in
13245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13246 *) ac_try_echo=$ac_try;;
13248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13249 (eval "$ac_try") 2>&5
13251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252 (exit $ac_status); }; }; then
13253 ac_cv_search_bfd_init=$ac_res
13255 echo "$as_me: failed program was:" >&5
13256 sed 's/^/| /' conftest.$ac_ext >&5
13261 rm -f core conftest.err conftest.$ac_objext \
13263 if test "${ac_cv_search_bfd_init+set}" = set; then
13267 if test "${ac_cv_search_bfd_init+set}" = set; then
13270 ac_cv_search_bfd_init=no
13272 rm conftest.$ac_ext
13273 LIBS=$ac_func_search_save_LIBS
13275 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13276 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13277 ac_res=$ac_cv_search_bfd_init
13278 if test "$ac_res" != no; then
13279 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13283 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13284 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13285 if test "${ac_cv_search_op_open_agent+set}" = set; then
13286 echo $ECHO_N "(cached) $ECHO_C" >&6
13288 ac_func_search_save_LIBS=$LIBS
13289 cat >conftest.$ac_ext <<_ACEOF
13292 cat confdefs.h >>conftest.$ac_ext
13293 cat >>conftest.$ac_ext <<_ACEOF
13294 /* end confdefs.h. */
13296 /* Override any GCC internal prototype to avoid an error.
13297 Use char because int might match the return type of a GCC
13298 builtin and then its argument prototype would still apply. */
13302 char op_open_agent ();
13306 return op_open_agent ();
13311 for ac_lib in '' opagent; do
13312 if test -z "$ac_lib"; then
13313 ac_res="none required"
13316 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13318 rm -f conftest.$ac_objext conftest$ac_exeext
13319 if { (ac_try="$ac_link"
13320 case "(($ac_try" in
13321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13322 *) ac_try_echo=$ac_try;;
13324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13325 (eval "$ac_link") 2>conftest.er1
13327 grep -v '^ *+' conftest.er1 >conftest.err
13329 cat conftest.err >&5
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); } &&
13332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13333 { (case "(($ac_try" in
13334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13335 *) ac_try_echo=$ac_try;;
13337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13338 (eval "$ac_try") 2>&5
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); }; } &&
13342 { ac_try='test -s conftest$ac_exeext'
13343 { (case "(($ac_try" in
13344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13345 *) ac_try_echo=$ac_try;;
13347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13348 (eval "$ac_try") 2>&5
13350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351 (exit $ac_status); }; }; then
13352 ac_cv_search_op_open_agent=$ac_res
13354 echo "$as_me: failed program was:" >&5
13355 sed 's/^/| /' conftest.$ac_ext >&5
13360 rm -f core conftest.err conftest.$ac_objext \
13362 if test "${ac_cv_search_op_open_agent+set}" = set; then
13366 if test "${ac_cv_search_op_open_agent+set}" = set; then
13369 ac_cv_search_op_open_agent=no
13371 rm conftest.$ac_ext
13372 LIBS=$ac_func_search_save_LIBS
13374 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13375 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13376 ac_res=$ac_cv_search_op_open_agent
13377 if test "$ac_res" != no; then
13378 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13382 echo "Error! You need to have libopagent around."
13387 if test "${ac_cv_header_opagent_h+set}" = set; then
13388 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13389 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13390 if test "${ac_cv_header_opagent_h+set}" = set; then
13391 echo $ECHO_N "(cached) $ECHO_C" >&6
13393 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13394 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13396 # Is the header compilable?
13397 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13398 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13399 cat >conftest.$ac_ext <<_ACEOF
13402 cat confdefs.h >>conftest.$ac_ext
13403 cat >>conftest.$ac_ext <<_ACEOF
13404 /* end confdefs.h. */
13405 $ac_includes_default
13406 #include <opagent.h>
13408 rm -f conftest.$ac_objext
13409 if { (ac_try="$ac_compile"
13410 case "(($ac_try" in
13411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13412 *) ac_try_echo=$ac_try;;
13414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13415 (eval "$ac_compile") 2>conftest.er1
13417 grep -v '^ *+' conftest.er1 >conftest.err
13419 cat conftest.err >&5
13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 (exit $ac_status); } &&
13422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13423 { (case "(($ac_try" in
13424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13425 *) ac_try_echo=$ac_try;;
13427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13428 (eval "$ac_try") 2>&5
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); }; } &&
13432 { ac_try='test -s conftest.$ac_objext'
13433 { (case "(($ac_try" in
13434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13435 *) ac_try_echo=$ac_try;;
13437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13438 (eval "$ac_try") 2>&5
13440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); }; }; then
13442 ac_header_compiler=yes
13444 echo "$as_me: failed program was:" >&5
13445 sed 's/^/| /' conftest.$ac_ext >&5
13447 ac_header_compiler=no
13450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13451 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13452 echo "${ECHO_T}$ac_header_compiler" >&6; }
13454 # Is the header present?
13455 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13456 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13457 cat >conftest.$ac_ext <<_ACEOF
13460 cat confdefs.h >>conftest.$ac_ext
13461 cat >>conftest.$ac_ext <<_ACEOF
13462 /* end confdefs.h. */
13463 #include <opagent.h>
13465 if { (ac_try="$ac_cpp conftest.$ac_ext"
13466 case "(($ac_try" in
13467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13468 *) ac_try_echo=$ac_try;;
13470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13471 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13473 grep -v '^ *+' conftest.er1 >conftest.err
13475 cat conftest.err >&5
13476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); } >/dev/null; then
13478 if test -s conftest.err; then
13479 ac_cpp_err=$ac_c_preproc_warn_flag
13480 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13487 if test -z "$ac_cpp_err"; then
13488 ac_header_preproc=yes
13490 echo "$as_me: failed program was:" >&5
13491 sed 's/^/| /' conftest.$ac_ext >&5
13493 ac_header_preproc=no
13496 rm -f conftest.err conftest.$ac_ext
13497 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13498 echo "${ECHO_T}$ac_header_preproc" >&6; }
13500 # So? What about this header?
13501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13503 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13504 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13505 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13506 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13507 ac_header_preproc=yes
13510 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13511 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13512 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13513 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13514 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13515 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13516 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13517 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13518 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13519 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13520 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13521 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13523 ## ------------------------------------ ##
13524 ## Report this to http://llvm.org/bugs/ ##
13525 ## ------------------------------------ ##
13527 ) | sed "s/^/$as_me: WARNING: /" >&2
13530 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13531 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13532 if test "${ac_cv_header_opagent_h+set}" = set; then
13533 echo $ECHO_N "(cached) $ECHO_C" >&6
13535 ac_cv_header_opagent_h=$ac_header_preproc
13537 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13538 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13541 if test $ac_cv_header_opagent_h = yes; then
13545 echo "Error! You need to have opagent.h around."
13553 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13554 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13555 { (exit 1); exit 1; }; } ;;
13566 cat >>confdefs.h <<_ACEOF
13567 #define LLVM_USE_OPROFILE $USE_OPROFILE
13572 # Check whether --with-intel-jitevents was given.
13573 if test "${with_intel_jitevents+set}" = set; then
13574 withval=$with_intel_jitevents;
13576 yes) USE_INTEL_JITEVENTS=1
13578 no) USE_INTEL_JITEVENTS=0
13580 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13581 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13582 { (exit 1); exit 1; }; };;
13585 case $llvm_cv_os_type in
13586 Linux|Win32|Cygwin|MingW) ;;
13587 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13588 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13589 { (exit 1); exit 1; }; };;
13592 case "$llvm_cv_target_arch" in
13594 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13595 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13596 { (exit 1); exit 1; }; };;
13601 USE_INTEL_JITEVENTS=0
13607 cat >>confdefs.h <<_ACEOF
13608 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13612 for ac_prog in xml2-config
13614 # Extract the first word of "$ac_prog", so it can be a program name with args.
13615 set dummy $ac_prog; ac_word=$2
13616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13618 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13619 echo $ECHO_N "(cached) $ECHO_C" >&6
13621 if test -n "$XML2CONFIG"; then
13622 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13625 for as_dir in $PATH
13628 test -z "$as_dir" && as_dir=.
13629 for ac_exec_ext in '' $ac_executable_extensions; do
13630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13631 ac_cv_prog_XML2CONFIG="$ac_prog"
13632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13641 XML2CONFIG=$ac_cv_prog_XML2CONFIG
13642 if test -n "$XML2CONFIG"; then
13643 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13644 echo "${ECHO_T}$XML2CONFIG" >&6; }
13646 { echo "$as_me:$LINENO: result: no" >&5
13647 echo "${ECHO_T}no" >&6; }
13651 test -n "$XML2CONFIG" && break
13655 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13656 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13657 if test "x$XML2CONFIG" = "x"; then
13658 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13659 echo "${ECHO_T}xml2-config not found" >&6; }
13661 LIBXML2_INC=`$XML2CONFIG --cflags`
13662 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13663 echo "${ECHO_T}$LIBXML2_INC" >&6; }
13664 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13665 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13666 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13667 echo $ECHO_N "(cached) $ECHO_C" >&6
13669 ac_check_lib_save_LIBS=$LIBS
13670 LIBS="-lxml2 $LIBS"
13671 cat >conftest.$ac_ext <<_ACEOF
13674 cat confdefs.h >>conftest.$ac_ext
13675 cat >>conftest.$ac_ext <<_ACEOF
13676 /* end confdefs.h. */
13678 /* Override any GCC internal prototype to avoid an error.
13679 Use char because int might match the return type of a GCC
13680 builtin and then its argument prototype would still apply. */
13684 char xmlReadFile ();
13688 return xmlReadFile ();
13693 rm -f conftest.$ac_objext conftest$ac_exeext
13694 if { (ac_try="$ac_link"
13695 case "(($ac_try" in
13696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13697 *) ac_try_echo=$ac_try;;
13699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13700 (eval "$ac_link") 2>conftest.er1
13702 grep -v '^ *+' conftest.er1 >conftest.err
13704 cat conftest.err >&5
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); } &&
13707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13708 { (case "(($ac_try" in
13709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13710 *) ac_try_echo=$ac_try;;
13712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13713 (eval "$ac_try") 2>&5
13715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716 (exit $ac_status); }; } &&
13717 { ac_try='test -s conftest$ac_exeext'
13718 { (case "(($ac_try" in
13719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13720 *) ac_try_echo=$ac_try;;
13722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13723 (eval "$ac_try") 2>&5
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); }; }; then
13727 ac_cv_lib_xml2_xmlReadFile=yes
13729 echo "$as_me: failed program was:" >&5
13730 sed 's/^/| /' conftest.$ac_ext >&5
13732 ac_cv_lib_xml2_xmlReadFile=no
13735 rm -f core conftest.err conftest.$ac_objext \
13736 conftest$ac_exeext conftest.$ac_ext
13737 LIBS=$ac_check_lib_save_LIBS
13739 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
13740 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
13741 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
13743 cat >>confdefs.h <<\_ACEOF
13744 #define CLANG_HAVE_LIBXML 1
13747 LIBXML2_LIBS="-lxml2"
13760 ac_header_dirent=no
13761 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13762 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13763 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13764 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13766 echo $ECHO_N "(cached) $ECHO_C" >&6
13768 cat >conftest.$ac_ext <<_ACEOF
13771 cat confdefs.h >>conftest.$ac_ext
13772 cat >>conftest.$ac_ext <<_ACEOF
13773 /* end confdefs.h. */
13774 #include <sys/types.h>
13786 rm -f conftest.$ac_objext
13787 if { (ac_try="$ac_compile"
13788 case "(($ac_try" in
13789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13790 *) ac_try_echo=$ac_try;;
13792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13793 (eval "$ac_compile") 2>conftest.er1
13795 grep -v '^ *+' conftest.er1 >conftest.err
13797 cat conftest.err >&5
13798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799 (exit $ac_status); } &&
13800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13801 { (case "(($ac_try" in
13802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13803 *) ac_try_echo=$ac_try;;
13805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13806 (eval "$ac_try") 2>&5
13808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809 (exit $ac_status); }; } &&
13810 { ac_try='test -s conftest.$ac_objext'
13811 { (case "(($ac_try" in
13812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13813 *) ac_try_echo=$ac_try;;
13815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13816 (eval "$ac_try") 2>&5
13818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819 (exit $ac_status); }; }; then
13820 eval "$as_ac_Header=yes"
13822 echo "$as_me: failed program was:" >&5
13823 sed 's/^/| /' conftest.$ac_ext >&5
13825 eval "$as_ac_Header=no"
13828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13830 ac_res=`eval echo '${'$as_ac_Header'}'`
13831 { echo "$as_me:$LINENO: result: $ac_res" >&5
13832 echo "${ECHO_T}$ac_res" >&6; }
13833 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13834 cat >>confdefs.h <<_ACEOF
13835 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13838 ac_header_dirent=$ac_hdr; break
13842 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13843 if test $ac_header_dirent = dirent.h; then
13844 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13845 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13846 if test "${ac_cv_search_opendir+set}" = set; then
13847 echo $ECHO_N "(cached) $ECHO_C" >&6
13849 ac_func_search_save_LIBS=$LIBS
13850 cat >conftest.$ac_ext <<_ACEOF
13853 cat confdefs.h >>conftest.$ac_ext
13854 cat >>conftest.$ac_ext <<_ACEOF
13855 /* end confdefs.h. */
13857 /* Override any GCC internal prototype to avoid an error.
13858 Use char because int might match the return type of a GCC
13859 builtin and then its argument prototype would still apply. */
13872 for ac_lib in '' dir; do
13873 if test -z "$ac_lib"; then
13874 ac_res="none required"
13877 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13879 rm -f conftest.$ac_objext conftest$ac_exeext
13880 if { (ac_try="$ac_link"
13881 case "(($ac_try" in
13882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13883 *) ac_try_echo=$ac_try;;
13885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13886 (eval "$ac_link") 2>conftest.er1
13888 grep -v '^ *+' conftest.er1 >conftest.err
13890 cat conftest.err >&5
13891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); } &&
13893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13894 { (case "(($ac_try" in
13895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13896 *) ac_try_echo=$ac_try;;
13898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13899 (eval "$ac_try") 2>&5
13901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902 (exit $ac_status); }; } &&
13903 { ac_try='test -s conftest$ac_exeext'
13904 { (case "(($ac_try" in
13905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13906 *) ac_try_echo=$ac_try;;
13908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13909 (eval "$ac_try") 2>&5
13911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912 (exit $ac_status); }; }; then
13913 ac_cv_search_opendir=$ac_res
13915 echo "$as_me: failed program was:" >&5
13916 sed 's/^/| /' conftest.$ac_ext >&5
13921 rm -f core conftest.err conftest.$ac_objext \
13923 if test "${ac_cv_search_opendir+set}" = set; then
13927 if test "${ac_cv_search_opendir+set}" = set; then
13930 ac_cv_search_opendir=no
13932 rm conftest.$ac_ext
13933 LIBS=$ac_func_search_save_LIBS
13935 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13936 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13937 ac_res=$ac_cv_search_opendir
13938 if test "$ac_res" != no; then
13939 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13944 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13945 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13946 if test "${ac_cv_search_opendir+set}" = set; then
13947 echo $ECHO_N "(cached) $ECHO_C" >&6
13949 ac_func_search_save_LIBS=$LIBS
13950 cat >conftest.$ac_ext <<_ACEOF
13953 cat confdefs.h >>conftest.$ac_ext
13954 cat >>conftest.$ac_ext <<_ACEOF
13955 /* end confdefs.h. */
13957 /* Override any GCC internal prototype to avoid an error.
13958 Use char because int might match the return type of a GCC
13959 builtin and then its argument prototype would still apply. */
13972 for ac_lib in '' x; do
13973 if test -z "$ac_lib"; then
13974 ac_res="none required"
13977 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13979 rm -f conftest.$ac_objext conftest$ac_exeext
13980 if { (ac_try="$ac_link"
13981 case "(($ac_try" in
13982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13983 *) ac_try_echo=$ac_try;;
13985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13986 (eval "$ac_link") 2>conftest.er1
13988 grep -v '^ *+' conftest.er1 >conftest.err
13990 cat conftest.err >&5
13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); } &&
13993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13994 { (case "(($ac_try" in
13995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13996 *) ac_try_echo=$ac_try;;
13998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13999 (eval "$ac_try") 2>&5
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); }; } &&
14003 { ac_try='test -s conftest$ac_exeext'
14004 { (case "(($ac_try" in
14005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14006 *) ac_try_echo=$ac_try;;
14008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14009 (eval "$ac_try") 2>&5
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); }; }; then
14013 ac_cv_search_opendir=$ac_res
14015 echo "$as_me: failed program was:" >&5
14016 sed 's/^/| /' conftest.$ac_ext >&5
14021 rm -f core conftest.err conftest.$ac_objext \
14023 if test "${ac_cv_search_opendir+set}" = set; then
14027 if test "${ac_cv_search_opendir+set}" = set; then
14030 ac_cv_search_opendir=no
14032 rm conftest.$ac_ext
14033 LIBS=$ac_func_search_save_LIBS
14035 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14036 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14037 ac_res=$ac_cv_search_opendir
14038 if test "$ac_res" != no; then
14039 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14045 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14046 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14047 if test "${ac_cv_header_mmap_anon+set}" = set; then
14048 echo $ECHO_N "(cached) $ECHO_C" >&6
14051 ac_cpp='$CPP $CPPFLAGS'
14052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14056 cat >conftest.$ac_ext <<_ACEOF
14059 cat confdefs.h >>conftest.$ac_ext
14060 cat >>conftest.$ac_ext <<_ACEOF
14061 /* end confdefs.h. */
14062 #include <sys/mman.h>
14063 #include <unistd.h>
14068 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14073 rm -f conftest.$ac_objext
14074 if { (ac_try="$ac_compile"
14075 case "(($ac_try" in
14076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14077 *) ac_try_echo=$ac_try;;
14079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14080 (eval "$ac_compile") 2>conftest.er1
14082 grep -v '^ *+' conftest.er1 >conftest.err
14084 cat conftest.err >&5
14085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086 (exit $ac_status); } &&
14087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14088 { (case "(($ac_try" in
14089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14090 *) ac_try_echo=$ac_try;;
14092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14093 (eval "$ac_try") 2>&5
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); }; } &&
14097 { ac_try='test -s conftest.$ac_objext'
14098 { (case "(($ac_try" in
14099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14100 *) ac_try_echo=$ac_try;;
14102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14103 (eval "$ac_try") 2>&5
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); }; }; then
14107 ac_cv_header_mmap_anon=yes
14109 echo "$as_me: failed program was:" >&5
14110 sed 's/^/| /' conftest.$ac_ext >&5
14112 ac_cv_header_mmap_anon=no
14115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14117 ac_cpp='$CPP $CPPFLAGS'
14118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14124 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14125 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14126 if test "$ac_cv_header_mmap_anon" = yes; then
14128 cat >>confdefs.h <<\_ACEOF
14129 #define HAVE_MMAP_ANONYMOUS 1
14134 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14135 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14136 if test "${ac_cv_header_stat_broken+set}" = set; then
14137 echo $ECHO_N "(cached) $ECHO_C" >&6
14139 cat >conftest.$ac_ext <<_ACEOF
14142 cat confdefs.h >>conftest.$ac_ext
14143 cat >>conftest.$ac_ext <<_ACEOF
14144 /* end confdefs.h. */
14145 #include <sys/types.h>
14146 #include <sys/stat.h>
14148 #if defined S_ISBLK && defined S_IFDIR
14149 # if S_ISBLK (S_IFDIR)
14154 #if defined S_ISBLK && defined S_IFCHR
14155 # if S_ISBLK (S_IFCHR)
14160 #if defined S_ISLNK && defined S_IFREG
14161 # if S_ISLNK (S_IFREG)
14166 #if defined S_ISSOCK && defined S_IFREG
14167 # if S_ISSOCK (S_IFREG)
14173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14174 $EGREP "You lose" >/dev/null 2>&1; then
14175 ac_cv_header_stat_broken=yes
14177 ac_cv_header_stat_broken=no
14182 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14183 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14184 if test $ac_cv_header_stat_broken = yes; then
14186 cat >>confdefs.h <<\_ACEOF
14187 #define STAT_MACROS_BROKEN 1
14192 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14193 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14194 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14195 echo $ECHO_N "(cached) $ECHO_C" >&6
14197 cat >conftest.$ac_ext <<_ACEOF
14200 cat confdefs.h >>conftest.$ac_ext
14201 cat >>conftest.$ac_ext <<_ACEOF
14202 /* end confdefs.h. */
14203 #include <sys/types.h>
14204 #include <sys/wait.h>
14205 #ifndef WEXITSTATUS
14206 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14209 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14217 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14222 rm -f conftest.$ac_objext
14223 if { (ac_try="$ac_compile"
14224 case "(($ac_try" in
14225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14226 *) ac_try_echo=$ac_try;;
14228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14229 (eval "$ac_compile") 2>conftest.er1
14231 grep -v '^ *+' conftest.er1 >conftest.err
14233 cat conftest.err >&5
14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235 (exit $ac_status); } &&
14236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14237 { (case "(($ac_try" in
14238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14239 *) ac_try_echo=$ac_try;;
14241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14242 (eval "$ac_try") 2>&5
14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); }; } &&
14246 { ac_try='test -s conftest.$ac_objext'
14247 { (case "(($ac_try" in
14248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14249 *) ac_try_echo=$ac_try;;
14251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14252 (eval "$ac_try") 2>&5
14254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255 (exit $ac_status); }; }; then
14256 ac_cv_header_sys_wait_h=yes
14258 echo "$as_me: failed program was:" >&5
14259 sed 's/^/| /' conftest.$ac_ext >&5
14261 ac_cv_header_sys_wait_h=no
14264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14266 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14267 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14268 if test $ac_cv_header_sys_wait_h = yes; then
14270 cat >>confdefs.h <<\_ACEOF
14271 #define HAVE_SYS_WAIT_H 1
14276 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14277 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14278 if test "${ac_cv_header_time+set}" = set; then
14279 echo $ECHO_N "(cached) $ECHO_C" >&6
14281 cat >conftest.$ac_ext <<_ACEOF
14284 cat confdefs.h >>conftest.$ac_ext
14285 cat >>conftest.$ac_ext <<_ACEOF
14286 /* end confdefs.h. */
14287 #include <sys/types.h>
14288 #include <sys/time.h>
14294 if ((struct tm *) 0)
14300 rm -f conftest.$ac_objext
14301 if { (ac_try="$ac_compile"
14302 case "(($ac_try" in
14303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14304 *) ac_try_echo=$ac_try;;
14306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14307 (eval "$ac_compile") 2>conftest.er1
14309 grep -v '^ *+' conftest.er1 >conftest.err
14311 cat conftest.err >&5
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); } &&
14314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14315 { (case "(($ac_try" in
14316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14317 *) ac_try_echo=$ac_try;;
14319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14320 (eval "$ac_try") 2>&5
14322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323 (exit $ac_status); }; } &&
14324 { ac_try='test -s conftest.$ac_objext'
14325 { (case "(($ac_try" in
14326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14327 *) ac_try_echo=$ac_try;;
14329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14330 (eval "$ac_try") 2>&5
14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 (exit $ac_status); }; }; then
14334 ac_cv_header_time=yes
14336 echo "$as_me: failed program was:" >&5
14337 sed 's/^/| /' conftest.$ac_ext >&5
14339 ac_cv_header_time=no
14342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14344 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14345 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14346 if test $ac_cv_header_time = yes; then
14348 cat >>confdefs.h <<\_ACEOF
14349 #define TIME_WITH_SYS_TIME 1
14361 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14363 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14365 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14368 echo $ECHO_N "(cached) $ECHO_C" >&6
14370 ac_res=`eval echo '${'$as_ac_Header'}'`
14371 { echo "$as_me:$LINENO: result: $ac_res" >&5
14372 echo "${ECHO_T}$ac_res" >&6; }
14374 # Is the header compilable?
14375 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14376 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14377 cat >conftest.$ac_ext <<_ACEOF
14380 cat confdefs.h >>conftest.$ac_ext
14381 cat >>conftest.$ac_ext <<_ACEOF
14382 /* end confdefs.h. */
14383 $ac_includes_default
14384 #include <$ac_header>
14386 rm -f conftest.$ac_objext
14387 if { (ac_try="$ac_compile"
14388 case "(($ac_try" in
14389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14390 *) ac_try_echo=$ac_try;;
14392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14393 (eval "$ac_compile") 2>conftest.er1
14395 grep -v '^ *+' conftest.er1 >conftest.err
14397 cat conftest.err >&5
14398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399 (exit $ac_status); } &&
14400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14401 { (case "(($ac_try" in
14402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14403 *) ac_try_echo=$ac_try;;
14405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14406 (eval "$ac_try") 2>&5
14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 (exit $ac_status); }; } &&
14410 { ac_try='test -s conftest.$ac_objext'
14411 { (case "(($ac_try" in
14412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14413 *) ac_try_echo=$ac_try;;
14415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14416 (eval "$ac_try") 2>&5
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); }; }; then
14420 ac_header_compiler=yes
14422 echo "$as_me: failed program was:" >&5
14423 sed 's/^/| /' conftest.$ac_ext >&5
14425 ac_header_compiler=no
14428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14429 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14430 echo "${ECHO_T}$ac_header_compiler" >&6; }
14432 # Is the header present?
14433 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14434 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14435 cat >conftest.$ac_ext <<_ACEOF
14438 cat confdefs.h >>conftest.$ac_ext
14439 cat >>conftest.$ac_ext <<_ACEOF
14440 /* end confdefs.h. */
14441 #include <$ac_header>
14443 if { (ac_try="$ac_cpp conftest.$ac_ext"
14444 case "(($ac_try" in
14445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14446 *) ac_try_echo=$ac_try;;
14448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14449 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14451 grep -v '^ *+' conftest.er1 >conftest.err
14453 cat conftest.err >&5
14454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); } >/dev/null; then
14456 if test -s conftest.err; then
14457 ac_cpp_err=$ac_c_preproc_warn_flag
14458 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14465 if test -z "$ac_cpp_err"; then
14466 ac_header_preproc=yes
14468 echo "$as_me: failed program was:" >&5
14469 sed 's/^/| /' conftest.$ac_ext >&5
14471 ac_header_preproc=no
14474 rm -f conftest.err conftest.$ac_ext
14475 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14476 echo "${ECHO_T}$ac_header_preproc" >&6; }
14478 # So? What about this header?
14479 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14481 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14482 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14484 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14485 ac_header_preproc=yes
14488 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14489 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14490 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14491 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14492 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14493 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14494 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14495 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14497 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14498 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14499 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14501 ## ------------------------------------ ##
14502 ## Report this to http://llvm.org/bugs/ ##
14503 ## ------------------------------------ ##
14505 ) | sed "s/^/$as_me: WARNING: /" >&2
14508 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14511 echo $ECHO_N "(cached) $ECHO_C" >&6
14513 eval "$as_ac_Header=\$ac_header_preproc"
14515 ac_res=`eval echo '${'$as_ac_Header'}'`
14516 { echo "$as_me:$LINENO: result: $ac_res" >&5
14517 echo "${ECHO_T}$ac_res" >&6; }
14520 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14521 cat >>confdefs.h <<_ACEOF
14522 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14535 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14537 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14539 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14542 echo $ECHO_N "(cached) $ECHO_C" >&6
14544 ac_res=`eval echo '${'$as_ac_Header'}'`
14545 { echo "$as_me:$LINENO: result: $ac_res" >&5
14546 echo "${ECHO_T}$ac_res" >&6; }
14548 # Is the header compilable?
14549 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14550 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14551 cat >conftest.$ac_ext <<_ACEOF
14554 cat confdefs.h >>conftest.$ac_ext
14555 cat >>conftest.$ac_ext <<_ACEOF
14556 /* end confdefs.h. */
14557 $ac_includes_default
14558 #include <$ac_header>
14560 rm -f conftest.$ac_objext
14561 if { (ac_try="$ac_compile"
14562 case "(($ac_try" in
14563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14564 *) ac_try_echo=$ac_try;;
14566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14567 (eval "$ac_compile") 2>conftest.er1
14569 grep -v '^ *+' conftest.er1 >conftest.err
14571 cat conftest.err >&5
14572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573 (exit $ac_status); } &&
14574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14575 { (case "(($ac_try" in
14576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14577 *) ac_try_echo=$ac_try;;
14579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14580 (eval "$ac_try") 2>&5
14582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583 (exit $ac_status); }; } &&
14584 { ac_try='test -s conftest.$ac_objext'
14585 { (case "(($ac_try" in
14586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14587 *) ac_try_echo=$ac_try;;
14589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14590 (eval "$ac_try") 2>&5
14592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593 (exit $ac_status); }; }; then
14594 ac_header_compiler=yes
14596 echo "$as_me: failed program was:" >&5
14597 sed 's/^/| /' conftest.$ac_ext >&5
14599 ac_header_compiler=no
14602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14603 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14604 echo "${ECHO_T}$ac_header_compiler" >&6; }
14606 # Is the header present?
14607 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14608 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14609 cat >conftest.$ac_ext <<_ACEOF
14612 cat confdefs.h >>conftest.$ac_ext
14613 cat >>conftest.$ac_ext <<_ACEOF
14614 /* end confdefs.h. */
14615 #include <$ac_header>
14617 if { (ac_try="$ac_cpp conftest.$ac_ext"
14618 case "(($ac_try" in
14619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14620 *) ac_try_echo=$ac_try;;
14622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14625 grep -v '^ *+' conftest.er1 >conftest.err
14627 cat conftest.err >&5
14628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629 (exit $ac_status); } >/dev/null; then
14630 if test -s conftest.err; then
14631 ac_cpp_err=$ac_c_preproc_warn_flag
14632 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14639 if test -z "$ac_cpp_err"; then
14640 ac_header_preproc=yes
14642 echo "$as_me: failed program was:" >&5
14643 sed 's/^/| /' conftest.$ac_ext >&5
14645 ac_header_preproc=no
14648 rm -f conftest.err conftest.$ac_ext
14649 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14650 echo "${ECHO_T}$ac_header_preproc" >&6; }
14652 # So? What about this header?
14653 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14655 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14656 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14658 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14659 ac_header_preproc=yes
14662 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14663 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14664 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14665 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14666 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14667 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14668 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14669 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14671 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14672 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14673 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14675 ## ------------------------------------ ##
14676 ## Report this to http://llvm.org/bugs/ ##
14677 ## ------------------------------------ ##
14679 ) | sed "s/^/$as_me: WARNING: /" >&2
14682 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14685 echo $ECHO_N "(cached) $ECHO_C" >&6
14687 eval "$as_ac_Header=\$ac_header_preproc"
14689 ac_res=`eval echo '${'$as_ac_Header'}'`
14690 { echo "$as_me:$LINENO: result: $ac_res" >&5
14691 echo "${ECHO_T}$ac_res" >&6; }
14694 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14695 cat >>confdefs.h <<_ACEOF
14696 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14705 for ac_header in utime.h windows.h
14707 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14709 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14712 echo $ECHO_N "(cached) $ECHO_C" >&6
14714 ac_res=`eval echo '${'$as_ac_Header'}'`
14715 { echo "$as_me:$LINENO: result: $ac_res" >&5
14716 echo "${ECHO_T}$ac_res" >&6; }
14718 # Is the header compilable?
14719 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14720 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14721 cat >conftest.$ac_ext <<_ACEOF
14724 cat confdefs.h >>conftest.$ac_ext
14725 cat >>conftest.$ac_ext <<_ACEOF
14726 /* end confdefs.h. */
14727 $ac_includes_default
14728 #include <$ac_header>
14730 rm -f conftest.$ac_objext
14731 if { (ac_try="$ac_compile"
14732 case "(($ac_try" in
14733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14734 *) ac_try_echo=$ac_try;;
14736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14737 (eval "$ac_compile") 2>conftest.er1
14739 grep -v '^ *+' conftest.er1 >conftest.err
14741 cat conftest.err >&5
14742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); } &&
14744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14745 { (case "(($ac_try" in
14746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14747 *) ac_try_echo=$ac_try;;
14749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14750 (eval "$ac_try") 2>&5
14752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753 (exit $ac_status); }; } &&
14754 { ac_try='test -s conftest.$ac_objext'
14755 { (case "(($ac_try" in
14756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14757 *) ac_try_echo=$ac_try;;
14759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14760 (eval "$ac_try") 2>&5
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); }; }; then
14764 ac_header_compiler=yes
14766 echo "$as_me: failed program was:" >&5
14767 sed 's/^/| /' conftest.$ac_ext >&5
14769 ac_header_compiler=no
14772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14773 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14774 echo "${ECHO_T}$ac_header_compiler" >&6; }
14776 # Is the header present?
14777 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14778 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14779 cat >conftest.$ac_ext <<_ACEOF
14782 cat confdefs.h >>conftest.$ac_ext
14783 cat >>conftest.$ac_ext <<_ACEOF
14784 /* end confdefs.h. */
14785 #include <$ac_header>
14787 if { (ac_try="$ac_cpp conftest.$ac_ext"
14788 case "(($ac_try" in
14789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14790 *) ac_try_echo=$ac_try;;
14792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14795 grep -v '^ *+' conftest.er1 >conftest.err
14797 cat conftest.err >&5
14798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799 (exit $ac_status); } >/dev/null; then
14800 if test -s conftest.err; then
14801 ac_cpp_err=$ac_c_preproc_warn_flag
14802 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14809 if test -z "$ac_cpp_err"; then
14810 ac_header_preproc=yes
14812 echo "$as_me: failed program was:" >&5
14813 sed 's/^/| /' conftest.$ac_ext >&5
14815 ac_header_preproc=no
14818 rm -f conftest.err conftest.$ac_ext
14819 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14820 echo "${ECHO_T}$ac_header_preproc" >&6; }
14822 # So? What about this header?
14823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14825 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14826 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14828 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14829 ac_header_preproc=yes
14832 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14833 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14834 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14835 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14836 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14837 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14838 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14839 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14841 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14842 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14843 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14845 ## ------------------------------------ ##
14846 ## Report this to http://llvm.org/bugs/ ##
14847 ## ------------------------------------ ##
14849 ) | sed "s/^/$as_me: WARNING: /" >&2
14852 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14855 echo $ECHO_N "(cached) $ECHO_C" >&6
14857 eval "$as_ac_Header=\$ac_header_preproc"
14859 ac_res=`eval echo '${'$as_ac_Header'}'`
14860 { echo "$as_me:$LINENO: result: $ac_res" >&5
14861 echo "${ECHO_T}$ac_res" >&6; }
14864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14865 cat >>confdefs.h <<_ACEOF
14866 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14878 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14880 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14882 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14885 echo $ECHO_N "(cached) $ECHO_C" >&6
14887 ac_res=`eval echo '${'$as_ac_Header'}'`
14888 { echo "$as_me:$LINENO: result: $ac_res" >&5
14889 echo "${ECHO_T}$ac_res" >&6; }
14891 # Is the header compilable?
14892 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14893 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14894 cat >conftest.$ac_ext <<_ACEOF
14897 cat confdefs.h >>conftest.$ac_ext
14898 cat >>conftest.$ac_ext <<_ACEOF
14899 /* end confdefs.h. */
14900 $ac_includes_default
14901 #include <$ac_header>
14903 rm -f conftest.$ac_objext
14904 if { (ac_try="$ac_compile"
14905 case "(($ac_try" in
14906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14907 *) ac_try_echo=$ac_try;;
14909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14910 (eval "$ac_compile") 2>conftest.er1
14912 grep -v '^ *+' conftest.er1 >conftest.err
14914 cat conftest.err >&5
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); } &&
14917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14918 { (case "(($ac_try" in
14919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14920 *) ac_try_echo=$ac_try;;
14922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14923 (eval "$ac_try") 2>&5
14925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926 (exit $ac_status); }; } &&
14927 { ac_try='test -s conftest.$ac_objext'
14928 { (case "(($ac_try" in
14929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14930 *) ac_try_echo=$ac_try;;
14932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14933 (eval "$ac_try") 2>&5
14935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936 (exit $ac_status); }; }; then
14937 ac_header_compiler=yes
14939 echo "$as_me: failed program was:" >&5
14940 sed 's/^/| /' conftest.$ac_ext >&5
14942 ac_header_compiler=no
14945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14946 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14947 echo "${ECHO_T}$ac_header_compiler" >&6; }
14949 # Is the header present?
14950 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14951 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14952 cat >conftest.$ac_ext <<_ACEOF
14955 cat confdefs.h >>conftest.$ac_ext
14956 cat >>conftest.$ac_ext <<_ACEOF
14957 /* end confdefs.h. */
14958 #include <$ac_header>
14960 if { (ac_try="$ac_cpp conftest.$ac_ext"
14961 case "(($ac_try" in
14962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14963 *) ac_try_echo=$ac_try;;
14965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14966 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14968 grep -v '^ *+' conftest.er1 >conftest.err
14970 cat conftest.err >&5
14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 (exit $ac_status); } >/dev/null; then
14973 if test -s conftest.err; then
14974 ac_cpp_err=$ac_c_preproc_warn_flag
14975 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14982 if test -z "$ac_cpp_err"; then
14983 ac_header_preproc=yes
14985 echo "$as_me: failed program was:" >&5
14986 sed 's/^/| /' conftest.$ac_ext >&5
14988 ac_header_preproc=no
14991 rm -f conftest.err conftest.$ac_ext
14992 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14993 echo "${ECHO_T}$ac_header_preproc" >&6; }
14995 # So? What about this header?
14996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14998 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14999 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15001 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15002 ac_header_preproc=yes
15005 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15006 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15007 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15008 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15009 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15010 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15011 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15012 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15014 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15015 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15016 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15018 ## ------------------------------------ ##
15019 ## Report this to http://llvm.org/bugs/ ##
15020 ## ------------------------------------ ##
15022 ) | sed "s/^/$as_me: WARNING: /" >&2
15025 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15028 echo $ECHO_N "(cached) $ECHO_C" >&6
15030 eval "$as_ac_Header=\$ac_header_preproc"
15032 ac_res=`eval echo '${'$as_ac_Header'}'`
15033 { echo "$as_me:$LINENO: result: $ac_res" >&5
15034 echo "${ECHO_T}$ac_res" >&6; }
15037 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15038 cat >>confdefs.h <<_ACEOF
15039 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15050 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15052 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15054 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15057 echo $ECHO_N "(cached) $ECHO_C" >&6
15059 ac_res=`eval echo '${'$as_ac_Header'}'`
15060 { echo "$as_me:$LINENO: result: $ac_res" >&5
15061 echo "${ECHO_T}$ac_res" >&6; }
15063 # Is the header compilable?
15064 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15065 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15066 cat >conftest.$ac_ext <<_ACEOF
15069 cat confdefs.h >>conftest.$ac_ext
15070 cat >>conftest.$ac_ext <<_ACEOF
15071 /* end confdefs.h. */
15072 $ac_includes_default
15073 #include <$ac_header>
15075 rm -f conftest.$ac_objext
15076 if { (ac_try="$ac_compile"
15077 case "(($ac_try" in
15078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15079 *) ac_try_echo=$ac_try;;
15081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15082 (eval "$ac_compile") 2>conftest.er1
15084 grep -v '^ *+' conftest.er1 >conftest.err
15086 cat conftest.err >&5
15087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088 (exit $ac_status); } &&
15089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15090 { (case "(($ac_try" in
15091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15092 *) ac_try_echo=$ac_try;;
15094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15095 (eval "$ac_try") 2>&5
15097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098 (exit $ac_status); }; } &&
15099 { ac_try='test -s conftest.$ac_objext'
15100 { (case "(($ac_try" in
15101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15102 *) ac_try_echo=$ac_try;;
15104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15105 (eval "$ac_try") 2>&5
15107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108 (exit $ac_status); }; }; then
15109 ac_header_compiler=yes
15111 echo "$as_me: failed program was:" >&5
15112 sed 's/^/| /' conftest.$ac_ext >&5
15114 ac_header_compiler=no
15117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15118 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15119 echo "${ECHO_T}$ac_header_compiler" >&6; }
15121 # Is the header present?
15122 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15123 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15124 cat >conftest.$ac_ext <<_ACEOF
15127 cat confdefs.h >>conftest.$ac_ext
15128 cat >>conftest.$ac_ext <<_ACEOF
15129 /* end confdefs.h. */
15130 #include <$ac_header>
15132 if { (ac_try="$ac_cpp conftest.$ac_ext"
15133 case "(($ac_try" in
15134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15135 *) ac_try_echo=$ac_try;;
15137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15140 grep -v '^ *+' conftest.er1 >conftest.err
15142 cat conftest.err >&5
15143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144 (exit $ac_status); } >/dev/null; then
15145 if test -s conftest.err; then
15146 ac_cpp_err=$ac_c_preproc_warn_flag
15147 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15154 if test -z "$ac_cpp_err"; then
15155 ac_header_preproc=yes
15157 echo "$as_me: failed program was:" >&5
15158 sed 's/^/| /' conftest.$ac_ext >&5
15160 ac_header_preproc=no
15163 rm -f conftest.err conftest.$ac_ext
15164 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15165 echo "${ECHO_T}$ac_header_preproc" >&6; }
15167 # So? What about this header?
15168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15170 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15171 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15173 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15174 ac_header_preproc=yes
15177 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15178 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15179 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15180 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15181 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15182 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15183 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15184 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15187 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15188 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15190 ## ------------------------------------ ##
15191 ## Report this to http://llvm.org/bugs/ ##
15192 ## ------------------------------------ ##
15194 ) | sed "s/^/$as_me: WARNING: /" >&2
15197 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15200 echo $ECHO_N "(cached) $ECHO_C" >&6
15202 eval "$as_ac_Header=\$ac_header_preproc"
15204 ac_res=`eval echo '${'$as_ac_Header'}'`
15205 { echo "$as_me:$LINENO: result: $ac_res" >&5
15206 echo "${ECHO_T}$ac_res" >&6; }
15209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15210 cat >>confdefs.h <<_ACEOF
15211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15219 for ac_header in valgrind/valgrind.h
15221 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15223 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15226 echo $ECHO_N "(cached) $ECHO_C" >&6
15228 ac_res=`eval echo '${'$as_ac_Header'}'`
15229 { echo "$as_me:$LINENO: result: $ac_res" >&5
15230 echo "${ECHO_T}$ac_res" >&6; }
15232 # Is the header compilable?
15233 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15234 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15235 cat >conftest.$ac_ext <<_ACEOF
15238 cat confdefs.h >>conftest.$ac_ext
15239 cat >>conftest.$ac_ext <<_ACEOF
15240 /* end confdefs.h. */
15241 $ac_includes_default
15242 #include <$ac_header>
15244 rm -f conftest.$ac_objext
15245 if { (ac_try="$ac_compile"
15246 case "(($ac_try" in
15247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15248 *) ac_try_echo=$ac_try;;
15250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15251 (eval "$ac_compile") 2>conftest.er1
15253 grep -v '^ *+' conftest.er1 >conftest.err
15255 cat conftest.err >&5
15256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257 (exit $ac_status); } &&
15258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15259 { (case "(($ac_try" in
15260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15261 *) ac_try_echo=$ac_try;;
15263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15264 (eval "$ac_try") 2>&5
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); }; } &&
15268 { ac_try='test -s conftest.$ac_objext'
15269 { (case "(($ac_try" in
15270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15271 *) ac_try_echo=$ac_try;;
15273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15274 (eval "$ac_try") 2>&5
15276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277 (exit $ac_status); }; }; then
15278 ac_header_compiler=yes
15280 echo "$as_me: failed program was:" >&5
15281 sed 's/^/| /' conftest.$ac_ext >&5
15283 ac_header_compiler=no
15286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15287 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15288 echo "${ECHO_T}$ac_header_compiler" >&6; }
15290 # Is the header present?
15291 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15292 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15293 cat >conftest.$ac_ext <<_ACEOF
15296 cat confdefs.h >>conftest.$ac_ext
15297 cat >>conftest.$ac_ext <<_ACEOF
15298 /* end confdefs.h. */
15299 #include <$ac_header>
15301 if { (ac_try="$ac_cpp conftest.$ac_ext"
15302 case "(($ac_try" in
15303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15304 *) ac_try_echo=$ac_try;;
15306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15307 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15309 grep -v '^ *+' conftest.er1 >conftest.err
15311 cat conftest.err >&5
15312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); } >/dev/null; then
15314 if test -s conftest.err; then
15315 ac_cpp_err=$ac_c_preproc_warn_flag
15316 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15323 if test -z "$ac_cpp_err"; then
15324 ac_header_preproc=yes
15326 echo "$as_me: failed program was:" >&5
15327 sed 's/^/| /' conftest.$ac_ext >&5
15329 ac_header_preproc=no
15332 rm -f conftest.err conftest.$ac_ext
15333 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15334 echo "${ECHO_T}$ac_header_preproc" >&6; }
15336 # So? What about this header?
15337 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15339 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15340 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15342 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15343 ac_header_preproc=yes
15346 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15347 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15348 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15349 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15350 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15351 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15352 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15353 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15355 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15356 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15357 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15359 ## ------------------------------------ ##
15360 ## Report this to http://llvm.org/bugs/ ##
15361 ## ------------------------------------ ##
15363 ) | sed "s/^/$as_me: WARNING: /" >&2
15366 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15369 echo $ECHO_N "(cached) $ECHO_C" >&6
15371 eval "$as_ac_Header=\$ac_header_preproc"
15373 ac_res=`eval echo '${'$as_ac_Header'}'`
15374 { echo "$as_me:$LINENO: result: $ac_res" >&5
15375 echo "${ECHO_T}$ac_res" >&6; }
15378 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15379 cat >>confdefs.h <<_ACEOF
15380 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15388 for ac_header in fenv.h
15390 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15391 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15392 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15395 echo $ECHO_N "(cached) $ECHO_C" >&6
15397 ac_res=`eval echo '${'$as_ac_Header'}'`
15398 { echo "$as_me:$LINENO: result: $ac_res" >&5
15399 echo "${ECHO_T}$ac_res" >&6; }
15401 # Is the header compilable?
15402 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15403 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15404 cat >conftest.$ac_ext <<_ACEOF
15407 cat confdefs.h >>conftest.$ac_ext
15408 cat >>conftest.$ac_ext <<_ACEOF
15409 /* end confdefs.h. */
15410 $ac_includes_default
15411 #include <$ac_header>
15413 rm -f conftest.$ac_objext
15414 if { (ac_try="$ac_compile"
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_compile") 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); } &&
15427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15428 { (case "(($ac_try" in
15429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15430 *) ac_try_echo=$ac_try;;
15432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15433 (eval "$ac_try") 2>&5
15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 (exit $ac_status); }; } &&
15437 { ac_try='test -s conftest.$ac_objext'
15438 { (case "(($ac_try" in
15439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15440 *) ac_try_echo=$ac_try;;
15442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15443 (eval "$ac_try") 2>&5
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); }; }; then
15447 ac_header_compiler=yes
15449 echo "$as_me: failed program was:" >&5
15450 sed 's/^/| /' conftest.$ac_ext >&5
15452 ac_header_compiler=no
15455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15456 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15457 echo "${ECHO_T}$ac_header_compiler" >&6; }
15459 # Is the header present?
15460 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15461 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15462 cat >conftest.$ac_ext <<_ACEOF
15465 cat confdefs.h >>conftest.$ac_ext
15466 cat >>conftest.$ac_ext <<_ACEOF
15467 /* end confdefs.h. */
15468 #include <$ac_header>
15470 if { (ac_try="$ac_cpp conftest.$ac_ext"
15471 case "(($ac_try" in
15472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15473 *) ac_try_echo=$ac_try;;
15475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15476 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15478 grep -v '^ *+' conftest.er1 >conftest.err
15480 cat conftest.err >&5
15481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); } >/dev/null; then
15483 if test -s conftest.err; then
15484 ac_cpp_err=$ac_c_preproc_warn_flag
15485 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15492 if test -z "$ac_cpp_err"; then
15493 ac_header_preproc=yes
15495 echo "$as_me: failed program was:" >&5
15496 sed 's/^/| /' conftest.$ac_ext >&5
15498 ac_header_preproc=no
15501 rm -f conftest.err conftest.$ac_ext
15502 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15503 echo "${ECHO_T}$ac_header_preproc" >&6; }
15505 # So? What about this header?
15506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15508 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15509 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15511 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15512 ac_header_preproc=yes
15515 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15516 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15517 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15518 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15519 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15520 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15521 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15522 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15524 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15525 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15526 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15528 ## ------------------------------------ ##
15529 ## Report this to http://llvm.org/bugs/ ##
15530 ## ------------------------------------ ##
15532 ) | sed "s/^/$as_me: WARNING: /" >&2
15535 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15538 echo $ECHO_N "(cached) $ECHO_C" >&6
15540 eval "$as_ac_Header=\$ac_header_preproc"
15542 ac_res=`eval echo '${'$as_ac_Header'}'`
15543 { echo "$as_me:$LINENO: result: $ac_res" >&5
15544 echo "${ECHO_T}$ac_res" >&6; }
15547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15548 cat >>confdefs.h <<_ACEOF
15549 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15556 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15558 for ac_header in pthread.h
15560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15562 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15565 echo $ECHO_N "(cached) $ECHO_C" >&6
15567 ac_res=`eval echo '${'$as_ac_Header'}'`
15568 { echo "$as_me:$LINENO: result: $ac_res" >&5
15569 echo "${ECHO_T}$ac_res" >&6; }
15571 # Is the header compilable?
15572 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15573 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15574 cat >conftest.$ac_ext <<_ACEOF
15577 cat confdefs.h >>conftest.$ac_ext
15578 cat >>conftest.$ac_ext <<_ACEOF
15579 /* end confdefs.h. */
15580 $ac_includes_default
15581 #include <$ac_header>
15583 rm -f conftest.$ac_objext
15584 if { (ac_try="$ac_compile"
15585 case "(($ac_try" in
15586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15587 *) ac_try_echo=$ac_try;;
15589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15590 (eval "$ac_compile") 2>conftest.er1
15592 grep -v '^ *+' conftest.er1 >conftest.err
15594 cat conftest.err >&5
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); } &&
15597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15598 { (case "(($ac_try" in
15599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15600 *) ac_try_echo=$ac_try;;
15602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15603 (eval "$ac_try") 2>&5
15605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606 (exit $ac_status); }; } &&
15607 { ac_try='test -s conftest.$ac_objext'
15608 { (case "(($ac_try" in
15609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15610 *) ac_try_echo=$ac_try;;
15612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15613 (eval "$ac_try") 2>&5
15615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15616 (exit $ac_status); }; }; then
15617 ac_header_compiler=yes
15619 echo "$as_me: failed program was:" >&5
15620 sed 's/^/| /' conftest.$ac_ext >&5
15622 ac_header_compiler=no
15625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15626 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15627 echo "${ECHO_T}$ac_header_compiler" >&6; }
15629 # Is the header present?
15630 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15631 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15632 cat >conftest.$ac_ext <<_ACEOF
15635 cat confdefs.h >>conftest.$ac_ext
15636 cat >>conftest.$ac_ext <<_ACEOF
15637 /* end confdefs.h. */
15638 #include <$ac_header>
15640 if { (ac_try="$ac_cpp conftest.$ac_ext"
15641 case "(($ac_try" in
15642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15643 *) ac_try_echo=$ac_try;;
15645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15648 grep -v '^ *+' conftest.er1 >conftest.err
15650 cat conftest.err >&5
15651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652 (exit $ac_status); } >/dev/null; then
15653 if test -s conftest.err; then
15654 ac_cpp_err=$ac_c_preproc_warn_flag
15655 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15662 if test -z "$ac_cpp_err"; then
15663 ac_header_preproc=yes
15665 echo "$as_me: failed program was:" >&5
15666 sed 's/^/| /' conftest.$ac_ext >&5
15668 ac_header_preproc=no
15671 rm -f conftest.err conftest.$ac_ext
15672 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15673 echo "${ECHO_T}$ac_header_preproc" >&6; }
15675 # So? What about this header?
15676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15678 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15679 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15681 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15682 ac_header_preproc=yes
15685 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15686 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15687 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15688 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15689 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15690 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15691 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15692 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15694 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15695 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15696 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15698 ## ------------------------------------ ##
15699 ## Report this to http://llvm.org/bugs/ ##
15700 ## ------------------------------------ ##
15702 ) | sed "s/^/$as_me: WARNING: /" >&2
15705 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15708 echo $ECHO_N "(cached) $ECHO_C" >&6
15710 eval "$as_ac_Header=\$ac_header_preproc"
15712 ac_res=`eval echo '${'$as_ac_Header'}'`
15713 { echo "$as_me:$LINENO: result: $ac_res" >&5
15714 echo "${ECHO_T}$ac_res" >&6; }
15717 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15718 cat >>confdefs.h <<_ACEOF
15719 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15735 if test "$llvm_cv_enable_libffi" = "yes" ; then
15738 for ac_header in ffi.h ffi/ffi.h
15740 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15742 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15745 echo $ECHO_N "(cached) $ECHO_C" >&6
15747 ac_res=`eval echo '${'$as_ac_Header'}'`
15748 { echo "$as_me:$LINENO: result: $ac_res" >&5
15749 echo "${ECHO_T}$ac_res" >&6; }
15751 # Is the header compilable?
15752 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15753 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15754 cat >conftest.$ac_ext <<_ACEOF
15757 cat confdefs.h >>conftest.$ac_ext
15758 cat >>conftest.$ac_ext <<_ACEOF
15759 /* end confdefs.h. */
15760 $ac_includes_default
15761 #include <$ac_header>
15763 rm -f conftest.$ac_objext
15764 if { (ac_try="$ac_compile"
15765 case "(($ac_try" in
15766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15767 *) ac_try_echo=$ac_try;;
15769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15770 (eval "$ac_compile") 2>conftest.er1
15772 grep -v '^ *+' conftest.er1 >conftest.err
15774 cat conftest.err >&5
15775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15776 (exit $ac_status); } &&
15777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15778 { (case "(($ac_try" in
15779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15780 *) ac_try_echo=$ac_try;;
15782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15783 (eval "$ac_try") 2>&5
15785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786 (exit $ac_status); }; } &&
15787 { ac_try='test -s conftest.$ac_objext'
15788 { (case "(($ac_try" in
15789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15790 *) ac_try_echo=$ac_try;;
15792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15793 (eval "$ac_try") 2>&5
15795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15796 (exit $ac_status); }; }; then
15797 ac_header_compiler=yes
15799 echo "$as_me: failed program was:" >&5
15800 sed 's/^/| /' conftest.$ac_ext >&5
15802 ac_header_compiler=no
15805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15806 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15807 echo "${ECHO_T}$ac_header_compiler" >&6; }
15809 # Is the header present?
15810 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15811 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15812 cat >conftest.$ac_ext <<_ACEOF
15815 cat confdefs.h >>conftest.$ac_ext
15816 cat >>conftest.$ac_ext <<_ACEOF
15817 /* end confdefs.h. */
15818 #include <$ac_header>
15820 if { (ac_try="$ac_cpp conftest.$ac_ext"
15821 case "(($ac_try" in
15822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15823 *) ac_try_echo=$ac_try;;
15825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15828 grep -v '^ *+' conftest.er1 >conftest.err
15830 cat conftest.err >&5
15831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832 (exit $ac_status); } >/dev/null; then
15833 if test -s conftest.err; then
15834 ac_cpp_err=$ac_c_preproc_warn_flag
15835 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15842 if test -z "$ac_cpp_err"; then
15843 ac_header_preproc=yes
15845 echo "$as_me: failed program was:" >&5
15846 sed 's/^/| /' conftest.$ac_ext >&5
15848 ac_header_preproc=no
15851 rm -f conftest.err conftest.$ac_ext
15852 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15853 echo "${ECHO_T}$ac_header_preproc" >&6; }
15855 # So? What about this header?
15856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15858 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15859 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15861 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15862 ac_header_preproc=yes
15865 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15866 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15867 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15868 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15869 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15870 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15871 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15872 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15874 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15875 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15876 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15878 ## ------------------------------------ ##
15879 ## Report this to http://llvm.org/bugs/ ##
15880 ## ------------------------------------ ##
15882 ) | sed "s/^/$as_me: WARNING: /" >&2
15885 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15888 echo $ECHO_N "(cached) $ECHO_C" >&6
15890 eval "$as_ac_Header=\$ac_header_preproc"
15892 ac_res=`eval echo '${'$as_ac_Header'}'`
15893 { echo "$as_me:$LINENO: result: $ac_res" >&5
15894 echo "${ECHO_T}$ac_res" >&6; }
15897 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15898 cat >>confdefs.h <<_ACEOF
15899 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15909 for ac_header in CrashReporterClient.h
15911 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15913 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15916 echo $ECHO_N "(cached) $ECHO_C" >&6
15918 ac_res=`eval echo '${'$as_ac_Header'}'`
15919 { echo "$as_me:$LINENO: result: $ac_res" >&5
15920 echo "${ECHO_T}$ac_res" >&6; }
15922 # Is the header compilable?
15923 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15924 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15925 cat >conftest.$ac_ext <<_ACEOF
15928 cat confdefs.h >>conftest.$ac_ext
15929 cat >>conftest.$ac_ext <<_ACEOF
15930 /* end confdefs.h. */
15931 $ac_includes_default
15932 #include <$ac_header>
15934 rm -f conftest.$ac_objext
15935 if { (ac_try="$ac_compile"
15936 case "(($ac_try" in
15937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15938 *) ac_try_echo=$ac_try;;
15940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15941 (eval "$ac_compile") 2>conftest.er1
15943 grep -v '^ *+' conftest.er1 >conftest.err
15945 cat conftest.err >&5
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); } &&
15948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15949 { (case "(($ac_try" in
15950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15951 *) ac_try_echo=$ac_try;;
15953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15954 (eval "$ac_try") 2>&5
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); }; } &&
15958 { ac_try='test -s conftest.$ac_objext'
15959 { (case "(($ac_try" in
15960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15961 *) ac_try_echo=$ac_try;;
15963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15964 (eval "$ac_try") 2>&5
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); }; }; then
15968 ac_header_compiler=yes
15970 echo "$as_me: failed program was:" >&5
15971 sed 's/^/| /' conftest.$ac_ext >&5
15973 ac_header_compiler=no
15976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15977 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15978 echo "${ECHO_T}$ac_header_compiler" >&6; }
15980 # Is the header present?
15981 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15982 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15983 cat >conftest.$ac_ext <<_ACEOF
15986 cat confdefs.h >>conftest.$ac_ext
15987 cat >>conftest.$ac_ext <<_ACEOF
15988 /* end confdefs.h. */
15989 #include <$ac_header>
15991 if { (ac_try="$ac_cpp conftest.$ac_ext"
15992 case "(($ac_try" in
15993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15994 *) ac_try_echo=$ac_try;;
15996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15997 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15999 grep -v '^ *+' conftest.er1 >conftest.err
16001 cat conftest.err >&5
16002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003 (exit $ac_status); } >/dev/null; then
16004 if test -s conftest.err; then
16005 ac_cpp_err=$ac_c_preproc_warn_flag
16006 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16013 if test -z "$ac_cpp_err"; then
16014 ac_header_preproc=yes
16016 echo "$as_me: failed program was:" >&5
16017 sed 's/^/| /' conftest.$ac_ext >&5
16019 ac_header_preproc=no
16022 rm -f conftest.err conftest.$ac_ext
16023 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16024 echo "${ECHO_T}$ac_header_preproc" >&6; }
16026 # So? What about this header?
16027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16029 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16030 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16032 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16033 ac_header_preproc=yes
16036 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16037 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16038 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16039 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16040 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16041 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16042 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16043 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16045 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16046 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16047 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16049 ## ------------------------------------ ##
16050 ## Report this to http://llvm.org/bugs/ ##
16051 ## ------------------------------------ ##
16053 ) | sed "s/^/$as_me: WARNING: /" >&2
16056 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16059 echo $ECHO_N "(cached) $ECHO_C" >&6
16061 eval "$as_ac_Header=\$ac_header_preproc"
16063 ac_res=`eval echo '${'$as_ac_Header'}'`
16064 { echo "$as_me:$LINENO: result: $ac_res" >&5
16065 echo "${ECHO_T}$ac_res" >&6; }
16068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16069 cat >>confdefs.h <<_ACEOF
16070 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16078 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16079 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16080 cat >conftest.$ac_ext <<_ACEOF
16083 cat confdefs.h >>conftest.$ac_ext
16084 cat >>conftest.$ac_ext <<_ACEOF
16085 /* end confdefs.h. */
16086 extern const char *__crashreporter_info__;
16088 __crashreporter_info__ = "test";
16093 rm -f conftest.$ac_objext conftest$ac_exeext
16094 if { (ac_try="$ac_link"
16095 case "(($ac_try" in
16096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16097 *) ac_try_echo=$ac_try;;
16099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16100 (eval "$ac_link") 2>conftest.er1
16102 grep -v '^ *+' conftest.er1 >conftest.err
16104 cat conftest.err >&5
16105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106 (exit $ac_status); } &&
16107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16108 { (case "(($ac_try" in
16109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16110 *) ac_try_echo=$ac_try;;
16112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16113 (eval "$ac_try") 2>&5
16115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116 (exit $ac_status); }; } &&
16117 { ac_try='test -s conftest$ac_exeext'
16118 { (case "(($ac_try" in
16119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16120 *) ac_try_echo=$ac_try;;
16122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16123 (eval "$ac_try") 2>&5
16125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126 (exit $ac_status); }; }; then
16127 { echo "$as_me:$LINENO: result: yes" >&5
16128 echo "${ECHO_T}yes" >&6; }
16130 cat >>confdefs.h <<\_ACEOF
16131 #define HAVE_CRASHREPORTER_INFO 1
16135 echo "$as_me: failed program was:" >&5
16136 sed 's/^/| /' conftest.$ac_ext >&5
16138 { echo "$as_me:$LINENO: result: no" >&5
16139 echo "${ECHO_T}no" >&6; }
16141 cat >>confdefs.h <<\_ACEOF
16142 #define HAVE_CRASHREPORTER_INFO 0
16147 rm -f core conftest.err conftest.$ac_objext \
16148 conftest$ac_exeext conftest.$ac_ext
16153 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16154 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16155 if test "${ac_cv_huge_val_sanity+set}" = set; then
16156 echo $ECHO_N "(cached) $ECHO_C" >&6
16160 ac_cpp='$CXXCPP $CPPFLAGS'
16161 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16162 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16163 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16165 ac_save_CXXFLAGS=$CXXFLAGS
16166 CXXFLAGS="$CXXFLAGS -pedantic"
16167 if test "$cross_compiling" = yes; then
16168 ac_cv_huge_val_sanity=yes
16170 cat >conftest.$ac_ext <<_ACEOF
16173 cat confdefs.h >>conftest.$ac_ext
16174 cat >>conftest.$ac_ext <<_ACEOF
16175 /* end confdefs.h. */
16180 double x = HUGE_VAL; return x != x;
16185 rm -f conftest$ac_exeext
16186 if { (ac_try="$ac_link"
16187 case "(($ac_try" in
16188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16189 *) ac_try_echo=$ac_try;;
16191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16192 (eval "$ac_link") 2>&5
16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16196 { (case "(($ac_try" in
16197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16198 *) ac_try_echo=$ac_try;;
16200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16201 (eval "$ac_try") 2>&5
16203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204 (exit $ac_status); }; }; then
16205 ac_cv_huge_val_sanity=yes
16207 echo "$as_me: program exited with status $ac_status" >&5
16208 echo "$as_me: failed program was:" >&5
16209 sed 's/^/| /' conftest.$ac_ext >&5
16211 ( exit $ac_status )
16212 ac_cv_huge_val_sanity=no
16214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16218 CXXFLAGS=$ac_save_CXXFLAGS
16220 ac_cpp='$CPP $CPPFLAGS'
16221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16227 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16228 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16229 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16232 { echo "$as_me:$LINENO: checking for pid_t" >&5
16233 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16234 if test "${ac_cv_type_pid_t+set}" = set; then
16235 echo $ECHO_N "(cached) $ECHO_C" >&6
16237 cat >conftest.$ac_ext <<_ACEOF
16240 cat confdefs.h >>conftest.$ac_ext
16241 cat >>conftest.$ac_ext <<_ACEOF
16242 /* end confdefs.h. */
16243 $ac_includes_default
16244 typedef pid_t ac__type_new_;
16248 if ((ac__type_new_ *) 0)
16250 if (sizeof (ac__type_new_))
16256 rm -f conftest.$ac_objext
16257 if { (ac_try="$ac_compile"
16258 case "(($ac_try" in
16259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16260 *) ac_try_echo=$ac_try;;
16262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16263 (eval "$ac_compile") 2>conftest.er1
16265 grep -v '^ *+' conftest.er1 >conftest.err
16267 cat conftest.err >&5
16268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); } &&
16270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16271 { (case "(($ac_try" in
16272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16273 *) ac_try_echo=$ac_try;;
16275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16276 (eval "$ac_try") 2>&5
16278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279 (exit $ac_status); }; } &&
16280 { ac_try='test -s conftest.$ac_objext'
16281 { (case "(($ac_try" in
16282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16283 *) ac_try_echo=$ac_try;;
16285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16286 (eval "$ac_try") 2>&5
16288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289 (exit $ac_status); }; }; then
16290 ac_cv_type_pid_t=yes
16292 echo "$as_me: failed program was:" >&5
16293 sed 's/^/| /' conftest.$ac_ext >&5
16295 ac_cv_type_pid_t=no
16298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16300 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16301 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16302 if test $ac_cv_type_pid_t = yes; then
16306 cat >>confdefs.h <<_ACEOF
16312 { echo "$as_me:$LINENO: checking for size_t" >&5
16313 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16314 if test "${ac_cv_type_size_t+set}" = set; then
16315 echo $ECHO_N "(cached) $ECHO_C" >&6
16317 cat >conftest.$ac_ext <<_ACEOF
16320 cat confdefs.h >>conftest.$ac_ext
16321 cat >>conftest.$ac_ext <<_ACEOF
16322 /* end confdefs.h. */
16323 $ac_includes_default
16324 typedef size_t ac__type_new_;
16328 if ((ac__type_new_ *) 0)
16330 if (sizeof (ac__type_new_))
16336 rm -f conftest.$ac_objext
16337 if { (ac_try="$ac_compile"
16338 case "(($ac_try" in
16339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16340 *) ac_try_echo=$ac_try;;
16342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16343 (eval "$ac_compile") 2>conftest.er1
16345 grep -v '^ *+' conftest.er1 >conftest.err
16347 cat conftest.err >&5
16348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); } &&
16350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16351 { (case "(($ac_try" in
16352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16353 *) ac_try_echo=$ac_try;;
16355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16356 (eval "$ac_try") 2>&5
16358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 (exit $ac_status); }; } &&
16360 { ac_try='test -s conftest.$ac_objext'
16361 { (case "(($ac_try" in
16362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16363 *) ac_try_echo=$ac_try;;
16365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16366 (eval "$ac_try") 2>&5
16368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16369 (exit $ac_status); }; }; then
16370 ac_cv_type_size_t=yes
16372 echo "$as_me: failed program was:" >&5
16373 sed 's/^/| /' conftest.$ac_ext >&5
16375 ac_cv_type_size_t=no
16378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16380 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16381 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16382 if test $ac_cv_type_size_t = yes; then
16386 cat >>confdefs.h <<_ACEOF
16387 #define size_t unsigned int
16393 cat >>confdefs.h <<_ACEOF
16394 #define RETSIGTYPE void
16397 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16398 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16399 if test "${ac_cv_struct_tm+set}" = set; then
16400 echo $ECHO_N "(cached) $ECHO_C" >&6
16402 cat >conftest.$ac_ext <<_ACEOF
16405 cat confdefs.h >>conftest.$ac_ext
16406 cat >>conftest.$ac_ext <<_ACEOF
16407 /* end confdefs.h. */
16408 #include <sys/types.h>
16414 struct tm *tp; tp->tm_sec;
16419 rm -f conftest.$ac_objext
16420 if { (ac_try="$ac_compile"
16421 case "(($ac_try" in
16422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16423 *) ac_try_echo=$ac_try;;
16425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16426 (eval "$ac_compile") 2>conftest.er1
16428 grep -v '^ *+' conftest.er1 >conftest.err
16430 cat conftest.err >&5
16431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432 (exit $ac_status); } &&
16433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16434 { (case "(($ac_try" in
16435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16436 *) ac_try_echo=$ac_try;;
16438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16439 (eval "$ac_try") 2>&5
16441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442 (exit $ac_status); }; } &&
16443 { ac_try='test -s conftest.$ac_objext'
16444 { (case "(($ac_try" in
16445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16446 *) ac_try_echo=$ac_try;;
16448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16449 (eval "$ac_try") 2>&5
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); }; }; then
16453 ac_cv_struct_tm=time.h
16455 echo "$as_me: failed program was:" >&5
16456 sed 's/^/| /' conftest.$ac_ext >&5
16458 ac_cv_struct_tm=sys/time.h
16461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16463 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16464 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16465 if test $ac_cv_struct_tm = sys/time.h; then
16467 cat >>confdefs.h <<\_ACEOF
16468 #define TM_IN_SYS_TIME 1
16473 { echo "$as_me:$LINENO: checking for int64_t" >&5
16474 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16475 if test "${ac_cv_type_int64_t+set}" = set; then
16476 echo $ECHO_N "(cached) $ECHO_C" >&6
16478 cat >conftest.$ac_ext <<_ACEOF
16481 cat confdefs.h >>conftest.$ac_ext
16482 cat >>conftest.$ac_ext <<_ACEOF
16483 /* end confdefs.h. */
16484 $ac_includes_default
16485 typedef int64_t ac__type_new_;
16489 if ((ac__type_new_ *) 0)
16491 if (sizeof (ac__type_new_))
16497 rm -f conftest.$ac_objext
16498 if { (ac_try="$ac_compile"
16499 case "(($ac_try" in
16500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16501 *) ac_try_echo=$ac_try;;
16503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16504 (eval "$ac_compile") 2>conftest.er1
16506 grep -v '^ *+' conftest.er1 >conftest.err
16508 cat conftest.err >&5
16509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 (exit $ac_status); } &&
16511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16512 { (case "(($ac_try" in
16513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16514 *) ac_try_echo=$ac_try;;
16516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16517 (eval "$ac_try") 2>&5
16519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520 (exit $ac_status); }; } &&
16521 { ac_try='test -s conftest.$ac_objext'
16522 { (case "(($ac_try" in
16523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16524 *) ac_try_echo=$ac_try;;
16526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16527 (eval "$ac_try") 2>&5
16529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530 (exit $ac_status); }; }; then
16531 ac_cv_type_int64_t=yes
16533 echo "$as_me: failed program was:" >&5
16534 sed 's/^/| /' conftest.$ac_ext >&5
16536 ac_cv_type_int64_t=no
16539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16541 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16542 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16543 if test $ac_cv_type_int64_t = yes; then
16545 cat >>confdefs.h <<_ACEOF
16546 #define HAVE_INT64_T 1
16551 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16552 echo "$as_me: error: Type int64_t required but not found" >&2;}
16553 { (exit 1); exit 1; }; }
16556 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16557 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16558 if test "${ac_cv_type_uint64_t+set}" = set; then
16559 echo $ECHO_N "(cached) $ECHO_C" >&6
16561 cat >conftest.$ac_ext <<_ACEOF
16564 cat confdefs.h >>conftest.$ac_ext
16565 cat >>conftest.$ac_ext <<_ACEOF
16566 /* end confdefs.h. */
16567 $ac_includes_default
16568 typedef uint64_t ac__type_new_;
16572 if ((ac__type_new_ *) 0)
16574 if (sizeof (ac__type_new_))
16580 rm -f conftest.$ac_objext
16581 if { (ac_try="$ac_compile"
16582 case "(($ac_try" in
16583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16584 *) ac_try_echo=$ac_try;;
16586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16587 (eval "$ac_compile") 2>conftest.er1
16589 grep -v '^ *+' conftest.er1 >conftest.err
16591 cat conftest.err >&5
16592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); } &&
16594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16595 { (case "(($ac_try" in
16596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16597 *) ac_try_echo=$ac_try;;
16599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16600 (eval "$ac_try") 2>&5
16602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603 (exit $ac_status); }; } &&
16604 { ac_try='test -s conftest.$ac_objext'
16605 { (case "(($ac_try" in
16606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16607 *) ac_try_echo=$ac_try;;
16609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16610 (eval "$ac_try") 2>&5
16612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613 (exit $ac_status); }; }; then
16614 ac_cv_type_uint64_t=yes
16616 echo "$as_me: failed program was:" >&5
16617 sed 's/^/| /' conftest.$ac_ext >&5
16619 ac_cv_type_uint64_t=no
16622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16624 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16625 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16626 if test $ac_cv_type_uint64_t = yes; then
16628 cat >>confdefs.h <<_ACEOF
16629 #define HAVE_UINT64_T 1
16634 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16635 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16636 if test "${ac_cv_type_u_int64_t+set}" = set; then
16637 echo $ECHO_N "(cached) $ECHO_C" >&6
16639 cat >conftest.$ac_ext <<_ACEOF
16642 cat confdefs.h >>conftest.$ac_ext
16643 cat >>conftest.$ac_ext <<_ACEOF
16644 /* end confdefs.h. */
16645 $ac_includes_default
16646 typedef u_int64_t ac__type_new_;
16650 if ((ac__type_new_ *) 0)
16652 if (sizeof (ac__type_new_))
16658 rm -f conftest.$ac_objext
16659 if { (ac_try="$ac_compile"
16660 case "(($ac_try" in
16661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16662 *) ac_try_echo=$ac_try;;
16664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16665 (eval "$ac_compile") 2>conftest.er1
16667 grep -v '^ *+' conftest.er1 >conftest.err
16669 cat conftest.err >&5
16670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671 (exit $ac_status); } &&
16672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16673 { (case "(($ac_try" in
16674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16675 *) ac_try_echo=$ac_try;;
16677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16678 (eval "$ac_try") 2>&5
16680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681 (exit $ac_status); }; } &&
16682 { ac_try='test -s conftest.$ac_objext'
16683 { (case "(($ac_try" in
16684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16685 *) ac_try_echo=$ac_try;;
16687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16688 (eval "$ac_try") 2>&5
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); }; }; then
16692 ac_cv_type_u_int64_t=yes
16694 echo "$as_me: failed program was:" >&5
16695 sed 's/^/| /' conftest.$ac_ext >&5
16697 ac_cv_type_u_int64_t=no
16700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16702 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16703 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16704 if test $ac_cv_type_u_int64_t = yes; then
16706 cat >>confdefs.h <<_ACEOF
16707 #define HAVE_U_INT64_T 1
16712 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16713 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16714 { (exit 1); exit 1; }; }
16728 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16730 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16731 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16732 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16733 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16734 echo $ECHO_N "(cached) $ECHO_C" >&6
16736 cat >conftest.$ac_ext <<_ACEOF
16739 cat confdefs.h >>conftest.$ac_ext
16740 cat >>conftest.$ac_ext <<_ACEOF
16741 /* end confdefs.h. */
16742 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16744 #define $ac_func innocuous_$ac_func
16746 /* System header to define __stub macros and hopefully few prototypes,
16747 which can conflict with char $ac_func (); below.
16748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16749 <limits.h> exists even on freestanding compilers. */
16752 # include <limits.h>
16754 # include <assert.h>
16759 /* Override any GCC internal prototype to avoid an error.
16760 Use char because int might match the return type of a GCC
16761 builtin and then its argument prototype would still apply. */
16766 /* The GNU C library defines this for functions which it implements
16767 to always fail with ENOSYS. Some functions are actually named
16768 something starting with __ and the normal name is an alias. */
16769 #if defined __stub_$ac_func || defined __stub___$ac_func
16776 return $ac_func ();
16781 rm -f conftest.$ac_objext conftest$ac_exeext
16782 if { (ac_try="$ac_link"
16783 case "(($ac_try" in
16784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16785 *) ac_try_echo=$ac_try;;
16787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16788 (eval "$ac_link") 2>conftest.er1
16790 grep -v '^ *+' conftest.er1 >conftest.err
16792 cat conftest.err >&5
16793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794 (exit $ac_status); } &&
16795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16796 { (case "(($ac_try" in
16797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16798 *) ac_try_echo=$ac_try;;
16800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16801 (eval "$ac_try") 2>&5
16803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); }; } &&
16805 { ac_try='test -s conftest$ac_exeext'
16806 { (case "(($ac_try" in
16807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16808 *) ac_try_echo=$ac_try;;
16810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16811 (eval "$ac_try") 2>&5
16813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814 (exit $ac_status); }; }; then
16815 eval "$as_ac_var=yes"
16817 echo "$as_me: failed program was:" >&5
16818 sed 's/^/| /' conftest.$ac_ext >&5
16820 eval "$as_ac_var=no"
16823 rm -f core conftest.err conftest.$ac_objext \
16824 conftest$ac_exeext conftest.$ac_ext
16826 ac_res=`eval echo '${'$as_ac_var'}'`
16827 { echo "$as_me:$LINENO: result: $ac_res" >&5
16828 echo "${ECHO_T}$ac_res" >&6; }
16829 if test `eval echo '${'$as_ac_var'}'` = yes; then
16830 cat >>confdefs.h <<_ACEOF
16831 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16841 for ac_func in powf fmodf strtof round
16843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16844 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16846 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16847 echo $ECHO_N "(cached) $ECHO_C" >&6
16849 cat >conftest.$ac_ext <<_ACEOF
16852 cat confdefs.h >>conftest.$ac_ext
16853 cat >>conftest.$ac_ext <<_ACEOF
16854 /* end confdefs.h. */
16855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16857 #define $ac_func innocuous_$ac_func
16859 /* System header to define __stub macros and hopefully few prototypes,
16860 which can conflict with char $ac_func (); below.
16861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16862 <limits.h> exists even on freestanding compilers. */
16865 # include <limits.h>
16867 # include <assert.h>
16872 /* Override any GCC internal prototype to avoid an error.
16873 Use char because int might match the return type of a GCC
16874 builtin and then its argument prototype would still apply. */
16879 /* The GNU C library defines this for functions which it implements
16880 to always fail with ENOSYS. Some functions are actually named
16881 something starting with __ and the normal name is an alias. */
16882 #if defined __stub_$ac_func || defined __stub___$ac_func
16889 return $ac_func ();
16894 rm -f conftest.$ac_objext conftest$ac_exeext
16895 if { (ac_try="$ac_link"
16896 case "(($ac_try" in
16897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16898 *) ac_try_echo=$ac_try;;
16900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16901 (eval "$ac_link") 2>conftest.er1
16903 grep -v '^ *+' conftest.er1 >conftest.err
16905 cat conftest.err >&5
16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); } &&
16908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16909 { (case "(($ac_try" in
16910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16911 *) ac_try_echo=$ac_try;;
16913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16914 (eval "$ac_try") 2>&5
16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); }; } &&
16918 { ac_try='test -s conftest$ac_exeext'
16919 { (case "(($ac_try" in
16920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16921 *) ac_try_echo=$ac_try;;
16923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16924 (eval "$ac_try") 2>&5
16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927 (exit $ac_status); }; }; then
16928 eval "$as_ac_var=yes"
16930 echo "$as_me: failed program was:" >&5
16931 sed 's/^/| /' conftest.$ac_ext >&5
16933 eval "$as_ac_var=no"
16936 rm -f core conftest.err conftest.$ac_objext \
16937 conftest$ac_exeext conftest.$ac_ext
16939 ac_res=`eval echo '${'$as_ac_var'}'`
16940 { echo "$as_me:$LINENO: result: $ac_res" >&5
16941 echo "${ECHO_T}$ac_res" >&6; }
16942 if test `eval echo '${'$as_ac_var'}'` = yes; then
16943 cat >>confdefs.h <<_ACEOF
16944 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16955 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16957 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16958 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16959 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16960 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16961 echo $ECHO_N "(cached) $ECHO_C" >&6
16963 cat >conftest.$ac_ext <<_ACEOF
16966 cat confdefs.h >>conftest.$ac_ext
16967 cat >>conftest.$ac_ext <<_ACEOF
16968 /* end confdefs.h. */
16969 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16970 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16971 #define $ac_func innocuous_$ac_func
16973 /* System header to define __stub macros and hopefully few prototypes,
16974 which can conflict with char $ac_func (); below.
16975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16976 <limits.h> exists even on freestanding compilers. */
16979 # include <limits.h>
16981 # include <assert.h>
16986 /* Override any GCC internal prototype to avoid an error.
16987 Use char because int might match the return type of a GCC
16988 builtin and then its argument prototype would still apply. */
16993 /* The GNU C library defines this for functions which it implements
16994 to always fail with ENOSYS. Some functions are actually named
16995 something starting with __ and the normal name is an alias. */
16996 #if defined __stub_$ac_func || defined __stub___$ac_func
17003 return $ac_func ();
17008 rm -f conftest.$ac_objext conftest$ac_exeext
17009 if { (ac_try="$ac_link"
17010 case "(($ac_try" in
17011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17012 *) ac_try_echo=$ac_try;;
17014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17015 (eval "$ac_link") 2>conftest.er1
17017 grep -v '^ *+' conftest.er1 >conftest.err
17019 cat conftest.err >&5
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); } &&
17022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17023 { (case "(($ac_try" in
17024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17025 *) ac_try_echo=$ac_try;;
17027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17028 (eval "$ac_try") 2>&5
17030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031 (exit $ac_status); }; } &&
17032 { ac_try='test -s conftest$ac_exeext'
17033 { (case "(($ac_try" in
17034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17035 *) ac_try_echo=$ac_try;;
17037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17038 (eval "$ac_try") 2>&5
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); }; }; then
17042 eval "$as_ac_var=yes"
17044 echo "$as_me: failed program was:" >&5
17045 sed 's/^/| /' conftest.$ac_ext >&5
17047 eval "$as_ac_var=no"
17050 rm -f core conftest.err conftest.$ac_objext \
17051 conftest$ac_exeext conftest.$ac_ext
17053 ac_res=`eval echo '${'$as_ac_var'}'`
17054 { echo "$as_me:$LINENO: result: $ac_res" >&5
17055 echo "${ECHO_T}$ac_res" >&6; }
17056 if test `eval echo '${'$as_ac_var'}'` = yes; then
17057 cat >>confdefs.h <<_ACEOF
17058 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17067 for ac_func in isatty mkdtemp mkstemp
17069 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17070 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17071 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17072 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17073 echo $ECHO_N "(cached) $ECHO_C" >&6
17075 cat >conftest.$ac_ext <<_ACEOF
17078 cat confdefs.h >>conftest.$ac_ext
17079 cat >>conftest.$ac_ext <<_ACEOF
17080 /* end confdefs.h. */
17081 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17083 #define $ac_func innocuous_$ac_func
17085 /* System header to define __stub macros and hopefully few prototypes,
17086 which can conflict with char $ac_func (); below.
17087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17088 <limits.h> exists even on freestanding compilers. */
17091 # include <limits.h>
17093 # include <assert.h>
17098 /* Override any GCC internal prototype to avoid an error.
17099 Use char because int might match the return type of a GCC
17100 builtin and then its argument prototype would still apply. */
17105 /* The GNU C library defines this for functions which it implements
17106 to always fail with ENOSYS. Some functions are actually named
17107 something starting with __ and the normal name is an alias. */
17108 #if defined __stub_$ac_func || defined __stub___$ac_func
17115 return $ac_func ();
17120 rm -f conftest.$ac_objext conftest$ac_exeext
17121 if { (ac_try="$ac_link"
17122 case "(($ac_try" in
17123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17124 *) ac_try_echo=$ac_try;;
17126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17127 (eval "$ac_link") 2>conftest.er1
17129 grep -v '^ *+' conftest.er1 >conftest.err
17131 cat conftest.err >&5
17132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133 (exit $ac_status); } &&
17134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17135 { (case "(($ac_try" in
17136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17137 *) ac_try_echo=$ac_try;;
17139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17140 (eval "$ac_try") 2>&5
17142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143 (exit $ac_status); }; } &&
17144 { ac_try='test -s conftest$ac_exeext'
17145 { (case "(($ac_try" in
17146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17147 *) ac_try_echo=$ac_try;;
17149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17150 (eval "$ac_try") 2>&5
17152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153 (exit $ac_status); }; }; then
17154 eval "$as_ac_var=yes"
17156 echo "$as_me: failed program was:" >&5
17157 sed 's/^/| /' conftest.$ac_ext >&5
17159 eval "$as_ac_var=no"
17162 rm -f core conftest.err conftest.$ac_objext \
17163 conftest$ac_exeext conftest.$ac_ext
17165 ac_res=`eval echo '${'$as_ac_var'}'`
17166 { echo "$as_me:$LINENO: result: $ac_res" >&5
17167 echo "${ECHO_T}$ac_res" >&6; }
17168 if test `eval echo '${'$as_ac_var'}'` = yes; then
17169 cat >>confdefs.h <<_ACEOF
17170 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17183 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17185 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17186 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17187 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17188 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17189 echo $ECHO_N "(cached) $ECHO_C" >&6
17191 cat >conftest.$ac_ext <<_ACEOF
17194 cat confdefs.h >>conftest.$ac_ext
17195 cat >>conftest.$ac_ext <<_ACEOF
17196 /* end confdefs.h. */
17197 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17199 #define $ac_func innocuous_$ac_func
17201 /* System header to define __stub macros and hopefully few prototypes,
17202 which can conflict with char $ac_func (); below.
17203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17204 <limits.h> exists even on freestanding compilers. */
17207 # include <limits.h>
17209 # include <assert.h>
17214 /* Override any GCC internal prototype to avoid an error.
17215 Use char because int might match the return type of a GCC
17216 builtin and then its argument prototype would still apply. */
17221 /* The GNU C library defines this for functions which it implements
17222 to always fail with ENOSYS. Some functions are actually named
17223 something starting with __ and the normal name is an alias. */
17224 #if defined __stub_$ac_func || defined __stub___$ac_func
17231 return $ac_func ();
17236 rm -f conftest.$ac_objext conftest$ac_exeext
17237 if { (ac_try="$ac_link"
17238 case "(($ac_try" in
17239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17240 *) ac_try_echo=$ac_try;;
17242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17243 (eval "$ac_link") 2>conftest.er1
17245 grep -v '^ *+' conftest.er1 >conftest.err
17247 cat conftest.err >&5
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); } &&
17250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17251 { (case "(($ac_try" in
17252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17253 *) ac_try_echo=$ac_try;;
17255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17256 (eval "$ac_try") 2>&5
17258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); }; } &&
17260 { ac_try='test -s conftest$ac_exeext'
17261 { (case "(($ac_try" in
17262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17263 *) ac_try_echo=$ac_try;;
17265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17266 (eval "$ac_try") 2>&5
17268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269 (exit $ac_status); }; }; then
17270 eval "$as_ac_var=yes"
17272 echo "$as_me: failed program was:" >&5
17273 sed 's/^/| /' conftest.$ac_ext >&5
17275 eval "$as_ac_var=no"
17278 rm -f core conftest.err conftest.$ac_objext \
17279 conftest$ac_exeext conftest.$ac_ext
17281 ac_res=`eval echo '${'$as_ac_var'}'`
17282 { echo "$as_me:$LINENO: result: $ac_res" >&5
17283 echo "${ECHO_T}$ac_res" >&6; }
17284 if test `eval echo '${'$as_ac_var'}'` = yes; then
17285 cat >>confdefs.h <<_ACEOF
17286 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17296 for ac_func in strerror strerror_r setenv arc4random
17298 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17299 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17300 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17301 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17302 echo $ECHO_N "(cached) $ECHO_C" >&6
17304 cat >conftest.$ac_ext <<_ACEOF
17307 cat confdefs.h >>conftest.$ac_ext
17308 cat >>conftest.$ac_ext <<_ACEOF
17309 /* end confdefs.h. */
17310 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17312 #define $ac_func innocuous_$ac_func
17314 /* System header to define __stub macros and hopefully few prototypes,
17315 which can conflict with char $ac_func (); below.
17316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17317 <limits.h> exists even on freestanding compilers. */
17320 # include <limits.h>
17322 # include <assert.h>
17327 /* Override any GCC internal prototype to avoid an error.
17328 Use char because int might match the return type of a GCC
17329 builtin and then its argument prototype would still apply. */
17334 /* The GNU C library defines this for functions which it implements
17335 to always fail with ENOSYS. Some functions are actually named
17336 something starting with __ and the normal name is an alias. */
17337 #if defined __stub_$ac_func || defined __stub___$ac_func
17344 return $ac_func ();
17349 rm -f conftest.$ac_objext conftest$ac_exeext
17350 if { (ac_try="$ac_link"
17351 case "(($ac_try" in
17352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17353 *) ac_try_echo=$ac_try;;
17355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17356 (eval "$ac_link") 2>conftest.er1
17358 grep -v '^ *+' conftest.er1 >conftest.err
17360 cat conftest.err >&5
17361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362 (exit $ac_status); } &&
17363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17364 { (case "(($ac_try" in
17365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17366 *) ac_try_echo=$ac_try;;
17368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17369 (eval "$ac_try") 2>&5
17371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372 (exit $ac_status); }; } &&
17373 { ac_try='test -s conftest$ac_exeext'
17374 { (case "(($ac_try" in
17375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17376 *) ac_try_echo=$ac_try;;
17378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17379 (eval "$ac_try") 2>&5
17381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 (exit $ac_status); }; }; then
17383 eval "$as_ac_var=yes"
17385 echo "$as_me: failed program was:" >&5
17386 sed 's/^/| /' conftest.$ac_ext >&5
17388 eval "$as_ac_var=no"
17391 rm -f core conftest.err conftest.$ac_objext \
17392 conftest$ac_exeext conftest.$ac_ext
17394 ac_res=`eval echo '${'$as_ac_var'}'`
17395 { echo "$as_me:$LINENO: result: $ac_res" >&5
17396 echo "${ECHO_T}$ac_res" >&6; }
17397 if test `eval echo '${'$as_ac_var'}'` = yes; then
17398 cat >>confdefs.h <<_ACEOF
17399 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17409 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17411 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17412 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17413 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17414 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17415 echo $ECHO_N "(cached) $ECHO_C" >&6
17417 cat >conftest.$ac_ext <<_ACEOF
17420 cat confdefs.h >>conftest.$ac_ext
17421 cat >>conftest.$ac_ext <<_ACEOF
17422 /* end confdefs.h. */
17423 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17425 #define $ac_func innocuous_$ac_func
17427 /* System header to define __stub macros and hopefully few prototypes,
17428 which can conflict with char $ac_func (); below.
17429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17430 <limits.h> exists even on freestanding compilers. */
17433 # include <limits.h>
17435 # include <assert.h>
17440 /* Override any GCC internal prototype to avoid an error.
17441 Use char because int might match the return type of a GCC
17442 builtin and then its argument prototype would still apply. */
17447 /* The GNU C library defines this for functions which it implements
17448 to always fail with ENOSYS. Some functions are actually named
17449 something starting with __ and the normal name is an alias. */
17450 #if defined __stub_$ac_func || defined __stub___$ac_func
17457 return $ac_func ();
17462 rm -f conftest.$ac_objext conftest$ac_exeext
17463 if { (ac_try="$ac_link"
17464 case "(($ac_try" in
17465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17466 *) ac_try_echo=$ac_try;;
17468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17469 (eval "$ac_link") 2>conftest.er1
17471 grep -v '^ *+' conftest.er1 >conftest.err
17473 cat conftest.err >&5
17474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475 (exit $ac_status); } &&
17476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17477 { (case "(($ac_try" in
17478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17479 *) ac_try_echo=$ac_try;;
17481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17482 (eval "$ac_try") 2>&5
17484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485 (exit $ac_status); }; } &&
17486 { ac_try='test -s conftest$ac_exeext'
17487 { (case "(($ac_try" in
17488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17489 *) ac_try_echo=$ac_try;;
17491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17492 (eval "$ac_try") 2>&5
17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 (exit $ac_status); }; }; then
17496 eval "$as_ac_var=yes"
17498 echo "$as_me: failed program was:" >&5
17499 sed 's/^/| /' conftest.$ac_ext >&5
17501 eval "$as_ac_var=no"
17504 rm -f core conftest.err conftest.$ac_objext \
17505 conftest$ac_exeext conftest.$ac_ext
17507 ac_res=`eval echo '${'$as_ac_var'}'`
17508 { echo "$as_me:$LINENO: result: $ac_res" >&5
17509 echo "${ECHO_T}$ac_res" >&6; }
17510 if test `eval echo '${'$as_ac_var'}'` = yes; then
17511 cat >>confdefs.h <<_ACEOF
17512 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17523 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17525 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17526 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17527 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17528 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17529 echo $ECHO_N "(cached) $ECHO_C" >&6
17531 cat >conftest.$ac_ext <<_ACEOF
17534 cat confdefs.h >>conftest.$ac_ext
17535 cat >>conftest.$ac_ext <<_ACEOF
17536 /* end confdefs.h. */
17537 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17538 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17539 #define $ac_func innocuous_$ac_func
17541 /* System header to define __stub macros and hopefully few prototypes,
17542 which can conflict with char $ac_func (); below.
17543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17544 <limits.h> exists even on freestanding compilers. */
17547 # include <limits.h>
17549 # include <assert.h>
17554 /* Override any GCC internal prototype to avoid an error.
17555 Use char because int might match the return type of a GCC
17556 builtin and then its argument prototype would still apply. */
17561 /* The GNU C library defines this for functions which it implements
17562 to always fail with ENOSYS. Some functions are actually named
17563 something starting with __ and the normal name is an alias. */
17564 #if defined __stub_$ac_func || defined __stub___$ac_func
17571 return $ac_func ();
17576 rm -f conftest.$ac_objext conftest$ac_exeext
17577 if { (ac_try="$ac_link"
17578 case "(($ac_try" in
17579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17580 *) ac_try_echo=$ac_try;;
17582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17583 (eval "$ac_link") 2>conftest.er1
17585 grep -v '^ *+' conftest.er1 >conftest.err
17587 cat conftest.err >&5
17588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589 (exit $ac_status); } &&
17590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17591 { (case "(($ac_try" in
17592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17593 *) ac_try_echo=$ac_try;;
17595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17596 (eval "$ac_try") 2>&5
17598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599 (exit $ac_status); }; } &&
17600 { ac_try='test -s conftest$ac_exeext'
17601 { (case "(($ac_try" in
17602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17603 *) ac_try_echo=$ac_try;;
17605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17606 (eval "$ac_try") 2>&5
17608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609 (exit $ac_status); }; }; then
17610 eval "$as_ac_var=yes"
17612 echo "$as_me: failed program was:" >&5
17613 sed 's/^/| /' conftest.$ac_ext >&5
17615 eval "$as_ac_var=no"
17618 rm -f core conftest.err conftest.$ac_objext \
17619 conftest$ac_exeext conftest.$ac_ext
17621 ac_res=`eval echo '${'$as_ac_var'}'`
17622 { echo "$as_me:$LINENO: result: $ac_res" >&5
17623 echo "${ECHO_T}$ac_res" >&6; }
17624 if test `eval echo '${'$as_ac_var'}'` = yes; then
17625 cat >>confdefs.h <<_ACEOF
17626 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17632 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17633 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17634 if test "${llvm_cv_c_printf_a+set}" = set; then
17635 echo $ECHO_N "(cached) $ECHO_C" >&6
17638 ac_cpp='$CPP $CPPFLAGS'
17639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17643 if test "$cross_compiling" = yes; then
17644 llvmac_cv_c_printf_a=no
17646 cat >conftest.$ac_ext <<_ACEOF
17650 cat confdefs.h >>conftest.$ac_ext
17651 cat >>conftest.$ac_ext <<_ACEOF
17652 /* end confdefs.h. */
17655 #include <stdlib.h>
17661 volatile double A, B;
17665 sprintf(Buffer, "%a", A);
17669 if (A != 0x1.999999999999ap-4)
17676 rm -f conftest$ac_exeext
17677 if { (ac_try="$ac_link"
17678 case "(($ac_try" in
17679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17680 *) ac_try_echo=$ac_try;;
17682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17683 (eval "$ac_link") 2>&5
17685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17686 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17687 { (case "(($ac_try" in
17688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17689 *) ac_try_echo=$ac_try;;
17691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17692 (eval "$ac_try") 2>&5
17694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695 (exit $ac_status); }; }; then
17696 llvm_cv_c_printf_a=yes
17698 echo "$as_me: program exited with status $ac_status" >&5
17699 echo "$as_me: failed program was:" >&5
17700 sed 's/^/| /' conftest.$ac_ext >&5
17702 ( exit $ac_status )
17703 llvmac_cv_c_printf_a=no
17705 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17710 ac_cpp='$CPP $CPPFLAGS'
17711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17716 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17717 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17718 if test "$llvm_cv_c_printf_a" = "yes"; then
17720 cat >>confdefs.h <<\_ACEOF
17721 #define HAVE_PRINTF_A 1
17727 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17728 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17729 if test "${ac_cv_func_rand48+set}" = set; then
17730 echo $ECHO_N "(cached) $ECHO_C" >&6
17733 ac_cpp='$CXXCPP $CPPFLAGS'
17734 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17735 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17736 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17738 cat >conftest.$ac_ext <<_ACEOF
17741 cat confdefs.h >>conftest.$ac_ext
17742 cat >>conftest.$ac_ext <<_ACEOF
17743 /* end confdefs.h. */
17744 #include <stdlib.h>
17748 srand48(0);lrand48();drand48();
17753 rm -f conftest.$ac_objext
17754 if { (ac_try="$ac_compile"
17755 case "(($ac_try" in
17756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17757 *) ac_try_echo=$ac_try;;
17759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17760 (eval "$ac_compile") 2>conftest.er1
17762 grep -v '^ *+' conftest.er1 >conftest.err
17764 cat conftest.err >&5
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); } &&
17767 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17768 { (case "(($ac_try" in
17769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17770 *) ac_try_echo=$ac_try;;
17772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17773 (eval "$ac_try") 2>&5
17775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); }; } &&
17777 { ac_try='test -s conftest.$ac_objext'
17778 { (case "(($ac_try" in
17779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17780 *) ac_try_echo=$ac_try;;
17782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17783 (eval "$ac_try") 2>&5
17785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786 (exit $ac_status); }; }; then
17787 ac_cv_func_rand48=yes
17789 echo "$as_me: failed program was:" >&5
17790 sed 's/^/| /' conftest.$ac_ext >&5
17792 ac_cv_func_rand48=no
17795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17797 ac_cpp='$CPP $CPPFLAGS'
17798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17803 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17804 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17806 if test "$ac_cv_func_rand48" = "yes" ; then
17808 cat >>confdefs.h <<\_ACEOF
17809 #define HAVE_RAND48 1
17815 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17816 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17817 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17818 echo $ECHO_N "(cached) $ECHO_C" >&6
17820 cat >conftest.$ac_ext <<_ACEOF
17823 cat confdefs.h >>conftest.$ac_ext
17824 cat >>conftest.$ac_ext <<_ACEOF
17825 /* end confdefs.h. */
17826 $ac_includes_default
17831 char *p = (char *) strerror_s;
17839 rm -f conftest.$ac_objext
17840 if { (ac_try="$ac_compile"
17841 case "(($ac_try" in
17842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17843 *) ac_try_echo=$ac_try;;
17845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17846 (eval "$ac_compile") 2>conftest.er1
17848 grep -v '^ *+' conftest.er1 >conftest.err
17850 cat conftest.err >&5
17851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852 (exit $ac_status); } &&
17853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17854 { (case "(($ac_try" in
17855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17856 *) ac_try_echo=$ac_try;;
17858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17859 (eval "$ac_try") 2>&5
17861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862 (exit $ac_status); }; } &&
17863 { ac_try='test -s conftest.$ac_objext'
17864 { (case "(($ac_try" in
17865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17866 *) ac_try_echo=$ac_try;;
17868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17869 (eval "$ac_try") 2>&5
17871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872 (exit $ac_status); }; }; then
17873 ac_cv_have_decl_strerror_s=yes
17875 echo "$as_me: failed program was:" >&5
17876 sed 's/^/| /' conftest.$ac_ext >&5
17878 ac_cv_have_decl_strerror_s=no
17881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17883 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17884 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17885 if test $ac_cv_have_decl_strerror_s = yes; then
17887 cat >>confdefs.h <<_ACEOF
17888 #define HAVE_DECL_STRERROR_S 1
17893 cat >>confdefs.h <<_ACEOF
17894 #define HAVE_DECL_STRERROR_S 0
17902 if test "$llvm_cv_os_type" = "MingW" ; then
17903 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17904 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17905 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17906 echo $ECHO_N "(cached) $ECHO_C" >&6
17908 ac_check_lib_save_LIBS=$LIBS
17910 cat >conftest.$ac_ext <<_ACEOF
17913 cat confdefs.h >>conftest.$ac_ext
17914 cat >>conftest.$ac_ext <<_ACEOF
17915 /* end confdefs.h. */
17917 /* Override any GCC internal prototype to avoid an error.
17918 Use char because int might match the return type of a GCC
17919 builtin and then its argument prototype would still apply. */
17932 rm -f conftest.$ac_objext conftest$ac_exeext
17933 if { (ac_try="$ac_link"
17934 case "(($ac_try" in
17935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17936 *) ac_try_echo=$ac_try;;
17938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17939 (eval "$ac_link") 2>conftest.er1
17941 grep -v '^ *+' conftest.er1 >conftest.err
17943 cat conftest.err >&5
17944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945 (exit $ac_status); } &&
17946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17947 { (case "(($ac_try" in
17948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17949 *) ac_try_echo=$ac_try;;
17951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17952 (eval "$ac_try") 2>&5
17954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955 (exit $ac_status); }; } &&
17956 { ac_try='test -s conftest$ac_exeext'
17957 { (case "(($ac_try" in
17958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17959 *) ac_try_echo=$ac_try;;
17961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17962 (eval "$ac_try") 2>&5
17964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965 (exit $ac_status); }; }; then
17966 ac_cv_lib_gcc__alloca=yes
17968 echo "$as_me: failed program was:" >&5
17969 sed 's/^/| /' conftest.$ac_ext >&5
17971 ac_cv_lib_gcc__alloca=no
17974 rm -f core conftest.err conftest.$ac_objext \
17975 conftest$ac_exeext conftest.$ac_ext
17976 LIBS=$ac_check_lib_save_LIBS
17978 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17979 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17980 if test $ac_cv_lib_gcc__alloca = yes; then
17982 cat >>confdefs.h <<\_ACEOF
17983 #define HAVE__ALLOCA 1
17988 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17989 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17990 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17991 echo $ECHO_N "(cached) $ECHO_C" >&6
17993 ac_check_lib_save_LIBS=$LIBS
17995 cat >conftest.$ac_ext <<_ACEOF
17998 cat confdefs.h >>conftest.$ac_ext
17999 cat >>conftest.$ac_ext <<_ACEOF
18000 /* end confdefs.h. */
18002 /* Override any GCC internal prototype to avoid an error.
18003 Use char because int might match the return type of a GCC
18004 builtin and then its argument prototype would still apply. */
18012 return __alloca ();
18017 rm -f conftest.$ac_objext conftest$ac_exeext
18018 if { (ac_try="$ac_link"
18019 case "(($ac_try" in
18020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18021 *) ac_try_echo=$ac_try;;
18023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18024 (eval "$ac_link") 2>conftest.er1
18026 grep -v '^ *+' conftest.er1 >conftest.err
18028 cat conftest.err >&5
18029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030 (exit $ac_status); } &&
18031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18032 { (case "(($ac_try" in
18033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18034 *) ac_try_echo=$ac_try;;
18036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18037 (eval "$ac_try") 2>&5
18039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040 (exit $ac_status); }; } &&
18041 { ac_try='test -s conftest$ac_exeext'
18042 { (case "(($ac_try" in
18043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18044 *) ac_try_echo=$ac_try;;
18046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18047 (eval "$ac_try") 2>&5
18049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18050 (exit $ac_status); }; }; then
18051 ac_cv_lib_gcc___alloca=yes
18053 echo "$as_me: failed program was:" >&5
18054 sed 's/^/| /' conftest.$ac_ext >&5
18056 ac_cv_lib_gcc___alloca=no
18059 rm -f core conftest.err conftest.$ac_objext \
18060 conftest$ac_exeext conftest.$ac_ext
18061 LIBS=$ac_check_lib_save_LIBS
18063 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18064 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18065 if test $ac_cv_lib_gcc___alloca = yes; then
18067 cat >>confdefs.h <<\_ACEOF
18068 #define HAVE___ALLOCA 1
18073 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18074 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18075 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18076 echo $ECHO_N "(cached) $ECHO_C" >&6
18078 ac_check_lib_save_LIBS=$LIBS
18080 cat >conftest.$ac_ext <<_ACEOF
18083 cat confdefs.h >>conftest.$ac_ext
18084 cat >>conftest.$ac_ext <<_ACEOF
18085 /* end confdefs.h. */
18087 /* Override any GCC internal prototype to avoid an error.
18088 Use char because int might match the return type of a GCC
18089 builtin and then its argument prototype would still apply. */
18097 return __chkstk ();
18102 rm -f conftest.$ac_objext conftest$ac_exeext
18103 if { (ac_try="$ac_link"
18104 case "(($ac_try" in
18105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18106 *) ac_try_echo=$ac_try;;
18108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18109 (eval "$ac_link") 2>conftest.er1
18111 grep -v '^ *+' conftest.er1 >conftest.err
18113 cat conftest.err >&5
18114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115 (exit $ac_status); } &&
18116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18117 { (case "(($ac_try" in
18118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18119 *) ac_try_echo=$ac_try;;
18121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18122 (eval "$ac_try") 2>&5
18124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18125 (exit $ac_status); }; } &&
18126 { ac_try='test -s conftest$ac_exeext'
18127 { (case "(($ac_try" in
18128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18129 *) ac_try_echo=$ac_try;;
18131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18132 (eval "$ac_try") 2>&5
18134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135 (exit $ac_status); }; }; then
18136 ac_cv_lib_gcc___chkstk=yes
18138 echo "$as_me: failed program was:" >&5
18139 sed 's/^/| /' conftest.$ac_ext >&5
18141 ac_cv_lib_gcc___chkstk=no
18144 rm -f core conftest.err conftest.$ac_objext \
18145 conftest$ac_exeext conftest.$ac_ext
18146 LIBS=$ac_check_lib_save_LIBS
18148 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18149 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18150 if test $ac_cv_lib_gcc___chkstk = yes; then
18152 cat >>confdefs.h <<\_ACEOF
18153 #define HAVE___CHKSTK 1
18158 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18159 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18160 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18161 echo $ECHO_N "(cached) $ECHO_C" >&6
18163 ac_check_lib_save_LIBS=$LIBS
18165 cat >conftest.$ac_ext <<_ACEOF
18168 cat confdefs.h >>conftest.$ac_ext
18169 cat >>conftest.$ac_ext <<_ACEOF
18170 /* end confdefs.h. */
18172 /* Override any GCC internal prototype to avoid an error.
18173 Use char because int might match the return type of a GCC
18174 builtin and then its argument prototype would still apply. */
18182 return ___chkstk ();
18187 rm -f conftest.$ac_objext conftest$ac_exeext
18188 if { (ac_try="$ac_link"
18189 case "(($ac_try" in
18190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18191 *) ac_try_echo=$ac_try;;
18193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18194 (eval "$ac_link") 2>conftest.er1
18196 grep -v '^ *+' conftest.er1 >conftest.err
18198 cat conftest.err >&5
18199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200 (exit $ac_status); } &&
18201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18202 { (case "(($ac_try" in
18203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18204 *) ac_try_echo=$ac_try;;
18206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18207 (eval "$ac_try") 2>&5
18209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210 (exit $ac_status); }; } &&
18211 { ac_try='test -s conftest$ac_exeext'
18212 { (case "(($ac_try" in
18213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18214 *) ac_try_echo=$ac_try;;
18216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18217 (eval "$ac_try") 2>&5
18219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220 (exit $ac_status); }; }; then
18221 ac_cv_lib_gcc____chkstk=yes
18223 echo "$as_me: failed program was:" >&5
18224 sed 's/^/| /' conftest.$ac_ext >&5
18226 ac_cv_lib_gcc____chkstk=no
18229 rm -f core conftest.err conftest.$ac_objext \
18230 conftest$ac_exeext conftest.$ac_ext
18231 LIBS=$ac_check_lib_save_LIBS
18233 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18234 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18235 if test $ac_cv_lib_gcc____chkstk = yes; then
18237 cat >>confdefs.h <<\_ACEOF
18238 #define HAVE____CHKSTK 1
18244 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18245 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18246 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18247 echo $ECHO_N "(cached) $ECHO_C" >&6
18249 ac_check_lib_save_LIBS=$LIBS
18251 cat >conftest.$ac_ext <<_ACEOF
18254 cat confdefs.h >>conftest.$ac_ext
18255 cat >>conftest.$ac_ext <<_ACEOF
18256 /* end confdefs.h. */
18258 /* Override any GCC internal prototype to avoid an error.
18259 Use char because int might match the return type of a GCC
18260 builtin and then its argument prototype would still apply. */
18268 return __ashldi3 ();
18273 rm -f conftest.$ac_objext conftest$ac_exeext
18274 if { (ac_try="$ac_link"
18275 case "(($ac_try" in
18276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18277 *) ac_try_echo=$ac_try;;
18279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18280 (eval "$ac_link") 2>conftest.er1
18282 grep -v '^ *+' conftest.er1 >conftest.err
18284 cat conftest.err >&5
18285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); } &&
18287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18288 { (case "(($ac_try" in
18289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18290 *) ac_try_echo=$ac_try;;
18292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18293 (eval "$ac_try") 2>&5
18295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296 (exit $ac_status); }; } &&
18297 { ac_try='test -s conftest$ac_exeext'
18298 { (case "(($ac_try" in
18299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18300 *) ac_try_echo=$ac_try;;
18302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18303 (eval "$ac_try") 2>&5
18305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306 (exit $ac_status); }; }; then
18307 ac_cv_lib_gcc___ashldi3=yes
18309 echo "$as_me: failed program was:" >&5
18310 sed 's/^/| /' conftest.$ac_ext >&5
18312 ac_cv_lib_gcc___ashldi3=no
18315 rm -f core conftest.err conftest.$ac_objext \
18316 conftest$ac_exeext conftest.$ac_ext
18317 LIBS=$ac_check_lib_save_LIBS
18319 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18320 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18321 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18323 cat >>confdefs.h <<\_ACEOF
18324 #define HAVE___ASHLDI3 1
18329 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18330 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18331 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18332 echo $ECHO_N "(cached) $ECHO_C" >&6
18334 ac_check_lib_save_LIBS=$LIBS
18336 cat >conftest.$ac_ext <<_ACEOF
18339 cat confdefs.h >>conftest.$ac_ext
18340 cat >>conftest.$ac_ext <<_ACEOF
18341 /* end confdefs.h. */
18343 /* Override any GCC internal prototype to avoid an error.
18344 Use char because int might match the return type of a GCC
18345 builtin and then its argument prototype would still apply. */
18353 return __ashrdi3 ();
18358 rm -f conftest.$ac_objext conftest$ac_exeext
18359 if { (ac_try="$ac_link"
18360 case "(($ac_try" in
18361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18362 *) ac_try_echo=$ac_try;;
18364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18365 (eval "$ac_link") 2>conftest.er1
18367 grep -v '^ *+' conftest.er1 >conftest.err
18369 cat conftest.err >&5
18370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18371 (exit $ac_status); } &&
18372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18373 { (case "(($ac_try" in
18374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18375 *) ac_try_echo=$ac_try;;
18377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18378 (eval "$ac_try") 2>&5
18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381 (exit $ac_status); }; } &&
18382 { ac_try='test -s conftest$ac_exeext'
18383 { (case "(($ac_try" in
18384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18385 *) ac_try_echo=$ac_try;;
18387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18388 (eval "$ac_try") 2>&5
18390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391 (exit $ac_status); }; }; then
18392 ac_cv_lib_gcc___ashrdi3=yes
18394 echo "$as_me: failed program was:" >&5
18395 sed 's/^/| /' conftest.$ac_ext >&5
18397 ac_cv_lib_gcc___ashrdi3=no
18400 rm -f core conftest.err conftest.$ac_objext \
18401 conftest$ac_exeext conftest.$ac_ext
18402 LIBS=$ac_check_lib_save_LIBS
18404 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18405 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18406 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18408 cat >>confdefs.h <<\_ACEOF
18409 #define HAVE___ASHRDI3 1
18414 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18415 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18416 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18417 echo $ECHO_N "(cached) $ECHO_C" >&6
18419 ac_check_lib_save_LIBS=$LIBS
18421 cat >conftest.$ac_ext <<_ACEOF
18424 cat confdefs.h >>conftest.$ac_ext
18425 cat >>conftest.$ac_ext <<_ACEOF
18426 /* end confdefs.h. */
18428 /* Override any GCC internal prototype to avoid an error.
18429 Use char because int might match the return type of a GCC
18430 builtin and then its argument prototype would still apply. */
18438 return __divdi3 ();
18443 rm -f conftest.$ac_objext conftest$ac_exeext
18444 if { (ac_try="$ac_link"
18445 case "(($ac_try" in
18446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18447 *) ac_try_echo=$ac_try;;
18449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18450 (eval "$ac_link") 2>conftest.er1
18452 grep -v '^ *+' conftest.er1 >conftest.err
18454 cat conftest.err >&5
18455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456 (exit $ac_status); } &&
18457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18458 { (case "(($ac_try" in
18459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18460 *) ac_try_echo=$ac_try;;
18462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18463 (eval "$ac_try") 2>&5
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); }; } &&
18467 { ac_try='test -s conftest$ac_exeext'
18468 { (case "(($ac_try" in
18469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18470 *) ac_try_echo=$ac_try;;
18472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18473 (eval "$ac_try") 2>&5
18475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476 (exit $ac_status); }; }; then
18477 ac_cv_lib_gcc___divdi3=yes
18479 echo "$as_me: failed program was:" >&5
18480 sed 's/^/| /' conftest.$ac_ext >&5
18482 ac_cv_lib_gcc___divdi3=no
18485 rm -f core conftest.err conftest.$ac_objext \
18486 conftest$ac_exeext conftest.$ac_ext
18487 LIBS=$ac_check_lib_save_LIBS
18489 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18490 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18491 if test $ac_cv_lib_gcc___divdi3 = yes; then
18493 cat >>confdefs.h <<\_ACEOF
18494 #define HAVE___DIVDI3 1
18499 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18500 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18501 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18502 echo $ECHO_N "(cached) $ECHO_C" >&6
18504 ac_check_lib_save_LIBS=$LIBS
18506 cat >conftest.$ac_ext <<_ACEOF
18509 cat confdefs.h >>conftest.$ac_ext
18510 cat >>conftest.$ac_ext <<_ACEOF
18511 /* end confdefs.h. */
18513 /* Override any GCC internal prototype to avoid an error.
18514 Use char because int might match the return type of a GCC
18515 builtin and then its argument prototype would still apply. */
18523 return __fixdfdi ();
18528 rm -f conftest.$ac_objext conftest$ac_exeext
18529 if { (ac_try="$ac_link"
18530 case "(($ac_try" in
18531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18532 *) ac_try_echo=$ac_try;;
18534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18535 (eval "$ac_link") 2>conftest.er1
18537 grep -v '^ *+' conftest.er1 >conftest.err
18539 cat conftest.err >&5
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); } &&
18542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18543 { (case "(($ac_try" in
18544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18545 *) ac_try_echo=$ac_try;;
18547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18548 (eval "$ac_try") 2>&5
18550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18551 (exit $ac_status); }; } &&
18552 { ac_try='test -s conftest$ac_exeext'
18553 { (case "(($ac_try" in
18554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18555 *) ac_try_echo=$ac_try;;
18557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18558 (eval "$ac_try") 2>&5
18560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561 (exit $ac_status); }; }; then
18562 ac_cv_lib_gcc___fixdfdi=yes
18564 echo "$as_me: failed program was:" >&5
18565 sed 's/^/| /' conftest.$ac_ext >&5
18567 ac_cv_lib_gcc___fixdfdi=no
18570 rm -f core conftest.err conftest.$ac_objext \
18571 conftest$ac_exeext conftest.$ac_ext
18572 LIBS=$ac_check_lib_save_LIBS
18574 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18575 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18576 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18578 cat >>confdefs.h <<\_ACEOF
18579 #define HAVE___FIXDFDI 1
18584 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18585 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18586 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18587 echo $ECHO_N "(cached) $ECHO_C" >&6
18589 ac_check_lib_save_LIBS=$LIBS
18591 cat >conftest.$ac_ext <<_ACEOF
18594 cat confdefs.h >>conftest.$ac_ext
18595 cat >>conftest.$ac_ext <<_ACEOF
18596 /* end confdefs.h. */
18598 /* Override any GCC internal prototype to avoid an error.
18599 Use char because int might match the return type of a GCC
18600 builtin and then its argument prototype would still apply. */
18608 return __fixsfdi ();
18613 rm -f conftest.$ac_objext conftest$ac_exeext
18614 if { (ac_try="$ac_link"
18615 case "(($ac_try" in
18616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18617 *) ac_try_echo=$ac_try;;
18619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18620 (eval "$ac_link") 2>conftest.er1
18622 grep -v '^ *+' conftest.er1 >conftest.err
18624 cat conftest.err >&5
18625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626 (exit $ac_status); } &&
18627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18628 { (case "(($ac_try" in
18629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18630 *) ac_try_echo=$ac_try;;
18632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18633 (eval "$ac_try") 2>&5
18635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636 (exit $ac_status); }; } &&
18637 { ac_try='test -s conftest$ac_exeext'
18638 { (case "(($ac_try" in
18639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18640 *) ac_try_echo=$ac_try;;
18642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18643 (eval "$ac_try") 2>&5
18645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646 (exit $ac_status); }; }; then
18647 ac_cv_lib_gcc___fixsfdi=yes
18649 echo "$as_me: failed program was:" >&5
18650 sed 's/^/| /' conftest.$ac_ext >&5
18652 ac_cv_lib_gcc___fixsfdi=no
18655 rm -f core conftest.err conftest.$ac_objext \
18656 conftest$ac_exeext conftest.$ac_ext
18657 LIBS=$ac_check_lib_save_LIBS
18659 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18660 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18661 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18663 cat >>confdefs.h <<\_ACEOF
18664 #define HAVE___FIXSFDI 1
18669 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18670 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18671 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18672 echo $ECHO_N "(cached) $ECHO_C" >&6
18674 ac_check_lib_save_LIBS=$LIBS
18676 cat >conftest.$ac_ext <<_ACEOF
18679 cat confdefs.h >>conftest.$ac_ext
18680 cat >>conftest.$ac_ext <<_ACEOF
18681 /* end confdefs.h. */
18683 /* Override any GCC internal prototype to avoid an error.
18684 Use char because int might match the return type of a GCC
18685 builtin and then its argument prototype would still apply. */
18689 char __floatdidf ();
18693 return __floatdidf ();
18698 rm -f conftest.$ac_objext conftest$ac_exeext
18699 if { (ac_try="$ac_link"
18700 case "(($ac_try" in
18701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18702 *) ac_try_echo=$ac_try;;
18704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18705 (eval "$ac_link") 2>conftest.er1
18707 grep -v '^ *+' conftest.er1 >conftest.err
18709 cat conftest.err >&5
18710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711 (exit $ac_status); } &&
18712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18713 { (case "(($ac_try" in
18714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18715 *) ac_try_echo=$ac_try;;
18717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18718 (eval "$ac_try") 2>&5
18720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18721 (exit $ac_status); }; } &&
18722 { ac_try='test -s conftest$ac_exeext'
18723 { (case "(($ac_try" in
18724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18725 *) ac_try_echo=$ac_try;;
18727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18728 (eval "$ac_try") 2>&5
18730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731 (exit $ac_status); }; }; then
18732 ac_cv_lib_gcc___floatdidf=yes
18734 echo "$as_me: failed program was:" >&5
18735 sed 's/^/| /' conftest.$ac_ext >&5
18737 ac_cv_lib_gcc___floatdidf=no
18740 rm -f core conftest.err conftest.$ac_objext \
18741 conftest$ac_exeext conftest.$ac_ext
18742 LIBS=$ac_check_lib_save_LIBS
18744 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18745 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18746 if test $ac_cv_lib_gcc___floatdidf = yes; then
18748 cat >>confdefs.h <<\_ACEOF
18749 #define HAVE___FLOATDIDF 1
18754 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18755 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18756 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18757 echo $ECHO_N "(cached) $ECHO_C" >&6
18759 ac_check_lib_save_LIBS=$LIBS
18761 cat >conftest.$ac_ext <<_ACEOF
18764 cat confdefs.h >>conftest.$ac_ext
18765 cat >>conftest.$ac_ext <<_ACEOF
18766 /* end confdefs.h. */
18768 /* Override any GCC internal prototype to avoid an error.
18769 Use char because int might match the return type of a GCC
18770 builtin and then its argument prototype would still apply. */
18778 return __lshrdi3 ();
18783 rm -f conftest.$ac_objext conftest$ac_exeext
18784 if { (ac_try="$ac_link"
18785 case "(($ac_try" in
18786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18787 *) ac_try_echo=$ac_try;;
18789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18790 (eval "$ac_link") 2>conftest.er1
18792 grep -v '^ *+' conftest.er1 >conftest.err
18794 cat conftest.err >&5
18795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796 (exit $ac_status); } &&
18797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18798 { (case "(($ac_try" in
18799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18800 *) ac_try_echo=$ac_try;;
18802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18803 (eval "$ac_try") 2>&5
18805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18806 (exit $ac_status); }; } &&
18807 { ac_try='test -s conftest$ac_exeext'
18808 { (case "(($ac_try" in
18809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18810 *) ac_try_echo=$ac_try;;
18812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18813 (eval "$ac_try") 2>&5
18815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816 (exit $ac_status); }; }; then
18817 ac_cv_lib_gcc___lshrdi3=yes
18819 echo "$as_me: failed program was:" >&5
18820 sed 's/^/| /' conftest.$ac_ext >&5
18822 ac_cv_lib_gcc___lshrdi3=no
18825 rm -f core conftest.err conftest.$ac_objext \
18826 conftest$ac_exeext conftest.$ac_ext
18827 LIBS=$ac_check_lib_save_LIBS
18829 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18830 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18831 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18833 cat >>confdefs.h <<\_ACEOF
18834 #define HAVE___LSHRDI3 1
18839 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18840 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18841 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18842 echo $ECHO_N "(cached) $ECHO_C" >&6
18844 ac_check_lib_save_LIBS=$LIBS
18846 cat >conftest.$ac_ext <<_ACEOF
18849 cat confdefs.h >>conftest.$ac_ext
18850 cat >>conftest.$ac_ext <<_ACEOF
18851 /* end confdefs.h. */
18853 /* Override any GCC internal prototype to avoid an error.
18854 Use char because int might match the return type of a GCC
18855 builtin and then its argument prototype would still apply. */
18863 return __moddi3 ();
18868 rm -f conftest.$ac_objext conftest$ac_exeext
18869 if { (ac_try="$ac_link"
18870 case "(($ac_try" in
18871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18872 *) ac_try_echo=$ac_try;;
18874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18875 (eval "$ac_link") 2>conftest.er1
18877 grep -v '^ *+' conftest.er1 >conftest.err
18879 cat conftest.err >&5
18880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18881 (exit $ac_status); } &&
18882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18883 { (case "(($ac_try" in
18884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18885 *) ac_try_echo=$ac_try;;
18887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18888 (eval "$ac_try") 2>&5
18890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891 (exit $ac_status); }; } &&
18892 { ac_try='test -s conftest$ac_exeext'
18893 { (case "(($ac_try" in
18894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18895 *) ac_try_echo=$ac_try;;
18897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18898 (eval "$ac_try") 2>&5
18900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901 (exit $ac_status); }; }; then
18902 ac_cv_lib_gcc___moddi3=yes
18904 echo "$as_me: failed program was:" >&5
18905 sed 's/^/| /' conftest.$ac_ext >&5
18907 ac_cv_lib_gcc___moddi3=no
18910 rm -f core conftest.err conftest.$ac_objext \
18911 conftest$ac_exeext conftest.$ac_ext
18912 LIBS=$ac_check_lib_save_LIBS
18914 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18915 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18916 if test $ac_cv_lib_gcc___moddi3 = yes; then
18918 cat >>confdefs.h <<\_ACEOF
18919 #define HAVE___MODDI3 1
18924 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18925 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18926 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18927 echo $ECHO_N "(cached) $ECHO_C" >&6
18929 ac_check_lib_save_LIBS=$LIBS
18931 cat >conftest.$ac_ext <<_ACEOF
18934 cat confdefs.h >>conftest.$ac_ext
18935 cat >>conftest.$ac_ext <<_ACEOF
18936 /* end confdefs.h. */
18938 /* Override any GCC internal prototype to avoid an error.
18939 Use char because int might match the return type of a GCC
18940 builtin and then its argument prototype would still apply. */
18948 return __udivdi3 ();
18953 rm -f conftest.$ac_objext conftest$ac_exeext
18954 if { (ac_try="$ac_link"
18955 case "(($ac_try" in
18956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18957 *) ac_try_echo=$ac_try;;
18959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18960 (eval "$ac_link") 2>conftest.er1
18962 grep -v '^ *+' conftest.er1 >conftest.err
18964 cat conftest.err >&5
18965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966 (exit $ac_status); } &&
18967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18968 { (case "(($ac_try" in
18969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18970 *) ac_try_echo=$ac_try;;
18972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18973 (eval "$ac_try") 2>&5
18975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976 (exit $ac_status); }; } &&
18977 { ac_try='test -s conftest$ac_exeext'
18978 { (case "(($ac_try" in
18979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18980 *) ac_try_echo=$ac_try;;
18982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18983 (eval "$ac_try") 2>&5
18985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986 (exit $ac_status); }; }; then
18987 ac_cv_lib_gcc___udivdi3=yes
18989 echo "$as_me: failed program was:" >&5
18990 sed 's/^/| /' conftest.$ac_ext >&5
18992 ac_cv_lib_gcc___udivdi3=no
18995 rm -f core conftest.err conftest.$ac_objext \
18996 conftest$ac_exeext conftest.$ac_ext
18997 LIBS=$ac_check_lib_save_LIBS
18999 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19000 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19001 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19003 cat >>confdefs.h <<\_ACEOF
19004 #define HAVE___UDIVDI3 1
19009 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19010 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19011 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19012 echo $ECHO_N "(cached) $ECHO_C" >&6
19014 ac_check_lib_save_LIBS=$LIBS
19016 cat >conftest.$ac_ext <<_ACEOF
19019 cat confdefs.h >>conftest.$ac_ext
19020 cat >>conftest.$ac_ext <<_ACEOF
19021 /* end confdefs.h. */
19023 /* Override any GCC internal prototype to avoid an error.
19024 Use char because int might match the return type of a GCC
19025 builtin and then its argument prototype would still apply. */
19033 return __umoddi3 ();
19038 rm -f conftest.$ac_objext conftest$ac_exeext
19039 if { (ac_try="$ac_link"
19040 case "(($ac_try" in
19041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19042 *) ac_try_echo=$ac_try;;
19044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19045 (eval "$ac_link") 2>conftest.er1
19047 grep -v '^ *+' conftest.er1 >conftest.err
19049 cat conftest.err >&5
19050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051 (exit $ac_status); } &&
19052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19053 { (case "(($ac_try" in
19054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19055 *) ac_try_echo=$ac_try;;
19057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19058 (eval "$ac_try") 2>&5
19060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); }; } &&
19062 { ac_try='test -s conftest$ac_exeext'
19063 { (case "(($ac_try" in
19064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19065 *) ac_try_echo=$ac_try;;
19067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19068 (eval "$ac_try") 2>&5
19070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071 (exit $ac_status); }; }; then
19072 ac_cv_lib_gcc___umoddi3=yes
19074 echo "$as_me: failed program was:" >&5
19075 sed 's/^/| /' conftest.$ac_ext >&5
19077 ac_cv_lib_gcc___umoddi3=no
19080 rm -f core conftest.err conftest.$ac_objext \
19081 conftest$ac_exeext conftest.$ac_ext
19082 LIBS=$ac_check_lib_save_LIBS
19084 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19085 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19086 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19088 cat >>confdefs.h <<\_ACEOF
19089 #define HAVE___UMODDI3 1
19095 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19096 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19097 if test "${ac_cv_lib_gcc___main+set}" = set; then
19098 echo $ECHO_N "(cached) $ECHO_C" >&6
19100 ac_check_lib_save_LIBS=$LIBS
19102 cat >conftest.$ac_ext <<_ACEOF
19105 cat confdefs.h >>conftest.$ac_ext
19106 cat >>conftest.$ac_ext <<_ACEOF
19107 /* end confdefs.h. */
19109 /* Override any GCC internal prototype to avoid an error.
19110 Use char because int might match the return type of a GCC
19111 builtin and then its argument prototype would still apply. */
19124 rm -f conftest.$ac_objext conftest$ac_exeext
19125 if { (ac_try="$ac_link"
19126 case "(($ac_try" in
19127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19128 *) ac_try_echo=$ac_try;;
19130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19131 (eval "$ac_link") 2>conftest.er1
19133 grep -v '^ *+' conftest.er1 >conftest.err
19135 cat conftest.err >&5
19136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19137 (exit $ac_status); } &&
19138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19139 { (case "(($ac_try" in
19140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19141 *) ac_try_echo=$ac_try;;
19143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19144 (eval "$ac_try") 2>&5
19146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147 (exit $ac_status); }; } &&
19148 { ac_try='test -s conftest$ac_exeext'
19149 { (case "(($ac_try" in
19150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19151 *) ac_try_echo=$ac_try;;
19153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19154 (eval "$ac_try") 2>&5
19156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157 (exit $ac_status); }; }; then
19158 ac_cv_lib_gcc___main=yes
19160 echo "$as_me: failed program was:" >&5
19161 sed 's/^/| /' conftest.$ac_ext >&5
19163 ac_cv_lib_gcc___main=no
19166 rm -f core conftest.err conftest.$ac_objext \
19167 conftest$ac_exeext conftest.$ac_ext
19168 LIBS=$ac_check_lib_save_LIBS
19170 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19171 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19172 if test $ac_cv_lib_gcc___main = yes; then
19174 cat >>confdefs.h <<\_ACEOF
19175 #define HAVE___MAIN 1
19180 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19181 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19182 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19183 echo $ECHO_N "(cached) $ECHO_C" >&6
19185 ac_check_lib_save_LIBS=$LIBS
19187 cat >conftest.$ac_ext <<_ACEOF
19190 cat confdefs.h >>conftest.$ac_ext
19191 cat >>conftest.$ac_ext <<_ACEOF
19192 /* end confdefs.h. */
19194 /* Override any GCC internal prototype to avoid an error.
19195 Use char because int might match the return type of a GCC
19196 builtin and then its argument prototype would still apply. */
19204 return __cmpdi2 ();
19209 rm -f conftest.$ac_objext conftest$ac_exeext
19210 if { (ac_try="$ac_link"
19211 case "(($ac_try" in
19212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19213 *) ac_try_echo=$ac_try;;
19215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19216 (eval "$ac_link") 2>conftest.er1
19218 grep -v '^ *+' conftest.er1 >conftest.err
19220 cat conftest.err >&5
19221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222 (exit $ac_status); } &&
19223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19224 { (case "(($ac_try" in
19225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19226 *) ac_try_echo=$ac_try;;
19228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19229 (eval "$ac_try") 2>&5
19231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232 (exit $ac_status); }; } &&
19233 { ac_try='test -s conftest$ac_exeext'
19234 { (case "(($ac_try" in
19235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19236 *) ac_try_echo=$ac_try;;
19238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19239 (eval "$ac_try") 2>&5
19241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242 (exit $ac_status); }; }; then
19243 ac_cv_lib_gcc___cmpdi2=yes
19245 echo "$as_me: failed program was:" >&5
19246 sed 's/^/| /' conftest.$ac_ext >&5
19248 ac_cv_lib_gcc___cmpdi2=no
19251 rm -f core conftest.err conftest.$ac_objext \
19252 conftest$ac_exeext conftest.$ac_ext
19253 LIBS=$ac_check_lib_save_LIBS
19255 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19256 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19257 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19259 cat >>confdefs.h <<\_ACEOF
19260 #define HAVE___CMPDI2 1
19267 if test "$llvm_cv_os_type" = "MingW" ; then
19268 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19269 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19270 cat >conftest.$ac_ext <<_ACEOF
19271 #include <windows.h>
19272 #include <imagehlp.h>
19273 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19274 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19276 rm -f conftest.$ac_objext
19277 if { (ac_try="$ac_compile"
19278 case "(($ac_try" in
19279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19280 *) ac_try_echo=$ac_try;;
19282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19283 (eval "$ac_compile") 2>conftest.er1
19285 grep -v '^ *+' conftest.er1 >conftest.err
19287 cat conftest.err >&5
19288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289 (exit $ac_status); } &&
19290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19291 { (case "(($ac_try" in
19292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19293 *) ac_try_echo=$ac_try;;
19295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19296 (eval "$ac_try") 2>&5
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); }; } &&
19300 { ac_try='test -s conftest.$ac_objext'
19301 { (case "(($ac_try" in
19302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19303 *) ac_try_echo=$ac_try;;
19305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19306 (eval "$ac_try") 2>&5
19308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309 (exit $ac_status); }; }; then
19311 { echo "$as_me:$LINENO: result: yes" >&5
19312 echo "${ECHO_T}yes" >&6; }
19313 llvm_cv_win32_elmcb_pcstr="PCSTR"
19316 echo "$as_me: failed program was:" >&5
19317 sed 's/^/| /' conftest.$ac_ext >&5
19320 { echo "$as_me:$LINENO: result: no" >&5
19321 echo "${ECHO_T}no" >&6; }
19322 llvm_cv_win32_elmcb_pcstr="PSTR"
19326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19328 cat >>confdefs.h <<_ACEOF
19329 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19335 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19336 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19337 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19338 echo $ECHO_N "(cached) $ECHO_C" >&6
19341 ac_cpp='$CXXCPP $CPPFLAGS'
19342 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19343 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19344 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19346 cat >conftest.$ac_ext <<_ACEOF
19349 cat confdefs.h >>conftest.$ac_ext
19350 cat >>conftest.$ac_ext <<_ACEOF
19351 /* end confdefs.h. */
19361 rm -f conftest.$ac_objext
19362 if { (ac_try="$ac_compile"
19363 case "(($ac_try" in
19364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19365 *) ac_try_echo=$ac_try;;
19367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19368 (eval "$ac_compile") 2>conftest.er1
19370 grep -v '^ *+' conftest.er1 >conftest.err
19372 cat conftest.err >&5
19373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374 (exit $ac_status); } &&
19375 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19376 { (case "(($ac_try" in
19377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19378 *) ac_try_echo=$ac_try;;
19380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19381 (eval "$ac_try") 2>&5
19383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384 (exit $ac_status); }; } &&
19385 { ac_try='test -s conftest.$ac_objext'
19386 { (case "(($ac_try" in
19387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19388 *) ac_try_echo=$ac_try;;
19390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19391 (eval "$ac_try") 2>&5
19393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 (exit $ac_status); }; }; then
19395 ac_cv_func_isnan_in_math_h=yes
19397 echo "$as_me: failed program was:" >&5
19398 sed 's/^/| /' conftest.$ac_ext >&5
19400 ac_cv_func_isnan_in_math_h=no
19403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19405 ac_cpp='$CPP $CPPFLAGS'
19406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19411 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19412 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19415 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19417 cat >>confdefs.h <<\_ACEOF
19418 #define HAVE_ISNAN_IN_MATH_H 1
19423 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19424 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19425 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19426 echo $ECHO_N "(cached) $ECHO_C" >&6
19429 ac_cpp='$CXXCPP $CPPFLAGS'
19430 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19431 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19432 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19434 cat >conftest.$ac_ext <<_ACEOF
19437 cat confdefs.h >>conftest.$ac_ext
19438 cat >>conftest.$ac_ext <<_ACEOF
19439 /* end confdefs.h. */
19449 rm -f conftest.$ac_objext
19450 if { (ac_try="$ac_compile"
19451 case "(($ac_try" in
19452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19453 *) ac_try_echo=$ac_try;;
19455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19456 (eval "$ac_compile") 2>conftest.er1
19458 grep -v '^ *+' conftest.er1 >conftest.err
19460 cat conftest.err >&5
19461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462 (exit $ac_status); } &&
19463 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19464 { (case "(($ac_try" in
19465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19466 *) ac_try_echo=$ac_try;;
19468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19469 (eval "$ac_try") 2>&5
19471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472 (exit $ac_status); }; } &&
19473 { ac_try='test -s conftest.$ac_objext'
19474 { (case "(($ac_try" in
19475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19476 *) ac_try_echo=$ac_try;;
19478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19479 (eval "$ac_try") 2>&5
19481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482 (exit $ac_status); }; }; then
19483 ac_cv_func_isnan_in_cmath=yes
19485 echo "$as_me: failed program was:" >&5
19486 sed 's/^/| /' conftest.$ac_ext >&5
19488 ac_cv_func_isnan_in_cmath=no
19491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19493 ac_cpp='$CPP $CPPFLAGS'
19494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19499 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19500 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19502 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19504 cat >>confdefs.h <<\_ACEOF
19505 #define HAVE_ISNAN_IN_CMATH 1
19510 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19511 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19512 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19513 echo $ECHO_N "(cached) $ECHO_C" >&6
19516 ac_cpp='$CXXCPP $CPPFLAGS'
19517 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19518 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19519 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19521 cat >conftest.$ac_ext <<_ACEOF
19524 cat confdefs.h >>conftest.$ac_ext
19525 cat >>conftest.$ac_ext <<_ACEOF
19526 /* end confdefs.h. */
19531 float f; std::isnan(f);
19536 rm -f conftest.$ac_objext
19537 if { (ac_try="$ac_compile"
19538 case "(($ac_try" in
19539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19540 *) ac_try_echo=$ac_try;;
19542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19543 (eval "$ac_compile") 2>conftest.er1
19545 grep -v '^ *+' conftest.er1 >conftest.err
19547 cat conftest.err >&5
19548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549 (exit $ac_status); } &&
19550 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19551 { (case "(($ac_try" in
19552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19553 *) ac_try_echo=$ac_try;;
19555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19556 (eval "$ac_try") 2>&5
19558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559 (exit $ac_status); }; } &&
19560 { ac_try='test -s conftest.$ac_objext'
19561 { (case "(($ac_try" in
19562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19563 *) ac_try_echo=$ac_try;;
19565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19566 (eval "$ac_try") 2>&5
19568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569 (exit $ac_status); }; }; then
19570 ac_cv_func_std_isnan_in_cmath=yes
19572 echo "$as_me: failed program was:" >&5
19573 sed 's/^/| /' conftest.$ac_ext >&5
19575 ac_cv_func_std_isnan_in_cmath=no
19578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19580 ac_cpp='$CPP $CPPFLAGS'
19581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19586 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19587 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19589 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19591 cat >>confdefs.h <<\_ACEOF
19592 #define HAVE_STD_ISNAN_IN_CMATH 1
19598 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19599 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19600 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19601 echo $ECHO_N "(cached) $ECHO_C" >&6
19604 ac_cpp='$CXXCPP $CPPFLAGS'
19605 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19606 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19607 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19609 cat >conftest.$ac_ext <<_ACEOF
19612 cat confdefs.h >>conftest.$ac_ext
19613 cat >>conftest.$ac_ext <<_ACEOF
19614 /* end confdefs.h. */
19624 rm -f conftest.$ac_objext
19625 if { (ac_try="$ac_compile"
19626 case "(($ac_try" in
19627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19628 *) ac_try_echo=$ac_try;;
19630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19631 (eval "$ac_compile") 2>conftest.er1
19633 grep -v '^ *+' conftest.er1 >conftest.err
19635 cat conftest.err >&5
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); } &&
19638 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19639 { (case "(($ac_try" in
19640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19641 *) ac_try_echo=$ac_try;;
19643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19644 (eval "$ac_try") 2>&5
19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 (exit $ac_status); }; } &&
19648 { ac_try='test -s conftest.$ac_objext'
19649 { (case "(($ac_try" in
19650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19651 *) ac_try_echo=$ac_try;;
19653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19654 (eval "$ac_try") 2>&5
19656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657 (exit $ac_status); }; }; then
19658 ac_cv_func_isinf_in_math_h=yes
19660 echo "$as_me: failed program was:" >&5
19661 sed 's/^/| /' conftest.$ac_ext >&5
19663 ac_cv_func_isinf_in_math_h=no
19666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19668 ac_cpp='$CPP $CPPFLAGS'
19669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19674 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19675 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19677 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19679 cat >>confdefs.h <<\_ACEOF
19680 #define HAVE_ISINF_IN_MATH_H 1
19685 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19686 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19687 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19688 echo $ECHO_N "(cached) $ECHO_C" >&6
19691 ac_cpp='$CXXCPP $CPPFLAGS'
19692 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19693 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19694 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19696 cat >conftest.$ac_ext <<_ACEOF
19699 cat confdefs.h >>conftest.$ac_ext
19700 cat >>conftest.$ac_ext <<_ACEOF
19701 /* end confdefs.h. */
19711 rm -f conftest.$ac_objext
19712 if { (ac_try="$ac_compile"
19713 case "(($ac_try" in
19714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19715 *) ac_try_echo=$ac_try;;
19717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19718 (eval "$ac_compile") 2>conftest.er1
19720 grep -v '^ *+' conftest.er1 >conftest.err
19722 cat conftest.err >&5
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 (exit $ac_status); } &&
19725 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19726 { (case "(($ac_try" in
19727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19728 *) ac_try_echo=$ac_try;;
19730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19731 (eval "$ac_try") 2>&5
19733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734 (exit $ac_status); }; } &&
19735 { ac_try='test -s conftest.$ac_objext'
19736 { (case "(($ac_try" in
19737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19738 *) ac_try_echo=$ac_try;;
19740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19741 (eval "$ac_try") 2>&5
19743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744 (exit $ac_status); }; }; then
19745 ac_cv_func_isinf_in_cmath=yes
19747 echo "$as_me: failed program was:" >&5
19748 sed 's/^/| /' conftest.$ac_ext >&5
19750 ac_cv_func_isinf_in_cmath=no
19753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19755 ac_cpp='$CPP $CPPFLAGS'
19756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19761 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19762 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19764 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19766 cat >>confdefs.h <<\_ACEOF
19767 #define HAVE_ISINF_IN_CMATH 1
19772 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19773 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19774 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19775 echo $ECHO_N "(cached) $ECHO_C" >&6
19778 ac_cpp='$CXXCPP $CPPFLAGS'
19779 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19780 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19781 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19783 cat >conftest.$ac_ext <<_ACEOF
19786 cat confdefs.h >>conftest.$ac_ext
19787 cat >>conftest.$ac_ext <<_ACEOF
19788 /* end confdefs.h. */
19793 float f; std::isinf(f);
19798 rm -f conftest.$ac_objext
19799 if { (ac_try="$ac_compile"
19800 case "(($ac_try" in
19801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19802 *) ac_try_echo=$ac_try;;
19804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19805 (eval "$ac_compile") 2>conftest.er1
19807 grep -v '^ *+' conftest.er1 >conftest.err
19809 cat conftest.err >&5
19810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811 (exit $ac_status); } &&
19812 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19813 { (case "(($ac_try" in
19814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19815 *) ac_try_echo=$ac_try;;
19817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19818 (eval "$ac_try") 2>&5
19820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821 (exit $ac_status); }; } &&
19822 { ac_try='test -s conftest.$ac_objext'
19823 { (case "(($ac_try" in
19824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19825 *) ac_try_echo=$ac_try;;
19827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19828 (eval "$ac_try") 2>&5
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); }; }; then
19832 ac_cv_func_std_isinf_in_cmath=yes
19834 echo "$as_me: failed program was:" >&5
19835 sed 's/^/| /' conftest.$ac_ext >&5
19837 ac_cv_func_std_isinf_in_cmath=no
19840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19842 ac_cpp='$CPP $CPPFLAGS'
19843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19848 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19849 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19851 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19853 cat >>confdefs.h <<\_ACEOF
19854 #define HAVE_STD_ISINF_IN_CMATH 1
19859 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19860 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19861 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19862 echo $ECHO_N "(cached) $ECHO_C" >&6
19865 ac_cpp='$CXXCPP $CPPFLAGS'
19866 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19867 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19868 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19870 cat >conftest.$ac_ext <<_ACEOF
19873 cat confdefs.h >>conftest.$ac_ext
19874 cat >>conftest.$ac_ext <<_ACEOF
19875 /* end confdefs.h. */
19876 #include <ieeefp.h>
19880 float f; finite(f);
19885 rm -f conftest.$ac_objext
19886 if { (ac_try="$ac_compile"
19887 case "(($ac_try" in
19888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19889 *) ac_try_echo=$ac_try;;
19891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19892 (eval "$ac_compile") 2>conftest.er1
19894 grep -v '^ *+' conftest.er1 >conftest.err
19896 cat conftest.err >&5
19897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19898 (exit $ac_status); } &&
19899 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19900 { (case "(($ac_try" in
19901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19902 *) ac_try_echo=$ac_try;;
19904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19905 (eval "$ac_try") 2>&5
19907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908 (exit $ac_status); }; } &&
19909 { ac_try='test -s conftest.$ac_objext'
19910 { (case "(($ac_try" in
19911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19912 *) ac_try_echo=$ac_try;;
19914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19915 (eval "$ac_try") 2>&5
19917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19918 (exit $ac_status); }; }; then
19919 ac_cv_func_finite_in_ieeefp_h=yes
19921 echo "$as_me: failed program was:" >&5
19922 sed 's/^/| /' conftest.$ac_ext >&5
19924 ac_cv_func_finite_in_ieeefp_h=no
19927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19929 ac_cpp='$CPP $CPPFLAGS'
19930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19935 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19936 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19938 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19940 cat >>confdefs.h <<\_ACEOF
19941 #define HAVE_FINITE_IN_IEEEFP_H 1
19948 if test "$llvm_cv_platform_type" = "Unix" ; then
19951 for ac_header in stdlib.h unistd.h
19953 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19955 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19958 echo $ECHO_N "(cached) $ECHO_C" >&6
19960 ac_res=`eval echo '${'$as_ac_Header'}'`
19961 { echo "$as_me:$LINENO: result: $ac_res" >&5
19962 echo "${ECHO_T}$ac_res" >&6; }
19964 # Is the header compilable?
19965 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19966 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19967 cat >conftest.$ac_ext <<_ACEOF
19970 cat confdefs.h >>conftest.$ac_ext
19971 cat >>conftest.$ac_ext <<_ACEOF
19972 /* end confdefs.h. */
19973 $ac_includes_default
19974 #include <$ac_header>
19976 rm -f conftest.$ac_objext
19977 if { (ac_try="$ac_compile"
19978 case "(($ac_try" in
19979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19980 *) ac_try_echo=$ac_try;;
19982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19983 (eval "$ac_compile") 2>conftest.er1
19985 grep -v '^ *+' conftest.er1 >conftest.err
19987 cat conftest.err >&5
19988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989 (exit $ac_status); } &&
19990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19991 { (case "(($ac_try" in
19992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19993 *) ac_try_echo=$ac_try;;
19995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19996 (eval "$ac_try") 2>&5
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); }; } &&
20000 { ac_try='test -s conftest.$ac_objext'
20001 { (case "(($ac_try" in
20002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20003 *) ac_try_echo=$ac_try;;
20005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20006 (eval "$ac_try") 2>&5
20008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009 (exit $ac_status); }; }; then
20010 ac_header_compiler=yes
20012 echo "$as_me: failed program was:" >&5
20013 sed 's/^/| /' conftest.$ac_ext >&5
20015 ac_header_compiler=no
20018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20019 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20020 echo "${ECHO_T}$ac_header_compiler" >&6; }
20022 # Is the header present?
20023 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20024 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20025 cat >conftest.$ac_ext <<_ACEOF
20028 cat confdefs.h >>conftest.$ac_ext
20029 cat >>conftest.$ac_ext <<_ACEOF
20030 /* end confdefs.h. */
20031 #include <$ac_header>
20033 if { (ac_try="$ac_cpp conftest.$ac_ext"
20034 case "(($ac_try" in
20035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20036 *) ac_try_echo=$ac_try;;
20038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20039 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20041 grep -v '^ *+' conftest.er1 >conftest.err
20043 cat conftest.err >&5
20044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045 (exit $ac_status); } >/dev/null; then
20046 if test -s conftest.err; then
20047 ac_cpp_err=$ac_c_preproc_warn_flag
20048 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20055 if test -z "$ac_cpp_err"; then
20056 ac_header_preproc=yes
20058 echo "$as_me: failed program was:" >&5
20059 sed 's/^/| /' conftest.$ac_ext >&5
20061 ac_header_preproc=no
20064 rm -f conftest.err conftest.$ac_ext
20065 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20066 echo "${ECHO_T}$ac_header_preproc" >&6; }
20068 # So? What about this header?
20069 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20071 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20072 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20074 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20075 ac_header_preproc=yes
20078 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20079 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20080 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20081 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20082 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20083 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20084 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20085 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20087 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20088 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20089 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20091 ## ------------------------------------ ##
20092 ## Report this to http://llvm.org/bugs/ ##
20093 ## ------------------------------------ ##
20095 ) | sed "s/^/$as_me: WARNING: /" >&2
20098 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20101 echo $ECHO_N "(cached) $ECHO_C" >&6
20103 eval "$as_ac_Header=\$ac_header_preproc"
20105 ac_res=`eval echo '${'$as_ac_Header'}'`
20106 { echo "$as_me:$LINENO: result: $ac_res" >&5
20107 echo "${ECHO_T}$ac_res" >&6; }
20110 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20111 cat >>confdefs.h <<_ACEOF
20112 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20120 for ac_func in getpagesize
20122 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20123 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20124 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20125 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20126 echo $ECHO_N "(cached) $ECHO_C" >&6
20128 cat >conftest.$ac_ext <<_ACEOF
20131 cat confdefs.h >>conftest.$ac_ext
20132 cat >>conftest.$ac_ext <<_ACEOF
20133 /* end confdefs.h. */
20134 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20136 #define $ac_func innocuous_$ac_func
20138 /* System header to define __stub macros and hopefully few prototypes,
20139 which can conflict with char $ac_func (); below.
20140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20141 <limits.h> exists even on freestanding compilers. */
20144 # include <limits.h>
20146 # include <assert.h>
20151 /* Override any GCC internal prototype to avoid an error.
20152 Use char because int might match the return type of a GCC
20153 builtin and then its argument prototype would still apply. */
20158 /* The GNU C library defines this for functions which it implements
20159 to always fail with ENOSYS. Some functions are actually named
20160 something starting with __ and the normal name is an alias. */
20161 #if defined __stub_$ac_func || defined __stub___$ac_func
20168 return $ac_func ();
20173 rm -f conftest.$ac_objext conftest$ac_exeext
20174 if { (ac_try="$ac_link"
20175 case "(($ac_try" in
20176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20177 *) ac_try_echo=$ac_try;;
20179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20180 (eval "$ac_link") 2>conftest.er1
20182 grep -v '^ *+' conftest.er1 >conftest.err
20184 cat conftest.err >&5
20185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186 (exit $ac_status); } &&
20187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20188 { (case "(($ac_try" in
20189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20190 *) ac_try_echo=$ac_try;;
20192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20193 (eval "$ac_try") 2>&5
20195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196 (exit $ac_status); }; } &&
20197 { ac_try='test -s conftest$ac_exeext'
20198 { (case "(($ac_try" in
20199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20200 *) ac_try_echo=$ac_try;;
20202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20203 (eval "$ac_try") 2>&5
20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206 (exit $ac_status); }; }; then
20207 eval "$as_ac_var=yes"
20209 echo "$as_me: failed program was:" >&5
20210 sed 's/^/| /' conftest.$ac_ext >&5
20212 eval "$as_ac_var=no"
20215 rm -f core conftest.err conftest.$ac_objext \
20216 conftest$ac_exeext conftest.$ac_ext
20218 ac_res=`eval echo '${'$as_ac_var'}'`
20219 { echo "$as_me:$LINENO: result: $ac_res" >&5
20220 echo "${ECHO_T}$ac_res" >&6; }
20221 if test `eval echo '${'$as_ac_var'}'` = yes; then
20222 cat >>confdefs.h <<_ACEOF
20223 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20229 { echo "$as_me:$LINENO: checking for working mmap" >&5
20230 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20231 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20232 echo $ECHO_N "(cached) $ECHO_C" >&6
20234 if test "$cross_compiling" = yes; then
20235 ac_cv_func_mmap_fixed_mapped=no
20237 cat >conftest.$ac_ext <<_ACEOF
20240 cat confdefs.h >>conftest.$ac_ext
20241 cat >>conftest.$ac_ext <<_ACEOF
20242 /* end confdefs.h. */
20243 $ac_includes_default
20244 /* malloc might have been renamed as rpl_malloc. */
20247 /* Thanks to Mike Haertel and Jim Avera for this test.
20248 Here is a matrix of mmap possibilities:
20249 mmap private not fixed
20250 mmap private fixed at somewhere currently unmapped
20251 mmap private fixed at somewhere already mapped
20252 mmap shared not fixed
20253 mmap shared fixed at somewhere currently unmapped
20254 mmap shared fixed at somewhere already mapped
20255 For private mappings, we should verify that changes cannot be read()
20256 back from the file, nor mmap's back from the file at a different
20257 address. (There have been systems where private was not correctly
20258 implemented like the infamous i386 svr4.0, and systems where the
20259 VM page cache was not coherent with the file system buffer cache
20260 like early versions of FreeBSD and possibly contemporary NetBSD.)
20261 For shared mappings, we should conversely verify that changes get
20262 propagated back to all the places they're supposed to be.
20264 Grep wants private fixed already mapped.
20265 The main things grep needs to know about mmap are:
20266 * does it exist and is it safe to write into the mmap'd area
20267 * how to use it (BSD variants) */
20270 #include <sys/mman.h>
20272 #if !STDC_HEADERS && !HAVE_STDLIB_H
20276 /* This mess was copied from the GNU getpagesize.h. */
20277 #if !HAVE_GETPAGESIZE
20278 /* Assume that all systems that can run configure have sys/param.h. */
20279 # if !HAVE_SYS_PARAM_H
20280 # define HAVE_SYS_PARAM_H 1
20283 # ifdef _SC_PAGESIZE
20284 # define getpagesize() sysconf(_SC_PAGESIZE)
20285 # else /* no _SC_PAGESIZE */
20286 # if HAVE_SYS_PARAM_H
20287 # include <sys/param.h>
20288 # ifdef EXEC_PAGESIZE
20289 # define getpagesize() EXEC_PAGESIZE
20290 # else /* no EXEC_PAGESIZE */
20292 # define getpagesize() NBPG * CLSIZE
20295 # endif /* no CLSIZE */
20296 # else /* no NBPG */
20298 # define getpagesize() NBPC
20299 # else /* no NBPC */
20301 # define getpagesize() PAGESIZE
20302 # endif /* PAGESIZE */
20303 # endif /* no NBPC */
20304 # endif /* no NBPG */
20305 # endif /* no EXEC_PAGESIZE */
20306 # else /* no HAVE_SYS_PARAM_H */
20307 # define getpagesize() 8192 /* punt totally */
20308 # endif /* no HAVE_SYS_PARAM_H */
20309 # endif /* no _SC_PAGESIZE */
20311 #endif /* no HAVE_GETPAGESIZE */
20316 char *data, *data2, *data3;
20320 pagesize = getpagesize ();
20322 /* First, make a file with some known garbage in it. */
20323 data = (char *) malloc (pagesize);
20326 for (i = 0; i < pagesize; ++i)
20327 *(data + i) = rand ();
20329 fd = creat ("conftest.mmap", 0600);
20332 if (write (fd, data, pagesize) != pagesize)
20336 /* Next, try to mmap the file at a fixed address which already has
20337 something else allocated at it. If we can, also make sure that
20338 we see the same garbage. */
20339 fd = open ("conftest.mmap", O_RDWR);
20342 data2 = (char *) malloc (2 * pagesize);
20345 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20346 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20347 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20349 for (i = 0; i < pagesize; ++i)
20350 if (*(data + i) != *(data2 + i))
20353 /* Finally, make sure that changes to the mapped area do not
20354 percolate back to the file as seen by read(). (This is a bug on
20355 some variants of i386 svr4.0.) */
20356 for (i = 0; i < pagesize; ++i)
20357 *(data2 + i) = *(data2 + i) + 1;
20358 data3 = (char *) malloc (pagesize);
20361 if (read (fd, data3, pagesize) != pagesize)
20363 for (i = 0; i < pagesize; ++i)
20364 if (*(data + i) != *(data3 + i))
20370 rm -f conftest$ac_exeext
20371 if { (ac_try="$ac_link"
20372 case "(($ac_try" in
20373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20374 *) ac_try_echo=$ac_try;;
20376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20377 (eval "$ac_link") 2>&5
20379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20381 { (case "(($ac_try" in
20382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20383 *) ac_try_echo=$ac_try;;
20385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20386 (eval "$ac_try") 2>&5
20388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389 (exit $ac_status); }; }; then
20390 ac_cv_func_mmap_fixed_mapped=yes
20392 echo "$as_me: program exited with status $ac_status" >&5
20393 echo "$as_me: failed program was:" >&5
20394 sed 's/^/| /' conftest.$ac_ext >&5
20396 ( exit $ac_status )
20397 ac_cv_func_mmap_fixed_mapped=no
20399 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20404 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20405 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20406 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20408 cat >>confdefs.h <<\_ACEOF
20409 #define HAVE_MMAP 1
20413 rm -f conftest.mmap
20415 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20416 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20417 if test "${ac_cv_func_mmap_file+set}" = set; then
20418 echo $ECHO_N "(cached) $ECHO_C" >&6
20421 ac_cpp='$CPP $CPPFLAGS'
20422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20426 if test "$cross_compiling" = yes; then
20427 ac_cv_func_mmap_file=no
20429 cat >conftest.$ac_ext <<_ACEOF
20433 cat confdefs.h >>conftest.$ac_ext
20434 cat >>conftest.$ac_ext <<_ACEOF
20435 /* end confdefs.h. */
20437 #include <sys/types.h>
20438 #include <sys/mman.h>
20446 fd = creat ("foo",0777);
20447 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20449 return (fd != (int) MAP_FAILED);
20454 rm -f conftest$ac_exeext
20455 if { (ac_try="$ac_link"
20456 case "(($ac_try" in
20457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20458 *) ac_try_echo=$ac_try;;
20460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20461 (eval "$ac_link") 2>&5
20463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20465 { (case "(($ac_try" in
20466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20467 *) ac_try_echo=$ac_try;;
20469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20470 (eval "$ac_try") 2>&5
20472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473 (exit $ac_status); }; }; then
20474 ac_cv_func_mmap_file=yes
20476 echo "$as_me: program exited with status $ac_status" >&5
20477 echo "$as_me: failed program was:" >&5
20478 sed 's/^/| /' conftest.$ac_ext >&5
20480 ( exit $ac_status )
20481 ac_cv_func_mmap_file=no
20483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20488 ac_cpp='$CPP $CPPFLAGS'
20489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20495 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20496 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20497 if test "$ac_cv_func_mmap_file" = yes; then
20499 cat >>confdefs.h <<\_ACEOF
20500 #define HAVE_MMAP_FILE
20507 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20508 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20509 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20510 echo $ECHO_N "(cached) $ECHO_C" >&6
20512 if test "$llvm_cv_os_type" = "Interix" ; then
20513 ac_cv_need_dev_zero_for_mmap=yes
20515 ac_cv_need_dev_zero_for_mmap=no
20519 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20520 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20521 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20523 cat >>confdefs.h <<\_ACEOF
20524 #define NEED_DEV_ZERO_FOR_MMAP 1
20529 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20531 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20532 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20534 if test "$ac_cv_func_mmap_file" = "no"
20536 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20537 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20541 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20542 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20544 ac_cpp='$CXXCPP $CPPFLAGS'
20545 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20546 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20547 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20549 cat >conftest.$ac_ext <<_ACEOF
20552 cat confdefs.h >>conftest.$ac_ext
20553 cat >>conftest.$ac_ext <<_ACEOF
20554 /* end confdefs.h. */
20556 volatile unsigned long val = 1;
20557 __sync_synchronize();
20558 __sync_val_compare_and_swap(&val, 1, 0);
20559 __sync_add_and_fetch(&val, 1);
20560 __sync_sub_and_fetch(&val, 1);
20565 rm -f conftest.$ac_objext conftest$ac_exeext
20566 if { (ac_try="$ac_link"
20567 case "(($ac_try" in
20568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20569 *) ac_try_echo=$ac_try;;
20571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20572 (eval "$ac_link") 2>conftest.er1
20574 grep -v '^ *+' conftest.er1 >conftest.err
20576 cat conftest.err >&5
20577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20578 (exit $ac_status); } &&
20579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20580 { (case "(($ac_try" in
20581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20582 *) ac_try_echo=$ac_try;;
20584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20585 (eval "$ac_try") 2>&5
20587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20588 (exit $ac_status); }; } &&
20589 { ac_try='test -s conftest$ac_exeext'
20590 { (case "(($ac_try" in
20591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20592 *) ac_try_echo=$ac_try;;
20594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20595 (eval "$ac_try") 2>&5
20597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20598 (exit $ac_status); }; }; then
20600 ac_cpp='$CPP $CPPFLAGS'
20601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20605 { echo "$as_me:$LINENO: result: yes" >&5
20606 echo "${ECHO_T}yes" >&6; }
20608 cat >>confdefs.h <<\_ACEOF
20609 #define LLVM_HAS_ATOMICS 1
20613 echo "$as_me: failed program was:" >&5
20614 sed 's/^/| /' conftest.$ac_ext >&5
20616 { echo "$as_me:$LINENO: result: no" >&5
20617 echo "${ECHO_T}no" >&6; }
20619 cat >>confdefs.h <<\_ACEOF
20620 #define LLVM_HAS_ATOMICS 0
20623 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20624 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20627 rm -f core conftest.err conftest.$ac_objext \
20628 conftest$ac_exeext conftest.$ac_ext
20631 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20632 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20633 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20634 if test "${llvm_cv_linux_mixed+set}" = set; then
20635 echo $ECHO_N "(cached) $ECHO_C" >&6
20638 ac_cpp='$CPP $CPPFLAGS'
20639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20643 cat >conftest.$ac_ext <<_ACEOF
20646 cat confdefs.h >>conftest.$ac_ext
20647 cat >>conftest.$ac_ext <<_ACEOF
20648 /* end confdefs.h. */
20650 error: Not x86-64 even if uname says so!
20661 rm -f conftest.$ac_objext
20662 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
20670 grep -v '^ *+' conftest.er1 >conftest.err
20672 cat conftest.err >&5
20673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674 (exit $ac_status); } &&
20675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20676 { (case "(($ac_try" in
20677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20678 *) ac_try_echo=$ac_try;;
20680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20681 (eval "$ac_try") 2>&5
20683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684 (exit $ac_status); }; } &&
20685 { ac_try='test -s conftest.$ac_objext'
20686 { (case "(($ac_try" in
20687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20688 *) ac_try_echo=$ac_try;;
20690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20691 (eval "$ac_try") 2>&5
20693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694 (exit $ac_status); }; }; then
20695 llvm_cv_linux_mixed=no
20697 echo "$as_me: failed program was:" >&5
20698 sed 's/^/| /' conftest.$ac_ext >&5
20700 llvm_cv_linux_mixed=yes
20703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20705 ac_cpp='$CPP $CPPFLAGS'
20706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20712 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20713 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20715 if test "$llvm_cv_linux_mixed" = "yes"; then
20716 llvm_cv_target_arch="x86"
20722 for ac_func in __dso_handle
20724 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20725 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20727 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20728 echo $ECHO_N "(cached) $ECHO_C" >&6
20730 cat >conftest.$ac_ext <<_ACEOF
20733 cat confdefs.h >>conftest.$ac_ext
20734 cat >>conftest.$ac_ext <<_ACEOF
20735 /* end confdefs.h. */
20736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20738 #define $ac_func innocuous_$ac_func
20740 /* System header to define __stub macros and hopefully few prototypes,
20741 which can conflict with char $ac_func (); below.
20742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20743 <limits.h> exists even on freestanding compilers. */
20746 # include <limits.h>
20748 # include <assert.h>
20753 /* Override any GCC internal prototype to avoid an error.
20754 Use char because int might match the return type of a GCC
20755 builtin and then its argument prototype would still apply. */
20760 /* The GNU C library defines this for functions which it implements
20761 to always fail with ENOSYS. Some functions are actually named
20762 something starting with __ and the normal name is an alias. */
20763 #if defined __stub_$ac_func || defined __stub___$ac_func
20770 return $ac_func ();
20775 rm -f conftest.$ac_objext conftest$ac_exeext
20776 if { (ac_try="$ac_link"
20777 case "(($ac_try" in
20778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20779 *) ac_try_echo=$ac_try;;
20781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20782 (eval "$ac_link") 2>conftest.er1
20784 grep -v '^ *+' conftest.er1 >conftest.err
20786 cat conftest.err >&5
20787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788 (exit $ac_status); } &&
20789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20790 { (case "(($ac_try" in
20791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20792 *) ac_try_echo=$ac_try;;
20794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20795 (eval "$ac_try") 2>&5
20797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798 (exit $ac_status); }; } &&
20799 { ac_try='test -s conftest$ac_exeext'
20800 { (case "(($ac_try" in
20801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20802 *) ac_try_echo=$ac_try;;
20804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20805 (eval "$ac_try") 2>&5
20807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20808 (exit $ac_status); }; }; then
20809 eval "$as_ac_var=yes"
20811 echo "$as_me: failed program was:" >&5
20812 sed 's/^/| /' conftest.$ac_ext >&5
20814 eval "$as_ac_var=no"
20817 rm -f core conftest.err conftest.$ac_objext \
20818 conftest$ac_exeext conftest.$ac_ext
20820 ac_res=`eval echo '${'$as_ac_var'}'`
20821 { echo "$as_me:$LINENO: result: $ac_res" >&5
20822 echo "${ECHO_T}$ac_res" >&6; }
20823 if test `eval echo '${'$as_ac_var'}'` = yes; then
20824 cat >>confdefs.h <<_ACEOF
20825 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20832 SHLIBEXT=$libltdl_cv_shlibext
20835 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20838 if test "${prefix}" = "NONE" ; then
20839 prefix="/usr/local"
20841 eval LLVM_PREFIX="${prefix}";
20842 eval LLVM_BINDIR="${prefix}/bin";
20843 eval LLVM_LIBDIR="${prefix}/lib";
20844 eval LLVM_DATADIR="${prefix}/share/llvm";
20845 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20846 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20847 eval LLVM_INCLUDEDIR="${prefix}/include";
20848 eval LLVM_INFODIR="${prefix}/info";
20849 eval LLVM_MANDIR="${prefix}/man";
20850 LLVM_CONFIGTIME=`date`
20862 if test "${ENABLE_TIMESTAMPS}" = "0"; then
20863 LLVM_CONFIGTIME="(timestamp not enabled)"
20867 cat >>confdefs.h <<_ACEOF
20868 #define LLVM_PREFIX "$LLVM_PREFIX"
20872 cat >>confdefs.h <<_ACEOF
20873 #define LLVM_BINDIR "$LLVM_BINDIR"
20877 cat >>confdefs.h <<_ACEOF
20878 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20882 cat >>confdefs.h <<_ACEOF
20883 #define LLVM_DATADIR "$LLVM_DATADIR"
20887 cat >>confdefs.h <<_ACEOF
20888 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20892 cat >>confdefs.h <<_ACEOF
20893 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20897 cat >>confdefs.h <<_ACEOF
20898 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20902 cat >>confdefs.h <<_ACEOF
20903 #define LLVM_INFODIR "$LLVM_INFODIR"
20907 cat >>confdefs.h <<_ACEOF
20908 #define LLVM_MANDIR "$LLVM_MANDIR"
20912 cat >>confdefs.h <<_ACEOF
20913 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20917 cat >>confdefs.h <<_ACEOF
20918 #define LLVM_HOSTTRIPLE "$host"
20922 cat >>confdefs.h <<_ACEOF
20923 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20927 if test "$BINDINGS_TO_BUILD" = auto ; then
20928 BINDINGS_TO_BUILD=""
20929 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20930 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20933 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20939 binding_prereqs_failed=0
20940 for a_binding in $BINDINGS_TO_BUILD ; do
20941 case "$a_binding" in
20943 if test "x$OCAMLC" = x ; then
20944 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20945 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20946 binding_prereqs_failed=1
20948 if test "x$OCAMLDEP" = x ; then
20949 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20950 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20951 binding_prereqs_failed=1
20953 if test "x$OCAMLOPT" = x ; then
20954 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20955 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20957 if test "x$with_ocaml_libdir" != xauto ; then
20958 OCAML_LIBDIR=$with_ocaml_libdir
20961 ocaml_stdlib="`"$OCAMLC" -where`"
20962 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20964 # ocaml stdlib is beneath our prefix; use stdlib
20965 OCAML_LIBDIR=$ocaml_stdlib
20968 # ocaml stdlib is outside our prefix; use libdir/ocaml
20969 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20976 if test "$binding_prereqs_failed" = 1 ; then
20977 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20978 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20979 { (exit 1); exit 1; }; }
20982 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20983 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20984 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20985 echo $ECHO_N "(cached) $ECHO_C" >&6
20988 ac_cpp='$CXXCPP $CPPFLAGS'
20989 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20990 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20991 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20993 oldcxxflags="$CXXFLAGS"
20994 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
20995 cat >conftest.$ac_ext <<_ACEOF
20998 cat confdefs.h >>conftest.$ac_ext
20999 cat >>conftest.$ac_ext <<_ACEOF
21000 /* end confdefs.h. */
21001 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21010 rm -f conftest.$ac_objext
21011 if { (ac_try="$ac_compile"
21012 case "(($ac_try" in
21013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21014 *) ac_try_echo=$ac_try;;
21016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21017 (eval "$ac_compile") 2>conftest.er1
21019 grep -v '^ *+' conftest.er1 >conftest.err
21021 cat conftest.err >&5
21022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023 (exit $ac_status); } &&
21024 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21025 { (case "(($ac_try" in
21026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21027 *) ac_try_echo=$ac_try;;
21029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21030 (eval "$ac_try") 2>&5
21032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033 (exit $ac_status); }; } &&
21034 { ac_try='test -s conftest.$ac_objext'
21035 { (case "(($ac_try" in
21036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21037 *) ac_try_echo=$ac_try;;
21039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21040 (eval "$ac_try") 2>&5
21042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21043 (exit $ac_status); }; }; then
21044 llvm_cv_cxx_visibility_inlines_hidden=yes
21046 echo "$as_me: failed program was:" >&5
21047 sed 's/^/| /' conftest.$ac_ext >&5
21049 llvm_cv_cxx_visibility_inlines_hidden=no
21052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21053 CXXFLAGS="$oldcxxflags"
21055 ac_cpp='$CPP $CPPFLAGS'
21056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21062 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21063 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21064 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21065 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21068 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21073 if test "$llvm_cv_link_use_r" = "yes" ; then
21080 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21081 RDYNAMIC="-Wl,-export-dynamic"
21088 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21095 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21097 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21099 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21101 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21103 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21106 ac_config_files="$ac_config_files Makefile.config"
21109 ac_config_files="$ac_config_files llvm.spec"
21112 ac_config_files="$ac_config_files docs/doxygen.cfg"
21115 if test "${clang_src_root}" = ""; then
21116 clang_src_root="$srcdir/tools/clang"
21118 if test -f ${clang_src_root}/README.txt; then
21119 configh="include/clang/Config/config.h"
21120 doxy="docs/doxygen.cfg"
21121 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21123 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21127 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21130 ac_config_commands="$ac_config_commands setup"
21132 ac_config_commands="$ac_config_commands Makefile"
21135 ac_config_commands="$ac_config_commands Makefile.common"
21138 ac_config_commands="$ac_config_commands examples/Makefile"
21141 ac_config_commands="$ac_config_commands lib/Makefile"
21144 ac_config_commands="$ac_config_commands runtime/Makefile"
21147 ac_config_commands="$ac_config_commands test/Makefile"
21150 ac_config_commands="$ac_config_commands test/Makefile.tests"
21153 ac_config_commands="$ac_config_commands unittests/Makefile"
21156 ac_config_commands="$ac_config_commands tools/Makefile"
21159 ac_config_commands="$ac_config_commands utils/Makefile"
21162 ac_config_commands="$ac_config_commands projects/Makefile"
21165 ac_config_commands="$ac_config_commands bindings/Makefile"
21168 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21172 cat >confcache <<\_ACEOF
21173 # This file is a shell script that caches the results of configure
21174 # tests run on this system so they can be shared between configure
21175 # scripts and configure runs, see configure's option --config-cache.
21176 # It is not useful on other systems. If it contains results you don't
21177 # want to keep, you may remove or edit it.
21179 # config.status only pays attention to the cache file if you give it
21180 # the --recheck option to rerun configure.
21182 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21183 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21184 # following values.
21188 # The following way of writing the cache mishandles newlines in values,
21189 # but we know of no workaround that is simple, portable, and efficient.
21190 # So, we kill variables containing newlines.
21191 # Ultrix sh set writes to stderr and can't be redirected directly,
21192 # and sets the high bit in the cache file unless we assign to the vars.
21194 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21195 eval ac_val=\$$ac_var
21199 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21200 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21203 _ | IFS | as_nl) ;; #(
21204 *) $as_unset $ac_var ;;
21210 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21211 *${as_nl}ac_space=\ *)
21212 # `set' does not quote correctly, so add quotes (double-quote
21213 # substitution turns \\\\ into \\, and sed turns \\ into \).
21216 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21219 # `set' quotes correctly as required by POSIX, so do not add quotes.
21220 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21229 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21231 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21233 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21234 if test -w "$cache_file"; then
21235 test "x$cache_file" != "x/dev/null" &&
21236 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21237 echo "$as_me: updating cache $cache_file" >&6;}
21238 cat confcache >$cache_file
21240 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21241 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21246 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21247 # Let make expand exec_prefix.
21248 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21250 DEFS=-DHAVE_CONFIG_H
21254 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21255 # 1. Remove the extension, and $U if already installed.
21256 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21257 ac_i=`echo "$ac_i" | sed "$ac_script"`
21258 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21259 # will be set to the directory where LIBOBJS objects are built.
21260 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21261 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21263 LIBOBJS=$ac_libobjs
21265 LTLIBOBJS=$ac_ltlibobjs
21268 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21269 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21270 Usually this means the macro was only invoked conditionally." >&5
21271 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21272 Usually this means the macro was only invoked conditionally." >&2;}
21273 { (exit 1); exit 1; }; }
21275 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21276 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21277 Usually this means the macro was only invoked conditionally." >&5
21278 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21279 Usually this means the macro was only invoked conditionally." >&2;}
21280 { (exit 1); exit 1; }; }
21283 : ${CONFIG_STATUS=./config.status}
21284 ac_clean_files_save=$ac_clean_files
21285 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21286 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21287 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21288 cat >$CONFIG_STATUS <<_ACEOF
21290 # Generated by $as_me.
21291 # Run this file to recreate the current configuration.
21292 # Compiler output produced by configure, useful for debugging
21293 # configure, is in config.log if it exists.
21296 ac_cs_recheck=false
21298 SHELL=\${CONFIG_SHELL-$SHELL}
21301 cat >>$CONFIG_STATUS <<\_ACEOF
21302 ## --------------------- ##
21303 ## M4sh Initialization. ##
21304 ## --------------------- ##
21306 # Be Bourne compatible
21307 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21310 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21311 # is contrary to our usage. Disable this feature.
21312 alias -g '${1+"$@"}'='"$@"'
21313 setopt NO_GLOB_SUBST
21315 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21317 BIN_SH=xpg4; export BIN_SH # for Tru64
21318 DUALCASE=1; export DUALCASE # for MKS sh
21322 # Avoid depending upon Character Ranges.
21323 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21324 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21325 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21326 as_cr_digits='0123456789'
21327 as_cr_alnum=$as_cr_Letters$as_cr_digits
21329 # The user is always right.
21330 if test "${PATH_SEPARATOR+set}" != set; then
21331 echo "#! /bin/sh" >conf$$.sh
21332 echo "exit 0" >>conf$$.sh
21334 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21342 # Support unset when possible.
21343 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21351 # We need space, tab and new line, in precisely that order. Quoting is
21352 # there to prevent editors from complaining about space-tab.
21353 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21354 # splitting by setting IFS to empty value.)
21359 # Find who we are. Look in the path if we contain no directory separator.
21361 *[\\/]* ) as_myself=$0 ;;
21362 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21363 for as_dir in $PATH
21366 test -z "$as_dir" && as_dir=.
21367 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21373 # We did not find ourselves, most probably we were run as `sh COMMAND'
21374 # in which case we are not to be found in the path.
21375 if test "x$as_myself" = x; then
21378 if test ! -f "$as_myself"; then
21379 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21380 { (exit 1); exit 1; }
21383 # Work around bugs in pre-3.0 UWIN ksh.
21384 for as_var in ENV MAIL MAILPATH
21385 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21393 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21394 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21395 LC_TELEPHONE LC_TIME
21397 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21398 eval $as_var=C; export $as_var
21400 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21404 # Required to use basename.
21405 if expr a : '\(a\)' >/dev/null 2>&1 &&
21406 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21412 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21413 as_basename=basename
21419 # Name of the executable.
21420 as_me=`$as_basename -- "$0" ||
21421 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21422 X"$0" : 'X\(//\)$' \| \
21423 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21425 sed '/^.*\/\([^/][^/]*\)\/*$/{
21444 as_lineno_1=$LINENO
21445 as_lineno_2=$LINENO
21446 test "x$as_lineno_1" != "x$as_lineno_2" &&
21447 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21449 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21450 # uniformly replaced by the line number. The first 'sed' inserts a
21451 # line-number line after each line using $LINENO; the second 'sed'
21452 # does the real work. The second script uses 'N' to pair each
21453 # line-number line with the line containing $LINENO, and appends
21454 # trailing '-' during substitution so that $LINENO is not a special
21455 # case at line end.
21456 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21457 # scripts with optimization help from Paolo Bonzini. Blame Lee
21458 # E. McMahon (1931-1989) for sed's syntax. :-)
21470 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21473 ' >$as_me.lineno &&
21474 chmod +x "$as_me.lineno" ||
21475 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21476 { (exit 1); exit 1; }; }
21478 # Don't try to exec as it changes $[0], causing all sort of problems
21479 # (the dirname of $[0] is not the place where we might find the
21480 # original and so on. Autoconf is especially sensitive to this).
21481 . "./$as_me.lineno"
21482 # Exit status is that of the last command.
21487 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21493 ECHO_C= ECHO_N= ECHO_T=
21494 case `echo -n x` in
21496 case `echo 'x\c'` in
21497 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21504 if expr a : '\(a\)' >/dev/null 2>&1 &&
21505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21511 rm -f conf$$ conf$$.exe conf$$.file
21512 if test -d conf$$.dir; then
21513 rm -f conf$$.dir/conf$$.file
21519 if ln -s conf$$.file conf$$ 2>/dev/null; then
21521 # ... but there are two gotchas:
21522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21524 # In both cases, we have to default to `cp -p'.
21525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21527 elif ln conf$$.file conf$$ 2>/dev/null; then
21532 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21533 rmdir conf$$.dir 2>/dev/null
21535 if mkdir -p . 2>/dev/null; then
21538 test -d ./-p && rmdir ./-p
21542 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21543 # systems may use methods other than mode bits to determine executability.
21544 cat >conf$$.file <<_ASEOF
21548 chmod +x conf$$.file
21549 if test -x conf$$.file >/dev/null 2>&1; then
21550 as_executable_p="test -x"
21556 # Sed expression to map a string onto a valid CPP name.
21557 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21559 # Sed expression to map a string onto a valid variable name.
21560 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21565 # Save the log message, to keep $[0] and so on meaningful, and to
21566 # report actual input values of CONFIG_FILES etc. instead of their
21567 # values after options handling.
21569 This file was extended by LLVM $as_me 3.2svn, which was
21570 generated by GNU Autoconf 2.60. Invocation command line was
21572 CONFIG_FILES = $CONFIG_FILES
21573 CONFIG_HEADERS = $CONFIG_HEADERS
21574 CONFIG_LINKS = $CONFIG_LINKS
21575 CONFIG_COMMANDS = $CONFIG_COMMANDS
21578 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21583 cat >>$CONFIG_STATUS <<_ACEOF
21584 # Files that config.status was made for.
21585 config_files="$ac_config_files"
21586 config_headers="$ac_config_headers"
21587 config_commands="$ac_config_commands"
21591 cat >>$CONFIG_STATUS <<\_ACEOF
21593 \`$as_me' instantiates files from templates according to the
21594 current configuration.
21596 Usage: $0 [OPTIONS] [FILE]...
21598 -h, --help print this help, then exit
21599 -V, --version print version number, then exit
21600 -q, --quiet do not print progress messages
21601 -d, --debug don't remove temporary files
21602 --recheck update $as_me by reconfiguring in the same conditions
21603 --file=FILE[:TEMPLATE]
21604 instantiate the configuration file FILE
21605 --header=FILE[:TEMPLATE]
21606 instantiate the configuration header FILE
21608 Configuration files:
21611 Configuration headers:
21614 Configuration commands:
21617 Report bugs to <bug-autoconf@gnu.org>."
21620 cat >>$CONFIG_STATUS <<_ACEOF
21622 LLVM config.status 3.2svn
21623 configured by $0, generated by GNU Autoconf 2.60,
21624 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21626 Copyright (C) 2006 Free Software Foundation, Inc.
21627 This config.status script is free software; the Free Software Foundation
21628 gives unlimited permission to copy, distribute and modify it."
21635 cat >>$CONFIG_STATUS <<\_ACEOF
21636 # If no file are specified by the user, then we need to provide default
21637 # value. By we need to know if files were specified by the user.
21643 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21644 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21655 # Handling of the options.
21656 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21658 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21659 echo "$ac_cs_version"; exit ;;
21660 --debug | --debu | --deb | --de | --d | -d )
21662 --file | --fil | --fi | --f )
21664 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21665 ac_need_defaults=false;;
21666 --header | --heade | --head | --hea )
21668 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21669 ac_need_defaults=false;;
21671 # Conflict between --help and --header
21672 { echo "$as_me: error: ambiguous option: $1
21673 Try \`$0 --help' for more information." >&2
21674 { (exit 1); exit 1; }; };;
21675 --help | --hel | -h )
21676 echo "$ac_cs_usage"; exit ;;
21677 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21678 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21681 # This is an error.
21682 -*) { echo "$as_me: error: unrecognized option: $1
21683 Try \`$0 --help' for more information." >&2
21684 { (exit 1); exit 1; }; } ;;
21686 *) ac_config_targets="$ac_config_targets $1"
21687 ac_need_defaults=false ;;
21693 ac_configure_extra_args=
21695 if $ac_cs_silent; then
21697 ac_configure_extra_args="$ac_configure_extra_args --silent"
21701 cat >>$CONFIG_STATUS <<_ACEOF
21702 if \$ac_cs_recheck; then
21703 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21704 CONFIG_SHELL=$SHELL
21705 export CONFIG_SHELL
21706 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21710 cat >>$CONFIG_STATUS <<\_ACEOF
21714 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21715 ## Running $as_me. ##
21721 cat >>$CONFIG_STATUS <<_ACEOF
21725 llvm_src="${srcdir}"
21729 cat >>$CONFIG_STATUS <<\_ACEOF
21731 # Handling of arguments.
21732 for ac_config_target in $ac_config_targets
21734 case $ac_config_target in
21735 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21736 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21737 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21738 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21739 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21740 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21741 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21742 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21743 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21744 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21745 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21746 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
21747 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21748 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21749 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21750 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21751 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21752 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21753 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21754 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21755 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21756 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21757 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21758 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21759 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21760 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21761 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21763 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21764 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21765 { (exit 1); exit 1; }; };;
21770 # If the user did not use the arguments to specify the items to instantiate,
21771 # then the envvar interface is used. Set only those that are not.
21772 # We use the long form for the default assignment because of an extremely
21773 # bizarre bug on SunOS 4.1.3.
21774 if $ac_need_defaults; then
21775 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21776 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21777 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21780 # Have a temporary directory for convenience. Make it in the build tree
21781 # simply because there is no reason against having it here, and in addition,
21782 # creating and moving files from /tmp can sometimes cause problems.
21783 # Hook for its removal unless debugging.
21784 # Note that there is a small window in which the directory will not be cleaned:
21785 # after its creation but before its name has been assigned to `$tmp'.
21789 trap 'exit_status=$?
21790 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21792 trap '{ (exit 1); exit 1; }' 1 2 13 15
21794 # Create a (secure) tmp directory for tmp files.
21797 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21798 test -n "$tmp" && test -d "$tmp"
21801 tmp=./conf$$-$RANDOM
21802 (umask 077 && mkdir "$tmp")
21805 echo "$me: cannot create a temporary directory in ." >&2
21806 { (exit 1); exit 1; }
21810 # Set up the sed scripts for CONFIG_FILES section.
21813 # No need to generate the scripts if there are no CONFIG_FILES.
21814 # This happens for instance when ./config.status config.h
21815 if test -n "$CONFIG_FILES"; then
21822 for ac_last_try in false false false false false :; do
21823 cat >conf$$subs.sed <<_ACEOF
21824 SHELL!$SHELL$ac_delim
21825 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21826 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21827 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21828 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21829 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21830 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21831 exec_prefix!$exec_prefix$ac_delim
21832 prefix!$prefix$ac_delim
21833 program_transform_name!$program_transform_name$ac_delim
21834 bindir!$bindir$ac_delim
21835 sbindir!$sbindir$ac_delim
21836 libexecdir!$libexecdir$ac_delim
21837 datarootdir!$datarootdir$ac_delim
21838 datadir!$datadir$ac_delim
21839 sysconfdir!$sysconfdir$ac_delim
21840 sharedstatedir!$sharedstatedir$ac_delim
21841 localstatedir!$localstatedir$ac_delim
21842 includedir!$includedir$ac_delim
21843 oldincludedir!$oldincludedir$ac_delim
21844 docdir!$docdir$ac_delim
21845 infodir!$infodir$ac_delim
21846 htmldir!$htmldir$ac_delim
21847 dvidir!$dvidir$ac_delim
21848 pdfdir!$pdfdir$ac_delim
21849 psdir!$psdir$ac_delim
21850 libdir!$libdir$ac_delim
21851 localedir!$localedir$ac_delim
21852 mandir!$mandir$ac_delim
21853 DEFS!$DEFS$ac_delim
21854 ECHO_C!$ECHO_C$ac_delim
21855 ECHO_N!$ECHO_N$ac_delim
21856 ECHO_T!$ECHO_T$ac_delim
21857 LIBS!$LIBS$ac_delim
21858 build_alias!$build_alias$ac_delim
21859 host_alias!$host_alias$ac_delim
21860 target_alias!$target_alias$ac_delim
21861 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21863 CFLAGS!$CFLAGS$ac_delim
21864 LDFLAGS!$LDFLAGS$ac_delim
21865 CPPFLAGS!$CPPFLAGS$ac_delim
21866 ac_ct_CC!$ac_ct_CC$ac_delim
21867 EXEEXT!$EXEEXT$ac_delim
21868 OBJEXT!$OBJEXT$ac_delim
21870 CXXFLAGS!$CXXFLAGS$ac_delim
21871 ac_ct_CXX!$ac_ct_CXX$ac_delim
21873 subdirs!$subdirs$ac_delim
21874 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21875 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21876 build!$build$ac_delim
21877 build_cpu!$build_cpu$ac_delim
21878 build_vendor!$build_vendor$ac_delim
21879 build_os!$build_os$ac_delim
21880 host!$host$ac_delim
21881 host_cpu!$host_cpu$ac_delim
21882 host_vendor!$host_vendor$ac_delim
21883 host_os!$host_os$ac_delim
21884 target!$target$ac_delim
21885 target_cpu!$target_cpu$ac_delim
21886 target_vendor!$target_vendor$ac_delim
21887 target_os!$target_os$ac_delim
21889 HOST_OS!$HOST_OS$ac_delim
21890 TARGET_OS!$TARGET_OS$ac_delim
21891 LINKALL!$LINKALL$ac_delim
21892 NOLINKALL!$NOLINKALL$ac_delim
21893 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21894 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21895 ARCH!$ARCH$ac_delim
21896 HOST_ARCH!$HOST_ARCH$ac_delim
21897 ENDIAN!$ENDIAN$ac_delim
21898 GREP!$GREP$ac_delim
21899 EGREP!$EGREP$ac_delim
21900 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21901 BUILD_CC!$BUILD_CC$ac_delim
21902 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21903 BUILD_CXX!$BUILD_CXX$ac_delim
21904 CVSBUILD!$CVSBUILD$ac_delim
21905 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21906 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
21907 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21908 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21909 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21910 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
21911 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21912 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21913 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21914 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21915 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
21917 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21918 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21919 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21920 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
21923 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21925 elif $ac_last_try; then
21926 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21927 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21928 { (exit 1); exit 1; }; }
21930 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21934 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21935 if test -n "$ac_eof"; then
21936 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21937 ac_eof=`expr $ac_eof + 1`
21940 cat >>$CONFIG_STATUS <<_ACEOF
21941 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21942 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21945 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21946 s/^/s,@/; s/!/@,|#_!!_#|/
21949 s/'"$ac_delim"'$/,g/; t
21951 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21952 ' >>$CONFIG_STATUS <conf$$subs.sed
21953 rm -f conf$$subs.sed
21954 cat >>$CONFIG_STATUS <<_ACEOF
21960 for ac_last_try in false false false false false :; do
21961 cat >conf$$subs.sed <<_ACEOF
21962 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21963 ENABLE_PIC!$ENABLE_PIC$ac_delim
21964 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21965 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21966 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21967 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21968 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21969 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21970 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21971 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21972 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21973 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21974 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21975 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
21976 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21977 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
21979 ifGNUmake!$ifGNUmake$ac_delim
21980 LN_S!$LN_S$ac_delim
21983 DATE!$DATE$ac_delim
21984 FIND!$FIND$ac_delim
21985 MKDIR!$MKDIR$ac_delim
21987 RANLIB!$RANLIB$ac_delim
21992 BINPWD!$BINPWD$ac_delim
21993 GRAPHVIZ!$GRAPHVIZ$ac_delim
21996 NEATO!$NEATO$ac_delim
21997 TWOPI!$TWOPI$ac_delim
21998 CIRCO!$CIRCO$ac_delim
22000 DOTTY!$DOTTY$ac_delim
22001 XDOT_PY!$XDOT_PY$ac_delim
22002 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22003 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22004 INSTALL_DATA!$INSTALL_DATA$ac_delim
22005 BZIP2!$BZIP2$ac_delim
22007 DOXYGEN!$DOXYGEN$ac_delim
22008 GROFF!$GROFF$ac_delim
22009 GZIPBIN!$GZIPBIN$ac_delim
22010 PDFROFF!$PDFROFF$ac_delim
22012 OCAMLC!$OCAMLC$ac_delim
22013 OCAMLOPT!$OCAMLOPT$ac_delim
22014 OCAMLDEP!$OCAMLDEP$ac_delim
22015 OCAMLDOC!$OCAMLDOC$ac_delim
22017 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22018 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22019 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22020 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22021 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22022 LIBADD_DL!$LIBADD_DL$ac_delim
22023 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22024 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22025 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22026 USE_UDIS86!$USE_UDIS86$ac_delim
22027 USE_OPROFILE!$USE_OPROFILE$ac_delim
22028 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22029 XML2CONFIG!$XML2CONFIG$ac_delim
22030 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22031 LIBXML2_INC!$LIBXML2_INC$ac_delim
22032 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22033 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22034 MMAP_FILE!$MMAP_FILE$ac_delim
22035 SHLIBEXT!$SHLIBEXT$ac_delim
22036 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22037 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22038 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22039 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22040 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22041 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22042 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22043 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22044 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22045 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22046 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22047 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22048 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22049 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22050 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22051 RPATH!$RPATH$ac_delim
22052 RDYNAMIC!$RDYNAMIC$ac_delim
22053 LIBOBJS!$LIBOBJS$ac_delim
22054 LTLIBOBJS!$LTLIBOBJS$ac_delim
22057 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then
22059 elif $ac_last_try; then
22060 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22061 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22062 { (exit 1); exit 1; }; }
22064 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22068 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22069 if test -n "$ac_eof"; then
22070 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22071 ac_eof=`expr $ac_eof + 1`
22074 cat >>$CONFIG_STATUS <<_ACEOF
22075 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22076 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22079 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22080 s/^/s,@/; s/!/@,|#_!!_#|/
22083 s/'"$ac_delim"'$/,g/; t
22085 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22086 ' >>$CONFIG_STATUS <conf$$subs.sed
22087 rm -f conf$$subs.sed
22088 cat >>$CONFIG_STATUS <<_ACEOF
22095 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22096 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22097 # trailing colons and then remove the whole line if VPATH becomes empty
22098 # (actually we leave an empty line to preserve line numbers).
22099 if test "x$srcdir" = x.; then
22100 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22101 s/:*\$(srcdir):*/:/
22102 s/:*\${srcdir}:*/:/
22104 s/^\([^=]*=[ ]*\):*/\1/
22110 cat >>$CONFIG_STATUS <<\_ACEOF
22111 fi # test -n "$CONFIG_FILES"
22114 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22117 :[FHLC]) ac_mode=$ac_tag; continue;;
22119 case $ac_mode$ac_tag in
22121 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22122 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22123 { (exit 1); exit 1; }; };;
22124 :[FH]-) ac_tag=-:-;;
22125 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22142 -) ac_f="$tmp/stdin";;
22143 *) # Look for the file first in the build tree, then in the source tree
22144 # (if the path is not absolute). The absolute path cannot be DOS-style,
22145 # because $ac_f cannot contain `:'.
22149 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22151 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22152 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22153 { (exit 1); exit 1; }; };;
22155 ac_file_inputs="$ac_file_inputs $ac_f"
22158 # Let's still pretend it is `configure' which instantiates (i.e., don't
22159 # use $as_me), people would be surprised to read:
22160 # /* config.h. Generated by config.status. */
22161 configure_input="Generated from "`IFS=:
22162 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22163 if test x"$ac_file" != x-; then
22164 configure_input="$ac_file. $configure_input"
22165 { echo "$as_me:$LINENO: creating $ac_file" >&5
22166 echo "$as_me: creating $ac_file" >&6;}
22170 *:-:* | *:-) cat >"$tmp/stdin";;
22175 ac_dir=`$as_dirname -- "$ac_file" ||
22176 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22177 X"$ac_file" : 'X\(//\)[^/]' \| \
22178 X"$ac_file" : 'X\(//\)$' \| \
22179 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22185 /^X\(\/\/\)[^/].*/{
22200 -*) as_dir=./$as_dir;;
22202 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22206 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22207 *) as_qdir=$as_dir;;
22209 as_dirs="'$as_qdir' $as_dirs"
22210 as_dir=`$as_dirname -- "$as_dir" ||
22211 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22212 X"$as_dir" : 'X\(//\)[^/]' \| \
22213 X"$as_dir" : 'X\(//\)$' \| \
22214 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22220 /^X\(\/\/\)[^/].*/{
22233 test -d "$as_dir" && break
22235 test -z "$as_dirs" || eval "mkdir $as_dirs"
22236 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22237 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22238 { (exit 1); exit 1; }; }; }
22242 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22244 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22245 # A ".." for each directory in $ac_dir_suffix.
22246 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22247 case $ac_top_builddir_sub in
22248 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22249 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22252 ac_abs_top_builddir=$ac_pwd
22253 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22254 # for backward compatibility:
22255 ac_top_builddir=$ac_top_build_prefix
22258 .) # We are building in place.
22260 ac_top_srcdir=$ac_top_builddir_sub
22261 ac_abs_top_srcdir=$ac_pwd ;;
22262 [\\/]* | ?:[\\/]* ) # Absolute name.
22263 ac_srcdir=$srcdir$ac_dir_suffix;
22264 ac_top_srcdir=$srcdir
22265 ac_abs_top_srcdir=$srcdir ;;
22266 *) # Relative name.
22267 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22268 ac_top_srcdir=$ac_top_build_prefix$srcdir
22269 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22271 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22281 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22282 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22286 cat >>$CONFIG_STATUS <<\_ACEOF
22287 # If the template does not know about datarootdir, expand it.
22288 # FIXME: This hack should be removed a few years after 2.60.
22289 ac_datarootdir_hack=; ac_datarootdir_seen=
22291 case `sed -n '/datarootdir/ {
22300 ' $ac_file_inputs` in
22301 *datarootdir*) ac_datarootdir_seen=yes;;
22302 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22303 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22304 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22306 cat >>$CONFIG_STATUS <<_ACEOF
22307 ac_datarootdir_hack='
22308 s&@datadir@&$datadir&g
22309 s&@docdir@&$docdir&g
22310 s&@infodir@&$infodir&g
22311 s&@localedir@&$localedir&g
22312 s&@mandir@&$mandir&g
22313 s&\\\${datarootdir}&$datarootdir&g' ;;
22317 # Neutralize VPATH when `$srcdir' = `.'.
22318 # Shell code in configure.ac might set extrasub.
22319 # FIXME: do we really want to maintain this feature?
22320 cat >>$CONFIG_STATUS <<_ACEOF
22324 cat >>$CONFIG_STATUS <<\_ACEOF
22326 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22327 s&@configure_input@&$configure_input&;t t
22328 s&@top_builddir@&$ac_top_builddir_sub&;t t
22329 s&@srcdir@&$ac_srcdir&;t t
22330 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22331 s&@top_srcdir@&$ac_top_srcdir&;t t
22332 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22333 s&@builddir@&$ac_builddir&;t t
22334 s&@abs_builddir@&$ac_abs_builddir&;t t
22335 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22336 s&@INSTALL@&$ac_INSTALL&;t t
22337 $ac_datarootdir_hack
22338 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22340 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22341 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22342 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22343 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22344 which seems to be undefined. Please make sure it is defined." >&5
22345 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22346 which seems to be undefined. Please make sure it is defined." >&2;}
22350 -) cat "$tmp/out"; rm -f "$tmp/out";;
22351 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22360 # Transform confdefs.h into a sed script `conftest.defines', that
22361 # substitutes the proper values into config.h.in to produce config.h.
22362 rm -f conftest.defines conftest.tail
22363 # First, append a space to every undef/define line, to ease matching.
22364 echo 's/$/ /' >conftest.defines
22365 # Then, protect against being on the right side of a sed subst, or in
22366 # an unquoted here document, in config.status. If some macros were
22367 # called several times there might be several #defines for the same
22368 # symbol, which is useless. But do not sort them, since the last
22369 # AC_DEFINE must be honored.
22370 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22371 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22372 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22373 # PARAMS is the parameter list in the macro definition--in most cases, it's
22374 # just an empty string.
22375 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22376 ac_dB='\\)[ (].*,\\1define\\2'
22384 s/^[ ]*#[ ]*define[ ][ ]*//
22389 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22390 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22391 ' >>conftest.defines
22393 # Remove the space that was appended to ease matching.
22394 # Then replace #undef with comments. This is necessary, for
22395 # example, in the case of _POSIX_SOURCE, which is predefined and required
22396 # on some systems where configure will not decide to define it.
22397 # (The regexp can be short, since the line contains either #define or #undef.)
22399 s,^[ #]*u.*,/* & */,' >>conftest.defines
22401 # Break up conftest.defines:
22402 ac_max_sed_lines=50
22404 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22405 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22406 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22408 ac_in='$ac_file_inputs'
22409 ac_out='"$tmp/out1"'
22410 ac_nxt='"$tmp/out2"'
22414 # Write a here document:
22415 cat >>$CONFIG_STATUS <<_ACEOF
22416 # First, check the format of the line:
22417 cat >"\$tmp/defines.sed" <<\\CEOF
22418 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22419 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22423 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22425 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22426 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22427 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22428 grep . conftest.tail >/dev/null || break
22429 rm -f conftest.defines
22430 mv conftest.tail conftest.defines
22432 rm -f conftest.defines conftest.tail
22434 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22435 cat >>$CONFIG_STATUS <<\_ACEOF
22436 if test x"$ac_file" != x-; then
22437 echo "/* $configure_input */" >"$tmp/config.h"
22438 cat "$ac_result" >>"$tmp/config.h"
22439 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22440 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22441 echo "$as_me: $ac_file is unchanged" >&6;}
22444 mv "$tmp/config.h" $ac_file
22447 echo "/* $configure_input */"
22453 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22454 echo "$as_me: executing $ac_file commands" >&6;}
22459 case $ac_file$ac_mode in
22460 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22461 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22462 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22463 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22464 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22465 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22466 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22467 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22468 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22469 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22470 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22471 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22472 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22473 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22474 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22475 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22476 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22477 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22478 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22479 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22480 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22481 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22482 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22483 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22484 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22485 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22491 { (exit 0); exit 0; }
22493 chmod +x $CONFIG_STATUS
22494 ac_clean_files=$ac_clean_files_save
22497 # configure is writing to config.log, and then calls config.status.
22498 # config.status does its own redirection, appending to config.log.
22499 # Unfortunately, on DOS this fails, as config.log is still kept open
22500 # by configure, so config.status won't be able to write to it; its
22501 # output is simply discarded. So we exec the FD to /dev/null,
22502 # effectively closing config.log, so it can be properly (re)opened and
22503 # appended to by config.status. When coming back to configure, we
22504 # need to make the FD available again.
22505 if test "$no_create" != yes; then
22507 ac_config_status_args=
22508 test "$silent" = yes &&
22509 ac_config_status_args="$ac_config_status_args --quiet"
22511 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22513 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22514 # would make configure fail if this is the last instruction.
22515 $ac_cs_success || { (exit 1); exit 1; }
22519 # CONFIG_SUBDIRS section.
22521 if test "$no_recursion" != yes; then
22523 # Remove --cache-file and --srcdir arguments so they do not pile up.
22524 ac_sub_configure_args=
22526 eval "set x $ac_configure_args"
22530 if test -n "$ac_prev"; then
22535 -cache-file | --cache-file | --cache-fil | --cache-fi \
22536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22537 ac_prev=cache_file ;;
22538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22542 --config-cache | -C)
22544 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22546 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22548 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22550 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22554 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22556 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22560 # Always prepend --prefix to ensure using the same prefix
22561 # in subdir configurations.
22562 ac_arg="--prefix=$prefix"
22564 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22566 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22569 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22571 # Do not complain, so a configure script can configure whichever
22572 # parts of a large source tree are present.
22573 test -d "$srcdir/$ac_dir" || continue
22575 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22576 echo "$as_me:$LINENO: $ac_msg" >&5
22580 -*) as_dir=./$as_dir;;
22582 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22586 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22587 *) as_qdir=$as_dir;;
22589 as_dirs="'$as_qdir' $as_dirs"
22590 as_dir=`$as_dirname -- "$as_dir" ||
22591 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22592 X"$as_dir" : 'X\(//\)[^/]' \| \
22593 X"$as_dir" : 'X\(//\)$' \| \
22594 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22596 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22600 /^X\(\/\/\)[^/].*/{
22613 test -d "$as_dir" && break
22615 test -z "$as_dirs" || eval "mkdir $as_dirs"
22616 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22617 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22618 { (exit 1); exit 1; }; }; }
22622 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22624 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22625 # A ".." for each directory in $ac_dir_suffix.
22626 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22627 case $ac_top_builddir_sub in
22628 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22629 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22632 ac_abs_top_builddir=$ac_pwd
22633 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22634 # for backward compatibility:
22635 ac_top_builddir=$ac_top_build_prefix
22638 .) # We are building in place.
22640 ac_top_srcdir=$ac_top_builddir_sub
22641 ac_abs_top_srcdir=$ac_pwd ;;
22642 [\\/]* | ?:[\\/]* ) # Absolute name.
22643 ac_srcdir=$srcdir$ac_dir_suffix;
22644 ac_top_srcdir=$srcdir
22645 ac_abs_top_srcdir=$srcdir ;;
22646 *) # Relative name.
22647 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22648 ac_top_srcdir=$ac_top_build_prefix$srcdir
22649 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22651 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22656 # Check for guested configure; otherwise get Cygnus style configure.
22657 if test -f "$ac_srcdir/configure.gnu"; then
22658 ac_sub_configure=$ac_srcdir/configure.gnu
22659 elif test -f "$ac_srcdir/configure"; then
22660 ac_sub_configure=$ac_srcdir/configure
22661 elif test -f "$ac_srcdir/configure.in"; then
22662 # This should be Cygnus configure.
22663 ac_sub_configure=$ac_aux_dir/configure
22665 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22666 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22670 # The recursion is here.
22671 if test -n "$ac_sub_configure"; then
22672 # Make the cache file name correct relative to the subdirectory.
22673 case $cache_file in
22674 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22675 *) # Relative name.
22676 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22679 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22680 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22681 # The eval makes quoting arguments work.
22682 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22683 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22684 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22685 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22686 { (exit 1); exit 1; }; }