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
797 ac_precious_vars='build_alias
808 ac_subdirs_all='projects/llvm-gcc
812 projects/llvm-poolalloc
815 projects/llvm-stacker
823 # Initialize some variables set by options.
825 ac_init_version=false
826 # The variables have the same names as the options, with
827 # dashes changed to underlines.
835 program_transform_name=s,x,x,
843 # Installation directory options.
844 # These are left unexpanded so users can "make install exec_prefix=/foo"
845 # and all the variables that are supposed to be based on exec_prefix
846 # by default will actually change.
847 # Use braces instead of parens because sh, perl, etc. also accept them.
848 # (The list follows the same order as the GNU Coding Standards.)
849 bindir='${exec_prefix}/bin'
850 sbindir='${exec_prefix}/sbin'
851 libexecdir='${exec_prefix}/libexec'
852 datarootdir='${prefix}/share'
853 datadir='${datarootdir}'
854 sysconfdir='${prefix}/etc'
855 sharedstatedir='${prefix}/com'
856 localstatedir='${prefix}/var'
857 includedir='${prefix}/include'
858 oldincludedir='/usr/include'
859 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
860 infodir='${datarootdir}/info'
865 libdir='${exec_prefix}/lib'
866 localedir='${datarootdir}/locale'
867 mandir='${datarootdir}/man'
873 # If the previous option needs an argument, assign it.
874 if test -n "$ac_prev"; then
875 eval $ac_prev=\$ac_option
881 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
885 # Accept the important Cygnus configure options, so we can diagnose typos.
887 case $ac_dashdash$ac_option in
891 -bindir | --bindir | --bindi | --bind | --bin | --bi)
893 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
896 -build | --build | --buil | --bui | --bu)
897 ac_prev=build_alias ;;
898 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
899 build_alias=$ac_optarg ;;
901 -cache-file | --cache-file | --cache-fil | --cache-fi \
902 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
903 ac_prev=cache_file ;;
904 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
905 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
906 cache_file=$ac_optarg ;;
909 cache_file=config.cache ;;
911 -datadir | --datadir | --datadi | --datad)
913 -datadir=* | --datadir=* | --datadi=* | --datad=*)
914 datadir=$ac_optarg ;;
916 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
917 | --dataroo | --dataro | --datar)
918 ac_prev=datarootdir ;;
919 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
920 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
921 datarootdir=$ac_optarg ;;
923 -disable-* | --disable-*)
924 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
925 # Reject names that are not valid shell variable names.
926 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
927 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
928 { (exit 1); exit 1; }; }
929 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
930 eval enable_$ac_feature=no ;;
932 -docdir | --docdir | --docdi | --doc | --do)
934 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
937 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
939 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
942 -enable-* | --enable-*)
943 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
944 # Reject names that are not valid shell variable names.
945 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
946 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
947 { (exit 1); exit 1; }; }
948 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
949 eval enable_$ac_feature=\$ac_optarg ;;
951 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
952 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
953 | --exec | --exe | --ex)
954 ac_prev=exec_prefix ;;
955 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
956 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
957 | --exec=* | --exe=* | --ex=*)
958 exec_prefix=$ac_optarg ;;
960 -gas | --gas | --ga | --g)
961 # Obsolete; use --with-gas.
964 -help | --help | --hel | --he | -h)
966 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
967 ac_init_help=recursive ;;
968 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
969 ac_init_help=short ;;
971 -host | --host | --hos | --ho)
972 ac_prev=host_alias ;;
973 -host=* | --host=* | --hos=* | --ho=*)
974 host_alias=$ac_optarg ;;
976 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
978 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
980 htmldir=$ac_optarg ;;
982 -includedir | --includedir | --includedi | --included | --include \
983 | --includ | --inclu | --incl | --inc)
984 ac_prev=includedir ;;
985 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
986 | --includ=* | --inclu=* | --incl=* | --inc=*)
987 includedir=$ac_optarg ;;
989 -infodir | --infodir | --infodi | --infod | --info | --inf)
991 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
992 infodir=$ac_optarg ;;
994 -libdir | --libdir | --libdi | --libd)
996 -libdir=* | --libdir=* | --libdi=* | --libd=*)
999 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1000 | --libexe | --libex | --libe)
1001 ac_prev=libexecdir ;;
1002 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1003 | --libexe=* | --libex=* | --libe=*)
1004 libexecdir=$ac_optarg ;;
1006 -localedir | --localedir | --localedi | --localed | --locale)
1007 ac_prev=localedir ;;
1008 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1009 localedir=$ac_optarg ;;
1011 -localstatedir | --localstatedir | --localstatedi | --localstated \
1012 | --localstate | --localstat | --localsta | --localst | --locals)
1013 ac_prev=localstatedir ;;
1014 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1015 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1016 localstatedir=$ac_optarg ;;
1018 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1020 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1021 mandir=$ac_optarg ;;
1023 -nfp | --nfp | --nf)
1024 # Obsolete; use --without-fp.
1027 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028 | --no-cr | --no-c | -n)
1031 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1035 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1036 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1037 | --oldin | --oldi | --old | --ol | --o)
1038 ac_prev=oldincludedir ;;
1039 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1040 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1041 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1042 oldincludedir=$ac_optarg ;;
1044 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1046 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1047 prefix=$ac_optarg ;;
1049 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1050 | --program-pre | --program-pr | --program-p)
1051 ac_prev=program_prefix ;;
1052 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1053 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1054 program_prefix=$ac_optarg ;;
1056 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1057 | --program-suf | --program-su | --program-s)
1058 ac_prev=program_suffix ;;
1059 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1060 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1061 program_suffix=$ac_optarg ;;
1063 -program-transform-name | --program-transform-name \
1064 | --program-transform-nam | --program-transform-na \
1065 | --program-transform-n | --program-transform- \
1066 | --program-transform | --program-transfor \
1067 | --program-transfo | --program-transf \
1068 | --program-trans | --program-tran \
1069 | --progr-tra | --program-tr | --program-t)
1070 ac_prev=program_transform_name ;;
1071 -program-transform-name=* | --program-transform-name=* \
1072 | --program-transform-nam=* | --program-transform-na=* \
1073 | --program-transform-n=* | --program-transform-=* \
1074 | --program-transform=* | --program-transfor=* \
1075 | --program-transfo=* | --program-transf=* \
1076 | --program-trans=* | --program-tran=* \
1077 | --progr-tra=* | --program-tr=* | --program-t=*)
1078 program_transform_name=$ac_optarg ;;
1080 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1082 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1083 pdfdir=$ac_optarg ;;
1085 -psdir | --psdir | --psdi | --psd | --ps)
1087 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091 | -silent | --silent | --silen | --sile | --sil)
1094 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1096 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1098 sbindir=$ac_optarg ;;
1100 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1101 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1102 | --sharedst | --shareds | --shared | --share | --shar \
1104 ac_prev=sharedstatedir ;;
1105 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1106 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1107 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1109 sharedstatedir=$ac_optarg ;;
1111 -site | --site | --sit)
1113 -site=* | --site=* | --sit=*)
1116 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1118 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1119 srcdir=$ac_optarg ;;
1121 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1122 | --syscon | --sysco | --sysc | --sys | --sy)
1123 ac_prev=sysconfdir ;;
1124 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1125 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1126 sysconfdir=$ac_optarg ;;
1128 -target | --target | --targe | --targ | --tar | --ta | --t)
1129 ac_prev=target_alias ;;
1130 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1131 target_alias=$ac_optarg ;;
1133 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1136 -version | --version | --versio | --versi | --vers | -V)
1137 ac_init_version=: ;;
1140 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1143 { echo "$as_me: error: invalid package name: $ac_package" >&2
1144 { (exit 1); exit 1; }; }
1145 ac_package=`echo $ac_package| sed 's/-/_/g'`
1146 eval with_$ac_package=\$ac_optarg ;;
1148 -without-* | --without-*)
1149 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1152 { echo "$as_me: error: invalid package name: $ac_package" >&2
1153 { (exit 1); exit 1; }; }
1154 ac_package=`echo $ac_package | sed 's/-/_/g'`
1155 eval with_$ac_package=no ;;
1158 # Obsolete; use --with-x.
1161 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162 | --x-incl | --x-inc | --x-in | --x-i)
1163 ac_prev=x_includes ;;
1164 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166 x_includes=$ac_optarg ;;
1168 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170 ac_prev=x_libraries ;;
1171 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173 x_libraries=$ac_optarg ;;
1175 -*) { echo "$as_me: error: unrecognized option: $ac_option
1176 Try \`$0 --help' for more information." >&2
1177 { (exit 1); exit 1; }; }
1181 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1184 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1185 { (exit 1); exit 1; }; }
1186 eval $ac_envvar=\$ac_optarg
1187 export $ac_envvar ;;
1190 # FIXME: should be removed in autoconf 3.0.
1191 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1194 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1200 if test -n "$ac_prev"; then
1201 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1202 { echo "$as_me: error: missing argument to $ac_option" >&2
1203 { (exit 1); exit 1; }; }
1206 # Be sure to have absolute directory names.
1207 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1208 datadir sysconfdir sharedstatedir localstatedir includedir \
1209 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1210 libdir localedir mandir
1212 eval ac_val=\$$ac_var
1214 [\\/$]* | ?:[\\/]* ) continue;;
1215 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1217 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1218 { (exit 1); exit 1; }; }
1221 # There might be people who depend on the old broken behavior: `$host'
1222 # used to hold the argument of --host etc.
1223 # FIXME: To remove some day.
1226 target=$target_alias
1228 # FIXME: To remove some day.
1229 if test "x$host_alias" != x; then
1230 if test "x$build_alias" = x; then
1231 cross_compiling=maybe
1232 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1233 If a cross compiler is detected then cross compile mode will be used." >&2
1234 elif test "x$build_alias" != "x$host_alias"; then
1240 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1242 test "$silent" = yes && exec 6>/dev/null
1245 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1246 ac_ls_di=`ls -di .` &&
1247 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1248 { echo "$as_me: error: Working directory cannot be determined" >&2
1249 { (exit 1); exit 1; }; }
1250 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1251 { echo "$as_me: error: pwd does not report name of working directory" >&2
1252 { (exit 1); exit 1; }; }
1255 # Find the source files, if location was not specified.
1256 if test -z "$srcdir"; then
1257 ac_srcdir_defaulted=yes
1258 # Try the directory containing this script, then the parent directory.
1259 ac_confdir=`$as_dirname -- "$0" ||
1260 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261 X"$0" : 'X\(//\)[^/]' \| \
1262 X"$0" : 'X\(//\)$' \| \
1263 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1287 ac_srcdir_defaulted=no
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1291 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1292 { (exit 1); exit 1; }; }
1294 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1296 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1297 { (exit 1); exit 1; }; }
1299 # When building in place, set srcdir=.
1300 if test "$ac_abs_confdir" = "$ac_pwd"; then
1303 # Remove unnecessary trailing slashes from srcdir.
1304 # Double slashes in file names in object file debugging info
1305 # mess up M-x gdb in Emacs.
1307 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1309 for ac_var in $ac_precious_vars; do
1310 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_env_${ac_var}_value=\$${ac_var}
1312 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1317 # Report the --help message.
1319 if test "$ac_init_help" = "long"; then
1320 # Omit some internal or obsolete options to make the list less imposing.
1321 # This message is too long to be a string in the A/UX 3.1 sh.
1323 \`configure' configures LLVM 3.2svn to adapt to many kinds of systems.
1325 Usage: $0 [OPTION]... [VAR=VALUE]...
1327 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1328 VAR=VALUE. See below for descriptions of some of the useful variables.
1330 Defaults for the options are specified in brackets.
1333 -h, --help display this help and exit
1334 --help=short display options specific to this package
1335 --help=recursive display the short help of all the included packages
1336 -V, --version display version information and exit
1337 -q, --quiet, --silent do not print \`checking...' messages
1338 --cache-file=FILE cache test results in FILE [disabled]
1339 -C, --config-cache alias for \`--cache-file=config.cache'
1340 -n, --no-create do not create output files
1341 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1343 Installation directories:
1344 --prefix=PREFIX install architecture-independent files in PREFIX
1345 [$ac_default_prefix]
1346 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1349 By default, \`make install' will install all the files in
1350 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1351 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1352 for instance \`--prefix=\$HOME'.
1354 For better control, use the options below.
1356 Fine tuning of the installation directories:
1357 --bindir=DIR user executables [EPREFIX/bin]
1358 --sbindir=DIR system admin executables [EPREFIX/sbin]
1359 --libexecdir=DIR program executables [EPREFIX/libexec]
1360 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1361 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1362 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1363 --libdir=DIR object code libraries [EPREFIX/lib]
1364 --includedir=DIR C header files [PREFIX/include]
1365 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1366 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1367 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1368 --infodir=DIR info documentation [DATAROOTDIR/info]
1369 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1370 --mandir=DIR man documentation [DATAROOTDIR/man]
1371 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1372 --htmldir=DIR html documentation [DOCDIR]
1373 --dvidir=DIR dvi documentation [DOCDIR]
1374 --pdfdir=DIR pdf documentation [DOCDIR]
1375 --psdir=DIR ps documentation [DOCDIR]
1381 --build=BUILD configure for building on BUILD [guessed]
1382 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1383 --target=TARGET configure for building compilers for TARGET [HOST]
1387 if test -n "$ac_init_help"; then
1388 case $ac_init_help in
1389 short | recursive ) echo "Configuration of LLVM 3.2svn:";;
1394 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1395 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1396 --enable-polly Use polly if available (default is YES)
1397 --enable-libcpp Use libc++ if available (default is NO)
1398 --enable-cxx11 Use c++11 if available (default is NO)
1399 --enable-optimized Compile with optimizations enabled (default is NO)
1400 --enable-profiling Compile with profiling enabled (default is NO)
1401 --enable-assertions Compile with assertion checks enabled (default is
1403 --enable-werror Compile with -Werror enabled (default is NO)
1404 --enable-expensive-checks
1405 Compile with expensive debug checks enabled (default
1407 --enable-debug-runtime Build runtime libs with debug symbols (default is
1409 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1410 optimization is on and YES if it's off)
1411 --enable-keep-symbols Do not strip installed executables)
1412 --enable-jit Enable Just In Time Compiling (default is YES)
1413 --enable-docs Build documents (default is YES)
1414 --enable-doxygen Build doxygen documentation (default is NO)
1415 --enable-threads Use threads if available (default is YES)
1416 --enable-pthreads Use pthreads if available (default is YES)
1417 --enable-pic Build LLVM with Position Independent Code (default
1419 --enable-shared Build a shared library and link tools against it
1421 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1422 Win32 DLL (default is NO)
1423 --enable-timestamps Enable embedding timestamp information in build
1425 --enable-backtraces Enable embedding backtraces on crash (default is
1427 --enable-targets Build specific host targets: all or
1428 target1,target2,... Valid targets are: host, x86,
1429 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1430 xcore, msp430, nvptx, and cpp (default=all)
1431 --enable-experimental-targets
1432 Build experimental host targets: disable or
1433 target1,target2,... (default=disable)
1434 --enable-bindings Build specific language bindings:
1435 all,auto,none,{binding-name} (default=auto)
1436 --enable-libffi Check for the presence of libffi (default is NO)
1437 --enable-ltdl-install install libltdl
1440 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1441 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1442 --with-optimize-option Select the compiler options to use for optimized
1444 --with-extra-options Specify additional options to compile LLVM with
1445 --with-extra-ld-options Specify additional options to link LLVM with
1446 --with-ocaml-libdir Specify install location for ocaml bindings (default
1448 --with-clang-srcdir Directory to the out-of-tree Clang source
1449 --with-clang-resource-dir
1450 Relative directory from the Clang binary for
1452 --with-c-include-dirs Colon separated list of directories clang will
1454 --with-gcc-toolchain Directory where gcc is installed.
1455 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1456 --with-binutils-include Specify path to binutils/include/ containing
1457 plugin-api.h file for gold plugin.
1458 --with-bug-report-url Specify the URL where bug reports should be
1459 submitted (default=http://llvm.org/bugs/)
1460 --with-internal-prefix Installation directory for internal files
1461 --with-udis86=<path> Use udis86 external x86 disassembler library
1462 --with-oprofile=<prefix>
1463 Tell OProfile >= 0.9.4 how to symbolize JIT output
1464 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1467 Some influential environment variables:
1468 CC C compiler command
1469 CFLAGS C compiler flags
1470 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1471 nonstandard directory <lib dir>
1472 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1473 you have headers in a nonstandard directory <include dir>
1474 CXX C++ compiler command
1475 CXXFLAGS C++ compiler flags
1478 Use these variables to override the choices made by `configure' or to help
1479 it to find libraries and programs with nonstandard names/locations.
1481 Report bugs to <http://llvm.org/bugs/>.
1486 if test "$ac_init_help" = "recursive"; then
1487 # If there are subdirs, report their specific --help.
1488 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1489 test -d "$ac_dir" || continue
1493 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1496 # A ".." for each directory in $ac_dir_suffix.
1497 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1498 case $ac_top_builddir_sub in
1499 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1503 ac_abs_top_builddir=$ac_pwd
1504 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1505 # for backward compatibility:
1506 ac_top_builddir=$ac_top_build_prefix
1509 .) # We are building in place.
1511 ac_top_srcdir=$ac_top_builddir_sub
1512 ac_abs_top_srcdir=$ac_pwd ;;
1513 [\\/]* | ?:[\\/]* ) # Absolute name.
1514 ac_srcdir=$srcdir$ac_dir_suffix;
1515 ac_top_srcdir=$srcdir
1516 ac_abs_top_srcdir=$srcdir ;;
1518 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1519 ac_top_srcdir=$ac_top_build_prefix$srcdir
1520 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1522 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1524 cd "$ac_dir" || { ac_status=$?; continue; }
1525 # Check for guested configure.
1526 if test -f "$ac_srcdir/configure.gnu"; then
1528 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1529 elif test -f "$ac_srcdir/configure"; then
1531 $SHELL "$ac_srcdir/configure" --help=recursive
1533 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1535 cd "$ac_pwd" || { ac_status=$?; break; }
1539 test -n "$ac_init_help" && exit $ac_status
1540 if $ac_init_version; then
1542 LLVM configure 3.2svn
1543 generated by GNU Autoconf 2.60
1545 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1546 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1547 This configure script is free software; the Free Software Foundation
1548 gives unlimited permission to copy, distribute and modify it.
1550 Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
1554 cat >config.log <<_ACEOF
1555 This file contains any messages produced by compilers while
1556 running configure, to aid debugging if configure makes a mistake.
1558 It was created by LLVM $as_me 3.2svn, which was
1559 generated by GNU Autoconf 2.60. Invocation command line was
1571 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1572 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1573 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1574 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1575 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1577 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1578 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1580 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1581 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1582 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1583 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1584 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1585 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1586 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1594 test -z "$as_dir" && as_dir=.
1595 echo "PATH: $as_dir"
1611 # Keep a trace of the command line.
1612 # Strip out --no-create and --no-recursion so they do not pile up.
1613 # Strip out --silent because we don't want to record it for future runs.
1614 # Also quote any args containing shell meta-characters.
1615 # Make two passes to allow for proper duplicate-argument suppression.
1619 ac_must_keep_next=false
1625 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1626 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1627 | -silent | --silent | --silen | --sile | --sil)
1630 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1633 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1635 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1636 if test $ac_must_keep_next = true; then
1637 ac_must_keep_next=false # Got value, back to normal.
1640 *=* | --config-cache | -C | -disable-* | --disable-* \
1641 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1642 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1643 | -with-* | --with-* | -without-* | --without-* | --x)
1644 case "$ac_configure_args0 " in
1645 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1648 -* ) ac_must_keep_next=true ;;
1651 ac_configure_args="$ac_configure_args '$ac_arg'"
1656 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1657 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1659 # When interrupted or exit'd, cleanup temporary files, and complete
1660 # config.log. We remove comments because anyway the quotes in there
1661 # would cause problems or look ugly.
1662 # WARNING: Use '\'' to represent an apostrophe within the trap.
1663 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1664 trap 'exit_status=$?
1665 # Save into config.log some information that might help in debugging.
1670 ## ---------------- ##
1671 ## Cache variables. ##
1672 ## ---------------- ##
1675 # The following way of writing the cache mishandles newlines in values,
1677 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1678 eval ac_val=\$$ac_var
1682 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1683 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1686 _ | IFS | as_nl) ;; #(
1687 *) $as_unset $ac_var ;;
1692 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1693 *${as_nl}ac_space=\ *)
1695 "s/'\''/'\''\\\\'\'''\''/g;
1696 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1699 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1707 ## ----------------- ##
1708 ## Output variables. ##
1709 ## ----------------- ##
1712 for ac_var in $ac_subst_vars
1714 eval ac_val=\$$ac_var
1716 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1718 echo "$ac_var='\''$ac_val'\''"
1722 if test -n "$ac_subst_files"; then
1724 ## ------------------- ##
1725 ## File substitutions. ##
1726 ## ------------------- ##
1729 for ac_var in $ac_subst_files
1731 eval ac_val=\$$ac_var
1733 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1735 echo "$ac_var='\''$ac_val'\''"
1740 if test -s confdefs.h; then
1750 test "$ac_signal" != 0 &&
1751 echo "$as_me: caught signal $ac_signal"
1752 echo "$as_me: exit $exit_status"
1754 rm -f core *.core core.conftest.* &&
1755 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1758 for ac_signal in 1 2 13 15; do
1759 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1763 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1764 rm -f -r conftest* confdefs.h
1766 # Predefined preprocessor variables.
1768 cat >>confdefs.h <<_ACEOF
1769 #define PACKAGE_NAME "$PACKAGE_NAME"
1773 cat >>confdefs.h <<_ACEOF
1774 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1778 cat >>confdefs.h <<_ACEOF
1779 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1783 cat >>confdefs.h <<_ACEOF
1784 #define PACKAGE_STRING "$PACKAGE_STRING"
1788 cat >>confdefs.h <<_ACEOF
1789 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1793 # Let the site file select an alternate cache file if it wants to.
1794 # Prefer explicitly selected file to automatically selected ones.
1795 if test -n "$CONFIG_SITE"; then
1796 set x "$CONFIG_SITE"
1797 elif test "x$prefix" != xNONE; then
1798 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1800 set x "$ac_default_prefix/share/config.site" \
1801 "$ac_default_prefix/etc/config.site"
1806 if test -r "$ac_site_file"; then
1807 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1808 echo "$as_me: loading site script $ac_site_file" >&6;}
1809 sed 's/^/| /' "$ac_site_file" >&5
1814 if test -r "$cache_file"; then
1815 # Some versions of bash will fail to source /dev/null (special
1816 # files actually), so we avoid doing that.
1817 if test -f "$cache_file"; then
1818 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1819 echo "$as_me: loading cache $cache_file" >&6;}
1821 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1822 *) . "./$cache_file";;
1826 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1827 echo "$as_me: creating cache $cache_file" >&6;}
1831 # Check that the precious variables saved in the cache have kept the same
1833 ac_cache_corrupted=false
1834 for ac_var in $ac_precious_vars; do
1835 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1836 eval ac_new_set=\$ac_env_${ac_var}_set
1837 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1838 eval ac_new_val=\$ac_env_${ac_var}_value
1839 case $ac_old_set,$ac_new_set in
1841 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1842 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1843 ac_cache_corrupted=: ;;
1845 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1846 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1847 ac_cache_corrupted=: ;;
1850 if test "x$ac_old_val" != "x$ac_new_val"; then
1851 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1852 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1853 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1854 echo "$as_me: former value: $ac_old_val" >&2;}
1855 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1856 echo "$as_me: current value: $ac_new_val" >&2;}
1857 ac_cache_corrupted=:
1860 # Pass precious variables to config.status.
1861 if test "$ac_new_set" = set; then
1863 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1864 *) ac_arg=$ac_var=$ac_new_val ;;
1866 case " $ac_configure_args " in
1867 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1868 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1872 if $ac_cache_corrupted; then
1873 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1874 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1875 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1876 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1877 { (exit 1); exit 1; }; }
1905 ac_cpp='$CPP $CPPFLAGS'
1906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1912 cat >>confdefs.h <<\_ACEOF
1913 #define LLVM_VERSION_MAJOR 3
1917 cat >>confdefs.h <<\_ACEOF
1918 #define LLVM_VERSION_MINOR 2
1922 LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
1931 for ac_dir in autoconf "$srcdir"/autoconf; do
1932 if test -f "$ac_dir/install-sh"; then
1934 ac_install_sh="$ac_aux_dir/install-sh -c"
1936 elif test -f "$ac_dir/install.sh"; then
1938 ac_install_sh="$ac_aux_dir/install.sh -c"
1940 elif test -f "$ac_dir/shtool"; then
1942 ac_install_sh="$ac_aux_dir/shtool install -c"
1946 if test -z "$ac_aux_dir"; then
1947 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1948 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1949 { (exit 1); exit 1; }; }
1952 # These three variables are undocumented and unsupported,
1953 # and are intended to be withdrawn in a future Autoconf release.
1954 # They can cause serious problems if a builder's source tree is in a directory
1955 # whose full name contains unusual characters.
1956 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1957 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1958 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1962 if test ${srcdir} != "." ; then
1963 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1964 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1965 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1966 { (exit 1); exit 1; }; }
1971 ac_cpp='$CPP $CPPFLAGS'
1972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1975 if test -n "$ac_tool_prefix"; then
1976 for ac_prog in clang llvm-gcc gcc
1978 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1979 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1982 if test "${ac_cv_prog_CC+set}" = set; then
1983 echo $ECHO_N "(cached) $ECHO_C" >&6
1985 if test -n "$CC"; then
1986 ac_cv_prog_CC="$CC" # Let the user override the test.
1988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992 test -z "$as_dir" && as_dir=.
1993 for ac_exec_ext in '' $ac_executable_extensions; do
1994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1995 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2006 if test -n "$CC"; then
2007 { echo "$as_me:$LINENO: result: $CC" >&5
2008 echo "${ECHO_T}$CC" >&6; }
2010 { echo "$as_me:$LINENO: result: no" >&5
2011 echo "${ECHO_T}no" >&6; }
2015 test -n "$CC" && break
2018 if test -z "$CC"; then
2020 for ac_prog in clang llvm-gcc gcc
2022 # Extract the first word of "$ac_prog", so it can be a program name with args.
2023 set dummy $ac_prog; ac_word=$2
2024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2026 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2027 echo $ECHO_N "(cached) $ECHO_C" >&6
2029 if test -n "$ac_ct_CC"; then
2030 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2036 test -z "$as_dir" && as_dir=.
2037 for ac_exec_ext in '' $ac_executable_extensions; do
2038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2039 ac_cv_prog_ac_ct_CC="$ac_prog"
2040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2049 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2050 if test -n "$ac_ct_CC"; then
2051 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2052 echo "${ECHO_T}$ac_ct_CC" >&6; }
2054 { echo "$as_me:$LINENO: result: no" >&5
2055 echo "${ECHO_T}no" >&6; }
2059 test -n "$ac_ct_CC" && break
2062 if test "x$ac_ct_CC" = x; then
2065 case $cross_compiling:$ac_tool_warned in
2067 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2068 whose name does not start with the host triplet. If you think this
2069 configuration is useful to you, please write to autoconf@gnu.org." >&5
2070 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2071 whose name does not start with the host triplet. If you think this
2072 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2073 ac_tool_warned=yes ;;
2080 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2081 See \`config.log' for more details." >&5
2082 echo "$as_me: error: no acceptable C compiler found in \$PATH
2083 See \`config.log' for more details." >&2;}
2084 { (exit 1); exit 1; }; }
2086 # Provide some information about the compiler.
2087 echo "$as_me:$LINENO: checking for C compiler version" >&5
2088 ac_compiler=`set X $ac_compile; echo $2`
2089 { (ac_try="$ac_compiler --version >&5"
2091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2092 *) ac_try_echo=$ac_try;;
2094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2095 (eval "$ac_compiler --version >&5") 2>&5
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); }
2099 { (ac_try="$ac_compiler -v >&5"
2101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2102 *) ac_try_echo=$ac_try;;
2104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2105 (eval "$ac_compiler -v >&5") 2>&5
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); }
2109 { (ac_try="$ac_compiler -V >&5"
2111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2112 *) ac_try_echo=$ac_try;;
2114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2115 (eval "$ac_compiler -V >&5") 2>&5
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }
2120 cat >conftest.$ac_ext <<_ACEOF
2123 cat confdefs.h >>conftest.$ac_ext
2124 cat >>conftest.$ac_ext <<_ACEOF
2125 /* end confdefs.h. */
2135 ac_clean_files_save=$ac_clean_files
2136 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2137 # Try to create an executable without -o first, disregard a.out.
2138 # It will help us diagnose broken compilers, and finding out an intuition
2140 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2141 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2142 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2144 # List of possible output files, starting from the most likely.
2145 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2146 # only as a last resort. b.out is created by i960 compilers.
2147 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2149 # The IRIX 6 linker writes into existing files which may not be
2150 # executable, retaining their permissions. Remove them first so a
2151 # subsequent execution test works.
2153 for ac_file in $ac_files
2156 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2157 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2162 if { (ac_try="$ac_link_default"
2164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2165 *) ac_try_echo=$ac_try;;
2167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2168 (eval "$ac_link_default") 2>&5
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); }; then
2172 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2173 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2174 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2175 # so that the user can short-circuit this test for compilers unknown to
2177 for ac_file in $ac_files
2179 test -f "$ac_file" || continue
2181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2184 # We found the default executable, but exeext='' is most
2188 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2190 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2192 # We set ac_cv_exeext here because the later test for it is not
2193 # safe: cross compilers may not add the suffix if given an `-o'
2194 # argument, so we may need to know it at that point already.
2195 # Even if this section looks crufty: it has the advantage of
2202 test "$ac_cv_exeext" = no && ac_cv_exeext=
2205 echo "$as_me: failed program was:" >&5
2206 sed 's/^/| /' conftest.$ac_ext >&5
2208 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2209 See \`config.log' for more details." >&5
2210 echo "$as_me: error: C compiler cannot create executables
2211 See \`config.log' for more details." >&2;}
2212 { (exit 77); exit 77; }; }
2215 ac_exeext=$ac_cv_exeext
2216 { echo "$as_me:$LINENO: result: $ac_file" >&5
2217 echo "${ECHO_T}$ac_file" >&6; }
2219 # Check that the compiler produces executables we can run. If not, either
2220 # the compiler is broken, or we cross compile.
2221 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2222 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2223 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2224 # If not cross compiling, check that we can run a simple program.
2225 if test "$cross_compiling" != yes; then
2226 if { ac_try='./$ac_file'
2227 { (case "(($ac_try" in
2228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2229 *) ac_try_echo=$ac_try;;
2231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2232 (eval "$ac_try") 2>&5
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; }; then
2238 if test "$cross_compiling" = maybe; then
2241 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2242 If you meant to cross compile, use \`--host'.
2243 See \`config.log' for more details." >&5
2244 echo "$as_me: error: cannot run C compiled programs.
2245 If you meant to cross compile, use \`--host'.
2246 See \`config.log' for more details." >&2;}
2247 { (exit 1); exit 1; }; }
2251 { echo "$as_me:$LINENO: result: yes" >&5
2252 echo "${ECHO_T}yes" >&6; }
2254 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2255 ac_clean_files=$ac_clean_files_save
2256 # Check that the compiler produces executables we can run. If not, either
2257 # the compiler is broken, or we cross compile.
2258 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2259 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2260 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2261 echo "${ECHO_T}$cross_compiling" >&6; }
2263 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2264 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2265 if { (ac_try="$ac_link"
2267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2268 *) ac_try_echo=$ac_try;;
2270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2271 (eval "$ac_link") 2>&5
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; then
2275 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2276 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2277 # work properly (i.e., refer to `conftest.exe'), while it won't with
2279 for ac_file in conftest.exe conftest conftest.*; do
2280 test -f "$ac_file" || continue
2282 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2283 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2289 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2290 See \`config.log' for more details." >&5
2291 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2292 See \`config.log' for more details." >&2;}
2293 { (exit 1); exit 1; }; }
2296 rm -f conftest$ac_cv_exeext
2297 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2298 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2300 rm -f conftest.$ac_ext
2301 EXEEXT=$ac_cv_exeext
2303 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2304 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2305 if test "${ac_cv_objext+set}" = set; then
2306 echo $ECHO_N "(cached) $ECHO_C" >&6
2308 cat >conftest.$ac_ext <<_ACEOF
2311 cat confdefs.h >>conftest.$ac_ext
2312 cat >>conftest.$ac_ext <<_ACEOF
2313 /* end confdefs.h. */
2323 rm -f conftest.o conftest.obj
2324 if { (ac_try="$ac_compile"
2326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2327 *) ac_try_echo=$ac_try;;
2329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2330 (eval "$ac_compile") 2>&5
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); }; then
2334 for ac_file in conftest.o conftest.obj conftest.*; do
2335 test -f "$ac_file" || continue;
2337 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2338 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2343 echo "$as_me: failed program was:" >&5
2344 sed 's/^/| /' conftest.$ac_ext >&5
2346 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2347 See \`config.log' for more details." >&5
2348 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2349 See \`config.log' for more details." >&2;}
2350 { (exit 1); exit 1; }; }
2353 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2355 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2356 echo "${ECHO_T}$ac_cv_objext" >&6; }
2357 OBJEXT=$ac_cv_objext
2359 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2360 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2361 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
2364 cat >conftest.$ac_ext <<_ACEOF
2367 cat confdefs.h >>conftest.$ac_ext
2368 cat >>conftest.$ac_ext <<_ACEOF
2369 /* end confdefs.h. */
2382 rm -f conftest.$ac_objext
2383 if { (ac_try="$ac_compile"
2385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2386 *) ac_try_echo=$ac_try;;
2388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2389 (eval "$ac_compile") 2>conftest.er1
2391 grep -v '^ *+' conftest.er1 >conftest.err
2393 cat conftest.err >&5
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); } &&
2396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2397 { (case "(($ac_try" in
2398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2399 *) ac_try_echo=$ac_try;;
2401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2402 (eval "$ac_try") 2>&5
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; } &&
2406 { ac_try='test -s conftest.$ac_objext'
2407 { (case "(($ac_try" in
2408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2409 *) ac_try_echo=$ac_try;;
2411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2412 (eval "$ac_try") 2>&5
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; }; then
2418 echo "$as_me: failed program was:" >&5
2419 sed 's/^/| /' conftest.$ac_ext >&5
2424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2425 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2428 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2429 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2430 GCC=`test $ac_compiler_gnu = yes && echo yes`
2431 ac_test_CFLAGS=${CFLAGS+set}
2432 ac_save_CFLAGS=$CFLAGS
2433 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2434 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2435 if test "${ac_cv_prog_cc_g+set}" = set; then
2436 echo $ECHO_N "(cached) $ECHO_C" >&6
2438 ac_save_c_werror_flag=$ac_c_werror_flag
2439 ac_c_werror_flag=yes
2442 cat >conftest.$ac_ext <<_ACEOF
2445 cat confdefs.h >>conftest.$ac_ext
2446 cat >>conftest.$ac_ext <<_ACEOF
2447 /* end confdefs.h. */
2457 rm -f conftest.$ac_objext
2458 if { (ac_try="$ac_compile"
2460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2461 *) ac_try_echo=$ac_try;;
2463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2464 (eval "$ac_compile") 2>conftest.er1
2466 grep -v '^ *+' conftest.er1 >conftest.err
2468 cat conftest.err >&5
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); } &&
2471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2472 { (case "(($ac_try" in
2473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2474 *) ac_try_echo=$ac_try;;
2476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2477 (eval "$ac_try") 2>&5
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); }; } &&
2481 { ac_try='test -s conftest.$ac_objext'
2482 { (case "(($ac_try" in
2483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2484 *) ac_try_echo=$ac_try;;
2486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2487 (eval "$ac_try") 2>&5
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); }; }; then
2493 echo "$as_me: failed program was:" >&5
2494 sed 's/^/| /' conftest.$ac_ext >&5
2497 cat >conftest.$ac_ext <<_ACEOF
2500 cat confdefs.h >>conftest.$ac_ext
2501 cat >>conftest.$ac_ext <<_ACEOF
2502 /* end confdefs.h. */
2512 rm -f conftest.$ac_objext
2513 if { (ac_try="$ac_compile"
2515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2516 *) ac_try_echo=$ac_try;;
2518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2519 (eval "$ac_compile") 2>conftest.er1
2521 grep -v '^ *+' conftest.er1 >conftest.err
2523 cat conftest.err >&5
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); } &&
2526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2527 { (case "(($ac_try" in
2528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2529 *) ac_try_echo=$ac_try;;
2531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2532 (eval "$ac_try") 2>&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; } &&
2536 { ac_try='test -s conftest.$ac_objext'
2537 { (case "(($ac_try" in
2538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2539 *) ac_try_echo=$ac_try;;
2541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2542 (eval "$ac_try") 2>&5
2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545 (exit $ac_status); }; }; then
2548 echo "$as_me: failed program was:" >&5
2549 sed 's/^/| /' conftest.$ac_ext >&5
2551 ac_c_werror_flag=$ac_save_c_werror_flag
2553 cat >conftest.$ac_ext <<_ACEOF
2556 cat confdefs.h >>conftest.$ac_ext
2557 cat >>conftest.$ac_ext <<_ACEOF
2558 /* end confdefs.h. */
2568 rm -f conftest.$ac_objext
2569 if { (ac_try="$ac_compile"
2571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572 *) ac_try_echo=$ac_try;;
2574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2575 (eval "$ac_compile") 2>conftest.er1
2577 grep -v '^ *+' conftest.er1 >conftest.err
2579 cat conftest.err >&5
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); } &&
2582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2583 { (case "(($ac_try" in
2584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2585 *) ac_try_echo=$ac_try;;
2587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2588 (eval "$ac_try") 2>&5
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }; } &&
2592 { ac_try='test -s conftest.$ac_objext'
2593 { (case "(($ac_try" in
2594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2595 *) ac_try_echo=$ac_try;;
2597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2598 (eval "$ac_try") 2>&5
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); }; }; then
2604 echo "$as_me: failed program was:" >&5
2605 sed 's/^/| /' conftest.$ac_ext >&5
2610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2617 ac_c_werror_flag=$ac_save_c_werror_flag
2619 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2620 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2621 if test "$ac_test_CFLAGS" = set; then
2622 CFLAGS=$ac_save_CFLAGS
2623 elif test $ac_cv_prog_cc_g = yes; then
2624 if test "$GCC" = yes; then
2630 if test "$GCC" = yes; then
2636 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2637 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2638 if test "${ac_cv_prog_cc_c89+set}" = set; then
2639 echo $ECHO_N "(cached) $ECHO_C" >&6
2641 ac_cv_prog_cc_c89=no
2643 cat >conftest.$ac_ext <<_ACEOF
2646 cat confdefs.h >>conftest.$ac_ext
2647 cat >>conftest.$ac_ext <<_ACEOF
2648 /* end confdefs.h. */
2651 #include <sys/types.h>
2652 #include <sys/stat.h>
2653 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2654 struct buf { int x; };
2655 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2656 static char *e (p, i)
2662 static char *f (char * (*g) (char **, int), char **p, ...)
2667 s = g (p, va_arg (v,int));
2672 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2673 function prototypes and stuff, but not '\xHH' hex character constants.
2674 These don't provoke an error unfortunately, instead are silently treated
2675 as 'x'. The following induces an error, until -std is added to get
2676 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2677 array size at least. It's necessary to write '\x00'==0 to get something
2678 that's true only with -std. */
2679 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2681 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2682 inside strings and character constants. */
2684 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2686 int test (int i, double x);
2687 struct s1 {int (*f) (int a);};
2688 struct s2 {int (*f) (double a);};
2689 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2695 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2700 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2701 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2703 CC="$ac_save_CC $ac_arg"
2704 rm -f conftest.$ac_objext
2705 if { (ac_try="$ac_compile"
2707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2708 *) ac_try_echo=$ac_try;;
2710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2711 (eval "$ac_compile") 2>conftest.er1
2713 grep -v '^ *+' conftest.er1 >conftest.err
2715 cat conftest.err >&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); } &&
2718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2719 { (case "(($ac_try" in
2720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721 *) ac_try_echo=$ac_try;;
2723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2724 (eval "$ac_try") 2>&5
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; } &&
2728 { ac_try='test -s conftest.$ac_objext'
2729 { (case "(($ac_try" in
2730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731 *) ac_try_echo=$ac_try;;
2733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734 (eval "$ac_try") 2>&5
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }; }; then
2738 ac_cv_prog_cc_c89=$ac_arg
2740 echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.$ac_ext >&5
2746 rm -f core conftest.err conftest.$ac_objext
2747 test "x$ac_cv_prog_cc_c89" != "xno" && break
2749 rm -f conftest.$ac_ext
2754 case "x$ac_cv_prog_cc_c89" in
2756 { echo "$as_me:$LINENO: result: none needed" >&5
2757 echo "${ECHO_T}none needed" >&6; } ;;
2759 { echo "$as_me:$LINENO: result: unsupported" >&5
2760 echo "${ECHO_T}unsupported" >&6; } ;;
2762 CC="$CC $ac_cv_prog_cc_c89"
2763 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2764 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2769 ac_cpp='$CPP $CPPFLAGS'
2770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2775 ac_cpp='$CXXCPP $CPPFLAGS'
2776 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2777 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2778 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2779 if test -z "$CXX"; then
2780 if test -n "$CCC"; then
2783 if test -n "$ac_tool_prefix"; then
2784 for ac_prog in clang++ llvm-g++ g++
2786 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2787 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2790 if test "${ac_cv_prog_CXX+set}" = set; then
2791 echo $ECHO_N "(cached) $ECHO_C" >&6
2793 if test -n "$CXX"; then
2794 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800 test -z "$as_dir" && as_dir=.
2801 for ac_exec_ext in '' $ac_executable_extensions; do
2802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2803 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2814 if test -n "$CXX"; then
2815 { echo "$as_me:$LINENO: result: $CXX" >&5
2816 echo "${ECHO_T}$CXX" >&6; }
2818 { echo "$as_me:$LINENO: result: no" >&5
2819 echo "${ECHO_T}no" >&6; }
2823 test -n "$CXX" && break
2826 if test -z "$CXX"; then
2828 for ac_prog in clang++ llvm-g++ g++
2830 # Extract the first word of "$ac_prog", so it can be a program name with args.
2831 set dummy $ac_prog; ac_word=$2
2832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2834 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2835 echo $ECHO_N "(cached) $ECHO_C" >&6
2837 if test -n "$ac_ct_CXX"; then
2838 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844 test -z "$as_dir" && as_dir=.
2845 for ac_exec_ext in '' $ac_executable_extensions; do
2846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2847 ac_cv_prog_ac_ct_CXX="$ac_prog"
2848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2857 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2858 if test -n "$ac_ct_CXX"; then
2859 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2860 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2862 { echo "$as_me:$LINENO: result: no" >&5
2863 echo "${ECHO_T}no" >&6; }
2867 test -n "$ac_ct_CXX" && break
2870 if test "x$ac_ct_CXX" = x; then
2873 case $cross_compiling:$ac_tool_warned in
2875 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2876 whose name does not start with the host triplet. If you think this
2877 configuration is useful to you, please write to autoconf@gnu.org." >&5
2878 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2879 whose name does not start with the host triplet. If you think this
2880 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2881 ac_tool_warned=yes ;;
2889 # Provide some information about the compiler.
2890 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2891 ac_compiler=`set X $ac_compile; echo $2`
2892 { (ac_try="$ac_compiler --version >&5"
2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895 *) ac_try_echo=$ac_try;;
2897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2898 (eval "$ac_compiler --version >&5") 2>&5
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }
2902 { (ac_try="$ac_compiler -v >&5"
2904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905 *) ac_try_echo=$ac_try;;
2907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2908 (eval "$ac_compiler -v >&5") 2>&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }
2912 { (ac_try="$ac_compiler -V >&5"
2914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915 *) ac_try_echo=$ac_try;;
2917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2918 (eval "$ac_compiler -V >&5") 2>&5
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }
2923 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2924 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2925 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2926 echo $ECHO_N "(cached) $ECHO_C" >&6
2928 cat >conftest.$ac_ext <<_ACEOF
2931 cat confdefs.h >>conftest.$ac_ext
2932 cat >>conftest.$ac_ext <<_ACEOF
2933 /* end confdefs.h. */
2946 rm -f conftest.$ac_objext
2947 if { (ac_try="$ac_compile"
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953 (eval "$ac_compile") 2>conftest.er1
2955 grep -v '^ *+' conftest.er1 >conftest.err
2957 cat conftest.err >&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); } &&
2960 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2961 { (case "(($ac_try" in
2962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963 *) ac_try_echo=$ac_try;;
2965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2966 (eval "$ac_try") 2>&5
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); }; } &&
2970 { ac_try='test -s conftest.$ac_objext'
2971 { (case "(($ac_try" in
2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973 *) ac_try_echo=$ac_try;;
2975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2976 (eval "$ac_try") 2>&5
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); }; }; then
2982 echo "$as_me: failed program was:" >&5
2983 sed 's/^/| /' conftest.$ac_ext >&5
2988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2989 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2992 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2993 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2994 GXX=`test $ac_compiler_gnu = yes && echo yes`
2995 ac_test_CXXFLAGS=${CXXFLAGS+set}
2996 ac_save_CXXFLAGS=$CXXFLAGS
2997 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2998 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2999 if test "${ac_cv_prog_cxx_g+set}" = set; then
3000 echo $ECHO_N "(cached) $ECHO_C" >&6
3002 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3003 ac_cxx_werror_flag=yes
3006 cat >conftest.$ac_ext <<_ACEOF
3009 cat confdefs.h >>conftest.$ac_ext
3010 cat >>conftest.$ac_ext <<_ACEOF
3011 /* end confdefs.h. */
3021 rm -f conftest.$ac_objext
3022 if { (ac_try="$ac_compile"
3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028 (eval "$ac_compile") 2>conftest.er1
3030 grep -v '^ *+' conftest.er1 >conftest.err
3032 cat conftest.err >&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); } &&
3035 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3036 { (case "(($ac_try" in
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041 (eval "$ac_try") 2>&5
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; } &&
3045 { ac_try='test -s conftest.$ac_objext'
3046 { (case "(($ac_try" in
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051 (eval "$ac_try") 2>&5
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); }; }; then
3055 ac_cv_prog_cxx_g=yes
3057 echo "$as_me: failed program was:" >&5
3058 sed 's/^/| /' conftest.$ac_ext >&5
3061 cat >conftest.$ac_ext <<_ACEOF
3064 cat confdefs.h >>conftest.$ac_ext
3065 cat >>conftest.$ac_ext <<_ACEOF
3066 /* end confdefs.h. */
3076 rm -f conftest.$ac_objext
3077 if { (ac_try="$ac_compile"
3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3083 (eval "$ac_compile") 2>conftest.er1
3085 grep -v '^ *+' conftest.er1 >conftest.err
3087 cat conftest.err >&5
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); } &&
3090 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3091 { (case "(($ac_try" in
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096 (eval "$ac_try") 2>&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); }; } &&
3100 { ac_try='test -s conftest.$ac_objext'
3101 { (case "(($ac_try" in
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106 (eval "$ac_try") 2>&5
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); }; }; then
3112 echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3115 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3117 cat >conftest.$ac_ext <<_ACEOF
3120 cat confdefs.h >>conftest.$ac_ext
3121 cat >>conftest.$ac_ext <<_ACEOF
3122 /* end confdefs.h. */
3132 rm -f conftest.$ac_objext
3133 if { (ac_try="$ac_compile"
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_compile") 2>conftest.er1
3141 grep -v '^ *+' conftest.er1 >conftest.err
3143 cat conftest.err >&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); } &&
3146 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3147 { (case "(($ac_try" in
3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149 *) ac_try_echo=$ac_try;;
3151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3152 (eval "$ac_try") 2>&5
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); }; } &&
3156 { ac_try='test -s conftest.$ac_objext'
3157 { (case "(($ac_try" in
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162 (eval "$ac_try") 2>&5
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); }; }; then
3166 ac_cv_prog_cxx_g=yes
3168 echo "$as_me: failed program was:" >&5
3169 sed 's/^/| /' conftest.$ac_ext >&5
3174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3181 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3183 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3184 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3185 if test "$ac_test_CXXFLAGS" = set; then
3186 CXXFLAGS=$ac_save_CXXFLAGS
3187 elif test $ac_cv_prog_cxx_g = yes; then
3188 if test "$GXX" = yes; then
3194 if test "$GXX" = yes; then
3201 ac_cpp='$CPP $CPPFLAGS'
3202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3207 ac_cpp='$CPP $CPPFLAGS'
3208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3211 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3212 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3213 # On Suns, sometimes $CPP names a directory.
3214 if test -n "$CPP" && test -d "$CPP"; then
3217 if test -z "$CPP"; then
3218 if test "${ac_cv_prog_CPP+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3221 # Double quotes because CPP needs to be expanded
3222 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3225 for ac_c_preproc_warn_flag in '' yes
3227 # Use a header file that comes with gcc, so configuring glibc
3228 # with a fresh cross-compiler works.
3229 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3230 # <limits.h> exists even on freestanding compilers.
3231 # On the NeXT, cc -E runs the code through the compiler's parser,
3232 # not just through cpp. "Syntax error" is here to catch this case.
3233 cat >conftest.$ac_ext <<_ACEOF
3236 cat confdefs.h >>conftest.$ac_ext
3237 cat >>conftest.$ac_ext <<_ACEOF
3238 /* end confdefs.h. */
3240 # include <limits.h>
3242 # include <assert.h>
3246 if { (ac_try="$ac_cpp conftest.$ac_ext"
3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249 *) ac_try_echo=$ac_try;;
3251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3254 grep -v '^ *+' conftest.er1 >conftest.err
3256 cat conftest.err >&5
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); } >/dev/null; then
3259 if test -s conftest.err; then
3260 ac_cpp_err=$ac_c_preproc_warn_flag
3261 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3268 if test -z "$ac_cpp_err"; then
3271 echo "$as_me: failed program was:" >&5
3272 sed 's/^/| /' conftest.$ac_ext >&5
3274 # Broken: fails on valid input.
3278 rm -f conftest.err conftest.$ac_ext
3280 # OK, works on sane cases. Now check whether nonexistent headers
3281 # can be detected and how.
3282 cat >conftest.$ac_ext <<_ACEOF
3285 cat confdefs.h >>conftest.$ac_ext
3286 cat >>conftest.$ac_ext <<_ACEOF
3287 /* end confdefs.h. */
3288 #include <ac_nonexistent.h>
3290 if { (ac_try="$ac_cpp conftest.$ac_ext"
3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293 *) ac_try_echo=$ac_try;;
3295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3298 grep -v '^ *+' conftest.er1 >conftest.err
3300 cat conftest.err >&5
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); } >/dev/null; then
3303 if test -s conftest.err; then
3304 ac_cpp_err=$ac_c_preproc_warn_flag
3305 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3312 if test -z "$ac_cpp_err"; then
3313 # Broken: success on invalid input.
3316 echo "$as_me: failed program was:" >&5
3317 sed 's/^/| /' conftest.$ac_ext >&5
3319 # Passes both tests.
3324 rm -f conftest.err conftest.$ac_ext
3327 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3328 rm -f conftest.err conftest.$ac_ext
3329 if $ac_preproc_ok; then
3341 { echo "$as_me:$LINENO: result: $CPP" >&5
3342 echo "${ECHO_T}$CPP" >&6; }
3344 for ac_c_preproc_warn_flag in '' yes
3346 # Use a header file that comes with gcc, so configuring glibc
3347 # with a fresh cross-compiler works.
3348 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3349 # <limits.h> exists even on freestanding compilers.
3350 # On the NeXT, cc -E runs the code through the compiler's parser,
3351 # not just through cpp. "Syntax error" is here to catch this case.
3352 cat >conftest.$ac_ext <<_ACEOF
3355 cat confdefs.h >>conftest.$ac_ext
3356 cat >>conftest.$ac_ext <<_ACEOF
3357 /* end confdefs.h. */
3359 # include <limits.h>
3361 # include <assert.h>
3365 if { (ac_try="$ac_cpp conftest.$ac_ext"
3367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368 *) ac_try_echo=$ac_try;;
3370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3371 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3373 grep -v '^ *+' conftest.er1 >conftest.err
3375 cat conftest.err >&5
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); } >/dev/null; then
3378 if test -s conftest.err; then
3379 ac_cpp_err=$ac_c_preproc_warn_flag
3380 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3387 if test -z "$ac_cpp_err"; then
3390 echo "$as_me: failed program was:" >&5
3391 sed 's/^/| /' conftest.$ac_ext >&5
3393 # Broken: fails on valid input.
3397 rm -f conftest.err conftest.$ac_ext
3399 # OK, works on sane cases. Now check whether nonexistent headers
3400 # can be detected and how.
3401 cat >conftest.$ac_ext <<_ACEOF
3404 cat confdefs.h >>conftest.$ac_ext
3405 cat >>conftest.$ac_ext <<_ACEOF
3406 /* end confdefs.h. */
3407 #include <ac_nonexistent.h>
3409 if { (ac_try="$ac_cpp conftest.$ac_ext"
3411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412 *) ac_try_echo=$ac_try;;
3414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3417 grep -v '^ *+' conftest.er1 >conftest.err
3419 cat conftest.err >&5
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); } >/dev/null; then
3422 if test -s conftest.err; then
3423 ac_cpp_err=$ac_c_preproc_warn_flag
3424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3431 if test -z "$ac_cpp_err"; then
3432 # Broken: success on invalid input.
3435 echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3438 # Passes both tests.
3443 rm -f conftest.err conftest.$ac_ext
3446 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3447 rm -f conftest.err conftest.$ac_ext
3448 if $ac_preproc_ok; then
3451 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3452 See \`config.log' for more details." >&5
3453 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3454 See \`config.log' for more details." >&2;}
3455 { (exit 1); exit 1; }; }
3459 ac_cpp='$CPP $CPPFLAGS'
3460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3467 if test -d ${srcdir}/projects/llvm-gcc ; then
3468 subdirs="$subdirs projects/llvm-gcc"
3472 if test -d ${srcdir}/projects/test-suite ; then
3473 subdirs="$subdirs projects/test-suite"
3477 if test -d ${srcdir}/projects/llvm-test ; then
3478 subdirs="$subdirs projects/llvm-test"
3482 if test -d ${srcdir}/projects/poolalloc ; then
3483 subdirs="$subdirs projects/poolalloc"
3487 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3488 subdirs="$subdirs projects/llvm-poolalloc"
3492 for i in `ls ${srcdir}/projects`
3494 if test -d ${srcdir}/projects/${i} ; then
3496 sample) subdirs="$subdirs projects/sample"
3498 privbracket) subdirs="$subdirs projects/privbracket"
3500 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3502 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3504 llvm-java) subdirs="$subdirs projects/llvm-java"
3506 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3508 safecode) subdirs="$subdirs projects/safecode"
3510 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3519 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3520 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3526 # Check whether --enable-polly was given.
3527 if test "${enable_polly+set}" = set; then
3528 enableval=$enable_polly;
3533 case "$enableval" in
3538 default) ENABLE_POLLY=1
3540 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3541 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3542 { (exit 1); exit 1; }; } ;;
3546 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3549 subdirs="$subdirs tools/polly"
3554 # Make sure we can run config.sub.
3555 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3556 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3557 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3558 { (exit 1); exit 1; }; }
3560 { echo "$as_me:$LINENO: checking build system type" >&5
3561 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3562 if test "${ac_cv_build+set}" = set; then
3563 echo $ECHO_N "(cached) $ECHO_C" >&6
3565 ac_build_alias=$build_alias
3566 test "x$ac_build_alias" = x &&
3567 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3568 test "x$ac_build_alias" = x &&
3569 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3570 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3571 { (exit 1); exit 1; }; }
3572 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3573 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3574 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3575 { (exit 1); exit 1; }; }
3578 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3579 echo "${ECHO_T}$ac_cv_build" >&6; }
3580 case $ac_cv_build in
3582 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3583 echo "$as_me: error: invalid value of canonical build" >&2;}
3584 { (exit 1); exit 1; }; };;
3587 ac_save_IFS=$IFS; IFS='-'
3593 # Remember, the first character of IFS is used to create $*,
3594 # except with old shells:
3597 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3600 { echo "$as_me:$LINENO: checking host system type" >&5
3601 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3602 if test "${ac_cv_host+set}" = set; then
3603 echo $ECHO_N "(cached) $ECHO_C" >&6
3605 if test "x$host_alias" = x; then
3606 ac_cv_host=$ac_cv_build
3608 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3609 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3610 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3611 { (exit 1); exit 1; }; }
3615 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3616 echo "${ECHO_T}$ac_cv_host" >&6; }
3619 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3620 echo "$as_me: error: invalid value of canonical host" >&2;}
3621 { (exit 1); exit 1; }; };;
3624 ac_save_IFS=$IFS; IFS='-'
3630 # Remember, the first character of IFS is used to create $*,
3631 # except with old shells:
3634 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3637 { echo "$as_me:$LINENO: checking target system type" >&5
3638 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3639 if test "${ac_cv_target+set}" = set; then
3640 echo $ECHO_N "(cached) $ECHO_C" >&6
3642 if test "x$target_alias" = x; then
3643 ac_cv_target=$ac_cv_host
3645 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3646 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3647 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3648 { (exit 1); exit 1; }; }
3652 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3653 echo "${ECHO_T}$ac_cv_target" >&6; }
3654 case $ac_cv_target in
3656 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3657 echo "$as_me: error: invalid value of canonical target" >&2;}
3658 { (exit 1); exit 1; }; };;
3660 target=$ac_cv_target
3661 ac_save_IFS=$IFS; IFS='-'
3667 # Remember, the first character of IFS is used to create $*,
3668 # except with old shells:
3671 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3674 # The aliases save the names the user supplied, while $host etc.
3675 # will get canonicalized.
3676 test -n "$target_alias" &&
3677 test "$program_prefix$program_suffix$program_transform_name" = \
3679 program_prefix=${target_alias}-
3681 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3682 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3683 if test "${llvm_cv_os_type+set}" = set; then
3684 echo $ECHO_N "(cached) $ECHO_C" >&6
3688 llvm_cv_link_all_option="-Wl,--whole-archive"
3689 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3690 llvm_cv_os_type="AIX"
3691 llvm_cv_platform_type="Unix" ;;
3693 llvm_cv_link_all_option="-Wl,--whole-archive"
3694 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3695 llvm_cv_os_type="IRIX"
3696 llvm_cv_platform_type="Unix" ;;
3698 llvm_cv_link_all_option="-Wl,--whole-archive"
3699 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3700 llvm_cv_os_type="Cygwin"
3701 llvm_cv_platform_type="Unix" ;;
3703 llvm_cv_link_all_option="-Wl,-all_load"
3704 llvm_cv_no_link_all_option="-Wl,-noall_load"
3705 llvm_cv_os_type="Darwin"
3706 llvm_cv_platform_type="Unix" ;;
3708 llvm_cv_link_all_option="-Wl,-all_load"
3709 llvm_cv_no_link_all_option="-Wl,-noall_load"
3710 llvm_cv_os_type="Minix"
3711 llvm_cv_platform_type="Unix" ;;
3712 *-*-freebsd* | *-*-kfreebsd-gnu)
3713 llvm_cv_link_all_option="-Wl,--whole-archive"
3714 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3715 llvm_cv_os_type="FreeBSD"
3716 llvm_cv_platform_type="Unix" ;;
3718 llvm_cv_link_all_option="-Wl,--whole-archive"
3719 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3720 llvm_cv_os_type="OpenBSD"
3721 llvm_cv_platform_type="Unix" ;;
3723 llvm_cv_link_all_option="-Wl,--whole-archive"
3724 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3725 llvm_cv_os_type="NetBSD"
3726 llvm_cv_platform_type="Unix" ;;
3728 llvm_cv_link_all_option="-Wl,--whole-archive"
3729 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3730 llvm_cv_os_type="DragonFly"
3731 llvm_cv_platform_type="Unix" ;;
3733 llvm_cv_link_all_option="-Wl,--whole-archive"
3734 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3735 llvm_cv_os_type="HP-UX"
3736 llvm_cv_platform_type="Unix" ;;
3738 llvm_cv_link_all_option="-Wl,--whole-archive"
3739 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3740 llvm_cv_os_type="Interix"
3741 llvm_cv_platform_type="Unix" ;;
3743 llvm_cv_link_all_option="-Wl,--whole-archive"
3744 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3745 llvm_cv_os_type="Linux"
3746 llvm_cv_platform_type="Unix" ;;
3748 llvm_cv_link_all_option="-Wl,--whole-archive"
3749 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3750 llvm_cv_os_type="GNU"
3751 llvm_cv_platform_type="Unix" ;;
3753 llvm_cv_link_all_option="-Wl,-z,allextract"
3754 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3755 llvm_cv_os_type="SunOS"
3756 llvm_cv_platform_type="Unix" ;;
3758 llvm_cv_link_all_option="-Wl,-z,allextract"
3759 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3760 llvm_cv_os_type="AuroraUX"
3761 llvm_cv_platform_type="Unix" ;;
3763 llvm_cv_link_all_option="-Wl,--whole-archive"
3764 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3765 llvm_cv_os_type="Win32"
3766 llvm_cv_platform_type="Win32" ;;
3768 llvm_cv_link_all_option="-Wl,--whole-archive"
3769 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3770 llvm_cv_os_type="MingW"
3771 llvm_cv_platform_type="Win32" ;;
3773 llvm_cv_link_all_option="-Wl,--whole-archive"
3774 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3775 llvm_cv_os_type="Haiku"
3776 llvm_cv_platform_type="Unix" ;;
3778 llvm_cv_link_all_option="-Wl,--whole-archive"
3779 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3780 llvm_cv_os_type="Freestanding"
3781 llvm_cv_platform_type="Unix" ;;
3783 llvm_cv_link_all_option="-Wl,--whole-archive"
3784 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3785 llvm_cv_os_type="Freestanding"
3786 llvm_cv_platform_type="Unix" ;;
3788 llvm_cv_link_all_option=""
3789 llvm_cv_no_link_all_option=""
3790 llvm_cv_os_type="Unknown"
3791 llvm_cv_platform_type="Unknown" ;;
3794 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3795 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3797 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3798 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3799 if test "${llvm_cv_target_os_type+set}" = set; then
3800 echo $ECHO_N "(cached) $ECHO_C" >&6
3804 llvm_cv_target_os_type="AIX" ;;
3806 llvm_cv_target_os_type="IRIX" ;;
3808 llvm_cv_target_os_type="Cygwin" ;;
3810 llvm_cv_target_os_type="Darwin" ;;
3812 llvm_cv_target_os_type="Minix" ;;
3813 *-*-freebsd* | *-*-kfreebsd-gnu)
3814 llvm_cv_target_os_type="FreeBSD" ;;
3816 llvm_cv_target_os_type="OpenBSD" ;;
3818 llvm_cv_target_os_type="NetBSD" ;;
3820 llvm_cv_target_os_type="DragonFly" ;;
3822 llvm_cv_target_os_type="HP-UX" ;;
3824 llvm_cv_target_os_type="Interix" ;;
3826 llvm_cv_target_os_type="Linux" ;;
3828 llvm_cv_target_os_type="GNU" ;;
3830 llvm_cv_target_os_type="SunOS" ;;
3832 llvm_cv_target_os_type="AuroraUX" ;;
3834 llvm_cv_target_os_type="Win32" ;;
3836 llvm_cv_target_os_type="MingW" ;;
3838 llvm_cv_target_os_type="Haiku" ;;
3840 llvm_cv_target_os_type="RTEMS" ;;
3842 llvm_cv_target_os_type="NativeClient" ;;
3844 llvm_cv_target_os_type="Freestanding" ;;
3846 llvm_cv_target_os_type="Unknown" ;;
3849 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3850 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3852 if test "$llvm_cv_os_type" = "Unknown" ; then
3853 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3854 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3855 { (exit 1); exit 1; }; }
3860 HOST_OS=$llvm_cv_os_type
3862 TARGET_OS=$llvm_cv_target_os_type
3865 LINKALL=$llvm_cv_link_all_option
3867 NOLINKALL=$llvm_cv_no_link_all_option
3870 case $llvm_cv_platform_type in
3873 cat >>confdefs.h <<\_ACEOF
3874 #define LLVM_ON_UNIX 1
3884 cat >>confdefs.h <<\_ACEOF
3885 #define LLVM_ON_WIN32 1
3895 { echo "$as_me:$LINENO: checking target architecture" >&5
3896 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3897 if test "${llvm_cv_target_arch+set}" = set; then
3898 echo $ECHO_N "(cached) $ECHO_C" >&6
3901 i?86-*) llvm_cv_target_arch="x86" ;;
3902 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3903 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3904 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3905 arm*-*) llvm_cv_target_arch="ARM" ;;
3906 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
3907 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
3908 xcore-*) llvm_cv_target_arch="XCore" ;;
3909 msp430-*) llvm_cv_target_arch="MSP430" ;;
3910 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
3911 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3912 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
3913 *) llvm_cv_target_arch="Unknown" ;;
3916 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3917 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3919 if test "$llvm_cv_target_arch" = "Unknown" ; then
3920 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3921 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3924 case "$llvm_cv_target_arch" in
3925 x86) LLVM_NATIVE_ARCH="X86" ;;
3926 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3927 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3930 ARCH=$llvm_cv_target_arch
3934 i?86-*) host_arch="x86" ;;
3935 amd64-* | x86_64-*) host_arch="x86_64" ;;
3936 sparc*-*) host_arch="Sparc" ;;
3937 powerpc*-*) host_arch="PowerPC" ;;
3938 arm*-*) host_arch="ARM" ;;
3939 mips-* | mips64-*) host_arch="Mips" ;;
3940 mipsel-* | mips64el-*) host_arch="Mips" ;;
3941 xcore-*) host_arch="XCore" ;;
3942 msp430-*) host_arch="MSP430" ;;
3943 hexagon-*) host_arch="Hexagon" ;;
3944 mblaze-*) host_arch="MBlaze" ;;
3945 *) host_arch="Unknown" ;;
3948 if test "$host_arch" = "Unknown" ; then
3949 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
3950 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
3953 HOST_ARCH=$host_arch
3958 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3959 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3960 if test "${ac_cv_path_GREP+set}" = set; then
3961 echo $ECHO_N "(cached) $ECHO_C" >&6
3963 # Extract the first word of "grep ggrep" to use in msg output
3964 if test -z "$GREP"; then
3965 set dummy grep ggrep; ac_prog_name=$2
3966 if test "${ac_cv_path_GREP+set}" = set; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
3969 ac_path_GREP_found=false
3970 # Loop through the user's path and test for each of PROGNAME-LIST
3971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3975 test -z "$as_dir" && as_dir=.
3976 for ac_prog in grep ggrep; do
3977 for ac_exec_ext in '' $ac_executable_extensions; do
3978 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3979 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3980 # Check for GNU ac_path_GREP and select it if it is found.
3981 # Check for GNU $ac_path_GREP
3982 case `"$ac_path_GREP" --version 2>&1` in
3984 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3987 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3990 cat "conftest.in" "conftest.in" >"conftest.tmp"
3991 mv "conftest.tmp" "conftest.in"
3992 cp "conftest.in" "conftest.nl"
3993 echo 'GREP' >> "conftest.nl"
3994 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3995 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3996 ac_count=`expr $ac_count + 1`
3997 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3998 # Best one so far, save it but keep looking for a better one
3999 ac_cv_path_GREP="$ac_path_GREP"
4000 ac_path_GREP_max=$ac_count
4002 # 10*(2^10) chars as input seems more than enough
4003 test $ac_count -gt 10 && break
4005 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4009 $ac_path_GREP_found && break 3
4019 GREP="$ac_cv_path_GREP"
4020 if test -z "$GREP"; then
4021 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4022 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4023 { (exit 1); exit 1; }; }
4027 ac_cv_path_GREP=$GREP
4032 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4033 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4034 GREP="$ac_cv_path_GREP"
4037 { echo "$as_me:$LINENO: checking for egrep" >&5
4038 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4039 if test "${ac_cv_path_EGREP+set}" = set; then
4040 echo $ECHO_N "(cached) $ECHO_C" >&6
4042 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4043 then ac_cv_path_EGREP="$GREP -E"
4045 # Extract the first word of "egrep" to use in msg output
4046 if test -z "$EGREP"; then
4047 set dummy egrep; ac_prog_name=$2
4048 if test "${ac_cv_path_EGREP+set}" = set; then
4049 echo $ECHO_N "(cached) $ECHO_C" >&6
4051 ac_path_EGREP_found=false
4052 # Loop through the user's path and test for each of PROGNAME-LIST
4053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4054 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4057 test -z "$as_dir" && as_dir=.
4058 for ac_prog in egrep; do
4059 for ac_exec_ext in '' $ac_executable_extensions; do
4060 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4061 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4062 # Check for GNU ac_path_EGREP and select it if it is found.
4063 # Check for GNU $ac_path_EGREP
4064 case `"$ac_path_EGREP" --version 2>&1` in
4066 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4069 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4072 cat "conftest.in" "conftest.in" >"conftest.tmp"
4073 mv "conftest.tmp" "conftest.in"
4074 cp "conftest.in" "conftest.nl"
4075 echo 'EGREP' >> "conftest.nl"
4076 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4077 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4078 ac_count=`expr $ac_count + 1`
4079 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4080 # Best one so far, save it but keep looking for a better one
4081 ac_cv_path_EGREP="$ac_path_EGREP"
4082 ac_path_EGREP_max=$ac_count
4084 # 10*(2^10) chars as input seems more than enough
4085 test $ac_count -gt 10 && break
4087 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4091 $ac_path_EGREP_found && break 3
4101 EGREP="$ac_cv_path_EGREP"
4102 if test -z "$EGREP"; then
4103 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4104 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4105 { (exit 1); exit 1; }; }
4109 ac_cv_path_EGREP=$EGREP
4115 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4116 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4117 EGREP="$ac_cv_path_EGREP"
4120 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4121 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4122 if test "${ac_cv_header_stdc+set}" = set; then
4123 echo $ECHO_N "(cached) $ECHO_C" >&6
4125 cat >conftest.$ac_ext <<_ACEOF
4128 cat confdefs.h >>conftest.$ac_ext
4129 cat >>conftest.$ac_ext <<_ACEOF
4130 /* end confdefs.h. */
4144 rm -f conftest.$ac_objext
4145 if { (ac_try="$ac_compile"
4147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148 *) ac_try_echo=$ac_try;;
4150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4151 (eval "$ac_compile") 2>conftest.er1
4153 grep -v '^ *+' conftest.er1 >conftest.err
4155 cat conftest.err >&5
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); } &&
4158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4159 { (case "(($ac_try" in
4160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4161 *) ac_try_echo=$ac_try;;
4163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4164 (eval "$ac_try") 2>&5
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); }; } &&
4168 { ac_try='test -s conftest.$ac_objext'
4169 { (case "(($ac_try" in
4170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171 *) ac_try_echo=$ac_try;;
4173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4174 (eval "$ac_try") 2>&5
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); }; }; then
4178 ac_cv_header_stdc=yes
4180 echo "$as_me: failed program was:" >&5
4181 sed 's/^/| /' conftest.$ac_ext >&5
4183 ac_cv_header_stdc=no
4186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4188 if test $ac_cv_header_stdc = yes; then
4189 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4190 cat >conftest.$ac_ext <<_ACEOF
4193 cat confdefs.h >>conftest.$ac_ext
4194 cat >>conftest.$ac_ext <<_ACEOF
4195 /* end confdefs.h. */
4199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4200 $EGREP "memchr" >/dev/null 2>&1; then
4203 ac_cv_header_stdc=no
4209 if test $ac_cv_header_stdc = yes; then
4210 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4211 cat >conftest.$ac_ext <<_ACEOF
4214 cat confdefs.h >>conftest.$ac_ext
4215 cat >>conftest.$ac_ext <<_ACEOF
4216 /* end confdefs.h. */
4220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4221 $EGREP "free" >/dev/null 2>&1; then
4224 ac_cv_header_stdc=no
4230 if test $ac_cv_header_stdc = yes; then
4231 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4232 if test "$cross_compiling" = yes; then
4235 cat >conftest.$ac_ext <<_ACEOF
4238 cat confdefs.h >>conftest.$ac_ext
4239 cat >>conftest.$ac_ext <<_ACEOF
4240 /* end confdefs.h. */
4243 #if ((' ' & 0x0FF) == 0x020)
4244 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4245 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4247 # define ISLOWER(c) \
4248 (('a' <= (c) && (c) <= 'i') \
4249 || ('j' <= (c) && (c) <= 'r') \
4250 || ('s' <= (c) && (c) <= 'z'))
4251 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4254 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4259 for (i = 0; i < 256; i++)
4260 if (XOR (islower (i), ISLOWER (i))
4261 || toupper (i) != TOUPPER (i))
4266 rm -f conftest$ac_exeext
4267 if { (ac_try="$ac_link"
4269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270 *) ac_try_echo=$ac_try;;
4272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4273 (eval "$ac_link") 2>&5
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4277 { (case "(($ac_try" in
4278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4279 *) ac_try_echo=$ac_try;;
4281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4282 (eval "$ac_try") 2>&5
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); }; }; then
4288 echo "$as_me: program exited with status $ac_status" >&5
4289 echo "$as_me: failed program was:" >&5
4290 sed 's/^/| /' conftest.$ac_ext >&5
4293 ac_cv_header_stdc=no
4295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4301 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4302 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4303 if test $ac_cv_header_stdc = yes; then
4305 cat >>confdefs.h <<\_ACEOF
4306 #define STDC_HEADERS 1
4311 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4321 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4322 inttypes.h stdint.h unistd.h
4324 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4325 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4328 echo $ECHO_N "(cached) $ECHO_C" >&6
4330 cat >conftest.$ac_ext <<_ACEOF
4333 cat confdefs.h >>conftest.$ac_ext
4334 cat >>conftest.$ac_ext <<_ACEOF
4335 /* end confdefs.h. */
4336 $ac_includes_default
4338 #include <$ac_header>
4340 rm -f conftest.$ac_objext
4341 if { (ac_try="$ac_compile"
4343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4344 *) ac_try_echo=$ac_try;;
4346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4347 (eval "$ac_compile") 2>conftest.er1
4349 grep -v '^ *+' conftest.er1 >conftest.err
4351 cat conftest.err >&5
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); } &&
4354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4355 { (case "(($ac_try" in
4356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4357 *) ac_try_echo=$ac_try;;
4359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4360 (eval "$ac_try") 2>&5
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); }; } &&
4364 { ac_try='test -s conftest.$ac_objext'
4365 { (case "(($ac_try" in
4366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4367 *) ac_try_echo=$ac_try;;
4369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4370 (eval "$ac_try") 2>&5
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); }; }; then
4374 eval "$as_ac_Header=yes"
4376 echo "$as_me: failed program was:" >&5
4377 sed 's/^/| /' conftest.$ac_ext >&5
4379 eval "$as_ac_Header=no"
4382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4384 ac_res=`eval echo '${'$as_ac_Header'}'`
4385 { echo "$as_me:$LINENO: result: $ac_res" >&5
4386 echo "${ECHO_T}$ac_res" >&6; }
4387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4388 cat >>confdefs.h <<_ACEOF
4389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4397 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4398 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4399 if test "${ac_cv_c_bigendian+set}" = set; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4402 # See if sys/param.h defines the BYTE_ORDER macro.
4403 cat >conftest.$ac_ext <<_ACEOF
4406 cat confdefs.h >>conftest.$ac_ext
4407 cat >>conftest.$ac_ext <<_ACEOF
4408 /* end confdefs.h. */
4409 #include <sys/types.h>
4410 #include <sys/param.h>
4415 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4423 rm -f conftest.$ac_objext
4424 if { (ac_try="$ac_compile"
4426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4427 *) ac_try_echo=$ac_try;;
4429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4430 (eval "$ac_compile") 2>conftest.er1
4432 grep -v '^ *+' conftest.er1 >conftest.err
4434 cat conftest.err >&5
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); } &&
4437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4438 { (case "(($ac_try" in
4439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4440 *) ac_try_echo=$ac_try;;
4442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4443 (eval "$ac_try") 2>&5
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); }; } &&
4447 { ac_try='test -s conftest.$ac_objext'
4448 { (case "(($ac_try" in
4449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4450 *) ac_try_echo=$ac_try;;
4452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4453 (eval "$ac_try") 2>&5
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); }; }; then
4457 # It does; now see whether it defined to BIG_ENDIAN or not.
4458 cat >conftest.$ac_ext <<_ACEOF
4461 cat confdefs.h >>conftest.$ac_ext
4462 cat >>conftest.$ac_ext <<_ACEOF
4463 /* end confdefs.h. */
4464 #include <sys/types.h>
4465 #include <sys/param.h>
4470 #if BYTE_ORDER != BIG_ENDIAN
4478 rm -f conftest.$ac_objext
4479 if { (ac_try="$ac_compile"
4481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4482 *) ac_try_echo=$ac_try;;
4484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4485 (eval "$ac_compile") 2>conftest.er1
4487 grep -v '^ *+' conftest.er1 >conftest.err
4489 cat conftest.err >&5
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); } &&
4492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4493 { (case "(($ac_try" in
4494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4495 *) ac_try_echo=$ac_try;;
4497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4498 (eval "$ac_try") 2>&5
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); }; } &&
4502 { ac_try='test -s conftest.$ac_objext'
4503 { (case "(($ac_try" in
4504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4505 *) ac_try_echo=$ac_try;;
4507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4508 (eval "$ac_try") 2>&5
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); }; }; then
4512 ac_cv_c_bigendian=yes
4514 echo "$as_me: failed program was:" >&5
4515 sed 's/^/| /' conftest.$ac_ext >&5
4517 ac_cv_c_bigendian=no
4520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4522 echo "$as_me: failed program was:" >&5
4523 sed 's/^/| /' conftest.$ac_ext >&5
4525 # It does not; compile a test program.
4526 if test "$cross_compiling" = yes; then
4527 # try to guess the endianness by grepping values into an object file
4528 ac_cv_c_bigendian=unknown
4529 cat >conftest.$ac_ext <<_ACEOF
4532 cat confdefs.h >>conftest.$ac_ext
4533 cat >>conftest.$ac_ext <<_ACEOF
4534 /* end confdefs.h. */
4535 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4536 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4537 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4538 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4539 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4540 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4544 _ascii (); _ebcdic ();
4549 rm -f conftest.$ac_objext
4550 if { (ac_try="$ac_compile"
4552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4553 *) ac_try_echo=$ac_try;;
4555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4556 (eval "$ac_compile") 2>conftest.er1
4558 grep -v '^ *+' conftest.er1 >conftest.err
4560 cat conftest.err >&5
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); } &&
4563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4564 { (case "(($ac_try" in
4565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4566 *) ac_try_echo=$ac_try;;
4568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4569 (eval "$ac_try") 2>&5
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); }; } &&
4573 { ac_try='test -s conftest.$ac_objext'
4574 { (case "(($ac_try" in
4575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4576 *) ac_try_echo=$ac_try;;
4578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4579 (eval "$ac_try") 2>&5
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); }; }; then
4583 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4584 ac_cv_c_bigendian=yes
4586 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4587 if test "$ac_cv_c_bigendian" = unknown; then
4588 ac_cv_c_bigendian=no
4590 # finding both strings is unlikely to happen, but who knows?
4591 ac_cv_c_bigendian=unknown
4595 echo "$as_me: failed program was:" >&5
4596 sed 's/^/| /' conftest.$ac_ext >&5
4601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4603 cat >conftest.$ac_ext <<_ACEOF
4606 cat confdefs.h >>conftest.$ac_ext
4607 cat >>conftest.$ac_ext <<_ACEOF
4608 /* end confdefs.h. */
4609 $ac_includes_default
4614 /* Are we little or big endian? From Harbison&Steele. */
4618 char c[sizeof (long int)];
4621 return u.c[sizeof (long int) - 1] == 1;
4627 rm -f conftest$ac_exeext
4628 if { (ac_try="$ac_link"
4630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4631 *) ac_try_echo=$ac_try;;
4633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4634 (eval "$ac_link") 2>&5
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4638 { (case "(($ac_try" in
4639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4640 *) ac_try_echo=$ac_try;;
4642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4643 (eval "$ac_try") 2>&5
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); }; }; then
4647 ac_cv_c_bigendian=no
4649 echo "$as_me: program exited with status $ac_status" >&5
4650 echo "$as_me: failed program was:" >&5
4651 sed 's/^/| /' conftest.$ac_ext >&5
4654 ac_cv_c_bigendian=yes
4656 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4664 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4665 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4666 case $ac_cv_c_bigendian in
4674 { { echo "$as_me:$LINENO: error: unknown endianness
4675 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4676 echo "$as_me: error: unknown endianness
4677 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4678 { (exit 1); exit 1; }; } ;;
4682 if test "$cross_compiling" = yes; then
4683 LLVM_CROSS_COMPILING=1
4686 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4687 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4688 if test "${ac_cv_build_exeext+set}" = set; then
4689 echo $ECHO_N "(cached) $ECHO_C" >&6
4691 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4692 ac_cv_build_exeext=.exe
4694 ac_build_prefix=${build_alias}-
4696 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4697 set dummy ${ac_build_prefix}gcc; ac_word=$2
4698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4700 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4701 echo $ECHO_N "(cached) $ECHO_C" >&6
4703 if test -n "$BUILD_CC"; then
4704 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 test -z "$as_dir" && as_dir=.
4711 for ac_exec_ext in '' $ac_executable_extensions; do
4712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4713 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4723 BUILD_CC=$ac_cv_prog_BUILD_CC
4724 if test -n "$BUILD_CC"; then
4725 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4726 echo "${ECHO_T}$BUILD_CC" >&6; }
4728 { echo "$as_me:$LINENO: result: no" >&5
4729 echo "${ECHO_T}no" >&6; }
4733 if test -z "$BUILD_CC"; then
4734 # Extract the first word of "gcc", so it can be a program name with args.
4735 set dummy gcc; ac_word=$2
4736 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4738 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
4741 if test -n "$BUILD_CC"; then
4742 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748 test -z "$as_dir" && as_dir=.
4749 for ac_exec_ext in '' $ac_executable_extensions; do
4750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4751 ac_cv_prog_BUILD_CC="gcc"
4752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4761 BUILD_CC=$ac_cv_prog_BUILD_CC
4762 if test -n "$BUILD_CC"; then
4763 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4764 echo "${ECHO_T}$BUILD_CC" >&6; }
4766 { echo "$as_me:$LINENO: result: no" >&5
4767 echo "${ECHO_T}no" >&6; }
4771 if test -z "$BUILD_CC"; then
4772 # Extract the first word of "cc", so it can be a program name with args.
4773 set dummy cc; ac_word=$2
4774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4776 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4777 echo $ECHO_N "(cached) $ECHO_C" >&6
4779 if test -n "$BUILD_CC"; then
4780 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787 test -z "$as_dir" && as_dir=.
4788 for ac_exec_ext in '' $ac_executable_extensions; do
4789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4790 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4791 ac_prog_rejected=yes
4794 ac_cv_prog_BUILD_CC="cc"
4795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4802 if test $ac_prog_rejected = yes; then
4803 # We found a bogon in the path, so make sure we never use it.
4804 set dummy $ac_cv_prog_BUILD_CC
4806 if test $# != 0; then
4807 # We chose a different compiler from the bogus one.
4808 # However, it has the same basename, so the bogon will be chosen
4809 # first if we set BUILD_CC to just the basename; use the full file name.
4811 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4816 BUILD_CC=$ac_cv_prog_BUILD_CC
4817 if test -n "$BUILD_CC"; then
4818 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4819 echo "${ECHO_T}$BUILD_CC" >&6; }
4821 { echo "$as_me:$LINENO: result: no" >&5
4822 echo "${ECHO_T}no" >&6; }
4828 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4829 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4830 { (exit 1); exit 1; }; }
4831 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4833 echo 'int main () { return 0; }' > conftest.$ac_ext
4835 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4836 (eval $ac_build_link) 2>&5
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); }; then
4840 for file in conftest.*; do
4842 *.c | *.o | *.obj | *.dSYM) ;;
4843 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4847 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4848 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4849 { (exit 1); exit 1; }; }
4852 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4857 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4858 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4859 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4860 ac_build_exeext=$BUILD_EXEEXT
4862 ac_build_prefix=${build_alias}-
4863 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4864 set dummy ${ac_build_prefix}g++; ac_word=$2
4865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4867 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4868 echo $ECHO_N "(cached) $ECHO_C" >&6
4870 if test -n "$BUILD_CXX"; then
4871 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 test -z "$as_dir" && as_dir=.
4878 for ac_exec_ext in '' $ac_executable_extensions; do
4879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4880 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4890 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4891 if test -n "$BUILD_CXX"; then
4892 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4893 echo "${ECHO_T}$BUILD_CXX" >&6; }
4895 { echo "$as_me:$LINENO: result: no" >&5
4896 echo "${ECHO_T}no" >&6; }
4900 if test -z "$BUILD_CXX"; then
4901 # Extract the first word of "g++", so it can be a program name with args.
4902 set dummy g++; ac_word=$2
4903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4905 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4906 echo $ECHO_N "(cached) $ECHO_C" >&6
4908 if test -n "$BUILD_CXX"; then
4909 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915 test -z "$as_dir" && as_dir=.
4916 for ac_exec_ext in '' $ac_executable_extensions; do
4917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4918 ac_cv_prog_BUILD_CXX="g++"
4919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4928 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4929 if test -n "$BUILD_CXX"; then
4930 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4931 echo "${ECHO_T}$BUILD_CXX" >&6; }
4933 { echo "$as_me:$LINENO: result: no" >&5
4934 echo "${ECHO_T}no" >&6; }
4938 if test -z "$BUILD_CXX"; then
4939 # Extract the first word of "c++", so it can be a program name with args.
4940 set dummy c++; ac_word=$2
4941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4943 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4944 echo $ECHO_N "(cached) $ECHO_C" >&6
4946 if test -n "$BUILD_CXX"; then
4947 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954 test -z "$as_dir" && as_dir=.
4955 for ac_exec_ext in '' $ac_executable_extensions; do
4956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4957 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4958 ac_prog_rejected=yes
4961 ac_cv_prog_BUILD_CXX="c++"
4962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4969 if test $ac_prog_rejected = yes; then
4970 # We found a bogon in the path, so make sure we never use it.
4971 set dummy $ac_cv_prog_BUILD_CXX
4973 if test $# != 0; then
4974 # We chose a different compiler from the bogus one.
4975 # However, it has the same basename, so the bogon will be chosen
4976 # first if we set BUILD_CXX to just the basename; use the full file name.
4978 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4983 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4984 if test -n "$BUILD_CXX"; then
4985 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4986 echo "${ECHO_T}$BUILD_CXX" >&6; }
4988 { echo "$as_me:$LINENO: result: no" >&5
4989 echo "${ECHO_T}no" >&6; }
4996 LLVM_CROSS_COMPILING=0
5000 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5011 # Check whether --enable-libcpp was given.
5012 if test "${enable_libcpp+set}" = set; then
5013 enableval=$enable_libcpp;
5018 case "$enableval" in
5019 yes) ENABLE_LIBCPP=1
5023 default) ENABLE_LIBCPP=0
5025 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5026 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5027 { (exit 1); exit 1; }; } ;;
5030 # Check whether --enable-cxx11 was given.
5031 if test "${enable_cxx11+set}" = set; then
5032 enableval=$enable_cxx11;
5037 case "$enableval" in
5042 default) ENABLE_CXX11=0
5044 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5045 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5046 { (exit 1); exit 1; }; } ;;
5049 # Check whether --enable-optimized was given.
5050 if test "${enable_optimized+set}" = set; then
5051 enableval=$enable_optimized;
5056 if test ${enableval} = "no" ; then
5060 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5064 # Check whether --enable-profiling was given.
5065 if test "${enable_profiling+set}" = set; then
5066 enableval=$enable_profiling;
5071 if test ${enableval} = "no" ; then
5075 ENABLE_PROFILING=ENABLE_PROFILING=1
5079 # Check whether --enable-assertions was given.
5080 if test "${enable_assertions+set}" = set; then
5081 enableval=$enable_assertions;
5086 if test ${enableval} = "yes" ; then
5090 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5094 # Check whether --enable-werror was given.
5095 if test "${enable_werror+set}" = set; then
5096 enableval=$enable_werror;
5101 case "$enableval" in
5102 yes) ENABLE_WERROR=1
5106 default) ENABLE_WERROR=0
5108 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5109 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5110 { (exit 1); exit 1; }; } ;;
5113 # Check whether --enable-expensive-checks was given.
5114 if test "${enable_expensive_checks+set}" = set; then
5115 enableval=$enable_expensive_checks;
5120 if test ${enableval} = "yes" ; then
5121 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5123 EXPENSIVE_CHECKS=yes
5126 ENABLE_EXPENSIVE_CHECKS=
5132 # Check whether --enable-debug-runtime was given.
5133 if test "${enable_debug_runtime+set}" = set; then
5134 enableval=$enable_debug_runtime;
5139 if test ${enableval} = "no" ; then
5143 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5147 # Check whether --enable-debug-symbols was given.
5148 if test "${enable_debug_symbols+set}" = set; then
5149 enableval=$enable_debug_symbols;
5154 if test ${enableval} = "no" ; then
5158 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5162 # Check whether --enable-keep-symbols was given.
5163 if test "${enable_keep_symbols+set}" = set; then
5164 enableval=$enable_keep_symbols;
5169 if test ${enableval} = "no" ; then
5173 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5177 # Check whether --enable-jit was given.
5178 if test "${enable_jit+set}" = set; then
5179 enableval=$enable_jit;
5184 if test ${enableval} = "no"
5189 case "$llvm_cv_target_arch" in
5190 x86) TARGET_HAS_JIT=1
5192 Sparc) TARGET_HAS_JIT=0
5194 PowerPC) TARGET_HAS_JIT=1
5196 x86_64) TARGET_HAS_JIT=1
5198 ARM) TARGET_HAS_JIT=1
5200 Mips) TARGET_HAS_JIT=1
5202 XCore) TARGET_HAS_JIT=0
5204 MSP430) TARGET_HAS_JIT=0
5206 Hexagon) TARGET_HAS_JIT=0
5208 MBlaze) TARGET_HAS_JIT=0
5210 NVPTX) TARGET_HAS_JIT=0
5217 # Check whether --enable-docs was given.
5218 if test "${enable_docs+set}" = set; then
5219 enableval=$enable_docs;
5224 case "$enableval" in
5229 default) ENABLE_DOCS=1
5231 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5232 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5233 { (exit 1); exit 1; }; } ;;
5236 # Check whether --enable-doxygen was given.
5237 if test "${enable_doxygen+set}" = set; then
5238 enableval=$enable_doxygen;
5243 case "$enableval" in
5244 yes) ENABLE_DOXYGEN=1
5246 no) ENABLE_DOXYGEN=0
5248 default) ENABLE_DOXYGEN=0
5250 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5251 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5252 { (exit 1); exit 1; }; } ;;
5255 # Check whether --enable-threads was given.
5256 if test "${enable_threads+set}" = set; then
5257 enableval=$enable_threads;
5262 case "$enableval" in
5263 yes) LLVM_ENABLE_THREADS=1
5265 no) LLVM_ENABLE_THREADS=0
5267 default) LLVM_ENABLE_THREADS=1
5269 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5270 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5271 { (exit 1); exit 1; }; } ;;
5274 cat >>confdefs.h <<_ACEOF
5275 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5279 # Check whether --enable-pthreads was given.
5280 if test "${enable_pthreads+set}" = set; then
5281 enableval=$enable_pthreads;
5286 case "$enableval" in
5287 yes) ENABLE_PTHREADS=1
5289 no) ENABLE_PTHREADS=0
5291 default) ENABLE_PTHREADS=1
5293 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5294 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5295 { (exit 1); exit 1; }; } ;;
5298 # Check whether --enable-pic was given.
5299 if test "${enable_pic+set}" = set; then
5300 enableval=$enable_pic;
5305 case "$enableval" in
5310 default) ENABLE_PIC=1
5312 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5313 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5314 { (exit 1); exit 1; }; } ;;
5317 cat >>confdefs.h <<_ACEOF
5318 #define ENABLE_PIC $ENABLE_PIC
5322 # Check whether --enable-shared was given.
5323 if test "${enable_shared+set}" = set; then
5324 enableval=$enable_shared;
5329 case "$enableval" in
5330 yes) ENABLE_SHARED=1
5334 default) ENABLE_SHARED=0
5336 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5337 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5338 { (exit 1); exit 1; }; } ;;
5341 # Check whether --enable-embed-stdcxx was given.
5342 if test "${enable_embed_stdcxx+set}" = set; then
5343 enableval=$enable_embed_stdcxx;
5348 case "$enableval" in
5349 yes) ENABLE_EMBED_STDCXX=1
5351 no) ENABLE_EMBED_STDCXX=0
5353 default) ENABLE_EMBED_STDCXX=0
5355 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5356 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5357 { (exit 1); exit 1; }; } ;;
5360 # Check whether --enable-timestamps was given.
5361 if test "${enable_timestamps+set}" = set; then
5362 enableval=$enable_timestamps;
5367 case "$enableval" in
5368 yes) ENABLE_TIMESTAMPS=1
5370 no) ENABLE_TIMESTAMPS=0
5372 default) ENABLE_TIMESTAMPS=1
5374 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5375 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5376 { (exit 1); exit 1; }; } ;;
5379 cat >>confdefs.h <<_ACEOF
5380 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5385 # Check whether --enable-backtraces was given.
5386 if test "${enable_backtraces+set}" = set; then
5387 enableval=$enable_backtraces;
5392 case "$enableval" in
5393 yes) ENABLE_TIMESTAMPS=1
5395 no) ENABLE_TIMESTAMPS=0
5397 default) ENABLE_TIMESTAMPS=1
5399 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5400 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5401 { (exit 1); exit 1; }; } ;;
5404 cat >>confdefs.h <<_ACEOF
5405 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5410 # Check whether --enable-targets was given.
5411 if test "${enable_targets+set}" = set; then
5412 enableval=$enable_targets;
5417 if test "$enableval" = host-only ; then
5420 case "$enableval" in
5421 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
5422 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5424 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5425 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5426 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5427 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5428 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5429 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5430 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5431 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5432 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5433 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5434 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5435 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5436 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5437 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5438 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5439 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5440 host) case "$llvm_cv_target_arch" in
5441 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5442 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5443 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5444 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5445 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5446 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5447 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5448 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5449 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5450 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5451 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5452 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5453 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5454 echo "$as_me: error: Can not set target to build" >&2;}
5455 { (exit 1); exit 1; }; } ;;
5457 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5458 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5459 { (exit 1); exit 1; }; } ;;
5465 # Check whether --enable-experimental-targets was given.
5466 if test "${enable_experimental_targets+set}" = set; then
5467 enableval=$enable_experimental_targets;
5473 if test ${enableval} != "disable"
5475 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5478 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5481 for a_target in $TARGETS_TO_BUILD; do
5482 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5484 cat >>confdefs.h <<_ACEOF
5485 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5488 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5489 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5490 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5491 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5492 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5493 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5495 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5496 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5499 cat >>confdefs.h <<_ACEOF
5500 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5504 cat >>confdefs.h <<_ACEOF
5505 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5509 cat >>confdefs.h <<_ACEOF
5510 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5514 cat >>confdefs.h <<_ACEOF
5515 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5518 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5520 cat >>confdefs.h <<_ACEOF
5521 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5525 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5527 cat >>confdefs.h <<_ACEOF
5528 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5535 LLVM_ENUM_TARGETS=""
5536 LLVM_ENUM_ASM_PRINTERS=""
5537 LLVM_ENUM_ASM_PARSERS=""
5538 LLVM_ENUM_DISASSEMBLERS=""
5539 for target_to_build in $TARGETS_TO_BUILD; do
5540 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5541 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5542 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5544 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5545 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5547 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5548 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5557 # Check whether --with-optimize-option was given.
5558 if test "${with_optimize_option+set}" = set; then
5559 withval=$with_optimize_option;
5564 { echo "$as_me:$LINENO: checking optimization flags" >&5
5565 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5568 case "$llvm_cv_os_type" in
5569 FreeBSD) optimize_option=-O2 ;;
5570 MingW) optimize_option=-O2 ;;
5571 *) optimize_option=-O3 ;;
5573 *) optimize_option="$withval" ;;
5575 OPTIMIZE_OPTION=$optimize_option
5577 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5578 echo "${ECHO_T}$optimize_option" >&6; }
5581 # Check whether --with-extra-options was given.
5582 if test "${with_extra_options+set}" = set; then
5583 withval=$with_extra_options;
5589 default) EXTRA_OPTIONS= ;;
5590 *) EXTRA_OPTIONS=$withval ;;
5592 EXTRA_OPTIONS=$EXTRA_OPTIONS
5596 # Check whether --with-extra-ld-options was given.
5597 if test "${with_extra_ld_options+set}" = set; then
5598 withval=$with_extra_ld_options;
5604 default) EXTRA_LD_OPTIONS= ;;
5605 *) EXTRA_LD_OPTIONS=$withval ;;
5607 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5610 # Check whether --enable-bindings was given.
5611 if test "${enable_bindings+set}" = set; then
5612 enableval=$enable_bindings;
5617 BINDINGS_TO_BUILD=""
5618 case "$enableval" in
5619 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5620 all ) BINDINGS_TO_BUILD="ocaml" ;;
5621 none | no) BINDINGS_TO_BUILD="" ;;
5622 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5623 case "$a_binding" in
5624 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5625 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5626 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5627 { (exit 1); exit 1; }; } ;;
5634 # Check whether --with-ocaml-libdir was given.
5635 if test "${with_ocaml_libdir+set}" = set; then
5636 withval=$with_ocaml_libdir;
5642 auto) with_ocaml_libdir="$withval" ;;
5643 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5644 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5645 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5646 { (exit 1); exit 1; }; } ;;
5650 # Check whether --with-clang-srcdir was given.
5651 if test "${with_clang_srcdir+set}" = set; then
5652 withval=$with_clang_srcdir;
5658 -) clang_src_root="" ;;
5659 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5660 *) clang_src_root="$ac_pwd/$withval" ;;
5662 CLANG_SRC_ROOT=$clang_src_root
5666 # Check whether --with-clang-resource-dir was given.
5667 if test "${with_clang_resource_dir+set}" = set; then
5668 withval=$with_clang_resource_dir;
5674 cat >>confdefs.h <<_ACEOF
5675 #define CLANG_RESOURCE_DIR "$withval"
5680 # Check whether --with-c-include-dirs was given.
5681 if test "${with_c_include_dirs+set}" = set; then
5682 withval=$with_c_include_dirs;
5688 cat >>confdefs.h <<_ACEOF
5689 #define C_INCLUDE_DIRS "$withval"
5693 # Clang normally uses the system c++ headers and libraries. With this option,
5694 # clang will use the ones provided by a gcc installation instead. This option should
5695 # be passed the same value that was used with --prefix when configuring gcc.
5697 # Check whether --with-gcc-toolchain was given.
5698 if test "${with_gcc_toolchain+set}" = set; then
5699 withval=$with_gcc_toolchain;
5705 cat >>confdefs.h <<_ACEOF
5706 #define GCC_INSTALL_PREFIX "$withval"
5711 # Check whether --with-default-sysroot was given.
5712 if test "${with_default_sysroot+set}" = set; then
5713 withval=$with_default_sysroot;
5719 cat >>confdefs.h <<_ACEOF
5720 #define DEFAULT_SYSROOT "$withval"
5725 # Check whether --with-binutils-include was given.
5726 if test "${with_binutils_include+set}" = set; then
5727 withval=$with_binutils_include;
5733 default) WITH_BINUTILS_INCDIR=default ;;
5734 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5735 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5736 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5737 { (exit 1); exit 1; }; } ;;
5739 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5740 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5742 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5743 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5744 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5745 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5746 { (exit 1); exit 1; }; };
5751 # Check whether --with-bug-report-url was given.
5752 if test "${with_bug_report_url+set}" = set; then
5753 withval=$with_bug_report_url;
5755 withval="http://llvm.org/bugs/"
5759 cat >>confdefs.h <<_ACEOF
5760 #define BUG_REPORT_URL "$withval"
5764 # Check whether --enable-libffi was given.
5765 if test "${enable_libffi+set}" = set; then
5766 enableval=$enable_libffi; case "$enableval" in
5767 yes) llvm_cv_enable_libffi="yes" ;;
5768 no) llvm_cv_enable_libffi="no" ;;
5769 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5770 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5771 { (exit 1); exit 1; }; } ;;
5774 llvm_cv_enable_libffi=no
5779 # Check whether --with-internal-prefix was given.
5780 if test "${with_internal_prefix+set}" = set; then
5781 withval=$with_internal_prefix;
5786 INTERNAL_PREFIX=$withval
5790 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5791 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5792 if test "${lt_cv_path_NM+set}" = set; then
5793 echo $ECHO_N "(cached) $ECHO_C" >&6
5795 if test -n "$NM"; then
5796 # Let the user override the test.
5799 lt_nm_to_check="${ac_tool_prefix}nm"
5800 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5801 lt_nm_to_check="$lt_nm_to_check nm"
5803 for lt_tmp_nm in $lt_nm_to_check; do
5804 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5805 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5807 test -z "$ac_dir" && ac_dir=.
5808 tmp_nm="$ac_dir/$lt_tmp_nm"
5809 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5810 # Check to see if the nm accepts a BSD-compat flag.
5811 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5812 # nm: unknown option "B" ignored
5813 # Tru64's nm complains that /dev/null is an invalid object file
5814 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5815 */dev/null* | *'Invalid file or object type'*)
5816 lt_cv_path_NM="$tmp_nm -B"
5820 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5822 lt_cv_path_NM="$tmp_nm -p"
5826 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5827 continue # so that we can try to find one that supports BSD flags
5836 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5839 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5840 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5845 { echo "$as_me:$LINENO: checking for GNU make" >&5
5846 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5847 if test "${llvm_cv_gnu_make_command+set}" = set; then
5848 echo $ECHO_N "(cached) $ECHO_C" >&6
5850 llvm_cv_gnu_make_command=''
5851 for a in "$MAKE" make gmake gnumake ; do
5852 if test -z "$a" ; then continue ; fi ;
5853 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5855 llvm_cv_gnu_make_command=$a ;
5860 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5861 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5862 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5866 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5867 echo "${ECHO_T}\"Not found\"" >&6; };
5871 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5872 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5874 if test "$LN_S" = "ln -s"; then
5875 { echo "$as_me:$LINENO: result: yes" >&5
5876 echo "${ECHO_T}yes" >&6; }
5878 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5879 echo "${ECHO_T}no, using $LN_S" >&6; }
5882 # Extract the first word of "cmp", so it can be a program name with args.
5883 set dummy cmp; ac_word=$2
5884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5886 if test "${ac_cv_path_CMP+set}" = set; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
5891 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898 test -z "$as_dir" && as_dir=.
5899 for ac_exec_ext in '' $ac_executable_extensions; do
5900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5901 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5909 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5914 if test -n "$CMP"; then
5915 { echo "$as_me:$LINENO: result: $CMP" >&5
5916 echo "${ECHO_T}$CMP" >&6; }
5918 { echo "$as_me:$LINENO: result: no" >&5
5919 echo "${ECHO_T}no" >&6; }
5923 # Extract the first word of "cp", so it can be a program name with args.
5924 set dummy cp; ac_word=$2
5925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5927 if test "${ac_cv_path_CP+set}" = set; then
5928 echo $ECHO_N "(cached) $ECHO_C" >&6
5932 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5939 test -z "$as_dir" && as_dir=.
5940 for ac_exec_ext in '' $ac_executable_extensions; do
5941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5942 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5950 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5955 if test -n "$CP"; then
5956 { echo "$as_me:$LINENO: result: $CP" >&5
5957 echo "${ECHO_T}$CP" >&6; }
5959 { echo "$as_me:$LINENO: result: no" >&5
5960 echo "${ECHO_T}no" >&6; }
5964 # Extract the first word of "date", so it can be a program name with args.
5965 set dummy date; ac_word=$2
5966 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5968 if test "${ac_cv_path_DATE+set}" = set; then
5969 echo $ECHO_N "(cached) $ECHO_C" >&6
5973 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5980 test -z "$as_dir" && as_dir=.
5981 for ac_exec_ext in '' $ac_executable_extensions; do
5982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5983 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5991 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5995 DATE=$ac_cv_path_DATE
5996 if test -n "$DATE"; then
5997 { echo "$as_me:$LINENO: result: $DATE" >&5
5998 echo "${ECHO_T}$DATE" >&6; }
6000 { echo "$as_me:$LINENO: result: no" >&5
6001 echo "${ECHO_T}no" >&6; }
6005 # Extract the first word of "find", so it can be a program name with args.
6006 set dummy find; ac_word=$2
6007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6009 if test "${ac_cv_path_FIND+set}" = set; then
6010 echo $ECHO_N "(cached) $ECHO_C" >&6
6014 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6021 test -z "$as_dir" && as_dir=.
6022 for ac_exec_ext in '' $ac_executable_extensions; do
6023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6024 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6032 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6036 FIND=$ac_cv_path_FIND
6037 if test -n "$FIND"; then
6038 { echo "$as_me:$LINENO: result: $FIND" >&5
6039 echo "${ECHO_T}$FIND" >&6; }
6041 { echo "$as_me:$LINENO: result: no" >&5
6042 echo "${ECHO_T}no" >&6; }
6046 # Extract the first word of "grep", so it can be a program name with args.
6047 set dummy grep; ac_word=$2
6048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6050 if test "${ac_cv_path_GREP+set}" = set; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
6055 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062 test -z "$as_dir" && as_dir=.
6063 for ac_exec_ext in '' $ac_executable_extensions; do
6064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6065 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6073 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6077 GREP=$ac_cv_path_GREP
6078 if test -n "$GREP"; then
6079 { echo "$as_me:$LINENO: result: $GREP" >&5
6080 echo "${ECHO_T}$GREP" >&6; }
6082 { echo "$as_me:$LINENO: result: no" >&5
6083 echo "${ECHO_T}no" >&6; }
6087 # Extract the first word of "mkdir", so it can be a program name with args.
6088 set dummy mkdir; ac_word=$2
6089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6091 if test "${ac_cv_path_MKDIR+set}" = set; then
6092 echo $ECHO_N "(cached) $ECHO_C" >&6
6096 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103 test -z "$as_dir" && as_dir=.
6104 for ac_exec_ext in '' $ac_executable_extensions; do
6105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6106 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6114 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6118 MKDIR=$ac_cv_path_MKDIR
6119 if test -n "$MKDIR"; then
6120 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6121 echo "${ECHO_T}$MKDIR" >&6; }
6123 { echo "$as_me:$LINENO: result: no" >&5
6124 echo "${ECHO_T}no" >&6; }
6128 # Extract the first word of "mv", so it can be a program name with args.
6129 set dummy mv; ac_word=$2
6130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6132 if test "${ac_cv_path_MV+set}" = set; then
6133 echo $ECHO_N "(cached) $ECHO_C" >&6
6137 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6144 test -z "$as_dir" && as_dir=.
6145 for ac_exec_ext in '' $ac_executable_extensions; do
6146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6147 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6155 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6160 if test -n "$MV"; then
6161 { echo "$as_me:$LINENO: result: $MV" >&5
6162 echo "${ECHO_T}$MV" >&6; }
6164 { echo "$as_me:$LINENO: result: no" >&5
6165 echo "${ECHO_T}no" >&6; }
6169 if test -n "$ac_tool_prefix"; then
6170 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6171 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6174 if test "${ac_cv_prog_RANLIB+set}" = set; then
6175 echo $ECHO_N "(cached) $ECHO_C" >&6
6177 if test -n "$RANLIB"; then
6178 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6184 test -z "$as_dir" && as_dir=.
6185 for ac_exec_ext in '' $ac_executable_extensions; do
6186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6187 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6197 RANLIB=$ac_cv_prog_RANLIB
6198 if test -n "$RANLIB"; then
6199 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6200 echo "${ECHO_T}$RANLIB" >&6; }
6202 { echo "$as_me:$LINENO: result: no" >&5
6203 echo "${ECHO_T}no" >&6; }
6208 if test -z "$ac_cv_prog_RANLIB"; then
6209 ac_ct_RANLIB=$RANLIB
6210 # Extract the first word of "ranlib", so it can be a program name with args.
6211 set dummy ranlib; ac_word=$2
6212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6214 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6215 echo $ECHO_N "(cached) $ECHO_C" >&6
6217 if test -n "$ac_ct_RANLIB"; then
6218 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6224 test -z "$as_dir" && as_dir=.
6225 for ac_exec_ext in '' $ac_executable_extensions; do
6226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6227 ac_cv_prog_ac_ct_RANLIB="ranlib"
6228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6237 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6238 if test -n "$ac_ct_RANLIB"; then
6239 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6240 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6242 { echo "$as_me:$LINENO: result: no" >&5
6243 echo "${ECHO_T}no" >&6; }
6246 if test "x$ac_ct_RANLIB" = x; then
6249 case $cross_compiling:$ac_tool_warned in
6251 { echo "$as_me:$LINENO: 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." >&5
6254 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6255 whose name does not start with the host triplet. If you think this
6256 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6257 ac_tool_warned=yes ;;
6259 RANLIB=$ac_ct_RANLIB
6262 RANLIB="$ac_cv_prog_RANLIB"
6265 if test -n "$ac_tool_prefix"; then
6266 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6267 set dummy ${ac_tool_prefix}ar; ac_word=$2
6268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6270 if test "${ac_cv_prog_AR+set}" = set; then
6271 echo $ECHO_N "(cached) $ECHO_C" >&6
6273 if test -n "$AR"; then
6274 ac_cv_prog_AR="$AR" # Let the user override the test.
6276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6280 test -z "$as_dir" && as_dir=.
6281 for ac_exec_ext in '' $ac_executable_extensions; do
6282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6283 ac_cv_prog_AR="${ac_tool_prefix}ar"
6284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6294 if test -n "$AR"; then
6295 { echo "$as_me:$LINENO: result: $AR" >&5
6296 echo "${ECHO_T}$AR" >&6; }
6298 { echo "$as_me:$LINENO: result: no" >&5
6299 echo "${ECHO_T}no" >&6; }
6304 if test -z "$ac_cv_prog_AR"; then
6306 # Extract the first word of "ar", so it can be a program name with args.
6307 set dummy ar; ac_word=$2
6308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6310 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6311 echo $ECHO_N "(cached) $ECHO_C" >&6
6313 if test -n "$ac_ct_AR"; then
6314 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6320 test -z "$as_dir" && as_dir=.
6321 for ac_exec_ext in '' $ac_executable_extensions; do
6322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6323 ac_cv_prog_ac_ct_AR="ar"
6324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6333 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6334 if test -n "$ac_ct_AR"; then
6335 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6336 echo "${ECHO_T}$ac_ct_AR" >&6; }
6338 { echo "$as_me:$LINENO: result: no" >&5
6339 echo "${ECHO_T}no" >&6; }
6342 if test "x$ac_ct_AR" = x; then
6345 case $cross_compiling:$ac_tool_warned in
6347 { echo "$as_me:$LINENO: 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." >&5
6350 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6351 whose name does not start with the host triplet. If you think this
6352 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6353 ac_tool_warned=yes ;;
6361 # Extract the first word of "rm", so it can be a program name with args.
6362 set dummy rm; ac_word=$2
6363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6365 if test "${ac_cv_path_RM+set}" = set; then
6366 echo $ECHO_N "(cached) $ECHO_C" >&6
6370 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6377 test -z "$as_dir" && as_dir=.
6378 for ac_exec_ext in '' $ac_executable_extensions; do
6379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6380 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6388 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6393 if test -n "$RM"; then
6394 { echo "$as_me:$LINENO: result: $RM" >&5
6395 echo "${ECHO_T}$RM" >&6; }
6397 { echo "$as_me:$LINENO: result: no" >&5
6398 echo "${ECHO_T}no" >&6; }
6402 # Extract the first word of "sed", so it can be a program name with args.
6403 set dummy sed; ac_word=$2
6404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6406 if test "${ac_cv_path_SED+set}" = set; then
6407 echo $ECHO_N "(cached) $ECHO_C" >&6
6411 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6418 test -z "$as_dir" && as_dir=.
6419 for ac_exec_ext in '' $ac_executable_extensions; do
6420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6421 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6429 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6434 if test -n "$SED"; then
6435 { echo "$as_me:$LINENO: result: $SED" >&5
6436 echo "${ECHO_T}$SED" >&6; }
6438 { echo "$as_me:$LINENO: result: no" >&5
6439 echo "${ECHO_T}no" >&6; }
6443 # Extract the first word of "tar", so it can be a program name with args.
6444 set dummy tar; ac_word=$2
6445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6447 if test "${ac_cv_path_TAR+set}" = set; then
6448 echo $ECHO_N "(cached) $ECHO_C" >&6
6452 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6459 test -z "$as_dir" && as_dir=.
6460 for ac_exec_ext in '' $ac_executable_extensions; do
6461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6462 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6470 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6475 if test -n "$TAR"; then
6476 { echo "$as_me:$LINENO: result: $TAR" >&5
6477 echo "${ECHO_T}$TAR" >&6; }
6479 { echo "$as_me:$LINENO: result: no" >&5
6480 echo "${ECHO_T}no" >&6; }
6484 # Extract the first word of "pwd", so it can be a program name with args.
6485 set dummy pwd; ac_word=$2
6486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6488 if test "${ac_cv_path_BINPWD+set}" = set; then
6489 echo $ECHO_N "(cached) $ECHO_C" >&6
6493 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6500 test -z "$as_dir" && as_dir=.
6501 for ac_exec_ext in '' $ac_executable_extensions; do
6502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6503 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6511 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6515 BINPWD=$ac_cv_path_BINPWD
6516 if test -n "$BINPWD"; then
6517 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6518 echo "${ECHO_T}$BINPWD" >&6; }
6520 { echo "$as_me:$LINENO: result: no" >&5
6521 echo "${ECHO_T}no" >&6; }
6526 # Extract the first word of "Graphviz", so it can be a program name with args.
6527 set dummy Graphviz; ac_word=$2
6528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6530 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6531 echo $ECHO_N "(cached) $ECHO_C" >&6
6535 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6542 test -z "$as_dir" && as_dir=.
6543 for ac_exec_ext in '' $ac_executable_extensions; do
6544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6545 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6553 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6557 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6558 if test -n "$GRAPHVIZ"; then
6559 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6560 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6562 { echo "$as_me:$LINENO: result: no" >&5
6563 echo "${ECHO_T}no" >&6; }
6567 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6569 cat >>confdefs.h <<\_ACEOF
6570 #define HAVE_GRAPHVIZ 1
6573 if test "$llvm_cv_os_type" = "MingW" ; then
6574 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6577 cat >>confdefs.h <<_ACEOF
6578 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6582 # Extract the first word of "dot", so it can be a program name with args.
6583 set dummy dot; ac_word=$2
6584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6586 if test "${ac_cv_path_DOT+set}" = set; then
6587 echo $ECHO_N "(cached) $ECHO_C" >&6
6591 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598 test -z "$as_dir" && as_dir=.
6599 for ac_exec_ext in '' $ac_executable_extensions; do
6600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6601 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6609 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6614 if test -n "$DOT"; then
6615 { echo "$as_me:$LINENO: result: $DOT" >&5
6616 echo "${ECHO_T}$DOT" >&6; }
6618 { echo "$as_me:$LINENO: result: no" >&5
6619 echo "${ECHO_T}no" >&6; }
6623 if test "$DOT" != "echo dot" ; then
6625 cat >>confdefs.h <<\_ACEOF
6629 if test "$llvm_cv_os_type" = "MingW" ; then
6630 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6633 cat >>confdefs.h <<_ACEOF
6634 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6638 # Extract the first word of "fdp", so it can be a program name with args.
6639 set dummy fdp; ac_word=$2
6640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6642 if test "${ac_cv_path_FDP+set}" = set; then
6643 echo $ECHO_N "(cached) $ECHO_C" >&6
6647 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6654 test -z "$as_dir" && as_dir=.
6655 for ac_exec_ext in '' $ac_executable_extensions; do
6656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6657 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6665 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6670 if test -n "$FDP"; then
6671 { echo "$as_me:$LINENO: result: $FDP" >&5
6672 echo "${ECHO_T}$FDP" >&6; }
6674 { echo "$as_me:$LINENO: result: no" >&5
6675 echo "${ECHO_T}no" >&6; }
6679 if test "$FDP" != "echo fdp" ; then
6681 cat >>confdefs.h <<\_ACEOF
6685 if test "$llvm_cv_os_type" = "MingW" ; then
6686 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6689 cat >>confdefs.h <<_ACEOF
6690 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6694 # Extract the first word of "neato", so it can be a program name with args.
6695 set dummy neato; ac_word=$2
6696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6698 if test "${ac_cv_path_NEATO+set}" = set; then
6699 echo $ECHO_N "(cached) $ECHO_C" >&6
6703 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710 test -z "$as_dir" && as_dir=.
6711 for ac_exec_ext in '' $ac_executable_extensions; do
6712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6713 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6721 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6725 NEATO=$ac_cv_path_NEATO
6726 if test -n "$NEATO"; then
6727 { echo "$as_me:$LINENO: result: $NEATO" >&5
6728 echo "${ECHO_T}$NEATO" >&6; }
6730 { echo "$as_me:$LINENO: result: no" >&5
6731 echo "${ECHO_T}no" >&6; }
6735 if test "$NEATO" != "echo neato" ; then
6737 cat >>confdefs.h <<\_ACEOF
6738 #define HAVE_NEATO 1
6741 if test "$llvm_cv_os_type" = "MingW" ; then
6742 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6745 cat >>confdefs.h <<_ACEOF
6746 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6750 # Extract the first word of "twopi", so it can be a program name with args.
6751 set dummy twopi; ac_word=$2
6752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6754 if test "${ac_cv_path_TWOPI+set}" = set; then
6755 echo $ECHO_N "(cached) $ECHO_C" >&6
6759 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6766 test -z "$as_dir" && as_dir=.
6767 for ac_exec_ext in '' $ac_executable_extensions; do
6768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6769 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6777 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6781 TWOPI=$ac_cv_path_TWOPI
6782 if test -n "$TWOPI"; then
6783 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6784 echo "${ECHO_T}$TWOPI" >&6; }
6786 { echo "$as_me:$LINENO: result: no" >&5
6787 echo "${ECHO_T}no" >&6; }
6791 if test "$TWOPI" != "echo twopi" ; then
6793 cat >>confdefs.h <<\_ACEOF
6794 #define HAVE_TWOPI 1
6797 if test "$llvm_cv_os_type" = "MingW" ; then
6798 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6801 cat >>confdefs.h <<_ACEOF
6802 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6806 # Extract the first word of "circo", so it can be a program name with args.
6807 set dummy circo; ac_word=$2
6808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6810 if test "${ac_cv_path_CIRCO+set}" = set; then
6811 echo $ECHO_N "(cached) $ECHO_C" >&6
6815 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822 test -z "$as_dir" && as_dir=.
6823 for ac_exec_ext in '' $ac_executable_extensions; do
6824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6825 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6833 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6837 CIRCO=$ac_cv_path_CIRCO
6838 if test -n "$CIRCO"; then
6839 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6840 echo "${ECHO_T}$CIRCO" >&6; }
6842 { echo "$as_me:$LINENO: result: no" >&5
6843 echo "${ECHO_T}no" >&6; }
6847 if test "$CIRCO" != "echo circo" ; then
6849 cat >>confdefs.h <<\_ACEOF
6850 #define HAVE_CIRCO 1
6853 if test "$llvm_cv_os_type" = "MingW" ; then
6854 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6857 cat >>confdefs.h <<_ACEOF
6858 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6862 for ac_prog in gv gsview32
6864 # Extract the first word of "$ac_prog", so it can be a program name with args.
6865 set dummy $ac_prog; ac_word=$2
6866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6868 if test "${ac_cv_path_GV+set}" = set; then
6869 echo $ECHO_N "(cached) $ECHO_C" >&6
6873 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6880 test -z "$as_dir" && as_dir=.
6881 for ac_exec_ext in '' $ac_executable_extensions; do
6882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6883 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6895 if test -n "$GV"; then
6896 { echo "$as_me:$LINENO: result: $GV" >&5
6897 echo "${ECHO_T}$GV" >&6; }
6899 { echo "$as_me:$LINENO: result: no" >&5
6900 echo "${ECHO_T}no" >&6; }
6904 test -n "$GV" && break
6906 test -n "$GV" || GV="echo gv"
6908 if test "$GV" != "echo gv" ; then
6910 cat >>confdefs.h <<\_ACEOF
6914 if test "$llvm_cv_os_type" = "MingW" ; then
6915 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6918 cat >>confdefs.h <<_ACEOF
6919 #define LLVM_PATH_GV "$GV${EXEEXT}"
6923 # Extract the first word of "dotty", so it can be a program name with args.
6924 set dummy dotty; ac_word=$2
6925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6927 if test "${ac_cv_path_DOTTY+set}" = set; then
6928 echo $ECHO_N "(cached) $ECHO_C" >&6
6932 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939 test -z "$as_dir" && as_dir=.
6940 for ac_exec_ext in '' $ac_executable_extensions; do
6941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6942 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6950 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6954 DOTTY=$ac_cv_path_DOTTY
6955 if test -n "$DOTTY"; then
6956 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6957 echo "${ECHO_T}$DOTTY" >&6; }
6959 { echo "$as_me:$LINENO: result: no" >&5
6960 echo "${ECHO_T}no" >&6; }
6964 if test "$DOTTY" != "echo dotty" ; then
6966 cat >>confdefs.h <<\_ACEOF
6967 #define HAVE_DOTTY 1
6970 if test "$llvm_cv_os_type" = "MingW" ; then
6971 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6974 cat >>confdefs.h <<_ACEOF
6975 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6979 # Extract the first word of "xdot.py", so it can be a program name with args.
6980 set dummy xdot.py; ac_word=$2
6981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6983 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6984 echo $ECHO_N "(cached) $ECHO_C" >&6
6988 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995 test -z "$as_dir" && as_dir=.
6996 for ac_exec_ext in '' $ac_executable_extensions; do
6997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6998 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7006 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7010 XDOT_PY=$ac_cv_path_XDOT_PY
7011 if test -n "$XDOT_PY"; then
7012 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7013 echo "${ECHO_T}$XDOT_PY" >&6; }
7015 { echo "$as_me:$LINENO: result: no" >&5
7016 echo "${ECHO_T}no" >&6; }
7020 if test "$XDOT_PY" != "echo xdot.py" ; then
7022 cat >>confdefs.h <<\_ACEOF
7023 #define HAVE_XDOT_PY 1
7026 if test "$llvm_cv_os_type" = "MingW" ; then
7027 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7030 cat >>confdefs.h <<_ACEOF
7031 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7036 # Find a good install program. We prefer a C program (faster),
7037 # so one script is as good as another. But avoid the broken or
7038 # incompatible versions:
7039 # SysV /etc/install, /usr/sbin/install
7040 # SunOS /usr/etc/install
7041 # IRIX /sbin/install
7043 # AmigaOS /C/install, which installs bootblocks on floppy discs
7044 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7045 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7046 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7047 # OS/2's system install, which has a completely different semantic
7048 # ./install, which can be erroneously created by make from ./install.sh.
7049 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7050 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7051 if test -z "$INSTALL"; then
7052 if test "${ac_cv_path_install+set}" = set; then
7053 echo $ECHO_N "(cached) $ECHO_C" >&6
7055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059 test -z "$as_dir" && as_dir=.
7060 # Account for people who put trailing slashes in PATH elements.
7062 ./ | .// | /cC/* | \
7063 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7064 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7067 # OSF1 and SCO ODT 3.0 have their own names for install.
7068 # Don't use installbsd from OSF since it installs stuff as root
7070 for ac_prog in ginstall scoinst install; do
7071 for ac_exec_ext in '' $ac_executable_extensions; do
7072 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7073 if test $ac_prog = install &&
7074 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7075 # AIX install. It has an incompatible calling convention.
7077 elif test $ac_prog = install &&
7078 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7079 # program-specific install script used by HP pwplus--don't use.
7082 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7095 if test "${ac_cv_path_install+set}" = set; then
7096 INSTALL=$ac_cv_path_install
7098 # As a last resort, use the slow shell script. Don't cache a
7099 # value for INSTALL within a source directory, because that will
7100 # break other packages using the cache if that directory is
7101 # removed, or if the value is a relative name.
7102 INSTALL=$ac_install_sh
7105 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7106 echo "${ECHO_T}$INSTALL" >&6; }
7108 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7109 # It thinks the first close brace ends the variable substitution.
7110 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7112 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7114 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7117 [\\/$]* | ?:[\\/]* ) ;;
7118 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7121 # Extract the first word of "bzip2", so it can be a program name with args.
7122 set dummy bzip2; ac_word=$2
7123 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7125 if test "${ac_cv_path_BZIP2+set}" = set; then
7126 echo $ECHO_N "(cached) $ECHO_C" >&6
7130 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137 test -z "$as_dir" && as_dir=.
7138 for ac_exec_ext in '' $ac_executable_extensions; do
7139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7140 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7151 BZIP2=$ac_cv_path_BZIP2
7152 if test -n "$BZIP2"; then
7153 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7154 echo "${ECHO_T}$BZIP2" >&6; }
7156 { echo "$as_me:$LINENO: result: no" >&5
7157 echo "${ECHO_T}no" >&6; }
7161 # Extract the first word of "cat", so it can be a program name with args.
7162 set dummy cat; ac_word=$2
7163 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7165 if test "${ac_cv_path_CAT+set}" = set; then
7166 echo $ECHO_N "(cached) $ECHO_C" >&6
7170 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177 test -z "$as_dir" && as_dir=.
7178 for ac_exec_ext in '' $ac_executable_extensions; do
7179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7180 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7192 if test -n "$CAT"; then
7193 { echo "$as_me:$LINENO: result: $CAT" >&5
7194 echo "${ECHO_T}$CAT" >&6; }
7196 { echo "$as_me:$LINENO: result: no" >&5
7197 echo "${ECHO_T}no" >&6; }
7201 # Extract the first word of "doxygen", so it can be a program name with args.
7202 set dummy doxygen; ac_word=$2
7203 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7205 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7206 echo $ECHO_N "(cached) $ECHO_C" >&6
7210 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217 test -z "$as_dir" && as_dir=.
7218 for ac_exec_ext in '' $ac_executable_extensions; do
7219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7220 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7231 DOXYGEN=$ac_cv_path_DOXYGEN
7232 if test -n "$DOXYGEN"; then
7233 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7234 echo "${ECHO_T}$DOXYGEN" >&6; }
7236 { echo "$as_me:$LINENO: result: no" >&5
7237 echo "${ECHO_T}no" >&6; }
7241 # Extract the first word of "groff", so it can be a program name with args.
7242 set dummy groff; ac_word=$2
7243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7245 if test "${ac_cv_path_GROFF+set}" = set; then
7246 echo $ECHO_N "(cached) $ECHO_C" >&6
7250 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257 test -z "$as_dir" && as_dir=.
7258 for ac_exec_ext in '' $ac_executable_extensions; do
7259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7260 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7271 GROFF=$ac_cv_path_GROFF
7272 if test -n "$GROFF"; then
7273 { echo "$as_me:$LINENO: result: $GROFF" >&5
7274 echo "${ECHO_T}$GROFF" >&6; }
7276 { echo "$as_me:$LINENO: result: no" >&5
7277 echo "${ECHO_T}no" >&6; }
7281 # Extract the first word of "gzip", so it can be a program name with args.
7282 set dummy gzip; ac_word=$2
7283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7285 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7286 echo $ECHO_N "(cached) $ECHO_C" >&6
7290 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297 test -z "$as_dir" && as_dir=.
7298 for ac_exec_ext in '' $ac_executable_extensions; do
7299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7300 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7311 GZIPBIN=$ac_cv_path_GZIPBIN
7312 if test -n "$GZIPBIN"; then
7313 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7314 echo "${ECHO_T}$GZIPBIN" >&6; }
7316 { echo "$as_me:$LINENO: result: no" >&5
7317 echo "${ECHO_T}no" >&6; }
7321 # Extract the first word of "pdfroff", so it can be a program name with args.
7322 set dummy pdfroff; ac_word=$2
7323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7325 if test "${ac_cv_path_PDFROFF+set}" = set; then
7326 echo $ECHO_N "(cached) $ECHO_C" >&6
7330 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7337 test -z "$as_dir" && as_dir=.
7338 for ac_exec_ext in '' $ac_executable_extensions; do
7339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7340 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7351 PDFROFF=$ac_cv_path_PDFROFF
7352 if test -n "$PDFROFF"; then
7353 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7354 echo "${ECHO_T}$PDFROFF" >&6; }
7356 { echo "$as_me:$LINENO: result: no" >&5
7357 echo "${ECHO_T}no" >&6; }
7361 # Extract the first word of "zip", so it can be a program name with args.
7362 set dummy zip; ac_word=$2
7363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7365 if test "${ac_cv_path_ZIP+set}" = set; then
7366 echo $ECHO_N "(cached) $ECHO_C" >&6
7370 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7377 test -z "$as_dir" && as_dir=.
7378 for ac_exec_ext in '' $ac_executable_extensions; do
7379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7380 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7392 if test -n "$ZIP"; then
7393 { echo "$as_me:$LINENO: result: $ZIP" >&5
7394 echo "${ECHO_T}$ZIP" >&6; }
7396 { echo "$as_me:$LINENO: result: no" >&5
7397 echo "${ECHO_T}no" >&6; }
7401 for ac_prog in ocamlc
7403 # Extract the first word of "$ac_prog", so it can be a program name with args.
7404 set dummy $ac_prog; ac_word=$2
7405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7407 if test "${ac_cv_path_OCAMLC+set}" = set; then
7408 echo $ECHO_N "(cached) $ECHO_C" >&6
7412 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7419 test -z "$as_dir" && as_dir=.
7420 for ac_exec_ext in '' $ac_executable_extensions; do
7421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7422 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7433 OCAMLC=$ac_cv_path_OCAMLC
7434 if test -n "$OCAMLC"; then
7435 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7436 echo "${ECHO_T}$OCAMLC" >&6; }
7438 { echo "$as_me:$LINENO: result: no" >&5
7439 echo "${ECHO_T}no" >&6; }
7443 test -n "$OCAMLC" && break
7446 for ac_prog in ocamlopt
7448 # Extract the first word of "$ac_prog", so it can be a program name with args.
7449 set dummy $ac_prog; ac_word=$2
7450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7452 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7453 echo $ECHO_N "(cached) $ECHO_C" >&6
7457 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7464 test -z "$as_dir" && as_dir=.
7465 for ac_exec_ext in '' $ac_executable_extensions; do
7466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7467 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7478 OCAMLOPT=$ac_cv_path_OCAMLOPT
7479 if test -n "$OCAMLOPT"; then
7480 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7481 echo "${ECHO_T}$OCAMLOPT" >&6; }
7483 { echo "$as_me:$LINENO: result: no" >&5
7484 echo "${ECHO_T}no" >&6; }
7488 test -n "$OCAMLOPT" && break
7491 for ac_prog in ocamldep
7493 # Extract the first word of "$ac_prog", so it can be a program name with args.
7494 set dummy $ac_prog; ac_word=$2
7495 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7497 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7498 echo $ECHO_N "(cached) $ECHO_C" >&6
7502 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7509 test -z "$as_dir" && as_dir=.
7510 for ac_exec_ext in '' $ac_executable_extensions; do
7511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7512 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7523 OCAMLDEP=$ac_cv_path_OCAMLDEP
7524 if test -n "$OCAMLDEP"; then
7525 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7526 echo "${ECHO_T}$OCAMLDEP" >&6; }
7528 { echo "$as_me:$LINENO: result: no" >&5
7529 echo "${ECHO_T}no" >&6; }
7533 test -n "$OCAMLDEP" && break
7536 for ac_prog in ocamldoc
7538 # Extract the first word of "$ac_prog", so it can be a program name with args.
7539 set dummy $ac_prog; ac_word=$2
7540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7542 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7543 echo $ECHO_N "(cached) $ECHO_C" >&6
7547 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554 test -z "$as_dir" && as_dir=.
7555 for ac_exec_ext in '' $ac_executable_extensions; do
7556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7557 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7568 OCAMLDOC=$ac_cv_path_OCAMLDOC
7569 if test -n "$OCAMLDOC"; then
7570 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7571 echo "${ECHO_T}$OCAMLDOC" >&6; }
7573 { echo "$as_me:$LINENO: result: no" >&5
7574 echo "${ECHO_T}no" >&6; }
7578 test -n "$OCAMLDOC" && break
7581 for ac_prog in gas as
7583 # Extract the first word of "$ac_prog", so it can be a program name with args.
7584 set dummy $ac_prog; ac_word=$2
7585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7587 if test "${ac_cv_path_GAS+set}" = set; then
7588 echo $ECHO_N "(cached) $ECHO_C" >&6
7592 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599 test -z "$as_dir" && as_dir=.
7600 for ac_exec_ext in '' $ac_executable_extensions; do
7601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7602 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7614 if test -n "$GAS"; then
7615 { echo "$as_me:$LINENO: result: $GAS" >&5
7616 echo "${ECHO_T}$GAS" >&6; }
7618 { echo "$as_me:$LINENO: result: no" >&5
7619 echo "${ECHO_T}no" >&6; }
7623 test -n "$GAS" && break
7627 { echo "$as_me:$LINENO: checking for linker version" >&5
7628 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7629 if test "${llvm_cv_link_version+set}" = set; then
7630 echo $ECHO_N "(cached) $ECHO_C" >&6
7633 version_string="$(ld -v 2>&1 | head -1)"
7636 if (echo "$version_string" | grep -q "ld64"); then
7637 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7639 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7643 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7644 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7646 cat >>confdefs.h <<_ACEOF
7647 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7652 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7653 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7654 if test "${llvm_cv_link_use_r+set}" = set; then
7655 echo $ECHO_N "(cached) $ECHO_C" >&6
7658 ac_cpp='$CPP $CPPFLAGS'
7659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7664 CFLAGS="$CFLAGS -Wl,-R."
7665 cat >conftest.$ac_ext <<_ACEOF
7668 cat confdefs.h >>conftest.$ac_ext
7669 cat >>conftest.$ac_ext <<_ACEOF
7670 /* end confdefs.h. */
7680 rm -f conftest.$ac_objext conftest$ac_exeext
7681 if { (ac_try="$ac_link"
7683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7684 *) ac_try_echo=$ac_try;;
7686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7687 (eval "$ac_link") 2>conftest.er1
7689 grep -v '^ *+' conftest.er1 >conftest.err
7691 cat conftest.err >&5
7692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 (exit $ac_status); } &&
7694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7695 { (case "(($ac_try" in
7696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7697 *) ac_try_echo=$ac_try;;
7699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7700 (eval "$ac_try") 2>&5
7702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703 (exit $ac_status); }; } &&
7704 { ac_try='test -s conftest$ac_exeext'
7705 { (case "(($ac_try" in
7706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7707 *) ac_try_echo=$ac_try;;
7709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7710 (eval "$ac_try") 2>&5
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); }; }; then
7714 llvm_cv_link_use_r=yes
7716 echo "$as_me: failed program was:" >&5
7717 sed 's/^/| /' conftest.$ac_ext >&5
7719 llvm_cv_link_use_r=no
7722 rm -f core conftest.err conftest.$ac_objext \
7723 conftest$ac_exeext conftest.$ac_ext
7726 ac_cpp='$CPP $CPPFLAGS'
7727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7733 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7734 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7735 if test "$llvm_cv_link_use_r" = yes ; then
7737 cat >>confdefs.h <<\_ACEOF
7738 #define HAVE_LINK_R 1
7744 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7745 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7746 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7747 echo $ECHO_N "(cached) $ECHO_C" >&6
7750 ac_cpp='$CPP $CPPFLAGS'
7751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7756 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7757 cat >conftest.$ac_ext <<_ACEOF
7760 cat confdefs.h >>conftest.$ac_ext
7761 cat >>conftest.$ac_ext <<_ACEOF
7762 /* end confdefs.h. */
7772 rm -f conftest.$ac_objext conftest$ac_exeext
7773 if { (ac_try="$ac_link"
7775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7776 *) ac_try_echo=$ac_try;;
7778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7779 (eval "$ac_link") 2>conftest.er1
7781 grep -v '^ *+' conftest.er1 >conftest.err
7783 cat conftest.err >&5
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); } &&
7786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7787 { (case "(($ac_try" in
7788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7789 *) ac_try_echo=$ac_try;;
7791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7792 (eval "$ac_try") 2>&5
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); }; } &&
7796 { ac_try='test -s conftest$ac_exeext'
7797 { (case "(($ac_try" in
7798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7799 *) ac_try_echo=$ac_try;;
7801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7802 (eval "$ac_try") 2>&5
7804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805 (exit $ac_status); }; }; then
7806 llvm_cv_link_use_export_dynamic=yes
7808 echo "$as_me: failed program was:" >&5
7809 sed 's/^/| /' conftest.$ac_ext >&5
7811 llvm_cv_link_use_export_dynamic=no
7814 rm -f core conftest.err conftest.$ac_objext \
7815 conftest$ac_exeext conftest.$ac_ext
7818 ac_cpp='$CPP $CPPFLAGS'
7819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7825 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7826 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7827 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7829 cat >>confdefs.h <<\_ACEOF
7830 #define HAVE_LINK_EXPORT_DYNAMIC 1
7836 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7837 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7838 if test "${llvm_cv_link_use_version_script+set}" = set; then
7839 echo $ECHO_N "(cached) $ECHO_C" >&6
7842 ac_cpp='$CPP $CPPFLAGS'
7843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7849 # The following code is from the autoconf manual,
7850 # "11.13: Limitations of Usual Tools".
7851 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7852 # Use mktemp if possible; otherwise fall back on mkdir,
7853 # with $RANDOM to make collisions less likely.
7857 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7859 test -n "$tmp" && test -d "$tmp"
7861 tmp=$TMPDIR/foo$$-$RANDOM
7862 (umask 077 && mkdir "$tmp")
7865 echo "{" > "$tmp/export.map"
7866 echo " global: main;" >> "$tmp/export.map"
7867 echo " local: *;" >> "$tmp/export.map"
7868 echo "};" >> "$tmp/export.map"
7870 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7871 cat >conftest.$ac_ext <<_ACEOF
7874 cat confdefs.h >>conftest.$ac_ext
7875 cat >>conftest.$ac_ext <<_ACEOF
7876 /* end confdefs.h. */
7886 rm -f conftest.$ac_objext conftest$ac_exeext
7887 if { (ac_try="$ac_link"
7889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7890 *) ac_try_echo=$ac_try;;
7892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7893 (eval "$ac_link") 2>conftest.er1
7895 grep -v '^ *+' conftest.er1 >conftest.err
7897 cat conftest.err >&5
7898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899 (exit $ac_status); } &&
7900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7901 { (case "(($ac_try" in
7902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7903 *) ac_try_echo=$ac_try;;
7905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7906 (eval "$ac_try") 2>&5
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); }; } &&
7910 { ac_try='test -s conftest$ac_exeext'
7911 { (case "(($ac_try" in
7912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7913 *) ac_try_echo=$ac_try;;
7915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7916 (eval "$ac_try") 2>&5
7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); }; }; then
7920 llvm_cv_link_use_version_script=yes
7922 echo "$as_me: failed program was:" >&5
7923 sed 's/^/| /' conftest.$ac_ext >&5
7925 llvm_cv_link_use_version_script=no
7928 rm -f core conftest.err conftest.$ac_objext \
7929 conftest$ac_exeext conftest.$ac_ext
7930 rm "$tmp/export.map"
7934 ac_cpp='$CPP $CPPFLAGS'
7935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7941 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7942 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7943 if test "$llvm_cv_link_use_version_script" = yes ; then
7944 HAVE_LINK_VERSION_SCRIPT=1
7951 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7952 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7953 if test "${ac_cv_c_const+set}" = set; then
7954 echo $ECHO_N "(cached) $ECHO_C" >&6
7956 cat >conftest.$ac_ext <<_ACEOF
7959 cat confdefs.h >>conftest.$ac_ext
7960 cat >>conftest.$ac_ext <<_ACEOF
7961 /* end confdefs.h. */
7966 /* FIXME: Include the comments suggested by Paul. */
7968 /* Ultrix mips cc rejects this. */
7969 typedef int charset[2];
7971 /* SunOS 4.1.1 cc rejects this. */
7972 char const *const *ccp;
7974 /* NEC SVR4.0.2 mips cc rejects this. */
7975 struct point {int x, y;};
7976 static struct point const zero = {0,0};
7977 /* AIX XL C 1.02.0.0 rejects this.
7978 It does not let you subtract one const X* pointer from another in
7979 an arm of an if-expression whose if-part is not a constant
7981 const char *g = "string";
7982 ccp = &g + (g ? g-g : 0);
7983 /* HPUX 7.0 cc rejects these. */
7986 ccp = (char const *const *) p;
7987 { /* SCO 3.2v4 cc rejects this. */
7989 char const *s = 0 ? (char *) 0 : (char const *) 0;
7994 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7996 const int *foo = &x[0];
7999 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8000 typedef const int *iptr;
8004 { /* AIX XL C 1.02.0.0 rejects this saying
8005 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8006 struct s { int j; const int *ap[3]; };
8007 struct s *b; b->j = 5;
8009 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8013 return !x[0] && !zero.x;
8020 rm -f conftest.$ac_objext
8021 if { (ac_try="$ac_compile"
8023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8024 *) ac_try_echo=$ac_try;;
8026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8027 (eval "$ac_compile") 2>conftest.er1
8029 grep -v '^ *+' conftest.er1 >conftest.err
8031 cat conftest.err >&5
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); } &&
8034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8035 { (case "(($ac_try" in
8036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8037 *) ac_try_echo=$ac_try;;
8039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8040 (eval "$ac_try") 2>&5
8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043 (exit $ac_status); }; } &&
8044 { ac_try='test -s conftest.$ac_objext'
8045 { (case "(($ac_try" in
8046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8047 *) ac_try_echo=$ac_try;;
8049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8050 (eval "$ac_try") 2>&5
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); }; }; then
8056 echo "$as_me: failed program was:" >&5
8057 sed 's/^/| /' conftest.$ac_ext >&5
8062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8064 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8065 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8066 if test $ac_cv_c_const = no; then
8068 cat >>confdefs.h <<\_ACEOF
8080 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8081 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8082 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8083 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8085 echo $ECHO_N "(cached) $ECHO_C" >&6
8087 cat >conftest.$ac_ext <<_ACEOF
8090 cat confdefs.h >>conftest.$ac_ext
8091 cat >>conftest.$ac_ext <<_ACEOF
8092 /* end confdefs.h. */
8093 #include <sys/types.h>
8105 rm -f conftest.$ac_objext
8106 if { (ac_try="$ac_compile"
8108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8109 *) ac_try_echo=$ac_try;;
8111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8112 (eval "$ac_compile") 2>conftest.er1
8114 grep -v '^ *+' conftest.er1 >conftest.err
8116 cat conftest.err >&5
8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 (exit $ac_status); } &&
8119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8120 { (case "(($ac_try" in
8121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8122 *) ac_try_echo=$ac_try;;
8124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8125 (eval "$ac_try") 2>&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); }; } &&
8129 { ac_try='test -s conftest.$ac_objext'
8130 { (case "(($ac_try" in
8131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8132 *) ac_try_echo=$ac_try;;
8134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8135 (eval "$ac_try") 2>&5
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); }; }; then
8139 eval "$as_ac_Header=yes"
8141 echo "$as_me: failed program was:" >&5
8142 sed 's/^/| /' conftest.$ac_ext >&5
8144 eval "$as_ac_Header=no"
8147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8149 ac_res=`eval echo '${'$as_ac_Header'}'`
8150 { echo "$as_me:$LINENO: result: $ac_res" >&5
8151 echo "${ECHO_T}$ac_res" >&6; }
8152 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8153 cat >>confdefs.h <<_ACEOF
8154 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8157 ac_header_dirent=$ac_hdr; break
8161 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8162 if test $ac_header_dirent = dirent.h; then
8163 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8164 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8165 if test "${ac_cv_search_opendir+set}" = set; then
8166 echo $ECHO_N "(cached) $ECHO_C" >&6
8168 ac_func_search_save_LIBS=$LIBS
8169 cat >conftest.$ac_ext <<_ACEOF
8172 cat confdefs.h >>conftest.$ac_ext
8173 cat >>conftest.$ac_ext <<_ACEOF
8174 /* end confdefs.h. */
8176 /* Override any GCC internal prototype to avoid an error.
8177 Use char because int might match the return type of a GCC
8178 builtin and then its argument prototype would still apply. */
8191 for ac_lib in '' dir; do
8192 if test -z "$ac_lib"; then
8193 ac_res="none required"
8196 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8198 rm -f conftest.$ac_objext conftest$ac_exeext
8199 if { (ac_try="$ac_link"
8201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8202 *) ac_try_echo=$ac_try;;
8204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8205 (eval "$ac_link") 2>conftest.er1
8207 grep -v '^ *+' conftest.er1 >conftest.err
8209 cat conftest.err >&5
8210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8211 (exit $ac_status); } &&
8212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8213 { (case "(($ac_try" in
8214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8215 *) ac_try_echo=$ac_try;;
8217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8218 (eval "$ac_try") 2>&5
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 (exit $ac_status); }; } &&
8222 { ac_try='test -s conftest$ac_exeext'
8223 { (case "(($ac_try" in
8224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8225 *) ac_try_echo=$ac_try;;
8227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8228 (eval "$ac_try") 2>&5
8230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231 (exit $ac_status); }; }; then
8232 ac_cv_search_opendir=$ac_res
8234 echo "$as_me: failed program was:" >&5
8235 sed 's/^/| /' conftest.$ac_ext >&5
8240 rm -f core conftest.err conftest.$ac_objext \
8242 if test "${ac_cv_search_opendir+set}" = set; then
8246 if test "${ac_cv_search_opendir+set}" = set; then
8249 ac_cv_search_opendir=no
8252 LIBS=$ac_func_search_save_LIBS
8254 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8255 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8256 ac_res=$ac_cv_search_opendir
8257 if test "$ac_res" != no; then
8258 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8263 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8264 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8265 if test "${ac_cv_search_opendir+set}" = set; then
8266 echo $ECHO_N "(cached) $ECHO_C" >&6
8268 ac_func_search_save_LIBS=$LIBS
8269 cat >conftest.$ac_ext <<_ACEOF
8272 cat confdefs.h >>conftest.$ac_ext
8273 cat >>conftest.$ac_ext <<_ACEOF
8274 /* end confdefs.h. */
8276 /* Override any GCC internal prototype to avoid an error.
8277 Use char because int might match the return type of a GCC
8278 builtin and then its argument prototype would still apply. */
8291 for ac_lib in '' x; do
8292 if test -z "$ac_lib"; then
8293 ac_res="none required"
8296 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8298 rm -f conftest.$ac_objext conftest$ac_exeext
8299 if { (ac_try="$ac_link"
8301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8302 *) ac_try_echo=$ac_try;;
8304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8305 (eval "$ac_link") 2>conftest.er1
8307 grep -v '^ *+' conftest.er1 >conftest.err
8309 cat conftest.err >&5
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); } &&
8312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8313 { (case "(($ac_try" in
8314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8315 *) ac_try_echo=$ac_try;;
8317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8318 (eval "$ac_try") 2>&5
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 (exit $ac_status); }; } &&
8322 { ac_try='test -s conftest$ac_exeext'
8323 { (case "(($ac_try" in
8324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8325 *) ac_try_echo=$ac_try;;
8327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8328 (eval "$ac_try") 2>&5
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); }; }; then
8332 ac_cv_search_opendir=$ac_res
8334 echo "$as_me: failed program was:" >&5
8335 sed 's/^/| /' conftest.$ac_ext >&5
8340 rm -f core conftest.err conftest.$ac_objext \
8342 if test "${ac_cv_search_opendir+set}" = set; then
8346 if test "${ac_cv_search_opendir+set}" = set; then
8349 ac_cv_search_opendir=no
8352 LIBS=$ac_func_search_save_LIBS
8354 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8355 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8356 ac_res=$ac_cv_search_opendir
8357 if test "$ac_res" != no; then
8358 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8365 for ac_header in dlfcn.h
8367 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8369 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8372 echo $ECHO_N "(cached) $ECHO_C" >&6
8374 ac_res=`eval echo '${'$as_ac_Header'}'`
8375 { echo "$as_me:$LINENO: result: $ac_res" >&5
8376 echo "${ECHO_T}$ac_res" >&6; }
8378 # Is the header compilable?
8379 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8380 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8381 cat >conftest.$ac_ext <<_ACEOF
8384 cat confdefs.h >>conftest.$ac_ext
8385 cat >>conftest.$ac_ext <<_ACEOF
8386 /* end confdefs.h. */
8387 $ac_includes_default
8388 #include <$ac_header>
8390 rm -f conftest.$ac_objext
8391 if { (ac_try="$ac_compile"
8393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8394 *) ac_try_echo=$ac_try;;
8396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8397 (eval "$ac_compile") 2>conftest.er1
8399 grep -v '^ *+' conftest.er1 >conftest.err
8401 cat conftest.err >&5
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); } &&
8404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8405 { (case "(($ac_try" in
8406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8407 *) ac_try_echo=$ac_try;;
8409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8410 (eval "$ac_try") 2>&5
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); }; } &&
8414 { ac_try='test -s conftest.$ac_objext'
8415 { (case "(($ac_try" in
8416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8417 *) ac_try_echo=$ac_try;;
8419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8420 (eval "$ac_try") 2>&5
8422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423 (exit $ac_status); }; }; then
8424 ac_header_compiler=yes
8426 echo "$as_me: failed program was:" >&5
8427 sed 's/^/| /' conftest.$ac_ext >&5
8429 ac_header_compiler=no
8432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8433 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8434 echo "${ECHO_T}$ac_header_compiler" >&6; }
8436 # Is the header present?
8437 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8438 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8439 cat >conftest.$ac_ext <<_ACEOF
8442 cat confdefs.h >>conftest.$ac_ext
8443 cat >>conftest.$ac_ext <<_ACEOF
8444 /* end confdefs.h. */
8445 #include <$ac_header>
8447 if { (ac_try="$ac_cpp conftest.$ac_ext"
8449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8450 *) ac_try_echo=$ac_try;;
8452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8455 grep -v '^ *+' conftest.er1 >conftest.err
8457 cat conftest.err >&5
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); } >/dev/null; then
8460 if test -s conftest.err; then
8461 ac_cpp_err=$ac_c_preproc_warn_flag
8462 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8469 if test -z "$ac_cpp_err"; then
8470 ac_header_preproc=yes
8472 echo "$as_me: failed program was:" >&5
8473 sed 's/^/| /' conftest.$ac_ext >&5
8475 ac_header_preproc=no
8478 rm -f conftest.err conftest.$ac_ext
8479 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8480 echo "${ECHO_T}$ac_header_preproc" >&6; }
8482 # So? What about this header?
8483 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8485 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8486 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8488 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8489 ac_header_preproc=yes
8492 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8493 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8494 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8495 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8496 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8497 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8498 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8499 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8501 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8502 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8503 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8505 ## ------------------------------------ ##
8506 ## Report this to http://llvm.org/bugs/ ##
8507 ## ------------------------------------ ##
8509 ) | sed "s/^/$as_me: WARNING: /" >&2
8512 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8515 echo $ECHO_N "(cached) $ECHO_C" >&6
8517 eval "$as_ac_Header=\$ac_header_preproc"
8519 ac_res=`eval echo '${'$as_ac_Header'}'`
8520 { echo "$as_me:$LINENO: result: $ac_res" >&5
8521 echo "${ECHO_T}$ac_res" >&6; }
8524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8525 cat >>confdefs.h <<_ACEOF
8526 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8533 # Check whether --enable-ltdl-install was given.
8534 if test "${enable_ltdl_install+set}" = set; then
8535 enableval=$enable_ltdl_install;
8541 if test x"${enable_ltdl_install-no}" != xno; then
8543 INSTALL_LTDL_FALSE='#'
8545 INSTALL_LTDL_TRUE='#'
8551 if test x"${enable_ltdl_convenience-no}" != xno; then
8552 CONVENIENCE_LTDL_TRUE=
8553 CONVENIENCE_LTDL_FALSE='#'
8555 CONVENIENCE_LTDL_TRUE='#'
8556 CONVENIENCE_LTDL_FALSE=
8560 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8561 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8563 libname_spec='lib$name'
8571 shlibpath_overrides_runpath=unknown
8573 dynamic_linker="$host_os ld.so"
8574 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8575 if test "$GCC" = yes; then
8576 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8577 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8578 # if the path contains ";" then we assume it to be the separator
8579 # otherwise default to the standard path separator (i.e. ":") - it is
8580 # assumed that no part of a normal pathname contains ";" but that should
8581 # okay in the real world where ";" in dirpaths is itself problematic.
8582 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8584 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8587 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8589 need_lib_prefix=unknown
8590 hardcode_into_libs=no
8592 # when you set need_version to no, make sure it does not cause -set_version
8593 # flags to be left without arguments
8594 need_version=unknown
8599 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8600 shlibpath_var=LIBPATH
8602 # AIX 3 has no versioning support, so we append a major version to the name.
8603 soname_spec='${libname}${release}${shared_ext}$major'
8610 hardcode_into_libs=yes
8611 if test "$host_cpu" = ia64; then
8612 # AIX 5 supports IA64
8613 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8614 shlibpath_var=LD_LIBRARY_PATH
8616 # With GCC up to 2.95.x, collect2 would create an import file
8617 # for dependence libraries. The import file would start with
8618 # the line `#! .'. This would cause the generated library to
8619 # depend on `.', always an invalid library. This was fixed in
8620 # development snapshots of GCC prior to 3.0.
8622 aix4 | aix4.[01] | aix4.[01].*)
8623 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8625 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8632 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8633 # soname into executable. Probably we can add versioning support to
8634 # collect2, so additional links can be useful in future.
8635 if test "$aix_use_runtimelinking" = yes; then
8636 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8637 # instead of lib<name>.a to let people know that these are not
8638 # typical AIX shared libraries.
8639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8641 # We preserve .a as extension for shared libraries through AIX4.2
8642 # and later when we are not doing run time linking.
8643 library_names_spec='${libname}${release}.a $libname.a'
8644 soname_spec='${libname}${release}${shared_ext}$major'
8646 shlibpath_var=LIBPATH
8651 library_names_spec='$libname.ixlibrary $libname.a'
8652 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8653 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'
8657 library_names_spec='${libname}${shared_ext}'
8658 dynamic_linker="$host_os ld.so"
8659 shlibpath_var=LIBRARY_PATH
8665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8666 soname_spec='${libname}${release}${shared_ext}$major'
8667 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8668 shlibpath_var=LD_LIBRARY_PATH
8669 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8670 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8671 # the default ld.so.conf also contains /usr/contrib/lib and
8672 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8673 # libtool to hard-code these into programs
8676 cygwin* | mingw* | pw32*)
8677 version_type=windows
8682 case $GCC,$host_os in
8683 yes,cygwin* | yes,mingw* | yes,pw32*)
8684 library_names_spec='$libname.dll.a'
8685 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8686 postinstall_cmds='base_file=`basename \${file}`~
8687 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8688 dldir=$destdir/`dirname \$dlpath`~
8689 test -d \$dldir || mkdir -p \$dldir~
8690 $install_prog $dir/$dlname \$dldir/$dlname~
8691 chmod a+x \$dldir/$dlname'
8692 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8693 dlpath=$dir/\$dldll~
8695 shlibpath_overrides_runpath=yes
8699 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8700 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8701 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8704 # MinGW DLLs use traditional 'lib' prefix
8705 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8706 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8707 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8708 # It is most probably a Windows format PATH printed by
8709 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8710 # path with ; separators, and with drive letters. We can handle the
8711 # drive letters (cygwin fileutils understands them), so leave them,
8712 # especially as we might pass files found there to a mingw objdump,
8713 # which wouldn't understand a cygwinified path. Ahh.
8714 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8716 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8720 # pw32 DLLs use 'pw' prefix rather than 'lib'
8721 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8727 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8730 dynamic_linker='Win32 ld.exe'
8731 # FIXME: first we should search . and the directory the executable is in
8735 darwin* | rhapsody*)
8736 dynamic_linker="$host_os dyld"
8740 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8741 soname_spec='${libname}${release}${major}$shared_ext'
8742 shlibpath_overrides_runpath=yes
8743 shlibpath_var=DYLD_LIBRARY_PATH
8744 shrext_cmds='.dylib'
8745 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8746 if test "$GCC" = yes; then
8747 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"`
8749 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8751 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8759 soname_spec='${libname}${release}${shared_ext}$major'
8760 shlibpath_var=LD_LIBRARY_PATH
8771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8772 soname_spec='${libname}${release}${shared_ext}$major'
8773 shlibpath_var=LD_LIBRARY_PATH
8774 shlibpath_overrides_runpath=no
8775 hardcode_into_libs=yes
8776 dynamic_linker='GNU ld.so'
8779 freebsd* | dragonfly*)
8780 # DragonFly does not have aout. When/if they implement a new
8781 # versioning mechanism, adjust this.
8782 if test -x /usr/bin/objformat; then
8783 objformat=`/usr/bin/objformat`
8786 freebsd[123].*) objformat=aout ;;
8790 version_type=freebsd-$objformat
8791 case $version_type in
8793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8798 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8802 shlibpath_var=LD_LIBRARY_PATH
8805 shlibpath_overrides_runpath=yes
8807 freebsd3.[01]* | freebsdelf3.[01]*)
8808 shlibpath_overrides_runpath=yes
8809 hardcode_into_libs=yes
8811 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8812 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8813 shlibpath_overrides_runpath=no
8814 hardcode_into_libs=yes
8816 freebsd*) # from 4.6 on
8817 shlibpath_overrides_runpath=yes
8818 hardcode_into_libs=yes
8827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8828 soname_spec='${libname}${release}${shared_ext}$major'
8829 shlibpath_var=LD_LIBRARY_PATH
8830 hardcode_into_libs=yes
8833 hpux9* | hpux10* | hpux11*)
8834 # Give a soname corresponding to the major version so that dld.sl refuses to
8835 # link against other versions.
8842 hardcode_into_libs=yes
8843 dynamic_linker="$host_os dld.so"
8844 shlibpath_var=LD_LIBRARY_PATH
8845 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8847 soname_spec='${libname}${release}${shared_ext}$major'
8848 if test "X$HPUX_IA64_MODE" = X32; then
8849 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8851 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8853 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8857 hardcode_into_libs=yes
8858 dynamic_linker="$host_os dld.sl"
8859 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8860 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8862 soname_spec='${libname}${release}${shared_ext}$major'
8863 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8864 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8868 dynamic_linker="$host_os dld.sl"
8869 shlibpath_var=SHLIB_PATH
8870 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8872 soname_spec='${libname}${release}${shared_ext}$major'
8875 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8876 postinstall_cmds='chmod 555 $lib'
8883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8884 soname_spec='${libname}${release}${shared_ext}$major'
8885 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8886 shlibpath_var=LD_LIBRARY_PATH
8887 shlibpath_overrides_runpath=no
8888 hardcode_into_libs=yes
8891 irix5* | irix6* | nonstopux*)
8893 nonstopux*) version_type=nonstopux ;;
8895 if test "$lt_cv_prog_gnu_ld" = yes; then
8903 soname_spec='${libname}${release}${shared_ext}$major'
8904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8906 irix5* | nonstopux*)
8910 case $LD in # libtool.m4 will add one of these switches to LD
8911 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8912 libsuff= shlibsuff= libmagic=32-bit;;
8913 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8914 libsuff=32 shlibsuff=N32 libmagic=N32;;
8915 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8916 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8917 *) libsuff= shlibsuff= libmagic=never-match;;
8921 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8922 shlibpath_overrides_runpath=no
8923 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8924 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8925 hardcode_into_libs=yes
8928 # No shared lib support for Linux oldld, aout, or coff.
8929 linux*oldld* | linux*aout* | linux*coff*)
8933 # This must be Linux ELF.
8938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8939 soname_spec='${libname}${release}${shared_ext}$major'
8940 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8941 shlibpath_var=LD_LIBRARY_PATH
8942 shlibpath_overrides_runpath=no
8943 # This implies no fast_install, which is unacceptable.
8944 # Some rework will be needed to allow for fast_install
8945 # before this can be enabled.
8946 hardcode_into_libs=yes
8948 # Append ld.so.conf contents to the search path
8949 if test -f /etc/ld.so.conf; then
8950 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' ' '`
8951 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8954 # We used to test for /lib/ld.so.1 and disable shared libraries on
8955 # powerpc, because MkLinux only supported shared libraries with the
8956 # GNU dynamic linker. Since this was broken with cross compilers,
8957 # most powerpc-linux boxes support dynamic linking these days and
8958 # people can always --disable-shared, the test was removed, and we
8959 # assume the GNU/Linux dynamic linker is in use.
8960 dynamic_linker='GNU/Linux ld.so'
8967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8968 soname_spec='${libname}${release}${shared_ext}$major'
8969 shlibpath_var=LD_LIBRARY_PATH
8970 shlibpath_overrides_runpath=no
8971 hardcode_into_libs=yes
8972 dynamic_linker='GNU ld.so'
8979 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8981 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8982 dynamic_linker='NetBSD (a.out) ld.so'
8984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8985 soname_spec='${libname}${release}${shared_ext}$major'
8986 dynamic_linker='NetBSD ld.elf_so'
8988 shlibpath_var=LD_LIBRARY_PATH
8989 shlibpath_overrides_runpath=yes
8990 hardcode_into_libs=yes
8995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8996 shlibpath_var=LD_LIBRARY_PATH
8997 shlibpath_overrides_runpath=yes
9004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9005 soname_spec='${libname}${release}${shared_ext}$major'
9006 shlibpath_var=LD_LIBRARY_PATH
9007 shlibpath_overrides_runpath=yes
9012 sys_lib_dlsearch_path_spec="/usr/lib"
9014 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9016 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9017 *) need_version=no ;;
9019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9020 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9021 shlibpath_var=LD_LIBRARY_PATH
9022 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9024 openbsd2.[89] | openbsd2.[89].*)
9025 shlibpath_overrides_runpath=no
9028 shlibpath_overrides_runpath=yes
9032 shlibpath_overrides_runpath=yes
9037 libname_spec='$name'
9040 library_names_spec='$libname${shared_ext} $libname.a'
9041 dynamic_linker='OS/2 ld.exe'
9042 shlibpath_var=LIBPATH
9045 osf3* | osf4* | osf5*)
9049 soname_spec='${libname}${release}${shared_ext}$major'
9050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9051 shlibpath_var=LD_LIBRARY_PATH
9052 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9053 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9061 soname_spec='${libname}${release}${shared_ext}$major'
9062 shlibpath_var=LD_LIBRARY_PATH
9063 shlibpath_overrides_runpath=yes
9064 hardcode_into_libs=yes
9065 # ldd complains unless libraries are executable
9066 postinstall_cmds='chmod +x $lib'
9071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9072 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9073 shlibpath_var=LD_LIBRARY_PATH
9074 shlibpath_overrides_runpath=yes
9075 if test "$with_gnu_ld" = yes; then
9083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9084 soname_spec='${libname}${release}${shared_ext}$major'
9085 shlibpath_var=LD_LIBRARY_PATH
9086 case $host_vendor in
9088 shlibpath_overrides_runpath=no
9090 export_dynamic_flag_spec='${wl}-Blargedynsym'
9091 runpath_var=LD_RUN_PATH
9099 shlibpath_overrides_runpath=no
9100 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9106 if test -d /usr/nec ;then
9108 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9109 soname_spec='$libname${shared_ext}.$major'
9110 shlibpath_var=LD_LIBRARY_PATH
9114 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9115 version_type=freebsd-elf
9118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9119 soname_spec='${libname}${release}${shared_ext}$major'
9120 shlibpath_var=LD_LIBRARY_PATH
9121 hardcode_into_libs=yes
9122 if test "$with_gnu_ld" = yes; then
9123 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9124 shlibpath_overrides_runpath=no
9126 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9127 shlibpath_overrides_runpath=yes
9130 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9134 sys_lib_dlsearch_path_spec='/usr/lib'
9139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9140 soname_spec='${libname}${release}${shared_ext}$major'
9141 shlibpath_var=LD_LIBRARY_PATH
9148 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9149 echo "${ECHO_T}$dynamic_linker" >&6; }
9150 test "$dynamic_linker" = no && can_build_shared=no
9152 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9153 if test "$GCC" = yes; then
9154 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9158 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9159 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9160 if test "${libltdl_cv_shlibext+set}" = set; then
9161 echo $ECHO_N "(cached) $ECHO_C" >&6
9165 eval libltdl_cv_shlibext=$shrext_cmds
9168 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9169 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9170 if test -n "$libltdl_cv_shlibext"; then
9172 cat >>confdefs.h <<_ACEOF
9173 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9179 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9180 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9181 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9182 echo $ECHO_N "(cached) $ECHO_C" >&6
9184 libltdl_cv_shlibpath_var="$shlibpath_var"
9186 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9187 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9188 if test -n "$libltdl_cv_shlibpath_var"; then
9190 cat >>confdefs.h <<_ACEOF
9191 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9197 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9198 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9199 if test "${libltdl_cv_sys_search_path+set}" = set; then
9200 echo $ECHO_N "(cached) $ECHO_C" >&6
9202 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9204 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9205 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9206 if test -n "$libltdl_cv_sys_search_path"; then
9208 for dir in $libltdl_cv_sys_search_path; do
9209 if test -z "$sys_search_path"; then
9210 sys_search_path="$dir"
9212 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9216 cat >>confdefs.h <<_ACEOF
9217 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9222 { echo "$as_me:$LINENO: checking for objdir" >&5
9223 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9224 if test "${libltdl_cv_objdir+set}" = set; then
9225 echo $ECHO_N "(cached) $ECHO_C" >&6
9227 libltdl_cv_objdir="$objdir"
9228 if test -n "$objdir"; then
9231 rm -f .libs 2>/dev/null
9232 mkdir .libs 2>/dev/null
9233 if test -d .libs; then
9234 libltdl_cv_objdir=.libs
9236 # MS-DOS does not allow filenames that begin with a dot.
9237 libltdl_cv_objdir=_libs
9239 rmdir .libs 2>/dev/null
9243 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9244 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9246 cat >>confdefs.h <<_ACEOF
9247 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9255 # Check for command to grab the raw symbol name followed by C symbol from nm.
9256 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9257 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9258 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9259 echo $ECHO_N "(cached) $ECHO_C" >&6
9262 # These are sane defaults that work on at least a few old systems.
9263 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9265 # Character class describing NM global symbol codes.
9266 symcode='[BCDEGRST]'
9268 # Regexp to match symbols that can be accessed directly from C.
9269 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9271 # Transform an extracted symbol line into a proper C declaration
9272 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9274 # Transform an extracted symbol line into symbol name and symbol address
9275 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'"
9277 # Define system-specific variables.
9282 cygwin* | mingw* | pw32*)
9283 symcode='[ABCDGISTW]'
9285 hpux*) # Its linker distinguishes data from code symbols
9286 if test "$host_cpu" = ia64; then
9287 symcode='[ABCDEGRST]'
9289 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9290 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'"
9293 if test "$host_cpu" = ia64; then
9294 symcode='[ABCDGIRSTW]'
9295 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9296 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'"
9300 symcode='[BCDEGRST]'
9303 symcode='[BCDEGQRST]'
9314 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9322 # Handle CRLF in mingw tool chain
9326 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9330 # If we're using GNU nm, then use its standard symbol codes.
9331 case `$NM -V 2>&1` in
9332 *GNU* | *'with BFD'*)
9333 symcode='[ABCDGIRSTW]' ;;
9336 # Try without a prefix undercore, then with it.
9337 for ac_symprfx in "" "_"; do
9339 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9340 symxfrm="\\1 $ac_symprfx\\2 \\2"
9342 # Write the raw and C identifiers.
9343 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9345 # Check to see that the pipe works correctly.
9349 cat > conftest.$ac_ext <<EOF
9354 void nm_test_func(){}
9358 int main(){nm_test_var='a';nm_test_func();return(0);}
9361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9362 (eval $ac_compile) 2>&5
9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365 (exit $ac_status); }; then
9366 # Now try to grab the symbols.
9368 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9369 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372 (exit $ac_status); } && test -s "$nlist"; then
9373 # Try sorting and uniquifying the output.
9374 if sort "$nlist" | uniq > "$nlist"T; then
9375 mv -f "$nlist"T "$nlist"
9380 # Make sure that we snagged all the symbols we need.
9381 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9382 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9383 cat <<EOF > conftest.$ac_ext
9389 # Now generate the symbol file.
9390 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9392 cat <<EOF >> conftest.$ac_ext
9393 #if defined (__STDC__) && __STDC__
9394 # define lt_ptr_t void *
9396 # define lt_ptr_t char *
9400 /* The mapping between symbol names and symbols. */
9405 lt_preloaded_symbols[] =
9408 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9409 cat <<\EOF >> conftest.$ac_ext
9417 # Now try linking the two files.
9418 mv conftest.$ac_objext conftstm.$ac_objext
9419 lt_save_LIBS="$LIBS"
9420 lt_save_CFLAGS="$CFLAGS"
9421 LIBS="conftstm.$ac_objext"
9422 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9424 (eval $ac_link) 2>&5
9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9430 LIBS="$lt_save_LIBS"
9431 CFLAGS="$lt_save_CFLAGS"
9433 echo "cannot find nm_test_func in $nlist" >&5
9436 echo "cannot find nm_test_var in $nlist" >&5
9439 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9442 echo "$progname: failed program was:" >&5
9443 cat conftest.$ac_ext >&5
9445 rm -f conftest* conftst*
9447 # Do not use the global_symbol_pipe unless it works.
9448 if test "$pipe_works" = yes; then
9451 lt_cv_sys_global_symbol_pipe=
9457 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9458 lt_cv_sys_global_symbol_to_cdecl=
9460 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9461 { echo "$as_me:$LINENO: result: failed" >&5
9462 echo "${ECHO_T}failed" >&6; }
9464 { echo "$as_me:$LINENO: result: ok" >&5
9465 echo "${ECHO_T}ok" >&6; }
9469 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9470 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9471 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9472 echo $ECHO_N "(cached) $ECHO_C" >&6
9474 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9475 libltdl_cv_preloaded_symbols=yes
9477 libltdl_cv_preloaded_symbols=no
9481 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9482 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9483 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9485 cat >>confdefs.h <<\_ACEOF
9486 #define HAVE_PRELOADED_SYMBOLS 1
9494 ac_cpp='$CPP $CPPFLAGS'
9495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9500 { echo "$as_me:$LINENO: checking for shl_load" >&5
9501 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9502 if test "${ac_cv_func_shl_load+set}" = set; then
9503 echo $ECHO_N "(cached) $ECHO_C" >&6
9505 cat >conftest.$ac_ext <<_ACEOF
9508 cat confdefs.h >>conftest.$ac_ext
9509 cat >>conftest.$ac_ext <<_ACEOF
9510 /* end confdefs.h. */
9511 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9512 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9513 #define shl_load innocuous_shl_load
9515 /* System header to define __stub macros and hopefully few prototypes,
9516 which can conflict with char shl_load (); below.
9517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9518 <limits.h> exists even on freestanding compilers. */
9521 # include <limits.h>
9523 # include <assert.h>
9528 /* Override any GCC internal prototype to avoid an error.
9529 Use char because int might match the return type of a GCC
9530 builtin and then its argument prototype would still apply. */
9535 /* The GNU C library defines this for functions which it implements
9536 to always fail with ENOSYS. Some functions are actually named
9537 something starting with __ and the normal name is an alias. */
9538 #if defined __stub_shl_load || defined __stub___shl_load
9550 rm -f conftest.$ac_objext conftest$ac_exeext
9551 if { (ac_try="$ac_link"
9553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9554 *) ac_try_echo=$ac_try;;
9556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9557 (eval "$ac_link") 2>conftest.er1
9559 grep -v '^ *+' conftest.er1 >conftest.err
9561 cat conftest.err >&5
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); } &&
9564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9565 { (case "(($ac_try" in
9566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9567 *) ac_try_echo=$ac_try;;
9569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9570 (eval "$ac_try") 2>&5
9572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 (exit $ac_status); }; } &&
9574 { ac_try='test -s conftest$ac_exeext'
9575 { (case "(($ac_try" in
9576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9577 *) ac_try_echo=$ac_try;;
9579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9580 (eval "$ac_try") 2>&5
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); }; }; then
9584 ac_cv_func_shl_load=yes
9586 echo "$as_me: failed program was:" >&5
9587 sed 's/^/| /' conftest.$ac_ext >&5
9589 ac_cv_func_shl_load=no
9592 rm -f core conftest.err conftest.$ac_objext \
9593 conftest$ac_exeext conftest.$ac_ext
9595 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9596 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9597 if test $ac_cv_func_shl_load = yes; then
9599 cat >>confdefs.h <<\_ACEOF
9600 #define HAVE_SHL_LOAD 1
9604 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9605 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9606 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9607 echo $ECHO_N "(cached) $ECHO_C" >&6
9609 ac_check_lib_save_LIBS=$LIBS
9611 cat >conftest.$ac_ext <<_ACEOF
9614 cat confdefs.h >>conftest.$ac_ext
9615 cat >>conftest.$ac_ext <<_ACEOF
9616 /* end confdefs.h. */
9618 /* Override any GCC internal prototype to avoid an error.
9619 Use char because int might match the return type of a GCC
9620 builtin and then its argument prototype would still apply. */
9633 rm -f conftest.$ac_objext conftest$ac_exeext
9634 if { (ac_try="$ac_link"
9636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9637 *) ac_try_echo=$ac_try;;
9639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9640 (eval "$ac_link") 2>conftest.er1
9642 grep -v '^ *+' conftest.er1 >conftest.err
9644 cat conftest.err >&5
9645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646 (exit $ac_status); } &&
9647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9648 { (case "(($ac_try" in
9649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9650 *) ac_try_echo=$ac_try;;
9652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9653 (eval "$ac_try") 2>&5
9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656 (exit $ac_status); }; } &&
9657 { ac_try='test -s conftest$ac_exeext'
9658 { (case "(($ac_try" in
9659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9660 *) ac_try_echo=$ac_try;;
9662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9663 (eval "$ac_try") 2>&5
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); }; }; then
9667 ac_cv_lib_dld_shl_load=yes
9669 echo "$as_me: failed program was:" >&5
9670 sed 's/^/| /' conftest.$ac_ext >&5
9672 ac_cv_lib_dld_shl_load=no
9675 rm -f core conftest.err conftest.$ac_objext \
9676 conftest$ac_exeext conftest.$ac_ext
9677 LIBS=$ac_check_lib_save_LIBS
9679 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9680 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9681 if test $ac_cv_lib_dld_shl_load = yes; then
9683 cat >>confdefs.h <<\_ACEOF
9684 #define HAVE_SHL_LOAD 1
9687 LIBADD_DL="$LIBADD_DL -ldld"
9689 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9690 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9691 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9692 echo $ECHO_N "(cached) $ECHO_C" >&6
9694 ac_check_lib_save_LIBS=$LIBS
9696 cat >conftest.$ac_ext <<_ACEOF
9699 cat confdefs.h >>conftest.$ac_ext
9700 cat >>conftest.$ac_ext <<_ACEOF
9701 /* end confdefs.h. */
9703 /* Override any GCC internal prototype to avoid an error.
9704 Use char because int might match the return type of a GCC
9705 builtin and then its argument prototype would still apply. */
9718 rm -f conftest.$ac_objext conftest$ac_exeext
9719 if { (ac_try="$ac_link"
9721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9722 *) ac_try_echo=$ac_try;;
9724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9725 (eval "$ac_link") 2>conftest.er1
9727 grep -v '^ *+' conftest.er1 >conftest.err
9729 cat conftest.err >&5
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); } &&
9732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9733 { (case "(($ac_try" in
9734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9735 *) ac_try_echo=$ac_try;;
9737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9738 (eval "$ac_try") 2>&5
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); }; } &&
9742 { ac_try='test -s conftest$ac_exeext'
9743 { (case "(($ac_try" in
9744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9745 *) ac_try_echo=$ac_try;;
9747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9748 (eval "$ac_try") 2>&5
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); }; }; then
9752 ac_cv_lib_dl_dlopen=yes
9754 echo "$as_me: failed program was:" >&5
9755 sed 's/^/| /' conftest.$ac_ext >&5
9757 ac_cv_lib_dl_dlopen=no
9760 rm -f core conftest.err conftest.$ac_objext \
9761 conftest$ac_exeext conftest.$ac_ext
9762 LIBS=$ac_check_lib_save_LIBS
9764 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9765 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9766 if test $ac_cv_lib_dl_dlopen = yes; then
9768 cat >>confdefs.h <<\_ACEOF
9769 #define HAVE_LIBDL 1
9772 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9774 cat >conftest.$ac_ext <<_ACEOF
9777 cat confdefs.h >>conftest.$ac_ext
9778 cat >>conftest.$ac_ext <<_ACEOF
9779 /* end confdefs.h. */
9792 rm -f conftest.$ac_objext conftest$ac_exeext
9793 if { (ac_try="$ac_link"
9795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9796 *) ac_try_echo=$ac_try;;
9798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9799 (eval "$ac_link") 2>conftest.er1
9801 grep -v '^ *+' conftest.er1 >conftest.err
9803 cat conftest.err >&5
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); } &&
9806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9807 { (case "(($ac_try" in
9808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9809 *) ac_try_echo=$ac_try;;
9811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9812 (eval "$ac_try") 2>&5
9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 (exit $ac_status); }; } &&
9816 { ac_try='test -s conftest$ac_exeext'
9817 { (case "(($ac_try" in
9818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9819 *) ac_try_echo=$ac_try;;
9821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9822 (eval "$ac_try") 2>&5
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); }; }; then
9827 cat >>confdefs.h <<\_ACEOF
9828 #define HAVE_LIBDL 1
9830 libltdl_cv_func_dlopen="yes"
9832 echo "$as_me: failed program was:" >&5
9833 sed 's/^/| /' conftest.$ac_ext >&5
9835 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9836 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9837 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9838 echo $ECHO_N "(cached) $ECHO_C" >&6
9840 ac_check_lib_save_LIBS=$LIBS
9842 cat >conftest.$ac_ext <<_ACEOF
9845 cat confdefs.h >>conftest.$ac_ext
9846 cat >>conftest.$ac_ext <<_ACEOF
9847 /* end confdefs.h. */
9849 /* Override any GCC internal prototype to avoid an error.
9850 Use char because int might match the return type of a GCC
9851 builtin and then its argument prototype would still apply. */
9864 rm -f conftest.$ac_objext conftest$ac_exeext
9865 if { (ac_try="$ac_link"
9867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9868 *) ac_try_echo=$ac_try;;
9870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9871 (eval "$ac_link") 2>conftest.er1
9873 grep -v '^ *+' conftest.er1 >conftest.err
9875 cat conftest.err >&5
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); } &&
9878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9879 { (case "(($ac_try" in
9880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9881 *) ac_try_echo=$ac_try;;
9883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9884 (eval "$ac_try") 2>&5
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); }; } &&
9888 { ac_try='test -s conftest$ac_exeext'
9889 { (case "(($ac_try" in
9890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9891 *) ac_try_echo=$ac_try;;
9893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9894 (eval "$ac_try") 2>&5
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); }; }; then
9898 ac_cv_lib_svld_dlopen=yes
9900 echo "$as_me: failed program was:" >&5
9901 sed 's/^/| /' conftest.$ac_ext >&5
9903 ac_cv_lib_svld_dlopen=no
9906 rm -f core conftest.err conftest.$ac_objext \
9907 conftest$ac_exeext conftest.$ac_ext
9908 LIBS=$ac_check_lib_save_LIBS
9910 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9911 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9912 if test $ac_cv_lib_svld_dlopen = yes; then
9914 cat >>confdefs.h <<\_ACEOF
9915 #define HAVE_LIBDL 1
9918 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9920 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9921 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9922 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9923 echo $ECHO_N "(cached) $ECHO_C" >&6
9925 ac_check_lib_save_LIBS=$LIBS
9927 cat >conftest.$ac_ext <<_ACEOF
9930 cat confdefs.h >>conftest.$ac_ext
9931 cat >>conftest.$ac_ext <<_ACEOF
9932 /* end confdefs.h. */
9934 /* Override any GCC internal prototype to avoid an error.
9935 Use char because int might match the return type of a GCC
9936 builtin and then its argument prototype would still apply. */
9949 rm -f conftest.$ac_objext conftest$ac_exeext
9950 if { (ac_try="$ac_link"
9952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9953 *) ac_try_echo=$ac_try;;
9955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9956 (eval "$ac_link") 2>conftest.er1
9958 grep -v '^ *+' conftest.er1 >conftest.err
9960 cat conftest.err >&5
9961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962 (exit $ac_status); } &&
9963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9964 { (case "(($ac_try" in
9965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9966 *) ac_try_echo=$ac_try;;
9968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9969 (eval "$ac_try") 2>&5
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); }; } &&
9973 { ac_try='test -s conftest$ac_exeext'
9974 { (case "(($ac_try" in
9975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9976 *) ac_try_echo=$ac_try;;
9978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9979 (eval "$ac_try") 2>&5
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); }; }; then
9983 ac_cv_lib_dld_dld_link=yes
9985 echo "$as_me: failed program was:" >&5
9986 sed 's/^/| /' conftest.$ac_ext >&5
9988 ac_cv_lib_dld_dld_link=no
9991 rm -f core conftest.err conftest.$ac_objext \
9992 conftest$ac_exeext conftest.$ac_ext
9993 LIBS=$ac_check_lib_save_LIBS
9995 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9996 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9997 if test $ac_cv_lib_dld_dld_link = yes; then
9999 cat >>confdefs.h <<\_ACEOF
10003 LIBADD_DL="$LIBADD_DL -ldld"
10005 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10006 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10007 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10008 echo $ECHO_N "(cached) $ECHO_C" >&6
10010 cat >conftest.$ac_ext <<_ACEOF
10013 cat confdefs.h >>conftest.$ac_ext
10014 cat >>conftest.$ac_ext <<_ACEOF
10015 /* end confdefs.h. */
10016 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10018 #define _dyld_func_lookup innocuous__dyld_func_lookup
10020 /* System header to define __stub macros and hopefully few prototypes,
10021 which can conflict with char _dyld_func_lookup (); below.
10022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10023 <limits.h> exists even on freestanding compilers. */
10026 # include <limits.h>
10028 # include <assert.h>
10031 #undef _dyld_func_lookup
10033 /* Override any GCC internal prototype to avoid an error.
10034 Use char because int might match the return type of a GCC
10035 builtin and then its argument prototype would still apply. */
10039 char _dyld_func_lookup ();
10040 /* The GNU C library defines this for functions which it implements
10041 to always fail with ENOSYS. Some functions are actually named
10042 something starting with __ and the normal name is an alias. */
10043 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10050 return _dyld_func_lookup ();
10055 rm -f conftest.$ac_objext conftest$ac_exeext
10056 if { (ac_try="$ac_link"
10057 case "(($ac_try" in
10058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10059 *) ac_try_echo=$ac_try;;
10061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10062 (eval "$ac_link") 2>conftest.er1
10064 grep -v '^ *+' conftest.er1 >conftest.err
10066 cat conftest.err >&5
10067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068 (exit $ac_status); } &&
10069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10070 { (case "(($ac_try" in
10071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10072 *) ac_try_echo=$ac_try;;
10074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10075 (eval "$ac_try") 2>&5
10077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078 (exit $ac_status); }; } &&
10079 { ac_try='test -s conftest$ac_exeext'
10080 { (case "(($ac_try" in
10081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10082 *) ac_try_echo=$ac_try;;
10084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10085 (eval "$ac_try") 2>&5
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); }; }; then
10089 ac_cv_func__dyld_func_lookup=yes
10091 echo "$as_me: failed program was:" >&5
10092 sed 's/^/| /' conftest.$ac_ext >&5
10094 ac_cv_func__dyld_func_lookup=no
10097 rm -f core conftest.err conftest.$ac_objext \
10098 conftest$ac_exeext conftest.$ac_ext
10100 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10101 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10102 if test $ac_cv_func__dyld_func_lookup = yes; then
10104 cat >>confdefs.h <<\_ACEOF
10105 #define HAVE_DYLD 1
10119 rm -f core conftest.err conftest.$ac_objext \
10120 conftest$ac_exeext conftest.$ac_ext
10131 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10133 lt_save_LIBS="$LIBS"
10134 LIBS="$LIBS $LIBADD_DL"
10136 for ac_func in dlerror
10138 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10139 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10140 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10141 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10142 echo $ECHO_N "(cached) $ECHO_C" >&6
10144 cat >conftest.$ac_ext <<_ACEOF
10147 cat confdefs.h >>conftest.$ac_ext
10148 cat >>conftest.$ac_ext <<_ACEOF
10149 /* end confdefs.h. */
10150 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10151 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10152 #define $ac_func innocuous_$ac_func
10154 /* System header to define __stub macros and hopefully few prototypes,
10155 which can conflict with char $ac_func (); below.
10156 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10157 <limits.h> exists even on freestanding compilers. */
10160 # include <limits.h>
10162 # include <assert.h>
10167 /* Override any GCC internal prototype to avoid an error.
10168 Use char because int might match the return type of a GCC
10169 builtin and then its argument prototype would still apply. */
10174 /* The GNU C library defines this for functions which it implements
10175 to always fail with ENOSYS. Some functions are actually named
10176 something starting with __ and the normal name is an alias. */
10177 #if defined __stub_$ac_func || defined __stub___$ac_func
10184 return $ac_func ();
10189 rm -f conftest.$ac_objext conftest$ac_exeext
10190 if { (ac_try="$ac_link"
10191 case "(($ac_try" in
10192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10193 *) ac_try_echo=$ac_try;;
10195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10196 (eval "$ac_link") 2>conftest.er1
10198 grep -v '^ *+' conftest.er1 >conftest.err
10200 cat conftest.err >&5
10201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202 (exit $ac_status); } &&
10203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10204 { (case "(($ac_try" in
10205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10206 *) ac_try_echo=$ac_try;;
10208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10209 (eval "$ac_try") 2>&5
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); }; } &&
10213 { ac_try='test -s conftest$ac_exeext'
10214 { (case "(($ac_try" in
10215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10216 *) ac_try_echo=$ac_try;;
10218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10219 (eval "$ac_try") 2>&5
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); }; }; then
10223 eval "$as_ac_var=yes"
10225 echo "$as_me: failed program was:" >&5
10226 sed 's/^/| /' conftest.$ac_ext >&5
10228 eval "$as_ac_var=no"
10231 rm -f core conftest.err conftest.$ac_objext \
10232 conftest$ac_exeext conftest.$ac_ext
10234 ac_res=`eval echo '${'$as_ac_var'}'`
10235 { echo "$as_me:$LINENO: result: $ac_res" >&5
10236 echo "${ECHO_T}$ac_res" >&6; }
10237 if test `eval echo '${'$as_ac_var'}'` = yes; then
10238 cat >>confdefs.h <<_ACEOF
10239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10245 LIBS="$lt_save_LIBS"
10248 ac_cpp='$CPP $CPPFLAGS'
10249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10255 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10256 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10257 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10258 echo $ECHO_N "(cached) $ECHO_C" >&6
10260 ac_cv_sys_symbol_underscore=no
10261 cat > conftest.$ac_ext <<EOF
10262 void nm_test_func(){}
10263 int main(){nm_test_func;return 0;}
10265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10266 (eval $ac_compile) 2>&5
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); }; then
10270 # Now try to grab the symbols.
10271 ac_nlist=conftest.nm
10272 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10273 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); } && test -s "$ac_nlist"; then
10277 # See whether the symbols have a leading underscore.
10278 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10279 ac_cv_sys_symbol_underscore=yes
10281 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10284 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10288 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10291 echo "configure: failed program was:" >&5
10297 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10298 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10301 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10302 if test x"$libltdl_cv_func_dlopen" = xyes ||
10303 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10304 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10305 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10306 if test "${libltdl_cv_need_uscore+set}" = set; then
10307 echo $ECHO_N "(cached) $ECHO_C" >&6
10309 libltdl_cv_need_uscore=unknown
10311 LIBS="$LIBS $LIBADD_DL"
10312 if test "$cross_compiling" = yes; then :
10313 libltdl_cv_need_uscore=cross
10315 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10316 lt_status=$lt_dlunknown
10317 cat > conftest.$ac_ext <<EOF
10318 #line 10318 "configure"
10319 #include "confdefs.h"
10328 # define LT_DLGLOBAL RTLD_GLOBAL
10331 # define LT_DLGLOBAL DL_GLOBAL
10333 # define LT_DLGLOBAL 0
10337 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10338 find out it does not work in some platform. */
10339 #ifndef LT_DLLAZY_OR_NOW
10341 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10344 # define LT_DLLAZY_OR_NOW DL_LAZY
10347 # define LT_DLLAZY_OR_NOW RTLD_NOW
10350 # define LT_DLLAZY_OR_NOW DL_NOW
10352 # define LT_DLLAZY_OR_NOW 0
10360 extern "C" void exit (int);
10363 void fnord() { int i=42;}
10366 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10367 int status = $lt_dlunknown;
10371 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10372 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10373 /* dlclose (self); */
10381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10382 (eval $ac_link) 2>&5
10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10386 (./conftest; exit; ) >&5 2>/dev/null
10388 case x$lt_status in
10389 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10390 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10391 x$lt_dlunknown|x*) ;;
10394 # compilation failed
10403 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10404 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10408 if test x"$libltdl_cv_need_uscore" = xyes; then
10410 cat >>confdefs.h <<\_ACEOF
10411 #define NEED_USCORE 1
10417 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10418 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10419 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10420 echo $ECHO_N "(cached) $ECHO_C" >&6
10422 # PORTME does your system automatically load deplibs for dlopen?
10423 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10424 # For now, we just catch OSes we know something about -- in the
10425 # future, we'll try test this programmatically.
10426 libltdl_cv_sys_dlopen_deplibs=unknown
10428 aix3*|aix4.1.*|aix4.2.*)
10429 # Unknown whether this is true for these versions of AIX, but
10430 # we want this `case' here to explicitly catch those versions.
10431 libltdl_cv_sys_dlopen_deplibs=unknown
10434 libltdl_cv_sys_dlopen_deplibs=yes
10437 # Assuming the user has installed a libdl from somewhere, this is true
10438 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10439 libltdl_cv_sys_dlopen_deplibs=yes
10441 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10442 # GNU and its variants, using gnu ld.so (Glibc)
10443 libltdl_cv_sys_dlopen_deplibs=yes
10446 libltdl_cv_sys_dlopen_deplibs=yes
10449 libltdl_cv_sys_dlopen_deplibs=yes
10451 irix[12345]*|irix6.[01]*)
10452 # Catch all versions of IRIX before 6.2, and indicate that we don't
10453 # know how it worked for any of those versions.
10454 libltdl_cv_sys_dlopen_deplibs=unknown
10457 # The case above catches anything before 6.2, and it's known that
10458 # at 6.2 and later dlopen does load deplibs.
10459 libltdl_cv_sys_dlopen_deplibs=yes
10462 libltdl_cv_sys_dlopen_deplibs=yes
10465 libltdl_cv_sys_dlopen_deplibs=yes
10468 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10469 # it did *not* use an RPATH in a shared library to find objects the
10470 # library depends on, so we explicitly say `no'.
10471 libltdl_cv_sys_dlopen_deplibs=no
10473 osf5.0|osf5.0a|osf5.1)
10474 # dlopen *does* load deplibs and with the right loader patch applied
10475 # it even uses RPATH in a shared library to search for shared objects
10476 # that the library depends on, but there's no easy way to know if that
10477 # patch is installed. Since this is the case, all we can really
10478 # say is unknown -- it depends on the patch being installed. If
10479 # it is, this changes to `yes'. Without it, it would be `no'.
10480 libltdl_cv_sys_dlopen_deplibs=unknown
10483 # the two cases above should catch all versions of osf <= 5.1. Read
10484 # the comments above for what we know about them.
10485 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10486 # is used to find them so we can finally say `yes'.
10487 libltdl_cv_sys_dlopen_deplibs=yes
10490 libltdl_cv_sys_dlopen_deplibs=yes
10492 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10493 libltdl_cv_sys_dlopen_deplibs=yes
10498 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10499 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10500 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10502 cat >>confdefs.h <<\_ACEOF
10503 #define LTDL_DLOPEN_DEPLIBS 1
10509 for ac_header in argz.h
10511 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10513 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10516 echo $ECHO_N "(cached) $ECHO_C" >&6
10518 ac_res=`eval echo '${'$as_ac_Header'}'`
10519 { echo "$as_me:$LINENO: result: $ac_res" >&5
10520 echo "${ECHO_T}$ac_res" >&6; }
10522 # Is the header compilable?
10523 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10524 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10525 cat >conftest.$ac_ext <<_ACEOF
10528 cat confdefs.h >>conftest.$ac_ext
10529 cat >>conftest.$ac_ext <<_ACEOF
10530 /* end confdefs.h. */
10531 $ac_includes_default
10532 #include <$ac_header>
10534 rm -f conftest.$ac_objext
10535 if { (ac_try="$ac_compile"
10536 case "(($ac_try" in
10537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10538 *) ac_try_echo=$ac_try;;
10540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10541 (eval "$ac_compile") 2>conftest.er1
10543 grep -v '^ *+' conftest.er1 >conftest.err
10545 cat conftest.err >&5
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); } &&
10548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10549 { (case "(($ac_try" in
10550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10551 *) ac_try_echo=$ac_try;;
10553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10554 (eval "$ac_try") 2>&5
10556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557 (exit $ac_status); }; } &&
10558 { ac_try='test -s conftest.$ac_objext'
10559 { (case "(($ac_try" in
10560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10561 *) ac_try_echo=$ac_try;;
10563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10564 (eval "$ac_try") 2>&5
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); }; }; then
10568 ac_header_compiler=yes
10570 echo "$as_me: failed program was:" >&5
10571 sed 's/^/| /' conftest.$ac_ext >&5
10573 ac_header_compiler=no
10576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10577 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10578 echo "${ECHO_T}$ac_header_compiler" >&6; }
10580 # Is the header present?
10581 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10582 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10583 cat >conftest.$ac_ext <<_ACEOF
10586 cat confdefs.h >>conftest.$ac_ext
10587 cat >>conftest.$ac_ext <<_ACEOF
10588 /* end confdefs.h. */
10589 #include <$ac_header>
10591 if { (ac_try="$ac_cpp conftest.$ac_ext"
10592 case "(($ac_try" in
10593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10594 *) ac_try_echo=$ac_try;;
10596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10597 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10599 grep -v '^ *+' conftest.er1 >conftest.err
10601 cat conftest.err >&5
10602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603 (exit $ac_status); } >/dev/null; then
10604 if test -s conftest.err; then
10605 ac_cpp_err=$ac_c_preproc_warn_flag
10606 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10613 if test -z "$ac_cpp_err"; then
10614 ac_header_preproc=yes
10616 echo "$as_me: failed program was:" >&5
10617 sed 's/^/| /' conftest.$ac_ext >&5
10619 ac_header_preproc=no
10622 rm -f conftest.err conftest.$ac_ext
10623 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10624 echo "${ECHO_T}$ac_header_preproc" >&6; }
10626 # So? What about this header?
10627 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10629 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10630 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10632 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10633 ac_header_preproc=yes
10636 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10637 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10638 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10639 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10640 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10641 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10642 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10643 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10645 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10646 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10647 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10649 ## ------------------------------------ ##
10650 ## Report this to http://llvm.org/bugs/ ##
10651 ## ------------------------------------ ##
10653 ) | sed "s/^/$as_me: WARNING: /" >&2
10656 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10657 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10659 echo $ECHO_N "(cached) $ECHO_C" >&6
10661 eval "$as_ac_Header=\$ac_header_preproc"
10663 ac_res=`eval echo '${'$as_ac_Header'}'`
10664 { echo "$as_me:$LINENO: result: $ac_res" >&5
10665 echo "${ECHO_T}$ac_res" >&6; }
10668 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10669 cat >>confdefs.h <<_ACEOF
10670 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10678 { echo "$as_me:$LINENO: checking for error_t" >&5
10679 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10680 if test "${ac_cv_type_error_t+set}" = set; then
10681 echo $ECHO_N "(cached) $ECHO_C" >&6
10683 cat >conftest.$ac_ext <<_ACEOF
10686 cat confdefs.h >>conftest.$ac_ext
10687 cat >>conftest.$ac_ext <<_ACEOF
10688 /* end confdefs.h. */
10693 typedef error_t ac__type_new_;
10697 if ((ac__type_new_ *) 0)
10699 if (sizeof (ac__type_new_))
10705 rm -f conftest.$ac_objext
10706 if { (ac_try="$ac_compile"
10707 case "(($ac_try" in
10708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10709 *) ac_try_echo=$ac_try;;
10711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10712 (eval "$ac_compile") 2>conftest.er1
10714 grep -v '^ *+' conftest.er1 >conftest.err
10716 cat conftest.err >&5
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); } &&
10719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10720 { (case "(($ac_try" in
10721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10722 *) ac_try_echo=$ac_try;;
10724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10725 (eval "$ac_try") 2>&5
10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 (exit $ac_status); }; } &&
10729 { ac_try='test -s conftest.$ac_objext'
10730 { (case "(($ac_try" in
10731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10732 *) ac_try_echo=$ac_try;;
10734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10735 (eval "$ac_try") 2>&5
10737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738 (exit $ac_status); }; }; then
10739 ac_cv_type_error_t=yes
10741 echo "$as_me: failed program was:" >&5
10742 sed 's/^/| /' conftest.$ac_ext >&5
10744 ac_cv_type_error_t=no
10747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10749 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10750 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10751 if test $ac_cv_type_error_t = yes; then
10753 cat >>confdefs.h <<_ACEOF
10754 #define HAVE_ERROR_T 1
10760 cat >>confdefs.h <<\_ACEOF
10761 #define error_t int
10772 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10774 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10775 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10776 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10777 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10778 echo $ECHO_N "(cached) $ECHO_C" >&6
10780 cat >conftest.$ac_ext <<_ACEOF
10783 cat confdefs.h >>conftest.$ac_ext
10784 cat >>conftest.$ac_ext <<_ACEOF
10785 /* end confdefs.h. */
10786 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10788 #define $ac_func innocuous_$ac_func
10790 /* System header to define __stub macros and hopefully few prototypes,
10791 which can conflict with char $ac_func (); below.
10792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10793 <limits.h> exists even on freestanding compilers. */
10796 # include <limits.h>
10798 # include <assert.h>
10803 /* Override any GCC internal prototype to avoid an error.
10804 Use char because int might match the return type of a GCC
10805 builtin and then its argument prototype would still apply. */
10810 /* The GNU C library defines this for functions which it implements
10811 to always fail with ENOSYS. Some functions are actually named
10812 something starting with __ and the normal name is an alias. */
10813 #if defined __stub_$ac_func || defined __stub___$ac_func
10820 return $ac_func ();
10825 rm -f conftest.$ac_objext conftest$ac_exeext
10826 if { (ac_try="$ac_link"
10827 case "(($ac_try" in
10828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10829 *) ac_try_echo=$ac_try;;
10831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10832 (eval "$ac_link") 2>conftest.er1
10834 grep -v '^ *+' conftest.er1 >conftest.err
10836 cat conftest.err >&5
10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838 (exit $ac_status); } &&
10839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10840 { (case "(($ac_try" in
10841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10842 *) ac_try_echo=$ac_try;;
10844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10845 (eval "$ac_try") 2>&5
10847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848 (exit $ac_status); }; } &&
10849 { ac_try='test -s conftest$ac_exeext'
10850 { (case "(($ac_try" in
10851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10852 *) ac_try_echo=$ac_try;;
10854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10855 (eval "$ac_try") 2>&5
10857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858 (exit $ac_status); }; }; then
10859 eval "$as_ac_var=yes"
10861 echo "$as_me: failed program was:" >&5
10862 sed 's/^/| /' conftest.$ac_ext >&5
10864 eval "$as_ac_var=no"
10867 rm -f core conftest.err conftest.$ac_objext \
10868 conftest$ac_exeext conftest.$ac_ext
10870 ac_res=`eval echo '${'$as_ac_var'}'`
10871 { echo "$as_me:$LINENO: result: $ac_res" >&5
10872 echo "${ECHO_T}$ac_res" >&6; }
10873 if test `eval echo '${'$as_ac_var'}'` = yes; then
10874 cat >>confdefs.h <<_ACEOF
10875 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10908 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10911 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10913 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10916 echo $ECHO_N "(cached) $ECHO_C" >&6
10918 ac_res=`eval echo '${'$as_ac_Header'}'`
10919 { echo "$as_me:$LINENO: result: $ac_res" >&5
10920 echo "${ECHO_T}$ac_res" >&6; }
10922 # Is the header compilable?
10923 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10924 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10925 cat >conftest.$ac_ext <<_ACEOF
10928 cat confdefs.h >>conftest.$ac_ext
10929 cat >>conftest.$ac_ext <<_ACEOF
10930 /* end confdefs.h. */
10931 $ac_includes_default
10932 #include <$ac_header>
10934 rm -f conftest.$ac_objext
10935 if { (ac_try="$ac_compile"
10936 case "(($ac_try" in
10937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10938 *) ac_try_echo=$ac_try;;
10940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10941 (eval "$ac_compile") 2>conftest.er1
10943 grep -v '^ *+' conftest.er1 >conftest.err
10945 cat conftest.err >&5
10946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947 (exit $ac_status); } &&
10948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10949 { (case "(($ac_try" in
10950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10951 *) ac_try_echo=$ac_try;;
10953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10954 (eval "$ac_try") 2>&5
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); }; } &&
10958 { ac_try='test -s conftest.$ac_objext'
10959 { (case "(($ac_try" in
10960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10961 *) ac_try_echo=$ac_try;;
10963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10964 (eval "$ac_try") 2>&5
10966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967 (exit $ac_status); }; }; then
10968 ac_header_compiler=yes
10970 echo "$as_me: failed program was:" >&5
10971 sed 's/^/| /' conftest.$ac_ext >&5
10973 ac_header_compiler=no
10976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10977 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10978 echo "${ECHO_T}$ac_header_compiler" >&6; }
10980 # Is the header present?
10981 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10982 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10983 cat >conftest.$ac_ext <<_ACEOF
10986 cat confdefs.h >>conftest.$ac_ext
10987 cat >>conftest.$ac_ext <<_ACEOF
10988 /* end confdefs.h. */
10989 #include <$ac_header>
10991 if { (ac_try="$ac_cpp conftest.$ac_ext"
10992 case "(($ac_try" in
10993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10994 *) ac_try_echo=$ac_try;;
10996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10997 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10999 grep -v '^ *+' conftest.er1 >conftest.err
11001 cat conftest.err >&5
11002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003 (exit $ac_status); } >/dev/null; then
11004 if test -s conftest.err; then
11005 ac_cpp_err=$ac_c_preproc_warn_flag
11006 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11013 if test -z "$ac_cpp_err"; then
11014 ac_header_preproc=yes
11016 echo "$as_me: failed program was:" >&5
11017 sed 's/^/| /' conftest.$ac_ext >&5
11019 ac_header_preproc=no
11022 rm -f conftest.err conftest.$ac_ext
11023 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11024 echo "${ECHO_T}$ac_header_preproc" >&6; }
11026 # So? What about this header?
11027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11029 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11030 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11032 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11033 ac_header_preproc=yes
11036 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11037 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11038 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11039 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11040 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11041 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11042 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11043 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11045 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11046 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11047 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11049 ## ------------------------------------ ##
11050 ## Report this to http://llvm.org/bugs/ ##
11051 ## ------------------------------------ ##
11053 ) | sed "s/^/$as_me: WARNING: /" >&2
11056 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11059 echo $ECHO_N "(cached) $ECHO_C" >&6
11061 eval "$as_ac_Header=\$ac_header_preproc"
11063 ac_res=`eval echo '${'$as_ac_Header'}'`
11064 { echo "$as_me:$LINENO: result: $ac_res" >&5
11065 echo "${ECHO_T}$ac_res" >&6; }
11068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11069 cat >>confdefs.h <<_ACEOF
11070 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11081 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11083 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11085 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11088 echo $ECHO_N "(cached) $ECHO_C" >&6
11090 ac_res=`eval echo '${'$as_ac_Header'}'`
11091 { echo "$as_me:$LINENO: result: $ac_res" >&5
11092 echo "${ECHO_T}$ac_res" >&6; }
11094 # Is the header compilable?
11095 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11096 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11097 cat >conftest.$ac_ext <<_ACEOF
11100 cat confdefs.h >>conftest.$ac_ext
11101 cat >>conftest.$ac_ext <<_ACEOF
11102 /* end confdefs.h. */
11103 $ac_includes_default
11104 #include <$ac_header>
11106 rm -f conftest.$ac_objext
11107 if { (ac_try="$ac_compile"
11108 case "(($ac_try" in
11109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11110 *) ac_try_echo=$ac_try;;
11112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11113 (eval "$ac_compile") 2>conftest.er1
11115 grep -v '^ *+' conftest.er1 >conftest.err
11117 cat conftest.err >&5
11118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119 (exit $ac_status); } &&
11120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11121 { (case "(($ac_try" in
11122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11123 *) ac_try_echo=$ac_try;;
11125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11126 (eval "$ac_try") 2>&5
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); }; } &&
11130 { ac_try='test -s conftest.$ac_objext'
11131 { (case "(($ac_try" in
11132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11133 *) ac_try_echo=$ac_try;;
11135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11136 (eval "$ac_try") 2>&5
11138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139 (exit $ac_status); }; }; then
11140 ac_header_compiler=yes
11142 echo "$as_me: failed program was:" >&5
11143 sed 's/^/| /' conftest.$ac_ext >&5
11145 ac_header_compiler=no
11148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11149 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11150 echo "${ECHO_T}$ac_header_compiler" >&6; }
11152 # Is the header present?
11153 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11154 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11155 cat >conftest.$ac_ext <<_ACEOF
11158 cat confdefs.h >>conftest.$ac_ext
11159 cat >>conftest.$ac_ext <<_ACEOF
11160 /* end confdefs.h. */
11161 #include <$ac_header>
11163 if { (ac_try="$ac_cpp conftest.$ac_ext"
11164 case "(($ac_try" in
11165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11166 *) ac_try_echo=$ac_try;;
11168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11169 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11171 grep -v '^ *+' conftest.er1 >conftest.err
11173 cat conftest.err >&5
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); } >/dev/null; then
11176 if test -s conftest.err; then
11177 ac_cpp_err=$ac_c_preproc_warn_flag
11178 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11185 if test -z "$ac_cpp_err"; then
11186 ac_header_preproc=yes
11188 echo "$as_me: failed program was:" >&5
11189 sed 's/^/| /' conftest.$ac_ext >&5
11191 ac_header_preproc=no
11194 rm -f conftest.err conftest.$ac_ext
11195 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11196 echo "${ECHO_T}$ac_header_preproc" >&6; }
11198 # So? What about this header?
11199 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11201 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11202 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11204 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11205 ac_header_preproc=yes
11208 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11209 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11210 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11211 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11212 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11213 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11214 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11215 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11217 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11218 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11219 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11221 ## ------------------------------------ ##
11222 ## Report this to http://llvm.org/bugs/ ##
11223 ## ------------------------------------ ##
11225 ) | sed "s/^/$as_me: WARNING: /" >&2
11228 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11231 echo $ECHO_N "(cached) $ECHO_C" >&6
11233 eval "$as_ac_Header=\$ac_header_preproc"
11235 ac_res=`eval echo '${'$as_ac_Header'}'`
11236 { echo "$as_me:$LINENO: result: $ac_res" >&5
11237 echo "${ECHO_T}$ac_res" >&6; }
11240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11241 cat >>confdefs.h <<_ACEOF
11242 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11251 for ac_header in string.h strings.h
11253 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11255 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11258 echo $ECHO_N "(cached) $ECHO_C" >&6
11260 ac_res=`eval echo '${'$as_ac_Header'}'`
11261 { echo "$as_me:$LINENO: result: $ac_res" >&5
11262 echo "${ECHO_T}$ac_res" >&6; }
11264 # Is the header compilable?
11265 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11266 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11267 cat >conftest.$ac_ext <<_ACEOF
11270 cat confdefs.h >>conftest.$ac_ext
11271 cat >>conftest.$ac_ext <<_ACEOF
11272 /* end confdefs.h. */
11273 $ac_includes_default
11274 #include <$ac_header>
11276 rm -f conftest.$ac_objext
11277 if { (ac_try="$ac_compile"
11278 case "(($ac_try" in
11279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11280 *) ac_try_echo=$ac_try;;
11282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11283 (eval "$ac_compile") 2>conftest.er1
11285 grep -v '^ *+' conftest.er1 >conftest.err
11287 cat conftest.err >&5
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); } &&
11290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11291 { (case "(($ac_try" in
11292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11293 *) ac_try_echo=$ac_try;;
11295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11296 (eval "$ac_try") 2>&5
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); }; } &&
11300 { ac_try='test -s conftest.$ac_objext'
11301 { (case "(($ac_try" in
11302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11303 *) ac_try_echo=$ac_try;;
11305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11306 (eval "$ac_try") 2>&5
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); }; }; then
11310 ac_header_compiler=yes
11312 echo "$as_me: failed program was:" >&5
11313 sed 's/^/| /' conftest.$ac_ext >&5
11315 ac_header_compiler=no
11318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11319 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11320 echo "${ECHO_T}$ac_header_compiler" >&6; }
11322 # Is the header present?
11323 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11324 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11325 cat >conftest.$ac_ext <<_ACEOF
11328 cat confdefs.h >>conftest.$ac_ext
11329 cat >>conftest.$ac_ext <<_ACEOF
11330 /* end confdefs.h. */
11331 #include <$ac_header>
11333 if { (ac_try="$ac_cpp conftest.$ac_ext"
11334 case "(($ac_try" in
11335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11336 *) ac_try_echo=$ac_try;;
11338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11339 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11341 grep -v '^ *+' conftest.er1 >conftest.err
11343 cat conftest.err >&5
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); } >/dev/null; then
11346 if test -s conftest.err; then
11347 ac_cpp_err=$ac_c_preproc_warn_flag
11348 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11355 if test -z "$ac_cpp_err"; then
11356 ac_header_preproc=yes
11358 echo "$as_me: failed program was:" >&5
11359 sed 's/^/| /' conftest.$ac_ext >&5
11361 ac_header_preproc=no
11364 rm -f conftest.err conftest.$ac_ext
11365 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11366 echo "${ECHO_T}$ac_header_preproc" >&6; }
11368 # So? What about this header?
11369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11371 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11372 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11373 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11374 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11375 ac_header_preproc=yes
11378 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11379 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11380 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11381 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11382 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11383 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11384 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11385 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11387 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11388 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11389 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11391 ## ------------------------------------ ##
11392 ## Report this to http://llvm.org/bugs/ ##
11393 ## ------------------------------------ ##
11395 ) | sed "s/^/$as_me: WARNING: /" >&2
11398 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11401 echo $ECHO_N "(cached) $ECHO_C" >&6
11403 eval "$as_ac_Header=\$ac_header_preproc"
11405 ac_res=`eval echo '${'$as_ac_Header'}'`
11406 { echo "$as_me:$LINENO: result: $ac_res" >&5
11407 echo "${ECHO_T}$ac_res" >&6; }
11410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11411 cat >>confdefs.h <<_ACEOF
11412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11422 for ac_func in strchr index
11424 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11425 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11426 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11427 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11428 echo $ECHO_N "(cached) $ECHO_C" >&6
11430 cat >conftest.$ac_ext <<_ACEOF
11433 cat confdefs.h >>conftest.$ac_ext
11434 cat >>conftest.$ac_ext <<_ACEOF
11435 /* end confdefs.h. */
11436 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11437 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11438 #define $ac_func innocuous_$ac_func
11440 /* System header to define __stub macros and hopefully few prototypes,
11441 which can conflict with char $ac_func (); below.
11442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11443 <limits.h> exists even on freestanding compilers. */
11446 # include <limits.h>
11448 # include <assert.h>
11453 /* Override any GCC internal prototype to avoid an error.
11454 Use char because int might match the return type of a GCC
11455 builtin and then its argument prototype would still apply. */
11460 /* The GNU C library defines this for functions which it implements
11461 to always fail with ENOSYS. Some functions are actually named
11462 something starting with __ and the normal name is an alias. */
11463 #if defined __stub_$ac_func || defined __stub___$ac_func
11470 return $ac_func ();
11475 rm -f conftest.$ac_objext conftest$ac_exeext
11476 if { (ac_try="$ac_link"
11477 case "(($ac_try" in
11478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11479 *) ac_try_echo=$ac_try;;
11481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11482 (eval "$ac_link") 2>conftest.er1
11484 grep -v '^ *+' conftest.er1 >conftest.err
11486 cat conftest.err >&5
11487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488 (exit $ac_status); } &&
11489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11490 { (case "(($ac_try" in
11491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11492 *) ac_try_echo=$ac_try;;
11494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11495 (eval "$ac_try") 2>&5
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); }; } &&
11499 { ac_try='test -s conftest$ac_exeext'
11500 { (case "(($ac_try" in
11501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11502 *) ac_try_echo=$ac_try;;
11504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11505 (eval "$ac_try") 2>&5
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); }; }; then
11509 eval "$as_ac_var=yes"
11511 echo "$as_me: failed program was:" >&5
11512 sed 's/^/| /' conftest.$ac_ext >&5
11514 eval "$as_ac_var=no"
11517 rm -f core conftest.err conftest.$ac_objext \
11518 conftest$ac_exeext conftest.$ac_ext
11520 ac_res=`eval echo '${'$as_ac_var'}'`
11521 { echo "$as_me:$LINENO: result: $ac_res" >&5
11522 echo "${ECHO_T}$ac_res" >&6; }
11523 if test `eval echo '${'$as_ac_var'}'` = yes; then
11524 cat >>confdefs.h <<_ACEOF
11525 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11533 for ac_func in strrchr rindex
11535 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11536 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11537 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11538 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11539 echo $ECHO_N "(cached) $ECHO_C" >&6
11541 cat >conftest.$ac_ext <<_ACEOF
11544 cat confdefs.h >>conftest.$ac_ext
11545 cat >>conftest.$ac_ext <<_ACEOF
11546 /* end confdefs.h. */
11547 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11548 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11549 #define $ac_func innocuous_$ac_func
11551 /* System header to define __stub macros and hopefully few prototypes,
11552 which can conflict with char $ac_func (); below.
11553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11554 <limits.h> exists even on freestanding compilers. */
11557 # include <limits.h>
11559 # include <assert.h>
11564 /* Override any GCC internal prototype to avoid an error.
11565 Use char because int might match the return type of a GCC
11566 builtin and then its argument prototype would still apply. */
11571 /* The GNU C library defines this for functions which it implements
11572 to always fail with ENOSYS. Some functions are actually named
11573 something starting with __ and the normal name is an alias. */
11574 #if defined __stub_$ac_func || defined __stub___$ac_func
11581 return $ac_func ();
11586 rm -f conftest.$ac_objext conftest$ac_exeext
11587 if { (ac_try="$ac_link"
11588 case "(($ac_try" in
11589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11590 *) ac_try_echo=$ac_try;;
11592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11593 (eval "$ac_link") 2>conftest.er1
11595 grep -v '^ *+' conftest.er1 >conftest.err
11597 cat conftest.err >&5
11598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599 (exit $ac_status); } &&
11600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11601 { (case "(($ac_try" in
11602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11603 *) ac_try_echo=$ac_try;;
11605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11606 (eval "$ac_try") 2>&5
11608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); }; } &&
11610 { ac_try='test -s conftest$ac_exeext'
11611 { (case "(($ac_try" in
11612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11613 *) ac_try_echo=$ac_try;;
11615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11616 (eval "$ac_try") 2>&5
11618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 (exit $ac_status); }; }; then
11620 eval "$as_ac_var=yes"
11622 echo "$as_me: failed program was:" >&5
11623 sed 's/^/| /' conftest.$ac_ext >&5
11625 eval "$as_ac_var=no"
11628 rm -f core conftest.err conftest.$ac_objext \
11629 conftest$ac_exeext conftest.$ac_ext
11631 ac_res=`eval echo '${'$as_ac_var'}'`
11632 { echo "$as_me:$LINENO: result: $ac_res" >&5
11633 echo "${ECHO_T}$ac_res" >&6; }
11634 if test `eval echo '${'$as_ac_var'}'` = yes; then
11635 cat >>confdefs.h <<_ACEOF
11636 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11644 for ac_func in memcpy bcopy
11646 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11647 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11648 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11649 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11650 echo $ECHO_N "(cached) $ECHO_C" >&6
11652 cat >conftest.$ac_ext <<_ACEOF
11655 cat confdefs.h >>conftest.$ac_ext
11656 cat >>conftest.$ac_ext <<_ACEOF
11657 /* end confdefs.h. */
11658 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11659 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11660 #define $ac_func innocuous_$ac_func
11662 /* System header to define __stub macros and hopefully few prototypes,
11663 which can conflict with char $ac_func (); below.
11664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11665 <limits.h> exists even on freestanding compilers. */
11668 # include <limits.h>
11670 # include <assert.h>
11675 /* Override any GCC internal prototype to avoid an error.
11676 Use char because int might match the return type of a GCC
11677 builtin and then its argument prototype would still apply. */
11682 /* The GNU C library defines this for functions which it implements
11683 to always fail with ENOSYS. Some functions are actually named
11684 something starting with __ and the normal name is an alias. */
11685 #if defined __stub_$ac_func || defined __stub___$ac_func
11692 return $ac_func ();
11697 rm -f conftest.$ac_objext conftest$ac_exeext
11698 if { (ac_try="$ac_link"
11699 case "(($ac_try" in
11700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11701 *) ac_try_echo=$ac_try;;
11703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11704 (eval "$ac_link") 2>conftest.er1
11706 grep -v '^ *+' conftest.er1 >conftest.err
11708 cat conftest.err >&5
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); } &&
11711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11712 { (case "(($ac_try" in
11713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11714 *) ac_try_echo=$ac_try;;
11716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11717 (eval "$ac_try") 2>&5
11719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720 (exit $ac_status); }; } &&
11721 { ac_try='test -s conftest$ac_exeext'
11722 { (case "(($ac_try" in
11723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11724 *) ac_try_echo=$ac_try;;
11726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11727 (eval "$ac_try") 2>&5
11729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730 (exit $ac_status); }; }; then
11731 eval "$as_ac_var=yes"
11733 echo "$as_me: failed program was:" >&5
11734 sed 's/^/| /' conftest.$ac_ext >&5
11736 eval "$as_ac_var=no"
11739 rm -f core conftest.err conftest.$ac_objext \
11740 conftest$ac_exeext conftest.$ac_ext
11742 ac_res=`eval echo '${'$as_ac_var'}'`
11743 { echo "$as_me:$LINENO: result: $ac_res" >&5
11744 echo "${ECHO_T}$ac_res" >&6; }
11745 if test `eval echo '${'$as_ac_var'}'` = yes; then
11746 cat >>confdefs.h <<_ACEOF
11747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11755 for ac_func in memmove strcmp
11757 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11758 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11759 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11760 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11761 echo $ECHO_N "(cached) $ECHO_C" >&6
11763 cat >conftest.$ac_ext <<_ACEOF
11766 cat confdefs.h >>conftest.$ac_ext
11767 cat >>conftest.$ac_ext <<_ACEOF
11768 /* end confdefs.h. */
11769 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11771 #define $ac_func innocuous_$ac_func
11773 /* System header to define __stub macros and hopefully few prototypes,
11774 which can conflict with char $ac_func (); below.
11775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11776 <limits.h> exists even on freestanding compilers. */
11779 # include <limits.h>
11781 # include <assert.h>
11786 /* Override any GCC internal prototype to avoid an error.
11787 Use char because int might match the return type of a GCC
11788 builtin and then its argument prototype would still apply. */
11793 /* The GNU C library defines this for functions which it implements
11794 to always fail with ENOSYS. Some functions are actually named
11795 something starting with __ and the normal name is an alias. */
11796 #if defined __stub_$ac_func || defined __stub___$ac_func
11803 return $ac_func ();
11808 rm -f conftest.$ac_objext conftest$ac_exeext
11809 if { (ac_try="$ac_link"
11810 case "(($ac_try" in
11811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11812 *) ac_try_echo=$ac_try;;
11814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11815 (eval "$ac_link") 2>conftest.er1
11817 grep -v '^ *+' conftest.er1 >conftest.err
11819 cat conftest.err >&5
11820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821 (exit $ac_status); } &&
11822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11823 { (case "(($ac_try" in
11824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11825 *) ac_try_echo=$ac_try;;
11827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11828 (eval "$ac_try") 2>&5
11830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831 (exit $ac_status); }; } &&
11832 { ac_try='test -s conftest$ac_exeext'
11833 { (case "(($ac_try" in
11834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11835 *) ac_try_echo=$ac_try;;
11837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11838 (eval "$ac_try") 2>&5
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); }; }; then
11842 eval "$as_ac_var=yes"
11844 echo "$as_me: failed program was:" >&5
11845 sed 's/^/| /' conftest.$ac_ext >&5
11847 eval "$as_ac_var=no"
11850 rm -f core conftest.err conftest.$ac_objext \
11851 conftest$ac_exeext conftest.$ac_ext
11853 ac_res=`eval echo '${'$as_ac_var'}'`
11854 { echo "$as_me:$LINENO: result: $ac_res" >&5
11855 echo "${ECHO_T}$ac_res" >&6; }
11856 if test `eval echo '${'$as_ac_var'}'` = yes; then
11857 cat >>confdefs.h <<_ACEOF
11858 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11867 for ac_func in closedir opendir readdir
11869 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11870 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11871 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11872 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11873 echo $ECHO_N "(cached) $ECHO_C" >&6
11875 cat >conftest.$ac_ext <<_ACEOF
11878 cat confdefs.h >>conftest.$ac_ext
11879 cat >>conftest.$ac_ext <<_ACEOF
11880 /* end confdefs.h. */
11881 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11883 #define $ac_func innocuous_$ac_func
11885 /* System header to define __stub macros and hopefully few prototypes,
11886 which can conflict with char $ac_func (); below.
11887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11888 <limits.h> exists even on freestanding compilers. */
11891 # include <limits.h>
11893 # include <assert.h>
11898 /* Override any GCC internal prototype to avoid an error.
11899 Use char because int might match the return type of a GCC
11900 builtin and then its argument prototype would still apply. */
11905 /* The GNU C library defines this for functions which it implements
11906 to always fail with ENOSYS. Some functions are actually named
11907 something starting with __ and the normal name is an alias. */
11908 #if defined __stub_$ac_func || defined __stub___$ac_func
11915 return $ac_func ();
11920 rm -f conftest.$ac_objext conftest$ac_exeext
11921 if { (ac_try="$ac_link"
11922 case "(($ac_try" in
11923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11924 *) ac_try_echo=$ac_try;;
11926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11927 (eval "$ac_link") 2>conftest.er1
11929 grep -v '^ *+' conftest.er1 >conftest.err
11931 cat conftest.err >&5
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); } &&
11934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11935 { (case "(($ac_try" in
11936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11937 *) ac_try_echo=$ac_try;;
11939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11940 (eval "$ac_try") 2>&5
11942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943 (exit $ac_status); }; } &&
11944 { ac_try='test -s conftest$ac_exeext'
11945 { (case "(($ac_try" in
11946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11947 *) ac_try_echo=$ac_try;;
11949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11950 (eval "$ac_try") 2>&5
11952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); }; }; then
11954 eval "$as_ac_var=yes"
11956 echo "$as_me: failed program was:" >&5
11957 sed 's/^/| /' conftest.$ac_ext >&5
11959 eval "$as_ac_var=no"
11962 rm -f core conftest.err conftest.$ac_objext \
11963 conftest$ac_exeext conftest.$ac_ext
11965 ac_res=`eval echo '${'$as_ac_var'}'`
11966 { echo "$as_me:$LINENO: result: $ac_res" >&5
11967 echo "${ECHO_T}$ac_res" >&6; }
11968 if test `eval echo '${'$as_ac_var'}'` = yes; then
11969 cat >>confdefs.h <<_ACEOF
11970 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11978 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11979 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11992 if test "$GCC" != "yes" && test "$ICC" != "yes"
11994 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11995 echo "$as_me: error: gcc|icc required but not found" >&2;}
11996 { (exit 1); exit 1; }; }
11999 if test "$GXX" != "yes" && test "$IXX" != "yes"
12001 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12002 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12003 { (exit 1); exit 1; }; }
12006 if test "$GCC" = "yes"
12008 cat >conftest.$ac_ext <<_ACEOF
12009 #if !defined(__GNUC__) || __GNUC__ < 3
12010 #error Unsupported GCC version
12014 rm -f conftest.$ac_objext
12015 if { (ac_try="$ac_compile"
12016 case "(($ac_try" in
12017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12018 *) ac_try_echo=$ac_try;;
12020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12021 (eval "$ac_compile") 2>conftest.er1
12023 grep -v '^ *+' conftest.er1 >conftest.err
12025 cat conftest.err >&5
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); } &&
12028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12029 { (case "(($ac_try" in
12030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12031 *) ac_try_echo=$ac_try;;
12033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12034 (eval "$ac_try") 2>&5
12036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037 (exit $ac_status); }; } &&
12038 { ac_try='test -s conftest.$ac_objext'
12039 { (case "(($ac_try" in
12040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12041 *) ac_try_echo=$ac_try;;
12043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12044 (eval "$ac_try") 2>&5
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); }; }; then
12050 echo "$as_me: failed program was:" >&5
12051 sed 's/^/| /' conftest.$ac_ext >&5
12053 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12054 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12055 { (exit 1); exit 1; }; }
12058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12061 if test -z "$llvm_cv_gnu_make_command"
12063 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12064 echo "$as_me: error: GNU Make required but not found" >&2;}
12065 { (exit 1); exit 1; }; }
12068 { echo "$as_me:$LINENO: result: ok" >&5
12069 echo "${ECHO_T}ok" >&6; }
12071 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12072 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12073 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12075 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12077 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12079 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12080 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12084 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12085 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12086 if test "${ac_cv_lib_m_sin+set}" = set; then
12087 echo $ECHO_N "(cached) $ECHO_C" >&6
12089 ac_check_lib_save_LIBS=$LIBS
12091 cat >conftest.$ac_ext <<_ACEOF
12094 cat confdefs.h >>conftest.$ac_ext
12095 cat >>conftest.$ac_ext <<_ACEOF
12096 /* end confdefs.h. */
12098 /* Override any GCC internal prototype to avoid an error.
12099 Use char because int might match the return type of a GCC
12100 builtin and then its argument prototype would still apply. */
12113 rm -f conftest.$ac_objext conftest$ac_exeext
12114 if { (ac_try="$ac_link"
12115 case "(($ac_try" in
12116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12117 *) ac_try_echo=$ac_try;;
12119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12120 (eval "$ac_link") 2>conftest.er1
12122 grep -v '^ *+' conftest.er1 >conftest.err
12124 cat conftest.err >&5
12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); } &&
12127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12128 { (case "(($ac_try" in
12129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12130 *) ac_try_echo=$ac_try;;
12132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12133 (eval "$ac_try") 2>&5
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); }; } &&
12137 { ac_try='test -s conftest$ac_exeext'
12138 { (case "(($ac_try" in
12139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12140 *) ac_try_echo=$ac_try;;
12142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12143 (eval "$ac_try") 2>&5
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); }; }; then
12147 ac_cv_lib_m_sin=yes
12149 echo "$as_me: failed program was:" >&5
12150 sed 's/^/| /' conftest.$ac_ext >&5
12155 rm -f core conftest.err conftest.$ac_objext \
12156 conftest$ac_exeext conftest.$ac_ext
12157 LIBS=$ac_check_lib_save_LIBS
12159 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12160 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12161 if test $ac_cv_lib_m_sin = yes; then
12162 cat >>confdefs.h <<_ACEOF
12163 #define HAVE_LIBM 1
12170 if test "$llvm_cv_os_type" = "MingW" ; then
12172 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12173 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12174 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12175 echo $ECHO_N "(cached) $ECHO_C" >&6
12177 ac_check_lib_save_LIBS=$LIBS
12178 LIBS="-limagehlp $LIBS"
12179 cat >conftest.$ac_ext <<_ACEOF
12182 cat confdefs.h >>conftest.$ac_ext
12183 cat >>conftest.$ac_ext <<_ACEOF
12184 /* end confdefs.h. */
12195 rm -f conftest.$ac_objext conftest$ac_exeext
12196 if { (ac_try="$ac_link"
12197 case "(($ac_try" in
12198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12199 *) ac_try_echo=$ac_try;;
12201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12202 (eval "$ac_link") 2>conftest.er1
12204 grep -v '^ *+' conftest.er1 >conftest.err
12206 cat conftest.err >&5
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); } &&
12209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12210 { (case "(($ac_try" in
12211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12212 *) ac_try_echo=$ac_try;;
12214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12215 (eval "$ac_try") 2>&5
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); }; } &&
12219 { ac_try='test -s conftest$ac_exeext'
12220 { (case "(($ac_try" in
12221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12222 *) ac_try_echo=$ac_try;;
12224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12225 (eval "$ac_try") 2>&5
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); }; }; then
12229 ac_cv_lib_imagehlp_main=yes
12231 echo "$as_me: failed program was:" >&5
12232 sed 's/^/| /' conftest.$ac_ext >&5
12234 ac_cv_lib_imagehlp_main=no
12237 rm -f core conftest.err conftest.$ac_objext \
12238 conftest$ac_exeext conftest.$ac_ext
12239 LIBS=$ac_check_lib_save_LIBS
12241 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12242 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12243 if test $ac_cv_lib_imagehlp_main = yes; then
12244 cat >>confdefs.h <<_ACEOF
12245 #define HAVE_LIBIMAGEHLP 1
12248 LIBS="-limagehlp $LIBS"
12253 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12254 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12255 if test "${ac_cv_lib_psapi_main+set}" = set; then
12256 echo $ECHO_N "(cached) $ECHO_C" >&6
12258 ac_check_lib_save_LIBS=$LIBS
12259 LIBS="-lpsapi $LIBS"
12260 cat >conftest.$ac_ext <<_ACEOF
12263 cat confdefs.h >>conftest.$ac_ext
12264 cat >>conftest.$ac_ext <<_ACEOF
12265 /* end confdefs.h. */
12276 rm -f conftest.$ac_objext conftest$ac_exeext
12277 if { (ac_try="$ac_link"
12278 case "(($ac_try" in
12279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12280 *) ac_try_echo=$ac_try;;
12282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12283 (eval "$ac_link") 2>conftest.er1
12285 grep -v '^ *+' conftest.er1 >conftest.err
12287 cat conftest.err >&5
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); } &&
12290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12291 { (case "(($ac_try" in
12292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12293 *) ac_try_echo=$ac_try;;
12295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12296 (eval "$ac_try") 2>&5
12298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); }; } &&
12300 { ac_try='test -s conftest$ac_exeext'
12301 { (case "(($ac_try" in
12302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12303 *) ac_try_echo=$ac_try;;
12305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12306 (eval "$ac_try") 2>&5
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); }; }; then
12310 ac_cv_lib_psapi_main=yes
12312 echo "$as_me: failed program was:" >&5
12313 sed 's/^/| /' conftest.$ac_ext >&5
12315 ac_cv_lib_psapi_main=no
12318 rm -f core conftest.err conftest.$ac_objext \
12319 conftest$ac_exeext conftest.$ac_ext
12320 LIBS=$ac_check_lib_save_LIBS
12322 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12323 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12324 if test $ac_cv_lib_psapi_main = yes; then
12325 cat >>confdefs.h <<_ACEOF
12326 #define HAVE_LIBPSAPI 1
12329 LIBS="-lpsapi $LIBS"
12335 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12336 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12337 if test "${ac_cv_search_dlopen+set}" = set; then
12338 echo $ECHO_N "(cached) $ECHO_C" >&6
12340 ac_func_search_save_LIBS=$LIBS
12341 cat >conftest.$ac_ext <<_ACEOF
12344 cat confdefs.h >>conftest.$ac_ext
12345 cat >>conftest.$ac_ext <<_ACEOF
12346 /* end confdefs.h. */
12348 /* Override any GCC internal prototype to avoid an error.
12349 Use char because int might match the return type of a GCC
12350 builtin and then its argument prototype would still apply. */
12363 for ac_lib in '' dl; do
12364 if test -z "$ac_lib"; then
12365 ac_res="none required"
12368 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12370 rm -f conftest.$ac_objext conftest$ac_exeext
12371 if { (ac_try="$ac_link"
12372 case "(($ac_try" in
12373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12374 *) ac_try_echo=$ac_try;;
12376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12377 (eval "$ac_link") 2>conftest.er1
12379 grep -v '^ *+' conftest.er1 >conftest.err
12381 cat conftest.err >&5
12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383 (exit $ac_status); } &&
12384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12385 { (case "(($ac_try" in
12386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12387 *) ac_try_echo=$ac_try;;
12389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12390 (eval "$ac_try") 2>&5
12392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393 (exit $ac_status); }; } &&
12394 { ac_try='test -s conftest$ac_exeext'
12395 { (case "(($ac_try" in
12396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12397 *) ac_try_echo=$ac_try;;
12399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12400 (eval "$ac_try") 2>&5
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); }; }; then
12404 ac_cv_search_dlopen=$ac_res
12406 echo "$as_me: failed program was:" >&5
12407 sed 's/^/| /' conftest.$ac_ext >&5
12412 rm -f core conftest.err conftest.$ac_objext \
12414 if test "${ac_cv_search_dlopen+set}" = set; then
12418 if test "${ac_cv_search_dlopen+set}" = set; then
12421 ac_cv_search_dlopen=no
12423 rm conftest.$ac_ext
12424 LIBS=$ac_func_search_save_LIBS
12426 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12427 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12428 ac_res=$ac_cv_search_dlopen
12429 if test "$ac_res" != no; then
12430 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12432 cat >>confdefs.h <<\_ACEOF
12433 #define HAVE_DLOPEN 1
12437 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12438 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12442 if test "$llvm_cv_enable_libffi" = "yes" ; then
12443 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12444 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12445 if test "${ac_cv_search_ffi_call+set}" = set; then
12446 echo $ECHO_N "(cached) $ECHO_C" >&6
12448 ac_func_search_save_LIBS=$LIBS
12449 cat >conftest.$ac_ext <<_ACEOF
12452 cat confdefs.h >>conftest.$ac_ext
12453 cat >>conftest.$ac_ext <<_ACEOF
12454 /* end confdefs.h. */
12456 /* Override any GCC internal prototype to avoid an error.
12457 Use char because int might match the return type of a GCC
12458 builtin and then its argument prototype would still apply. */
12466 return ffi_call ();
12471 for ac_lib in '' ffi; do
12472 if test -z "$ac_lib"; then
12473 ac_res="none required"
12476 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12478 rm -f conftest.$ac_objext conftest$ac_exeext
12479 if { (ac_try="$ac_link"
12480 case "(($ac_try" in
12481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12482 *) ac_try_echo=$ac_try;;
12484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12485 (eval "$ac_link") 2>conftest.er1
12487 grep -v '^ *+' conftest.er1 >conftest.err
12489 cat conftest.err >&5
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491 (exit $ac_status); } &&
12492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12493 { (case "(($ac_try" in
12494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12495 *) ac_try_echo=$ac_try;;
12497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12498 (eval "$ac_try") 2>&5
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); }; } &&
12502 { ac_try='test -s conftest$ac_exeext'
12503 { (case "(($ac_try" in
12504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12505 *) ac_try_echo=$ac_try;;
12507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12508 (eval "$ac_try") 2>&5
12510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511 (exit $ac_status); }; }; then
12512 ac_cv_search_ffi_call=$ac_res
12514 echo "$as_me: failed program was:" >&5
12515 sed 's/^/| /' conftest.$ac_ext >&5
12520 rm -f core conftest.err conftest.$ac_objext \
12522 if test "${ac_cv_search_ffi_call+set}" = set; then
12526 if test "${ac_cv_search_ffi_call+set}" = set; then
12529 ac_cv_search_ffi_call=no
12531 rm conftest.$ac_ext
12532 LIBS=$ac_func_search_save_LIBS
12534 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12535 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12536 ac_res=$ac_cv_search_ffi_call
12537 if test "$ac_res" != no; then
12538 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12540 cat >>confdefs.h <<\_ACEOF
12541 #define HAVE_FFI_CALL 1
12545 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12546 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12547 { (exit 1); exit 1; }; }
12552 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12553 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12554 if test "${ac_cv_search_mallinfo+set}" = set; then
12555 echo $ECHO_N "(cached) $ECHO_C" >&6
12557 ac_func_search_save_LIBS=$LIBS
12558 cat >conftest.$ac_ext <<_ACEOF
12561 cat confdefs.h >>conftest.$ac_ext
12562 cat >>conftest.$ac_ext <<_ACEOF
12563 /* end confdefs.h. */
12565 /* Override any GCC internal prototype to avoid an error.
12566 Use char because int might match the return type of a GCC
12567 builtin and then its argument prototype would still apply. */
12575 return mallinfo ();
12580 for ac_lib in '' malloc; do
12581 if test -z "$ac_lib"; then
12582 ac_res="none required"
12585 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12587 rm -f conftest.$ac_objext conftest$ac_exeext
12588 if { (ac_try="$ac_link"
12589 case "(($ac_try" in
12590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12591 *) ac_try_echo=$ac_try;;
12593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12594 (eval "$ac_link") 2>conftest.er1
12596 grep -v '^ *+' conftest.er1 >conftest.err
12598 cat conftest.err >&5
12599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600 (exit $ac_status); } &&
12601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12602 { (case "(($ac_try" in
12603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12604 *) ac_try_echo=$ac_try;;
12606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12607 (eval "$ac_try") 2>&5
12609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); }; } &&
12611 { ac_try='test -s conftest$ac_exeext'
12612 { (case "(($ac_try" in
12613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12614 *) ac_try_echo=$ac_try;;
12616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12617 (eval "$ac_try") 2>&5
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); }; }; then
12621 ac_cv_search_mallinfo=$ac_res
12623 echo "$as_me: failed program was:" >&5
12624 sed 's/^/| /' conftest.$ac_ext >&5
12629 rm -f core conftest.err conftest.$ac_objext \
12631 if test "${ac_cv_search_mallinfo+set}" = set; then
12635 if test "${ac_cv_search_mallinfo+set}" = set; then
12638 ac_cv_search_mallinfo=no
12640 rm conftest.$ac_ext
12641 LIBS=$ac_func_search_save_LIBS
12643 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12644 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12645 ac_res=$ac_cv_search_mallinfo
12646 if test "$ac_res" != no; then
12647 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12649 cat >>confdefs.h <<\_ACEOF
12650 #define HAVE_MALLINFO 1
12656 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12658 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12659 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12660 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12661 echo $ECHO_N "(cached) $ECHO_C" >&6
12663 ac_check_lib_save_LIBS=$LIBS
12664 LIBS="-lpthread $LIBS"
12665 cat >conftest.$ac_ext <<_ACEOF
12668 cat confdefs.h >>conftest.$ac_ext
12669 cat >>conftest.$ac_ext <<_ACEOF
12670 /* end confdefs.h. */
12672 /* Override any GCC internal prototype to avoid an error.
12673 Use char because int might match the return type of a GCC
12674 builtin and then its argument prototype would still apply. */
12678 char pthread_mutex_init ();
12682 return pthread_mutex_init ();
12687 rm -f conftest.$ac_objext conftest$ac_exeext
12688 if { (ac_try="$ac_link"
12689 case "(($ac_try" in
12690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12691 *) ac_try_echo=$ac_try;;
12693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12694 (eval "$ac_link") 2>conftest.er1
12696 grep -v '^ *+' conftest.er1 >conftest.err
12698 cat conftest.err >&5
12699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700 (exit $ac_status); } &&
12701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12702 { (case "(($ac_try" in
12703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12704 *) ac_try_echo=$ac_try;;
12706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12707 (eval "$ac_try") 2>&5
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); }; } &&
12711 { ac_try='test -s conftest$ac_exeext'
12712 { (case "(($ac_try" in
12713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12714 *) ac_try_echo=$ac_try;;
12716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12717 (eval "$ac_try") 2>&5
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); }; }; then
12721 ac_cv_lib_pthread_pthread_mutex_init=yes
12723 echo "$as_me: failed program was:" >&5
12724 sed 's/^/| /' conftest.$ac_ext >&5
12726 ac_cv_lib_pthread_pthread_mutex_init=no
12729 rm -f core conftest.err conftest.$ac_objext \
12730 conftest$ac_exeext conftest.$ac_ext
12731 LIBS=$ac_check_lib_save_LIBS
12733 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12734 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12735 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12736 cat >>confdefs.h <<_ACEOF
12737 #define HAVE_LIBPTHREAD 1
12740 LIBS="-lpthread $LIBS"
12744 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12745 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12746 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12747 echo $ECHO_N "(cached) $ECHO_C" >&6
12749 ac_func_search_save_LIBS=$LIBS
12750 cat >conftest.$ac_ext <<_ACEOF
12753 cat confdefs.h >>conftest.$ac_ext
12754 cat >>conftest.$ac_ext <<_ACEOF
12755 /* end confdefs.h. */
12757 /* Override any GCC internal prototype to avoid an error.
12758 Use char because int might match the return type of a GCC
12759 builtin and then its argument prototype would still apply. */
12763 char pthread_mutex_lock ();
12767 return pthread_mutex_lock ();
12772 for ac_lib in '' pthread; do
12773 if test -z "$ac_lib"; then
12774 ac_res="none required"
12777 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12779 rm -f conftest.$ac_objext conftest$ac_exeext
12780 if { (ac_try="$ac_link"
12781 case "(($ac_try" in
12782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12783 *) ac_try_echo=$ac_try;;
12785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12786 (eval "$ac_link") 2>conftest.er1
12788 grep -v '^ *+' conftest.er1 >conftest.err
12790 cat conftest.err >&5
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); } &&
12793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12794 { (case "(($ac_try" in
12795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12796 *) ac_try_echo=$ac_try;;
12798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12799 (eval "$ac_try") 2>&5
12801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802 (exit $ac_status); }; } &&
12803 { ac_try='test -s conftest$ac_exeext'
12804 { (case "(($ac_try" in
12805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12806 *) ac_try_echo=$ac_try;;
12808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12809 (eval "$ac_try") 2>&5
12811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 (exit $ac_status); }; }; then
12813 ac_cv_search_pthread_mutex_lock=$ac_res
12815 echo "$as_me: failed program was:" >&5
12816 sed 's/^/| /' conftest.$ac_ext >&5
12821 rm -f core conftest.err conftest.$ac_objext \
12823 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12827 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12830 ac_cv_search_pthread_mutex_lock=no
12832 rm conftest.$ac_ext
12833 LIBS=$ac_func_search_save_LIBS
12835 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12836 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12837 ac_res=$ac_cv_search_pthread_mutex_lock
12838 if test "$ac_res" != no; then
12839 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12841 cat >>confdefs.h <<\_ACEOF
12842 #define HAVE_PTHREAD_MUTEX_LOCK 1
12847 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12848 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12849 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12850 echo $ECHO_N "(cached) $ECHO_C" >&6
12852 ac_func_search_save_LIBS=$LIBS
12853 cat >conftest.$ac_ext <<_ACEOF
12856 cat confdefs.h >>conftest.$ac_ext
12857 cat >>conftest.$ac_ext <<_ACEOF
12858 /* end confdefs.h. */
12860 /* Override any GCC internal prototype to avoid an error.
12861 Use char because int might match the return type of a GCC
12862 builtin and then its argument prototype would still apply. */
12866 char pthread_rwlock_init ();
12870 return pthread_rwlock_init ();
12875 for ac_lib in '' pthread; do
12876 if test -z "$ac_lib"; then
12877 ac_res="none required"
12880 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12882 rm -f conftest.$ac_objext conftest$ac_exeext
12883 if { (ac_try="$ac_link"
12884 case "(($ac_try" in
12885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12886 *) ac_try_echo=$ac_try;;
12888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12889 (eval "$ac_link") 2>conftest.er1
12891 grep -v '^ *+' conftest.er1 >conftest.err
12893 cat conftest.err >&5
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); } &&
12896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12897 { (case "(($ac_try" in
12898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12899 *) ac_try_echo=$ac_try;;
12901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12902 (eval "$ac_try") 2>&5
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); }; } &&
12906 { ac_try='test -s conftest$ac_exeext'
12907 { (case "(($ac_try" in
12908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12909 *) ac_try_echo=$ac_try;;
12911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12912 (eval "$ac_try") 2>&5
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); }; }; then
12916 ac_cv_search_pthread_rwlock_init=$ac_res
12918 echo "$as_me: failed program was:" >&5
12919 sed 's/^/| /' conftest.$ac_ext >&5
12924 rm -f core conftest.err conftest.$ac_objext \
12926 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12930 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12933 ac_cv_search_pthread_rwlock_init=no
12935 rm conftest.$ac_ext
12936 LIBS=$ac_func_search_save_LIBS
12938 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12939 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12940 ac_res=$ac_cv_search_pthread_rwlock_init
12941 if test "$ac_res" != no; then
12942 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12944 cat >>confdefs.h <<\_ACEOF
12945 #define HAVE_PTHREAD_RWLOCK_INIT 1
12950 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12951 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12952 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12953 echo $ECHO_N "(cached) $ECHO_C" >&6
12955 ac_func_search_save_LIBS=$LIBS
12956 cat >conftest.$ac_ext <<_ACEOF
12959 cat confdefs.h >>conftest.$ac_ext
12960 cat >>conftest.$ac_ext <<_ACEOF
12961 /* end confdefs.h. */
12963 /* Override any GCC internal prototype to avoid an error.
12964 Use char because int might match the return type of a GCC
12965 builtin and then its argument prototype would still apply. */
12969 char pthread_getspecific ();
12973 return pthread_getspecific ();
12978 for ac_lib in '' pthread; do
12979 if test -z "$ac_lib"; then
12980 ac_res="none required"
12983 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12985 rm -f conftest.$ac_objext conftest$ac_exeext
12986 if { (ac_try="$ac_link"
12987 case "(($ac_try" in
12988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12989 *) ac_try_echo=$ac_try;;
12991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12992 (eval "$ac_link") 2>conftest.er1
12994 grep -v '^ *+' conftest.er1 >conftest.err
12996 cat conftest.err >&5
12997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998 (exit $ac_status); } &&
12999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13000 { (case "(($ac_try" in
13001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13002 *) ac_try_echo=$ac_try;;
13004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13005 (eval "$ac_try") 2>&5
13007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008 (exit $ac_status); }; } &&
13009 { ac_try='test -s conftest$ac_exeext'
13010 { (case "(($ac_try" in
13011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13012 *) ac_try_echo=$ac_try;;
13014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13015 (eval "$ac_try") 2>&5
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); }; }; then
13019 ac_cv_search_pthread_getspecific=$ac_res
13021 echo "$as_me: failed program was:" >&5
13022 sed 's/^/| /' conftest.$ac_ext >&5
13027 rm -f core conftest.err conftest.$ac_objext \
13029 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13033 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13036 ac_cv_search_pthread_getspecific=no
13038 rm conftest.$ac_ext
13039 LIBS=$ac_func_search_save_LIBS
13041 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13042 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13043 ac_res=$ac_cv_search_pthread_getspecific
13044 if test "$ac_res" != no; then
13045 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13047 cat >>confdefs.h <<\_ACEOF
13048 #define HAVE_PTHREAD_GETSPECIFIC 1
13056 # Check whether --with-udis86 was given.
13057 if test "${with_udis86+set}" = set; then
13058 withval=$with_udis86;
13063 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13066 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13067 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13068 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13069 echo $ECHO_N "(cached) $ECHO_C" >&6
13071 ac_check_lib_save_LIBS=$LIBS
13072 LIBS="-ludis86 $LIBS"
13073 cat >conftest.$ac_ext <<_ACEOF
13076 cat confdefs.h >>conftest.$ac_ext
13077 cat >>conftest.$ac_ext <<_ACEOF
13078 /* end confdefs.h. */
13080 /* Override any GCC internal prototype to avoid an error.
13081 Use char because int might match the return type of a GCC
13082 builtin and then its argument prototype would still apply. */
13095 rm -f conftest.$ac_objext conftest$ac_exeext
13096 if { (ac_try="$ac_link"
13097 case "(($ac_try" in
13098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13099 *) ac_try_echo=$ac_try;;
13101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13102 (eval "$ac_link") 2>conftest.er1
13104 grep -v '^ *+' conftest.er1 >conftest.err
13106 cat conftest.err >&5
13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); } &&
13109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13110 { (case "(($ac_try" in
13111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13112 *) ac_try_echo=$ac_try;;
13114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13115 (eval "$ac_try") 2>&5
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); }; } &&
13119 { ac_try='test -s conftest$ac_exeext'
13120 { (case "(($ac_try" in
13121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13122 *) ac_try_echo=$ac_try;;
13124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13125 (eval "$ac_try") 2>&5
13127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128 (exit $ac_status); }; }; then
13129 ac_cv_lib_udis86_ud_init=yes
13131 echo "$as_me: failed program was:" >&5
13132 sed 's/^/| /' conftest.$ac_ext >&5
13134 ac_cv_lib_udis86_ud_init=no
13137 rm -f core conftest.err conftest.$ac_objext \
13138 conftest$ac_exeext conftest.$ac_ext
13139 LIBS=$ac_check_lib_save_LIBS
13141 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13142 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13143 if test $ac_cv_lib_udis86_ud_init = yes; then
13144 cat >>confdefs.h <<_ACEOF
13145 #define HAVE_LIBUDIS86 1
13148 LIBS="-ludis86 $LIBS"
13152 echo "Error! You need to have libudis86 around."
13164 cat >>confdefs.h <<_ACEOF
13165 #define USE_UDIS86 $USE_UDIS86
13170 # Check whether --with-oprofile was given.
13171 if test "${with_oprofile+set}" = set; then
13172 withval=$with_oprofile;
13176 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13177 no) llvm_cv_oppath=
13180 *) llvm_cv_oppath="${withval}/lib/oprofile"
13181 CPPFLAGS="-I${withval}/include";;
13183 case $llvm_cv_os_type in
13185 if test -n "$llvm_cv_oppath" ; then
13186 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13187 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13188 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13189 if test "${ac_cv_search_bfd_init+set}" = set; then
13190 echo $ECHO_N "(cached) $ECHO_C" >&6
13192 ac_func_search_save_LIBS=$LIBS
13193 cat >conftest.$ac_ext <<_ACEOF
13196 cat confdefs.h >>conftest.$ac_ext
13197 cat >>conftest.$ac_ext <<_ACEOF
13198 /* end confdefs.h. */
13200 /* Override any GCC internal prototype to avoid an error.
13201 Use char because int might match the return type of a GCC
13202 builtin and then its argument prototype would still apply. */
13210 return bfd_init ();
13215 for ac_lib in '' bfd; do
13216 if test -z "$ac_lib"; then
13217 ac_res="none required"
13220 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13222 rm -f conftest.$ac_objext conftest$ac_exeext
13223 if { (ac_try="$ac_link"
13224 case "(($ac_try" in
13225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13226 *) ac_try_echo=$ac_try;;
13228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13229 (eval "$ac_link") 2>conftest.er1
13231 grep -v '^ *+' conftest.er1 >conftest.err
13233 cat conftest.err >&5
13234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235 (exit $ac_status); } &&
13236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13237 { (case "(($ac_try" in
13238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13239 *) ac_try_echo=$ac_try;;
13241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13242 (eval "$ac_try") 2>&5
13244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245 (exit $ac_status); }; } &&
13246 { ac_try='test -s conftest$ac_exeext'
13247 { (case "(($ac_try" in
13248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13249 *) ac_try_echo=$ac_try;;
13251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13252 (eval "$ac_try") 2>&5
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); }; }; then
13256 ac_cv_search_bfd_init=$ac_res
13258 echo "$as_me: failed program was:" >&5
13259 sed 's/^/| /' conftest.$ac_ext >&5
13264 rm -f core conftest.err conftest.$ac_objext \
13266 if test "${ac_cv_search_bfd_init+set}" = set; then
13270 if test "${ac_cv_search_bfd_init+set}" = set; then
13273 ac_cv_search_bfd_init=no
13275 rm conftest.$ac_ext
13276 LIBS=$ac_func_search_save_LIBS
13278 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13279 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13280 ac_res=$ac_cv_search_bfd_init
13281 if test "$ac_res" != no; then
13282 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13286 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13287 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13288 if test "${ac_cv_search_op_open_agent+set}" = set; then
13289 echo $ECHO_N "(cached) $ECHO_C" >&6
13291 ac_func_search_save_LIBS=$LIBS
13292 cat >conftest.$ac_ext <<_ACEOF
13295 cat confdefs.h >>conftest.$ac_ext
13296 cat >>conftest.$ac_ext <<_ACEOF
13297 /* end confdefs.h. */
13299 /* Override any GCC internal prototype to avoid an error.
13300 Use char because int might match the return type of a GCC
13301 builtin and then its argument prototype would still apply. */
13305 char op_open_agent ();
13309 return op_open_agent ();
13314 for ac_lib in '' opagent; do
13315 if test -z "$ac_lib"; then
13316 ac_res="none required"
13319 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13321 rm -f conftest.$ac_objext conftest$ac_exeext
13322 if { (ac_try="$ac_link"
13323 case "(($ac_try" in
13324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13325 *) ac_try_echo=$ac_try;;
13327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13328 (eval "$ac_link") 2>conftest.er1
13330 grep -v '^ *+' conftest.er1 >conftest.err
13332 cat conftest.err >&5
13333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334 (exit $ac_status); } &&
13335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13336 { (case "(($ac_try" in
13337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13338 *) ac_try_echo=$ac_try;;
13340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13341 (eval "$ac_try") 2>&5
13343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344 (exit $ac_status); }; } &&
13345 { ac_try='test -s conftest$ac_exeext'
13346 { (case "(($ac_try" in
13347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13348 *) ac_try_echo=$ac_try;;
13350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13351 (eval "$ac_try") 2>&5
13353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354 (exit $ac_status); }; }; then
13355 ac_cv_search_op_open_agent=$ac_res
13357 echo "$as_me: failed program was:" >&5
13358 sed 's/^/| /' conftest.$ac_ext >&5
13363 rm -f core conftest.err conftest.$ac_objext \
13365 if test "${ac_cv_search_op_open_agent+set}" = set; then
13369 if test "${ac_cv_search_op_open_agent+set}" = set; then
13372 ac_cv_search_op_open_agent=no
13374 rm conftest.$ac_ext
13375 LIBS=$ac_func_search_save_LIBS
13377 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13378 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13379 ac_res=$ac_cv_search_op_open_agent
13380 if test "$ac_res" != no; then
13381 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13385 echo "Error! You need to have libopagent around."
13390 if test "${ac_cv_header_opagent_h+set}" = set; then
13391 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13392 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13393 if test "${ac_cv_header_opagent_h+set}" = set; then
13394 echo $ECHO_N "(cached) $ECHO_C" >&6
13396 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13397 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13399 # Is the header compilable?
13400 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13401 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13402 cat >conftest.$ac_ext <<_ACEOF
13405 cat confdefs.h >>conftest.$ac_ext
13406 cat >>conftest.$ac_ext <<_ACEOF
13407 /* end confdefs.h. */
13408 $ac_includes_default
13409 #include <opagent.h>
13411 rm -f conftest.$ac_objext
13412 if { (ac_try="$ac_compile"
13413 case "(($ac_try" in
13414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13415 *) ac_try_echo=$ac_try;;
13417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13418 (eval "$ac_compile") 2>conftest.er1
13420 grep -v '^ *+' conftest.er1 >conftest.err
13422 cat conftest.err >&5
13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424 (exit $ac_status); } &&
13425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13426 { (case "(($ac_try" in
13427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13428 *) ac_try_echo=$ac_try;;
13430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13431 (eval "$ac_try") 2>&5
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); }; } &&
13435 { ac_try='test -s conftest.$ac_objext'
13436 { (case "(($ac_try" in
13437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13438 *) ac_try_echo=$ac_try;;
13440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13441 (eval "$ac_try") 2>&5
13443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); }; }; then
13445 ac_header_compiler=yes
13447 echo "$as_me: failed program was:" >&5
13448 sed 's/^/| /' conftest.$ac_ext >&5
13450 ac_header_compiler=no
13453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13454 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13455 echo "${ECHO_T}$ac_header_compiler" >&6; }
13457 # Is the header present?
13458 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13459 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13460 cat >conftest.$ac_ext <<_ACEOF
13463 cat confdefs.h >>conftest.$ac_ext
13464 cat >>conftest.$ac_ext <<_ACEOF
13465 /* end confdefs.h. */
13466 #include <opagent.h>
13468 if { (ac_try="$ac_cpp conftest.$ac_ext"
13469 case "(($ac_try" in
13470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13471 *) ac_try_echo=$ac_try;;
13473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13476 grep -v '^ *+' conftest.er1 >conftest.err
13478 cat conftest.err >&5
13479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480 (exit $ac_status); } >/dev/null; then
13481 if test -s conftest.err; then
13482 ac_cpp_err=$ac_c_preproc_warn_flag
13483 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13490 if test -z "$ac_cpp_err"; then
13491 ac_header_preproc=yes
13493 echo "$as_me: failed program was:" >&5
13494 sed 's/^/| /' conftest.$ac_ext >&5
13496 ac_header_preproc=no
13499 rm -f conftest.err conftest.$ac_ext
13500 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13501 echo "${ECHO_T}$ac_header_preproc" >&6; }
13503 # So? What about this header?
13504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13506 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13507 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13508 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13509 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13510 ac_header_preproc=yes
13513 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13514 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13515 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13516 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13517 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13518 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13519 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13520 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13521 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13522 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13523 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13524 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13526 ## ------------------------------------ ##
13527 ## Report this to http://llvm.org/bugs/ ##
13528 ## ------------------------------------ ##
13530 ) | sed "s/^/$as_me: WARNING: /" >&2
13533 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13534 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13535 if test "${ac_cv_header_opagent_h+set}" = set; then
13536 echo $ECHO_N "(cached) $ECHO_C" >&6
13538 ac_cv_header_opagent_h=$ac_header_preproc
13540 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13541 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13544 if test $ac_cv_header_opagent_h = yes; then
13548 echo "Error! You need to have opagent.h around."
13556 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13557 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13558 { (exit 1); exit 1; }; } ;;
13569 cat >>confdefs.h <<_ACEOF
13570 #define LLVM_USE_OPROFILE $USE_OPROFILE
13575 # Check whether --with-intel-jitevents was given.
13576 if test "${with_intel_jitevents+set}" = set; then
13577 withval=$with_intel_jitevents;
13579 yes) USE_INTEL_JITEVENTS=1
13581 no) USE_INTEL_JITEVENTS=0
13583 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13584 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13585 { (exit 1); exit 1; }; };;
13588 case $llvm_cv_os_type in
13589 Linux|Win32|Cygwin|MingW) ;;
13590 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13591 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13592 { (exit 1); exit 1; }; };;
13595 case "$llvm_cv_target_arch" in
13597 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13598 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13599 { (exit 1); exit 1; }; };;
13604 USE_INTEL_JITEVENTS=0
13610 cat >>confdefs.h <<_ACEOF
13611 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13615 for ac_prog in xml2-config
13617 # Extract the first word of "$ac_prog", so it can be a program name with args.
13618 set dummy $ac_prog; ac_word=$2
13619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13621 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13622 echo $ECHO_N "(cached) $ECHO_C" >&6
13624 if test -n "$XML2CONFIG"; then
13625 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13628 for as_dir in $PATH
13631 test -z "$as_dir" && as_dir=.
13632 for ac_exec_ext in '' $ac_executable_extensions; do
13633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13634 ac_cv_prog_XML2CONFIG="$ac_prog"
13635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13644 XML2CONFIG=$ac_cv_prog_XML2CONFIG
13645 if test -n "$XML2CONFIG"; then
13646 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13647 echo "${ECHO_T}$XML2CONFIG" >&6; }
13649 { echo "$as_me:$LINENO: result: no" >&5
13650 echo "${ECHO_T}no" >&6; }
13654 test -n "$XML2CONFIG" && break
13658 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13659 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13660 if test "x$XML2CONFIG" = "x"; then
13661 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13662 echo "${ECHO_T}xml2-config not found" >&6; }
13664 LIBXML2_INC=`$XML2CONFIG --cflags`
13665 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13666 echo "${ECHO_T}$LIBXML2_INC" >&6; }
13667 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13668 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13669 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13670 echo $ECHO_N "(cached) $ECHO_C" >&6
13672 ac_check_lib_save_LIBS=$LIBS
13673 LIBS="-lxml2 $LIBS"
13674 cat >conftest.$ac_ext <<_ACEOF
13677 cat confdefs.h >>conftest.$ac_ext
13678 cat >>conftest.$ac_ext <<_ACEOF
13679 /* end confdefs.h. */
13681 /* Override any GCC internal prototype to avoid an error.
13682 Use char because int might match the return type of a GCC
13683 builtin and then its argument prototype would still apply. */
13687 char xmlReadFile ();
13691 return xmlReadFile ();
13696 rm -f conftest.$ac_objext conftest$ac_exeext
13697 if { (ac_try="$ac_link"
13698 case "(($ac_try" in
13699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13700 *) ac_try_echo=$ac_try;;
13702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13703 (eval "$ac_link") 2>conftest.er1
13705 grep -v '^ *+' conftest.er1 >conftest.err
13707 cat conftest.err >&5
13708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709 (exit $ac_status); } &&
13710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13711 { (case "(($ac_try" in
13712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13713 *) ac_try_echo=$ac_try;;
13715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13716 (eval "$ac_try") 2>&5
13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 (exit $ac_status); }; } &&
13720 { ac_try='test -s conftest$ac_exeext'
13721 { (case "(($ac_try" in
13722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13723 *) ac_try_echo=$ac_try;;
13725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13726 (eval "$ac_try") 2>&5
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); }; }; then
13730 ac_cv_lib_xml2_xmlReadFile=yes
13732 echo "$as_me: failed program was:" >&5
13733 sed 's/^/| /' conftest.$ac_ext >&5
13735 ac_cv_lib_xml2_xmlReadFile=no
13738 rm -f core conftest.err conftest.$ac_objext \
13739 conftest$ac_exeext conftest.$ac_ext
13740 LIBS=$ac_check_lib_save_LIBS
13742 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
13743 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
13744 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
13746 cat >>confdefs.h <<\_ACEOF
13747 #define CLANG_HAVE_LIBXML 1
13750 LIBXML2_LIBS="-lxml2"
13763 ac_header_dirent=no
13764 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13765 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13766 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13767 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13769 echo $ECHO_N "(cached) $ECHO_C" >&6
13771 cat >conftest.$ac_ext <<_ACEOF
13774 cat confdefs.h >>conftest.$ac_ext
13775 cat >>conftest.$ac_ext <<_ACEOF
13776 /* end confdefs.h. */
13777 #include <sys/types.h>
13789 rm -f conftest.$ac_objext
13790 if { (ac_try="$ac_compile"
13791 case "(($ac_try" in
13792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13793 *) ac_try_echo=$ac_try;;
13795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13796 (eval "$ac_compile") 2>conftest.er1
13798 grep -v '^ *+' conftest.er1 >conftest.err
13800 cat conftest.err >&5
13801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802 (exit $ac_status); } &&
13803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13804 { (case "(($ac_try" in
13805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13806 *) ac_try_echo=$ac_try;;
13808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13809 (eval "$ac_try") 2>&5
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); }; } &&
13813 { ac_try='test -s conftest.$ac_objext'
13814 { (case "(($ac_try" in
13815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13816 *) ac_try_echo=$ac_try;;
13818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13819 (eval "$ac_try") 2>&5
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); }; }; then
13823 eval "$as_ac_Header=yes"
13825 echo "$as_me: failed program was:" >&5
13826 sed 's/^/| /' conftest.$ac_ext >&5
13828 eval "$as_ac_Header=no"
13831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13833 ac_res=`eval echo '${'$as_ac_Header'}'`
13834 { echo "$as_me:$LINENO: result: $ac_res" >&5
13835 echo "${ECHO_T}$ac_res" >&6; }
13836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13837 cat >>confdefs.h <<_ACEOF
13838 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13841 ac_header_dirent=$ac_hdr; break
13845 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13846 if test $ac_header_dirent = dirent.h; then
13847 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13848 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13849 if test "${ac_cv_search_opendir+set}" = set; then
13850 echo $ECHO_N "(cached) $ECHO_C" >&6
13852 ac_func_search_save_LIBS=$LIBS
13853 cat >conftest.$ac_ext <<_ACEOF
13856 cat confdefs.h >>conftest.$ac_ext
13857 cat >>conftest.$ac_ext <<_ACEOF
13858 /* end confdefs.h. */
13860 /* Override any GCC internal prototype to avoid an error.
13861 Use char because int might match the return type of a GCC
13862 builtin and then its argument prototype would still apply. */
13875 for ac_lib in '' dir; do
13876 if test -z "$ac_lib"; then
13877 ac_res="none required"
13880 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13882 rm -f conftest.$ac_objext conftest$ac_exeext
13883 if { (ac_try="$ac_link"
13884 case "(($ac_try" in
13885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13886 *) ac_try_echo=$ac_try;;
13888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13889 (eval "$ac_link") 2>conftest.er1
13891 grep -v '^ *+' conftest.er1 >conftest.err
13893 cat conftest.err >&5
13894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); } &&
13896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13897 { (case "(($ac_try" in
13898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13899 *) ac_try_echo=$ac_try;;
13901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13902 (eval "$ac_try") 2>&5
13904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905 (exit $ac_status); }; } &&
13906 { ac_try='test -s conftest$ac_exeext'
13907 { (case "(($ac_try" in
13908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13909 *) ac_try_echo=$ac_try;;
13911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13912 (eval "$ac_try") 2>&5
13914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915 (exit $ac_status); }; }; then
13916 ac_cv_search_opendir=$ac_res
13918 echo "$as_me: failed program was:" >&5
13919 sed 's/^/| /' conftest.$ac_ext >&5
13924 rm -f core conftest.err conftest.$ac_objext \
13926 if test "${ac_cv_search_opendir+set}" = set; then
13930 if test "${ac_cv_search_opendir+set}" = set; then
13933 ac_cv_search_opendir=no
13935 rm conftest.$ac_ext
13936 LIBS=$ac_func_search_save_LIBS
13938 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13939 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13940 ac_res=$ac_cv_search_opendir
13941 if test "$ac_res" != no; then
13942 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13947 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13948 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13949 if test "${ac_cv_search_opendir+set}" = set; then
13950 echo $ECHO_N "(cached) $ECHO_C" >&6
13952 ac_func_search_save_LIBS=$LIBS
13953 cat >conftest.$ac_ext <<_ACEOF
13956 cat confdefs.h >>conftest.$ac_ext
13957 cat >>conftest.$ac_ext <<_ACEOF
13958 /* end confdefs.h. */
13960 /* Override any GCC internal prototype to avoid an error.
13961 Use char because int might match the return type of a GCC
13962 builtin and then its argument prototype would still apply. */
13975 for ac_lib in '' x; do
13976 if test -z "$ac_lib"; then
13977 ac_res="none required"
13980 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13982 rm -f conftest.$ac_objext conftest$ac_exeext
13983 if { (ac_try="$ac_link"
13984 case "(($ac_try" in
13985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13986 *) ac_try_echo=$ac_try;;
13988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13989 (eval "$ac_link") 2>conftest.er1
13991 grep -v '^ *+' conftest.er1 >conftest.err
13993 cat conftest.err >&5
13994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995 (exit $ac_status); } &&
13996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13997 { (case "(($ac_try" in
13998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13999 *) ac_try_echo=$ac_try;;
14001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14002 (eval "$ac_try") 2>&5
14004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005 (exit $ac_status); }; } &&
14006 { ac_try='test -s conftest$ac_exeext'
14007 { (case "(($ac_try" in
14008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14009 *) ac_try_echo=$ac_try;;
14011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14012 (eval "$ac_try") 2>&5
14014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015 (exit $ac_status); }; }; then
14016 ac_cv_search_opendir=$ac_res
14018 echo "$as_me: failed program was:" >&5
14019 sed 's/^/| /' conftest.$ac_ext >&5
14024 rm -f core conftest.err conftest.$ac_objext \
14026 if test "${ac_cv_search_opendir+set}" = set; then
14030 if test "${ac_cv_search_opendir+set}" = set; then
14033 ac_cv_search_opendir=no
14035 rm conftest.$ac_ext
14036 LIBS=$ac_func_search_save_LIBS
14038 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14039 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14040 ac_res=$ac_cv_search_opendir
14041 if test "$ac_res" != no; then
14042 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14048 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14049 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14050 if test "${ac_cv_header_mmap_anon+set}" = set; then
14051 echo $ECHO_N "(cached) $ECHO_C" >&6
14054 ac_cpp='$CPP $CPPFLAGS'
14055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14059 cat >conftest.$ac_ext <<_ACEOF
14062 cat confdefs.h >>conftest.$ac_ext
14063 cat >>conftest.$ac_ext <<_ACEOF
14064 /* end confdefs.h. */
14065 #include <sys/mman.h>
14066 #include <unistd.h>
14071 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14076 rm -f conftest.$ac_objext
14077 if { (ac_try="$ac_compile"
14078 case "(($ac_try" in
14079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14080 *) ac_try_echo=$ac_try;;
14082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14083 (eval "$ac_compile") 2>conftest.er1
14085 grep -v '^ *+' conftest.er1 >conftest.err
14087 cat conftest.err >&5
14088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089 (exit $ac_status); } &&
14090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14091 { (case "(($ac_try" in
14092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14093 *) ac_try_echo=$ac_try;;
14095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14096 (eval "$ac_try") 2>&5
14098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099 (exit $ac_status); }; } &&
14100 { ac_try='test -s conftest.$ac_objext'
14101 { (case "(($ac_try" in
14102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14103 *) ac_try_echo=$ac_try;;
14105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14106 (eval "$ac_try") 2>&5
14108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 (exit $ac_status); }; }; then
14110 ac_cv_header_mmap_anon=yes
14112 echo "$as_me: failed program was:" >&5
14113 sed 's/^/| /' conftest.$ac_ext >&5
14115 ac_cv_header_mmap_anon=no
14118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14120 ac_cpp='$CPP $CPPFLAGS'
14121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14127 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14128 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14129 if test "$ac_cv_header_mmap_anon" = yes; then
14131 cat >>confdefs.h <<\_ACEOF
14132 #define HAVE_MMAP_ANONYMOUS 1
14137 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14138 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14139 if test "${ac_cv_header_stat_broken+set}" = set; then
14140 echo $ECHO_N "(cached) $ECHO_C" >&6
14142 cat >conftest.$ac_ext <<_ACEOF
14145 cat confdefs.h >>conftest.$ac_ext
14146 cat >>conftest.$ac_ext <<_ACEOF
14147 /* end confdefs.h. */
14148 #include <sys/types.h>
14149 #include <sys/stat.h>
14151 #if defined S_ISBLK && defined S_IFDIR
14152 # if S_ISBLK (S_IFDIR)
14157 #if defined S_ISBLK && defined S_IFCHR
14158 # if S_ISBLK (S_IFCHR)
14163 #if defined S_ISLNK && defined S_IFREG
14164 # if S_ISLNK (S_IFREG)
14169 #if defined S_ISSOCK && defined S_IFREG
14170 # if S_ISSOCK (S_IFREG)
14176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14177 $EGREP "You lose" >/dev/null 2>&1; then
14178 ac_cv_header_stat_broken=yes
14180 ac_cv_header_stat_broken=no
14185 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14186 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14187 if test $ac_cv_header_stat_broken = yes; then
14189 cat >>confdefs.h <<\_ACEOF
14190 #define STAT_MACROS_BROKEN 1
14195 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14196 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14197 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14198 echo $ECHO_N "(cached) $ECHO_C" >&6
14200 cat >conftest.$ac_ext <<_ACEOF
14203 cat confdefs.h >>conftest.$ac_ext
14204 cat >>conftest.$ac_ext <<_ACEOF
14205 /* end confdefs.h. */
14206 #include <sys/types.h>
14207 #include <sys/wait.h>
14208 #ifndef WEXITSTATUS
14209 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14212 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14220 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14225 rm -f conftest.$ac_objext
14226 if { (ac_try="$ac_compile"
14227 case "(($ac_try" in
14228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14229 *) ac_try_echo=$ac_try;;
14231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14232 (eval "$ac_compile") 2>conftest.er1
14234 grep -v '^ *+' conftest.er1 >conftest.err
14236 cat conftest.err >&5
14237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238 (exit $ac_status); } &&
14239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14240 { (case "(($ac_try" in
14241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14242 *) ac_try_echo=$ac_try;;
14244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14245 (eval "$ac_try") 2>&5
14247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248 (exit $ac_status); }; } &&
14249 { ac_try='test -s conftest.$ac_objext'
14250 { (case "(($ac_try" in
14251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14252 *) ac_try_echo=$ac_try;;
14254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14255 (eval "$ac_try") 2>&5
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); }; }; then
14259 ac_cv_header_sys_wait_h=yes
14261 echo "$as_me: failed program was:" >&5
14262 sed 's/^/| /' conftest.$ac_ext >&5
14264 ac_cv_header_sys_wait_h=no
14267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14269 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14270 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14271 if test $ac_cv_header_sys_wait_h = yes; then
14273 cat >>confdefs.h <<\_ACEOF
14274 #define HAVE_SYS_WAIT_H 1
14279 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14280 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14281 if test "${ac_cv_header_time+set}" = set; then
14282 echo $ECHO_N "(cached) $ECHO_C" >&6
14284 cat >conftest.$ac_ext <<_ACEOF
14287 cat confdefs.h >>conftest.$ac_ext
14288 cat >>conftest.$ac_ext <<_ACEOF
14289 /* end confdefs.h. */
14290 #include <sys/types.h>
14291 #include <sys/time.h>
14297 if ((struct tm *) 0)
14303 rm -f conftest.$ac_objext
14304 if { (ac_try="$ac_compile"
14305 case "(($ac_try" in
14306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14307 *) ac_try_echo=$ac_try;;
14309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14310 (eval "$ac_compile") 2>conftest.er1
14312 grep -v '^ *+' conftest.er1 >conftest.err
14314 cat conftest.err >&5
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); } &&
14317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14318 { (case "(($ac_try" in
14319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14320 *) ac_try_echo=$ac_try;;
14322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14323 (eval "$ac_try") 2>&5
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); }; } &&
14327 { ac_try='test -s conftest.$ac_objext'
14328 { (case "(($ac_try" in
14329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14330 *) ac_try_echo=$ac_try;;
14332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14333 (eval "$ac_try") 2>&5
14335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336 (exit $ac_status); }; }; then
14337 ac_cv_header_time=yes
14339 echo "$as_me: failed program was:" >&5
14340 sed 's/^/| /' conftest.$ac_ext >&5
14342 ac_cv_header_time=no
14345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14347 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14348 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14349 if test $ac_cv_header_time = yes; then
14351 cat >>confdefs.h <<\_ACEOF
14352 #define TIME_WITH_SYS_TIME 1
14364 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14366 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14368 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14371 echo $ECHO_N "(cached) $ECHO_C" >&6
14373 ac_res=`eval echo '${'$as_ac_Header'}'`
14374 { echo "$as_me:$LINENO: result: $ac_res" >&5
14375 echo "${ECHO_T}$ac_res" >&6; }
14377 # Is the header compilable?
14378 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14379 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14380 cat >conftest.$ac_ext <<_ACEOF
14383 cat confdefs.h >>conftest.$ac_ext
14384 cat >>conftest.$ac_ext <<_ACEOF
14385 /* end confdefs.h. */
14386 $ac_includes_default
14387 #include <$ac_header>
14389 rm -f conftest.$ac_objext
14390 if { (ac_try="$ac_compile"
14391 case "(($ac_try" in
14392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14393 *) ac_try_echo=$ac_try;;
14395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14396 (eval "$ac_compile") 2>conftest.er1
14398 grep -v '^ *+' conftest.er1 >conftest.err
14400 cat conftest.err >&5
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); } &&
14403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14404 { (case "(($ac_try" in
14405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14406 *) ac_try_echo=$ac_try;;
14408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14409 (eval "$ac_try") 2>&5
14411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412 (exit $ac_status); }; } &&
14413 { ac_try='test -s conftest.$ac_objext'
14414 { (case "(($ac_try" in
14415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14416 *) ac_try_echo=$ac_try;;
14418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14419 (eval "$ac_try") 2>&5
14421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422 (exit $ac_status); }; }; then
14423 ac_header_compiler=yes
14425 echo "$as_me: failed program was:" >&5
14426 sed 's/^/| /' conftest.$ac_ext >&5
14428 ac_header_compiler=no
14431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14432 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14433 echo "${ECHO_T}$ac_header_compiler" >&6; }
14435 # Is the header present?
14436 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14437 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14438 cat >conftest.$ac_ext <<_ACEOF
14441 cat confdefs.h >>conftest.$ac_ext
14442 cat >>conftest.$ac_ext <<_ACEOF
14443 /* end confdefs.h. */
14444 #include <$ac_header>
14446 if { (ac_try="$ac_cpp conftest.$ac_ext"
14447 case "(($ac_try" in
14448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14449 *) ac_try_echo=$ac_try;;
14451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14452 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14454 grep -v '^ *+' conftest.er1 >conftest.err
14456 cat conftest.err >&5
14457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458 (exit $ac_status); } >/dev/null; then
14459 if test -s conftest.err; then
14460 ac_cpp_err=$ac_c_preproc_warn_flag
14461 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14468 if test -z "$ac_cpp_err"; then
14469 ac_header_preproc=yes
14471 echo "$as_me: failed program was:" >&5
14472 sed 's/^/| /' conftest.$ac_ext >&5
14474 ac_header_preproc=no
14477 rm -f conftest.err conftest.$ac_ext
14478 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14479 echo "${ECHO_T}$ac_header_preproc" >&6; }
14481 # So? What about this header?
14482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14484 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14485 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14487 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14488 ac_header_preproc=yes
14491 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14492 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14493 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14494 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14495 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14496 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14497 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14498 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14500 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14501 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14502 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14504 ## ------------------------------------ ##
14505 ## Report this to http://llvm.org/bugs/ ##
14506 ## ------------------------------------ ##
14508 ) | sed "s/^/$as_me: WARNING: /" >&2
14511 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14514 echo $ECHO_N "(cached) $ECHO_C" >&6
14516 eval "$as_ac_Header=\$ac_header_preproc"
14518 ac_res=`eval echo '${'$as_ac_Header'}'`
14519 { echo "$as_me:$LINENO: result: $ac_res" >&5
14520 echo "${ECHO_T}$ac_res" >&6; }
14523 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14524 cat >>confdefs.h <<_ACEOF
14525 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14538 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14540 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14542 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14545 echo $ECHO_N "(cached) $ECHO_C" >&6
14547 ac_res=`eval echo '${'$as_ac_Header'}'`
14548 { echo "$as_me:$LINENO: result: $ac_res" >&5
14549 echo "${ECHO_T}$ac_res" >&6; }
14551 # Is the header compilable?
14552 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14553 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14554 cat >conftest.$ac_ext <<_ACEOF
14557 cat confdefs.h >>conftest.$ac_ext
14558 cat >>conftest.$ac_ext <<_ACEOF
14559 /* end confdefs.h. */
14560 $ac_includes_default
14561 #include <$ac_header>
14563 rm -f conftest.$ac_objext
14564 if { (ac_try="$ac_compile"
14565 case "(($ac_try" in
14566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14567 *) ac_try_echo=$ac_try;;
14569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14570 (eval "$ac_compile") 2>conftest.er1
14572 grep -v '^ *+' conftest.er1 >conftest.err
14574 cat conftest.err >&5
14575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); } &&
14577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14578 { (case "(($ac_try" in
14579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14580 *) ac_try_echo=$ac_try;;
14582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14583 (eval "$ac_try") 2>&5
14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 (exit $ac_status); }; } &&
14587 { ac_try='test -s conftest.$ac_objext'
14588 { (case "(($ac_try" in
14589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14590 *) ac_try_echo=$ac_try;;
14592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14593 (eval "$ac_try") 2>&5
14595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); }; }; then
14597 ac_header_compiler=yes
14599 echo "$as_me: failed program was:" >&5
14600 sed 's/^/| /' conftest.$ac_ext >&5
14602 ac_header_compiler=no
14605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14606 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14607 echo "${ECHO_T}$ac_header_compiler" >&6; }
14609 # Is the header present?
14610 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14611 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14612 cat >conftest.$ac_ext <<_ACEOF
14615 cat confdefs.h >>conftest.$ac_ext
14616 cat >>conftest.$ac_ext <<_ACEOF
14617 /* end confdefs.h. */
14618 #include <$ac_header>
14620 if { (ac_try="$ac_cpp conftest.$ac_ext"
14621 case "(($ac_try" in
14622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14623 *) ac_try_echo=$ac_try;;
14625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14626 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14628 grep -v '^ *+' conftest.er1 >conftest.err
14630 cat conftest.err >&5
14631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632 (exit $ac_status); } >/dev/null; then
14633 if test -s conftest.err; then
14634 ac_cpp_err=$ac_c_preproc_warn_flag
14635 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14642 if test -z "$ac_cpp_err"; then
14643 ac_header_preproc=yes
14645 echo "$as_me: failed program was:" >&5
14646 sed 's/^/| /' conftest.$ac_ext >&5
14648 ac_header_preproc=no
14651 rm -f conftest.err conftest.$ac_ext
14652 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14653 echo "${ECHO_T}$ac_header_preproc" >&6; }
14655 # So? What about this header?
14656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14658 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14659 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14661 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14662 ac_header_preproc=yes
14665 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14666 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14667 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14668 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14669 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14670 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14671 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14672 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14675 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14676 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14678 ## ------------------------------------ ##
14679 ## Report this to http://llvm.org/bugs/ ##
14680 ## ------------------------------------ ##
14682 ) | sed "s/^/$as_me: WARNING: /" >&2
14685 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14688 echo $ECHO_N "(cached) $ECHO_C" >&6
14690 eval "$as_ac_Header=\$ac_header_preproc"
14692 ac_res=`eval echo '${'$as_ac_Header'}'`
14693 { echo "$as_me:$LINENO: result: $ac_res" >&5
14694 echo "${ECHO_T}$ac_res" >&6; }
14697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14698 cat >>confdefs.h <<_ACEOF
14699 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14708 for ac_header in utime.h windows.h
14710 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14715 echo $ECHO_N "(cached) $ECHO_C" >&6
14717 ac_res=`eval echo '${'$as_ac_Header'}'`
14718 { echo "$as_me:$LINENO: result: $ac_res" >&5
14719 echo "${ECHO_T}$ac_res" >&6; }
14721 # Is the header compilable?
14722 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14723 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14724 cat >conftest.$ac_ext <<_ACEOF
14727 cat confdefs.h >>conftest.$ac_ext
14728 cat >>conftest.$ac_ext <<_ACEOF
14729 /* end confdefs.h. */
14730 $ac_includes_default
14731 #include <$ac_header>
14733 rm -f conftest.$ac_objext
14734 if { (ac_try="$ac_compile"
14735 case "(($ac_try" in
14736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14737 *) ac_try_echo=$ac_try;;
14739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14740 (eval "$ac_compile") 2>conftest.er1
14742 grep -v '^ *+' conftest.er1 >conftest.err
14744 cat conftest.err >&5
14745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 (exit $ac_status); } &&
14747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14748 { (case "(($ac_try" in
14749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14750 *) ac_try_echo=$ac_try;;
14752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14753 (eval "$ac_try") 2>&5
14755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); }; } &&
14757 { ac_try='test -s conftest.$ac_objext'
14758 { (case "(($ac_try" in
14759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14760 *) ac_try_echo=$ac_try;;
14762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14763 (eval "$ac_try") 2>&5
14765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766 (exit $ac_status); }; }; then
14767 ac_header_compiler=yes
14769 echo "$as_me: failed program was:" >&5
14770 sed 's/^/| /' conftest.$ac_ext >&5
14772 ac_header_compiler=no
14775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14776 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14777 echo "${ECHO_T}$ac_header_compiler" >&6; }
14779 # Is the header present?
14780 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14781 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14782 cat >conftest.$ac_ext <<_ACEOF
14785 cat confdefs.h >>conftest.$ac_ext
14786 cat >>conftest.$ac_ext <<_ACEOF
14787 /* end confdefs.h. */
14788 #include <$ac_header>
14790 if { (ac_try="$ac_cpp conftest.$ac_ext"
14791 case "(($ac_try" in
14792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14793 *) ac_try_echo=$ac_try;;
14795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14798 grep -v '^ *+' conftest.er1 >conftest.err
14800 cat conftest.err >&5
14801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802 (exit $ac_status); } >/dev/null; then
14803 if test -s conftest.err; then
14804 ac_cpp_err=$ac_c_preproc_warn_flag
14805 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14812 if test -z "$ac_cpp_err"; then
14813 ac_header_preproc=yes
14815 echo "$as_me: failed program was:" >&5
14816 sed 's/^/| /' conftest.$ac_ext >&5
14818 ac_header_preproc=no
14821 rm -f conftest.err conftest.$ac_ext
14822 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14823 echo "${ECHO_T}$ac_header_preproc" >&6; }
14825 # So? What about this header?
14826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14828 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14829 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14831 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14832 ac_header_preproc=yes
14835 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14836 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14837 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14838 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14839 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14840 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14841 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14842 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14845 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14846 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14848 ## ------------------------------------ ##
14849 ## Report this to http://llvm.org/bugs/ ##
14850 ## ------------------------------------ ##
14852 ) | sed "s/^/$as_me: WARNING: /" >&2
14855 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14858 echo $ECHO_N "(cached) $ECHO_C" >&6
14860 eval "$as_ac_Header=\$ac_header_preproc"
14862 ac_res=`eval echo '${'$as_ac_Header'}'`
14863 { echo "$as_me:$LINENO: result: $ac_res" >&5
14864 echo "${ECHO_T}$ac_res" >&6; }
14867 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14868 cat >>confdefs.h <<_ACEOF
14869 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14881 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14883 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14885 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14888 echo $ECHO_N "(cached) $ECHO_C" >&6
14890 ac_res=`eval echo '${'$as_ac_Header'}'`
14891 { echo "$as_me:$LINENO: result: $ac_res" >&5
14892 echo "${ECHO_T}$ac_res" >&6; }
14894 # Is the header compilable?
14895 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14896 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14897 cat >conftest.$ac_ext <<_ACEOF
14900 cat confdefs.h >>conftest.$ac_ext
14901 cat >>conftest.$ac_ext <<_ACEOF
14902 /* end confdefs.h. */
14903 $ac_includes_default
14904 #include <$ac_header>
14906 rm -f conftest.$ac_objext
14907 if { (ac_try="$ac_compile"
14908 case "(($ac_try" in
14909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14910 *) ac_try_echo=$ac_try;;
14912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14913 (eval "$ac_compile") 2>conftest.er1
14915 grep -v '^ *+' conftest.er1 >conftest.err
14917 cat conftest.err >&5
14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); } &&
14920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14921 { (case "(($ac_try" in
14922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14923 *) ac_try_echo=$ac_try;;
14925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14926 (eval "$ac_try") 2>&5
14928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929 (exit $ac_status); }; } &&
14930 { ac_try='test -s conftest.$ac_objext'
14931 { (case "(($ac_try" in
14932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14933 *) ac_try_echo=$ac_try;;
14935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14936 (eval "$ac_try") 2>&5
14938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); }; }; then
14940 ac_header_compiler=yes
14942 echo "$as_me: failed program was:" >&5
14943 sed 's/^/| /' conftest.$ac_ext >&5
14945 ac_header_compiler=no
14948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14949 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14950 echo "${ECHO_T}$ac_header_compiler" >&6; }
14952 # Is the header present?
14953 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14954 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14955 cat >conftest.$ac_ext <<_ACEOF
14958 cat confdefs.h >>conftest.$ac_ext
14959 cat >>conftest.$ac_ext <<_ACEOF
14960 /* end confdefs.h. */
14961 #include <$ac_header>
14963 if { (ac_try="$ac_cpp conftest.$ac_ext"
14964 case "(($ac_try" in
14965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14966 *) ac_try_echo=$ac_try;;
14968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14971 grep -v '^ *+' conftest.er1 >conftest.err
14973 cat conftest.err >&5
14974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); } >/dev/null; then
14976 if test -s conftest.err; then
14977 ac_cpp_err=$ac_c_preproc_warn_flag
14978 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14985 if test -z "$ac_cpp_err"; then
14986 ac_header_preproc=yes
14988 echo "$as_me: failed program was:" >&5
14989 sed 's/^/| /' conftest.$ac_ext >&5
14991 ac_header_preproc=no
14994 rm -f conftest.err conftest.$ac_ext
14995 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14996 echo "${ECHO_T}$ac_header_preproc" >&6; }
14998 # So? What about this header?
14999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15001 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15002 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15004 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15005 ac_header_preproc=yes
15008 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15009 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15010 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15011 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15012 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15013 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15014 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15015 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15017 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15018 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15019 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15021 ## ------------------------------------ ##
15022 ## Report this to http://llvm.org/bugs/ ##
15023 ## ------------------------------------ ##
15025 ) | sed "s/^/$as_me: WARNING: /" >&2
15028 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15031 echo $ECHO_N "(cached) $ECHO_C" >&6
15033 eval "$as_ac_Header=\$ac_header_preproc"
15035 ac_res=`eval echo '${'$as_ac_Header'}'`
15036 { echo "$as_me:$LINENO: result: $ac_res" >&5
15037 echo "${ECHO_T}$ac_res" >&6; }
15040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15041 cat >>confdefs.h <<_ACEOF
15042 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15053 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15055 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15057 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15060 echo $ECHO_N "(cached) $ECHO_C" >&6
15062 ac_res=`eval echo '${'$as_ac_Header'}'`
15063 { echo "$as_me:$LINENO: result: $ac_res" >&5
15064 echo "${ECHO_T}$ac_res" >&6; }
15066 # Is the header compilable?
15067 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15068 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15069 cat >conftest.$ac_ext <<_ACEOF
15072 cat confdefs.h >>conftest.$ac_ext
15073 cat >>conftest.$ac_ext <<_ACEOF
15074 /* end confdefs.h. */
15075 $ac_includes_default
15076 #include <$ac_header>
15078 rm -f conftest.$ac_objext
15079 if { (ac_try="$ac_compile"
15080 case "(($ac_try" in
15081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15082 *) ac_try_echo=$ac_try;;
15084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15085 (eval "$ac_compile") 2>conftest.er1
15087 grep -v '^ *+' conftest.er1 >conftest.err
15089 cat conftest.err >&5
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); } &&
15092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15093 { (case "(($ac_try" in
15094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15095 *) ac_try_echo=$ac_try;;
15097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15098 (eval "$ac_try") 2>&5
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); }; } &&
15102 { ac_try='test -s conftest.$ac_objext'
15103 { (case "(($ac_try" in
15104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15105 *) ac_try_echo=$ac_try;;
15107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15108 (eval "$ac_try") 2>&5
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); }; }; then
15112 ac_header_compiler=yes
15114 echo "$as_me: failed program was:" >&5
15115 sed 's/^/| /' conftest.$ac_ext >&5
15117 ac_header_compiler=no
15120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15121 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15122 echo "${ECHO_T}$ac_header_compiler" >&6; }
15124 # Is the header present?
15125 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15126 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15127 cat >conftest.$ac_ext <<_ACEOF
15130 cat confdefs.h >>conftest.$ac_ext
15131 cat >>conftest.$ac_ext <<_ACEOF
15132 /* end confdefs.h. */
15133 #include <$ac_header>
15135 if { (ac_try="$ac_cpp conftest.$ac_ext"
15136 case "(($ac_try" in
15137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15138 *) ac_try_echo=$ac_try;;
15140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15141 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15143 grep -v '^ *+' conftest.er1 >conftest.err
15145 cat conftest.err >&5
15146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147 (exit $ac_status); } >/dev/null; then
15148 if test -s conftest.err; then
15149 ac_cpp_err=$ac_c_preproc_warn_flag
15150 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15157 if test -z "$ac_cpp_err"; then
15158 ac_header_preproc=yes
15160 echo "$as_me: failed program was:" >&5
15161 sed 's/^/| /' conftest.$ac_ext >&5
15163 ac_header_preproc=no
15166 rm -f conftest.err conftest.$ac_ext
15167 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15168 echo "${ECHO_T}$ac_header_preproc" >&6; }
15170 # So? What about this header?
15171 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15173 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15174 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15175 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15176 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15177 ac_header_preproc=yes
15180 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15181 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15182 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15183 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15184 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15185 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15186 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15187 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15189 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15190 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15191 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15193 ## ------------------------------------ ##
15194 ## Report this to http://llvm.org/bugs/ ##
15195 ## ------------------------------------ ##
15197 ) | sed "s/^/$as_me: WARNING: /" >&2
15200 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15203 echo $ECHO_N "(cached) $ECHO_C" >&6
15205 eval "$as_ac_Header=\$ac_header_preproc"
15207 ac_res=`eval echo '${'$as_ac_Header'}'`
15208 { echo "$as_me:$LINENO: result: $ac_res" >&5
15209 echo "${ECHO_T}$ac_res" >&6; }
15212 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15213 cat >>confdefs.h <<_ACEOF
15214 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15222 for ac_header in valgrind/valgrind.h
15224 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15229 echo $ECHO_N "(cached) $ECHO_C" >&6
15231 ac_res=`eval echo '${'$as_ac_Header'}'`
15232 { echo "$as_me:$LINENO: result: $ac_res" >&5
15233 echo "${ECHO_T}$ac_res" >&6; }
15235 # Is the header compilable?
15236 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15237 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15238 cat >conftest.$ac_ext <<_ACEOF
15241 cat confdefs.h >>conftest.$ac_ext
15242 cat >>conftest.$ac_ext <<_ACEOF
15243 /* end confdefs.h. */
15244 $ac_includes_default
15245 #include <$ac_header>
15247 rm -f conftest.$ac_objext
15248 if { (ac_try="$ac_compile"
15249 case "(($ac_try" in
15250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15251 *) ac_try_echo=$ac_try;;
15253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15254 (eval "$ac_compile") 2>conftest.er1
15256 grep -v '^ *+' conftest.er1 >conftest.err
15258 cat conftest.err >&5
15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); } &&
15261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15262 { (case "(($ac_try" in
15263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15264 *) ac_try_echo=$ac_try;;
15266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15267 (eval "$ac_try") 2>&5
15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); }; } &&
15271 { ac_try='test -s conftest.$ac_objext'
15272 { (case "(($ac_try" in
15273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15274 *) ac_try_echo=$ac_try;;
15276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15277 (eval "$ac_try") 2>&5
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); }; }; then
15281 ac_header_compiler=yes
15283 echo "$as_me: failed program was:" >&5
15284 sed 's/^/| /' conftest.$ac_ext >&5
15286 ac_header_compiler=no
15289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15290 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15291 echo "${ECHO_T}$ac_header_compiler" >&6; }
15293 # Is the header present?
15294 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15295 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15296 cat >conftest.$ac_ext <<_ACEOF
15299 cat confdefs.h >>conftest.$ac_ext
15300 cat >>conftest.$ac_ext <<_ACEOF
15301 /* end confdefs.h. */
15302 #include <$ac_header>
15304 if { (ac_try="$ac_cpp conftest.$ac_ext"
15305 case "(($ac_try" in
15306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15307 *) ac_try_echo=$ac_try;;
15309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15310 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15312 grep -v '^ *+' conftest.er1 >conftest.err
15314 cat conftest.err >&5
15315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316 (exit $ac_status); } >/dev/null; then
15317 if test -s conftest.err; then
15318 ac_cpp_err=$ac_c_preproc_warn_flag
15319 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15326 if test -z "$ac_cpp_err"; then
15327 ac_header_preproc=yes
15329 echo "$as_me: failed program was:" >&5
15330 sed 's/^/| /' conftest.$ac_ext >&5
15332 ac_header_preproc=no
15335 rm -f conftest.err conftest.$ac_ext
15336 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15337 echo "${ECHO_T}$ac_header_preproc" >&6; }
15339 # So? What about this header?
15340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15342 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15343 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15345 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15346 ac_header_preproc=yes
15349 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15350 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15351 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15352 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15353 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15354 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15355 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15356 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15358 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15359 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15360 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15362 ## ------------------------------------ ##
15363 ## Report this to http://llvm.org/bugs/ ##
15364 ## ------------------------------------ ##
15366 ) | sed "s/^/$as_me: WARNING: /" >&2
15369 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15372 echo $ECHO_N "(cached) $ECHO_C" >&6
15374 eval "$as_ac_Header=\$ac_header_preproc"
15376 ac_res=`eval echo '${'$as_ac_Header'}'`
15377 { echo "$as_me:$LINENO: result: $ac_res" >&5
15378 echo "${ECHO_T}$ac_res" >&6; }
15381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15382 cat >>confdefs.h <<_ACEOF
15383 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15391 for ac_header in fenv.h
15393 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15395 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15398 echo $ECHO_N "(cached) $ECHO_C" >&6
15400 ac_res=`eval echo '${'$as_ac_Header'}'`
15401 { echo "$as_me:$LINENO: result: $ac_res" >&5
15402 echo "${ECHO_T}$ac_res" >&6; }
15404 # Is the header compilable?
15405 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15406 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15407 cat >conftest.$ac_ext <<_ACEOF
15410 cat confdefs.h >>conftest.$ac_ext
15411 cat >>conftest.$ac_ext <<_ACEOF
15412 /* end confdefs.h. */
15413 $ac_includes_default
15414 #include <$ac_header>
15416 rm -f conftest.$ac_objext
15417 if { (ac_try="$ac_compile"
15418 case "(($ac_try" in
15419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15420 *) ac_try_echo=$ac_try;;
15422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15423 (eval "$ac_compile") 2>conftest.er1
15425 grep -v '^ *+' conftest.er1 >conftest.err
15427 cat conftest.err >&5
15428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); } &&
15430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15431 { (case "(($ac_try" in
15432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15433 *) ac_try_echo=$ac_try;;
15435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15436 (eval "$ac_try") 2>&5
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 (exit $ac_status); }; } &&
15440 { ac_try='test -s conftest.$ac_objext'
15441 { (case "(($ac_try" in
15442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15443 *) ac_try_echo=$ac_try;;
15445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15446 (eval "$ac_try") 2>&5
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); }; }; then
15450 ac_header_compiler=yes
15452 echo "$as_me: failed program was:" >&5
15453 sed 's/^/| /' conftest.$ac_ext >&5
15455 ac_header_compiler=no
15458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15459 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15460 echo "${ECHO_T}$ac_header_compiler" >&6; }
15462 # Is the header present?
15463 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15464 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15465 cat >conftest.$ac_ext <<_ACEOF
15468 cat confdefs.h >>conftest.$ac_ext
15469 cat >>conftest.$ac_ext <<_ACEOF
15470 /* end confdefs.h. */
15471 #include <$ac_header>
15473 if { (ac_try="$ac_cpp conftest.$ac_ext"
15474 case "(($ac_try" in
15475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15476 *) ac_try_echo=$ac_try;;
15478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15479 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15481 grep -v '^ *+' conftest.er1 >conftest.err
15483 cat conftest.err >&5
15484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485 (exit $ac_status); } >/dev/null; then
15486 if test -s conftest.err; then
15487 ac_cpp_err=$ac_c_preproc_warn_flag
15488 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15495 if test -z "$ac_cpp_err"; then
15496 ac_header_preproc=yes
15498 echo "$as_me: failed program was:" >&5
15499 sed 's/^/| /' conftest.$ac_ext >&5
15501 ac_header_preproc=no
15504 rm -f conftest.err conftest.$ac_ext
15505 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15506 echo "${ECHO_T}$ac_header_preproc" >&6; }
15508 # So? What about this header?
15509 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15511 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15512 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15514 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15515 ac_header_preproc=yes
15518 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15519 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15520 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15521 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15522 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15523 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15524 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15525 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15527 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15528 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15529 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15531 ## ------------------------------------ ##
15532 ## Report this to http://llvm.org/bugs/ ##
15533 ## ------------------------------------ ##
15535 ) | sed "s/^/$as_me: WARNING: /" >&2
15538 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15541 echo $ECHO_N "(cached) $ECHO_C" >&6
15543 eval "$as_ac_Header=\$ac_header_preproc"
15545 ac_res=`eval echo '${'$as_ac_Header'}'`
15546 { echo "$as_me:$LINENO: result: $ac_res" >&5
15547 echo "${ECHO_T}$ac_res" >&6; }
15550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15551 cat >>confdefs.h <<_ACEOF
15552 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15559 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15561 for ac_header in pthread.h
15563 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15565 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15568 echo $ECHO_N "(cached) $ECHO_C" >&6
15570 ac_res=`eval echo '${'$as_ac_Header'}'`
15571 { echo "$as_me:$LINENO: result: $ac_res" >&5
15572 echo "${ECHO_T}$ac_res" >&6; }
15574 # Is the header compilable?
15575 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15576 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15577 cat >conftest.$ac_ext <<_ACEOF
15580 cat confdefs.h >>conftest.$ac_ext
15581 cat >>conftest.$ac_ext <<_ACEOF
15582 /* end confdefs.h. */
15583 $ac_includes_default
15584 #include <$ac_header>
15586 rm -f conftest.$ac_objext
15587 if { (ac_try="$ac_compile"
15588 case "(($ac_try" in
15589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15590 *) ac_try_echo=$ac_try;;
15592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15593 (eval "$ac_compile") 2>conftest.er1
15595 grep -v '^ *+' conftest.er1 >conftest.err
15597 cat conftest.err >&5
15598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599 (exit $ac_status); } &&
15600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15601 { (case "(($ac_try" in
15602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15603 *) ac_try_echo=$ac_try;;
15605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15606 (eval "$ac_try") 2>&5
15608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609 (exit $ac_status); }; } &&
15610 { ac_try='test -s conftest.$ac_objext'
15611 { (case "(($ac_try" in
15612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15613 *) ac_try_echo=$ac_try;;
15615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15616 (eval "$ac_try") 2>&5
15618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619 (exit $ac_status); }; }; then
15620 ac_header_compiler=yes
15622 echo "$as_me: failed program was:" >&5
15623 sed 's/^/| /' conftest.$ac_ext >&5
15625 ac_header_compiler=no
15628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15629 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15630 echo "${ECHO_T}$ac_header_compiler" >&6; }
15632 # Is the header present?
15633 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15634 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15635 cat >conftest.$ac_ext <<_ACEOF
15638 cat confdefs.h >>conftest.$ac_ext
15639 cat >>conftest.$ac_ext <<_ACEOF
15640 /* end confdefs.h. */
15641 #include <$ac_header>
15643 if { (ac_try="$ac_cpp conftest.$ac_ext"
15644 case "(($ac_try" in
15645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15646 *) ac_try_echo=$ac_try;;
15648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15649 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15651 grep -v '^ *+' conftest.er1 >conftest.err
15653 cat conftest.err >&5
15654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655 (exit $ac_status); } >/dev/null; then
15656 if test -s conftest.err; then
15657 ac_cpp_err=$ac_c_preproc_warn_flag
15658 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15665 if test -z "$ac_cpp_err"; then
15666 ac_header_preproc=yes
15668 echo "$as_me: failed program was:" >&5
15669 sed 's/^/| /' conftest.$ac_ext >&5
15671 ac_header_preproc=no
15674 rm -f conftest.err conftest.$ac_ext
15675 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15676 echo "${ECHO_T}$ac_header_preproc" >&6; }
15678 # So? What about this header?
15679 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15681 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15682 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15684 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15685 ac_header_preproc=yes
15688 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15689 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15690 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15691 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15692 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15693 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15694 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15695 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15697 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15698 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15699 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15701 ## ------------------------------------ ##
15702 ## Report this to http://llvm.org/bugs/ ##
15703 ## ------------------------------------ ##
15705 ) | sed "s/^/$as_me: WARNING: /" >&2
15708 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15711 echo $ECHO_N "(cached) $ECHO_C" >&6
15713 eval "$as_ac_Header=\$ac_header_preproc"
15715 ac_res=`eval echo '${'$as_ac_Header'}'`
15716 { echo "$as_me:$LINENO: result: $ac_res" >&5
15717 echo "${ECHO_T}$ac_res" >&6; }
15720 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15721 cat >>confdefs.h <<_ACEOF
15722 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15738 if test "$llvm_cv_enable_libffi" = "yes" ; then
15741 for ac_header in ffi.h ffi/ffi.h
15743 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15745 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15748 echo $ECHO_N "(cached) $ECHO_C" >&6
15750 ac_res=`eval echo '${'$as_ac_Header'}'`
15751 { echo "$as_me:$LINENO: result: $ac_res" >&5
15752 echo "${ECHO_T}$ac_res" >&6; }
15754 # Is the header compilable?
15755 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15756 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15757 cat >conftest.$ac_ext <<_ACEOF
15760 cat confdefs.h >>conftest.$ac_ext
15761 cat >>conftest.$ac_ext <<_ACEOF
15762 /* end confdefs.h. */
15763 $ac_includes_default
15764 #include <$ac_header>
15766 rm -f conftest.$ac_objext
15767 if { (ac_try="$ac_compile"
15768 case "(($ac_try" in
15769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15770 *) ac_try_echo=$ac_try;;
15772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15773 (eval "$ac_compile") 2>conftest.er1
15775 grep -v '^ *+' conftest.er1 >conftest.err
15777 cat conftest.err >&5
15778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779 (exit $ac_status); } &&
15780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15781 { (case "(($ac_try" in
15782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15783 *) ac_try_echo=$ac_try;;
15785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15786 (eval "$ac_try") 2>&5
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); }; } &&
15790 { ac_try='test -s conftest.$ac_objext'
15791 { (case "(($ac_try" in
15792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15793 *) ac_try_echo=$ac_try;;
15795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15796 (eval "$ac_try") 2>&5
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); }; }; then
15800 ac_header_compiler=yes
15802 echo "$as_me: failed program was:" >&5
15803 sed 's/^/| /' conftest.$ac_ext >&5
15805 ac_header_compiler=no
15808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15809 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15810 echo "${ECHO_T}$ac_header_compiler" >&6; }
15812 # Is the header present?
15813 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15814 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15815 cat >conftest.$ac_ext <<_ACEOF
15818 cat confdefs.h >>conftest.$ac_ext
15819 cat >>conftest.$ac_ext <<_ACEOF
15820 /* end confdefs.h. */
15821 #include <$ac_header>
15823 if { (ac_try="$ac_cpp conftest.$ac_ext"
15824 case "(($ac_try" in
15825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15826 *) ac_try_echo=$ac_try;;
15828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15829 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15831 grep -v '^ *+' conftest.er1 >conftest.err
15833 cat conftest.err >&5
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); } >/dev/null; then
15836 if test -s conftest.err; then
15837 ac_cpp_err=$ac_c_preproc_warn_flag
15838 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15845 if test -z "$ac_cpp_err"; then
15846 ac_header_preproc=yes
15848 echo "$as_me: failed program was:" >&5
15849 sed 's/^/| /' conftest.$ac_ext >&5
15851 ac_header_preproc=no
15854 rm -f conftest.err conftest.$ac_ext
15855 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15856 echo "${ECHO_T}$ac_header_preproc" >&6; }
15858 # So? What about this header?
15859 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15861 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15862 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15863 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15864 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15865 ac_header_preproc=yes
15868 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15869 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15870 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15871 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15872 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15873 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15874 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15875 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15876 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15877 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15878 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15879 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15881 ## ------------------------------------ ##
15882 ## Report this to http://llvm.org/bugs/ ##
15883 ## ------------------------------------ ##
15885 ) | sed "s/^/$as_me: WARNING: /" >&2
15888 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15890 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15891 echo $ECHO_N "(cached) $ECHO_C" >&6
15893 eval "$as_ac_Header=\$ac_header_preproc"
15895 ac_res=`eval echo '${'$as_ac_Header'}'`
15896 { echo "$as_me:$LINENO: result: $ac_res" >&5
15897 echo "${ECHO_T}$ac_res" >&6; }
15900 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15901 cat >>confdefs.h <<_ACEOF
15902 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15912 for ac_header in CrashReporterClient.h
15914 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15916 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15919 echo $ECHO_N "(cached) $ECHO_C" >&6
15921 ac_res=`eval echo '${'$as_ac_Header'}'`
15922 { echo "$as_me:$LINENO: result: $ac_res" >&5
15923 echo "${ECHO_T}$ac_res" >&6; }
15925 # Is the header compilable?
15926 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15927 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15928 cat >conftest.$ac_ext <<_ACEOF
15931 cat confdefs.h >>conftest.$ac_ext
15932 cat >>conftest.$ac_ext <<_ACEOF
15933 /* end confdefs.h. */
15934 $ac_includes_default
15935 #include <$ac_header>
15937 rm -f conftest.$ac_objext
15938 if { (ac_try="$ac_compile"
15939 case "(($ac_try" in
15940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15941 *) ac_try_echo=$ac_try;;
15943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15944 (eval "$ac_compile") 2>conftest.er1
15946 grep -v '^ *+' conftest.er1 >conftest.err
15948 cat conftest.err >&5
15949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 (exit $ac_status); } &&
15951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15952 { (case "(($ac_try" in
15953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15954 *) ac_try_echo=$ac_try;;
15956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15957 (eval "$ac_try") 2>&5
15959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960 (exit $ac_status); }; } &&
15961 { ac_try='test -s conftest.$ac_objext'
15962 { (case "(($ac_try" in
15963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15964 *) ac_try_echo=$ac_try;;
15966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15967 (eval "$ac_try") 2>&5
15969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970 (exit $ac_status); }; }; then
15971 ac_header_compiler=yes
15973 echo "$as_me: failed program was:" >&5
15974 sed 's/^/| /' conftest.$ac_ext >&5
15976 ac_header_compiler=no
15979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15980 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15981 echo "${ECHO_T}$ac_header_compiler" >&6; }
15983 # Is the header present?
15984 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15985 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15986 cat >conftest.$ac_ext <<_ACEOF
15989 cat confdefs.h >>conftest.$ac_ext
15990 cat >>conftest.$ac_ext <<_ACEOF
15991 /* end confdefs.h. */
15992 #include <$ac_header>
15994 if { (ac_try="$ac_cpp conftest.$ac_ext"
15995 case "(($ac_try" in
15996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15997 *) ac_try_echo=$ac_try;;
15999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16002 grep -v '^ *+' conftest.er1 >conftest.err
16004 cat conftest.err >&5
16005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006 (exit $ac_status); } >/dev/null; then
16007 if test -s conftest.err; then
16008 ac_cpp_err=$ac_c_preproc_warn_flag
16009 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16016 if test -z "$ac_cpp_err"; then
16017 ac_header_preproc=yes
16019 echo "$as_me: failed program was:" >&5
16020 sed 's/^/| /' conftest.$ac_ext >&5
16022 ac_header_preproc=no
16025 rm -f conftest.err conftest.$ac_ext
16026 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16027 echo "${ECHO_T}$ac_header_preproc" >&6; }
16029 # So? What about this header?
16030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16032 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16033 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16035 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16036 ac_header_preproc=yes
16039 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16040 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16041 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16042 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16043 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16044 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16045 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16046 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16048 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16049 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16050 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16052 ## ------------------------------------ ##
16053 ## Report this to http://llvm.org/bugs/ ##
16054 ## ------------------------------------ ##
16056 ) | sed "s/^/$as_me: WARNING: /" >&2
16059 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16062 echo $ECHO_N "(cached) $ECHO_C" >&6
16064 eval "$as_ac_Header=\$ac_header_preproc"
16066 ac_res=`eval echo '${'$as_ac_Header'}'`
16067 { echo "$as_me:$LINENO: result: $ac_res" >&5
16068 echo "${ECHO_T}$ac_res" >&6; }
16071 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16072 cat >>confdefs.h <<_ACEOF
16073 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16081 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16082 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16083 cat >conftest.$ac_ext <<_ACEOF
16086 cat confdefs.h >>conftest.$ac_ext
16087 cat >>conftest.$ac_ext <<_ACEOF
16088 /* end confdefs.h. */
16089 extern const char *__crashreporter_info__;
16091 __crashreporter_info__ = "test";
16096 rm -f conftest.$ac_objext conftest$ac_exeext
16097 if { (ac_try="$ac_link"
16098 case "(($ac_try" in
16099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16100 *) ac_try_echo=$ac_try;;
16102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16103 (eval "$ac_link") 2>conftest.er1
16105 grep -v '^ *+' conftest.er1 >conftest.err
16107 cat conftest.err >&5
16108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109 (exit $ac_status); } &&
16110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16111 { (case "(($ac_try" in
16112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16113 *) ac_try_echo=$ac_try;;
16115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16116 (eval "$ac_try") 2>&5
16118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119 (exit $ac_status); }; } &&
16120 { ac_try='test -s conftest$ac_exeext'
16121 { (case "(($ac_try" in
16122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16123 *) ac_try_echo=$ac_try;;
16125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16126 (eval "$ac_try") 2>&5
16128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129 (exit $ac_status); }; }; then
16130 { echo "$as_me:$LINENO: result: yes" >&5
16131 echo "${ECHO_T}yes" >&6; }
16133 cat >>confdefs.h <<\_ACEOF
16134 #define HAVE_CRASHREPORTER_INFO 1
16138 echo "$as_me: failed program was:" >&5
16139 sed 's/^/| /' conftest.$ac_ext >&5
16141 { echo "$as_me:$LINENO: result: no" >&5
16142 echo "${ECHO_T}no" >&6; }
16144 cat >>confdefs.h <<\_ACEOF
16145 #define HAVE_CRASHREPORTER_INFO 0
16150 rm -f core conftest.err conftest.$ac_objext \
16151 conftest$ac_exeext conftest.$ac_ext
16156 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16157 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16158 if test "${ac_cv_huge_val_sanity+set}" = set; then
16159 echo $ECHO_N "(cached) $ECHO_C" >&6
16163 ac_cpp='$CXXCPP $CPPFLAGS'
16164 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16165 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16166 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16168 ac_save_CXXFLAGS=$CXXFLAGS
16169 CXXFLAGS="$CXXFLAGS -pedantic"
16170 if test "$cross_compiling" = yes; then
16171 ac_cv_huge_val_sanity=yes
16173 cat >conftest.$ac_ext <<_ACEOF
16176 cat confdefs.h >>conftest.$ac_ext
16177 cat >>conftest.$ac_ext <<_ACEOF
16178 /* end confdefs.h. */
16183 double x = HUGE_VAL; return x != x;
16188 rm -f conftest$ac_exeext
16189 if { (ac_try="$ac_link"
16190 case "(($ac_try" in
16191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16192 *) ac_try_echo=$ac_try;;
16194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16195 (eval "$ac_link") 2>&5
16197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16199 { (case "(($ac_try" in
16200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16201 *) ac_try_echo=$ac_try;;
16203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16204 (eval "$ac_try") 2>&5
16206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207 (exit $ac_status); }; }; then
16208 ac_cv_huge_val_sanity=yes
16210 echo "$as_me: program exited with status $ac_status" >&5
16211 echo "$as_me: failed program was:" >&5
16212 sed 's/^/| /' conftest.$ac_ext >&5
16214 ( exit $ac_status )
16215 ac_cv_huge_val_sanity=no
16217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16221 CXXFLAGS=$ac_save_CXXFLAGS
16223 ac_cpp='$CPP $CPPFLAGS'
16224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16230 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16231 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16232 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16235 { echo "$as_me:$LINENO: checking for pid_t" >&5
16236 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16237 if test "${ac_cv_type_pid_t+set}" = set; then
16238 echo $ECHO_N "(cached) $ECHO_C" >&6
16240 cat >conftest.$ac_ext <<_ACEOF
16243 cat confdefs.h >>conftest.$ac_ext
16244 cat >>conftest.$ac_ext <<_ACEOF
16245 /* end confdefs.h. */
16246 $ac_includes_default
16247 typedef pid_t ac__type_new_;
16251 if ((ac__type_new_ *) 0)
16253 if (sizeof (ac__type_new_))
16259 rm -f conftest.$ac_objext
16260 if { (ac_try="$ac_compile"
16261 case "(($ac_try" in
16262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16263 *) ac_try_echo=$ac_try;;
16265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16266 (eval "$ac_compile") 2>conftest.er1
16268 grep -v '^ *+' conftest.er1 >conftest.err
16270 cat conftest.err >&5
16271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272 (exit $ac_status); } &&
16273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16274 { (case "(($ac_try" in
16275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16276 *) ac_try_echo=$ac_try;;
16278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16279 (eval "$ac_try") 2>&5
16281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282 (exit $ac_status); }; } &&
16283 { ac_try='test -s conftest.$ac_objext'
16284 { (case "(($ac_try" in
16285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16286 *) ac_try_echo=$ac_try;;
16288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16289 (eval "$ac_try") 2>&5
16291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292 (exit $ac_status); }; }; then
16293 ac_cv_type_pid_t=yes
16295 echo "$as_me: failed program was:" >&5
16296 sed 's/^/| /' conftest.$ac_ext >&5
16298 ac_cv_type_pid_t=no
16301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16303 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16304 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16305 if test $ac_cv_type_pid_t = yes; then
16309 cat >>confdefs.h <<_ACEOF
16315 { echo "$as_me:$LINENO: checking for size_t" >&5
16316 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16317 if test "${ac_cv_type_size_t+set}" = set; then
16318 echo $ECHO_N "(cached) $ECHO_C" >&6
16320 cat >conftest.$ac_ext <<_ACEOF
16323 cat confdefs.h >>conftest.$ac_ext
16324 cat >>conftest.$ac_ext <<_ACEOF
16325 /* end confdefs.h. */
16326 $ac_includes_default
16327 typedef size_t ac__type_new_;
16331 if ((ac__type_new_ *) 0)
16333 if (sizeof (ac__type_new_))
16339 rm -f conftest.$ac_objext
16340 if { (ac_try="$ac_compile"
16341 case "(($ac_try" in
16342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16343 *) ac_try_echo=$ac_try;;
16345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16346 (eval "$ac_compile") 2>conftest.er1
16348 grep -v '^ *+' conftest.er1 >conftest.err
16350 cat conftest.err >&5
16351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352 (exit $ac_status); } &&
16353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16354 { (case "(($ac_try" in
16355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16356 *) ac_try_echo=$ac_try;;
16358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16359 (eval "$ac_try") 2>&5
16361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362 (exit $ac_status); }; } &&
16363 { ac_try='test -s conftest.$ac_objext'
16364 { (case "(($ac_try" in
16365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16366 *) ac_try_echo=$ac_try;;
16368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16369 (eval "$ac_try") 2>&5
16371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16372 (exit $ac_status); }; }; then
16373 ac_cv_type_size_t=yes
16375 echo "$as_me: failed program was:" >&5
16376 sed 's/^/| /' conftest.$ac_ext >&5
16378 ac_cv_type_size_t=no
16381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16383 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16384 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16385 if test $ac_cv_type_size_t = yes; then
16389 cat >>confdefs.h <<_ACEOF
16390 #define size_t unsigned int
16396 cat >>confdefs.h <<_ACEOF
16397 #define RETSIGTYPE void
16400 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16401 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16402 if test "${ac_cv_struct_tm+set}" = set; then
16403 echo $ECHO_N "(cached) $ECHO_C" >&6
16405 cat >conftest.$ac_ext <<_ACEOF
16408 cat confdefs.h >>conftest.$ac_ext
16409 cat >>conftest.$ac_ext <<_ACEOF
16410 /* end confdefs.h. */
16411 #include <sys/types.h>
16417 struct tm *tp; tp->tm_sec;
16422 rm -f conftest.$ac_objext
16423 if { (ac_try="$ac_compile"
16424 case "(($ac_try" in
16425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16426 *) ac_try_echo=$ac_try;;
16428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16429 (eval "$ac_compile") 2>conftest.er1
16431 grep -v '^ *+' conftest.er1 >conftest.err
16433 cat conftest.err >&5
16434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435 (exit $ac_status); } &&
16436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16437 { (case "(($ac_try" in
16438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16439 *) ac_try_echo=$ac_try;;
16441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16442 (eval "$ac_try") 2>&5
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); }; } &&
16446 { ac_try='test -s conftest.$ac_objext'
16447 { (case "(($ac_try" in
16448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16449 *) ac_try_echo=$ac_try;;
16451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16452 (eval "$ac_try") 2>&5
16454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16455 (exit $ac_status); }; }; then
16456 ac_cv_struct_tm=time.h
16458 echo "$as_me: failed program was:" >&5
16459 sed 's/^/| /' conftest.$ac_ext >&5
16461 ac_cv_struct_tm=sys/time.h
16464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16466 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16467 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16468 if test $ac_cv_struct_tm = sys/time.h; then
16470 cat >>confdefs.h <<\_ACEOF
16471 #define TM_IN_SYS_TIME 1
16476 { echo "$as_me:$LINENO: checking for int64_t" >&5
16477 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16478 if test "${ac_cv_type_int64_t+set}" = set; then
16479 echo $ECHO_N "(cached) $ECHO_C" >&6
16481 cat >conftest.$ac_ext <<_ACEOF
16484 cat confdefs.h >>conftest.$ac_ext
16485 cat >>conftest.$ac_ext <<_ACEOF
16486 /* end confdefs.h. */
16487 $ac_includes_default
16488 typedef int64_t ac__type_new_;
16492 if ((ac__type_new_ *) 0)
16494 if (sizeof (ac__type_new_))
16500 rm -f conftest.$ac_objext
16501 if { (ac_try="$ac_compile"
16502 case "(($ac_try" in
16503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16504 *) ac_try_echo=$ac_try;;
16506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16507 (eval "$ac_compile") 2>conftest.er1
16509 grep -v '^ *+' conftest.er1 >conftest.err
16511 cat conftest.err >&5
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); } &&
16514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16515 { (case "(($ac_try" in
16516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16517 *) ac_try_echo=$ac_try;;
16519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16520 (eval "$ac_try") 2>&5
16522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523 (exit $ac_status); }; } &&
16524 { ac_try='test -s conftest.$ac_objext'
16525 { (case "(($ac_try" in
16526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16527 *) ac_try_echo=$ac_try;;
16529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16530 (eval "$ac_try") 2>&5
16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); }; }; then
16534 ac_cv_type_int64_t=yes
16536 echo "$as_me: failed program was:" >&5
16537 sed 's/^/| /' conftest.$ac_ext >&5
16539 ac_cv_type_int64_t=no
16542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16544 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16545 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16546 if test $ac_cv_type_int64_t = yes; then
16548 cat >>confdefs.h <<_ACEOF
16549 #define HAVE_INT64_T 1
16554 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16555 echo "$as_me: error: Type int64_t required but not found" >&2;}
16556 { (exit 1); exit 1; }; }
16559 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16560 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16561 if test "${ac_cv_type_uint64_t+set}" = set; then
16562 echo $ECHO_N "(cached) $ECHO_C" >&6
16564 cat >conftest.$ac_ext <<_ACEOF
16567 cat confdefs.h >>conftest.$ac_ext
16568 cat >>conftest.$ac_ext <<_ACEOF
16569 /* end confdefs.h. */
16570 $ac_includes_default
16571 typedef uint64_t ac__type_new_;
16575 if ((ac__type_new_ *) 0)
16577 if (sizeof (ac__type_new_))
16583 rm -f conftest.$ac_objext
16584 if { (ac_try="$ac_compile"
16585 case "(($ac_try" in
16586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16587 *) ac_try_echo=$ac_try;;
16589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16590 (eval "$ac_compile") 2>conftest.er1
16592 grep -v '^ *+' conftest.er1 >conftest.err
16594 cat conftest.err >&5
16595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596 (exit $ac_status); } &&
16597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16598 { (case "(($ac_try" in
16599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16600 *) ac_try_echo=$ac_try;;
16602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16603 (eval "$ac_try") 2>&5
16605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); }; } &&
16607 { ac_try='test -s conftest.$ac_objext'
16608 { (case "(($ac_try" in
16609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16610 *) ac_try_echo=$ac_try;;
16612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16613 (eval "$ac_try") 2>&5
16615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616 (exit $ac_status); }; }; then
16617 ac_cv_type_uint64_t=yes
16619 echo "$as_me: failed program was:" >&5
16620 sed 's/^/| /' conftest.$ac_ext >&5
16622 ac_cv_type_uint64_t=no
16625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16627 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16628 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16629 if test $ac_cv_type_uint64_t = yes; then
16631 cat >>confdefs.h <<_ACEOF
16632 #define HAVE_UINT64_T 1
16637 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16638 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16639 if test "${ac_cv_type_u_int64_t+set}" = set; then
16640 echo $ECHO_N "(cached) $ECHO_C" >&6
16642 cat >conftest.$ac_ext <<_ACEOF
16645 cat confdefs.h >>conftest.$ac_ext
16646 cat >>conftest.$ac_ext <<_ACEOF
16647 /* end confdefs.h. */
16648 $ac_includes_default
16649 typedef u_int64_t ac__type_new_;
16653 if ((ac__type_new_ *) 0)
16655 if (sizeof (ac__type_new_))
16661 rm -f conftest.$ac_objext
16662 if { (ac_try="$ac_compile"
16663 case "(($ac_try" in
16664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16665 *) ac_try_echo=$ac_try;;
16667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16668 (eval "$ac_compile") 2>conftest.er1
16670 grep -v '^ *+' conftest.er1 >conftest.err
16672 cat conftest.err >&5
16673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674 (exit $ac_status); } &&
16675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16676 { (case "(($ac_try" in
16677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16678 *) ac_try_echo=$ac_try;;
16680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16681 (eval "$ac_try") 2>&5
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); }; } &&
16685 { ac_try='test -s conftest.$ac_objext'
16686 { (case "(($ac_try" in
16687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16688 *) ac_try_echo=$ac_try;;
16690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16691 (eval "$ac_try") 2>&5
16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); }; }; then
16695 ac_cv_type_u_int64_t=yes
16697 echo "$as_me: failed program was:" >&5
16698 sed 's/^/| /' conftest.$ac_ext >&5
16700 ac_cv_type_u_int64_t=no
16703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16705 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16706 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16707 if test $ac_cv_type_u_int64_t = yes; then
16709 cat >>confdefs.h <<_ACEOF
16710 #define HAVE_U_INT64_T 1
16715 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16716 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16717 { (exit 1); exit 1; }; }
16731 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16733 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16734 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16735 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16736 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16737 echo $ECHO_N "(cached) $ECHO_C" >&6
16739 cat >conftest.$ac_ext <<_ACEOF
16742 cat confdefs.h >>conftest.$ac_ext
16743 cat >>conftest.$ac_ext <<_ACEOF
16744 /* end confdefs.h. */
16745 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16746 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16747 #define $ac_func innocuous_$ac_func
16749 /* System header to define __stub macros and hopefully few prototypes,
16750 which can conflict with char $ac_func (); below.
16751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16752 <limits.h> exists even on freestanding compilers. */
16755 # include <limits.h>
16757 # include <assert.h>
16762 /* Override any GCC internal prototype to avoid an error.
16763 Use char because int might match the return type of a GCC
16764 builtin and then its argument prototype would still apply. */
16769 /* The GNU C library defines this for functions which it implements
16770 to always fail with ENOSYS. Some functions are actually named
16771 something starting with __ and the normal name is an alias. */
16772 #if defined __stub_$ac_func || defined __stub___$ac_func
16779 return $ac_func ();
16784 rm -f conftest.$ac_objext conftest$ac_exeext
16785 if { (ac_try="$ac_link"
16786 case "(($ac_try" in
16787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16788 *) ac_try_echo=$ac_try;;
16790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16791 (eval "$ac_link") 2>conftest.er1
16793 grep -v '^ *+' conftest.er1 >conftest.err
16795 cat conftest.err >&5
16796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); } &&
16798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16799 { (case "(($ac_try" in
16800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16801 *) ac_try_echo=$ac_try;;
16803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16804 (eval "$ac_try") 2>&5
16806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807 (exit $ac_status); }; } &&
16808 { ac_try='test -s conftest$ac_exeext'
16809 { (case "(($ac_try" in
16810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16811 *) ac_try_echo=$ac_try;;
16813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16814 (eval "$ac_try") 2>&5
16816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); }; }; then
16818 eval "$as_ac_var=yes"
16820 echo "$as_me: failed program was:" >&5
16821 sed 's/^/| /' conftest.$ac_ext >&5
16823 eval "$as_ac_var=no"
16826 rm -f core conftest.err conftest.$ac_objext \
16827 conftest$ac_exeext conftest.$ac_ext
16829 ac_res=`eval echo '${'$as_ac_var'}'`
16830 { echo "$as_me:$LINENO: result: $ac_res" >&5
16831 echo "${ECHO_T}$ac_res" >&6; }
16832 if test `eval echo '${'$as_ac_var'}'` = yes; then
16833 cat >>confdefs.h <<_ACEOF
16834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16844 for ac_func in powf fmodf strtof round
16846 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16847 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16849 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16850 echo $ECHO_N "(cached) $ECHO_C" >&6
16852 cat >conftest.$ac_ext <<_ACEOF
16855 cat confdefs.h >>conftest.$ac_ext
16856 cat >>conftest.$ac_ext <<_ACEOF
16857 /* end confdefs.h. */
16858 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16860 #define $ac_func innocuous_$ac_func
16862 /* System header to define __stub macros and hopefully few prototypes,
16863 which can conflict with char $ac_func (); below.
16864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16865 <limits.h> exists even on freestanding compilers. */
16868 # include <limits.h>
16870 # include <assert.h>
16875 /* Override any GCC internal prototype to avoid an error.
16876 Use char because int might match the return type of a GCC
16877 builtin and then its argument prototype would still apply. */
16882 /* The GNU C library defines this for functions which it implements
16883 to always fail with ENOSYS. Some functions are actually named
16884 something starting with __ and the normal name is an alias. */
16885 #if defined __stub_$ac_func || defined __stub___$ac_func
16892 return $ac_func ();
16897 rm -f conftest.$ac_objext conftest$ac_exeext
16898 if { (ac_try="$ac_link"
16899 case "(($ac_try" in
16900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16901 *) ac_try_echo=$ac_try;;
16903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16904 (eval "$ac_link") 2>conftest.er1
16906 grep -v '^ *+' conftest.er1 >conftest.err
16908 cat conftest.err >&5
16909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910 (exit $ac_status); } &&
16911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16912 { (case "(($ac_try" in
16913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16914 *) ac_try_echo=$ac_try;;
16916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16917 (eval "$ac_try") 2>&5
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); }; } &&
16921 { ac_try='test -s conftest$ac_exeext'
16922 { (case "(($ac_try" in
16923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16924 *) ac_try_echo=$ac_try;;
16926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16927 (eval "$ac_try") 2>&5
16929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); }; }; then
16931 eval "$as_ac_var=yes"
16933 echo "$as_me: failed program was:" >&5
16934 sed 's/^/| /' conftest.$ac_ext >&5
16936 eval "$as_ac_var=no"
16939 rm -f core conftest.err conftest.$ac_objext \
16940 conftest$ac_exeext conftest.$ac_ext
16942 ac_res=`eval echo '${'$as_ac_var'}'`
16943 { echo "$as_me:$LINENO: result: $ac_res" >&5
16944 echo "${ECHO_T}$ac_res" >&6; }
16945 if test `eval echo '${'$as_ac_var'}'` = yes; then
16946 cat >>confdefs.h <<_ACEOF
16947 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16958 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16960 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16961 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16962 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16963 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16964 echo $ECHO_N "(cached) $ECHO_C" >&6
16966 cat >conftest.$ac_ext <<_ACEOF
16969 cat confdefs.h >>conftest.$ac_ext
16970 cat >>conftest.$ac_ext <<_ACEOF
16971 /* end confdefs.h. */
16972 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16974 #define $ac_func innocuous_$ac_func
16976 /* System header to define __stub macros and hopefully few prototypes,
16977 which can conflict with char $ac_func (); below.
16978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16979 <limits.h> exists even on freestanding compilers. */
16982 # include <limits.h>
16984 # include <assert.h>
16989 /* Override any GCC internal prototype to avoid an error.
16990 Use char because int might match the return type of a GCC
16991 builtin and then its argument prototype would still apply. */
16996 /* The GNU C library defines this for functions which it implements
16997 to always fail with ENOSYS. Some functions are actually named
16998 something starting with __ and the normal name is an alias. */
16999 #if defined __stub_$ac_func || defined __stub___$ac_func
17006 return $ac_func ();
17011 rm -f conftest.$ac_objext conftest$ac_exeext
17012 if { (ac_try="$ac_link"
17013 case "(($ac_try" in
17014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17015 *) ac_try_echo=$ac_try;;
17017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17018 (eval "$ac_link") 2>conftest.er1
17020 grep -v '^ *+' conftest.er1 >conftest.err
17022 cat conftest.err >&5
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); } &&
17025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17026 { (case "(($ac_try" in
17027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17028 *) ac_try_echo=$ac_try;;
17030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17031 (eval "$ac_try") 2>&5
17033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034 (exit $ac_status); }; } &&
17035 { ac_try='test -s conftest$ac_exeext'
17036 { (case "(($ac_try" in
17037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17038 *) ac_try_echo=$ac_try;;
17040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17041 (eval "$ac_try") 2>&5
17043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044 (exit $ac_status); }; }; then
17045 eval "$as_ac_var=yes"
17047 echo "$as_me: failed program was:" >&5
17048 sed 's/^/| /' conftest.$ac_ext >&5
17050 eval "$as_ac_var=no"
17053 rm -f core conftest.err conftest.$ac_objext \
17054 conftest$ac_exeext conftest.$ac_ext
17056 ac_res=`eval echo '${'$as_ac_var'}'`
17057 { echo "$as_me:$LINENO: result: $ac_res" >&5
17058 echo "${ECHO_T}$ac_res" >&6; }
17059 if test `eval echo '${'$as_ac_var'}'` = yes; then
17060 cat >>confdefs.h <<_ACEOF
17061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17070 for ac_func in isatty mkdtemp mkstemp
17072 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17073 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17074 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17075 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17076 echo $ECHO_N "(cached) $ECHO_C" >&6
17078 cat >conftest.$ac_ext <<_ACEOF
17081 cat confdefs.h >>conftest.$ac_ext
17082 cat >>conftest.$ac_ext <<_ACEOF
17083 /* end confdefs.h. */
17084 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17086 #define $ac_func innocuous_$ac_func
17088 /* System header to define __stub macros and hopefully few prototypes,
17089 which can conflict with char $ac_func (); below.
17090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17091 <limits.h> exists even on freestanding compilers. */
17094 # include <limits.h>
17096 # include <assert.h>
17101 /* Override any GCC internal prototype to avoid an error.
17102 Use char because int might match the return type of a GCC
17103 builtin and then its argument prototype would still apply. */
17108 /* The GNU C library defines this for functions which it implements
17109 to always fail with ENOSYS. Some functions are actually named
17110 something starting with __ and the normal name is an alias. */
17111 #if defined __stub_$ac_func || defined __stub___$ac_func
17118 return $ac_func ();
17123 rm -f conftest.$ac_objext conftest$ac_exeext
17124 if { (ac_try="$ac_link"
17125 case "(($ac_try" in
17126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17127 *) ac_try_echo=$ac_try;;
17129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17130 (eval "$ac_link") 2>conftest.er1
17132 grep -v '^ *+' conftest.er1 >conftest.err
17134 cat conftest.err >&5
17135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136 (exit $ac_status); } &&
17137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17138 { (case "(($ac_try" in
17139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17140 *) ac_try_echo=$ac_try;;
17142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17143 (eval "$ac_try") 2>&5
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); }; } &&
17147 { ac_try='test -s conftest$ac_exeext'
17148 { (case "(($ac_try" in
17149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17150 *) ac_try_echo=$ac_try;;
17152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17153 (eval "$ac_try") 2>&5
17155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156 (exit $ac_status); }; }; then
17157 eval "$as_ac_var=yes"
17159 echo "$as_me: failed program was:" >&5
17160 sed 's/^/| /' conftest.$ac_ext >&5
17162 eval "$as_ac_var=no"
17165 rm -f core conftest.err conftest.$ac_objext \
17166 conftest$ac_exeext conftest.$ac_ext
17168 ac_res=`eval echo '${'$as_ac_var'}'`
17169 { echo "$as_me:$LINENO: result: $ac_res" >&5
17170 echo "${ECHO_T}$ac_res" >&6; }
17171 if test `eval echo '${'$as_ac_var'}'` = yes; then
17172 cat >>confdefs.h <<_ACEOF
17173 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17186 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17188 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17189 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17190 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17191 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17192 echo $ECHO_N "(cached) $ECHO_C" >&6
17194 cat >conftest.$ac_ext <<_ACEOF
17197 cat confdefs.h >>conftest.$ac_ext
17198 cat >>conftest.$ac_ext <<_ACEOF
17199 /* end confdefs.h. */
17200 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17202 #define $ac_func innocuous_$ac_func
17204 /* System header to define __stub macros and hopefully few prototypes,
17205 which can conflict with char $ac_func (); below.
17206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17207 <limits.h> exists even on freestanding compilers. */
17210 # include <limits.h>
17212 # include <assert.h>
17217 /* Override any GCC internal prototype to avoid an error.
17218 Use char because int might match the return type of a GCC
17219 builtin and then its argument prototype would still apply. */
17224 /* The GNU C library defines this for functions which it implements
17225 to always fail with ENOSYS. Some functions are actually named
17226 something starting with __ and the normal name is an alias. */
17227 #if defined __stub_$ac_func || defined __stub___$ac_func
17234 return $ac_func ();
17239 rm -f conftest.$ac_objext conftest$ac_exeext
17240 if { (ac_try="$ac_link"
17241 case "(($ac_try" in
17242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17243 *) ac_try_echo=$ac_try;;
17245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17246 (eval "$ac_link") 2>conftest.er1
17248 grep -v '^ *+' conftest.er1 >conftest.err
17250 cat conftest.err >&5
17251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252 (exit $ac_status); } &&
17253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17254 { (case "(($ac_try" in
17255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17256 *) ac_try_echo=$ac_try;;
17258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17259 (eval "$ac_try") 2>&5
17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); }; } &&
17263 { ac_try='test -s conftest$ac_exeext'
17264 { (case "(($ac_try" in
17265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17266 *) ac_try_echo=$ac_try;;
17268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17269 (eval "$ac_try") 2>&5
17271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272 (exit $ac_status); }; }; then
17273 eval "$as_ac_var=yes"
17275 echo "$as_me: failed program was:" >&5
17276 sed 's/^/| /' conftest.$ac_ext >&5
17278 eval "$as_ac_var=no"
17281 rm -f core conftest.err conftest.$ac_objext \
17282 conftest$ac_exeext conftest.$ac_ext
17284 ac_res=`eval echo '${'$as_ac_var'}'`
17285 { echo "$as_me:$LINENO: result: $ac_res" >&5
17286 echo "${ECHO_T}$ac_res" >&6; }
17287 if test `eval echo '${'$as_ac_var'}'` = yes; then
17288 cat >>confdefs.h <<_ACEOF
17289 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17299 for ac_func in strerror strerror_r setenv arc4random
17301 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17302 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17303 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17304 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17305 echo $ECHO_N "(cached) $ECHO_C" >&6
17307 cat >conftest.$ac_ext <<_ACEOF
17310 cat confdefs.h >>conftest.$ac_ext
17311 cat >>conftest.$ac_ext <<_ACEOF
17312 /* end confdefs.h. */
17313 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17314 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17315 #define $ac_func innocuous_$ac_func
17317 /* System header to define __stub macros and hopefully few prototypes,
17318 which can conflict with char $ac_func (); below.
17319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17320 <limits.h> exists even on freestanding compilers. */
17323 # include <limits.h>
17325 # include <assert.h>
17330 /* Override any GCC internal prototype to avoid an error.
17331 Use char because int might match the return type of a GCC
17332 builtin and then its argument prototype would still apply. */
17337 /* The GNU C library defines this for functions which it implements
17338 to always fail with ENOSYS. Some functions are actually named
17339 something starting with __ and the normal name is an alias. */
17340 #if defined __stub_$ac_func || defined __stub___$ac_func
17347 return $ac_func ();
17352 rm -f conftest.$ac_objext conftest$ac_exeext
17353 if { (ac_try="$ac_link"
17354 case "(($ac_try" in
17355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17356 *) ac_try_echo=$ac_try;;
17358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17359 (eval "$ac_link") 2>conftest.er1
17361 grep -v '^ *+' conftest.er1 >conftest.err
17363 cat conftest.err >&5
17364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); } &&
17366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17367 { (case "(($ac_try" in
17368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17369 *) ac_try_echo=$ac_try;;
17371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17372 (eval "$ac_try") 2>&5
17374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375 (exit $ac_status); }; } &&
17376 { ac_try='test -s conftest$ac_exeext'
17377 { (case "(($ac_try" in
17378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17379 *) ac_try_echo=$ac_try;;
17381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17382 (eval "$ac_try") 2>&5
17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); }; }; then
17386 eval "$as_ac_var=yes"
17388 echo "$as_me: failed program was:" >&5
17389 sed 's/^/| /' conftest.$ac_ext >&5
17391 eval "$as_ac_var=no"
17394 rm -f core conftest.err conftest.$ac_objext \
17395 conftest$ac_exeext conftest.$ac_ext
17397 ac_res=`eval echo '${'$as_ac_var'}'`
17398 { echo "$as_me:$LINENO: result: $ac_res" >&5
17399 echo "${ECHO_T}$ac_res" >&6; }
17400 if test `eval echo '${'$as_ac_var'}'` = yes; then
17401 cat >>confdefs.h <<_ACEOF
17402 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17412 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17414 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17415 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17416 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17417 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17418 echo $ECHO_N "(cached) $ECHO_C" >&6
17420 cat >conftest.$ac_ext <<_ACEOF
17423 cat confdefs.h >>conftest.$ac_ext
17424 cat >>conftest.$ac_ext <<_ACEOF
17425 /* end confdefs.h. */
17426 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17428 #define $ac_func innocuous_$ac_func
17430 /* System header to define __stub macros and hopefully few prototypes,
17431 which can conflict with char $ac_func (); below.
17432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17433 <limits.h> exists even on freestanding compilers. */
17436 # include <limits.h>
17438 # include <assert.h>
17443 /* Override any GCC internal prototype to avoid an error.
17444 Use char because int might match the return type of a GCC
17445 builtin and then its argument prototype would still apply. */
17450 /* The GNU C library defines this for functions which it implements
17451 to always fail with ENOSYS. Some functions are actually named
17452 something starting with __ and the normal name is an alias. */
17453 #if defined __stub_$ac_func || defined __stub___$ac_func
17460 return $ac_func ();
17465 rm -f conftest.$ac_objext conftest$ac_exeext
17466 if { (ac_try="$ac_link"
17467 case "(($ac_try" in
17468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17469 *) ac_try_echo=$ac_try;;
17471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17472 (eval "$ac_link") 2>conftest.er1
17474 grep -v '^ *+' conftest.er1 >conftest.err
17476 cat conftest.err >&5
17477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478 (exit $ac_status); } &&
17479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17480 { (case "(($ac_try" in
17481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17482 *) ac_try_echo=$ac_try;;
17484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17485 (eval "$ac_try") 2>&5
17487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); }; } &&
17489 { ac_try='test -s conftest$ac_exeext'
17490 { (case "(($ac_try" in
17491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17492 *) ac_try_echo=$ac_try;;
17494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17495 (eval "$ac_try") 2>&5
17497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498 (exit $ac_status); }; }; then
17499 eval "$as_ac_var=yes"
17501 echo "$as_me: failed program was:" >&5
17502 sed 's/^/| /' conftest.$ac_ext >&5
17504 eval "$as_ac_var=no"
17507 rm -f core conftest.err conftest.$ac_objext \
17508 conftest$ac_exeext conftest.$ac_ext
17510 ac_res=`eval echo '${'$as_ac_var'}'`
17511 { echo "$as_me:$LINENO: result: $ac_res" >&5
17512 echo "${ECHO_T}$ac_res" >&6; }
17513 if test `eval echo '${'$as_ac_var'}'` = yes; then
17514 cat >>confdefs.h <<_ACEOF
17515 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17526 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17528 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17529 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17530 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17531 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17532 echo $ECHO_N "(cached) $ECHO_C" >&6
17534 cat >conftest.$ac_ext <<_ACEOF
17537 cat confdefs.h >>conftest.$ac_ext
17538 cat >>conftest.$ac_ext <<_ACEOF
17539 /* end confdefs.h. */
17540 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17542 #define $ac_func innocuous_$ac_func
17544 /* System header to define __stub macros and hopefully few prototypes,
17545 which can conflict with char $ac_func (); below.
17546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17547 <limits.h> exists even on freestanding compilers. */
17550 # include <limits.h>
17552 # include <assert.h>
17557 /* Override any GCC internal prototype to avoid an error.
17558 Use char because int might match the return type of a GCC
17559 builtin and then its argument prototype would still apply. */
17564 /* The GNU C library defines this for functions which it implements
17565 to always fail with ENOSYS. Some functions are actually named
17566 something starting with __ and the normal name is an alias. */
17567 #if defined __stub_$ac_func || defined __stub___$ac_func
17574 return $ac_func ();
17579 rm -f conftest.$ac_objext conftest$ac_exeext
17580 if { (ac_try="$ac_link"
17581 case "(($ac_try" in
17582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17583 *) ac_try_echo=$ac_try;;
17585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17586 (eval "$ac_link") 2>conftest.er1
17588 grep -v '^ *+' conftest.er1 >conftest.err
17590 cat conftest.err >&5
17591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592 (exit $ac_status); } &&
17593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17594 { (case "(($ac_try" in
17595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17596 *) ac_try_echo=$ac_try;;
17598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17599 (eval "$ac_try") 2>&5
17601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602 (exit $ac_status); }; } &&
17603 { ac_try='test -s conftest$ac_exeext'
17604 { (case "(($ac_try" in
17605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17606 *) ac_try_echo=$ac_try;;
17608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17609 (eval "$ac_try") 2>&5
17611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); }; }; then
17613 eval "$as_ac_var=yes"
17615 echo "$as_me: failed program was:" >&5
17616 sed 's/^/| /' conftest.$ac_ext >&5
17618 eval "$as_ac_var=no"
17621 rm -f core conftest.err conftest.$ac_objext \
17622 conftest$ac_exeext conftest.$ac_ext
17624 ac_res=`eval echo '${'$as_ac_var'}'`
17625 { echo "$as_me:$LINENO: result: $ac_res" >&5
17626 echo "${ECHO_T}$ac_res" >&6; }
17627 if test `eval echo '${'$as_ac_var'}'` = yes; then
17628 cat >>confdefs.h <<_ACEOF
17629 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17635 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17636 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17637 if test "${llvm_cv_c_printf_a+set}" = set; then
17638 echo $ECHO_N "(cached) $ECHO_C" >&6
17641 ac_cpp='$CPP $CPPFLAGS'
17642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17646 if test "$cross_compiling" = yes; then
17647 llvmac_cv_c_printf_a=no
17649 cat >conftest.$ac_ext <<_ACEOF
17653 cat confdefs.h >>conftest.$ac_ext
17654 cat >>conftest.$ac_ext <<_ACEOF
17655 /* end confdefs.h. */
17658 #include <stdlib.h>
17664 volatile double A, B;
17668 sprintf(Buffer, "%a", A);
17672 if (A != 0x1.999999999999ap-4)
17679 rm -f conftest$ac_exeext
17680 if { (ac_try="$ac_link"
17681 case "(($ac_try" in
17682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17683 *) ac_try_echo=$ac_try;;
17685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17686 (eval "$ac_link") 2>&5
17688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17690 { (case "(($ac_try" in
17691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17692 *) ac_try_echo=$ac_try;;
17694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17695 (eval "$ac_try") 2>&5
17697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698 (exit $ac_status); }; }; then
17699 llvm_cv_c_printf_a=yes
17701 echo "$as_me: program exited with status $ac_status" >&5
17702 echo "$as_me: failed program was:" >&5
17703 sed 's/^/| /' conftest.$ac_ext >&5
17705 ( exit $ac_status )
17706 llvmac_cv_c_printf_a=no
17708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17713 ac_cpp='$CPP $CPPFLAGS'
17714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17719 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17720 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17721 if test "$llvm_cv_c_printf_a" = "yes"; then
17723 cat >>confdefs.h <<\_ACEOF
17724 #define HAVE_PRINTF_A 1
17730 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17731 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17732 if test "${ac_cv_func_rand48+set}" = set; then
17733 echo $ECHO_N "(cached) $ECHO_C" >&6
17736 ac_cpp='$CXXCPP $CPPFLAGS'
17737 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17738 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17739 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17741 cat >conftest.$ac_ext <<_ACEOF
17744 cat confdefs.h >>conftest.$ac_ext
17745 cat >>conftest.$ac_ext <<_ACEOF
17746 /* end confdefs.h. */
17747 #include <stdlib.h>
17751 srand48(0);lrand48();drand48();
17756 rm -f conftest.$ac_objext
17757 if { (ac_try="$ac_compile"
17758 case "(($ac_try" in
17759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17760 *) ac_try_echo=$ac_try;;
17762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17763 (eval "$ac_compile") 2>conftest.er1
17765 grep -v '^ *+' conftest.er1 >conftest.err
17767 cat conftest.err >&5
17768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); } &&
17770 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17771 { (case "(($ac_try" in
17772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17773 *) ac_try_echo=$ac_try;;
17775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17776 (eval "$ac_try") 2>&5
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); }; } &&
17780 { ac_try='test -s conftest.$ac_objext'
17781 { (case "(($ac_try" in
17782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17783 *) ac_try_echo=$ac_try;;
17785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17786 (eval "$ac_try") 2>&5
17788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789 (exit $ac_status); }; }; then
17790 ac_cv_func_rand48=yes
17792 echo "$as_me: failed program was:" >&5
17793 sed 's/^/| /' conftest.$ac_ext >&5
17795 ac_cv_func_rand48=no
17798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17800 ac_cpp='$CPP $CPPFLAGS'
17801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17806 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17807 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17809 if test "$ac_cv_func_rand48" = "yes" ; then
17811 cat >>confdefs.h <<\_ACEOF
17812 #define HAVE_RAND48 1
17818 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17819 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17820 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17821 echo $ECHO_N "(cached) $ECHO_C" >&6
17823 cat >conftest.$ac_ext <<_ACEOF
17826 cat confdefs.h >>conftest.$ac_ext
17827 cat >>conftest.$ac_ext <<_ACEOF
17828 /* end confdefs.h. */
17829 $ac_includes_default
17834 char *p = (char *) strerror_s;
17842 rm -f conftest.$ac_objext
17843 if { (ac_try="$ac_compile"
17844 case "(($ac_try" in
17845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17846 *) ac_try_echo=$ac_try;;
17848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17849 (eval "$ac_compile") 2>conftest.er1
17851 grep -v '^ *+' conftest.er1 >conftest.err
17853 cat conftest.err >&5
17854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855 (exit $ac_status); } &&
17856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17857 { (case "(($ac_try" in
17858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17859 *) ac_try_echo=$ac_try;;
17861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17862 (eval "$ac_try") 2>&5
17864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865 (exit $ac_status); }; } &&
17866 { ac_try='test -s conftest.$ac_objext'
17867 { (case "(($ac_try" in
17868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17869 *) ac_try_echo=$ac_try;;
17871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17872 (eval "$ac_try") 2>&5
17874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); }; }; then
17876 ac_cv_have_decl_strerror_s=yes
17878 echo "$as_me: failed program was:" >&5
17879 sed 's/^/| /' conftest.$ac_ext >&5
17881 ac_cv_have_decl_strerror_s=no
17884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17886 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17887 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17888 if test $ac_cv_have_decl_strerror_s = yes; then
17890 cat >>confdefs.h <<_ACEOF
17891 #define HAVE_DECL_STRERROR_S 1
17896 cat >>confdefs.h <<_ACEOF
17897 #define HAVE_DECL_STRERROR_S 0
17905 if test "$llvm_cv_os_type" = "MingW" ; then
17906 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17907 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17908 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17909 echo $ECHO_N "(cached) $ECHO_C" >&6
17911 ac_check_lib_save_LIBS=$LIBS
17913 cat >conftest.$ac_ext <<_ACEOF
17916 cat confdefs.h >>conftest.$ac_ext
17917 cat >>conftest.$ac_ext <<_ACEOF
17918 /* end confdefs.h. */
17920 /* Override any GCC internal prototype to avoid an error.
17921 Use char because int might match the return type of a GCC
17922 builtin and then its argument prototype would still apply. */
17935 rm -f conftest.$ac_objext conftest$ac_exeext
17936 if { (ac_try="$ac_link"
17937 case "(($ac_try" in
17938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17939 *) ac_try_echo=$ac_try;;
17941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17942 (eval "$ac_link") 2>conftest.er1
17944 grep -v '^ *+' conftest.er1 >conftest.err
17946 cat conftest.err >&5
17947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17948 (exit $ac_status); } &&
17949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17950 { (case "(($ac_try" in
17951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17952 *) ac_try_echo=$ac_try;;
17954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17955 (eval "$ac_try") 2>&5
17957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958 (exit $ac_status); }; } &&
17959 { ac_try='test -s conftest$ac_exeext'
17960 { (case "(($ac_try" in
17961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17962 *) ac_try_echo=$ac_try;;
17964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17965 (eval "$ac_try") 2>&5
17967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968 (exit $ac_status); }; }; then
17969 ac_cv_lib_gcc__alloca=yes
17971 echo "$as_me: failed program was:" >&5
17972 sed 's/^/| /' conftest.$ac_ext >&5
17974 ac_cv_lib_gcc__alloca=no
17977 rm -f core conftest.err conftest.$ac_objext \
17978 conftest$ac_exeext conftest.$ac_ext
17979 LIBS=$ac_check_lib_save_LIBS
17981 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17982 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17983 if test $ac_cv_lib_gcc__alloca = yes; then
17985 cat >>confdefs.h <<\_ACEOF
17986 #define HAVE__ALLOCA 1
17991 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17992 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17993 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17994 echo $ECHO_N "(cached) $ECHO_C" >&6
17996 ac_check_lib_save_LIBS=$LIBS
17998 cat >conftest.$ac_ext <<_ACEOF
18001 cat confdefs.h >>conftest.$ac_ext
18002 cat >>conftest.$ac_ext <<_ACEOF
18003 /* end confdefs.h. */
18005 /* Override any GCC internal prototype to avoid an error.
18006 Use char because int might match the return type of a GCC
18007 builtin and then its argument prototype would still apply. */
18015 return __alloca ();
18020 rm -f conftest.$ac_objext conftest$ac_exeext
18021 if { (ac_try="$ac_link"
18022 case "(($ac_try" in
18023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18024 *) ac_try_echo=$ac_try;;
18026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18027 (eval "$ac_link") 2>conftest.er1
18029 grep -v '^ *+' conftest.er1 >conftest.err
18031 cat conftest.err >&5
18032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18033 (exit $ac_status); } &&
18034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18035 { (case "(($ac_try" in
18036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18037 *) ac_try_echo=$ac_try;;
18039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18040 (eval "$ac_try") 2>&5
18042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18043 (exit $ac_status); }; } &&
18044 { ac_try='test -s conftest$ac_exeext'
18045 { (case "(($ac_try" in
18046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18047 *) ac_try_echo=$ac_try;;
18049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18050 (eval "$ac_try") 2>&5
18052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18053 (exit $ac_status); }; }; then
18054 ac_cv_lib_gcc___alloca=yes
18056 echo "$as_me: failed program was:" >&5
18057 sed 's/^/| /' conftest.$ac_ext >&5
18059 ac_cv_lib_gcc___alloca=no
18062 rm -f core conftest.err conftest.$ac_objext \
18063 conftest$ac_exeext conftest.$ac_ext
18064 LIBS=$ac_check_lib_save_LIBS
18066 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18067 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18068 if test $ac_cv_lib_gcc___alloca = yes; then
18070 cat >>confdefs.h <<\_ACEOF
18071 #define HAVE___ALLOCA 1
18076 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18077 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18078 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18079 echo $ECHO_N "(cached) $ECHO_C" >&6
18081 ac_check_lib_save_LIBS=$LIBS
18083 cat >conftest.$ac_ext <<_ACEOF
18086 cat confdefs.h >>conftest.$ac_ext
18087 cat >>conftest.$ac_ext <<_ACEOF
18088 /* end confdefs.h. */
18090 /* Override any GCC internal prototype to avoid an error.
18091 Use char because int might match the return type of a GCC
18092 builtin and then its argument prototype would still apply. */
18100 return __chkstk ();
18105 rm -f conftest.$ac_objext conftest$ac_exeext
18106 if { (ac_try="$ac_link"
18107 case "(($ac_try" in
18108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18109 *) ac_try_echo=$ac_try;;
18111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18112 (eval "$ac_link") 2>conftest.er1
18114 grep -v '^ *+' conftest.er1 >conftest.err
18116 cat conftest.err >&5
18117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118 (exit $ac_status); } &&
18119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18120 { (case "(($ac_try" in
18121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18122 *) ac_try_echo=$ac_try;;
18124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18125 (eval "$ac_try") 2>&5
18127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128 (exit $ac_status); }; } &&
18129 { ac_try='test -s conftest$ac_exeext'
18130 { (case "(($ac_try" in
18131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18132 *) ac_try_echo=$ac_try;;
18134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18135 (eval "$ac_try") 2>&5
18137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138 (exit $ac_status); }; }; then
18139 ac_cv_lib_gcc___chkstk=yes
18141 echo "$as_me: failed program was:" >&5
18142 sed 's/^/| /' conftest.$ac_ext >&5
18144 ac_cv_lib_gcc___chkstk=no
18147 rm -f core conftest.err conftest.$ac_objext \
18148 conftest$ac_exeext conftest.$ac_ext
18149 LIBS=$ac_check_lib_save_LIBS
18151 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18152 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18153 if test $ac_cv_lib_gcc___chkstk = yes; then
18155 cat >>confdefs.h <<\_ACEOF
18156 #define HAVE___CHKSTK 1
18161 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18162 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18163 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18164 echo $ECHO_N "(cached) $ECHO_C" >&6
18166 ac_check_lib_save_LIBS=$LIBS
18168 cat >conftest.$ac_ext <<_ACEOF
18171 cat confdefs.h >>conftest.$ac_ext
18172 cat >>conftest.$ac_ext <<_ACEOF
18173 /* end confdefs.h. */
18175 /* Override any GCC internal prototype to avoid an error.
18176 Use char because int might match the return type of a GCC
18177 builtin and then its argument prototype would still apply. */
18185 return ___chkstk ();
18190 rm -f conftest.$ac_objext conftest$ac_exeext
18191 if { (ac_try="$ac_link"
18192 case "(($ac_try" in
18193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18194 *) ac_try_echo=$ac_try;;
18196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18197 (eval "$ac_link") 2>conftest.er1
18199 grep -v '^ *+' conftest.er1 >conftest.err
18201 cat conftest.err >&5
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); } &&
18204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18205 { (case "(($ac_try" in
18206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18207 *) ac_try_echo=$ac_try;;
18209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18210 (eval "$ac_try") 2>&5
18212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213 (exit $ac_status); }; } &&
18214 { ac_try='test -s conftest$ac_exeext'
18215 { (case "(($ac_try" in
18216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18217 *) ac_try_echo=$ac_try;;
18219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18220 (eval "$ac_try") 2>&5
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); }; }; then
18224 ac_cv_lib_gcc____chkstk=yes
18226 echo "$as_me: failed program was:" >&5
18227 sed 's/^/| /' conftest.$ac_ext >&5
18229 ac_cv_lib_gcc____chkstk=no
18232 rm -f core conftest.err conftest.$ac_objext \
18233 conftest$ac_exeext conftest.$ac_ext
18234 LIBS=$ac_check_lib_save_LIBS
18236 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18237 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18238 if test $ac_cv_lib_gcc____chkstk = yes; then
18240 cat >>confdefs.h <<\_ACEOF
18241 #define HAVE____CHKSTK 1
18247 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18248 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18249 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18250 echo $ECHO_N "(cached) $ECHO_C" >&6
18252 ac_check_lib_save_LIBS=$LIBS
18254 cat >conftest.$ac_ext <<_ACEOF
18257 cat confdefs.h >>conftest.$ac_ext
18258 cat >>conftest.$ac_ext <<_ACEOF
18259 /* end confdefs.h. */
18261 /* Override any GCC internal prototype to avoid an error.
18262 Use char because int might match the return type of a GCC
18263 builtin and then its argument prototype would still apply. */
18271 return __ashldi3 ();
18276 rm -f conftest.$ac_objext conftest$ac_exeext
18277 if { (ac_try="$ac_link"
18278 case "(($ac_try" in
18279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18280 *) ac_try_echo=$ac_try;;
18282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18283 (eval "$ac_link") 2>conftest.er1
18285 grep -v '^ *+' conftest.er1 >conftest.err
18287 cat conftest.err >&5
18288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289 (exit $ac_status); } &&
18290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18291 { (case "(($ac_try" in
18292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18293 *) ac_try_echo=$ac_try;;
18295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18296 (eval "$ac_try") 2>&5
18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); }; } &&
18300 { ac_try='test -s conftest$ac_exeext'
18301 { (case "(($ac_try" in
18302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18303 *) ac_try_echo=$ac_try;;
18305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18306 (eval "$ac_try") 2>&5
18308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18309 (exit $ac_status); }; }; then
18310 ac_cv_lib_gcc___ashldi3=yes
18312 echo "$as_me: failed program was:" >&5
18313 sed 's/^/| /' conftest.$ac_ext >&5
18315 ac_cv_lib_gcc___ashldi3=no
18318 rm -f core conftest.err conftest.$ac_objext \
18319 conftest$ac_exeext conftest.$ac_ext
18320 LIBS=$ac_check_lib_save_LIBS
18322 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18323 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18324 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18326 cat >>confdefs.h <<\_ACEOF
18327 #define HAVE___ASHLDI3 1
18332 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18333 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18334 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18335 echo $ECHO_N "(cached) $ECHO_C" >&6
18337 ac_check_lib_save_LIBS=$LIBS
18339 cat >conftest.$ac_ext <<_ACEOF
18342 cat confdefs.h >>conftest.$ac_ext
18343 cat >>conftest.$ac_ext <<_ACEOF
18344 /* end confdefs.h. */
18346 /* Override any GCC internal prototype to avoid an error.
18347 Use char because int might match the return type of a GCC
18348 builtin and then its argument prototype would still apply. */
18356 return __ashrdi3 ();
18361 rm -f conftest.$ac_objext conftest$ac_exeext
18362 if { (ac_try="$ac_link"
18363 case "(($ac_try" in
18364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18365 *) ac_try_echo=$ac_try;;
18367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18368 (eval "$ac_link") 2>conftest.er1
18370 grep -v '^ *+' conftest.er1 >conftest.err
18372 cat conftest.err >&5
18373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374 (exit $ac_status); } &&
18375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18376 { (case "(($ac_try" in
18377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18378 *) ac_try_echo=$ac_try;;
18380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18381 (eval "$ac_try") 2>&5
18383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18384 (exit $ac_status); }; } &&
18385 { ac_try='test -s conftest$ac_exeext'
18386 { (case "(($ac_try" in
18387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18388 *) ac_try_echo=$ac_try;;
18390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18391 (eval "$ac_try") 2>&5
18393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394 (exit $ac_status); }; }; then
18395 ac_cv_lib_gcc___ashrdi3=yes
18397 echo "$as_me: failed program was:" >&5
18398 sed 's/^/| /' conftest.$ac_ext >&5
18400 ac_cv_lib_gcc___ashrdi3=no
18403 rm -f core conftest.err conftest.$ac_objext \
18404 conftest$ac_exeext conftest.$ac_ext
18405 LIBS=$ac_check_lib_save_LIBS
18407 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18408 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18409 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18411 cat >>confdefs.h <<\_ACEOF
18412 #define HAVE___ASHRDI3 1
18417 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18418 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18419 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18420 echo $ECHO_N "(cached) $ECHO_C" >&6
18422 ac_check_lib_save_LIBS=$LIBS
18424 cat >conftest.$ac_ext <<_ACEOF
18427 cat confdefs.h >>conftest.$ac_ext
18428 cat >>conftest.$ac_ext <<_ACEOF
18429 /* end confdefs.h. */
18431 /* Override any GCC internal prototype to avoid an error.
18432 Use char because int might match the return type of a GCC
18433 builtin and then its argument prototype would still apply. */
18441 return __divdi3 ();
18446 rm -f conftest.$ac_objext conftest$ac_exeext
18447 if { (ac_try="$ac_link"
18448 case "(($ac_try" in
18449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18450 *) ac_try_echo=$ac_try;;
18452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18453 (eval "$ac_link") 2>conftest.er1
18455 grep -v '^ *+' conftest.er1 >conftest.err
18457 cat conftest.err >&5
18458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459 (exit $ac_status); } &&
18460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18461 { (case "(($ac_try" in
18462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18463 *) ac_try_echo=$ac_try;;
18465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18466 (eval "$ac_try") 2>&5
18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); }; } &&
18470 { ac_try='test -s conftest$ac_exeext'
18471 { (case "(($ac_try" in
18472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18473 *) ac_try_echo=$ac_try;;
18475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18476 (eval "$ac_try") 2>&5
18478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479 (exit $ac_status); }; }; then
18480 ac_cv_lib_gcc___divdi3=yes
18482 echo "$as_me: failed program was:" >&5
18483 sed 's/^/| /' conftest.$ac_ext >&5
18485 ac_cv_lib_gcc___divdi3=no
18488 rm -f core conftest.err conftest.$ac_objext \
18489 conftest$ac_exeext conftest.$ac_ext
18490 LIBS=$ac_check_lib_save_LIBS
18492 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18493 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18494 if test $ac_cv_lib_gcc___divdi3 = yes; then
18496 cat >>confdefs.h <<\_ACEOF
18497 #define HAVE___DIVDI3 1
18502 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18503 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18504 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18505 echo $ECHO_N "(cached) $ECHO_C" >&6
18507 ac_check_lib_save_LIBS=$LIBS
18509 cat >conftest.$ac_ext <<_ACEOF
18512 cat confdefs.h >>conftest.$ac_ext
18513 cat >>conftest.$ac_ext <<_ACEOF
18514 /* end confdefs.h. */
18516 /* Override any GCC internal prototype to avoid an error.
18517 Use char because int might match the return type of a GCC
18518 builtin and then its argument prototype would still apply. */
18526 return __fixdfdi ();
18531 rm -f conftest.$ac_objext conftest$ac_exeext
18532 if { (ac_try="$ac_link"
18533 case "(($ac_try" in
18534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18535 *) ac_try_echo=$ac_try;;
18537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18538 (eval "$ac_link") 2>conftest.er1
18540 grep -v '^ *+' conftest.er1 >conftest.err
18542 cat conftest.err >&5
18543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544 (exit $ac_status); } &&
18545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18546 { (case "(($ac_try" in
18547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18548 *) ac_try_echo=$ac_try;;
18550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18551 (eval "$ac_try") 2>&5
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); }; } &&
18555 { ac_try='test -s conftest$ac_exeext'
18556 { (case "(($ac_try" in
18557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18558 *) ac_try_echo=$ac_try;;
18560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18561 (eval "$ac_try") 2>&5
18563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18564 (exit $ac_status); }; }; then
18565 ac_cv_lib_gcc___fixdfdi=yes
18567 echo "$as_me: failed program was:" >&5
18568 sed 's/^/| /' conftest.$ac_ext >&5
18570 ac_cv_lib_gcc___fixdfdi=no
18573 rm -f core conftest.err conftest.$ac_objext \
18574 conftest$ac_exeext conftest.$ac_ext
18575 LIBS=$ac_check_lib_save_LIBS
18577 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18578 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18579 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18581 cat >>confdefs.h <<\_ACEOF
18582 #define HAVE___FIXDFDI 1
18587 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18588 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18589 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18590 echo $ECHO_N "(cached) $ECHO_C" >&6
18592 ac_check_lib_save_LIBS=$LIBS
18594 cat >conftest.$ac_ext <<_ACEOF
18597 cat confdefs.h >>conftest.$ac_ext
18598 cat >>conftest.$ac_ext <<_ACEOF
18599 /* end confdefs.h. */
18601 /* Override any GCC internal prototype to avoid an error.
18602 Use char because int might match the return type of a GCC
18603 builtin and then its argument prototype would still apply. */
18611 return __fixsfdi ();
18616 rm -f conftest.$ac_objext conftest$ac_exeext
18617 if { (ac_try="$ac_link"
18618 case "(($ac_try" in
18619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18620 *) ac_try_echo=$ac_try;;
18622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18623 (eval "$ac_link") 2>conftest.er1
18625 grep -v '^ *+' conftest.er1 >conftest.err
18627 cat conftest.err >&5
18628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629 (exit $ac_status); } &&
18630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18631 { (case "(($ac_try" in
18632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18633 *) ac_try_echo=$ac_try;;
18635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18636 (eval "$ac_try") 2>&5
18638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18639 (exit $ac_status); }; } &&
18640 { ac_try='test -s conftest$ac_exeext'
18641 { (case "(($ac_try" in
18642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18643 *) ac_try_echo=$ac_try;;
18645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18646 (eval "$ac_try") 2>&5
18648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649 (exit $ac_status); }; }; then
18650 ac_cv_lib_gcc___fixsfdi=yes
18652 echo "$as_me: failed program was:" >&5
18653 sed 's/^/| /' conftest.$ac_ext >&5
18655 ac_cv_lib_gcc___fixsfdi=no
18658 rm -f core conftest.err conftest.$ac_objext \
18659 conftest$ac_exeext conftest.$ac_ext
18660 LIBS=$ac_check_lib_save_LIBS
18662 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18663 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18664 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18666 cat >>confdefs.h <<\_ACEOF
18667 #define HAVE___FIXSFDI 1
18672 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18673 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18674 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18675 echo $ECHO_N "(cached) $ECHO_C" >&6
18677 ac_check_lib_save_LIBS=$LIBS
18679 cat >conftest.$ac_ext <<_ACEOF
18682 cat confdefs.h >>conftest.$ac_ext
18683 cat >>conftest.$ac_ext <<_ACEOF
18684 /* end confdefs.h. */
18686 /* Override any GCC internal prototype to avoid an error.
18687 Use char because int might match the return type of a GCC
18688 builtin and then its argument prototype would still apply. */
18692 char __floatdidf ();
18696 return __floatdidf ();
18701 rm -f conftest.$ac_objext conftest$ac_exeext
18702 if { (ac_try="$ac_link"
18703 case "(($ac_try" in
18704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18705 *) ac_try_echo=$ac_try;;
18707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18708 (eval "$ac_link") 2>conftest.er1
18710 grep -v '^ *+' conftest.er1 >conftest.err
18712 cat conftest.err >&5
18713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714 (exit $ac_status); } &&
18715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18716 { (case "(($ac_try" in
18717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18718 *) ac_try_echo=$ac_try;;
18720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18721 (eval "$ac_try") 2>&5
18723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18724 (exit $ac_status); }; } &&
18725 { ac_try='test -s conftest$ac_exeext'
18726 { (case "(($ac_try" in
18727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18728 *) ac_try_echo=$ac_try;;
18730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18731 (eval "$ac_try") 2>&5
18733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734 (exit $ac_status); }; }; then
18735 ac_cv_lib_gcc___floatdidf=yes
18737 echo "$as_me: failed program was:" >&5
18738 sed 's/^/| /' conftest.$ac_ext >&5
18740 ac_cv_lib_gcc___floatdidf=no
18743 rm -f core conftest.err conftest.$ac_objext \
18744 conftest$ac_exeext conftest.$ac_ext
18745 LIBS=$ac_check_lib_save_LIBS
18747 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18748 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18749 if test $ac_cv_lib_gcc___floatdidf = yes; then
18751 cat >>confdefs.h <<\_ACEOF
18752 #define HAVE___FLOATDIDF 1
18757 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18758 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18759 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18760 echo $ECHO_N "(cached) $ECHO_C" >&6
18762 ac_check_lib_save_LIBS=$LIBS
18764 cat >conftest.$ac_ext <<_ACEOF
18767 cat confdefs.h >>conftest.$ac_ext
18768 cat >>conftest.$ac_ext <<_ACEOF
18769 /* end confdefs.h. */
18771 /* Override any GCC internal prototype to avoid an error.
18772 Use char because int might match the return type of a GCC
18773 builtin and then its argument prototype would still apply. */
18781 return __lshrdi3 ();
18786 rm -f conftest.$ac_objext conftest$ac_exeext
18787 if { (ac_try="$ac_link"
18788 case "(($ac_try" in
18789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18790 *) ac_try_echo=$ac_try;;
18792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18793 (eval "$ac_link") 2>conftest.er1
18795 grep -v '^ *+' conftest.er1 >conftest.err
18797 cat conftest.err >&5
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); } &&
18800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18801 { (case "(($ac_try" in
18802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18803 *) ac_try_echo=$ac_try;;
18805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18806 (eval "$ac_try") 2>&5
18808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809 (exit $ac_status); }; } &&
18810 { ac_try='test -s conftest$ac_exeext'
18811 { (case "(($ac_try" in
18812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18813 *) ac_try_echo=$ac_try;;
18815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18816 (eval "$ac_try") 2>&5
18818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819 (exit $ac_status); }; }; then
18820 ac_cv_lib_gcc___lshrdi3=yes
18822 echo "$as_me: failed program was:" >&5
18823 sed 's/^/| /' conftest.$ac_ext >&5
18825 ac_cv_lib_gcc___lshrdi3=no
18828 rm -f core conftest.err conftest.$ac_objext \
18829 conftest$ac_exeext conftest.$ac_ext
18830 LIBS=$ac_check_lib_save_LIBS
18832 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18833 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18834 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18836 cat >>confdefs.h <<\_ACEOF
18837 #define HAVE___LSHRDI3 1
18842 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18843 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18844 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18845 echo $ECHO_N "(cached) $ECHO_C" >&6
18847 ac_check_lib_save_LIBS=$LIBS
18849 cat >conftest.$ac_ext <<_ACEOF
18852 cat confdefs.h >>conftest.$ac_ext
18853 cat >>conftest.$ac_ext <<_ACEOF
18854 /* end confdefs.h. */
18856 /* Override any GCC internal prototype to avoid an error.
18857 Use char because int might match the return type of a GCC
18858 builtin and then its argument prototype would still apply. */
18866 return __moddi3 ();
18871 rm -f conftest.$ac_objext conftest$ac_exeext
18872 if { (ac_try="$ac_link"
18873 case "(($ac_try" in
18874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18875 *) ac_try_echo=$ac_try;;
18877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18878 (eval "$ac_link") 2>conftest.er1
18880 grep -v '^ *+' conftest.er1 >conftest.err
18882 cat conftest.err >&5
18883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884 (exit $ac_status); } &&
18885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18886 { (case "(($ac_try" in
18887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18888 *) ac_try_echo=$ac_try;;
18890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18891 (eval "$ac_try") 2>&5
18893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894 (exit $ac_status); }; } &&
18895 { ac_try='test -s conftest$ac_exeext'
18896 { (case "(($ac_try" in
18897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18898 *) ac_try_echo=$ac_try;;
18900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18901 (eval "$ac_try") 2>&5
18903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904 (exit $ac_status); }; }; then
18905 ac_cv_lib_gcc___moddi3=yes
18907 echo "$as_me: failed program was:" >&5
18908 sed 's/^/| /' conftest.$ac_ext >&5
18910 ac_cv_lib_gcc___moddi3=no
18913 rm -f core conftest.err conftest.$ac_objext \
18914 conftest$ac_exeext conftest.$ac_ext
18915 LIBS=$ac_check_lib_save_LIBS
18917 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18918 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18919 if test $ac_cv_lib_gcc___moddi3 = yes; then
18921 cat >>confdefs.h <<\_ACEOF
18922 #define HAVE___MODDI3 1
18927 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18928 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18929 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18930 echo $ECHO_N "(cached) $ECHO_C" >&6
18932 ac_check_lib_save_LIBS=$LIBS
18934 cat >conftest.$ac_ext <<_ACEOF
18937 cat confdefs.h >>conftest.$ac_ext
18938 cat >>conftest.$ac_ext <<_ACEOF
18939 /* end confdefs.h. */
18941 /* Override any GCC internal prototype to avoid an error.
18942 Use char because int might match the return type of a GCC
18943 builtin and then its argument prototype would still apply. */
18951 return __udivdi3 ();
18956 rm -f conftest.$ac_objext conftest$ac_exeext
18957 if { (ac_try="$ac_link"
18958 case "(($ac_try" in
18959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18960 *) ac_try_echo=$ac_try;;
18962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18963 (eval "$ac_link") 2>conftest.er1
18965 grep -v '^ *+' conftest.er1 >conftest.err
18967 cat conftest.err >&5
18968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969 (exit $ac_status); } &&
18970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18971 { (case "(($ac_try" in
18972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18973 *) ac_try_echo=$ac_try;;
18975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18976 (eval "$ac_try") 2>&5
18978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979 (exit $ac_status); }; } &&
18980 { ac_try='test -s conftest$ac_exeext'
18981 { (case "(($ac_try" in
18982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18983 *) ac_try_echo=$ac_try;;
18985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18986 (eval "$ac_try") 2>&5
18988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989 (exit $ac_status); }; }; then
18990 ac_cv_lib_gcc___udivdi3=yes
18992 echo "$as_me: failed program was:" >&5
18993 sed 's/^/| /' conftest.$ac_ext >&5
18995 ac_cv_lib_gcc___udivdi3=no
18998 rm -f core conftest.err conftest.$ac_objext \
18999 conftest$ac_exeext conftest.$ac_ext
19000 LIBS=$ac_check_lib_save_LIBS
19002 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19003 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19004 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19006 cat >>confdefs.h <<\_ACEOF
19007 #define HAVE___UDIVDI3 1
19012 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19013 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19014 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19015 echo $ECHO_N "(cached) $ECHO_C" >&6
19017 ac_check_lib_save_LIBS=$LIBS
19019 cat >conftest.$ac_ext <<_ACEOF
19022 cat confdefs.h >>conftest.$ac_ext
19023 cat >>conftest.$ac_ext <<_ACEOF
19024 /* end confdefs.h. */
19026 /* Override any GCC internal prototype to avoid an error.
19027 Use char because int might match the return type of a GCC
19028 builtin and then its argument prototype would still apply. */
19036 return __umoddi3 ();
19041 rm -f conftest.$ac_objext conftest$ac_exeext
19042 if { (ac_try="$ac_link"
19043 case "(($ac_try" in
19044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19045 *) ac_try_echo=$ac_try;;
19047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19048 (eval "$ac_link") 2>conftest.er1
19050 grep -v '^ *+' conftest.er1 >conftest.err
19052 cat conftest.err >&5
19053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054 (exit $ac_status); } &&
19055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19056 { (case "(($ac_try" in
19057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19058 *) ac_try_echo=$ac_try;;
19060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19061 (eval "$ac_try") 2>&5
19063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064 (exit $ac_status); }; } &&
19065 { ac_try='test -s conftest$ac_exeext'
19066 { (case "(($ac_try" in
19067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19068 *) ac_try_echo=$ac_try;;
19070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19071 (eval "$ac_try") 2>&5
19073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074 (exit $ac_status); }; }; then
19075 ac_cv_lib_gcc___umoddi3=yes
19077 echo "$as_me: failed program was:" >&5
19078 sed 's/^/| /' conftest.$ac_ext >&5
19080 ac_cv_lib_gcc___umoddi3=no
19083 rm -f core conftest.err conftest.$ac_objext \
19084 conftest$ac_exeext conftest.$ac_ext
19085 LIBS=$ac_check_lib_save_LIBS
19087 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19088 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19089 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19091 cat >>confdefs.h <<\_ACEOF
19092 #define HAVE___UMODDI3 1
19098 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19099 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19100 if test "${ac_cv_lib_gcc___main+set}" = set; then
19101 echo $ECHO_N "(cached) $ECHO_C" >&6
19103 ac_check_lib_save_LIBS=$LIBS
19105 cat >conftest.$ac_ext <<_ACEOF
19108 cat confdefs.h >>conftest.$ac_ext
19109 cat >>conftest.$ac_ext <<_ACEOF
19110 /* end confdefs.h. */
19112 /* Override any GCC internal prototype to avoid an error.
19113 Use char because int might match the return type of a GCC
19114 builtin and then its argument prototype would still apply. */
19127 rm -f conftest.$ac_objext conftest$ac_exeext
19128 if { (ac_try="$ac_link"
19129 case "(($ac_try" in
19130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19131 *) ac_try_echo=$ac_try;;
19133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19134 (eval "$ac_link") 2>conftest.er1
19136 grep -v '^ *+' conftest.er1 >conftest.err
19138 cat conftest.err >&5
19139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140 (exit $ac_status); } &&
19141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19142 { (case "(($ac_try" in
19143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19144 *) ac_try_echo=$ac_try;;
19146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19147 (eval "$ac_try") 2>&5
19149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19150 (exit $ac_status); }; } &&
19151 { ac_try='test -s conftest$ac_exeext'
19152 { (case "(($ac_try" in
19153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19154 *) ac_try_echo=$ac_try;;
19156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19157 (eval "$ac_try") 2>&5
19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); }; }; then
19161 ac_cv_lib_gcc___main=yes
19163 echo "$as_me: failed program was:" >&5
19164 sed 's/^/| /' conftest.$ac_ext >&5
19166 ac_cv_lib_gcc___main=no
19169 rm -f core conftest.err conftest.$ac_objext \
19170 conftest$ac_exeext conftest.$ac_ext
19171 LIBS=$ac_check_lib_save_LIBS
19173 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19174 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19175 if test $ac_cv_lib_gcc___main = yes; then
19177 cat >>confdefs.h <<\_ACEOF
19178 #define HAVE___MAIN 1
19183 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19184 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19185 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19186 echo $ECHO_N "(cached) $ECHO_C" >&6
19188 ac_check_lib_save_LIBS=$LIBS
19190 cat >conftest.$ac_ext <<_ACEOF
19193 cat confdefs.h >>conftest.$ac_ext
19194 cat >>conftest.$ac_ext <<_ACEOF
19195 /* end confdefs.h. */
19197 /* Override any GCC internal prototype to avoid an error.
19198 Use char because int might match the return type of a GCC
19199 builtin and then its argument prototype would still apply. */
19207 return __cmpdi2 ();
19212 rm -f conftest.$ac_objext conftest$ac_exeext
19213 if { (ac_try="$ac_link"
19214 case "(($ac_try" in
19215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19216 *) ac_try_echo=$ac_try;;
19218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19219 (eval "$ac_link") 2>conftest.er1
19221 grep -v '^ *+' conftest.er1 >conftest.err
19223 cat conftest.err >&5
19224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225 (exit $ac_status); } &&
19226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19227 { (case "(($ac_try" in
19228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19229 *) ac_try_echo=$ac_try;;
19231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19232 (eval "$ac_try") 2>&5
19234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235 (exit $ac_status); }; } &&
19236 { ac_try='test -s conftest$ac_exeext'
19237 { (case "(($ac_try" in
19238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19239 *) ac_try_echo=$ac_try;;
19241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19242 (eval "$ac_try") 2>&5
19244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245 (exit $ac_status); }; }; then
19246 ac_cv_lib_gcc___cmpdi2=yes
19248 echo "$as_me: failed program was:" >&5
19249 sed 's/^/| /' conftest.$ac_ext >&5
19251 ac_cv_lib_gcc___cmpdi2=no
19254 rm -f core conftest.err conftest.$ac_objext \
19255 conftest$ac_exeext conftest.$ac_ext
19256 LIBS=$ac_check_lib_save_LIBS
19258 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19259 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19260 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19262 cat >>confdefs.h <<\_ACEOF
19263 #define HAVE___CMPDI2 1
19270 if test "$llvm_cv_os_type" = "MingW" ; then
19271 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19272 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19273 cat >conftest.$ac_ext <<_ACEOF
19274 #include <windows.h>
19275 #include <imagehlp.h>
19276 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19277 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19279 rm -f conftest.$ac_objext
19280 if { (ac_try="$ac_compile"
19281 case "(($ac_try" in
19282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19283 *) ac_try_echo=$ac_try;;
19285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19286 (eval "$ac_compile") 2>conftest.er1
19288 grep -v '^ *+' conftest.er1 >conftest.err
19290 cat conftest.err >&5
19291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292 (exit $ac_status); } &&
19293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19294 { (case "(($ac_try" in
19295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19296 *) ac_try_echo=$ac_try;;
19298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19299 (eval "$ac_try") 2>&5
19301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19302 (exit $ac_status); }; } &&
19303 { ac_try='test -s conftest.$ac_objext'
19304 { (case "(($ac_try" in
19305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19306 *) ac_try_echo=$ac_try;;
19308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19309 (eval "$ac_try") 2>&5
19311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19312 (exit $ac_status); }; }; then
19314 { echo "$as_me:$LINENO: result: yes" >&5
19315 echo "${ECHO_T}yes" >&6; }
19316 llvm_cv_win32_elmcb_pcstr="PCSTR"
19319 echo "$as_me: failed program was:" >&5
19320 sed 's/^/| /' conftest.$ac_ext >&5
19323 { echo "$as_me:$LINENO: result: no" >&5
19324 echo "${ECHO_T}no" >&6; }
19325 llvm_cv_win32_elmcb_pcstr="PSTR"
19329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19331 cat >>confdefs.h <<_ACEOF
19332 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19338 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19339 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19340 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19341 echo $ECHO_N "(cached) $ECHO_C" >&6
19344 ac_cpp='$CXXCPP $CPPFLAGS'
19345 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19346 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19347 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19349 cat >conftest.$ac_ext <<_ACEOF
19352 cat confdefs.h >>conftest.$ac_ext
19353 cat >>conftest.$ac_ext <<_ACEOF
19354 /* end confdefs.h. */
19364 rm -f conftest.$ac_objext
19365 if { (ac_try="$ac_compile"
19366 case "(($ac_try" in
19367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19368 *) ac_try_echo=$ac_try;;
19370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19371 (eval "$ac_compile") 2>conftest.er1
19373 grep -v '^ *+' conftest.er1 >conftest.err
19375 cat conftest.err >&5
19376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377 (exit $ac_status); } &&
19378 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19379 { (case "(($ac_try" in
19380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19381 *) ac_try_echo=$ac_try;;
19383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19384 (eval "$ac_try") 2>&5
19386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387 (exit $ac_status); }; } &&
19388 { ac_try='test -s conftest.$ac_objext'
19389 { (case "(($ac_try" in
19390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19391 *) ac_try_echo=$ac_try;;
19393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19394 (eval "$ac_try") 2>&5
19396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19397 (exit $ac_status); }; }; then
19398 ac_cv_func_isnan_in_math_h=yes
19400 echo "$as_me: failed program was:" >&5
19401 sed 's/^/| /' conftest.$ac_ext >&5
19403 ac_cv_func_isnan_in_math_h=no
19406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19408 ac_cpp='$CPP $CPPFLAGS'
19409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19414 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19415 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19418 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19420 cat >>confdefs.h <<\_ACEOF
19421 #define HAVE_ISNAN_IN_MATH_H 1
19426 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19427 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19428 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19429 echo $ECHO_N "(cached) $ECHO_C" >&6
19432 ac_cpp='$CXXCPP $CPPFLAGS'
19433 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19434 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19435 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19437 cat >conftest.$ac_ext <<_ACEOF
19440 cat confdefs.h >>conftest.$ac_ext
19441 cat >>conftest.$ac_ext <<_ACEOF
19442 /* end confdefs.h. */
19452 rm -f conftest.$ac_objext
19453 if { (ac_try="$ac_compile"
19454 case "(($ac_try" in
19455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19456 *) ac_try_echo=$ac_try;;
19458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19459 (eval "$ac_compile") 2>conftest.er1
19461 grep -v '^ *+' conftest.er1 >conftest.err
19463 cat conftest.err >&5
19464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465 (exit $ac_status); } &&
19466 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19467 { (case "(($ac_try" in
19468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19469 *) ac_try_echo=$ac_try;;
19471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19472 (eval "$ac_try") 2>&5
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); }; } &&
19476 { ac_try='test -s conftest.$ac_objext'
19477 { (case "(($ac_try" in
19478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19479 *) ac_try_echo=$ac_try;;
19481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19482 (eval "$ac_try") 2>&5
19484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485 (exit $ac_status); }; }; then
19486 ac_cv_func_isnan_in_cmath=yes
19488 echo "$as_me: failed program was:" >&5
19489 sed 's/^/| /' conftest.$ac_ext >&5
19491 ac_cv_func_isnan_in_cmath=no
19494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19496 ac_cpp='$CPP $CPPFLAGS'
19497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19502 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19503 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19505 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19507 cat >>confdefs.h <<\_ACEOF
19508 #define HAVE_ISNAN_IN_CMATH 1
19513 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19514 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19515 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19516 echo $ECHO_N "(cached) $ECHO_C" >&6
19519 ac_cpp='$CXXCPP $CPPFLAGS'
19520 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19521 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19522 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19524 cat >conftest.$ac_ext <<_ACEOF
19527 cat confdefs.h >>conftest.$ac_ext
19528 cat >>conftest.$ac_ext <<_ACEOF
19529 /* end confdefs.h. */
19534 float f; std::isnan(f);
19539 rm -f conftest.$ac_objext
19540 if { (ac_try="$ac_compile"
19541 case "(($ac_try" in
19542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19543 *) ac_try_echo=$ac_try;;
19545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19546 (eval "$ac_compile") 2>conftest.er1
19548 grep -v '^ *+' conftest.er1 >conftest.err
19550 cat conftest.err >&5
19551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552 (exit $ac_status); } &&
19553 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19554 { (case "(($ac_try" in
19555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19556 *) ac_try_echo=$ac_try;;
19558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19559 (eval "$ac_try") 2>&5
19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562 (exit $ac_status); }; } &&
19563 { ac_try='test -s conftest.$ac_objext'
19564 { (case "(($ac_try" in
19565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19566 *) ac_try_echo=$ac_try;;
19568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19569 (eval "$ac_try") 2>&5
19571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19572 (exit $ac_status); }; }; then
19573 ac_cv_func_std_isnan_in_cmath=yes
19575 echo "$as_me: failed program was:" >&5
19576 sed 's/^/| /' conftest.$ac_ext >&5
19578 ac_cv_func_std_isnan_in_cmath=no
19581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19583 ac_cpp='$CPP $CPPFLAGS'
19584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19589 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19590 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19592 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19594 cat >>confdefs.h <<\_ACEOF
19595 #define HAVE_STD_ISNAN_IN_CMATH 1
19601 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19602 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19603 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19604 echo $ECHO_N "(cached) $ECHO_C" >&6
19607 ac_cpp='$CXXCPP $CPPFLAGS'
19608 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19609 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19610 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19612 cat >conftest.$ac_ext <<_ACEOF
19615 cat confdefs.h >>conftest.$ac_ext
19616 cat >>conftest.$ac_ext <<_ACEOF
19617 /* end confdefs.h. */
19627 rm -f conftest.$ac_objext
19628 if { (ac_try="$ac_compile"
19629 case "(($ac_try" in
19630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19631 *) ac_try_echo=$ac_try;;
19633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19634 (eval "$ac_compile") 2>conftest.er1
19636 grep -v '^ *+' conftest.er1 >conftest.err
19638 cat conftest.err >&5
19639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19640 (exit $ac_status); } &&
19641 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19642 { (case "(($ac_try" in
19643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19644 *) ac_try_echo=$ac_try;;
19646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19647 (eval "$ac_try") 2>&5
19649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650 (exit $ac_status); }; } &&
19651 { ac_try='test -s conftest.$ac_objext'
19652 { (case "(($ac_try" in
19653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19654 *) ac_try_echo=$ac_try;;
19656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19657 (eval "$ac_try") 2>&5
19659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660 (exit $ac_status); }; }; then
19661 ac_cv_func_isinf_in_math_h=yes
19663 echo "$as_me: failed program was:" >&5
19664 sed 's/^/| /' conftest.$ac_ext >&5
19666 ac_cv_func_isinf_in_math_h=no
19669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19671 ac_cpp='$CPP $CPPFLAGS'
19672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19677 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19678 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19680 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19682 cat >>confdefs.h <<\_ACEOF
19683 #define HAVE_ISINF_IN_MATH_H 1
19688 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19689 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19690 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19691 echo $ECHO_N "(cached) $ECHO_C" >&6
19694 ac_cpp='$CXXCPP $CPPFLAGS'
19695 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19696 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19697 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19699 cat >conftest.$ac_ext <<_ACEOF
19702 cat confdefs.h >>conftest.$ac_ext
19703 cat >>conftest.$ac_ext <<_ACEOF
19704 /* end confdefs.h. */
19714 rm -f conftest.$ac_objext
19715 if { (ac_try="$ac_compile"
19716 case "(($ac_try" in
19717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19718 *) ac_try_echo=$ac_try;;
19720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19721 (eval "$ac_compile") 2>conftest.er1
19723 grep -v '^ *+' conftest.er1 >conftest.err
19725 cat conftest.err >&5
19726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727 (exit $ac_status); } &&
19728 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19729 { (case "(($ac_try" in
19730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19731 *) ac_try_echo=$ac_try;;
19733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19734 (eval "$ac_try") 2>&5
19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737 (exit $ac_status); }; } &&
19738 { ac_try='test -s conftest.$ac_objext'
19739 { (case "(($ac_try" in
19740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19741 *) ac_try_echo=$ac_try;;
19743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19744 (eval "$ac_try") 2>&5
19746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747 (exit $ac_status); }; }; then
19748 ac_cv_func_isinf_in_cmath=yes
19750 echo "$as_me: failed program was:" >&5
19751 sed 's/^/| /' conftest.$ac_ext >&5
19753 ac_cv_func_isinf_in_cmath=no
19756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19758 ac_cpp='$CPP $CPPFLAGS'
19759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19764 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19765 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19767 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19769 cat >>confdefs.h <<\_ACEOF
19770 #define HAVE_ISINF_IN_CMATH 1
19775 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19776 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19777 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19778 echo $ECHO_N "(cached) $ECHO_C" >&6
19781 ac_cpp='$CXXCPP $CPPFLAGS'
19782 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19783 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19784 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19786 cat >conftest.$ac_ext <<_ACEOF
19789 cat confdefs.h >>conftest.$ac_ext
19790 cat >>conftest.$ac_ext <<_ACEOF
19791 /* end confdefs.h. */
19796 float f; std::isinf(f);
19801 rm -f conftest.$ac_objext
19802 if { (ac_try="$ac_compile"
19803 case "(($ac_try" in
19804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19805 *) ac_try_echo=$ac_try;;
19807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19808 (eval "$ac_compile") 2>conftest.er1
19810 grep -v '^ *+' conftest.er1 >conftest.err
19812 cat conftest.err >&5
19813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 (exit $ac_status); } &&
19815 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19816 { (case "(($ac_try" in
19817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19818 *) ac_try_echo=$ac_try;;
19820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19821 (eval "$ac_try") 2>&5
19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824 (exit $ac_status); }; } &&
19825 { ac_try='test -s conftest.$ac_objext'
19826 { (case "(($ac_try" in
19827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19828 *) ac_try_echo=$ac_try;;
19830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19831 (eval "$ac_try") 2>&5
19833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834 (exit $ac_status); }; }; then
19835 ac_cv_func_std_isinf_in_cmath=yes
19837 echo "$as_me: failed program was:" >&5
19838 sed 's/^/| /' conftest.$ac_ext >&5
19840 ac_cv_func_std_isinf_in_cmath=no
19843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19845 ac_cpp='$CPP $CPPFLAGS'
19846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19851 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19852 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19854 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19856 cat >>confdefs.h <<\_ACEOF
19857 #define HAVE_STD_ISINF_IN_CMATH 1
19862 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19863 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19864 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19865 echo $ECHO_N "(cached) $ECHO_C" >&6
19868 ac_cpp='$CXXCPP $CPPFLAGS'
19869 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19870 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19871 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19873 cat >conftest.$ac_ext <<_ACEOF
19876 cat confdefs.h >>conftest.$ac_ext
19877 cat >>conftest.$ac_ext <<_ACEOF
19878 /* end confdefs.h. */
19879 #include <ieeefp.h>
19883 float f; finite(f);
19888 rm -f conftest.$ac_objext
19889 if { (ac_try="$ac_compile"
19890 case "(($ac_try" in
19891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19892 *) ac_try_echo=$ac_try;;
19894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19895 (eval "$ac_compile") 2>conftest.er1
19897 grep -v '^ *+' conftest.er1 >conftest.err
19899 cat conftest.err >&5
19900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901 (exit $ac_status); } &&
19902 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19903 { (case "(($ac_try" in
19904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19905 *) ac_try_echo=$ac_try;;
19907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19908 (eval "$ac_try") 2>&5
19910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911 (exit $ac_status); }; } &&
19912 { ac_try='test -s conftest.$ac_objext'
19913 { (case "(($ac_try" in
19914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19915 *) ac_try_echo=$ac_try;;
19917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19918 (eval "$ac_try") 2>&5
19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); }; }; then
19922 ac_cv_func_finite_in_ieeefp_h=yes
19924 echo "$as_me: failed program was:" >&5
19925 sed 's/^/| /' conftest.$ac_ext >&5
19927 ac_cv_func_finite_in_ieeefp_h=no
19930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19932 ac_cpp='$CPP $CPPFLAGS'
19933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19938 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19939 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19941 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19943 cat >>confdefs.h <<\_ACEOF
19944 #define HAVE_FINITE_IN_IEEEFP_H 1
19951 if test "$llvm_cv_platform_type" = "Unix" ; then
19954 for ac_header in stdlib.h unistd.h
19956 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19958 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19961 echo $ECHO_N "(cached) $ECHO_C" >&6
19963 ac_res=`eval echo '${'$as_ac_Header'}'`
19964 { echo "$as_me:$LINENO: result: $ac_res" >&5
19965 echo "${ECHO_T}$ac_res" >&6; }
19967 # Is the header compilable?
19968 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19969 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19970 cat >conftest.$ac_ext <<_ACEOF
19973 cat confdefs.h >>conftest.$ac_ext
19974 cat >>conftest.$ac_ext <<_ACEOF
19975 /* end confdefs.h. */
19976 $ac_includes_default
19977 #include <$ac_header>
19979 rm -f conftest.$ac_objext
19980 if { (ac_try="$ac_compile"
19981 case "(($ac_try" in
19982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19983 *) ac_try_echo=$ac_try;;
19985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19986 (eval "$ac_compile") 2>conftest.er1
19988 grep -v '^ *+' conftest.er1 >conftest.err
19990 cat conftest.err >&5
19991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992 (exit $ac_status); } &&
19993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19994 { (case "(($ac_try" in
19995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19996 *) ac_try_echo=$ac_try;;
19998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19999 (eval "$ac_try") 2>&5
20001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002 (exit $ac_status); }; } &&
20003 { ac_try='test -s conftest.$ac_objext'
20004 { (case "(($ac_try" in
20005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20006 *) ac_try_echo=$ac_try;;
20008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20009 (eval "$ac_try") 2>&5
20011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012 (exit $ac_status); }; }; then
20013 ac_header_compiler=yes
20015 echo "$as_me: failed program was:" >&5
20016 sed 's/^/| /' conftest.$ac_ext >&5
20018 ac_header_compiler=no
20021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20022 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20023 echo "${ECHO_T}$ac_header_compiler" >&6; }
20025 # Is the header present?
20026 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20027 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20028 cat >conftest.$ac_ext <<_ACEOF
20031 cat confdefs.h >>conftest.$ac_ext
20032 cat >>conftest.$ac_ext <<_ACEOF
20033 /* end confdefs.h. */
20034 #include <$ac_header>
20036 if { (ac_try="$ac_cpp conftest.$ac_ext"
20037 case "(($ac_try" in
20038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20039 *) ac_try_echo=$ac_try;;
20041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20042 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20044 grep -v '^ *+' conftest.er1 >conftest.err
20046 cat conftest.err >&5
20047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048 (exit $ac_status); } >/dev/null; then
20049 if test -s conftest.err; then
20050 ac_cpp_err=$ac_c_preproc_warn_flag
20051 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20058 if test -z "$ac_cpp_err"; then
20059 ac_header_preproc=yes
20061 echo "$as_me: failed program was:" >&5
20062 sed 's/^/| /' conftest.$ac_ext >&5
20064 ac_header_preproc=no
20067 rm -f conftest.err conftest.$ac_ext
20068 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20069 echo "${ECHO_T}$ac_header_preproc" >&6; }
20071 # So? What about this header?
20072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20074 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20075 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20077 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20078 ac_header_preproc=yes
20081 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20082 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20083 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20084 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20085 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20086 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20087 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20088 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20090 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20091 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20092 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20094 ## ------------------------------------ ##
20095 ## Report this to http://llvm.org/bugs/ ##
20096 ## ------------------------------------ ##
20098 ) | sed "s/^/$as_me: WARNING: /" >&2
20101 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20104 echo $ECHO_N "(cached) $ECHO_C" >&6
20106 eval "$as_ac_Header=\$ac_header_preproc"
20108 ac_res=`eval echo '${'$as_ac_Header'}'`
20109 { echo "$as_me:$LINENO: result: $ac_res" >&5
20110 echo "${ECHO_T}$ac_res" >&6; }
20113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20114 cat >>confdefs.h <<_ACEOF
20115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20123 for ac_func in getpagesize
20125 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20126 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20127 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20128 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20129 echo $ECHO_N "(cached) $ECHO_C" >&6
20131 cat >conftest.$ac_ext <<_ACEOF
20134 cat confdefs.h >>conftest.$ac_ext
20135 cat >>conftest.$ac_ext <<_ACEOF
20136 /* end confdefs.h. */
20137 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20138 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20139 #define $ac_func innocuous_$ac_func
20141 /* System header to define __stub macros and hopefully few prototypes,
20142 which can conflict with char $ac_func (); below.
20143 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20144 <limits.h> exists even on freestanding compilers. */
20147 # include <limits.h>
20149 # include <assert.h>
20154 /* Override any GCC internal prototype to avoid an error.
20155 Use char because int might match the return type of a GCC
20156 builtin and then its argument prototype would still apply. */
20161 /* The GNU C library defines this for functions which it implements
20162 to always fail with ENOSYS. Some functions are actually named
20163 something starting with __ and the normal name is an alias. */
20164 #if defined __stub_$ac_func || defined __stub___$ac_func
20171 return $ac_func ();
20176 rm -f conftest.$ac_objext conftest$ac_exeext
20177 if { (ac_try="$ac_link"
20178 case "(($ac_try" in
20179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20180 *) ac_try_echo=$ac_try;;
20182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20183 (eval "$ac_link") 2>conftest.er1
20185 grep -v '^ *+' conftest.er1 >conftest.err
20187 cat conftest.err >&5
20188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189 (exit $ac_status); } &&
20190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20191 { (case "(($ac_try" in
20192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20193 *) ac_try_echo=$ac_try;;
20195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20196 (eval "$ac_try") 2>&5
20198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199 (exit $ac_status); }; } &&
20200 { ac_try='test -s conftest$ac_exeext'
20201 { (case "(($ac_try" in
20202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20203 *) ac_try_echo=$ac_try;;
20205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20206 (eval "$ac_try") 2>&5
20208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209 (exit $ac_status); }; }; then
20210 eval "$as_ac_var=yes"
20212 echo "$as_me: failed program was:" >&5
20213 sed 's/^/| /' conftest.$ac_ext >&5
20215 eval "$as_ac_var=no"
20218 rm -f core conftest.err conftest.$ac_objext \
20219 conftest$ac_exeext conftest.$ac_ext
20221 ac_res=`eval echo '${'$as_ac_var'}'`
20222 { echo "$as_me:$LINENO: result: $ac_res" >&5
20223 echo "${ECHO_T}$ac_res" >&6; }
20224 if test `eval echo '${'$as_ac_var'}'` = yes; then
20225 cat >>confdefs.h <<_ACEOF
20226 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20232 { echo "$as_me:$LINENO: checking for working mmap" >&5
20233 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20234 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20235 echo $ECHO_N "(cached) $ECHO_C" >&6
20237 if test "$cross_compiling" = yes; then
20238 ac_cv_func_mmap_fixed_mapped=no
20240 cat >conftest.$ac_ext <<_ACEOF
20243 cat confdefs.h >>conftest.$ac_ext
20244 cat >>conftest.$ac_ext <<_ACEOF
20245 /* end confdefs.h. */
20246 $ac_includes_default
20247 /* malloc might have been renamed as rpl_malloc. */
20250 /* Thanks to Mike Haertel and Jim Avera for this test.
20251 Here is a matrix of mmap possibilities:
20252 mmap private not fixed
20253 mmap private fixed at somewhere currently unmapped
20254 mmap private fixed at somewhere already mapped
20255 mmap shared not fixed
20256 mmap shared fixed at somewhere currently unmapped
20257 mmap shared fixed at somewhere already mapped
20258 For private mappings, we should verify that changes cannot be read()
20259 back from the file, nor mmap's back from the file at a different
20260 address. (There have been systems where private was not correctly
20261 implemented like the infamous i386 svr4.0, and systems where the
20262 VM page cache was not coherent with the file system buffer cache
20263 like early versions of FreeBSD and possibly contemporary NetBSD.)
20264 For shared mappings, we should conversely verify that changes get
20265 propagated back to all the places they're supposed to be.
20267 Grep wants private fixed already mapped.
20268 The main things grep needs to know about mmap are:
20269 * does it exist and is it safe to write into the mmap'd area
20270 * how to use it (BSD variants) */
20273 #include <sys/mman.h>
20275 #if !STDC_HEADERS && !HAVE_STDLIB_H
20279 /* This mess was copied from the GNU getpagesize.h. */
20280 #if !HAVE_GETPAGESIZE
20281 /* Assume that all systems that can run configure have sys/param.h. */
20282 # if !HAVE_SYS_PARAM_H
20283 # define HAVE_SYS_PARAM_H 1
20286 # ifdef _SC_PAGESIZE
20287 # define getpagesize() sysconf(_SC_PAGESIZE)
20288 # else /* no _SC_PAGESIZE */
20289 # if HAVE_SYS_PARAM_H
20290 # include <sys/param.h>
20291 # ifdef EXEC_PAGESIZE
20292 # define getpagesize() EXEC_PAGESIZE
20293 # else /* no EXEC_PAGESIZE */
20295 # define getpagesize() NBPG * CLSIZE
20298 # endif /* no CLSIZE */
20299 # else /* no NBPG */
20301 # define getpagesize() NBPC
20302 # else /* no NBPC */
20304 # define getpagesize() PAGESIZE
20305 # endif /* PAGESIZE */
20306 # endif /* no NBPC */
20307 # endif /* no NBPG */
20308 # endif /* no EXEC_PAGESIZE */
20309 # else /* no HAVE_SYS_PARAM_H */
20310 # define getpagesize() 8192 /* punt totally */
20311 # endif /* no HAVE_SYS_PARAM_H */
20312 # endif /* no _SC_PAGESIZE */
20314 #endif /* no HAVE_GETPAGESIZE */
20319 char *data, *data2, *data3;
20323 pagesize = getpagesize ();
20325 /* First, make a file with some known garbage in it. */
20326 data = (char *) malloc (pagesize);
20329 for (i = 0; i < pagesize; ++i)
20330 *(data + i) = rand ();
20332 fd = creat ("conftest.mmap", 0600);
20335 if (write (fd, data, pagesize) != pagesize)
20339 /* Next, try to mmap the file at a fixed address which already has
20340 something else allocated at it. If we can, also make sure that
20341 we see the same garbage. */
20342 fd = open ("conftest.mmap", O_RDWR);
20345 data2 = (char *) malloc (2 * pagesize);
20348 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20349 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20350 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20352 for (i = 0; i < pagesize; ++i)
20353 if (*(data + i) != *(data2 + i))
20356 /* Finally, make sure that changes to the mapped area do not
20357 percolate back to the file as seen by read(). (This is a bug on
20358 some variants of i386 svr4.0.) */
20359 for (i = 0; i < pagesize; ++i)
20360 *(data2 + i) = *(data2 + i) + 1;
20361 data3 = (char *) malloc (pagesize);
20364 if (read (fd, data3, pagesize) != pagesize)
20366 for (i = 0; i < pagesize; ++i)
20367 if (*(data + i) != *(data3 + i))
20373 rm -f conftest$ac_exeext
20374 if { (ac_try="$ac_link"
20375 case "(($ac_try" in
20376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20377 *) ac_try_echo=$ac_try;;
20379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20380 (eval "$ac_link") 2>&5
20382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20384 { (case "(($ac_try" in
20385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20386 *) ac_try_echo=$ac_try;;
20388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20389 (eval "$ac_try") 2>&5
20391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392 (exit $ac_status); }; }; then
20393 ac_cv_func_mmap_fixed_mapped=yes
20395 echo "$as_me: program exited with status $ac_status" >&5
20396 echo "$as_me: failed program was:" >&5
20397 sed 's/^/| /' conftest.$ac_ext >&5
20399 ( exit $ac_status )
20400 ac_cv_func_mmap_fixed_mapped=no
20402 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20407 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20408 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20409 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20411 cat >>confdefs.h <<\_ACEOF
20412 #define HAVE_MMAP 1
20416 rm -f conftest.mmap
20418 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20419 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20420 if test "${ac_cv_func_mmap_file+set}" = set; then
20421 echo $ECHO_N "(cached) $ECHO_C" >&6
20424 ac_cpp='$CPP $CPPFLAGS'
20425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20429 if test "$cross_compiling" = yes; then
20430 ac_cv_func_mmap_file=no
20432 cat >conftest.$ac_ext <<_ACEOF
20436 cat confdefs.h >>conftest.$ac_ext
20437 cat >>conftest.$ac_ext <<_ACEOF
20438 /* end confdefs.h. */
20440 #include <sys/types.h>
20441 #include <sys/mman.h>
20449 fd = creat ("foo",0777);
20450 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20452 return (fd != (int) MAP_FAILED);
20457 rm -f conftest$ac_exeext
20458 if { (ac_try="$ac_link"
20459 case "(($ac_try" in
20460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20461 *) ac_try_echo=$ac_try;;
20463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20464 (eval "$ac_link") 2>&5
20466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20468 { (case "(($ac_try" in
20469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20470 *) ac_try_echo=$ac_try;;
20472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20473 (eval "$ac_try") 2>&5
20475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476 (exit $ac_status); }; }; then
20477 ac_cv_func_mmap_file=yes
20479 echo "$as_me: program exited with status $ac_status" >&5
20480 echo "$as_me: failed program was:" >&5
20481 sed 's/^/| /' conftest.$ac_ext >&5
20483 ( exit $ac_status )
20484 ac_cv_func_mmap_file=no
20486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20491 ac_cpp='$CPP $CPPFLAGS'
20492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20498 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20499 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20500 if test "$ac_cv_func_mmap_file" = yes; then
20502 cat >>confdefs.h <<\_ACEOF
20503 #define HAVE_MMAP_FILE
20510 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20511 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20512 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20513 echo $ECHO_N "(cached) $ECHO_C" >&6
20515 if test "$llvm_cv_os_type" = "Interix" ; then
20516 ac_cv_need_dev_zero_for_mmap=yes
20518 ac_cv_need_dev_zero_for_mmap=no
20522 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20523 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20524 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20526 cat >>confdefs.h <<\_ACEOF
20527 #define NEED_DEV_ZERO_FOR_MMAP 1
20532 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20534 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20535 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20537 if test "$ac_cv_func_mmap_file" = "no"
20539 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20540 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20544 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20545 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20547 ac_cpp='$CXXCPP $CPPFLAGS'
20548 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20549 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20550 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20552 cat >conftest.$ac_ext <<_ACEOF
20555 cat confdefs.h >>conftest.$ac_ext
20556 cat >>conftest.$ac_ext <<_ACEOF
20557 /* end confdefs.h. */
20559 volatile unsigned long val = 1;
20560 __sync_synchronize();
20561 __sync_val_compare_and_swap(&val, 1, 0);
20562 __sync_add_and_fetch(&val, 1);
20563 __sync_sub_and_fetch(&val, 1);
20568 rm -f conftest.$ac_objext conftest$ac_exeext
20569 if { (ac_try="$ac_link"
20570 case "(($ac_try" in
20571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20572 *) ac_try_echo=$ac_try;;
20574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20575 (eval "$ac_link") 2>conftest.er1
20577 grep -v '^ *+' conftest.er1 >conftest.err
20579 cat conftest.err >&5
20580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20581 (exit $ac_status); } &&
20582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20583 { (case "(($ac_try" in
20584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20585 *) ac_try_echo=$ac_try;;
20587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20588 (eval "$ac_try") 2>&5
20590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591 (exit $ac_status); }; } &&
20592 { ac_try='test -s conftest$ac_exeext'
20593 { (case "(($ac_try" in
20594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20595 *) ac_try_echo=$ac_try;;
20597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20598 (eval "$ac_try") 2>&5
20600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20601 (exit $ac_status); }; }; then
20603 ac_cpp='$CPP $CPPFLAGS'
20604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20608 { echo "$as_me:$LINENO: result: yes" >&5
20609 echo "${ECHO_T}yes" >&6; }
20611 cat >>confdefs.h <<\_ACEOF
20612 #define LLVM_HAS_ATOMICS 1
20616 echo "$as_me: failed program was:" >&5
20617 sed 's/^/| /' conftest.$ac_ext >&5
20619 { echo "$as_me:$LINENO: result: no" >&5
20620 echo "${ECHO_T}no" >&6; }
20622 cat >>confdefs.h <<\_ACEOF
20623 #define LLVM_HAS_ATOMICS 0
20626 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20627 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20630 rm -f core conftest.err conftest.$ac_objext \
20631 conftest$ac_exeext conftest.$ac_ext
20634 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20635 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20636 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20637 if test "${llvm_cv_linux_mixed+set}" = set; then
20638 echo $ECHO_N "(cached) $ECHO_C" >&6
20641 ac_cpp='$CPP $CPPFLAGS'
20642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20646 cat >conftest.$ac_ext <<_ACEOF
20649 cat confdefs.h >>conftest.$ac_ext
20650 cat >>conftest.$ac_ext <<_ACEOF
20651 /* end confdefs.h. */
20653 error: Not x86-64 even if uname says so!
20664 rm -f conftest.$ac_objext
20665 if { (ac_try="$ac_compile"
20666 case "(($ac_try" in
20667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20668 *) ac_try_echo=$ac_try;;
20670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20671 (eval "$ac_compile") 2>conftest.er1
20673 grep -v '^ *+' conftest.er1 >conftest.err
20675 cat conftest.err >&5
20676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677 (exit $ac_status); } &&
20678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20679 { (case "(($ac_try" in
20680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20681 *) ac_try_echo=$ac_try;;
20683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20684 (eval "$ac_try") 2>&5
20686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20687 (exit $ac_status); }; } &&
20688 { ac_try='test -s conftest.$ac_objext'
20689 { (case "(($ac_try" in
20690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20691 *) ac_try_echo=$ac_try;;
20693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20694 (eval "$ac_try") 2>&5
20696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20697 (exit $ac_status); }; }; then
20698 llvm_cv_linux_mixed=no
20700 echo "$as_me: failed program was:" >&5
20701 sed 's/^/| /' conftest.$ac_ext >&5
20703 llvm_cv_linux_mixed=yes
20706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20708 ac_cpp='$CPP $CPPFLAGS'
20709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20715 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20716 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20718 if test "$llvm_cv_linux_mixed" = "yes"; then
20719 llvm_cv_target_arch="x86"
20725 for ac_func in __dso_handle
20727 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20728 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20730 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20731 echo $ECHO_N "(cached) $ECHO_C" >&6
20733 cat >conftest.$ac_ext <<_ACEOF
20736 cat confdefs.h >>conftest.$ac_ext
20737 cat >>conftest.$ac_ext <<_ACEOF
20738 /* end confdefs.h. */
20739 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20741 #define $ac_func innocuous_$ac_func
20743 /* System header to define __stub macros and hopefully few prototypes,
20744 which can conflict with char $ac_func (); below.
20745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20746 <limits.h> exists even on freestanding compilers. */
20749 # include <limits.h>
20751 # include <assert.h>
20756 /* Override any GCC internal prototype to avoid an error.
20757 Use char because int might match the return type of a GCC
20758 builtin and then its argument prototype would still apply. */
20763 /* The GNU C library defines this for functions which it implements
20764 to always fail with ENOSYS. Some functions are actually named
20765 something starting with __ and the normal name is an alias. */
20766 #if defined __stub_$ac_func || defined __stub___$ac_func
20773 return $ac_func ();
20778 rm -f conftest.$ac_objext conftest$ac_exeext
20779 if { (ac_try="$ac_link"
20780 case "(($ac_try" in
20781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20782 *) ac_try_echo=$ac_try;;
20784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20785 (eval "$ac_link") 2>conftest.er1
20787 grep -v '^ *+' conftest.er1 >conftest.err
20789 cat conftest.err >&5
20790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791 (exit $ac_status); } &&
20792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20793 { (case "(($ac_try" in
20794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20795 *) ac_try_echo=$ac_try;;
20797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20798 (eval "$ac_try") 2>&5
20800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20801 (exit $ac_status); }; } &&
20802 { ac_try='test -s conftest$ac_exeext'
20803 { (case "(($ac_try" in
20804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20805 *) ac_try_echo=$ac_try;;
20807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20808 (eval "$ac_try") 2>&5
20810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20811 (exit $ac_status); }; }; then
20812 eval "$as_ac_var=yes"
20814 echo "$as_me: failed program was:" >&5
20815 sed 's/^/| /' conftest.$ac_ext >&5
20817 eval "$as_ac_var=no"
20820 rm -f core conftest.err conftest.$ac_objext \
20821 conftest$ac_exeext conftest.$ac_ext
20823 ac_res=`eval echo '${'$as_ac_var'}'`
20824 { echo "$as_me:$LINENO: result: $ac_res" >&5
20825 echo "${ECHO_T}$ac_res" >&6; }
20826 if test `eval echo '${'$as_ac_var'}'` = yes; then
20827 cat >>confdefs.h <<_ACEOF
20828 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20835 SHLIBEXT=$libltdl_cv_shlibext
20838 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20841 if test "${prefix}" = "NONE" ; then
20842 prefix="/usr/local"
20844 eval LLVM_PREFIX="${prefix}";
20845 eval LLVM_BINDIR="${prefix}/bin";
20846 eval LLVM_LIBDIR="${prefix}/lib";
20847 eval LLVM_DATADIR="${prefix}/share/llvm";
20848 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20849 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20850 eval LLVM_INCLUDEDIR="${prefix}/include";
20851 eval LLVM_INFODIR="${prefix}/info";
20852 eval LLVM_MANDIR="${prefix}/man";
20853 LLVM_CONFIGTIME=`date`
20865 if test "${ENABLE_TIMESTAMPS}" = "0"; then
20866 LLVM_CONFIGTIME="(timestamp not enabled)"
20870 cat >>confdefs.h <<_ACEOF
20871 #define LLVM_PREFIX "$LLVM_PREFIX"
20875 cat >>confdefs.h <<_ACEOF
20876 #define LLVM_BINDIR "$LLVM_BINDIR"
20880 cat >>confdefs.h <<_ACEOF
20881 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20885 cat >>confdefs.h <<_ACEOF
20886 #define LLVM_DATADIR "$LLVM_DATADIR"
20890 cat >>confdefs.h <<_ACEOF
20891 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20895 cat >>confdefs.h <<_ACEOF
20896 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20900 cat >>confdefs.h <<_ACEOF
20901 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20905 cat >>confdefs.h <<_ACEOF
20906 #define LLVM_INFODIR "$LLVM_INFODIR"
20910 cat >>confdefs.h <<_ACEOF
20911 #define LLVM_MANDIR "$LLVM_MANDIR"
20915 cat >>confdefs.h <<_ACEOF
20916 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20920 cat >>confdefs.h <<_ACEOF
20921 #define LLVM_HOSTTRIPLE "$host"
20925 cat >>confdefs.h <<_ACEOF
20926 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20930 if test "$BINDINGS_TO_BUILD" = auto ; then
20931 BINDINGS_TO_BUILD=""
20932 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20933 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20936 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20942 binding_prereqs_failed=0
20943 for a_binding in $BINDINGS_TO_BUILD ; do
20944 case "$a_binding" in
20946 if test "x$OCAMLC" = x ; then
20947 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20948 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20949 binding_prereqs_failed=1
20951 if test "x$OCAMLDEP" = x ; then
20952 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20953 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20954 binding_prereqs_failed=1
20956 if test "x$OCAMLOPT" = x ; then
20957 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20958 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20960 if test "x$with_ocaml_libdir" != xauto ; then
20961 OCAML_LIBDIR=$with_ocaml_libdir
20964 ocaml_stdlib="`"$OCAMLC" -where`"
20965 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20967 # ocaml stdlib is beneath our prefix; use stdlib
20968 OCAML_LIBDIR=$ocaml_stdlib
20971 # ocaml stdlib is outside our prefix; use libdir/ocaml
20972 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20979 if test "$binding_prereqs_failed" = 1 ; then
20980 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20981 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20982 { (exit 1); exit 1; }; }
20985 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20986 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20987 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20988 echo $ECHO_N "(cached) $ECHO_C" >&6
20991 ac_cpp='$CXXCPP $CPPFLAGS'
20992 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20993 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20994 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20996 oldcxxflags="$CXXFLAGS"
20997 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
20998 cat >conftest.$ac_ext <<_ACEOF
21001 cat confdefs.h >>conftest.$ac_ext
21002 cat >>conftest.$ac_ext <<_ACEOF
21003 /* end confdefs.h. */
21004 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21013 rm -f conftest.$ac_objext
21014 if { (ac_try="$ac_compile"
21015 case "(($ac_try" in
21016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21017 *) ac_try_echo=$ac_try;;
21019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21020 (eval "$ac_compile") 2>conftest.er1
21022 grep -v '^ *+' conftest.er1 >conftest.err
21024 cat conftest.err >&5
21025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026 (exit $ac_status); } &&
21027 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21028 { (case "(($ac_try" in
21029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21030 *) ac_try_echo=$ac_try;;
21032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21033 (eval "$ac_try") 2>&5
21035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21036 (exit $ac_status); }; } &&
21037 { ac_try='test -s conftest.$ac_objext'
21038 { (case "(($ac_try" in
21039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21040 *) ac_try_echo=$ac_try;;
21042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21043 (eval "$ac_try") 2>&5
21045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046 (exit $ac_status); }; }; then
21047 llvm_cv_cxx_visibility_inlines_hidden=yes
21049 echo "$as_me: failed program was:" >&5
21050 sed 's/^/| /' conftest.$ac_ext >&5
21052 llvm_cv_cxx_visibility_inlines_hidden=no
21055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21056 CXXFLAGS="$oldcxxflags"
21058 ac_cpp='$CPP $CPPFLAGS'
21059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21065 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21066 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21067 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21068 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21071 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21076 if test "$llvm_cv_link_use_r" = "yes" ; then
21083 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21084 RDYNAMIC="-Wl,-export-dynamic"
21091 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21098 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21100 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21102 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21104 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21106 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21109 ac_config_files="$ac_config_files Makefile.config"
21112 ac_config_files="$ac_config_files llvm.spec"
21115 ac_config_files="$ac_config_files docs/doxygen.cfg"
21118 if test "${clang_src_root}" = ""; then
21119 clang_src_root="$srcdir/tools/clang"
21121 if test -f ${clang_src_root}/README.txt; then
21122 configh="include/clang/Config/config.h"
21123 doxy="docs/doxygen.cfg"
21124 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21126 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21130 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21133 test "x$program_prefix" = "xNONE" && program_prefix=""
21137 ac_config_commands="$ac_config_commands setup"
21139 ac_config_commands="$ac_config_commands Makefile"
21142 ac_config_commands="$ac_config_commands Makefile.common"
21145 ac_config_commands="$ac_config_commands examples/Makefile"
21148 ac_config_commands="$ac_config_commands lib/Makefile"
21151 ac_config_commands="$ac_config_commands runtime/Makefile"
21154 ac_config_commands="$ac_config_commands test/Makefile"
21157 ac_config_commands="$ac_config_commands test/Makefile.tests"
21160 ac_config_commands="$ac_config_commands unittests/Makefile"
21163 ac_config_commands="$ac_config_commands tools/Makefile"
21166 ac_config_commands="$ac_config_commands utils/Makefile"
21169 ac_config_commands="$ac_config_commands projects/Makefile"
21172 ac_config_commands="$ac_config_commands bindings/Makefile"
21175 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21179 cat >confcache <<\_ACEOF
21180 # This file is a shell script that caches the results of configure
21181 # tests run on this system so they can be shared between configure
21182 # scripts and configure runs, see configure's option --config-cache.
21183 # It is not useful on other systems. If it contains results you don't
21184 # want to keep, you may remove or edit it.
21186 # config.status only pays attention to the cache file if you give it
21187 # the --recheck option to rerun configure.
21189 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21190 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21191 # following values.
21195 # The following way of writing the cache mishandles newlines in values,
21196 # but we know of no workaround that is simple, portable, and efficient.
21197 # So, we kill variables containing newlines.
21198 # Ultrix sh set writes to stderr and can't be redirected directly,
21199 # and sets the high bit in the cache file unless we assign to the vars.
21201 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21202 eval ac_val=\$$ac_var
21206 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21207 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21210 _ | IFS | as_nl) ;; #(
21211 *) $as_unset $ac_var ;;
21217 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21218 *${as_nl}ac_space=\ *)
21219 # `set' does not quote correctly, so add quotes (double-quote
21220 # substitution turns \\\\ into \\, and sed turns \\ into \).
21223 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21226 # `set' quotes correctly as required by POSIX, so do not add quotes.
21227 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21236 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21238 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21240 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21241 if test -w "$cache_file"; then
21242 test "x$cache_file" != "x/dev/null" &&
21243 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21244 echo "$as_me: updating cache $cache_file" >&6;}
21245 cat confcache >$cache_file
21247 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21248 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21253 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21254 # Let make expand exec_prefix.
21255 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21257 DEFS=-DHAVE_CONFIG_H
21261 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21262 # 1. Remove the extension, and $U if already installed.
21263 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21264 ac_i=`echo "$ac_i" | sed "$ac_script"`
21265 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21266 # will be set to the directory where LIBOBJS objects are built.
21267 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21268 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21270 LIBOBJS=$ac_libobjs
21272 LTLIBOBJS=$ac_ltlibobjs
21275 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21276 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21277 Usually this means the macro was only invoked conditionally." >&5
21278 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21279 Usually this means the macro was only invoked conditionally." >&2;}
21280 { (exit 1); exit 1; }; }
21282 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21283 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21284 Usually this means the macro was only invoked conditionally." >&5
21285 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21286 Usually this means the macro was only invoked conditionally." >&2;}
21287 { (exit 1); exit 1; }; }
21290 : ${CONFIG_STATUS=./config.status}
21291 ac_clean_files_save=$ac_clean_files
21292 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21293 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21294 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21295 cat >$CONFIG_STATUS <<_ACEOF
21297 # Generated by $as_me.
21298 # Run this file to recreate the current configuration.
21299 # Compiler output produced by configure, useful for debugging
21300 # configure, is in config.log if it exists.
21303 ac_cs_recheck=false
21305 SHELL=\${CONFIG_SHELL-$SHELL}
21308 cat >>$CONFIG_STATUS <<\_ACEOF
21309 ## --------------------- ##
21310 ## M4sh Initialization. ##
21311 ## --------------------- ##
21313 # Be Bourne compatible
21314 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21317 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21318 # is contrary to our usage. Disable this feature.
21319 alias -g '${1+"$@"}'='"$@"'
21320 setopt NO_GLOB_SUBST
21322 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21324 BIN_SH=xpg4; export BIN_SH # for Tru64
21325 DUALCASE=1; export DUALCASE # for MKS sh
21329 # Avoid depending upon Character Ranges.
21330 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21331 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21332 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21333 as_cr_digits='0123456789'
21334 as_cr_alnum=$as_cr_Letters$as_cr_digits
21336 # The user is always right.
21337 if test "${PATH_SEPARATOR+set}" != set; then
21338 echo "#! /bin/sh" >conf$$.sh
21339 echo "exit 0" >>conf$$.sh
21341 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21349 # Support unset when possible.
21350 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21358 # We need space, tab and new line, in precisely that order. Quoting is
21359 # there to prevent editors from complaining about space-tab.
21360 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21361 # splitting by setting IFS to empty value.)
21366 # Find who we are. Look in the path if we contain no directory separator.
21368 *[\\/]* ) as_myself=$0 ;;
21369 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21370 for as_dir in $PATH
21373 test -z "$as_dir" && as_dir=.
21374 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21380 # We did not find ourselves, most probably we were run as `sh COMMAND'
21381 # in which case we are not to be found in the path.
21382 if test "x$as_myself" = x; then
21385 if test ! -f "$as_myself"; then
21386 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21387 { (exit 1); exit 1; }
21390 # Work around bugs in pre-3.0 UWIN ksh.
21391 for as_var in ENV MAIL MAILPATH
21392 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21400 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21401 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21402 LC_TELEPHONE LC_TIME
21404 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21405 eval $as_var=C; export $as_var
21407 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21411 # Required to use basename.
21412 if expr a : '\(a\)' >/dev/null 2>&1 &&
21413 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21419 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21420 as_basename=basename
21426 # Name of the executable.
21427 as_me=`$as_basename -- "$0" ||
21428 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21429 X"$0" : 'X\(//\)$' \| \
21430 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21432 sed '/^.*\/\([^/][^/]*\)\/*$/{
21451 as_lineno_1=$LINENO
21452 as_lineno_2=$LINENO
21453 test "x$as_lineno_1" != "x$as_lineno_2" &&
21454 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21456 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21457 # uniformly replaced by the line number. The first 'sed' inserts a
21458 # line-number line after each line using $LINENO; the second 'sed'
21459 # does the real work. The second script uses 'N' to pair each
21460 # line-number line with the line containing $LINENO, and appends
21461 # trailing '-' during substitution so that $LINENO is not a special
21462 # case at line end.
21463 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21464 # scripts with optimization help from Paolo Bonzini. Blame Lee
21465 # E. McMahon (1931-1989) for sed's syntax. :-)
21477 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21480 ' >$as_me.lineno &&
21481 chmod +x "$as_me.lineno" ||
21482 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21483 { (exit 1); exit 1; }; }
21485 # Don't try to exec as it changes $[0], causing all sort of problems
21486 # (the dirname of $[0] is not the place where we might find the
21487 # original and so on. Autoconf is especially sensitive to this).
21488 . "./$as_me.lineno"
21489 # Exit status is that of the last command.
21494 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21500 ECHO_C= ECHO_N= ECHO_T=
21501 case `echo -n x` in
21503 case `echo 'x\c'` in
21504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21511 if expr a : '\(a\)' >/dev/null 2>&1 &&
21512 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21518 rm -f conf$$ conf$$.exe conf$$.file
21519 if test -d conf$$.dir; then
21520 rm -f conf$$.dir/conf$$.file
21526 if ln -s conf$$.file conf$$ 2>/dev/null; then
21528 # ... but there are two gotchas:
21529 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21530 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21531 # In both cases, we have to default to `cp -p'.
21532 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21534 elif ln conf$$.file conf$$ 2>/dev/null; then
21539 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21540 rmdir conf$$.dir 2>/dev/null
21542 if mkdir -p . 2>/dev/null; then
21545 test -d ./-p && rmdir ./-p
21549 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21550 # systems may use methods other than mode bits to determine executability.
21551 cat >conf$$.file <<_ASEOF
21555 chmod +x conf$$.file
21556 if test -x conf$$.file >/dev/null 2>&1; then
21557 as_executable_p="test -x"
21563 # Sed expression to map a string onto a valid CPP name.
21564 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21566 # Sed expression to map a string onto a valid variable name.
21567 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21572 # Save the log message, to keep $[0] and so on meaningful, and to
21573 # report actual input values of CONFIG_FILES etc. instead of their
21574 # values after options handling.
21576 This file was extended by LLVM $as_me 3.2svn, which was
21577 generated by GNU Autoconf 2.60. Invocation command line was
21579 CONFIG_FILES = $CONFIG_FILES
21580 CONFIG_HEADERS = $CONFIG_HEADERS
21581 CONFIG_LINKS = $CONFIG_LINKS
21582 CONFIG_COMMANDS = $CONFIG_COMMANDS
21585 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21590 cat >>$CONFIG_STATUS <<_ACEOF
21591 # Files that config.status was made for.
21592 config_files="$ac_config_files"
21593 config_headers="$ac_config_headers"
21594 config_commands="$ac_config_commands"
21598 cat >>$CONFIG_STATUS <<\_ACEOF
21600 \`$as_me' instantiates files from templates according to the
21601 current configuration.
21603 Usage: $0 [OPTIONS] [FILE]...
21605 -h, --help print this help, then exit
21606 -V, --version print version number, then exit
21607 -q, --quiet do not print progress messages
21608 -d, --debug don't remove temporary files
21609 --recheck update $as_me by reconfiguring in the same conditions
21610 --file=FILE[:TEMPLATE]
21611 instantiate the configuration file FILE
21612 --header=FILE[:TEMPLATE]
21613 instantiate the configuration header FILE
21615 Configuration files:
21618 Configuration headers:
21621 Configuration commands:
21624 Report bugs to <bug-autoconf@gnu.org>."
21627 cat >>$CONFIG_STATUS <<_ACEOF
21629 LLVM config.status 3.2svn
21630 configured by $0, generated by GNU Autoconf 2.60,
21631 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21633 Copyright (C) 2006 Free Software Foundation, Inc.
21634 This config.status script is free software; the Free Software Foundation
21635 gives unlimited permission to copy, distribute and modify it."
21642 cat >>$CONFIG_STATUS <<\_ACEOF
21643 # If no file are specified by the user, then we need to provide default
21644 # value. By we need to know if files were specified by the user.
21650 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21651 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21662 # Handling of the options.
21663 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21665 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21666 echo "$ac_cs_version"; exit ;;
21667 --debug | --debu | --deb | --de | --d | -d )
21669 --file | --fil | --fi | --f )
21671 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21672 ac_need_defaults=false;;
21673 --header | --heade | --head | --hea )
21675 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21676 ac_need_defaults=false;;
21678 # Conflict between --help and --header
21679 { echo "$as_me: error: ambiguous option: $1
21680 Try \`$0 --help' for more information." >&2
21681 { (exit 1); exit 1; }; };;
21682 --help | --hel | -h )
21683 echo "$ac_cs_usage"; exit ;;
21684 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21685 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21688 # This is an error.
21689 -*) { echo "$as_me: error: unrecognized option: $1
21690 Try \`$0 --help' for more information." >&2
21691 { (exit 1); exit 1; }; } ;;
21693 *) ac_config_targets="$ac_config_targets $1"
21694 ac_need_defaults=false ;;
21700 ac_configure_extra_args=
21702 if $ac_cs_silent; then
21704 ac_configure_extra_args="$ac_configure_extra_args --silent"
21708 cat >>$CONFIG_STATUS <<_ACEOF
21709 if \$ac_cs_recheck; then
21710 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21711 CONFIG_SHELL=$SHELL
21712 export CONFIG_SHELL
21713 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21717 cat >>$CONFIG_STATUS <<\_ACEOF
21721 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21722 ## Running $as_me. ##
21728 cat >>$CONFIG_STATUS <<_ACEOF
21732 llvm_src="${srcdir}"
21736 cat >>$CONFIG_STATUS <<\_ACEOF
21738 # Handling of arguments.
21739 for ac_config_target in $ac_config_targets
21741 case $ac_config_target in
21742 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21743 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21744 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21745 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21746 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21747 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21748 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21749 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21750 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21751 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21752 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21753 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
21754 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21755 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21756 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21757 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21758 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21759 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21760 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21761 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21762 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21763 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21764 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21765 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21766 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21767 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21768 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21770 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21771 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21772 { (exit 1); exit 1; }; };;
21777 # If the user did not use the arguments to specify the items to instantiate,
21778 # then the envvar interface is used. Set only those that are not.
21779 # We use the long form for the default assignment because of an extremely
21780 # bizarre bug on SunOS 4.1.3.
21781 if $ac_need_defaults; then
21782 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21783 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21784 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21787 # Have a temporary directory for convenience. Make it in the build tree
21788 # simply because there is no reason against having it here, and in addition,
21789 # creating and moving files from /tmp can sometimes cause problems.
21790 # Hook for its removal unless debugging.
21791 # Note that there is a small window in which the directory will not be cleaned:
21792 # after its creation but before its name has been assigned to `$tmp'.
21796 trap 'exit_status=$?
21797 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21799 trap '{ (exit 1); exit 1; }' 1 2 13 15
21801 # Create a (secure) tmp directory for tmp files.
21804 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21805 test -n "$tmp" && test -d "$tmp"
21808 tmp=./conf$$-$RANDOM
21809 (umask 077 && mkdir "$tmp")
21812 echo "$me: cannot create a temporary directory in ." >&2
21813 { (exit 1); exit 1; }
21817 # Set up the sed scripts for CONFIG_FILES section.
21820 # No need to generate the scripts if there are no CONFIG_FILES.
21821 # This happens for instance when ./config.status config.h
21822 if test -n "$CONFIG_FILES"; then
21829 for ac_last_try in false false false false false :; do
21830 cat >conf$$subs.sed <<_ACEOF
21831 SHELL!$SHELL$ac_delim
21832 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21833 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21834 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21835 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21836 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21837 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21838 exec_prefix!$exec_prefix$ac_delim
21839 prefix!$prefix$ac_delim
21840 program_transform_name!$program_transform_name$ac_delim
21841 bindir!$bindir$ac_delim
21842 sbindir!$sbindir$ac_delim
21843 libexecdir!$libexecdir$ac_delim
21844 datarootdir!$datarootdir$ac_delim
21845 datadir!$datadir$ac_delim
21846 sysconfdir!$sysconfdir$ac_delim
21847 sharedstatedir!$sharedstatedir$ac_delim
21848 localstatedir!$localstatedir$ac_delim
21849 includedir!$includedir$ac_delim
21850 oldincludedir!$oldincludedir$ac_delim
21851 docdir!$docdir$ac_delim
21852 infodir!$infodir$ac_delim
21853 htmldir!$htmldir$ac_delim
21854 dvidir!$dvidir$ac_delim
21855 pdfdir!$pdfdir$ac_delim
21856 psdir!$psdir$ac_delim
21857 libdir!$libdir$ac_delim
21858 localedir!$localedir$ac_delim
21859 mandir!$mandir$ac_delim
21860 DEFS!$DEFS$ac_delim
21861 ECHO_C!$ECHO_C$ac_delim
21862 ECHO_N!$ECHO_N$ac_delim
21863 ECHO_T!$ECHO_T$ac_delim
21864 LIBS!$LIBS$ac_delim
21865 build_alias!$build_alias$ac_delim
21866 host_alias!$host_alias$ac_delim
21867 target_alias!$target_alias$ac_delim
21868 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21870 CFLAGS!$CFLAGS$ac_delim
21871 LDFLAGS!$LDFLAGS$ac_delim
21872 CPPFLAGS!$CPPFLAGS$ac_delim
21873 ac_ct_CC!$ac_ct_CC$ac_delim
21874 EXEEXT!$EXEEXT$ac_delim
21875 OBJEXT!$OBJEXT$ac_delim
21877 CXXFLAGS!$CXXFLAGS$ac_delim
21878 ac_ct_CXX!$ac_ct_CXX$ac_delim
21880 subdirs!$subdirs$ac_delim
21881 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21882 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21883 build!$build$ac_delim
21884 build_cpu!$build_cpu$ac_delim
21885 build_vendor!$build_vendor$ac_delim
21886 build_os!$build_os$ac_delim
21887 host!$host$ac_delim
21888 host_cpu!$host_cpu$ac_delim
21889 host_vendor!$host_vendor$ac_delim
21890 host_os!$host_os$ac_delim
21891 target!$target$ac_delim
21892 target_cpu!$target_cpu$ac_delim
21893 target_vendor!$target_vendor$ac_delim
21894 target_os!$target_os$ac_delim
21896 HOST_OS!$HOST_OS$ac_delim
21897 TARGET_OS!$TARGET_OS$ac_delim
21898 LINKALL!$LINKALL$ac_delim
21899 NOLINKALL!$NOLINKALL$ac_delim
21900 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21901 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21902 ARCH!$ARCH$ac_delim
21903 HOST_ARCH!$HOST_ARCH$ac_delim
21904 ENDIAN!$ENDIAN$ac_delim
21905 GREP!$GREP$ac_delim
21906 EGREP!$EGREP$ac_delim
21907 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21908 BUILD_CC!$BUILD_CC$ac_delim
21909 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21910 BUILD_CXX!$BUILD_CXX$ac_delim
21911 CVSBUILD!$CVSBUILD$ac_delim
21912 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21913 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
21914 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21915 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21916 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21917 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
21918 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21919 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21920 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21921 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21922 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
21924 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21925 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21926 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21927 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
21930 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21932 elif $ac_last_try; then
21933 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21934 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21935 { (exit 1); exit 1; }; }
21937 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21941 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21942 if test -n "$ac_eof"; then
21943 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21944 ac_eof=`expr $ac_eof + 1`
21947 cat >>$CONFIG_STATUS <<_ACEOF
21948 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21949 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21952 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21953 s/^/s,@/; s/!/@,|#_!!_#|/
21956 s/'"$ac_delim"'$/,g/; t
21958 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21959 ' >>$CONFIG_STATUS <conf$$subs.sed
21960 rm -f conf$$subs.sed
21961 cat >>$CONFIG_STATUS <<_ACEOF
21967 for ac_last_try in false false false false false :; do
21968 cat >conf$$subs.sed <<_ACEOF
21969 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21970 ENABLE_PIC!$ENABLE_PIC$ac_delim
21971 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21972 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21973 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21974 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21975 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21976 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21977 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21978 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21979 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21980 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21981 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21982 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
21983 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21984 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
21986 ifGNUmake!$ifGNUmake$ac_delim
21987 LN_S!$LN_S$ac_delim
21990 DATE!$DATE$ac_delim
21991 FIND!$FIND$ac_delim
21992 MKDIR!$MKDIR$ac_delim
21994 RANLIB!$RANLIB$ac_delim
21999 BINPWD!$BINPWD$ac_delim
22000 GRAPHVIZ!$GRAPHVIZ$ac_delim
22003 NEATO!$NEATO$ac_delim
22004 TWOPI!$TWOPI$ac_delim
22005 CIRCO!$CIRCO$ac_delim
22007 DOTTY!$DOTTY$ac_delim
22008 XDOT_PY!$XDOT_PY$ac_delim
22009 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22010 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22011 INSTALL_DATA!$INSTALL_DATA$ac_delim
22012 BZIP2!$BZIP2$ac_delim
22014 DOXYGEN!$DOXYGEN$ac_delim
22015 GROFF!$GROFF$ac_delim
22016 GZIPBIN!$GZIPBIN$ac_delim
22017 PDFROFF!$PDFROFF$ac_delim
22019 OCAMLC!$OCAMLC$ac_delim
22020 OCAMLOPT!$OCAMLOPT$ac_delim
22021 OCAMLDEP!$OCAMLDEP$ac_delim
22022 OCAMLDOC!$OCAMLDOC$ac_delim
22024 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22025 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22026 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22027 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22028 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22029 LIBADD_DL!$LIBADD_DL$ac_delim
22030 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22031 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22032 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22033 USE_UDIS86!$USE_UDIS86$ac_delim
22034 USE_OPROFILE!$USE_OPROFILE$ac_delim
22035 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22036 XML2CONFIG!$XML2CONFIG$ac_delim
22037 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22038 LIBXML2_INC!$LIBXML2_INC$ac_delim
22039 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22040 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22041 MMAP_FILE!$MMAP_FILE$ac_delim
22042 SHLIBEXT!$SHLIBEXT$ac_delim
22043 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22044 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22045 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22046 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22047 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22048 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22049 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22050 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22051 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22052 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22053 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22054 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22055 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22056 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22057 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22058 RPATH!$RPATH$ac_delim
22059 RDYNAMIC!$RDYNAMIC$ac_delim
22060 program_prefix!$program_prefix$ac_delim
22061 LIBOBJS!$LIBOBJS$ac_delim
22062 LTLIBOBJS!$LTLIBOBJS$ac_delim
22065 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
22067 elif $ac_last_try; then
22068 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22069 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22070 { (exit 1); exit 1; }; }
22072 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22076 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22077 if test -n "$ac_eof"; then
22078 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22079 ac_eof=`expr $ac_eof + 1`
22082 cat >>$CONFIG_STATUS <<_ACEOF
22083 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22084 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22087 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22088 s/^/s,@/; s/!/@,|#_!!_#|/
22091 s/'"$ac_delim"'$/,g/; t
22093 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22094 ' >>$CONFIG_STATUS <conf$$subs.sed
22095 rm -f conf$$subs.sed
22096 cat >>$CONFIG_STATUS <<_ACEOF
22103 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22104 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22105 # trailing colons and then remove the whole line if VPATH becomes empty
22106 # (actually we leave an empty line to preserve line numbers).
22107 if test "x$srcdir" = x.; then
22108 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22109 s/:*\$(srcdir):*/:/
22110 s/:*\${srcdir}:*/:/
22112 s/^\([^=]*=[ ]*\):*/\1/
22118 cat >>$CONFIG_STATUS <<\_ACEOF
22119 fi # test -n "$CONFIG_FILES"
22122 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22125 :[FHLC]) ac_mode=$ac_tag; continue;;
22127 case $ac_mode$ac_tag in
22129 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22130 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22131 { (exit 1); exit 1; }; };;
22132 :[FH]-) ac_tag=-:-;;
22133 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22150 -) ac_f="$tmp/stdin";;
22151 *) # Look for the file first in the build tree, then in the source tree
22152 # (if the path is not absolute). The absolute path cannot be DOS-style,
22153 # because $ac_f cannot contain `:'.
22157 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22159 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22160 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22161 { (exit 1); exit 1; }; };;
22163 ac_file_inputs="$ac_file_inputs $ac_f"
22166 # Let's still pretend it is `configure' which instantiates (i.e., don't
22167 # use $as_me), people would be surprised to read:
22168 # /* config.h. Generated by config.status. */
22169 configure_input="Generated from "`IFS=:
22170 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22171 if test x"$ac_file" != x-; then
22172 configure_input="$ac_file. $configure_input"
22173 { echo "$as_me:$LINENO: creating $ac_file" >&5
22174 echo "$as_me: creating $ac_file" >&6;}
22178 *:-:* | *:-) cat >"$tmp/stdin";;
22183 ac_dir=`$as_dirname -- "$ac_file" ||
22184 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22185 X"$ac_file" : 'X\(//\)[^/]' \| \
22186 X"$ac_file" : 'X\(//\)$' \| \
22187 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22193 /^X\(\/\/\)[^/].*/{
22208 -*) as_dir=./$as_dir;;
22210 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22214 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22215 *) as_qdir=$as_dir;;
22217 as_dirs="'$as_qdir' $as_dirs"
22218 as_dir=`$as_dirname -- "$as_dir" ||
22219 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22220 X"$as_dir" : 'X\(//\)[^/]' \| \
22221 X"$as_dir" : 'X\(//\)$' \| \
22222 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22228 /^X\(\/\/\)[^/].*/{
22241 test -d "$as_dir" && break
22243 test -z "$as_dirs" || eval "mkdir $as_dirs"
22244 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22245 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22246 { (exit 1); exit 1; }; }; }
22250 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22252 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22253 # A ".." for each directory in $ac_dir_suffix.
22254 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22255 case $ac_top_builddir_sub in
22256 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22257 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22260 ac_abs_top_builddir=$ac_pwd
22261 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22262 # for backward compatibility:
22263 ac_top_builddir=$ac_top_build_prefix
22266 .) # We are building in place.
22268 ac_top_srcdir=$ac_top_builddir_sub
22269 ac_abs_top_srcdir=$ac_pwd ;;
22270 [\\/]* | ?:[\\/]* ) # Absolute name.
22271 ac_srcdir=$srcdir$ac_dir_suffix;
22272 ac_top_srcdir=$srcdir
22273 ac_abs_top_srcdir=$srcdir ;;
22274 *) # Relative name.
22275 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22276 ac_top_srcdir=$ac_top_build_prefix$srcdir
22277 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22279 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22289 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22290 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22294 cat >>$CONFIG_STATUS <<\_ACEOF
22295 # If the template does not know about datarootdir, expand it.
22296 # FIXME: This hack should be removed a few years after 2.60.
22297 ac_datarootdir_hack=; ac_datarootdir_seen=
22299 case `sed -n '/datarootdir/ {
22308 ' $ac_file_inputs` in
22309 *datarootdir*) ac_datarootdir_seen=yes;;
22310 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22311 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22312 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22314 cat >>$CONFIG_STATUS <<_ACEOF
22315 ac_datarootdir_hack='
22316 s&@datadir@&$datadir&g
22317 s&@docdir@&$docdir&g
22318 s&@infodir@&$infodir&g
22319 s&@localedir@&$localedir&g
22320 s&@mandir@&$mandir&g
22321 s&\\\${datarootdir}&$datarootdir&g' ;;
22325 # Neutralize VPATH when `$srcdir' = `.'.
22326 # Shell code in configure.ac might set extrasub.
22327 # FIXME: do we really want to maintain this feature?
22328 cat >>$CONFIG_STATUS <<_ACEOF
22332 cat >>$CONFIG_STATUS <<\_ACEOF
22334 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22335 s&@configure_input@&$configure_input&;t t
22336 s&@top_builddir@&$ac_top_builddir_sub&;t t
22337 s&@srcdir@&$ac_srcdir&;t t
22338 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22339 s&@top_srcdir@&$ac_top_srcdir&;t t
22340 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22341 s&@builddir@&$ac_builddir&;t t
22342 s&@abs_builddir@&$ac_abs_builddir&;t t
22343 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22344 s&@INSTALL@&$ac_INSTALL&;t t
22345 $ac_datarootdir_hack
22346 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22348 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22349 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22350 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22351 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22352 which seems to be undefined. Please make sure it is defined." >&5
22353 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22354 which seems to be undefined. Please make sure it is defined." >&2;}
22358 -) cat "$tmp/out"; rm -f "$tmp/out";;
22359 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22368 # Transform confdefs.h into a sed script `conftest.defines', that
22369 # substitutes the proper values into config.h.in to produce config.h.
22370 rm -f conftest.defines conftest.tail
22371 # First, append a space to every undef/define line, to ease matching.
22372 echo 's/$/ /' >conftest.defines
22373 # Then, protect against being on the right side of a sed subst, or in
22374 # an unquoted here document, in config.status. If some macros were
22375 # called several times there might be several #defines for the same
22376 # symbol, which is useless. But do not sort them, since the last
22377 # AC_DEFINE must be honored.
22378 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22379 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22380 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22381 # PARAMS is the parameter list in the macro definition--in most cases, it's
22382 # just an empty string.
22383 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22384 ac_dB='\\)[ (].*,\\1define\\2'
22392 s/^[ ]*#[ ]*define[ ][ ]*//
22397 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22398 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22399 ' >>conftest.defines
22401 # Remove the space that was appended to ease matching.
22402 # Then replace #undef with comments. This is necessary, for
22403 # example, in the case of _POSIX_SOURCE, which is predefined and required
22404 # on some systems where configure will not decide to define it.
22405 # (The regexp can be short, since the line contains either #define or #undef.)
22407 s,^[ #]*u.*,/* & */,' >>conftest.defines
22409 # Break up conftest.defines:
22410 ac_max_sed_lines=50
22412 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22413 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22414 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22416 ac_in='$ac_file_inputs'
22417 ac_out='"$tmp/out1"'
22418 ac_nxt='"$tmp/out2"'
22422 # Write a here document:
22423 cat >>$CONFIG_STATUS <<_ACEOF
22424 # First, check the format of the line:
22425 cat >"\$tmp/defines.sed" <<\\CEOF
22426 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22427 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22431 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22433 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22434 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22435 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22436 grep . conftest.tail >/dev/null || break
22437 rm -f conftest.defines
22438 mv conftest.tail conftest.defines
22440 rm -f conftest.defines conftest.tail
22442 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22443 cat >>$CONFIG_STATUS <<\_ACEOF
22444 if test x"$ac_file" != x-; then
22445 echo "/* $configure_input */" >"$tmp/config.h"
22446 cat "$ac_result" >>"$tmp/config.h"
22447 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22448 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22449 echo "$as_me: $ac_file is unchanged" >&6;}
22452 mv "$tmp/config.h" $ac_file
22455 echo "/* $configure_input */"
22461 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22462 echo "$as_me: executing $ac_file commands" >&6;}
22467 case $ac_file$ac_mode in
22468 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22469 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22470 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22471 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22472 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22473 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22474 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22475 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22476 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22477 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22478 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22479 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22480 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22481 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22482 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22483 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22484 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22485 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22486 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22487 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22488 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22489 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22490 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22491 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22492 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22493 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22499 { (exit 0); exit 0; }
22501 chmod +x $CONFIG_STATUS
22502 ac_clean_files=$ac_clean_files_save
22505 # configure is writing to config.log, and then calls config.status.
22506 # config.status does its own redirection, appending to config.log.
22507 # Unfortunately, on DOS this fails, as config.log is still kept open
22508 # by configure, so config.status won't be able to write to it; its
22509 # output is simply discarded. So we exec the FD to /dev/null,
22510 # effectively closing config.log, so it can be properly (re)opened and
22511 # appended to by config.status. When coming back to configure, we
22512 # need to make the FD available again.
22513 if test "$no_create" != yes; then
22515 ac_config_status_args=
22516 test "$silent" = yes &&
22517 ac_config_status_args="$ac_config_status_args --quiet"
22519 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22521 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22522 # would make configure fail if this is the last instruction.
22523 $ac_cs_success || { (exit 1); exit 1; }
22527 # CONFIG_SUBDIRS section.
22529 if test "$no_recursion" != yes; then
22531 # Remove --cache-file and --srcdir arguments so they do not pile up.
22532 ac_sub_configure_args=
22534 eval "set x $ac_configure_args"
22538 if test -n "$ac_prev"; then
22543 -cache-file | --cache-file | --cache-fil | --cache-fi \
22544 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22545 ac_prev=cache_file ;;
22546 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22547 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22550 --config-cache | -C)
22552 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22554 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22556 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22558 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22562 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22564 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22568 # Always prepend --prefix to ensure using the same prefix
22569 # in subdir configurations.
22570 ac_arg="--prefix=$prefix"
22572 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22574 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22577 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22579 # Do not complain, so a configure script can configure whichever
22580 # parts of a large source tree are present.
22581 test -d "$srcdir/$ac_dir" || continue
22583 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22584 echo "$as_me:$LINENO: $ac_msg" >&5
22588 -*) as_dir=./$as_dir;;
22590 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22594 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22595 *) as_qdir=$as_dir;;
22597 as_dirs="'$as_qdir' $as_dirs"
22598 as_dir=`$as_dirname -- "$as_dir" ||
22599 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22600 X"$as_dir" : 'X\(//\)[^/]' \| \
22601 X"$as_dir" : 'X\(//\)$' \| \
22602 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22608 /^X\(\/\/\)[^/].*/{
22621 test -d "$as_dir" && break
22623 test -z "$as_dirs" || eval "mkdir $as_dirs"
22624 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22625 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22626 { (exit 1); exit 1; }; }; }
22630 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22632 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22633 # A ".." for each directory in $ac_dir_suffix.
22634 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22635 case $ac_top_builddir_sub in
22636 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22637 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22640 ac_abs_top_builddir=$ac_pwd
22641 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22642 # for backward compatibility:
22643 ac_top_builddir=$ac_top_build_prefix
22646 .) # We are building in place.
22648 ac_top_srcdir=$ac_top_builddir_sub
22649 ac_abs_top_srcdir=$ac_pwd ;;
22650 [\\/]* | ?:[\\/]* ) # Absolute name.
22651 ac_srcdir=$srcdir$ac_dir_suffix;
22652 ac_top_srcdir=$srcdir
22653 ac_abs_top_srcdir=$srcdir ;;
22654 *) # Relative name.
22655 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22656 ac_top_srcdir=$ac_top_build_prefix$srcdir
22657 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22659 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22664 # Check for guested configure; otherwise get Cygnus style configure.
22665 if test -f "$ac_srcdir/configure.gnu"; then
22666 ac_sub_configure=$ac_srcdir/configure.gnu
22667 elif test -f "$ac_srcdir/configure"; then
22668 ac_sub_configure=$ac_srcdir/configure
22669 elif test -f "$ac_srcdir/configure.in"; then
22670 # This should be Cygnus configure.
22671 ac_sub_configure=$ac_aux_dir/configure
22673 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22674 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22678 # The recursion is here.
22679 if test -n "$ac_sub_configure"; then
22680 # Make the cache file name correct relative to the subdirectory.
22681 case $cache_file in
22682 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22683 *) # Relative name.
22684 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22687 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22688 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22689 # The eval makes quoting arguments work.
22690 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22691 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22692 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22693 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22694 { (exit 1); exit 1; }; }