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
690 ENABLE_EXPENSIVE_CHECKS
706 LLVM_ENUM_ASM_PRINTERS
707 LLVM_ENUM_ASM_PARSERS
708 LLVM_ENUM_DISASSEMBLERS
754 HAVE_LINK_VERSION_SCRIPT
757 CONVENIENCE_LTDL_TRUE
758 CONVENIENCE_LTDL_FALSE
761 NO_MISSING_FIELD_INITIALIZERS
762 COVERED_SWITCH_DEFAULT
766 INTEL_JITEVENTS_INCDIR
767 INTEL_JITEVENTS_LIBDIR
786 ENABLE_VISIBILITY_INLINES_HIDDEN
792 ac_precious_vars='build_alias
803 ac_subdirs_all='projects/llvm-gcc
807 projects/llvm-poolalloc
810 projects/llvm-stacker
818 # Initialize some variables set by options.
820 ac_init_version=false
821 # The variables have the same names as the options, with
822 # dashes changed to underlines.
830 program_transform_name=s,x,x,
838 # Installation directory options.
839 # These are left unexpanded so users can "make install exec_prefix=/foo"
840 # and all the variables that are supposed to be based on exec_prefix
841 # by default will actually change.
842 # Use braces instead of parens because sh, perl, etc. also accept them.
843 # (The list follows the same order as the GNU Coding Standards.)
844 bindir='${exec_prefix}/bin'
845 sbindir='${exec_prefix}/sbin'
846 libexecdir='${exec_prefix}/libexec'
847 datarootdir='${prefix}/share'
848 datadir='${datarootdir}'
849 sysconfdir='${prefix}/etc'
850 sharedstatedir='${prefix}/com'
851 localstatedir='${prefix}/var'
852 includedir='${prefix}/include'
853 oldincludedir='/usr/include'
854 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
855 infodir='${datarootdir}/info'
860 libdir='${exec_prefix}/lib'
861 localedir='${datarootdir}/locale'
862 mandir='${datarootdir}/man'
868 # If the previous option needs an argument, assign it.
869 if test -n "$ac_prev"; then
870 eval $ac_prev=\$ac_option
876 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880 # Accept the important Cygnus configure options, so we can diagnose typos.
882 case $ac_dashdash$ac_option in
886 -bindir | --bindir | --bindi | --bind | --bin | --bi)
888 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
891 -build | --build | --buil | --bui | --bu)
892 ac_prev=build_alias ;;
893 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
894 build_alias=$ac_optarg ;;
896 -cache-file | --cache-file | --cache-fil | --cache-fi \
897 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
898 ac_prev=cache_file ;;
899 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
900 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
901 cache_file=$ac_optarg ;;
904 cache_file=config.cache ;;
906 -datadir | --datadir | --datadi | --datad)
908 -datadir=* | --datadir=* | --datadi=* | --datad=*)
909 datadir=$ac_optarg ;;
911 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
912 | --dataroo | --dataro | --datar)
913 ac_prev=datarootdir ;;
914 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
915 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
916 datarootdir=$ac_optarg ;;
918 -disable-* | --disable-*)
919 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
920 # Reject names that are not valid shell variable names.
921 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
922 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
923 { (exit 1); exit 1; }; }
924 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
925 eval enable_$ac_feature=no ;;
927 -docdir | --docdir | --docdi | --doc | --do)
929 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937 -enable-* | --enable-*)
938 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
939 # Reject names that are not valid shell variable names.
940 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
941 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
942 { (exit 1); exit 1; }; }
943 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
944 eval enable_$ac_feature=\$ac_optarg ;;
946 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
947 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
948 | --exec | --exe | --ex)
949 ac_prev=exec_prefix ;;
950 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
951 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
952 | --exec=* | --exe=* | --ex=*)
953 exec_prefix=$ac_optarg ;;
955 -gas | --gas | --ga | --g)
956 # Obsolete; use --with-gas.
959 -help | --help | --hel | --he | -h)
961 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
962 ac_init_help=recursive ;;
963 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
964 ac_init_help=short ;;
966 -host | --host | --hos | --ho)
967 ac_prev=host_alias ;;
968 -host=* | --host=* | --hos=* | --ho=*)
969 host_alias=$ac_optarg ;;
971 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
973 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
975 htmldir=$ac_optarg ;;
977 -includedir | --includedir | --includedi | --included | --include \
978 | --includ | --inclu | --incl | --inc)
979 ac_prev=includedir ;;
980 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
981 | --includ=* | --inclu=* | --incl=* | --inc=*)
982 includedir=$ac_optarg ;;
984 -infodir | --infodir | --infodi | --infod | --info | --inf)
986 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
987 infodir=$ac_optarg ;;
989 -libdir | --libdir | --libdi | --libd)
991 -libdir=* | --libdir=* | --libdi=* | --libd=*)
994 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
995 | --libexe | --libex | --libe)
996 ac_prev=libexecdir ;;
997 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
998 | --libexe=* | --libex=* | --libe=*)
999 libexecdir=$ac_optarg ;;
1001 -localedir | --localedir | --localedi | --localed | --locale)
1002 ac_prev=localedir ;;
1003 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1004 localedir=$ac_optarg ;;
1006 -localstatedir | --localstatedir | --localstatedi | --localstated \
1007 | --localstate | --localstat | --localsta | --localst | --locals)
1008 ac_prev=localstatedir ;;
1009 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1010 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1011 localstatedir=$ac_optarg ;;
1013 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1015 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1016 mandir=$ac_optarg ;;
1018 -nfp | --nfp | --nf)
1019 # Obsolete; use --without-fp.
1022 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023 | --no-cr | --no-c | -n)
1026 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1027 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1030 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1031 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1032 | --oldin | --oldi | --old | --ol | --o)
1033 ac_prev=oldincludedir ;;
1034 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1035 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1036 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1037 oldincludedir=$ac_optarg ;;
1039 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1041 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1042 prefix=$ac_optarg ;;
1044 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1045 | --program-pre | --program-pr | --program-p)
1046 ac_prev=program_prefix ;;
1047 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1048 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1049 program_prefix=$ac_optarg ;;
1051 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1052 | --program-suf | --program-su | --program-s)
1053 ac_prev=program_suffix ;;
1054 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1055 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1056 program_suffix=$ac_optarg ;;
1058 -program-transform-name | --program-transform-name \
1059 | --program-transform-nam | --program-transform-na \
1060 | --program-transform-n | --program-transform- \
1061 | --program-transform | --program-transfor \
1062 | --program-transfo | --program-transf \
1063 | --program-trans | --program-tran \
1064 | --progr-tra | --program-tr | --program-t)
1065 ac_prev=program_transform_name ;;
1066 -program-transform-name=* | --program-transform-name=* \
1067 | --program-transform-nam=* | --program-transform-na=* \
1068 | --program-transform-n=* | --program-transform-=* \
1069 | --program-transform=* | --program-transfor=* \
1070 | --program-transfo=* | --program-transf=* \
1071 | --program-trans=* | --program-tran=* \
1072 | --progr-tra=* | --program-tr=* | --program-t=*)
1073 program_transform_name=$ac_optarg ;;
1075 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1077 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1078 pdfdir=$ac_optarg ;;
1080 -psdir | --psdir | --psdi | --psd | --ps)
1082 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086 | -silent | --silent | --silen | --sile | --sil)
1089 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1091 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1093 sbindir=$ac_optarg ;;
1095 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1096 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1097 | --sharedst | --shareds | --shared | --share | --shar \
1099 ac_prev=sharedstatedir ;;
1100 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1101 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1102 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1104 sharedstatedir=$ac_optarg ;;
1106 -site | --site | --sit)
1108 -site=* | --site=* | --sit=*)
1111 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1113 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1114 srcdir=$ac_optarg ;;
1116 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1117 | --syscon | --sysco | --sysc | --sys | --sy)
1118 ac_prev=sysconfdir ;;
1119 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1120 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1121 sysconfdir=$ac_optarg ;;
1123 -target | --target | --targe | --targ | --tar | --ta | --t)
1124 ac_prev=target_alias ;;
1125 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1126 target_alias=$ac_optarg ;;
1128 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1131 -version | --version | --versio | --versi | --vers | -V)
1132 ac_init_version=: ;;
1135 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1138 { echo "$as_me: error: invalid package name: $ac_package" >&2
1139 { (exit 1); exit 1; }; }
1140 ac_package=`echo $ac_package| sed 's/-/_/g'`
1141 eval with_$ac_package=\$ac_optarg ;;
1143 -without-* | --without-*)
1144 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1147 { echo "$as_me: error: invalid package name: $ac_package" >&2
1148 { (exit 1); exit 1; }; }
1149 ac_package=`echo $ac_package | sed 's/-/_/g'`
1150 eval with_$ac_package=no ;;
1153 # Obsolete; use --with-x.
1156 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1157 | --x-incl | --x-inc | --x-in | --x-i)
1158 ac_prev=x_includes ;;
1159 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1160 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1161 x_includes=$ac_optarg ;;
1163 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1164 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1165 ac_prev=x_libraries ;;
1166 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1167 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1168 x_libraries=$ac_optarg ;;
1170 -*) { echo "$as_me: error: unrecognized option: $ac_option
1171 Try \`$0 --help' for more information." >&2
1172 { (exit 1); exit 1; }; }
1176 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177 # Reject names that are not valid shell variable names.
1178 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1179 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1180 { (exit 1); exit 1; }; }
1181 eval $ac_envvar=\$ac_optarg
1182 export $ac_envvar ;;
1185 # FIXME: should be removed in autoconf 3.0.
1186 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1187 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1188 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1189 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1195 if test -n "$ac_prev"; then
1196 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1197 { echo "$as_me: error: missing argument to $ac_option" >&2
1198 { (exit 1); exit 1; }; }
1201 # Be sure to have absolute directory names.
1202 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203 datadir sysconfdir sharedstatedir localstatedir includedir \
1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205 libdir localedir mandir
1207 eval ac_val=\$$ac_var
1209 [\\/$]* | ?:[\\/]* ) continue;;
1210 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1212 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1213 { (exit 1); exit 1; }; }
1216 # There might be people who depend on the old broken behavior: `$host'
1217 # used to hold the argument of --host etc.
1218 # FIXME: To remove some day.
1221 target=$target_alias
1223 # FIXME: To remove some day.
1224 if test "x$host_alias" != x; then
1225 if test "x$build_alias" = x; then
1226 cross_compiling=maybe
1227 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1228 If a cross compiler is detected then cross compile mode will be used." >&2
1229 elif test "x$build_alias" != "x$host_alias"; then
1235 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1237 test "$silent" = yes && exec 6>/dev/null
1240 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1241 ac_ls_di=`ls -di .` &&
1242 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1243 { echo "$as_me: error: Working directory cannot be determined" >&2
1244 { (exit 1); exit 1; }; }
1245 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1246 { echo "$as_me: error: pwd does not report name of working directory" >&2
1247 { (exit 1); exit 1; }; }
1250 # Find the source files, if location was not specified.
1251 if test -z "$srcdir"; then
1252 ac_srcdir_defaulted=yes
1253 # Try the directory containing this script, then the parent directory.
1254 ac_confdir=`$as_dirname -- "$0" ||
1255 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256 X"$0" : 'X\(//\)[^/]' \| \
1257 X"$0" : 'X\(//\)$' \| \
1258 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1278 if test ! -r "$srcdir/$ac_unique_file"; then
1282 ac_srcdir_defaulted=no
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1285 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1286 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1287 { (exit 1); exit 1; }; }
1289 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1291 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1292 { (exit 1); exit 1; }; }
1294 # When building in place, set srcdir=.
1295 if test "$ac_abs_confdir" = "$ac_pwd"; then
1298 # Remove unnecessary trailing slashes from srcdir.
1299 # Double slashes in file names in object file debugging info
1300 # mess up M-x gdb in Emacs.
1302 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1304 for ac_var in $ac_precious_vars; do
1305 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_env_${ac_var}_value=\$${ac_var}
1307 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312 # Report the --help message.
1314 if test "$ac_init_help" = "long"; then
1315 # Omit some internal or obsolete options to make the list less imposing.
1316 # This message is too long to be a string in the A/UX 3.1 sh.
1318 \`configure' configures LLVM 3.2svn to adapt to many kinds of systems.
1320 Usage: $0 [OPTION]... [VAR=VALUE]...
1322 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1323 VAR=VALUE. See below for descriptions of some of the useful variables.
1325 Defaults for the options are specified in brackets.
1328 -h, --help display this help and exit
1329 --help=short display options specific to this package
1330 --help=recursive display the short help of all the included packages
1331 -V, --version display version information and exit
1332 -q, --quiet, --silent do not print \`checking...' messages
1333 --cache-file=FILE cache test results in FILE [disabled]
1334 -C, --config-cache alias for \`--cache-file=config.cache'
1335 -n, --no-create do not create output files
1336 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1338 Installation directories:
1339 --prefix=PREFIX install architecture-independent files in PREFIX
1340 [$ac_default_prefix]
1341 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1344 By default, \`make install' will install all the files in
1345 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1346 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1347 for instance \`--prefix=\$HOME'.
1349 For better control, use the options below.
1351 Fine tuning of the installation directories:
1352 --bindir=DIR user executables [EPREFIX/bin]
1353 --sbindir=DIR system admin executables [EPREFIX/sbin]
1354 --libexecdir=DIR program executables [EPREFIX/libexec]
1355 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1356 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1357 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1358 --libdir=DIR object code libraries [EPREFIX/lib]
1359 --includedir=DIR C header files [PREFIX/include]
1360 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1361 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1362 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1363 --infodir=DIR info documentation [DATAROOTDIR/info]
1364 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1365 --mandir=DIR man documentation [DATAROOTDIR/man]
1366 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1367 --htmldir=DIR html documentation [DOCDIR]
1368 --dvidir=DIR dvi documentation [DOCDIR]
1369 --pdfdir=DIR pdf documentation [DOCDIR]
1370 --psdir=DIR ps documentation [DOCDIR]
1376 --build=BUILD configure for building on BUILD [guessed]
1377 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1378 --target=TARGET configure for building compilers for TARGET [HOST]
1382 if test -n "$ac_init_help"; then
1383 case $ac_init_help in
1384 short | recursive ) echo "Configuration of LLVM 3.2svn:";;
1389 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1390 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1391 --enable-polly Use polly if available (default is YES)
1392 --enable-libcpp Use libc++ if available (default is NO)
1393 --enable-optimized Compile with optimizations enabled (default is NO)
1394 --enable-profiling Compile with profiling enabled (default is NO)
1395 --enable-assertions Compile with assertion checks enabled (default is
1397 --enable-expensive-checks
1398 Compile with expensive debug checks enabled (default
1400 --enable-debug-runtime Build runtime libs with debug symbols (default is
1402 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1403 optimization is on and YES if it's off)
1404 --enable-jit Enable Just In Time Compiling (default is YES)
1405 --enable-docs Build documents (default is YES)
1406 --enable-doxygen Build doxygen documentation (default is NO)
1407 --enable-threads Use threads if available (default is YES)
1408 --enable-pthreads Use pthreads if available (default is YES)
1409 --enable-pic Build LLVM with Position Independent Code (default
1411 --enable-shared Build a shared library and link tools against it
1413 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1414 Win32 DLL (default is NO)
1415 --enable-timestamps Enable embedding timestamp information in build
1417 --enable-targets Build specific host targets: all or
1418 target1,target2,... Valid targets are: host, x86,
1419 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1420 xcore, msp430, nvptx, r600, and cpp (default=all)
1421 --enable-bindings Build specific language bindings:
1422 all,auto,none,{binding-name} (default=auto)
1423 --enable-libffi Check for the presence of libffi (default is NO)
1424 --enable-ltdl-install install libltdl
1427 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1428 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1429 --with-optimize-option Select the compiler options to use for optimized
1431 --with-extra-options Specify additional options to compile LLVM with
1432 --with-extra-ld-options Specify additional options to link LLVM with
1433 --with-ocaml-libdir Specify install location for ocaml bindings (default
1435 --with-clang-srcdir Directory to the out-of-tree Clang source
1436 --with-clang-resource-dir
1437 Relative directory from the Clang binary for
1439 --with-c-include-dirs Colon separated list of directories clang will
1441 --with-gcc-toolchain Directory where gcc is installed.
1442 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1443 --with-binutils-include Specify path to binutils/include/ containing
1444 plugin-api.h file for gold plugin.
1445 --with-bug-report-url Specify the URL where bug reports should be
1446 submitted (default=http://llvm.org/bugs/)
1447 --with-internal-prefix Installation directory for internal files
1448 --with-udis86=<path> Use udis86 external x86 disassembler library
1449 --with-oprofile=<prefix>
1450 Tell OProfile >= 0.9.4 how to symbolize JIT output
1451 --with-intel-jitevents=<vtune-amplifier-dir>
1452 Specify location of run-time support library for
1454 (default=/opt/intel/vtune_amplifier_xe_2011)
1456 Some influential environment variables:
1457 CC C compiler command
1458 CFLAGS C compiler flags
1459 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1460 nonstandard directory <lib dir>
1461 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1462 you have headers in a nonstandard directory <include dir>
1463 CXX C++ compiler command
1464 CXXFLAGS C++ compiler flags
1467 Use these variables to override the choices made by `configure' or to help
1468 it to find libraries and programs with nonstandard names/locations.
1470 Report bugs to <http://llvm.org/bugs/>.
1475 if test "$ac_init_help" = "recursive"; then
1476 # If there are subdirs, report their specific --help.
1477 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1478 test -d "$ac_dir" || continue
1482 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1485 # A ".." for each directory in $ac_dir_suffix.
1486 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1487 case $ac_top_builddir_sub in
1488 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1492 ac_abs_top_builddir=$ac_pwd
1493 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1494 # for backward compatibility:
1495 ac_top_builddir=$ac_top_build_prefix
1498 .) # We are building in place.
1500 ac_top_srcdir=$ac_top_builddir_sub
1501 ac_abs_top_srcdir=$ac_pwd ;;
1502 [\\/]* | ?:[\\/]* ) # Absolute name.
1503 ac_srcdir=$srcdir$ac_dir_suffix;
1504 ac_top_srcdir=$srcdir
1505 ac_abs_top_srcdir=$srcdir ;;
1507 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1508 ac_top_srcdir=$ac_top_build_prefix$srcdir
1509 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1511 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1513 cd "$ac_dir" || { ac_status=$?; continue; }
1514 # Check for guested configure.
1515 if test -f "$ac_srcdir/configure.gnu"; then
1517 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1518 elif test -f "$ac_srcdir/configure"; then
1520 $SHELL "$ac_srcdir/configure" --help=recursive
1522 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1524 cd "$ac_pwd" || { ac_status=$?; break; }
1528 test -n "$ac_init_help" && exit $ac_status
1529 if $ac_init_version; then
1531 LLVM configure 3.2svn
1532 generated by GNU Autoconf 2.60
1534 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1535 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1536 This configure script is free software; the Free Software Foundation
1537 gives unlimited permission to copy, distribute and modify it.
1539 Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
1543 cat >config.log <<_ACEOF
1544 This file contains any messages produced by compilers while
1545 running configure, to aid debugging if configure makes a mistake.
1547 It was created by LLVM $as_me 3.2svn, which was
1548 generated by GNU Autoconf 2.60. Invocation command line was
1560 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1561 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1562 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1563 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1564 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1566 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1567 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1569 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1570 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1571 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1572 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1573 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1574 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1575 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1583 test -z "$as_dir" && as_dir=.
1584 echo "PATH: $as_dir"
1600 # Keep a trace of the command line.
1601 # Strip out --no-create and --no-recursion so they do not pile up.
1602 # Strip out --silent because we don't want to record it for future runs.
1603 # Also quote any args containing shell meta-characters.
1604 # Make two passes to allow for proper duplicate-argument suppression.
1608 ac_must_keep_next=false
1614 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1615 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1616 | -silent | --silent | --silen | --sile | --sil)
1619 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1622 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1624 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1625 if test $ac_must_keep_next = true; then
1626 ac_must_keep_next=false # Got value, back to normal.
1629 *=* | --config-cache | -C | -disable-* | --disable-* \
1630 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1631 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1632 | -with-* | --with-* | -without-* | --without-* | --x)
1633 case "$ac_configure_args0 " in
1634 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1637 -* ) ac_must_keep_next=true ;;
1640 ac_configure_args="$ac_configure_args '$ac_arg'"
1645 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1646 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1648 # When interrupted or exit'd, cleanup temporary files, and complete
1649 # config.log. We remove comments because anyway the quotes in there
1650 # would cause problems or look ugly.
1651 # WARNING: Use '\'' to represent an apostrophe within the trap.
1652 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1653 trap 'exit_status=$?
1654 # Save into config.log some information that might help in debugging.
1659 ## ---------------- ##
1660 ## Cache variables. ##
1661 ## ---------------- ##
1664 # The following way of writing the cache mishandles newlines in values,
1666 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1667 eval ac_val=\$$ac_var
1671 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1672 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1675 _ | IFS | as_nl) ;; #(
1676 *) $as_unset $ac_var ;;
1681 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1682 *${as_nl}ac_space=\ *)
1684 "s/'\''/'\''\\\\'\'''\''/g;
1685 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1688 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1696 ## ----------------- ##
1697 ## Output variables. ##
1698 ## ----------------- ##
1701 for ac_var in $ac_subst_vars
1703 eval ac_val=\$$ac_var
1705 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1707 echo "$ac_var='\''$ac_val'\''"
1711 if test -n "$ac_subst_files"; then
1713 ## ------------------- ##
1714 ## File substitutions. ##
1715 ## ------------------- ##
1718 for ac_var in $ac_subst_files
1720 eval ac_val=\$$ac_var
1722 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1724 echo "$ac_var='\''$ac_val'\''"
1729 if test -s confdefs.h; then
1739 test "$ac_signal" != 0 &&
1740 echo "$as_me: caught signal $ac_signal"
1741 echo "$as_me: exit $exit_status"
1743 rm -f core *.core core.conftest.* &&
1744 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1747 for ac_signal in 1 2 13 15; do
1748 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1752 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1753 rm -f -r conftest* confdefs.h
1755 # Predefined preprocessor variables.
1757 cat >>confdefs.h <<_ACEOF
1758 #define PACKAGE_NAME "$PACKAGE_NAME"
1762 cat >>confdefs.h <<_ACEOF
1763 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1767 cat >>confdefs.h <<_ACEOF
1768 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1772 cat >>confdefs.h <<_ACEOF
1773 #define PACKAGE_STRING "$PACKAGE_STRING"
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1782 # Let the site file select an alternate cache file if it wants to.
1783 # Prefer explicitly selected file to automatically selected ones.
1784 if test -n "$CONFIG_SITE"; then
1785 set x "$CONFIG_SITE"
1786 elif test "x$prefix" != xNONE; then
1787 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1789 set x "$ac_default_prefix/share/config.site" \
1790 "$ac_default_prefix/etc/config.site"
1795 if test -r "$ac_site_file"; then
1796 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1797 echo "$as_me: loading site script $ac_site_file" >&6;}
1798 sed 's/^/| /' "$ac_site_file" >&5
1803 if test -r "$cache_file"; then
1804 # Some versions of bash will fail to source /dev/null (special
1805 # files actually), so we avoid doing that.
1806 if test -f "$cache_file"; then
1807 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1808 echo "$as_me: loading cache $cache_file" >&6;}
1810 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1811 *) . "./$cache_file";;
1815 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1816 echo "$as_me: creating cache $cache_file" >&6;}
1820 # Check that the precious variables saved in the cache have kept the same
1822 ac_cache_corrupted=false
1823 for ac_var in $ac_precious_vars; do
1824 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1825 eval ac_new_set=\$ac_env_${ac_var}_set
1826 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1827 eval ac_new_val=\$ac_env_${ac_var}_value
1828 case $ac_old_set,$ac_new_set in
1830 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1831 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1832 ac_cache_corrupted=: ;;
1834 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1835 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1836 ac_cache_corrupted=: ;;
1839 if test "x$ac_old_val" != "x$ac_new_val"; then
1840 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1841 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1842 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1843 echo "$as_me: former value: $ac_old_val" >&2;}
1844 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1845 echo "$as_me: current value: $ac_new_val" >&2;}
1846 ac_cache_corrupted=:
1849 # Pass precious variables to config.status.
1850 if test "$ac_new_set" = set; then
1852 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1853 *) ac_arg=$ac_var=$ac_new_val ;;
1855 case " $ac_configure_args " in
1856 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1857 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1861 if $ac_cache_corrupted; then
1862 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1863 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1864 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1865 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1866 { (exit 1); exit 1; }; }
1894 ac_cpp='$CPP $CPPFLAGS'
1895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1901 cat >>confdefs.h <<\_ACEOF
1902 #define LLVM_VERSION_MAJOR 3
1906 cat >>confdefs.h <<\_ACEOF
1907 #define LLVM_VERSION_MINOR 2
1911 LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
1920 for ac_dir in autoconf "$srcdir"/autoconf; do
1921 if test -f "$ac_dir/install-sh"; then
1923 ac_install_sh="$ac_aux_dir/install-sh -c"
1925 elif test -f "$ac_dir/install.sh"; then
1927 ac_install_sh="$ac_aux_dir/install.sh -c"
1929 elif test -f "$ac_dir/shtool"; then
1931 ac_install_sh="$ac_aux_dir/shtool install -c"
1935 if test -z "$ac_aux_dir"; then
1936 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1937 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1938 { (exit 1); exit 1; }; }
1941 # These three variables are undocumented and unsupported,
1942 # and are intended to be withdrawn in a future Autoconf release.
1943 # They can cause serious problems if a builder's source tree is in a directory
1944 # whose full name contains unusual characters.
1945 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1946 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1947 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1951 if test ${srcdir} != "." ; then
1952 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1953 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1954 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1955 { (exit 1); exit 1; }; }
1960 ac_cpp='$CPP $CPPFLAGS'
1961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1964 if test -n "$ac_tool_prefix"; then
1965 for ac_prog in clang llvm-gcc gcc
1967 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1968 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1971 if test "${ac_cv_prog_CC+set}" = set; then
1972 echo $ECHO_N "(cached) $ECHO_C" >&6
1974 if test -n "$CC"; then
1975 ac_cv_prog_CC="$CC" # Let the user override the test.
1977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981 test -z "$as_dir" && as_dir=.
1982 for ac_exec_ext in '' $ac_executable_extensions; do
1983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1984 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1995 if test -n "$CC"; then
1996 { echo "$as_me:$LINENO: result: $CC" >&5
1997 echo "${ECHO_T}$CC" >&6; }
1999 { echo "$as_me:$LINENO: result: no" >&5
2000 echo "${ECHO_T}no" >&6; }
2004 test -n "$CC" && break
2007 if test -z "$CC"; then
2009 for ac_prog in clang llvm-gcc gcc
2011 # Extract the first word of "$ac_prog", so it can be a program name with args.
2012 set dummy $ac_prog; ac_word=$2
2013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2015 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2016 echo $ECHO_N "(cached) $ECHO_C" >&6
2018 if test -n "$ac_ct_CC"; then
2019 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025 test -z "$as_dir" && as_dir=.
2026 for ac_exec_ext in '' $ac_executable_extensions; do
2027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2028 ac_cv_prog_ac_ct_CC="$ac_prog"
2029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2038 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2039 if test -n "$ac_ct_CC"; then
2040 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2041 echo "${ECHO_T}$ac_ct_CC" >&6; }
2043 { echo "$as_me:$LINENO: result: no" >&5
2044 echo "${ECHO_T}no" >&6; }
2048 test -n "$ac_ct_CC" && break
2051 if test "x$ac_ct_CC" = x; then
2054 case $cross_compiling:$ac_tool_warned in
2056 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2057 whose name does not start with the host triplet. If you think this
2058 configuration is useful to you, please write to autoconf@gnu.org." >&5
2059 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2060 whose name does not start with the host triplet. If you think this
2061 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2062 ac_tool_warned=yes ;;
2069 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2070 See \`config.log' for more details." >&5
2071 echo "$as_me: error: no acceptable C compiler found in \$PATH
2072 See \`config.log' for more details." >&2;}
2073 { (exit 1); exit 1; }; }
2075 # Provide some information about the compiler.
2076 echo "$as_me:$LINENO: checking for C compiler version" >&5
2077 ac_compiler=`set X $ac_compile; echo $2`
2078 { (ac_try="$ac_compiler --version >&5"
2080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2081 *) ac_try_echo=$ac_try;;
2083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2084 (eval "$ac_compiler --version >&5") 2>&5
2086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087 (exit $ac_status); }
2088 { (ac_try="$ac_compiler -v >&5"
2090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2091 *) ac_try_echo=$ac_try;;
2093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2094 (eval "$ac_compiler -v >&5") 2>&5
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }
2098 { (ac_try="$ac_compiler -V >&5"
2100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2101 *) ac_try_echo=$ac_try;;
2103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2104 (eval "$ac_compiler -V >&5") 2>&5
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); }
2109 cat >conftest.$ac_ext <<_ACEOF
2112 cat confdefs.h >>conftest.$ac_ext
2113 cat >>conftest.$ac_ext <<_ACEOF
2114 /* end confdefs.h. */
2124 ac_clean_files_save=$ac_clean_files
2125 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2126 # Try to create an executable without -o first, disregard a.out.
2127 # It will help us diagnose broken compilers, and finding out an intuition
2129 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2130 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2131 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2133 # List of possible output files, starting from the most likely.
2134 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2135 # only as a last resort. b.out is created by i960 compilers.
2136 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2138 # The IRIX 6 linker writes into existing files which may not be
2139 # executable, retaining their permissions. Remove them first so a
2140 # subsequent execution test works.
2142 for ac_file in $ac_files
2145 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2146 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2151 if { (ac_try="$ac_link_default"
2153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2154 *) ac_try_echo=$ac_try;;
2156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2157 (eval "$ac_link_default") 2>&5
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); }; then
2161 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2162 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2163 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2164 # so that the user can short-circuit this test for compilers unknown to
2166 for ac_file in $ac_files
2168 test -f "$ac_file" || continue
2170 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2173 # We found the default executable, but exeext='' is most
2177 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2179 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2181 # We set ac_cv_exeext here because the later test for it is not
2182 # safe: cross compilers may not add the suffix if given an `-o'
2183 # argument, so we may need to know it at that point already.
2184 # Even if this section looks crufty: it has the advantage of
2191 test "$ac_cv_exeext" = no && ac_cv_exeext=
2194 echo "$as_me: failed program was:" >&5
2195 sed 's/^/| /' conftest.$ac_ext >&5
2197 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2198 See \`config.log' for more details." >&5
2199 echo "$as_me: error: C compiler cannot create executables
2200 See \`config.log' for more details." >&2;}
2201 { (exit 77); exit 77; }; }
2204 ac_exeext=$ac_cv_exeext
2205 { echo "$as_me:$LINENO: result: $ac_file" >&5
2206 echo "${ECHO_T}$ac_file" >&6; }
2208 # Check that the compiler produces executables we can run. If not, either
2209 # the compiler is broken, or we cross compile.
2210 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2211 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2212 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2213 # If not cross compiling, check that we can run a simple program.
2214 if test "$cross_compiling" != yes; then
2215 if { ac_try='./$ac_file'
2216 { (case "(($ac_try" in
2217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2218 *) ac_try_echo=$ac_try;;
2220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2221 (eval "$ac_try") 2>&5
2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224 (exit $ac_status); }; }; then
2227 if test "$cross_compiling" = maybe; then
2230 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2231 If you meant to cross compile, use \`--host'.
2232 See \`config.log' for more details." >&5
2233 echo "$as_me: error: cannot run C compiled programs.
2234 If you meant to cross compile, use \`--host'.
2235 See \`config.log' for more details." >&2;}
2236 { (exit 1); exit 1; }; }
2240 { echo "$as_me:$LINENO: result: yes" >&5
2241 echo "${ECHO_T}yes" >&6; }
2243 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2244 ac_clean_files=$ac_clean_files_save
2245 # Check that the compiler produces executables we can run. If not, either
2246 # the compiler is broken, or we cross compile.
2247 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2248 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2249 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2250 echo "${ECHO_T}$cross_compiling" >&6; }
2252 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2253 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2254 if { (ac_try="$ac_link"
2256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2257 *) ac_try_echo=$ac_try;;
2259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2260 (eval "$ac_link") 2>&5
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }; then
2264 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2265 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2266 # work properly (i.e., refer to `conftest.exe'), while it won't with
2268 for ac_file in conftest.exe conftest conftest.*; do
2269 test -f "$ac_file" || continue
2271 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2272 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2278 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2279 See \`config.log' for more details." >&5
2280 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2281 See \`config.log' for more details." >&2;}
2282 { (exit 1); exit 1; }; }
2285 rm -f conftest$ac_cv_exeext
2286 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2287 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2289 rm -f conftest.$ac_ext
2290 EXEEXT=$ac_cv_exeext
2292 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2293 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2294 if test "${ac_cv_objext+set}" = set; then
2295 echo $ECHO_N "(cached) $ECHO_C" >&6
2297 cat >conftest.$ac_ext <<_ACEOF
2300 cat confdefs.h >>conftest.$ac_ext
2301 cat >>conftest.$ac_ext <<_ACEOF
2302 /* end confdefs.h. */
2312 rm -f conftest.o conftest.obj
2313 if { (ac_try="$ac_compile"
2315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2316 *) ac_try_echo=$ac_try;;
2318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2319 (eval "$ac_compile") 2>&5
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; then
2323 for ac_file in conftest.o conftest.obj conftest.*; do
2324 test -f "$ac_file" || continue;
2326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2327 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2332 echo "$as_me: failed program was:" >&5
2333 sed 's/^/| /' conftest.$ac_ext >&5
2335 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2336 See \`config.log' for more details." >&5
2337 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2338 See \`config.log' for more details." >&2;}
2339 { (exit 1); exit 1; }; }
2342 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2344 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2345 echo "${ECHO_T}$ac_cv_objext" >&6; }
2346 OBJEXT=$ac_cv_objext
2348 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2349 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2350 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2351 echo $ECHO_N "(cached) $ECHO_C" >&6
2353 cat >conftest.$ac_ext <<_ACEOF
2356 cat confdefs.h >>conftest.$ac_ext
2357 cat >>conftest.$ac_ext <<_ACEOF
2358 /* end confdefs.h. */
2371 rm -f conftest.$ac_objext
2372 if { (ac_try="$ac_compile"
2374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2375 *) ac_try_echo=$ac_try;;
2377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2378 (eval "$ac_compile") 2>conftest.er1
2380 grep -v '^ *+' conftest.er1 >conftest.err
2382 cat conftest.err >&5
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); } &&
2385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2386 { (case "(($ac_try" in
2387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2388 *) ac_try_echo=$ac_try;;
2390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2391 (eval "$ac_try") 2>&5
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); }; } &&
2395 { ac_try='test -s conftest.$ac_objext'
2396 { (case "(($ac_try" in
2397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2398 *) ac_try_echo=$ac_try;;
2400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2401 (eval "$ac_try") 2>&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; }; then
2407 echo "$as_me: failed program was:" >&5
2408 sed 's/^/| /' conftest.$ac_ext >&5
2413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2414 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2417 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2418 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2419 GCC=`test $ac_compiler_gnu = yes && echo yes`
2420 ac_test_CFLAGS=${CFLAGS+set}
2421 ac_save_CFLAGS=$CFLAGS
2422 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2423 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2424 if test "${ac_cv_prog_cc_g+set}" = set; then
2425 echo $ECHO_N "(cached) $ECHO_C" >&6
2427 ac_save_c_werror_flag=$ac_c_werror_flag
2428 ac_c_werror_flag=yes
2431 cat >conftest.$ac_ext <<_ACEOF
2434 cat confdefs.h >>conftest.$ac_ext
2435 cat >>conftest.$ac_ext <<_ACEOF
2436 /* end confdefs.h. */
2446 rm -f conftest.$ac_objext
2447 if { (ac_try="$ac_compile"
2449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2450 *) ac_try_echo=$ac_try;;
2452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2453 (eval "$ac_compile") 2>conftest.er1
2455 grep -v '^ *+' conftest.er1 >conftest.err
2457 cat conftest.err >&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); } &&
2460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2461 { (case "(($ac_try" in
2462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2463 *) ac_try_echo=$ac_try;;
2465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2466 (eval "$ac_try") 2>&5
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }; } &&
2470 { ac_try='test -s conftest.$ac_objext'
2471 { (case "(($ac_try" in
2472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2473 *) ac_try_echo=$ac_try;;
2475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2476 (eval "$ac_try") 2>&5
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); }; }; then
2482 echo "$as_me: failed program was:" >&5
2483 sed 's/^/| /' conftest.$ac_ext >&5
2486 cat >conftest.$ac_ext <<_ACEOF
2489 cat confdefs.h >>conftest.$ac_ext
2490 cat >>conftest.$ac_ext <<_ACEOF
2491 /* end confdefs.h. */
2501 rm -f conftest.$ac_objext
2502 if { (ac_try="$ac_compile"
2504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2505 *) ac_try_echo=$ac_try;;
2507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2508 (eval "$ac_compile") 2>conftest.er1
2510 grep -v '^ *+' conftest.er1 >conftest.err
2512 cat conftest.err >&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); } &&
2515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2516 { (case "(($ac_try" in
2517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2518 *) ac_try_echo=$ac_try;;
2520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2521 (eval "$ac_try") 2>&5
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); }; } &&
2525 { ac_try='test -s conftest.$ac_objext'
2526 { (case "(($ac_try" in
2527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2528 *) ac_try_echo=$ac_try;;
2530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2531 (eval "$ac_try") 2>&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); }; }; then
2537 echo "$as_me: failed program was:" >&5
2538 sed 's/^/| /' conftest.$ac_ext >&5
2540 ac_c_werror_flag=$ac_save_c_werror_flag
2542 cat >conftest.$ac_ext <<_ACEOF
2545 cat confdefs.h >>conftest.$ac_ext
2546 cat >>conftest.$ac_ext <<_ACEOF
2547 /* end confdefs.h. */
2557 rm -f conftest.$ac_objext
2558 if { (ac_try="$ac_compile"
2560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2561 *) ac_try_echo=$ac_try;;
2563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2564 (eval "$ac_compile") 2>conftest.er1
2566 grep -v '^ *+' conftest.er1 >conftest.err
2568 cat conftest.err >&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); } &&
2571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2572 { (case "(($ac_try" in
2573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2574 *) ac_try_echo=$ac_try;;
2576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2577 (eval "$ac_try") 2>&5
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; } &&
2581 { ac_try='test -s conftest.$ac_objext'
2582 { (case "(($ac_try" in
2583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2584 *) ac_try_echo=$ac_try;;
2586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2587 (eval "$ac_try") 2>&5
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; }; then
2593 echo "$as_me: failed program was:" >&5
2594 sed 's/^/| /' conftest.$ac_ext >&5
2599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2606 ac_c_werror_flag=$ac_save_c_werror_flag
2608 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2609 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2610 if test "$ac_test_CFLAGS" = set; then
2611 CFLAGS=$ac_save_CFLAGS
2612 elif test $ac_cv_prog_cc_g = yes; then
2613 if test "$GCC" = yes; then
2619 if test "$GCC" = yes; then
2625 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2626 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2627 if test "${ac_cv_prog_cc_c89+set}" = set; then
2628 echo $ECHO_N "(cached) $ECHO_C" >&6
2630 ac_cv_prog_cc_c89=no
2632 cat >conftest.$ac_ext <<_ACEOF
2635 cat confdefs.h >>conftest.$ac_ext
2636 cat >>conftest.$ac_ext <<_ACEOF
2637 /* end confdefs.h. */
2640 #include <sys/types.h>
2641 #include <sys/stat.h>
2642 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2643 struct buf { int x; };
2644 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2645 static char *e (p, i)
2651 static char *f (char * (*g) (char **, int), char **p, ...)
2656 s = g (p, va_arg (v,int));
2661 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2662 function prototypes and stuff, but not '\xHH' hex character constants.
2663 These don't provoke an error unfortunately, instead are silently treated
2664 as 'x'. The following induces an error, until -std is added to get
2665 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2666 array size at least. It's necessary to write '\x00'==0 to get something
2667 that's true only with -std. */
2668 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2670 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2671 inside strings and character constants. */
2673 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2675 int test (int i, double x);
2676 struct s1 {int (*f) (int a);};
2677 struct s2 {int (*f) (double a);};
2678 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2684 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2689 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2690 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2692 CC="$ac_save_CC $ac_arg"
2693 rm -f conftest.$ac_objext
2694 if { (ac_try="$ac_compile"
2696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697 *) ac_try_echo=$ac_try;;
2699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2700 (eval "$ac_compile") 2>conftest.er1
2702 grep -v '^ *+' conftest.er1 >conftest.err
2704 cat conftest.err >&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); } &&
2707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2708 { (case "(($ac_try" in
2709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710 *) ac_try_echo=$ac_try;;
2712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2713 (eval "$ac_try") 2>&5
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }; } &&
2717 { ac_try='test -s conftest.$ac_objext'
2718 { (case "(($ac_try" in
2719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720 *) ac_try_echo=$ac_try;;
2722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2723 (eval "$ac_try") 2>&5
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }; }; then
2727 ac_cv_prog_cc_c89=$ac_arg
2729 echo "$as_me: failed program was:" >&5
2730 sed 's/^/| /' conftest.$ac_ext >&5
2735 rm -f core conftest.err conftest.$ac_objext
2736 test "x$ac_cv_prog_cc_c89" != "xno" && break
2738 rm -f conftest.$ac_ext
2743 case "x$ac_cv_prog_cc_c89" in
2745 { echo "$as_me:$LINENO: result: none needed" >&5
2746 echo "${ECHO_T}none needed" >&6; } ;;
2748 { echo "$as_me:$LINENO: result: unsupported" >&5
2749 echo "${ECHO_T}unsupported" >&6; } ;;
2751 CC="$CC $ac_cv_prog_cc_c89"
2752 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2753 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2758 ac_cpp='$CPP $CPPFLAGS'
2759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2764 ac_cpp='$CXXCPP $CPPFLAGS'
2765 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2766 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2767 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2768 if test -z "$CXX"; then
2769 if test -n "$CCC"; then
2772 if test -n "$ac_tool_prefix"; then
2773 for ac_prog in clang++ llvm-g++ g++
2775 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2776 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2779 if test "${ac_cv_prog_CXX+set}" = set; then
2780 echo $ECHO_N "(cached) $ECHO_C" >&6
2782 if test -n "$CXX"; then
2783 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789 test -z "$as_dir" && as_dir=.
2790 for ac_exec_ext in '' $ac_executable_extensions; do
2791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2792 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2803 if test -n "$CXX"; then
2804 { echo "$as_me:$LINENO: result: $CXX" >&5
2805 echo "${ECHO_T}$CXX" >&6; }
2807 { echo "$as_me:$LINENO: result: no" >&5
2808 echo "${ECHO_T}no" >&6; }
2812 test -n "$CXX" && break
2815 if test -z "$CXX"; then
2817 for ac_prog in clang++ llvm-g++ g++
2819 # Extract the first word of "$ac_prog", so it can be a program name with args.
2820 set dummy $ac_prog; ac_word=$2
2821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2823 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2824 echo $ECHO_N "(cached) $ECHO_C" >&6
2826 if test -n "$ac_ct_CXX"; then
2827 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833 test -z "$as_dir" && as_dir=.
2834 for ac_exec_ext in '' $ac_executable_extensions; do
2835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2836 ac_cv_prog_ac_ct_CXX="$ac_prog"
2837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2846 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2847 if test -n "$ac_ct_CXX"; then
2848 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2849 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2851 { echo "$as_me:$LINENO: result: no" >&5
2852 echo "${ECHO_T}no" >&6; }
2856 test -n "$ac_ct_CXX" && break
2859 if test "x$ac_ct_CXX" = x; then
2862 case $cross_compiling:$ac_tool_warned in
2864 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2865 whose name does not start with the host triplet. If you think this
2866 configuration is useful to you, please write to autoconf@gnu.org." >&5
2867 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2868 whose name does not start with the host triplet. If you think this
2869 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2870 ac_tool_warned=yes ;;
2878 # Provide some information about the compiler.
2879 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2880 ac_compiler=`set X $ac_compile; echo $2`
2881 { (ac_try="$ac_compiler --version >&5"
2883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884 *) ac_try_echo=$ac_try;;
2886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2887 (eval "$ac_compiler --version >&5") 2>&5
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }
2891 { (ac_try="$ac_compiler -v >&5"
2893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894 *) ac_try_echo=$ac_try;;
2896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2897 (eval "$ac_compiler -v >&5") 2>&5
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); }
2901 { (ac_try="$ac_compiler -V >&5"
2903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904 *) ac_try_echo=$ac_try;;
2906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2907 (eval "$ac_compiler -V >&5") 2>&5
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); }
2912 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2913 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2914 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2915 echo $ECHO_N "(cached) $ECHO_C" >&6
2917 cat >conftest.$ac_ext <<_ACEOF
2920 cat confdefs.h >>conftest.$ac_ext
2921 cat >>conftest.$ac_ext <<_ACEOF
2922 /* end confdefs.h. */
2935 rm -f conftest.$ac_objext
2936 if { (ac_try="$ac_compile"
2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939 *) ac_try_echo=$ac_try;;
2941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2942 (eval "$ac_compile") 2>conftest.er1
2944 grep -v '^ *+' conftest.er1 >conftest.err
2946 cat conftest.err >&5
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); } &&
2949 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2950 { (case "(($ac_try" in
2951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2952 *) ac_try_echo=$ac_try;;
2954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2955 (eval "$ac_try") 2>&5
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); }; } &&
2959 { ac_try='test -s conftest.$ac_objext'
2960 { (case "(($ac_try" in
2961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962 *) ac_try_echo=$ac_try;;
2964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2965 (eval "$ac_try") 2>&5
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); }; }; then
2971 echo "$as_me: failed program was:" >&5
2972 sed 's/^/| /' conftest.$ac_ext >&5
2977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2978 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2981 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2982 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2983 GXX=`test $ac_compiler_gnu = yes && echo yes`
2984 ac_test_CXXFLAGS=${CXXFLAGS+set}
2985 ac_save_CXXFLAGS=$CXXFLAGS
2986 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2987 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2988 if test "${ac_cv_prog_cxx_g+set}" = set; then
2989 echo $ECHO_N "(cached) $ECHO_C" >&6
2991 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2992 ac_cxx_werror_flag=yes
2995 cat >conftest.$ac_ext <<_ACEOF
2998 cat confdefs.h >>conftest.$ac_ext
2999 cat >>conftest.$ac_ext <<_ACEOF
3000 /* end confdefs.h. */
3010 rm -f conftest.$ac_objext
3011 if { (ac_try="$ac_compile"
3013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014 *) ac_try_echo=$ac_try;;
3016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3017 (eval "$ac_compile") 2>conftest.er1
3019 grep -v '^ *+' conftest.er1 >conftest.err
3021 cat conftest.err >&5
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); } &&
3024 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3025 { (case "(($ac_try" in
3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3030 (eval "$ac_try") 2>&5
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); }; } &&
3034 { ac_try='test -s conftest.$ac_objext'
3035 { (case "(($ac_try" in
3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037 *) ac_try_echo=$ac_try;;
3039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040 (eval "$ac_try") 2>&5
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); }; }; then
3044 ac_cv_prog_cxx_g=yes
3046 echo "$as_me: failed program was:" >&5
3047 sed 's/^/| /' conftest.$ac_ext >&5
3050 cat >conftest.$ac_ext <<_ACEOF
3053 cat confdefs.h >>conftest.$ac_ext
3054 cat >>conftest.$ac_ext <<_ACEOF
3055 /* end confdefs.h. */
3065 rm -f conftest.$ac_objext
3066 if { (ac_try="$ac_compile"
3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069 *) ac_try_echo=$ac_try;;
3071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3072 (eval "$ac_compile") 2>conftest.er1
3074 grep -v '^ *+' conftest.er1 >conftest.err
3076 cat conftest.err >&5
3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); } &&
3079 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3080 { (case "(($ac_try" in
3081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082 *) ac_try_echo=$ac_try;;
3084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3085 (eval "$ac_try") 2>&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); }; } &&
3089 { ac_try='test -s conftest.$ac_objext'
3090 { (case "(($ac_try" in
3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092 *) ac_try_echo=$ac_try;;
3094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3095 (eval "$ac_try") 2>&5
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); }; }; then
3101 echo "$as_me: failed program was:" >&5
3102 sed 's/^/| /' conftest.$ac_ext >&5
3104 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3106 cat >conftest.$ac_ext <<_ACEOF
3109 cat confdefs.h >>conftest.$ac_ext
3110 cat >>conftest.$ac_ext <<_ACEOF
3111 /* end confdefs.h. */
3121 rm -f conftest.$ac_objext
3122 if { (ac_try="$ac_compile"
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128 (eval "$ac_compile") 2>conftest.er1
3130 grep -v '^ *+' conftest.er1 >conftest.err
3132 cat conftest.err >&5
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); } &&
3135 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3136 { (case "(($ac_try" in
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3141 (eval "$ac_try") 2>&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }; } &&
3145 { ac_try='test -s conftest.$ac_objext'
3146 { (case "(($ac_try" in
3147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148 *) ac_try_echo=$ac_try;;
3150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151 (eval "$ac_try") 2>&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }; }; then
3155 ac_cv_prog_cxx_g=yes
3157 echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.$ac_ext >&5
3163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3170 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3172 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3173 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3174 if test "$ac_test_CXXFLAGS" = set; then
3175 CXXFLAGS=$ac_save_CXXFLAGS
3176 elif test $ac_cv_prog_cxx_g = yes; then
3177 if test "$GXX" = yes; then
3183 if test "$GXX" = yes; then
3190 ac_cpp='$CPP $CPPFLAGS'
3191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3196 ac_cpp='$CPP $CPPFLAGS'
3197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3200 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3201 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3202 # On Suns, sometimes $CPP names a directory.
3203 if test -n "$CPP" && test -d "$CPP"; then
3206 if test -z "$CPP"; then
3207 if test "${ac_cv_prog_CPP+set}" = set; then
3208 echo $ECHO_N "(cached) $ECHO_C" >&6
3210 # Double quotes because CPP needs to be expanded
3211 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3214 for ac_c_preproc_warn_flag in '' yes
3216 # Use a header file that comes with gcc, so configuring glibc
3217 # with a fresh cross-compiler works.
3218 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3219 # <limits.h> exists even on freestanding compilers.
3220 # On the NeXT, cc -E runs the code through the compiler's parser,
3221 # not just through cpp. "Syntax error" is here to catch this case.
3222 cat >conftest.$ac_ext <<_ACEOF
3225 cat confdefs.h >>conftest.$ac_ext
3226 cat >>conftest.$ac_ext <<_ACEOF
3227 /* end confdefs.h. */
3229 # include <limits.h>
3231 # include <assert.h>
3235 if { (ac_try="$ac_cpp conftest.$ac_ext"
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3241 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3243 grep -v '^ *+' conftest.er1 >conftest.err
3245 cat conftest.err >&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); } >/dev/null; then
3248 if test -s conftest.err; then
3249 ac_cpp_err=$ac_c_preproc_warn_flag
3250 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3257 if test -z "$ac_cpp_err"; then
3260 echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3263 # Broken: fails on valid input.
3267 rm -f conftest.err conftest.$ac_ext
3269 # OK, works on sane cases. Now check whether nonexistent headers
3270 # can be detected and how.
3271 cat >conftest.$ac_ext <<_ACEOF
3274 cat confdefs.h >>conftest.$ac_ext
3275 cat >>conftest.$ac_ext <<_ACEOF
3276 /* end confdefs.h. */
3277 #include <ac_nonexistent.h>
3279 if { (ac_try="$ac_cpp conftest.$ac_ext"
3281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282 *) ac_try_echo=$ac_try;;
3284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3285 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3287 grep -v '^ *+' conftest.er1 >conftest.err
3289 cat conftest.err >&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); } >/dev/null; then
3292 if test -s conftest.err; then
3293 ac_cpp_err=$ac_c_preproc_warn_flag
3294 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3301 if test -z "$ac_cpp_err"; then
3302 # Broken: success on invalid input.
3305 echo "$as_me: failed program was:" >&5
3306 sed 's/^/| /' conftest.$ac_ext >&5
3308 # Passes both tests.
3313 rm -f conftest.err conftest.$ac_ext
3316 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3317 rm -f conftest.err conftest.$ac_ext
3318 if $ac_preproc_ok; then
3330 { echo "$as_me:$LINENO: result: $CPP" >&5
3331 echo "${ECHO_T}$CPP" >&6; }
3333 for ac_c_preproc_warn_flag in '' yes
3335 # Use a header file that comes with gcc, so configuring glibc
3336 # with a fresh cross-compiler works.
3337 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3338 # <limits.h> exists even on freestanding compilers.
3339 # On the NeXT, cc -E runs the code through the compiler's parser,
3340 # not just through cpp. "Syntax error" is here to catch this case.
3341 cat >conftest.$ac_ext <<_ACEOF
3344 cat confdefs.h >>conftest.$ac_ext
3345 cat >>conftest.$ac_ext <<_ACEOF
3346 /* end confdefs.h. */
3348 # include <limits.h>
3350 # include <assert.h>
3354 if { (ac_try="$ac_cpp conftest.$ac_ext"
3356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357 *) ac_try_echo=$ac_try;;
3359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3360 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3362 grep -v '^ *+' conftest.er1 >conftest.err
3364 cat conftest.err >&5
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); } >/dev/null; then
3367 if test -s conftest.err; then
3368 ac_cpp_err=$ac_c_preproc_warn_flag
3369 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3376 if test -z "$ac_cpp_err"; then
3379 echo "$as_me: failed program was:" >&5
3380 sed 's/^/| /' conftest.$ac_ext >&5
3382 # Broken: fails on valid input.
3386 rm -f conftest.err conftest.$ac_ext
3388 # OK, works on sane cases. Now check whether nonexistent headers
3389 # can be detected and how.
3390 cat >conftest.$ac_ext <<_ACEOF
3393 cat confdefs.h >>conftest.$ac_ext
3394 cat >>conftest.$ac_ext <<_ACEOF
3395 /* end confdefs.h. */
3396 #include <ac_nonexistent.h>
3398 if { (ac_try="$ac_cpp conftest.$ac_ext"
3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401 *) ac_try_echo=$ac_try;;
3403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3404 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3406 grep -v '^ *+' conftest.er1 >conftest.err
3408 cat conftest.err >&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); } >/dev/null; then
3411 if test -s conftest.err; then
3412 ac_cpp_err=$ac_c_preproc_warn_flag
3413 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3420 if test -z "$ac_cpp_err"; then
3421 # Broken: success on invalid input.
3424 echo "$as_me: failed program was:" >&5
3425 sed 's/^/| /' conftest.$ac_ext >&5
3427 # Passes both tests.
3432 rm -f conftest.err conftest.$ac_ext
3435 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3436 rm -f conftest.err conftest.$ac_ext
3437 if $ac_preproc_ok; then
3440 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3441 See \`config.log' for more details." >&5
3442 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3443 See \`config.log' for more details." >&2;}
3444 { (exit 1); exit 1; }; }
3448 ac_cpp='$CPP $CPPFLAGS'
3449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3456 if test -d ${srcdir}/projects/llvm-gcc ; then
3457 subdirs="$subdirs projects/llvm-gcc"
3461 if test -d ${srcdir}/projects/test-suite ; then
3462 subdirs="$subdirs projects/test-suite"
3466 if test -d ${srcdir}/projects/llvm-test ; then
3467 subdirs="$subdirs projects/llvm-test"
3471 if test -d ${srcdir}/projects/poolalloc ; then
3472 subdirs="$subdirs projects/poolalloc"
3476 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3477 subdirs="$subdirs projects/llvm-poolalloc"
3481 for i in `ls ${srcdir}/projects`
3483 if test -d ${srcdir}/projects/${i} ; then
3485 sample) subdirs="$subdirs projects/sample"
3487 privbracket) subdirs="$subdirs projects/privbracket"
3489 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3491 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3493 llvm-java) subdirs="$subdirs projects/llvm-java"
3495 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3497 safecode) subdirs="$subdirs projects/safecode"
3499 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3508 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3509 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3515 # Check whether --enable-polly was given.
3516 if test "${enable_polly+set}" = set; then
3517 enableval=$enable_polly;
3522 case "$enableval" in
3527 default) ENABLE_POLLY=1
3529 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3530 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3531 { (exit 1); exit 1; }; } ;;
3535 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3538 subdirs="$subdirs tools/polly"
3543 # Make sure we can run config.sub.
3544 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3545 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3546 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3547 { (exit 1); exit 1; }; }
3549 { echo "$as_me:$LINENO: checking build system type" >&5
3550 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3551 if test "${ac_cv_build+set}" = set; then
3552 echo $ECHO_N "(cached) $ECHO_C" >&6
3554 ac_build_alias=$build_alias
3555 test "x$ac_build_alias" = x &&
3556 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3557 test "x$ac_build_alias" = x &&
3558 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3559 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3560 { (exit 1); exit 1; }; }
3561 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3562 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3563 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3564 { (exit 1); exit 1; }; }
3567 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3568 echo "${ECHO_T}$ac_cv_build" >&6; }
3569 case $ac_cv_build in
3571 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3572 echo "$as_me: error: invalid value of canonical build" >&2;}
3573 { (exit 1); exit 1; }; };;
3576 ac_save_IFS=$IFS; IFS='-'
3582 # Remember, the first character of IFS is used to create $*,
3583 # except with old shells:
3586 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3589 { echo "$as_me:$LINENO: checking host system type" >&5
3590 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3591 if test "${ac_cv_host+set}" = set; then
3592 echo $ECHO_N "(cached) $ECHO_C" >&6
3594 if test "x$host_alias" = x; then
3595 ac_cv_host=$ac_cv_build
3597 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3598 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3599 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3600 { (exit 1); exit 1; }; }
3604 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3605 echo "${ECHO_T}$ac_cv_host" >&6; }
3608 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3609 echo "$as_me: error: invalid value of canonical host" >&2;}
3610 { (exit 1); exit 1; }; };;
3613 ac_save_IFS=$IFS; IFS='-'
3619 # Remember, the first character of IFS is used to create $*,
3620 # except with old shells:
3623 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3626 { echo "$as_me:$LINENO: checking target system type" >&5
3627 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3628 if test "${ac_cv_target+set}" = set; then
3629 echo $ECHO_N "(cached) $ECHO_C" >&6
3631 if test "x$target_alias" = x; then
3632 ac_cv_target=$ac_cv_host
3634 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3635 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3636 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3637 { (exit 1); exit 1; }; }
3641 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3642 echo "${ECHO_T}$ac_cv_target" >&6; }
3643 case $ac_cv_target in
3645 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3646 echo "$as_me: error: invalid value of canonical target" >&2;}
3647 { (exit 1); exit 1; }; };;
3649 target=$ac_cv_target
3650 ac_save_IFS=$IFS; IFS='-'
3656 # Remember, the first character of IFS is used to create $*,
3657 # except with old shells:
3660 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3663 # The aliases save the names the user supplied, while $host etc.
3664 # will get canonicalized.
3665 test -n "$target_alias" &&
3666 test "$program_prefix$program_suffix$program_transform_name" = \
3668 program_prefix=${target_alias}-
3670 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3671 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3672 if test "${llvm_cv_os_type+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3677 llvm_cv_link_all_option="-Wl,--whole-archive"
3678 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3679 llvm_cv_os_type="AIX"
3680 llvm_cv_platform_type="Unix" ;;
3682 llvm_cv_link_all_option="-Wl,--whole-archive"
3683 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3684 llvm_cv_os_type="IRIX"
3685 llvm_cv_platform_type="Unix" ;;
3687 llvm_cv_link_all_option="-Wl,--whole-archive"
3688 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3689 llvm_cv_os_type="Cygwin"
3690 llvm_cv_platform_type="Unix" ;;
3692 llvm_cv_link_all_option="-Wl,-all_load"
3693 llvm_cv_no_link_all_option="-Wl,-noall_load"
3694 llvm_cv_os_type="Darwin"
3695 llvm_cv_platform_type="Unix" ;;
3697 llvm_cv_link_all_option="-Wl,-all_load"
3698 llvm_cv_no_link_all_option="-Wl,-noall_load"
3699 llvm_cv_os_type="Minix"
3700 llvm_cv_platform_type="Unix" ;;
3701 *-*-freebsd* | *-*-kfreebsd-gnu)
3702 llvm_cv_link_all_option="-Wl,--whole-archive"
3703 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3704 llvm_cv_os_type="FreeBSD"
3705 llvm_cv_platform_type="Unix" ;;
3707 llvm_cv_link_all_option="-Wl,--whole-archive"
3708 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3709 llvm_cv_os_type="OpenBSD"
3710 llvm_cv_platform_type="Unix" ;;
3712 llvm_cv_link_all_option="-Wl,--whole-archive"
3713 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3714 llvm_cv_os_type="NetBSD"
3715 llvm_cv_platform_type="Unix" ;;
3717 llvm_cv_link_all_option="-Wl,--whole-archive"
3718 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3719 llvm_cv_os_type="DragonFly"
3720 llvm_cv_platform_type="Unix" ;;
3722 llvm_cv_link_all_option="-Wl,--whole-archive"
3723 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3724 llvm_cv_os_type="HP-UX"
3725 llvm_cv_platform_type="Unix" ;;
3727 llvm_cv_link_all_option="-Wl,--whole-archive"
3728 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3729 llvm_cv_os_type="Interix"
3730 llvm_cv_platform_type="Unix" ;;
3732 llvm_cv_link_all_option="-Wl,--whole-archive"
3733 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3734 llvm_cv_os_type="Linux"
3735 llvm_cv_platform_type="Unix" ;;
3737 llvm_cv_link_all_option="-Wl,--whole-archive"
3738 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3739 llvm_cv_os_type="GNU"
3740 llvm_cv_platform_type="Unix" ;;
3742 llvm_cv_link_all_option="-Wl,-z,allextract"
3743 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3744 llvm_cv_os_type="SunOS"
3745 llvm_cv_platform_type="Unix" ;;
3747 llvm_cv_link_all_option="-Wl,-z,allextract"
3748 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3749 llvm_cv_os_type="AuroraUX"
3750 llvm_cv_platform_type="Unix" ;;
3752 llvm_cv_link_all_option="-Wl,--whole-archive"
3753 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3754 llvm_cv_os_type="Win32"
3755 llvm_cv_platform_type="Win32" ;;
3757 llvm_cv_link_all_option="-Wl,--whole-archive"
3758 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3759 llvm_cv_os_type="MingW"
3760 llvm_cv_platform_type="Win32" ;;
3762 llvm_cv_link_all_option="-Wl,--whole-archive"
3763 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3764 llvm_cv_os_type="Haiku"
3765 llvm_cv_platform_type="Unix" ;;
3767 llvm_cv_link_all_option="-Wl,--whole-archive"
3768 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3769 llvm_cv_os_type="Freestanding"
3770 llvm_cv_platform_type="Unix" ;;
3772 llvm_cv_link_all_option="-Wl,--whole-archive"
3773 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3774 llvm_cv_os_type="Freestanding"
3775 llvm_cv_platform_type="Unix" ;;
3777 llvm_cv_link_all_option=""
3778 llvm_cv_no_link_all_option=""
3779 llvm_cv_os_type="Unknown"
3780 llvm_cv_platform_type="Unknown" ;;
3783 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3784 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3786 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3787 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3788 if test "${llvm_cv_target_os_type+set}" = set; then
3789 echo $ECHO_N "(cached) $ECHO_C" >&6
3793 llvm_cv_target_os_type="AIX" ;;
3795 llvm_cv_target_os_type="IRIX" ;;
3797 llvm_cv_target_os_type="Cygwin" ;;
3799 llvm_cv_target_os_type="Darwin" ;;
3801 llvm_cv_target_os_type="Minix" ;;
3802 *-*-freebsd* | *-*-kfreebsd-gnu)
3803 llvm_cv_target_os_type="FreeBSD" ;;
3805 llvm_cv_target_os_type="OpenBSD" ;;
3807 llvm_cv_target_os_type="NetBSD" ;;
3809 llvm_cv_target_os_type="DragonFly" ;;
3811 llvm_cv_target_os_type="HP-UX" ;;
3813 llvm_cv_target_os_type="Interix" ;;
3815 llvm_cv_target_os_type="Linux" ;;
3817 llvm_cv_target_os_type="GNU" ;;
3819 llvm_cv_target_os_type="SunOS" ;;
3821 llvm_cv_target_os_type="AuroraUX" ;;
3823 llvm_cv_target_os_type="Win32" ;;
3825 llvm_cv_target_os_type="MingW" ;;
3827 llvm_cv_target_os_type="Haiku" ;;
3829 llvm_cv_target_os_type="RTEMS" ;;
3831 llvm_cv_target_os_type="NativeClient" ;;
3833 llvm_cv_target_os_type="Freestanding" ;;
3835 llvm_cv_target_os_type="Unknown" ;;
3838 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3839 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3841 if test "$llvm_cv_os_type" = "Unknown" ; then
3842 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3843 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3844 { (exit 1); exit 1; }; }
3849 HOST_OS=$llvm_cv_os_type
3851 TARGET_OS=$llvm_cv_target_os_type
3854 LINKALL=$llvm_cv_link_all_option
3856 NOLINKALL=$llvm_cv_no_link_all_option
3859 case $llvm_cv_platform_type in
3862 cat >>confdefs.h <<\_ACEOF
3863 #define LLVM_ON_UNIX 1
3873 cat >>confdefs.h <<\_ACEOF
3874 #define LLVM_ON_WIN32 1
3884 { echo "$as_me:$LINENO: checking target architecture" >&5
3885 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3886 if test "${llvm_cv_target_arch+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3890 i?86-*) llvm_cv_target_arch="x86" ;;
3891 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3892 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3893 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3894 arm*-*) llvm_cv_target_arch="ARM" ;;
3895 mips-*) llvm_cv_target_arch="Mips" ;;
3896 mipsel-*) llvm_cv_target_arch="Mips" ;;
3897 xcore-*) llvm_cv_target_arch="XCore" ;;
3898 msp430-*) llvm_cv_target_arch="MSP430" ;;
3899 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
3900 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3901 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
3902 *) llvm_cv_target_arch="Unknown" ;;
3905 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3906 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3908 if test "$llvm_cv_target_arch" = "Unknown" ; then
3909 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3910 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3913 case "$llvm_cv_target_arch" in
3914 x86) LLVM_NATIVE_ARCH="X86" ;;
3915 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3916 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3919 ARCH=$llvm_cv_target_arch
3923 i?86-*) host_arch="x86" ;;
3924 amd64-* | x86_64-*) host_arch="x86_64" ;;
3925 sparc*-*) host_arch="Sparc" ;;
3926 powerpc*-*) host_arch="PowerPC" ;;
3927 arm*-*) host_arch="ARM" ;;
3928 mips-*) host_arch="Mips" ;;
3929 mipsel-*) host_arch="Mips" ;;
3930 xcore-*) host_arch="XCore" ;;
3931 msp430-*) host_arch="MSP430" ;;
3932 hexagon-*) host_arch="Hexagon" ;;
3933 mblaze-*) host_arch="MBlaze" ;;
3934 *) host_arch="Unknown" ;;
3937 if test "$host_arch" = "Unknown" ; then
3938 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
3939 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
3942 HOST_ARCH=$host_arch
3947 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3948 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3949 if test "${ac_cv_path_GREP+set}" = set; then
3950 echo $ECHO_N "(cached) $ECHO_C" >&6
3952 # Extract the first word of "grep ggrep" to use in msg output
3953 if test -z "$GREP"; then
3954 set dummy grep ggrep; ac_prog_name=$2
3955 if test "${ac_cv_path_GREP+set}" = set; then
3956 echo $ECHO_N "(cached) $ECHO_C" >&6
3958 ac_path_GREP_found=false
3959 # Loop through the user's path and test for each of PROGNAME-LIST
3960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3961 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3964 test -z "$as_dir" && as_dir=.
3965 for ac_prog in grep ggrep; do
3966 for ac_exec_ext in '' $ac_executable_extensions; do
3967 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3968 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3969 # Check for GNU ac_path_GREP and select it if it is found.
3970 # Check for GNU $ac_path_GREP
3971 case `"$ac_path_GREP" --version 2>&1` in
3973 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3976 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3979 cat "conftest.in" "conftest.in" >"conftest.tmp"
3980 mv "conftest.tmp" "conftest.in"
3981 cp "conftest.in" "conftest.nl"
3982 echo 'GREP' >> "conftest.nl"
3983 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3984 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3985 ac_count=`expr $ac_count + 1`
3986 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3987 # Best one so far, save it but keep looking for a better one
3988 ac_cv_path_GREP="$ac_path_GREP"
3989 ac_path_GREP_max=$ac_count
3991 # 10*(2^10) chars as input seems more than enough
3992 test $ac_count -gt 10 && break
3994 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3998 $ac_path_GREP_found && break 3
4008 GREP="$ac_cv_path_GREP"
4009 if test -z "$GREP"; then
4010 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4011 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4012 { (exit 1); exit 1; }; }
4016 ac_cv_path_GREP=$GREP
4021 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4022 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4023 GREP="$ac_cv_path_GREP"
4026 { echo "$as_me:$LINENO: checking for egrep" >&5
4027 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4028 if test "${ac_cv_path_EGREP+set}" = set; then
4029 echo $ECHO_N "(cached) $ECHO_C" >&6
4031 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4032 then ac_cv_path_EGREP="$GREP -E"
4034 # Extract the first word of "egrep" to use in msg output
4035 if test -z "$EGREP"; then
4036 set dummy egrep; ac_prog_name=$2
4037 if test "${ac_cv_path_EGREP+set}" = set; then
4038 echo $ECHO_N "(cached) $ECHO_C" >&6
4040 ac_path_EGREP_found=false
4041 # Loop through the user's path and test for each of PROGNAME-LIST
4042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4046 test -z "$as_dir" && as_dir=.
4047 for ac_prog in egrep; do
4048 for ac_exec_ext in '' $ac_executable_extensions; do
4049 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4050 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4051 # Check for GNU ac_path_EGREP and select it if it is found.
4052 # Check for GNU $ac_path_EGREP
4053 case `"$ac_path_EGREP" --version 2>&1` in
4055 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4058 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4061 cat "conftest.in" "conftest.in" >"conftest.tmp"
4062 mv "conftest.tmp" "conftest.in"
4063 cp "conftest.in" "conftest.nl"
4064 echo 'EGREP' >> "conftest.nl"
4065 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4066 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4067 ac_count=`expr $ac_count + 1`
4068 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4069 # Best one so far, save it but keep looking for a better one
4070 ac_cv_path_EGREP="$ac_path_EGREP"
4071 ac_path_EGREP_max=$ac_count
4073 # 10*(2^10) chars as input seems more than enough
4074 test $ac_count -gt 10 && break
4076 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4080 $ac_path_EGREP_found && break 3
4090 EGREP="$ac_cv_path_EGREP"
4091 if test -z "$EGREP"; then
4092 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4093 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4094 { (exit 1); exit 1; }; }
4098 ac_cv_path_EGREP=$EGREP
4104 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4105 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4106 EGREP="$ac_cv_path_EGREP"
4109 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4110 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4111 if test "${ac_cv_header_stdc+set}" = set; then
4112 echo $ECHO_N "(cached) $ECHO_C" >&6
4114 cat >conftest.$ac_ext <<_ACEOF
4117 cat confdefs.h >>conftest.$ac_ext
4118 cat >>conftest.$ac_ext <<_ACEOF
4119 /* end confdefs.h. */
4133 rm -f conftest.$ac_objext
4134 if { (ac_try="$ac_compile"
4136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4137 *) ac_try_echo=$ac_try;;
4139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4140 (eval "$ac_compile") 2>conftest.er1
4142 grep -v '^ *+' conftest.er1 >conftest.err
4144 cat conftest.err >&5
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); } &&
4147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4148 { (case "(($ac_try" in
4149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4150 *) ac_try_echo=$ac_try;;
4152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4153 (eval "$ac_try") 2>&5
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); }; } &&
4157 { ac_try='test -s conftest.$ac_objext'
4158 { (case "(($ac_try" in
4159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4160 *) ac_try_echo=$ac_try;;
4162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4163 (eval "$ac_try") 2>&5
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); }; }; then
4167 ac_cv_header_stdc=yes
4169 echo "$as_me: failed program was:" >&5
4170 sed 's/^/| /' conftest.$ac_ext >&5
4172 ac_cv_header_stdc=no
4175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4177 if test $ac_cv_header_stdc = yes; then
4178 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4179 cat >conftest.$ac_ext <<_ACEOF
4182 cat confdefs.h >>conftest.$ac_ext
4183 cat >>conftest.$ac_ext <<_ACEOF
4184 /* end confdefs.h. */
4188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4189 $EGREP "memchr" >/dev/null 2>&1; then
4192 ac_cv_header_stdc=no
4198 if test $ac_cv_header_stdc = yes; then
4199 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4200 cat >conftest.$ac_ext <<_ACEOF
4203 cat confdefs.h >>conftest.$ac_ext
4204 cat >>conftest.$ac_ext <<_ACEOF
4205 /* end confdefs.h. */
4209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4210 $EGREP "free" >/dev/null 2>&1; then
4213 ac_cv_header_stdc=no
4219 if test $ac_cv_header_stdc = yes; then
4220 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4221 if test "$cross_compiling" = yes; then
4224 cat >conftest.$ac_ext <<_ACEOF
4227 cat confdefs.h >>conftest.$ac_ext
4228 cat >>conftest.$ac_ext <<_ACEOF
4229 /* end confdefs.h. */
4232 #if ((' ' & 0x0FF) == 0x020)
4233 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4234 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4236 # define ISLOWER(c) \
4237 (('a' <= (c) && (c) <= 'i') \
4238 || ('j' <= (c) && (c) <= 'r') \
4239 || ('s' <= (c) && (c) <= 'z'))
4240 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4243 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4248 for (i = 0; i < 256; i++)
4249 if (XOR (islower (i), ISLOWER (i))
4250 || toupper (i) != TOUPPER (i))
4255 rm -f conftest$ac_exeext
4256 if { (ac_try="$ac_link"
4258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259 *) ac_try_echo=$ac_try;;
4261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4262 (eval "$ac_link") 2>&5
4264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4266 { (case "(($ac_try" in
4267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4268 *) ac_try_echo=$ac_try;;
4270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4271 (eval "$ac_try") 2>&5
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); }; }; then
4277 echo "$as_me: program exited with status $ac_status" >&5
4278 echo "$as_me: failed program was:" >&5
4279 sed 's/^/| /' conftest.$ac_ext >&5
4282 ac_cv_header_stdc=no
4284 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4290 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4291 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4292 if test $ac_cv_header_stdc = yes; then
4294 cat >>confdefs.h <<\_ACEOF
4295 #define STDC_HEADERS 1
4300 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4310 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4311 inttypes.h stdint.h unistd.h
4313 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4314 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4317 echo $ECHO_N "(cached) $ECHO_C" >&6
4319 cat >conftest.$ac_ext <<_ACEOF
4322 cat confdefs.h >>conftest.$ac_ext
4323 cat >>conftest.$ac_ext <<_ACEOF
4324 /* end confdefs.h. */
4325 $ac_includes_default
4327 #include <$ac_header>
4329 rm -f conftest.$ac_objext
4330 if { (ac_try="$ac_compile"
4332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4333 *) ac_try_echo=$ac_try;;
4335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4336 (eval "$ac_compile") 2>conftest.er1
4338 grep -v '^ *+' conftest.er1 >conftest.err
4340 cat conftest.err >&5
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); } &&
4343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4344 { (case "(($ac_try" in
4345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4346 *) ac_try_echo=$ac_try;;
4348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4349 (eval "$ac_try") 2>&5
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); }; } &&
4353 { ac_try='test -s conftest.$ac_objext'
4354 { (case "(($ac_try" in
4355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4356 *) ac_try_echo=$ac_try;;
4358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4359 (eval "$ac_try") 2>&5
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); }; }; then
4363 eval "$as_ac_Header=yes"
4365 echo "$as_me: failed program was:" >&5
4366 sed 's/^/| /' conftest.$ac_ext >&5
4368 eval "$as_ac_Header=no"
4371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4373 ac_res=`eval echo '${'$as_ac_Header'}'`
4374 { echo "$as_me:$LINENO: result: $ac_res" >&5
4375 echo "${ECHO_T}$ac_res" >&6; }
4376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4377 cat >>confdefs.h <<_ACEOF
4378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4386 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4387 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4388 if test "${ac_cv_c_bigendian+set}" = set; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
4391 # See if sys/param.h defines the BYTE_ORDER macro.
4392 cat >conftest.$ac_ext <<_ACEOF
4395 cat confdefs.h >>conftest.$ac_ext
4396 cat >>conftest.$ac_ext <<_ACEOF
4397 /* end confdefs.h. */
4398 #include <sys/types.h>
4399 #include <sys/param.h>
4404 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4412 rm -f conftest.$ac_objext
4413 if { (ac_try="$ac_compile"
4415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4416 *) ac_try_echo=$ac_try;;
4418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4419 (eval "$ac_compile") 2>conftest.er1
4421 grep -v '^ *+' conftest.er1 >conftest.err
4423 cat conftest.err >&5
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); } &&
4426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4427 { (case "(($ac_try" in
4428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4429 *) ac_try_echo=$ac_try;;
4431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4432 (eval "$ac_try") 2>&5
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); }; } &&
4436 { ac_try='test -s conftest.$ac_objext'
4437 { (case "(($ac_try" in
4438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4439 *) ac_try_echo=$ac_try;;
4441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4442 (eval "$ac_try") 2>&5
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); }; }; then
4446 # It does; now see whether it defined to BIG_ENDIAN or not.
4447 cat >conftest.$ac_ext <<_ACEOF
4450 cat confdefs.h >>conftest.$ac_ext
4451 cat >>conftest.$ac_ext <<_ACEOF
4452 /* end confdefs.h. */
4453 #include <sys/types.h>
4454 #include <sys/param.h>
4459 #if BYTE_ORDER != BIG_ENDIAN
4467 rm -f conftest.$ac_objext
4468 if { (ac_try="$ac_compile"
4470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4471 *) ac_try_echo=$ac_try;;
4473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4474 (eval "$ac_compile") 2>conftest.er1
4476 grep -v '^ *+' conftest.er1 >conftest.err
4478 cat conftest.err >&5
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); } &&
4481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4482 { (case "(($ac_try" in
4483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4484 *) ac_try_echo=$ac_try;;
4486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4487 (eval "$ac_try") 2>&5
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); }; } &&
4491 { ac_try='test -s conftest.$ac_objext'
4492 { (case "(($ac_try" in
4493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4494 *) ac_try_echo=$ac_try;;
4496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4497 (eval "$ac_try") 2>&5
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); }; }; then
4501 ac_cv_c_bigendian=yes
4503 echo "$as_me: failed program was:" >&5
4504 sed 's/^/| /' conftest.$ac_ext >&5
4506 ac_cv_c_bigendian=no
4509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4511 echo "$as_me: failed program was:" >&5
4512 sed 's/^/| /' conftest.$ac_ext >&5
4514 # It does not; compile a test program.
4515 if test "$cross_compiling" = yes; then
4516 # try to guess the endianness by grepping values into an object file
4517 ac_cv_c_bigendian=unknown
4518 cat >conftest.$ac_ext <<_ACEOF
4521 cat confdefs.h >>conftest.$ac_ext
4522 cat >>conftest.$ac_ext <<_ACEOF
4523 /* end confdefs.h. */
4524 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4525 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4526 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4527 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4528 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4529 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4533 _ascii (); _ebcdic ();
4538 rm -f conftest.$ac_objext
4539 if { (ac_try="$ac_compile"
4541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4542 *) ac_try_echo=$ac_try;;
4544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4545 (eval "$ac_compile") 2>conftest.er1
4547 grep -v '^ *+' conftest.er1 >conftest.err
4549 cat conftest.err >&5
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); } &&
4552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4553 { (case "(($ac_try" in
4554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4555 *) ac_try_echo=$ac_try;;
4557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4558 (eval "$ac_try") 2>&5
4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561 (exit $ac_status); }; } &&
4562 { ac_try='test -s conftest.$ac_objext'
4563 { (case "(($ac_try" in
4564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4565 *) ac_try_echo=$ac_try;;
4567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4568 (eval "$ac_try") 2>&5
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); }; }; then
4572 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4573 ac_cv_c_bigendian=yes
4575 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4576 if test "$ac_cv_c_bigendian" = unknown; then
4577 ac_cv_c_bigendian=no
4579 # finding both strings is unlikely to happen, but who knows?
4580 ac_cv_c_bigendian=unknown
4584 echo "$as_me: failed program was:" >&5
4585 sed 's/^/| /' conftest.$ac_ext >&5
4590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4592 cat >conftest.$ac_ext <<_ACEOF
4595 cat confdefs.h >>conftest.$ac_ext
4596 cat >>conftest.$ac_ext <<_ACEOF
4597 /* end confdefs.h. */
4598 $ac_includes_default
4603 /* Are we little or big endian? From Harbison&Steele. */
4607 char c[sizeof (long int)];
4610 return u.c[sizeof (long int) - 1] == 1;
4616 rm -f conftest$ac_exeext
4617 if { (ac_try="$ac_link"
4619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4620 *) ac_try_echo=$ac_try;;
4622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4623 (eval "$ac_link") 2>&5
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4627 { (case "(($ac_try" in
4628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4629 *) ac_try_echo=$ac_try;;
4631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4632 (eval "$ac_try") 2>&5
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); }; }; then
4636 ac_cv_c_bigendian=no
4638 echo "$as_me: program exited with status $ac_status" >&5
4639 echo "$as_me: failed program was:" >&5
4640 sed 's/^/| /' conftest.$ac_ext >&5
4643 ac_cv_c_bigendian=yes
4645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4653 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4654 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4655 case $ac_cv_c_bigendian in
4663 { { echo "$as_me:$LINENO: error: unknown endianness
4664 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4665 echo "$as_me: error: unknown endianness
4666 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4667 { (exit 1); exit 1; }; } ;;
4671 if test "$cross_compiling" = yes; then
4672 LLVM_CROSS_COMPILING=1
4675 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4676 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4677 if test "${ac_cv_build_exeext+set}" = set; then
4678 echo $ECHO_N "(cached) $ECHO_C" >&6
4680 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4681 ac_cv_build_exeext=.exe
4683 ac_build_prefix=${build_alias}-
4685 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4686 set dummy ${ac_build_prefix}gcc; ac_word=$2
4687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4689 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4690 echo $ECHO_N "(cached) $ECHO_C" >&6
4692 if test -n "$BUILD_CC"; then
4693 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699 test -z "$as_dir" && as_dir=.
4700 for ac_exec_ext in '' $ac_executable_extensions; do
4701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4702 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4712 BUILD_CC=$ac_cv_prog_BUILD_CC
4713 if test -n "$BUILD_CC"; then
4714 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4715 echo "${ECHO_T}$BUILD_CC" >&6; }
4717 { echo "$as_me:$LINENO: result: no" >&5
4718 echo "${ECHO_T}no" >&6; }
4722 if test -z "$BUILD_CC"; then
4723 # Extract the first word of "gcc", so it can be a program name with args.
4724 set dummy gcc; ac_word=$2
4725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4727 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4728 echo $ECHO_N "(cached) $ECHO_C" >&6
4730 if test -n "$BUILD_CC"; then
4731 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737 test -z "$as_dir" && as_dir=.
4738 for ac_exec_ext in '' $ac_executable_extensions; do
4739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4740 ac_cv_prog_BUILD_CC="gcc"
4741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4750 BUILD_CC=$ac_cv_prog_BUILD_CC
4751 if test -n "$BUILD_CC"; then
4752 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4753 echo "${ECHO_T}$BUILD_CC" >&6; }
4755 { echo "$as_me:$LINENO: result: no" >&5
4756 echo "${ECHO_T}no" >&6; }
4760 if test -z "$BUILD_CC"; then
4761 # Extract the first word of "cc", so it can be a program name with args.
4762 set dummy cc; ac_word=$2
4763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4765 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4766 echo $ECHO_N "(cached) $ECHO_C" >&6
4768 if test -n "$BUILD_CC"; then
4769 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4776 test -z "$as_dir" && as_dir=.
4777 for ac_exec_ext in '' $ac_executable_extensions; do
4778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4779 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4780 ac_prog_rejected=yes
4783 ac_cv_prog_BUILD_CC="cc"
4784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4791 if test $ac_prog_rejected = yes; then
4792 # We found a bogon in the path, so make sure we never use it.
4793 set dummy $ac_cv_prog_BUILD_CC
4795 if test $# != 0; then
4796 # We chose a different compiler from the bogus one.
4797 # However, it has the same basename, so the bogon will be chosen
4798 # first if we set BUILD_CC to just the basename; use the full file name.
4800 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4805 BUILD_CC=$ac_cv_prog_BUILD_CC
4806 if test -n "$BUILD_CC"; then
4807 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4808 echo "${ECHO_T}$BUILD_CC" >&6; }
4810 { echo "$as_me:$LINENO: result: no" >&5
4811 echo "${ECHO_T}no" >&6; }
4817 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4818 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4819 { (exit 1); exit 1; }; }
4820 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4822 echo 'int main () { return 0; }' > conftest.$ac_ext
4824 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4825 (eval $ac_build_link) 2>&5
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); }; then
4829 for file in conftest.*; do
4831 *.c | *.o | *.obj | *.dSYM) ;;
4832 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4836 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4837 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4838 { (exit 1); exit 1; }; }
4841 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4846 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4847 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4848 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4849 ac_build_exeext=$BUILD_EXEEXT
4851 ac_build_prefix=${build_alias}-
4852 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4853 set dummy ${ac_build_prefix}g++; ac_word=$2
4854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4856 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4857 echo $ECHO_N "(cached) $ECHO_C" >&6
4859 if test -n "$BUILD_CXX"; then
4860 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866 test -z "$as_dir" && as_dir=.
4867 for ac_exec_ext in '' $ac_executable_extensions; do
4868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4869 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4879 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4880 if test -n "$BUILD_CXX"; then
4881 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4882 echo "${ECHO_T}$BUILD_CXX" >&6; }
4884 { echo "$as_me:$LINENO: result: no" >&5
4885 echo "${ECHO_T}no" >&6; }
4889 if test -z "$BUILD_CXX"; then
4890 # Extract the first word of "g++", so it can be a program name with args.
4891 set dummy g++; ac_word=$2
4892 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4894 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4895 echo $ECHO_N "(cached) $ECHO_C" >&6
4897 if test -n "$BUILD_CXX"; then
4898 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 test -z "$as_dir" && as_dir=.
4905 for ac_exec_ext in '' $ac_executable_extensions; do
4906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4907 ac_cv_prog_BUILD_CXX="g++"
4908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4917 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4918 if test -n "$BUILD_CXX"; then
4919 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4920 echo "${ECHO_T}$BUILD_CXX" >&6; }
4922 { echo "$as_me:$LINENO: result: no" >&5
4923 echo "${ECHO_T}no" >&6; }
4927 if test -z "$BUILD_CXX"; then
4928 # Extract the first word of "c++", so it can be a program name with args.
4929 set dummy c++; ac_word=$2
4930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4932 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4933 echo $ECHO_N "(cached) $ECHO_C" >&6
4935 if test -n "$BUILD_CXX"; then
4936 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943 test -z "$as_dir" && as_dir=.
4944 for ac_exec_ext in '' $ac_executable_extensions; do
4945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4946 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4947 ac_prog_rejected=yes
4950 ac_cv_prog_BUILD_CXX="c++"
4951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4958 if test $ac_prog_rejected = yes; then
4959 # We found a bogon in the path, so make sure we never use it.
4960 set dummy $ac_cv_prog_BUILD_CXX
4962 if test $# != 0; then
4963 # We chose a different compiler from the bogus one.
4964 # However, it has the same basename, so the bogon will be chosen
4965 # first if we set BUILD_CXX to just the basename; use the full file name.
4967 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4972 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4973 if test -n "$BUILD_CXX"; then
4974 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4975 echo "${ECHO_T}$BUILD_CXX" >&6; }
4977 { echo "$as_me:$LINENO: result: no" >&5
4978 echo "${ECHO_T}no" >&6; }
4985 LLVM_CROSS_COMPILING=0
4989 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5000 # Check whether --enable-libcpp was given.
5001 if test "${enable_libcpp+set}" = set; then
5002 enableval=$enable_libcpp;
5007 case "$enableval" in
5008 yes) ENABLE_LIBCPP=1
5012 default) ENABLE_LIBCPP=0
5014 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5015 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5016 { (exit 1); exit 1; }; } ;;
5019 # Check whether --enable-optimized was given.
5020 if test "${enable_optimized+set}" = set; then
5021 enableval=$enable_optimized;
5026 if test ${enableval} = "no" ; then
5030 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5034 # Check whether --enable-profiling was given.
5035 if test "${enable_profiling+set}" = set; then
5036 enableval=$enable_profiling;
5041 if test ${enableval} = "no" ; then
5045 ENABLE_PROFILING=ENABLE_PROFILING=1
5049 # Check whether --enable-assertions was given.
5050 if test "${enable_assertions+set}" = set; then
5051 enableval=$enable_assertions;
5056 if test ${enableval} = "yes" ; then
5060 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5064 # Check whether --enable-expensive-checks was given.
5065 if test "${enable_expensive_checks+set}" = set; then
5066 enableval=$enable_expensive_checks;
5071 if test ${enableval} = "yes" ; then
5072 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5074 EXPENSIVE_CHECKS=yes
5077 ENABLE_EXPENSIVE_CHECKS=
5083 # Check whether --enable-debug-runtime was given.
5084 if test "${enable_debug_runtime+set}" = set; then
5085 enableval=$enable_debug_runtime;
5090 if test ${enableval} = "no" ; then
5094 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5098 # Check whether --enable-debug-symbols was given.
5099 if test "${enable_debug_symbols+set}" = set; then
5100 enableval=$enable_debug_symbols;
5105 if test ${enableval} = "no" ; then
5109 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5113 # Check whether --enable-jit was given.
5114 if test "${enable_jit+set}" = set; then
5115 enableval=$enable_jit;
5120 if test ${enableval} = "no"
5125 case "$llvm_cv_target_arch" in
5126 x86) TARGET_HAS_JIT=1
5128 Sparc) TARGET_HAS_JIT=0
5130 PowerPC) TARGET_HAS_JIT=1
5132 x86_64) TARGET_HAS_JIT=1
5134 ARM) TARGET_HAS_JIT=1
5136 Mips) TARGET_HAS_JIT=1
5138 XCore) TARGET_HAS_JIT=0
5140 MSP430) TARGET_HAS_JIT=0
5142 Hexagon) TARGET_HAS_JIT=0
5144 MBlaze) TARGET_HAS_JIT=0
5146 NVPTX) TARGET_HAS_JIT=0
5153 # Check whether --enable-docs was given.
5154 if test "${enable_docs+set}" = set; then
5155 enableval=$enable_docs;
5160 case "$enableval" in
5165 default) ENABLE_DOCS=1
5167 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5168 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5169 { (exit 1); exit 1; }; } ;;
5172 # Check whether --enable-doxygen was given.
5173 if test "${enable_doxygen+set}" = set; then
5174 enableval=$enable_doxygen;
5179 case "$enableval" in
5180 yes) ENABLE_DOXYGEN=1
5182 no) ENABLE_DOXYGEN=0
5184 default) ENABLE_DOXYGEN=0
5186 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5187 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5188 { (exit 1); exit 1; }; } ;;
5191 # Check whether --enable-threads was given.
5192 if test "${enable_threads+set}" = set; then
5193 enableval=$enable_threads;
5198 case "$enableval" in
5199 yes) LLVM_ENABLE_THREADS=1
5201 no) LLVM_ENABLE_THREADS=0
5203 default) LLVM_ENABLE_THREADS=1
5205 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5206 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5207 { (exit 1); exit 1; }; } ;;
5210 cat >>confdefs.h <<_ACEOF
5211 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5215 # Check whether --enable-pthreads was given.
5216 if test "${enable_pthreads+set}" = set; then
5217 enableval=$enable_pthreads;
5222 case "$enableval" in
5223 yes) ENABLE_PTHREADS=1
5225 no) ENABLE_PTHREADS=0
5227 default) ENABLE_PTHREADS=1
5229 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5230 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5231 { (exit 1); exit 1; }; } ;;
5234 # Check whether --enable-pic was given.
5235 if test "${enable_pic+set}" = set; then
5236 enableval=$enable_pic;
5241 case "$enableval" in
5246 default) ENABLE_PIC=1
5248 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5249 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5250 { (exit 1); exit 1; }; } ;;
5253 cat >>confdefs.h <<_ACEOF
5254 #define ENABLE_PIC $ENABLE_PIC
5258 # Check whether --enable-shared was given.
5259 if test "${enable_shared+set}" = set; then
5260 enableval=$enable_shared;
5265 case "$enableval" in
5266 yes) ENABLE_SHARED=1
5270 default) ENABLE_SHARED=0
5272 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5273 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5274 { (exit 1); exit 1; }; } ;;
5277 # Check whether --enable-embed-stdcxx was given.
5278 if test "${enable_embed_stdcxx+set}" = set; then
5279 enableval=$enable_embed_stdcxx;
5284 case "$enableval" in
5285 yes) ENABLE_EMBED_STDCXX=1
5287 no) ENABLE_EMBED_STDCXX=0
5289 default) ENABLE_EMBED_STDCXX=0
5291 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5292 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5293 { (exit 1); exit 1; }; } ;;
5296 # Check whether --enable-timestamps was given.
5297 if test "${enable_timestamps+set}" = set; then
5298 enableval=$enable_timestamps;
5303 case "$enableval" in
5304 yes) ENABLE_TIMESTAMPS=1
5306 no) ENABLE_TIMESTAMPS=0
5308 default) ENABLE_TIMESTAMPS=1
5310 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5311 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5312 { (exit 1); exit 1; }; } ;;
5315 cat >>confdefs.h <<_ACEOF
5316 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5321 # Check whether --enable-targets was given.
5322 if test "${enable_targets+set}" = set; then
5323 enableval=$enable_targets;
5328 if test "$enableval" = host-only ; then
5331 case "$enableval" in
5332 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze NVPTX Hexagon AMDGPU" ;;
5333 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5335 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5336 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5337 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5338 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5339 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5340 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5341 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5342 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5343 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5344 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5345 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5346 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5347 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5348 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5349 r600) TARGETS_TO_BUILD="AMDGPU $TARGETS_TO_BUILD" ;;
5350 host) case "$llvm_cv_target_arch" in
5351 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5352 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5353 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5354 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5355 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5356 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5357 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5358 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5359 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5360 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5361 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5362 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5363 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5364 echo "$as_me: error: Can not set target to build" >&2;}
5365 { (exit 1); exit 1; }; } ;;
5367 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5368 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5369 { (exit 1); exit 1; }; } ;;
5374 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5377 for a_target in $TARGETS_TO_BUILD; do
5378 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5380 cat >>confdefs.h <<_ACEOF
5381 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5384 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5385 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5386 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5387 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5388 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5389 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5391 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5392 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5395 cat >>confdefs.h <<_ACEOF
5396 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5400 cat >>confdefs.h <<_ACEOF
5401 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5405 cat >>confdefs.h <<_ACEOF
5406 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5410 cat >>confdefs.h <<_ACEOF
5411 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5414 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5416 cat >>confdefs.h <<_ACEOF
5417 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5421 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5423 cat >>confdefs.h <<_ACEOF
5424 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5431 LLVM_ENUM_TARGETS=""
5432 LLVM_ENUM_ASM_PRINTERS=""
5433 LLVM_ENUM_ASM_PARSERS=""
5434 LLVM_ENUM_DISASSEMBLERS=""
5435 for target_to_build in $TARGETS_TO_BUILD; do
5436 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5437 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5438 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5440 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5441 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5443 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5444 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5453 # Check whether --with-optimize-option was given.
5454 if test "${with_optimize_option+set}" = set; then
5455 withval=$with_optimize_option;
5460 { echo "$as_me:$LINENO: checking optimization flags" >&5
5461 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5464 case "$llvm_cv_os_type" in
5465 FreeBSD) optimize_option=-O2 ;;
5466 MingW) optimize_option=-O2 ;;
5467 *) optimize_option=-O3 ;;
5469 *) optimize_option="$withval" ;;
5471 OPTIMIZE_OPTION=$optimize_option
5473 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5474 echo "${ECHO_T}$optimize_option" >&6; }
5477 # Check whether --with-extra-options was given.
5478 if test "${with_extra_options+set}" = set; then
5479 withval=$with_extra_options;
5485 default) EXTRA_OPTIONS= ;;
5486 *) EXTRA_OPTIONS=$withval ;;
5488 EXTRA_OPTIONS=$EXTRA_OPTIONS
5492 # Check whether --with-extra-ld-options was given.
5493 if test "${with_extra_ld_options+set}" = set; then
5494 withval=$with_extra_ld_options;
5500 default) EXTRA_LD_OPTIONS= ;;
5501 *) EXTRA_LD_OPTIONS=$withval ;;
5503 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5506 # Check whether --enable-bindings was given.
5507 if test "${enable_bindings+set}" = set; then
5508 enableval=$enable_bindings;
5513 BINDINGS_TO_BUILD=""
5514 case "$enableval" in
5515 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5516 all ) BINDINGS_TO_BUILD="ocaml" ;;
5517 none | no) BINDINGS_TO_BUILD="" ;;
5518 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5519 case "$a_binding" in
5520 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5521 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5522 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5523 { (exit 1); exit 1; }; } ;;
5530 # Check whether --with-ocaml-libdir was given.
5531 if test "${with_ocaml_libdir+set}" = set; then
5532 withval=$with_ocaml_libdir;
5538 auto) with_ocaml_libdir="$withval" ;;
5539 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5540 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5541 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5542 { (exit 1); exit 1; }; } ;;
5546 # Check whether --with-clang-srcdir was given.
5547 if test "${with_clang_srcdir+set}" = set; then
5548 withval=$with_clang_srcdir;
5554 -) clang_src_root="" ;;
5555 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5556 *) clang_src_root="$ac_pwd/$withval" ;;
5558 CLANG_SRC_ROOT=$clang_src_root
5562 # Check whether --with-clang-resource-dir was given.
5563 if test "${with_clang_resource_dir+set}" = set; then
5564 withval=$with_clang_resource_dir;
5570 cat >>confdefs.h <<_ACEOF
5571 #define CLANG_RESOURCE_DIR "$withval"
5576 # Check whether --with-c-include-dirs was given.
5577 if test "${with_c_include_dirs+set}" = set; then
5578 withval=$with_c_include_dirs;
5584 cat >>confdefs.h <<_ACEOF
5585 #define C_INCLUDE_DIRS "$withval"
5589 # Clang normally uses the system c++ headers and libraries. With this option,
5590 # clang will use the ones provided by a gcc installation instead. This option should
5591 # be passed the same value that was used with --prefix when configuring gcc.
5593 # Check whether --with-gcc-toolchain was given.
5594 if test "${with_gcc_toolchain+set}" = set; then
5595 withval=$with_gcc_toolchain;
5601 cat >>confdefs.h <<_ACEOF
5602 #define GCC_INSTALL_PREFIX "$withval"
5607 # Check whether --with-default-sysroot was given.
5608 if test "${with_default_sysroot+set}" = set; then
5609 withval=$with_default_sysroot;
5615 cat >>confdefs.h <<_ACEOF
5616 #define DEFAULT_SYSROOT "$withval"
5621 # Check whether --with-binutils-include was given.
5622 if test "${with_binutils_include+set}" = set; then
5623 withval=$with_binutils_include;
5629 default) WITH_BINUTILS_INCDIR=default ;;
5630 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5631 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5632 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5633 { (exit 1); exit 1; }; } ;;
5635 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5636 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5638 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5639 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5640 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5641 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5642 { (exit 1); exit 1; }; };
5647 # Check whether --with-bug-report-url was given.
5648 if test "${with_bug_report_url+set}" = set; then
5649 withval=$with_bug_report_url;
5651 withval="http://llvm.org/bugs/"
5655 cat >>confdefs.h <<_ACEOF
5656 #define BUG_REPORT_URL "$withval"
5660 # Check whether --enable-libffi was given.
5661 if test "${enable_libffi+set}" = set; then
5662 enableval=$enable_libffi; case "$enableval" in
5663 yes) llvm_cv_enable_libffi="yes" ;;
5664 no) llvm_cv_enable_libffi="no" ;;
5665 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5666 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5667 { (exit 1); exit 1; }; } ;;
5670 llvm_cv_enable_libffi=no
5675 # Check whether --with-internal-prefix was given.
5676 if test "${with_internal_prefix+set}" = set; then
5677 withval=$with_internal_prefix;
5682 INTERNAL_PREFIX=$withval
5686 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5687 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5688 if test "${lt_cv_path_NM+set}" = set; then
5689 echo $ECHO_N "(cached) $ECHO_C" >&6
5691 if test -n "$NM"; then
5692 # Let the user override the test.
5695 lt_nm_to_check="${ac_tool_prefix}nm"
5696 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5697 lt_nm_to_check="$lt_nm_to_check nm"
5699 for lt_tmp_nm in $lt_nm_to_check; do
5700 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5701 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5703 test -z "$ac_dir" && ac_dir=.
5704 tmp_nm="$ac_dir/$lt_tmp_nm"
5705 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5706 # Check to see if the nm accepts a BSD-compat flag.
5707 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5708 # nm: unknown option "B" ignored
5709 # Tru64's nm complains that /dev/null is an invalid object file
5710 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5711 */dev/null* | *'Invalid file or object type'*)
5712 lt_cv_path_NM="$tmp_nm -B"
5716 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5718 lt_cv_path_NM="$tmp_nm -p"
5722 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5723 continue # so that we can try to find one that supports BSD flags
5732 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5735 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5736 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5741 { echo "$as_me:$LINENO: checking for GNU make" >&5
5742 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5743 if test "${llvm_cv_gnu_make_command+set}" = set; then
5744 echo $ECHO_N "(cached) $ECHO_C" >&6
5746 llvm_cv_gnu_make_command=''
5747 for a in "$MAKE" make gmake gnumake ; do
5748 if test -z "$a" ; then continue ; fi ;
5749 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5751 llvm_cv_gnu_make_command=$a ;
5756 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5757 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5758 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5762 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5763 echo "${ECHO_T}\"Not found\"" >&6; };
5767 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5768 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5770 if test "$LN_S" = "ln -s"; then
5771 { echo "$as_me:$LINENO: result: yes" >&5
5772 echo "${ECHO_T}yes" >&6; }
5774 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5775 echo "${ECHO_T}no, using $LN_S" >&6; }
5778 # Extract the first word of "cmp", so it can be a program name with args.
5779 set dummy cmp; ac_word=$2
5780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5782 if test "${ac_cv_path_CMP+set}" = set; then
5783 echo $ECHO_N "(cached) $ECHO_C" >&6
5787 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5794 test -z "$as_dir" && as_dir=.
5795 for ac_exec_ext in '' $ac_executable_extensions; do
5796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5797 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5805 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5810 if test -n "$CMP"; then
5811 { echo "$as_me:$LINENO: result: $CMP" >&5
5812 echo "${ECHO_T}$CMP" >&6; }
5814 { echo "$as_me:$LINENO: result: no" >&5
5815 echo "${ECHO_T}no" >&6; }
5819 # Extract the first word of "cp", so it can be a program name with args.
5820 set dummy cp; ac_word=$2
5821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5823 if test "${ac_cv_path_CP+set}" = set; then
5824 echo $ECHO_N "(cached) $ECHO_C" >&6
5828 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5835 test -z "$as_dir" && as_dir=.
5836 for ac_exec_ext in '' $ac_executable_extensions; do
5837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5838 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5846 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5851 if test -n "$CP"; then
5852 { echo "$as_me:$LINENO: result: $CP" >&5
5853 echo "${ECHO_T}$CP" >&6; }
5855 { echo "$as_me:$LINENO: result: no" >&5
5856 echo "${ECHO_T}no" >&6; }
5860 # Extract the first word of "date", so it can be a program name with args.
5861 set dummy date; ac_word=$2
5862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5864 if test "${ac_cv_path_DATE+set}" = set; then
5865 echo $ECHO_N "(cached) $ECHO_C" >&6
5869 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5876 test -z "$as_dir" && as_dir=.
5877 for ac_exec_ext in '' $ac_executable_extensions; do
5878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5879 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5887 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5891 DATE=$ac_cv_path_DATE
5892 if test -n "$DATE"; then
5893 { echo "$as_me:$LINENO: result: $DATE" >&5
5894 echo "${ECHO_T}$DATE" >&6; }
5896 { echo "$as_me:$LINENO: result: no" >&5
5897 echo "${ECHO_T}no" >&6; }
5901 # Extract the first word of "find", so it can be a program name with args.
5902 set dummy find; ac_word=$2
5903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5905 if test "${ac_cv_path_FIND+set}" = set; then
5906 echo $ECHO_N "(cached) $ECHO_C" >&6
5910 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917 test -z "$as_dir" && as_dir=.
5918 for ac_exec_ext in '' $ac_executable_extensions; do
5919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5920 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5928 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5932 FIND=$ac_cv_path_FIND
5933 if test -n "$FIND"; then
5934 { echo "$as_me:$LINENO: result: $FIND" >&5
5935 echo "${ECHO_T}$FIND" >&6; }
5937 { echo "$as_me:$LINENO: result: no" >&5
5938 echo "${ECHO_T}no" >&6; }
5942 # Extract the first word of "grep", so it can be a program name with args.
5943 set dummy grep; ac_word=$2
5944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5946 if test "${ac_cv_path_GREP+set}" = set; then
5947 echo $ECHO_N "(cached) $ECHO_C" >&6
5951 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5958 test -z "$as_dir" && as_dir=.
5959 for ac_exec_ext in '' $ac_executable_extensions; do
5960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5961 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5969 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5973 GREP=$ac_cv_path_GREP
5974 if test -n "$GREP"; then
5975 { echo "$as_me:$LINENO: result: $GREP" >&5
5976 echo "${ECHO_T}$GREP" >&6; }
5978 { echo "$as_me:$LINENO: result: no" >&5
5979 echo "${ECHO_T}no" >&6; }
5983 # Extract the first word of "mkdir", so it can be a program name with args.
5984 set dummy mkdir; ac_word=$2
5985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5987 if test "${ac_cv_path_MKDIR+set}" = set; then
5988 echo $ECHO_N "(cached) $ECHO_C" >&6
5992 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5999 test -z "$as_dir" && as_dir=.
6000 for ac_exec_ext in '' $ac_executable_extensions; do
6001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6002 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6010 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6014 MKDIR=$ac_cv_path_MKDIR
6015 if test -n "$MKDIR"; then
6016 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6017 echo "${ECHO_T}$MKDIR" >&6; }
6019 { echo "$as_me:$LINENO: result: no" >&5
6020 echo "${ECHO_T}no" >&6; }
6024 # Extract the first word of "mv", so it can be a program name with args.
6025 set dummy mv; ac_word=$2
6026 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6028 if test "${ac_cv_path_MV+set}" = set; then
6029 echo $ECHO_N "(cached) $ECHO_C" >&6
6033 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6040 test -z "$as_dir" && as_dir=.
6041 for ac_exec_ext in '' $ac_executable_extensions; do
6042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6043 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6051 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6056 if test -n "$MV"; then
6057 { echo "$as_me:$LINENO: result: $MV" >&5
6058 echo "${ECHO_T}$MV" >&6; }
6060 { echo "$as_me:$LINENO: result: no" >&5
6061 echo "${ECHO_T}no" >&6; }
6065 if test -n "$ac_tool_prefix"; then
6066 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6067 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6070 if test "${ac_cv_prog_RANLIB+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6073 if test -n "$RANLIB"; then
6074 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6080 test -z "$as_dir" && as_dir=.
6081 for ac_exec_ext in '' $ac_executable_extensions; do
6082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6083 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6093 RANLIB=$ac_cv_prog_RANLIB
6094 if test -n "$RANLIB"; then
6095 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6096 echo "${ECHO_T}$RANLIB" >&6; }
6098 { echo "$as_me:$LINENO: result: no" >&5
6099 echo "${ECHO_T}no" >&6; }
6104 if test -z "$ac_cv_prog_RANLIB"; then
6105 ac_ct_RANLIB=$RANLIB
6106 # Extract the first word of "ranlib", so it can be a program name with args.
6107 set dummy ranlib; ac_word=$2
6108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6110 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6111 echo $ECHO_N "(cached) $ECHO_C" >&6
6113 if test -n "$ac_ct_RANLIB"; then
6114 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120 test -z "$as_dir" && as_dir=.
6121 for ac_exec_ext in '' $ac_executable_extensions; do
6122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6123 ac_cv_prog_ac_ct_RANLIB="ranlib"
6124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6133 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6134 if test -n "$ac_ct_RANLIB"; then
6135 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6136 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6138 { echo "$as_me:$LINENO: result: no" >&5
6139 echo "${ECHO_T}no" >&6; }
6142 if test "x$ac_ct_RANLIB" = x; then
6145 case $cross_compiling:$ac_tool_warned in
6147 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6148 whose name does not start with the host triplet. If you think this
6149 configuration is useful to you, please write to autoconf@gnu.org." >&5
6150 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6151 whose name does not start with the host triplet. If you think this
6152 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6153 ac_tool_warned=yes ;;
6155 RANLIB=$ac_ct_RANLIB
6158 RANLIB="$ac_cv_prog_RANLIB"
6161 if test -n "$ac_tool_prefix"; then
6162 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6163 set dummy ${ac_tool_prefix}ar; ac_word=$2
6164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6166 if test "${ac_cv_prog_AR+set}" = set; then
6167 echo $ECHO_N "(cached) $ECHO_C" >&6
6169 if test -n "$AR"; then
6170 ac_cv_prog_AR="$AR" # Let the user override the test.
6172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6176 test -z "$as_dir" && as_dir=.
6177 for ac_exec_ext in '' $ac_executable_extensions; do
6178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6179 ac_cv_prog_AR="${ac_tool_prefix}ar"
6180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6190 if test -n "$AR"; then
6191 { echo "$as_me:$LINENO: result: $AR" >&5
6192 echo "${ECHO_T}$AR" >&6; }
6194 { echo "$as_me:$LINENO: result: no" >&5
6195 echo "${ECHO_T}no" >&6; }
6200 if test -z "$ac_cv_prog_AR"; then
6202 # Extract the first word of "ar", so it can be a program name with args.
6203 set dummy ar; ac_word=$2
6204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6206 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6207 echo $ECHO_N "(cached) $ECHO_C" >&6
6209 if test -n "$ac_ct_AR"; then
6210 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6216 test -z "$as_dir" && as_dir=.
6217 for ac_exec_ext in '' $ac_executable_extensions; do
6218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6219 ac_cv_prog_ac_ct_AR="ar"
6220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6229 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6230 if test -n "$ac_ct_AR"; then
6231 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6232 echo "${ECHO_T}$ac_ct_AR" >&6; }
6234 { echo "$as_me:$LINENO: result: no" >&5
6235 echo "${ECHO_T}no" >&6; }
6238 if test "x$ac_ct_AR" = x; then
6241 case $cross_compiling:$ac_tool_warned in
6243 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6244 whose name does not start with the host triplet. If you think this
6245 configuration is useful to you, please write to autoconf@gnu.org." >&5
6246 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6247 whose name does not start with the host triplet. If you think this
6248 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6249 ac_tool_warned=yes ;;
6257 # Extract the first word of "rm", so it can be a program name with args.
6258 set dummy rm; ac_word=$2
6259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6261 if test "${ac_cv_path_RM+set}" = set; then
6262 echo $ECHO_N "(cached) $ECHO_C" >&6
6266 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6273 test -z "$as_dir" && as_dir=.
6274 for ac_exec_ext in '' $ac_executable_extensions; do
6275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6276 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6284 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6289 if test -n "$RM"; then
6290 { echo "$as_me:$LINENO: result: $RM" >&5
6291 echo "${ECHO_T}$RM" >&6; }
6293 { echo "$as_me:$LINENO: result: no" >&5
6294 echo "${ECHO_T}no" >&6; }
6298 # Extract the first word of "sed", so it can be a program name with args.
6299 set dummy sed; ac_word=$2
6300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6302 if test "${ac_cv_path_SED+set}" = set; then
6303 echo $ECHO_N "(cached) $ECHO_C" >&6
6307 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6314 test -z "$as_dir" && as_dir=.
6315 for ac_exec_ext in '' $ac_executable_extensions; do
6316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6317 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6325 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6330 if test -n "$SED"; then
6331 { echo "$as_me:$LINENO: result: $SED" >&5
6332 echo "${ECHO_T}$SED" >&6; }
6334 { echo "$as_me:$LINENO: result: no" >&5
6335 echo "${ECHO_T}no" >&6; }
6339 # Extract the first word of "tar", so it can be a program name with args.
6340 set dummy tar; ac_word=$2
6341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6343 if test "${ac_cv_path_TAR+set}" = set; then
6344 echo $ECHO_N "(cached) $ECHO_C" >&6
6348 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355 test -z "$as_dir" && as_dir=.
6356 for ac_exec_ext in '' $ac_executable_extensions; do
6357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6358 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6366 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6371 if test -n "$TAR"; then
6372 { echo "$as_me:$LINENO: result: $TAR" >&5
6373 echo "${ECHO_T}$TAR" >&6; }
6375 { echo "$as_me:$LINENO: result: no" >&5
6376 echo "${ECHO_T}no" >&6; }
6380 # Extract the first word of "pwd", so it can be a program name with args.
6381 set dummy pwd; ac_word=$2
6382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6384 if test "${ac_cv_path_BINPWD+set}" = set; then
6385 echo $ECHO_N "(cached) $ECHO_C" >&6
6389 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6396 test -z "$as_dir" && as_dir=.
6397 for ac_exec_ext in '' $ac_executable_extensions; do
6398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6399 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6407 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6411 BINPWD=$ac_cv_path_BINPWD
6412 if test -n "$BINPWD"; then
6413 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6414 echo "${ECHO_T}$BINPWD" >&6; }
6416 { echo "$as_me:$LINENO: result: no" >&5
6417 echo "${ECHO_T}no" >&6; }
6422 # Extract the first word of "Graphviz", so it can be a program name with args.
6423 set dummy Graphviz; ac_word=$2
6424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6426 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6427 echo $ECHO_N "(cached) $ECHO_C" >&6
6431 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6438 test -z "$as_dir" && as_dir=.
6439 for ac_exec_ext in '' $ac_executable_extensions; do
6440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6441 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6449 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6453 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6454 if test -n "$GRAPHVIZ"; then
6455 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6456 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6458 { echo "$as_me:$LINENO: result: no" >&5
6459 echo "${ECHO_T}no" >&6; }
6463 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6465 cat >>confdefs.h <<\_ACEOF
6466 #define HAVE_GRAPHVIZ 1
6469 if test "$llvm_cv_os_type" = "MingW" ; then
6470 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6473 cat >>confdefs.h <<_ACEOF
6474 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6478 # Extract the first word of "dot", so it can be a program name with args.
6479 set dummy dot; ac_word=$2
6480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6482 if test "${ac_cv_path_DOT+set}" = set; then
6483 echo $ECHO_N "(cached) $ECHO_C" >&6
6487 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494 test -z "$as_dir" && as_dir=.
6495 for ac_exec_ext in '' $ac_executable_extensions; do
6496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6497 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6505 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6510 if test -n "$DOT"; then
6511 { echo "$as_me:$LINENO: result: $DOT" >&5
6512 echo "${ECHO_T}$DOT" >&6; }
6514 { echo "$as_me:$LINENO: result: no" >&5
6515 echo "${ECHO_T}no" >&6; }
6519 if test "$DOT" != "echo dot" ; then
6521 cat >>confdefs.h <<\_ACEOF
6525 if test "$llvm_cv_os_type" = "MingW" ; then
6526 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6529 cat >>confdefs.h <<_ACEOF
6530 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6534 # Extract the first word of "fdp", so it can be a program name with args.
6535 set dummy fdp; ac_word=$2
6536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6538 if test "${ac_cv_path_FDP+set}" = set; then
6539 echo $ECHO_N "(cached) $ECHO_C" >&6
6543 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6550 test -z "$as_dir" && as_dir=.
6551 for ac_exec_ext in '' $ac_executable_extensions; do
6552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6553 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6561 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6566 if test -n "$FDP"; then
6567 { echo "$as_me:$LINENO: result: $FDP" >&5
6568 echo "${ECHO_T}$FDP" >&6; }
6570 { echo "$as_me:$LINENO: result: no" >&5
6571 echo "${ECHO_T}no" >&6; }
6575 if test "$FDP" != "echo fdp" ; then
6577 cat >>confdefs.h <<\_ACEOF
6581 if test "$llvm_cv_os_type" = "MingW" ; then
6582 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6585 cat >>confdefs.h <<_ACEOF
6586 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6590 # Extract the first word of "neato", so it can be a program name with args.
6591 set dummy neato; ac_word=$2
6592 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6594 if test "${ac_cv_path_NEATO+set}" = set; then
6595 echo $ECHO_N "(cached) $ECHO_C" >&6
6599 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6606 test -z "$as_dir" && as_dir=.
6607 for ac_exec_ext in '' $ac_executable_extensions; do
6608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6609 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6617 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6621 NEATO=$ac_cv_path_NEATO
6622 if test -n "$NEATO"; then
6623 { echo "$as_me:$LINENO: result: $NEATO" >&5
6624 echo "${ECHO_T}$NEATO" >&6; }
6626 { echo "$as_me:$LINENO: result: no" >&5
6627 echo "${ECHO_T}no" >&6; }
6631 if test "$NEATO" != "echo neato" ; then
6633 cat >>confdefs.h <<\_ACEOF
6634 #define HAVE_NEATO 1
6637 if test "$llvm_cv_os_type" = "MingW" ; then
6638 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6641 cat >>confdefs.h <<_ACEOF
6642 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6646 # Extract the first word of "twopi", so it can be a program name with args.
6647 set dummy twopi; ac_word=$2
6648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6650 if test "${ac_cv_path_TWOPI+set}" = set; then
6651 echo $ECHO_N "(cached) $ECHO_C" >&6
6655 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6662 test -z "$as_dir" && as_dir=.
6663 for ac_exec_ext in '' $ac_executable_extensions; do
6664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6665 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6673 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6677 TWOPI=$ac_cv_path_TWOPI
6678 if test -n "$TWOPI"; then
6679 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6680 echo "${ECHO_T}$TWOPI" >&6; }
6682 { echo "$as_me:$LINENO: result: no" >&5
6683 echo "${ECHO_T}no" >&6; }
6687 if test "$TWOPI" != "echo twopi" ; then
6689 cat >>confdefs.h <<\_ACEOF
6690 #define HAVE_TWOPI 1
6693 if test "$llvm_cv_os_type" = "MingW" ; then
6694 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6697 cat >>confdefs.h <<_ACEOF
6698 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6702 # Extract the first word of "circo", so it can be a program name with args.
6703 set dummy circo; ac_word=$2
6704 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6706 if test "${ac_cv_path_CIRCO+set}" = set; then
6707 echo $ECHO_N "(cached) $ECHO_C" >&6
6711 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6718 test -z "$as_dir" && as_dir=.
6719 for ac_exec_ext in '' $ac_executable_extensions; do
6720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6721 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6729 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6733 CIRCO=$ac_cv_path_CIRCO
6734 if test -n "$CIRCO"; then
6735 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6736 echo "${ECHO_T}$CIRCO" >&6; }
6738 { echo "$as_me:$LINENO: result: no" >&5
6739 echo "${ECHO_T}no" >&6; }
6743 if test "$CIRCO" != "echo circo" ; then
6745 cat >>confdefs.h <<\_ACEOF
6746 #define HAVE_CIRCO 1
6749 if test "$llvm_cv_os_type" = "MingW" ; then
6750 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6753 cat >>confdefs.h <<_ACEOF
6754 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6758 for ac_prog in gv gsview32
6760 # Extract the first word of "$ac_prog", so it can be a program name with args.
6761 set dummy $ac_prog; ac_word=$2
6762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6764 if test "${ac_cv_path_GV+set}" = set; then
6765 echo $ECHO_N "(cached) $ECHO_C" >&6
6769 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776 test -z "$as_dir" && as_dir=.
6777 for ac_exec_ext in '' $ac_executable_extensions; do
6778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6779 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6791 if test -n "$GV"; then
6792 { echo "$as_me:$LINENO: result: $GV" >&5
6793 echo "${ECHO_T}$GV" >&6; }
6795 { echo "$as_me:$LINENO: result: no" >&5
6796 echo "${ECHO_T}no" >&6; }
6800 test -n "$GV" && break
6802 test -n "$GV" || GV="echo gv"
6804 if test "$GV" != "echo gv" ; then
6806 cat >>confdefs.h <<\_ACEOF
6810 if test "$llvm_cv_os_type" = "MingW" ; then
6811 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6814 cat >>confdefs.h <<_ACEOF
6815 #define LLVM_PATH_GV "$GV${EXEEXT}"
6819 # Extract the first word of "dotty", so it can be a program name with args.
6820 set dummy dotty; ac_word=$2
6821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6823 if test "${ac_cv_path_DOTTY+set}" = set; then
6824 echo $ECHO_N "(cached) $ECHO_C" >&6
6828 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835 test -z "$as_dir" && as_dir=.
6836 for ac_exec_ext in '' $ac_executable_extensions; do
6837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6838 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6846 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6850 DOTTY=$ac_cv_path_DOTTY
6851 if test -n "$DOTTY"; then
6852 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6853 echo "${ECHO_T}$DOTTY" >&6; }
6855 { echo "$as_me:$LINENO: result: no" >&5
6856 echo "${ECHO_T}no" >&6; }
6860 if test "$DOTTY" != "echo dotty" ; then
6862 cat >>confdefs.h <<\_ACEOF
6863 #define HAVE_DOTTY 1
6866 if test "$llvm_cv_os_type" = "MingW" ; then
6867 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6870 cat >>confdefs.h <<_ACEOF
6871 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6875 # Extract the first word of "xdot.py", so it can be a program name with args.
6876 set dummy xdot.py; ac_word=$2
6877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6879 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6880 echo $ECHO_N "(cached) $ECHO_C" >&6
6884 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891 test -z "$as_dir" && as_dir=.
6892 for ac_exec_ext in '' $ac_executable_extensions; do
6893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6894 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6902 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6906 XDOT_PY=$ac_cv_path_XDOT_PY
6907 if test -n "$XDOT_PY"; then
6908 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6909 echo "${ECHO_T}$XDOT_PY" >&6; }
6911 { echo "$as_me:$LINENO: result: no" >&5
6912 echo "${ECHO_T}no" >&6; }
6916 if test "$XDOT_PY" != "echo xdot.py" ; then
6918 cat >>confdefs.h <<\_ACEOF
6919 #define HAVE_XDOT_PY 1
6922 if test "$llvm_cv_os_type" = "MingW" ; then
6923 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6926 cat >>confdefs.h <<_ACEOF
6927 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6932 # Find a good install program. We prefer a C program (faster),
6933 # so one script is as good as another. But avoid the broken or
6934 # incompatible versions:
6935 # SysV /etc/install, /usr/sbin/install
6936 # SunOS /usr/etc/install
6937 # IRIX /sbin/install
6939 # AmigaOS /C/install, which installs bootblocks on floppy discs
6940 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6941 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6942 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6943 # OS/2's system install, which has a completely different semantic
6944 # ./install, which can be erroneously created by make from ./install.sh.
6945 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6946 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6947 if test -z "$INSTALL"; then
6948 if test "${ac_cv_path_install+set}" = set; then
6949 echo $ECHO_N "(cached) $ECHO_C" >&6
6951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6955 test -z "$as_dir" && as_dir=.
6956 # Account for people who put trailing slashes in PATH elements.
6958 ./ | .// | /cC/* | \
6959 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6960 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6963 # OSF1 and SCO ODT 3.0 have their own names for install.
6964 # Don't use installbsd from OSF since it installs stuff as root
6966 for ac_prog in ginstall scoinst install; do
6967 for ac_exec_ext in '' $ac_executable_extensions; do
6968 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6969 if test $ac_prog = install &&
6970 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6971 # AIX install. It has an incompatible calling convention.
6973 elif test $ac_prog = install &&
6974 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6975 # program-specific install script used by HP pwplus--don't use.
6978 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6991 if test "${ac_cv_path_install+set}" = set; then
6992 INSTALL=$ac_cv_path_install
6994 # As a last resort, use the slow shell script. Don't cache a
6995 # value for INSTALL within a source directory, because that will
6996 # break other packages using the cache if that directory is
6997 # removed, or if the value is a relative name.
6998 INSTALL=$ac_install_sh
7001 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7002 echo "${ECHO_T}$INSTALL" >&6; }
7004 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7005 # It thinks the first close brace ends the variable substitution.
7006 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7008 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7010 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7013 [\\/$]* | ?:[\\/]* ) ;;
7014 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7017 # Extract the first word of "bzip2", so it can be a program name with args.
7018 set dummy bzip2; ac_word=$2
7019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7021 if test "${ac_cv_path_BZIP2+set}" = set; then
7022 echo $ECHO_N "(cached) $ECHO_C" >&6
7026 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033 test -z "$as_dir" && as_dir=.
7034 for ac_exec_ext in '' $ac_executable_extensions; do
7035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7036 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7047 BZIP2=$ac_cv_path_BZIP2
7048 if test -n "$BZIP2"; then
7049 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7050 echo "${ECHO_T}$BZIP2" >&6; }
7052 { echo "$as_me:$LINENO: result: no" >&5
7053 echo "${ECHO_T}no" >&6; }
7057 # Extract the first word of "cat", so it can be a program name with args.
7058 set dummy cat; ac_word=$2
7059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7061 if test "${ac_cv_path_CAT+set}" = set; then
7062 echo $ECHO_N "(cached) $ECHO_C" >&6
7066 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073 test -z "$as_dir" && as_dir=.
7074 for ac_exec_ext in '' $ac_executable_extensions; do
7075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7076 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7088 if test -n "$CAT"; then
7089 { echo "$as_me:$LINENO: result: $CAT" >&5
7090 echo "${ECHO_T}$CAT" >&6; }
7092 { echo "$as_me:$LINENO: result: no" >&5
7093 echo "${ECHO_T}no" >&6; }
7097 # Extract the first word of "doxygen", so it can be a program name with args.
7098 set dummy doxygen; ac_word=$2
7099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7101 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7102 echo $ECHO_N "(cached) $ECHO_C" >&6
7106 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7113 test -z "$as_dir" && as_dir=.
7114 for ac_exec_ext in '' $ac_executable_extensions; do
7115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7116 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7127 DOXYGEN=$ac_cv_path_DOXYGEN
7128 if test -n "$DOXYGEN"; then
7129 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7130 echo "${ECHO_T}$DOXYGEN" >&6; }
7132 { echo "$as_me:$LINENO: result: no" >&5
7133 echo "${ECHO_T}no" >&6; }
7137 # Extract the first word of "groff", so it can be a program name with args.
7138 set dummy groff; ac_word=$2
7139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7141 if test "${ac_cv_path_GROFF+set}" = set; then
7142 echo $ECHO_N "(cached) $ECHO_C" >&6
7146 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7153 test -z "$as_dir" && as_dir=.
7154 for ac_exec_ext in '' $ac_executable_extensions; do
7155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7156 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7167 GROFF=$ac_cv_path_GROFF
7168 if test -n "$GROFF"; then
7169 { echo "$as_me:$LINENO: result: $GROFF" >&5
7170 echo "${ECHO_T}$GROFF" >&6; }
7172 { echo "$as_me:$LINENO: result: no" >&5
7173 echo "${ECHO_T}no" >&6; }
7177 # Extract the first word of "gzip", so it can be a program name with args.
7178 set dummy gzip; ac_word=$2
7179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7181 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7182 echo $ECHO_N "(cached) $ECHO_C" >&6
7186 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7193 test -z "$as_dir" && as_dir=.
7194 for ac_exec_ext in '' $ac_executable_extensions; do
7195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7196 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7207 GZIPBIN=$ac_cv_path_GZIPBIN
7208 if test -n "$GZIPBIN"; then
7209 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7210 echo "${ECHO_T}$GZIPBIN" >&6; }
7212 { echo "$as_me:$LINENO: result: no" >&5
7213 echo "${ECHO_T}no" >&6; }
7217 # Extract the first word of "pdfroff", so it can be a program name with args.
7218 set dummy pdfroff; ac_word=$2
7219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7221 if test "${ac_cv_path_PDFROFF+set}" = set; then
7222 echo $ECHO_N "(cached) $ECHO_C" >&6
7226 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233 test -z "$as_dir" && as_dir=.
7234 for ac_exec_ext in '' $ac_executable_extensions; do
7235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7236 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7247 PDFROFF=$ac_cv_path_PDFROFF
7248 if test -n "$PDFROFF"; then
7249 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7250 echo "${ECHO_T}$PDFROFF" >&6; }
7252 { echo "$as_me:$LINENO: result: no" >&5
7253 echo "${ECHO_T}no" >&6; }
7257 # Extract the first word of "zip", so it can be a program name with args.
7258 set dummy zip; ac_word=$2
7259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7261 if test "${ac_cv_path_ZIP+set}" = set; then
7262 echo $ECHO_N "(cached) $ECHO_C" >&6
7266 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273 test -z "$as_dir" && as_dir=.
7274 for ac_exec_ext in '' $ac_executable_extensions; do
7275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7276 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7288 if test -n "$ZIP"; then
7289 { echo "$as_me:$LINENO: result: $ZIP" >&5
7290 echo "${ECHO_T}$ZIP" >&6; }
7292 { echo "$as_me:$LINENO: result: no" >&5
7293 echo "${ECHO_T}no" >&6; }
7297 for ac_prog in ocamlc
7299 # Extract the first word of "$ac_prog", so it can be a program name with args.
7300 set dummy $ac_prog; ac_word=$2
7301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7303 if test "${ac_cv_path_OCAMLC+set}" = set; then
7304 echo $ECHO_N "(cached) $ECHO_C" >&6
7308 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315 test -z "$as_dir" && as_dir=.
7316 for ac_exec_ext in '' $ac_executable_extensions; do
7317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7318 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7329 OCAMLC=$ac_cv_path_OCAMLC
7330 if test -n "$OCAMLC"; then
7331 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7332 echo "${ECHO_T}$OCAMLC" >&6; }
7334 { echo "$as_me:$LINENO: result: no" >&5
7335 echo "${ECHO_T}no" >&6; }
7339 test -n "$OCAMLC" && break
7342 for ac_prog in ocamlopt
7344 # Extract the first word of "$ac_prog", so it can be a program name with args.
7345 set dummy $ac_prog; ac_word=$2
7346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7348 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7349 echo $ECHO_N "(cached) $ECHO_C" >&6
7353 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360 test -z "$as_dir" && as_dir=.
7361 for ac_exec_ext in '' $ac_executable_extensions; do
7362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7363 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7374 OCAMLOPT=$ac_cv_path_OCAMLOPT
7375 if test -n "$OCAMLOPT"; then
7376 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7377 echo "${ECHO_T}$OCAMLOPT" >&6; }
7379 { echo "$as_me:$LINENO: result: no" >&5
7380 echo "${ECHO_T}no" >&6; }
7384 test -n "$OCAMLOPT" && break
7387 for ac_prog in ocamldep
7389 # Extract the first word of "$ac_prog", so it can be a program name with args.
7390 set dummy $ac_prog; ac_word=$2
7391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7393 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7394 echo $ECHO_N "(cached) $ECHO_C" >&6
7398 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7405 test -z "$as_dir" && as_dir=.
7406 for ac_exec_ext in '' $ac_executable_extensions; do
7407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7408 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7419 OCAMLDEP=$ac_cv_path_OCAMLDEP
7420 if test -n "$OCAMLDEP"; then
7421 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7422 echo "${ECHO_T}$OCAMLDEP" >&6; }
7424 { echo "$as_me:$LINENO: result: no" >&5
7425 echo "${ECHO_T}no" >&6; }
7429 test -n "$OCAMLDEP" && break
7432 for ac_prog in ocamldoc
7434 # Extract the first word of "$ac_prog", so it can be a program name with args.
7435 set dummy $ac_prog; ac_word=$2
7436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7438 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7439 echo $ECHO_N "(cached) $ECHO_C" >&6
7443 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7450 test -z "$as_dir" && as_dir=.
7451 for ac_exec_ext in '' $ac_executable_extensions; do
7452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7453 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7464 OCAMLDOC=$ac_cv_path_OCAMLDOC
7465 if test -n "$OCAMLDOC"; then
7466 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7467 echo "${ECHO_T}$OCAMLDOC" >&6; }
7469 { echo "$as_me:$LINENO: result: no" >&5
7470 echo "${ECHO_T}no" >&6; }
7474 test -n "$OCAMLDOC" && break
7477 for ac_prog in gas as
7479 # Extract the first word of "$ac_prog", so it can be a program name with args.
7480 set dummy $ac_prog; ac_word=$2
7481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7483 if test "${ac_cv_path_GAS+set}" = set; then
7484 echo $ECHO_N "(cached) $ECHO_C" >&6
7488 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7495 test -z "$as_dir" && as_dir=.
7496 for ac_exec_ext in '' $ac_executable_extensions; do
7497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7498 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7510 if test -n "$GAS"; then
7511 { echo "$as_me:$LINENO: result: $GAS" >&5
7512 echo "${ECHO_T}$GAS" >&6; }
7514 { echo "$as_me:$LINENO: result: no" >&5
7515 echo "${ECHO_T}no" >&6; }
7519 test -n "$GAS" && break
7523 { echo "$as_me:$LINENO: checking for linker version" >&5
7524 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7525 if test "${llvm_cv_link_version+set}" = set; then
7526 echo $ECHO_N "(cached) $ECHO_C" >&6
7529 version_string="$(ld -v 2>&1 | head -1)"
7532 if (echo "$version_string" | grep -q "ld64"); then
7533 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7535 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7539 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7540 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7542 cat >>confdefs.h <<_ACEOF
7543 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7548 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7549 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7550 if test "${llvm_cv_link_use_r+set}" = set; then
7551 echo $ECHO_N "(cached) $ECHO_C" >&6
7554 ac_cpp='$CPP $CPPFLAGS'
7555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7560 CFLAGS="$CFLAGS -Wl,-R."
7561 cat >conftest.$ac_ext <<_ACEOF
7564 cat confdefs.h >>conftest.$ac_ext
7565 cat >>conftest.$ac_ext <<_ACEOF
7566 /* end confdefs.h. */
7576 rm -f conftest.$ac_objext conftest$ac_exeext
7577 if { (ac_try="$ac_link"
7579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7580 *) ac_try_echo=$ac_try;;
7582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7583 (eval "$ac_link") 2>conftest.er1
7585 grep -v '^ *+' conftest.er1 >conftest.err
7587 cat conftest.err >&5
7588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589 (exit $ac_status); } &&
7590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7591 { (case "(($ac_try" in
7592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7593 *) ac_try_echo=$ac_try;;
7595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7596 (eval "$ac_try") 2>&5
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); }; } &&
7600 { ac_try='test -s conftest$ac_exeext'
7601 { (case "(($ac_try" in
7602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7603 *) ac_try_echo=$ac_try;;
7605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7606 (eval "$ac_try") 2>&5
7608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609 (exit $ac_status); }; }; then
7610 llvm_cv_link_use_r=yes
7612 echo "$as_me: failed program was:" >&5
7613 sed 's/^/| /' conftest.$ac_ext >&5
7615 llvm_cv_link_use_r=no
7618 rm -f core conftest.err conftest.$ac_objext \
7619 conftest$ac_exeext conftest.$ac_ext
7622 ac_cpp='$CPP $CPPFLAGS'
7623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7629 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7630 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7631 if test "$llvm_cv_link_use_r" = yes ; then
7633 cat >>confdefs.h <<\_ACEOF
7634 #define HAVE_LINK_R 1
7640 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7641 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7642 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7643 echo $ECHO_N "(cached) $ECHO_C" >&6
7646 ac_cpp='$CPP $CPPFLAGS'
7647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7652 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7653 cat >conftest.$ac_ext <<_ACEOF
7656 cat confdefs.h >>conftest.$ac_ext
7657 cat >>conftest.$ac_ext <<_ACEOF
7658 /* end confdefs.h. */
7668 rm -f conftest.$ac_objext conftest$ac_exeext
7669 if { (ac_try="$ac_link"
7671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7672 *) ac_try_echo=$ac_try;;
7674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7675 (eval "$ac_link") 2>conftest.er1
7677 grep -v '^ *+' conftest.er1 >conftest.err
7679 cat conftest.err >&5
7680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681 (exit $ac_status); } &&
7682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7683 { (case "(($ac_try" in
7684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7685 *) ac_try_echo=$ac_try;;
7687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7688 (eval "$ac_try") 2>&5
7690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691 (exit $ac_status); }; } &&
7692 { ac_try='test -s conftest$ac_exeext'
7693 { (case "(($ac_try" in
7694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7695 *) ac_try_echo=$ac_try;;
7697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7698 (eval "$ac_try") 2>&5
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); }; }; then
7702 llvm_cv_link_use_export_dynamic=yes
7704 echo "$as_me: failed program was:" >&5
7705 sed 's/^/| /' conftest.$ac_ext >&5
7707 llvm_cv_link_use_export_dynamic=no
7710 rm -f core conftest.err conftest.$ac_objext \
7711 conftest$ac_exeext conftest.$ac_ext
7714 ac_cpp='$CPP $CPPFLAGS'
7715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7721 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7722 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7723 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7725 cat >>confdefs.h <<\_ACEOF
7726 #define HAVE_LINK_EXPORT_DYNAMIC 1
7732 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7733 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7734 if test "${llvm_cv_link_use_version_script+set}" = set; then
7735 echo $ECHO_N "(cached) $ECHO_C" >&6
7738 ac_cpp='$CPP $CPPFLAGS'
7739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7745 # The following code is from the autoconf manual,
7746 # "11.13: Limitations of Usual Tools".
7747 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7748 # Use mktemp if possible; otherwise fall back on mkdir,
7749 # with $RANDOM to make collisions less likely.
7753 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7755 test -n "$tmp" && test -d "$tmp"
7757 tmp=$TMPDIR/foo$$-$RANDOM
7758 (umask 077 && mkdir "$tmp")
7761 echo "{" > "$tmp/export.map"
7762 echo " global: main;" >> "$tmp/export.map"
7763 echo " local: *;" >> "$tmp/export.map"
7764 echo "};" >> "$tmp/export.map"
7766 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7767 cat >conftest.$ac_ext <<_ACEOF
7770 cat confdefs.h >>conftest.$ac_ext
7771 cat >>conftest.$ac_ext <<_ACEOF
7772 /* end confdefs.h. */
7782 rm -f conftest.$ac_objext conftest$ac_exeext
7783 if { (ac_try="$ac_link"
7785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7786 *) ac_try_echo=$ac_try;;
7788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7789 (eval "$ac_link") 2>conftest.er1
7791 grep -v '^ *+' conftest.er1 >conftest.err
7793 cat conftest.err >&5
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); } &&
7796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
7806 { ac_try='test -s conftest$ac_exeext'
7807 { (case "(($ac_try" in
7808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7809 *) ac_try_echo=$ac_try;;
7811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7812 (eval "$ac_try") 2>&5
7814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7815 (exit $ac_status); }; }; then
7816 llvm_cv_link_use_version_script=yes
7818 echo "$as_me: failed program was:" >&5
7819 sed 's/^/| /' conftest.$ac_ext >&5
7821 llvm_cv_link_use_version_script=no
7824 rm -f core conftest.err conftest.$ac_objext \
7825 conftest$ac_exeext conftest.$ac_ext
7826 rm "$tmp/export.map"
7830 ac_cpp='$CPP $CPPFLAGS'
7831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7837 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7838 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7839 if test "$llvm_cv_link_use_version_script" = yes ; then
7840 HAVE_LINK_VERSION_SCRIPT=1
7847 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7848 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7849 if test "${ac_cv_c_const+set}" = set; then
7850 echo $ECHO_N "(cached) $ECHO_C" >&6
7852 cat >conftest.$ac_ext <<_ACEOF
7855 cat confdefs.h >>conftest.$ac_ext
7856 cat >>conftest.$ac_ext <<_ACEOF
7857 /* end confdefs.h. */
7862 /* FIXME: Include the comments suggested by Paul. */
7864 /* Ultrix mips cc rejects this. */
7865 typedef int charset[2];
7867 /* SunOS 4.1.1 cc rejects this. */
7868 char const *const *ccp;
7870 /* NEC SVR4.0.2 mips cc rejects this. */
7871 struct point {int x, y;};
7872 static struct point const zero = {0,0};
7873 /* AIX XL C 1.02.0.0 rejects this.
7874 It does not let you subtract one const X* pointer from another in
7875 an arm of an if-expression whose if-part is not a constant
7877 const char *g = "string";
7878 ccp = &g + (g ? g-g : 0);
7879 /* HPUX 7.0 cc rejects these. */
7882 ccp = (char const *const *) p;
7883 { /* SCO 3.2v4 cc rejects this. */
7885 char const *s = 0 ? (char *) 0 : (char const *) 0;
7890 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7892 const int *foo = &x[0];
7895 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7896 typedef const int *iptr;
7900 { /* AIX XL C 1.02.0.0 rejects this saying
7901 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7902 struct s { int j; const int *ap[3]; };
7903 struct s *b; b->j = 5;
7905 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7909 return !x[0] && !zero.x;
7916 rm -f conftest.$ac_objext
7917 if { (ac_try="$ac_compile"
7919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7920 *) ac_try_echo=$ac_try;;
7922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7923 (eval "$ac_compile") 2>conftest.er1
7925 grep -v '^ *+' conftest.er1 >conftest.err
7927 cat conftest.err >&5
7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); } &&
7930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7931 { (case "(($ac_try" in
7932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7933 *) ac_try_echo=$ac_try;;
7935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7936 (eval "$ac_try") 2>&5
7938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939 (exit $ac_status); }; } &&
7940 { ac_try='test -s conftest.$ac_objext'
7941 { (case "(($ac_try" in
7942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7943 *) ac_try_echo=$ac_try;;
7945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7946 (eval "$ac_try") 2>&5
7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); }; }; then
7952 echo "$as_me: failed program was:" >&5
7953 sed 's/^/| /' conftest.$ac_ext >&5
7958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7960 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7961 echo "${ECHO_T}$ac_cv_c_const" >&6; }
7962 if test $ac_cv_c_const = no; then
7964 cat >>confdefs.h <<\_ACEOF
7976 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7977 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7978 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7979 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
7980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7981 echo $ECHO_N "(cached) $ECHO_C" >&6
7983 cat >conftest.$ac_ext <<_ACEOF
7986 cat confdefs.h >>conftest.$ac_ext
7987 cat >>conftest.$ac_ext <<_ACEOF
7988 /* end confdefs.h. */
7989 #include <sys/types.h>
8001 rm -f conftest.$ac_objext
8002 if { (ac_try="$ac_compile"
8004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8005 *) ac_try_echo=$ac_try;;
8007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8008 (eval "$ac_compile") 2>conftest.er1
8010 grep -v '^ *+' conftest.er1 >conftest.err
8012 cat conftest.err >&5
8013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014 (exit $ac_status); } &&
8015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8016 { (case "(($ac_try" in
8017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8018 *) ac_try_echo=$ac_try;;
8020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8021 (eval "$ac_try") 2>&5
8023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024 (exit $ac_status); }; } &&
8025 { ac_try='test -s conftest.$ac_objext'
8026 { (case "(($ac_try" in
8027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8028 *) ac_try_echo=$ac_try;;
8030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8031 (eval "$ac_try") 2>&5
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); }; }; then
8035 eval "$as_ac_Header=yes"
8037 echo "$as_me: failed program was:" >&5
8038 sed 's/^/| /' conftest.$ac_ext >&5
8040 eval "$as_ac_Header=no"
8043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8045 ac_res=`eval echo '${'$as_ac_Header'}'`
8046 { echo "$as_me:$LINENO: result: $ac_res" >&5
8047 echo "${ECHO_T}$ac_res" >&6; }
8048 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8049 cat >>confdefs.h <<_ACEOF
8050 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8053 ac_header_dirent=$ac_hdr; break
8057 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8058 if test $ac_header_dirent = dirent.h; then
8059 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8060 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8061 if test "${ac_cv_search_opendir+set}" = set; then
8062 echo $ECHO_N "(cached) $ECHO_C" >&6
8064 ac_func_search_save_LIBS=$LIBS
8065 cat >conftest.$ac_ext <<_ACEOF
8068 cat confdefs.h >>conftest.$ac_ext
8069 cat >>conftest.$ac_ext <<_ACEOF
8070 /* end confdefs.h. */
8072 /* Override any GCC internal prototype to avoid an error.
8073 Use char because int might match the return type of a GCC
8074 builtin and then its argument prototype would still apply. */
8087 for ac_lib in '' dir; do
8088 if test -z "$ac_lib"; then
8089 ac_res="none required"
8092 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8094 rm -f conftest.$ac_objext conftest$ac_exeext
8095 if { (ac_try="$ac_link"
8097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8098 *) ac_try_echo=$ac_try;;
8100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8101 (eval "$ac_link") 2>conftest.er1
8103 grep -v '^ *+' conftest.er1 >conftest.err
8105 cat conftest.err >&5
8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 (exit $ac_status); } &&
8108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8109 { (case "(($ac_try" in
8110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8111 *) ac_try_echo=$ac_try;;
8113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8114 (eval "$ac_try") 2>&5
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); }; } &&
8118 { ac_try='test -s conftest$ac_exeext'
8119 { (case "(($ac_try" in
8120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8121 *) ac_try_echo=$ac_try;;
8123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8124 (eval "$ac_try") 2>&5
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); }; }; then
8128 ac_cv_search_opendir=$ac_res
8130 echo "$as_me: failed program was:" >&5
8131 sed 's/^/| /' conftest.$ac_ext >&5
8136 rm -f core conftest.err conftest.$ac_objext \
8138 if test "${ac_cv_search_opendir+set}" = set; then
8142 if test "${ac_cv_search_opendir+set}" = set; then
8145 ac_cv_search_opendir=no
8148 LIBS=$ac_func_search_save_LIBS
8150 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8151 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8152 ac_res=$ac_cv_search_opendir
8153 if test "$ac_res" != no; then
8154 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8159 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8160 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8161 if test "${ac_cv_search_opendir+set}" = set; then
8162 echo $ECHO_N "(cached) $ECHO_C" >&6
8164 ac_func_search_save_LIBS=$LIBS
8165 cat >conftest.$ac_ext <<_ACEOF
8168 cat confdefs.h >>conftest.$ac_ext
8169 cat >>conftest.$ac_ext <<_ACEOF
8170 /* end confdefs.h. */
8172 /* Override any GCC internal prototype to avoid an error.
8173 Use char because int might match the return type of a GCC
8174 builtin and then its argument prototype would still apply. */
8187 for ac_lib in '' x; do
8188 if test -z "$ac_lib"; then
8189 ac_res="none required"
8192 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8194 rm -f conftest.$ac_objext conftest$ac_exeext
8195 if { (ac_try="$ac_link"
8197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8198 *) ac_try_echo=$ac_try;;
8200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8201 (eval "$ac_link") 2>conftest.er1
8203 grep -v '^ *+' conftest.er1 >conftest.err
8205 cat conftest.err >&5
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); } &&
8208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8209 { (case "(($ac_try" in
8210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8211 *) ac_try_echo=$ac_try;;
8213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8214 (eval "$ac_try") 2>&5
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); }; } &&
8218 { ac_try='test -s conftest$ac_exeext'
8219 { (case "(($ac_try" in
8220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8221 *) ac_try_echo=$ac_try;;
8223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8224 (eval "$ac_try") 2>&5
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); }; }; then
8228 ac_cv_search_opendir=$ac_res
8230 echo "$as_me: failed program was:" >&5
8231 sed 's/^/| /' conftest.$ac_ext >&5
8236 rm -f core conftest.err conftest.$ac_objext \
8238 if test "${ac_cv_search_opendir+set}" = set; then
8242 if test "${ac_cv_search_opendir+set}" = set; then
8245 ac_cv_search_opendir=no
8248 LIBS=$ac_func_search_save_LIBS
8250 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8251 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8252 ac_res=$ac_cv_search_opendir
8253 if test "$ac_res" != no; then
8254 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8261 for ac_header in dlfcn.h
8263 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8265 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8268 echo $ECHO_N "(cached) $ECHO_C" >&6
8270 ac_res=`eval echo '${'$as_ac_Header'}'`
8271 { echo "$as_me:$LINENO: result: $ac_res" >&5
8272 echo "${ECHO_T}$ac_res" >&6; }
8274 # Is the header compilable?
8275 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8276 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8277 cat >conftest.$ac_ext <<_ACEOF
8280 cat confdefs.h >>conftest.$ac_ext
8281 cat >>conftest.$ac_ext <<_ACEOF
8282 /* end confdefs.h. */
8283 $ac_includes_default
8284 #include <$ac_header>
8286 rm -f conftest.$ac_objext
8287 if { (ac_try="$ac_compile"
8289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8290 *) ac_try_echo=$ac_try;;
8292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8293 (eval "$ac_compile") 2>conftest.er1
8295 grep -v '^ *+' conftest.er1 >conftest.err
8297 cat conftest.err >&5
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); } &&
8300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8301 { (case "(($ac_try" in
8302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8303 *) ac_try_echo=$ac_try;;
8305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8306 (eval "$ac_try") 2>&5
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); }; } &&
8310 { ac_try='test -s conftest.$ac_objext'
8311 { (case "(($ac_try" in
8312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8313 *) ac_try_echo=$ac_try;;
8315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8316 (eval "$ac_try") 2>&5
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); }; }; then
8320 ac_header_compiler=yes
8322 echo "$as_me: failed program was:" >&5
8323 sed 's/^/| /' conftest.$ac_ext >&5
8325 ac_header_compiler=no
8328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8329 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8330 echo "${ECHO_T}$ac_header_compiler" >&6; }
8332 # Is the header present?
8333 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8334 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8335 cat >conftest.$ac_ext <<_ACEOF
8338 cat confdefs.h >>conftest.$ac_ext
8339 cat >>conftest.$ac_ext <<_ACEOF
8340 /* end confdefs.h. */
8341 #include <$ac_header>
8343 if { (ac_try="$ac_cpp conftest.$ac_ext"
8345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8346 *) ac_try_echo=$ac_try;;
8348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8349 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8351 grep -v '^ *+' conftest.er1 >conftest.err
8353 cat conftest.err >&5
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); } >/dev/null; then
8356 if test -s conftest.err; then
8357 ac_cpp_err=$ac_c_preproc_warn_flag
8358 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8365 if test -z "$ac_cpp_err"; then
8366 ac_header_preproc=yes
8368 echo "$as_me: failed program was:" >&5
8369 sed 's/^/| /' conftest.$ac_ext >&5
8371 ac_header_preproc=no
8374 rm -f conftest.err conftest.$ac_ext
8375 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8376 echo "${ECHO_T}$ac_header_preproc" >&6; }
8378 # So? What about this header?
8379 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8381 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8382 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8384 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8385 ac_header_preproc=yes
8388 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8389 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8390 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8391 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8392 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8393 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8394 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8395 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8397 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8398 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8399 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8401 ## ------------------------------------ ##
8402 ## Report this to http://llvm.org/bugs/ ##
8403 ## ------------------------------------ ##
8405 ) | sed "s/^/$as_me: WARNING: /" >&2
8408 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8411 echo $ECHO_N "(cached) $ECHO_C" >&6
8413 eval "$as_ac_Header=\$ac_header_preproc"
8415 ac_res=`eval echo '${'$as_ac_Header'}'`
8416 { echo "$as_me:$LINENO: result: $ac_res" >&5
8417 echo "${ECHO_T}$ac_res" >&6; }
8420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8421 cat >>confdefs.h <<_ACEOF
8422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8429 # Check whether --enable-ltdl-install was given.
8430 if test "${enable_ltdl_install+set}" = set; then
8431 enableval=$enable_ltdl_install;
8437 if test x"${enable_ltdl_install-no}" != xno; then
8439 INSTALL_LTDL_FALSE='#'
8441 INSTALL_LTDL_TRUE='#'
8447 if test x"${enable_ltdl_convenience-no}" != xno; then
8448 CONVENIENCE_LTDL_TRUE=
8449 CONVENIENCE_LTDL_FALSE='#'
8451 CONVENIENCE_LTDL_TRUE='#'
8452 CONVENIENCE_LTDL_FALSE=
8456 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8457 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8459 libname_spec='lib$name'
8467 shlibpath_overrides_runpath=unknown
8469 dynamic_linker="$host_os ld.so"
8470 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8471 if test "$GCC" = yes; then
8472 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8473 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8474 # if the path contains ";" then we assume it to be the separator
8475 # otherwise default to the standard path separator (i.e. ":") - it is
8476 # assumed that no part of a normal pathname contains ";" but that should
8477 # okay in the real world where ";" in dirpaths is itself problematic.
8478 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8480 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8483 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8485 need_lib_prefix=unknown
8486 hardcode_into_libs=no
8488 # when you set need_version to no, make sure it does not cause -set_version
8489 # flags to be left without arguments
8490 need_version=unknown
8495 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8496 shlibpath_var=LIBPATH
8498 # AIX 3 has no versioning support, so we append a major version to the name.
8499 soname_spec='${libname}${release}${shared_ext}$major'
8506 hardcode_into_libs=yes
8507 if test "$host_cpu" = ia64; then
8508 # AIX 5 supports IA64
8509 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8510 shlibpath_var=LD_LIBRARY_PATH
8512 # With GCC up to 2.95.x, collect2 would create an import file
8513 # for dependence libraries. The import file would start with
8514 # the line `#! .'. This would cause the generated library to
8515 # depend on `.', always an invalid library. This was fixed in
8516 # development snapshots of GCC prior to 3.0.
8518 aix4 | aix4.[01] | aix4.[01].*)
8519 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8521 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8528 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8529 # soname into executable. Probably we can add versioning support to
8530 # collect2, so additional links can be useful in future.
8531 if test "$aix_use_runtimelinking" = yes; then
8532 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8533 # instead of lib<name>.a to let people know that these are not
8534 # typical AIX shared libraries.
8535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8537 # We preserve .a as extension for shared libraries through AIX4.2
8538 # and later when we are not doing run time linking.
8539 library_names_spec='${libname}${release}.a $libname.a'
8540 soname_spec='${libname}${release}${shared_ext}$major'
8542 shlibpath_var=LIBPATH
8547 library_names_spec='$libname.ixlibrary $libname.a'
8548 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8549 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'
8553 library_names_spec='${libname}${shared_ext}'
8554 dynamic_linker="$host_os ld.so"
8555 shlibpath_var=LIBRARY_PATH
8561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8562 soname_spec='${libname}${release}${shared_ext}$major'
8563 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8564 shlibpath_var=LD_LIBRARY_PATH
8565 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8566 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8567 # the default ld.so.conf also contains /usr/contrib/lib and
8568 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8569 # libtool to hard-code these into programs
8572 cygwin* | mingw* | pw32*)
8573 version_type=windows
8578 case $GCC,$host_os in
8579 yes,cygwin* | yes,mingw* | yes,pw32*)
8580 library_names_spec='$libname.dll.a'
8581 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8582 postinstall_cmds='base_file=`basename \${file}`~
8583 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8584 dldir=$destdir/`dirname \$dlpath`~
8585 test -d \$dldir || mkdir -p \$dldir~
8586 $install_prog $dir/$dlname \$dldir/$dlname~
8587 chmod a+x \$dldir/$dlname'
8588 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8589 dlpath=$dir/\$dldll~
8591 shlibpath_overrides_runpath=yes
8595 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8596 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8597 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8600 # MinGW DLLs use traditional 'lib' prefix
8601 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8602 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8603 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8604 # It is most probably a Windows format PATH printed by
8605 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8606 # path with ; separators, and with drive letters. We can handle the
8607 # drive letters (cygwin fileutils understands them), so leave them,
8608 # especially as we might pass files found there to a mingw objdump,
8609 # which wouldn't understand a cygwinified path. Ahh.
8610 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8612 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8616 # pw32 DLLs use 'pw' prefix rather than 'lib'
8617 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8623 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8626 dynamic_linker='Win32 ld.exe'
8627 # FIXME: first we should search . and the directory the executable is in
8631 darwin* | rhapsody*)
8632 dynamic_linker="$host_os dyld"
8636 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8637 soname_spec='${libname}${release}${major}$shared_ext'
8638 shlibpath_overrides_runpath=yes
8639 shlibpath_var=DYLD_LIBRARY_PATH
8640 shrext_cmds='.dylib'
8641 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8642 if test "$GCC" = yes; then
8643 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"`
8645 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8647 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8655 soname_spec='${libname}${release}${shared_ext}$major'
8656 shlibpath_var=LD_LIBRARY_PATH
8667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8668 soname_spec='${libname}${release}${shared_ext}$major'
8669 shlibpath_var=LD_LIBRARY_PATH
8670 shlibpath_overrides_runpath=no
8671 hardcode_into_libs=yes
8672 dynamic_linker='GNU ld.so'
8675 freebsd* | dragonfly*)
8676 # DragonFly does not have aout. When/if they implement a new
8677 # versioning mechanism, adjust this.
8678 if test -x /usr/bin/objformat; then
8679 objformat=`/usr/bin/objformat`
8682 freebsd[123].*) objformat=aout ;;
8686 version_type=freebsd-$objformat
8687 case $version_type in
8689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8694 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8698 shlibpath_var=LD_LIBRARY_PATH
8701 shlibpath_overrides_runpath=yes
8703 freebsd3.[01]* | freebsdelf3.[01]*)
8704 shlibpath_overrides_runpath=yes
8705 hardcode_into_libs=yes
8707 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8708 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8709 shlibpath_overrides_runpath=no
8710 hardcode_into_libs=yes
8712 freebsd*) # from 4.6 on
8713 shlibpath_overrides_runpath=yes
8714 hardcode_into_libs=yes
8723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8724 soname_spec='${libname}${release}${shared_ext}$major'
8725 shlibpath_var=LD_LIBRARY_PATH
8726 hardcode_into_libs=yes
8729 hpux9* | hpux10* | hpux11*)
8730 # Give a soname corresponding to the major version so that dld.sl refuses to
8731 # link against other versions.
8738 hardcode_into_libs=yes
8739 dynamic_linker="$host_os dld.so"
8740 shlibpath_var=LD_LIBRARY_PATH
8741 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8743 soname_spec='${libname}${release}${shared_ext}$major'
8744 if test "X$HPUX_IA64_MODE" = X32; then
8745 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8747 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8749 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8753 hardcode_into_libs=yes
8754 dynamic_linker="$host_os dld.sl"
8755 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8756 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8758 soname_spec='${libname}${release}${shared_ext}$major'
8759 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8760 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8764 dynamic_linker="$host_os dld.sl"
8765 shlibpath_var=SHLIB_PATH
8766 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8768 soname_spec='${libname}${release}${shared_ext}$major'
8771 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8772 postinstall_cmds='chmod 555 $lib'
8779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8780 soname_spec='${libname}${release}${shared_ext}$major'
8781 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8782 shlibpath_var=LD_LIBRARY_PATH
8783 shlibpath_overrides_runpath=no
8784 hardcode_into_libs=yes
8787 irix5* | irix6* | nonstopux*)
8789 nonstopux*) version_type=nonstopux ;;
8791 if test "$lt_cv_prog_gnu_ld" = yes; then
8799 soname_spec='${libname}${release}${shared_ext}$major'
8800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8802 irix5* | nonstopux*)
8806 case $LD in # libtool.m4 will add one of these switches to LD
8807 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8808 libsuff= shlibsuff= libmagic=32-bit;;
8809 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8810 libsuff=32 shlibsuff=N32 libmagic=N32;;
8811 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8812 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8813 *) libsuff= shlibsuff= libmagic=never-match;;
8817 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8818 shlibpath_overrides_runpath=no
8819 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8820 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8821 hardcode_into_libs=yes
8824 # No shared lib support for Linux oldld, aout, or coff.
8825 linux*oldld* | linux*aout* | linux*coff*)
8829 # This must be Linux ELF.
8834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8835 soname_spec='${libname}${release}${shared_ext}$major'
8836 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8837 shlibpath_var=LD_LIBRARY_PATH
8838 shlibpath_overrides_runpath=no
8839 # This implies no fast_install, which is unacceptable.
8840 # Some rework will be needed to allow for fast_install
8841 # before this can be enabled.
8842 hardcode_into_libs=yes
8844 # Append ld.so.conf contents to the search path
8845 if test -f /etc/ld.so.conf; then
8846 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' ' '`
8847 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8850 # We used to test for /lib/ld.so.1 and disable shared libraries on
8851 # powerpc, because MkLinux only supported shared libraries with the
8852 # GNU dynamic linker. Since this was broken with cross compilers,
8853 # most powerpc-linux boxes support dynamic linking these days and
8854 # people can always --disable-shared, the test was removed, and we
8855 # assume the GNU/Linux dynamic linker is in use.
8856 dynamic_linker='GNU/Linux ld.so'
8863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8864 soname_spec='${libname}${release}${shared_ext}$major'
8865 shlibpath_var=LD_LIBRARY_PATH
8866 shlibpath_overrides_runpath=no
8867 hardcode_into_libs=yes
8868 dynamic_linker='GNU ld.so'
8875 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8877 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8878 dynamic_linker='NetBSD (a.out) ld.so'
8880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8881 soname_spec='${libname}${release}${shared_ext}$major'
8882 dynamic_linker='NetBSD ld.elf_so'
8884 shlibpath_var=LD_LIBRARY_PATH
8885 shlibpath_overrides_runpath=yes
8886 hardcode_into_libs=yes
8891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8892 shlibpath_var=LD_LIBRARY_PATH
8893 shlibpath_overrides_runpath=yes
8900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8901 soname_spec='${libname}${release}${shared_ext}$major'
8902 shlibpath_var=LD_LIBRARY_PATH
8903 shlibpath_overrides_runpath=yes
8908 sys_lib_dlsearch_path_spec="/usr/lib"
8910 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8912 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8913 *) need_version=no ;;
8915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8916 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8917 shlibpath_var=LD_LIBRARY_PATH
8918 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8920 openbsd2.[89] | openbsd2.[89].*)
8921 shlibpath_overrides_runpath=no
8924 shlibpath_overrides_runpath=yes
8928 shlibpath_overrides_runpath=yes
8933 libname_spec='$name'
8936 library_names_spec='$libname${shared_ext} $libname.a'
8937 dynamic_linker='OS/2 ld.exe'
8938 shlibpath_var=LIBPATH
8941 osf3* | osf4* | osf5*)
8945 soname_spec='${libname}${release}${shared_ext}$major'
8946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8947 shlibpath_var=LD_LIBRARY_PATH
8948 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8949 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8957 soname_spec='${libname}${release}${shared_ext}$major'
8958 shlibpath_var=LD_LIBRARY_PATH
8959 shlibpath_overrides_runpath=yes
8960 hardcode_into_libs=yes
8961 # ldd complains unless libraries are executable
8962 postinstall_cmds='chmod +x $lib'
8967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8968 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8969 shlibpath_var=LD_LIBRARY_PATH
8970 shlibpath_overrides_runpath=yes
8971 if test "$with_gnu_ld" = yes; then
8979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8980 soname_spec='${libname}${release}${shared_ext}$major'
8981 shlibpath_var=LD_LIBRARY_PATH
8982 case $host_vendor in
8984 shlibpath_overrides_runpath=no
8986 export_dynamic_flag_spec='${wl}-Blargedynsym'
8987 runpath_var=LD_RUN_PATH
8995 shlibpath_overrides_runpath=no
8996 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9002 if test -d /usr/nec ;then
9004 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9005 soname_spec='$libname${shared_ext}.$major'
9006 shlibpath_var=LD_LIBRARY_PATH
9010 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9011 version_type=freebsd-elf
9014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9015 soname_spec='${libname}${release}${shared_ext}$major'
9016 shlibpath_var=LD_LIBRARY_PATH
9017 hardcode_into_libs=yes
9018 if test "$with_gnu_ld" = yes; then
9019 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9020 shlibpath_overrides_runpath=no
9022 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9023 shlibpath_overrides_runpath=yes
9026 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9030 sys_lib_dlsearch_path_spec='/usr/lib'
9035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9036 soname_spec='${libname}${release}${shared_ext}$major'
9037 shlibpath_var=LD_LIBRARY_PATH
9044 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9045 echo "${ECHO_T}$dynamic_linker" >&6; }
9046 test "$dynamic_linker" = no && can_build_shared=no
9048 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9049 if test "$GCC" = yes; then
9050 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9054 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9055 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9056 if test "${libltdl_cv_shlibext+set}" = set; then
9057 echo $ECHO_N "(cached) $ECHO_C" >&6
9061 eval libltdl_cv_shlibext=$shrext_cmds
9064 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9065 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9066 if test -n "$libltdl_cv_shlibext"; then
9068 cat >>confdefs.h <<_ACEOF
9069 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9075 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9076 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9077 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9078 echo $ECHO_N "(cached) $ECHO_C" >&6
9080 libltdl_cv_shlibpath_var="$shlibpath_var"
9082 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9083 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9084 if test -n "$libltdl_cv_shlibpath_var"; then
9086 cat >>confdefs.h <<_ACEOF
9087 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9093 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9094 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9095 if test "${libltdl_cv_sys_search_path+set}" = set; then
9096 echo $ECHO_N "(cached) $ECHO_C" >&6
9098 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9100 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9101 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9102 if test -n "$libltdl_cv_sys_search_path"; then
9104 for dir in $libltdl_cv_sys_search_path; do
9105 if test -z "$sys_search_path"; then
9106 sys_search_path="$dir"
9108 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9112 cat >>confdefs.h <<_ACEOF
9113 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9118 { echo "$as_me:$LINENO: checking for objdir" >&5
9119 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9120 if test "${libltdl_cv_objdir+set}" = set; then
9121 echo $ECHO_N "(cached) $ECHO_C" >&6
9123 libltdl_cv_objdir="$objdir"
9124 if test -n "$objdir"; then
9127 rm -f .libs 2>/dev/null
9128 mkdir .libs 2>/dev/null
9129 if test -d .libs; then
9130 libltdl_cv_objdir=.libs
9132 # MS-DOS does not allow filenames that begin with a dot.
9133 libltdl_cv_objdir=_libs
9135 rmdir .libs 2>/dev/null
9139 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9140 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9142 cat >>confdefs.h <<_ACEOF
9143 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9151 # Check for command to grab the raw symbol name followed by C symbol from nm.
9152 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9153 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9154 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9155 echo $ECHO_N "(cached) $ECHO_C" >&6
9158 # These are sane defaults that work on at least a few old systems.
9159 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9161 # Character class describing NM global symbol codes.
9162 symcode='[BCDEGRST]'
9164 # Regexp to match symbols that can be accessed directly from C.
9165 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9167 # Transform an extracted symbol line into a proper C declaration
9168 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9170 # Transform an extracted symbol line into symbol name and symbol address
9171 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'"
9173 # Define system-specific variables.
9178 cygwin* | mingw* | pw32*)
9179 symcode='[ABCDGISTW]'
9181 hpux*) # Its linker distinguishes data from code symbols
9182 if test "$host_cpu" = ia64; then
9183 symcode='[ABCDEGRST]'
9185 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9186 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'"
9189 if test "$host_cpu" = ia64; then
9190 symcode='[ABCDGIRSTW]'
9191 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9192 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'"
9196 symcode='[BCDEGRST]'
9199 symcode='[BCDEGQRST]'
9210 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9218 # Handle CRLF in mingw tool chain
9222 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9226 # If we're using GNU nm, then use its standard symbol codes.
9227 case `$NM -V 2>&1` in
9228 *GNU* | *'with BFD'*)
9229 symcode='[ABCDGIRSTW]' ;;
9232 # Try without a prefix undercore, then with it.
9233 for ac_symprfx in "" "_"; do
9235 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9236 symxfrm="\\1 $ac_symprfx\\2 \\2"
9238 # Write the raw and C identifiers.
9239 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9241 # Check to see that the pipe works correctly.
9245 cat > conftest.$ac_ext <<EOF
9250 void nm_test_func(){}
9254 int main(){nm_test_var='a';nm_test_func();return(0);}
9257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9258 (eval $ac_compile) 2>&5
9260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 (exit $ac_status); }; then
9262 # Now try to grab the symbols.
9264 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9265 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268 (exit $ac_status); } && test -s "$nlist"; then
9269 # Try sorting and uniquifying the output.
9270 if sort "$nlist" | uniq > "$nlist"T; then
9271 mv -f "$nlist"T "$nlist"
9276 # Make sure that we snagged all the symbols we need.
9277 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9278 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9279 cat <<EOF > conftest.$ac_ext
9285 # Now generate the symbol file.
9286 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9288 cat <<EOF >> conftest.$ac_ext
9289 #if defined (__STDC__) && __STDC__
9290 # define lt_ptr_t void *
9292 # define lt_ptr_t char *
9296 /* The mapping between symbol names and symbols. */
9301 lt_preloaded_symbols[] =
9304 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9305 cat <<\EOF >> conftest.$ac_ext
9313 # Now try linking the two files.
9314 mv conftest.$ac_objext conftstm.$ac_objext
9315 lt_save_LIBS="$LIBS"
9316 lt_save_CFLAGS="$CFLAGS"
9317 LIBS="conftstm.$ac_objext"
9318 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9320 (eval $ac_link) 2>&5
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9326 LIBS="$lt_save_LIBS"
9327 CFLAGS="$lt_save_CFLAGS"
9329 echo "cannot find nm_test_func in $nlist" >&5
9332 echo "cannot find nm_test_var in $nlist" >&5
9335 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9338 echo "$progname: failed program was:" >&5
9339 cat conftest.$ac_ext >&5
9341 rm -f conftest* conftst*
9343 # Do not use the global_symbol_pipe unless it works.
9344 if test "$pipe_works" = yes; then
9347 lt_cv_sys_global_symbol_pipe=
9353 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9354 lt_cv_sys_global_symbol_to_cdecl=
9356 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9357 { echo "$as_me:$LINENO: result: failed" >&5
9358 echo "${ECHO_T}failed" >&6; }
9360 { echo "$as_me:$LINENO: result: ok" >&5
9361 echo "${ECHO_T}ok" >&6; }
9365 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9366 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9367 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9368 echo $ECHO_N "(cached) $ECHO_C" >&6
9370 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9371 libltdl_cv_preloaded_symbols=yes
9373 libltdl_cv_preloaded_symbols=no
9377 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9378 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9379 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9381 cat >>confdefs.h <<\_ACEOF
9382 #define HAVE_PRELOADED_SYMBOLS 1
9390 ac_cpp='$CPP $CPPFLAGS'
9391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9396 { echo "$as_me:$LINENO: checking for shl_load" >&5
9397 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9398 if test "${ac_cv_func_shl_load+set}" = set; then
9399 echo $ECHO_N "(cached) $ECHO_C" >&6
9401 cat >conftest.$ac_ext <<_ACEOF
9404 cat confdefs.h >>conftest.$ac_ext
9405 cat >>conftest.$ac_ext <<_ACEOF
9406 /* end confdefs.h. */
9407 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9409 #define shl_load innocuous_shl_load
9411 /* System header to define __stub macros and hopefully few prototypes,
9412 which can conflict with char shl_load (); below.
9413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9414 <limits.h> exists even on freestanding compilers. */
9417 # include <limits.h>
9419 # include <assert.h>
9424 /* Override any GCC internal prototype to avoid an error.
9425 Use char because int might match the return type of a GCC
9426 builtin and then its argument prototype would still apply. */
9431 /* The GNU C library defines this for functions which it implements
9432 to always fail with ENOSYS. Some functions are actually named
9433 something starting with __ and the normal name is an alias. */
9434 #if defined __stub_shl_load || defined __stub___shl_load
9446 rm -f conftest.$ac_objext conftest$ac_exeext
9447 if { (ac_try="$ac_link"
9449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9450 *) ac_try_echo=$ac_try;;
9452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9453 (eval "$ac_link") 2>conftest.er1
9455 grep -v '^ *+' conftest.er1 >conftest.err
9457 cat conftest.err >&5
9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 (exit $ac_status); } &&
9460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9461 { (case "(($ac_try" in
9462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9463 *) ac_try_echo=$ac_try;;
9465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9466 (eval "$ac_try") 2>&5
9468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469 (exit $ac_status); }; } &&
9470 { ac_try='test -s conftest$ac_exeext'
9471 { (case "(($ac_try" in
9472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9473 *) ac_try_echo=$ac_try;;
9475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9476 (eval "$ac_try") 2>&5
9478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479 (exit $ac_status); }; }; then
9480 ac_cv_func_shl_load=yes
9482 echo "$as_me: failed program was:" >&5
9483 sed 's/^/| /' conftest.$ac_ext >&5
9485 ac_cv_func_shl_load=no
9488 rm -f core conftest.err conftest.$ac_objext \
9489 conftest$ac_exeext conftest.$ac_ext
9491 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9492 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9493 if test $ac_cv_func_shl_load = yes; then
9495 cat >>confdefs.h <<\_ACEOF
9496 #define HAVE_SHL_LOAD 1
9500 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9501 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9502 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9503 echo $ECHO_N "(cached) $ECHO_C" >&6
9505 ac_check_lib_save_LIBS=$LIBS
9507 cat >conftest.$ac_ext <<_ACEOF
9510 cat confdefs.h >>conftest.$ac_ext
9511 cat >>conftest.$ac_ext <<_ACEOF
9512 /* end confdefs.h. */
9514 /* Override any GCC internal prototype to avoid an error.
9515 Use char because int might match the return type of a GCC
9516 builtin and then its argument prototype would still apply. */
9529 rm -f conftest.$ac_objext conftest$ac_exeext
9530 if { (ac_try="$ac_link"
9532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9533 *) ac_try_echo=$ac_try;;
9535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9536 (eval "$ac_link") 2>conftest.er1
9538 grep -v '^ *+' conftest.er1 >conftest.err
9540 cat conftest.err >&5
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); } &&
9543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9544 { (case "(($ac_try" in
9545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9546 *) ac_try_echo=$ac_try;;
9548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9549 (eval "$ac_try") 2>&5
9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); }; } &&
9553 { ac_try='test -s conftest$ac_exeext'
9554 { (case "(($ac_try" in
9555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9556 *) ac_try_echo=$ac_try;;
9558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9559 (eval "$ac_try") 2>&5
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); }; }; then
9563 ac_cv_lib_dld_shl_load=yes
9565 echo "$as_me: failed program was:" >&5
9566 sed 's/^/| /' conftest.$ac_ext >&5
9568 ac_cv_lib_dld_shl_load=no
9571 rm -f core conftest.err conftest.$ac_objext \
9572 conftest$ac_exeext conftest.$ac_ext
9573 LIBS=$ac_check_lib_save_LIBS
9575 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9576 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9577 if test $ac_cv_lib_dld_shl_load = yes; then
9579 cat >>confdefs.h <<\_ACEOF
9580 #define HAVE_SHL_LOAD 1
9583 LIBADD_DL="$LIBADD_DL -ldld"
9585 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9586 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9587 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9588 echo $ECHO_N "(cached) $ECHO_C" >&6
9590 ac_check_lib_save_LIBS=$LIBS
9592 cat >conftest.$ac_ext <<_ACEOF
9595 cat confdefs.h >>conftest.$ac_ext
9596 cat >>conftest.$ac_ext <<_ACEOF
9597 /* end confdefs.h. */
9599 /* Override any GCC internal prototype to avoid an error.
9600 Use char because int might match the return type of a GCC
9601 builtin and then its argument prototype would still apply. */
9614 rm -f conftest.$ac_objext conftest$ac_exeext
9615 if { (ac_try="$ac_link"
9617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9618 *) ac_try_echo=$ac_try;;
9620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9621 (eval "$ac_link") 2>conftest.er1
9623 grep -v '^ *+' conftest.er1 >conftest.err
9625 cat conftest.err >&5
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 (exit $ac_status); } &&
9628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9629 { (case "(($ac_try" in
9630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9631 *) ac_try_echo=$ac_try;;
9633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9634 (eval "$ac_try") 2>&5
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); }; } &&
9638 { ac_try='test -s conftest$ac_exeext'
9639 { (case "(($ac_try" in
9640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9641 *) ac_try_echo=$ac_try;;
9643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9644 (eval "$ac_try") 2>&5
9646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); }; }; then
9648 ac_cv_lib_dl_dlopen=yes
9650 echo "$as_me: failed program was:" >&5
9651 sed 's/^/| /' conftest.$ac_ext >&5
9653 ac_cv_lib_dl_dlopen=no
9656 rm -f core conftest.err conftest.$ac_objext \
9657 conftest$ac_exeext conftest.$ac_ext
9658 LIBS=$ac_check_lib_save_LIBS
9660 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9661 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9662 if test $ac_cv_lib_dl_dlopen = yes; then
9664 cat >>confdefs.h <<\_ACEOF
9665 #define HAVE_LIBDL 1
9668 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9670 cat >conftest.$ac_ext <<_ACEOF
9673 cat confdefs.h >>conftest.$ac_ext
9674 cat >>conftest.$ac_ext <<_ACEOF
9675 /* end confdefs.h. */
9688 rm -f conftest.$ac_objext conftest$ac_exeext
9689 if { (ac_try="$ac_link"
9691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9692 *) ac_try_echo=$ac_try;;
9694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9695 (eval "$ac_link") 2>conftest.er1
9697 grep -v '^ *+' conftest.er1 >conftest.err
9699 cat conftest.err >&5
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); } &&
9702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9703 { (case "(($ac_try" in
9704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9705 *) ac_try_echo=$ac_try;;
9707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9708 (eval "$ac_try") 2>&5
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); }; } &&
9712 { ac_try='test -s conftest$ac_exeext'
9713 { (case "(($ac_try" in
9714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9715 *) ac_try_echo=$ac_try;;
9717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9718 (eval "$ac_try") 2>&5
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); }; }; then
9723 cat >>confdefs.h <<\_ACEOF
9724 #define HAVE_LIBDL 1
9726 libltdl_cv_func_dlopen="yes"
9728 echo "$as_me: failed program was:" >&5
9729 sed 's/^/| /' conftest.$ac_ext >&5
9731 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9732 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9733 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9734 echo $ECHO_N "(cached) $ECHO_C" >&6
9736 ac_check_lib_save_LIBS=$LIBS
9738 cat >conftest.$ac_ext <<_ACEOF
9741 cat confdefs.h >>conftest.$ac_ext
9742 cat >>conftest.$ac_ext <<_ACEOF
9743 /* end confdefs.h. */
9745 /* Override any GCC internal prototype to avoid an error.
9746 Use char because int might match the return type of a GCC
9747 builtin and then its argument prototype would still apply. */
9760 rm -f conftest.$ac_objext conftest$ac_exeext
9761 if { (ac_try="$ac_link"
9763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9764 *) ac_try_echo=$ac_try;;
9766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9767 (eval "$ac_link") 2>conftest.er1
9769 grep -v '^ *+' conftest.er1 >conftest.err
9771 cat conftest.err >&5
9772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773 (exit $ac_status); } &&
9774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9775 { (case "(($ac_try" in
9776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9777 *) ac_try_echo=$ac_try;;
9779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9780 (eval "$ac_try") 2>&5
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); }; } &&
9784 { ac_try='test -s conftest$ac_exeext'
9785 { (case "(($ac_try" in
9786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9787 *) ac_try_echo=$ac_try;;
9789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9790 (eval "$ac_try") 2>&5
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); }; }; then
9794 ac_cv_lib_svld_dlopen=yes
9796 echo "$as_me: failed program was:" >&5
9797 sed 's/^/| /' conftest.$ac_ext >&5
9799 ac_cv_lib_svld_dlopen=no
9802 rm -f core conftest.err conftest.$ac_objext \
9803 conftest$ac_exeext conftest.$ac_ext
9804 LIBS=$ac_check_lib_save_LIBS
9806 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9807 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9808 if test $ac_cv_lib_svld_dlopen = yes; then
9810 cat >>confdefs.h <<\_ACEOF
9811 #define HAVE_LIBDL 1
9814 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9816 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9817 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9818 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9819 echo $ECHO_N "(cached) $ECHO_C" >&6
9821 ac_check_lib_save_LIBS=$LIBS
9823 cat >conftest.$ac_ext <<_ACEOF
9826 cat confdefs.h >>conftest.$ac_ext
9827 cat >>conftest.$ac_ext <<_ACEOF
9828 /* end confdefs.h. */
9830 /* Override any GCC internal prototype to avoid an error.
9831 Use char because int might match the return type of a GCC
9832 builtin and then its argument prototype would still apply. */
9845 rm -f conftest.$ac_objext conftest$ac_exeext
9846 if { (ac_try="$ac_link"
9848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9849 *) ac_try_echo=$ac_try;;
9851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9852 (eval "$ac_link") 2>conftest.er1
9854 grep -v '^ *+' conftest.er1 >conftest.err
9856 cat conftest.err >&5
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); } &&
9859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9860 { (case "(($ac_try" in
9861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9862 *) ac_try_echo=$ac_try;;
9864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9865 (eval "$ac_try") 2>&5
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); }; } &&
9869 { ac_try='test -s conftest$ac_exeext'
9870 { (case "(($ac_try" in
9871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9872 *) ac_try_echo=$ac_try;;
9874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9875 (eval "$ac_try") 2>&5
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); }; }; then
9879 ac_cv_lib_dld_dld_link=yes
9881 echo "$as_me: failed program was:" >&5
9882 sed 's/^/| /' conftest.$ac_ext >&5
9884 ac_cv_lib_dld_dld_link=no
9887 rm -f core conftest.err conftest.$ac_objext \
9888 conftest$ac_exeext conftest.$ac_ext
9889 LIBS=$ac_check_lib_save_LIBS
9891 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9892 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9893 if test $ac_cv_lib_dld_dld_link = yes; then
9895 cat >>confdefs.h <<\_ACEOF
9899 LIBADD_DL="$LIBADD_DL -ldld"
9901 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9902 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9903 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9904 echo $ECHO_N "(cached) $ECHO_C" >&6
9906 cat >conftest.$ac_ext <<_ACEOF
9909 cat confdefs.h >>conftest.$ac_ext
9910 cat >>conftest.$ac_ext <<_ACEOF
9911 /* end confdefs.h. */
9912 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9914 #define _dyld_func_lookup innocuous__dyld_func_lookup
9916 /* System header to define __stub macros and hopefully few prototypes,
9917 which can conflict with char _dyld_func_lookup (); below.
9918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9919 <limits.h> exists even on freestanding compilers. */
9922 # include <limits.h>
9924 # include <assert.h>
9927 #undef _dyld_func_lookup
9929 /* Override any GCC internal prototype to avoid an error.
9930 Use char because int might match the return type of a GCC
9931 builtin and then its argument prototype would still apply. */
9935 char _dyld_func_lookup ();
9936 /* The GNU C library defines this for functions which it implements
9937 to always fail with ENOSYS. Some functions are actually named
9938 something starting with __ and the normal name is an alias. */
9939 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
9946 return _dyld_func_lookup ();
9951 rm -f conftest.$ac_objext conftest$ac_exeext
9952 if { (ac_try="$ac_link"
9954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9955 *) ac_try_echo=$ac_try;;
9957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9958 (eval "$ac_link") 2>conftest.er1
9960 grep -v '^ *+' conftest.er1 >conftest.err
9962 cat conftest.err >&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); } &&
9965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9966 { (case "(($ac_try" in
9967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968 *) ac_try_echo=$ac_try;;
9970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9971 (eval "$ac_try") 2>&5
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); }; } &&
9975 { ac_try='test -s conftest$ac_exeext'
9976 { (case "(($ac_try" in
9977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9978 *) ac_try_echo=$ac_try;;
9980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9981 (eval "$ac_try") 2>&5
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); }; }; then
9985 ac_cv_func__dyld_func_lookup=yes
9987 echo "$as_me: failed program was:" >&5
9988 sed 's/^/| /' conftest.$ac_ext >&5
9990 ac_cv_func__dyld_func_lookup=no
9993 rm -f core conftest.err conftest.$ac_objext \
9994 conftest$ac_exeext conftest.$ac_ext
9996 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
9997 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
9998 if test $ac_cv_func__dyld_func_lookup = yes; then
10000 cat >>confdefs.h <<\_ACEOF
10001 #define HAVE_DYLD 1
10015 rm -f core conftest.err conftest.$ac_objext \
10016 conftest$ac_exeext conftest.$ac_ext
10027 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10029 lt_save_LIBS="$LIBS"
10030 LIBS="$LIBS $LIBADD_DL"
10032 for ac_func in dlerror
10034 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10035 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10037 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10038 echo $ECHO_N "(cached) $ECHO_C" >&6
10040 cat >conftest.$ac_ext <<_ACEOF
10043 cat confdefs.h >>conftest.$ac_ext
10044 cat >>conftest.$ac_ext <<_ACEOF
10045 /* end confdefs.h. */
10046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10048 #define $ac_func innocuous_$ac_func
10050 /* System header to define __stub macros and hopefully few prototypes,
10051 which can conflict with char $ac_func (); below.
10052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10053 <limits.h> exists even on freestanding compilers. */
10056 # include <limits.h>
10058 # include <assert.h>
10063 /* Override any GCC internal prototype to avoid an error.
10064 Use char because int might match the return type of a GCC
10065 builtin and then its argument prototype would still apply. */
10070 /* The GNU C library defines this for functions which it implements
10071 to always fail with ENOSYS. Some functions are actually named
10072 something starting with __ and the normal name is an alias. */
10073 #if defined __stub_$ac_func || defined __stub___$ac_func
10080 return $ac_func ();
10085 rm -f conftest.$ac_objext conftest$ac_exeext
10086 if { (ac_try="$ac_link"
10087 case "(($ac_try" in
10088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10089 *) ac_try_echo=$ac_try;;
10091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10092 (eval "$ac_link") 2>conftest.er1
10094 grep -v '^ *+' conftest.er1 >conftest.err
10096 cat conftest.err >&5
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); } &&
10099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10100 { (case "(($ac_try" in
10101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10102 *) ac_try_echo=$ac_try;;
10104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10105 (eval "$ac_try") 2>&5
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); }; } &&
10109 { ac_try='test -s conftest$ac_exeext'
10110 { (case "(($ac_try" in
10111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10112 *) ac_try_echo=$ac_try;;
10114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10115 (eval "$ac_try") 2>&5
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); }; }; then
10119 eval "$as_ac_var=yes"
10121 echo "$as_me: failed program was:" >&5
10122 sed 's/^/| /' conftest.$ac_ext >&5
10124 eval "$as_ac_var=no"
10127 rm -f core conftest.err conftest.$ac_objext \
10128 conftest$ac_exeext conftest.$ac_ext
10130 ac_res=`eval echo '${'$as_ac_var'}'`
10131 { echo "$as_me:$LINENO: result: $ac_res" >&5
10132 echo "${ECHO_T}$ac_res" >&6; }
10133 if test `eval echo '${'$as_ac_var'}'` = yes; then
10134 cat >>confdefs.h <<_ACEOF
10135 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10141 LIBS="$lt_save_LIBS"
10144 ac_cpp='$CPP $CPPFLAGS'
10145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10151 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10152 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10153 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10154 echo $ECHO_N "(cached) $ECHO_C" >&6
10156 ac_cv_sys_symbol_underscore=no
10157 cat > conftest.$ac_ext <<EOF
10158 void nm_test_func(){}
10159 int main(){nm_test_func;return 0;}
10161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10162 (eval $ac_compile) 2>&5
10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); }; then
10166 # Now try to grab the symbols.
10167 ac_nlist=conftest.nm
10168 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10169 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); } && test -s "$ac_nlist"; then
10173 # See whether the symbols have a leading underscore.
10174 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10175 ac_cv_sys_symbol_underscore=yes
10177 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10180 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10184 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10187 echo "configure: failed program was:" >&5
10193 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10194 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10197 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10198 if test x"$libltdl_cv_func_dlopen" = xyes ||
10199 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10200 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10201 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10202 if test "${libltdl_cv_need_uscore+set}" = set; then
10203 echo $ECHO_N "(cached) $ECHO_C" >&6
10205 libltdl_cv_need_uscore=unknown
10207 LIBS="$LIBS $LIBADD_DL"
10208 if test "$cross_compiling" = yes; then :
10209 libltdl_cv_need_uscore=cross
10211 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10212 lt_status=$lt_dlunknown
10213 cat > conftest.$ac_ext <<EOF
10214 #line 10214 "configure"
10215 #include "confdefs.h"
10224 # define LT_DLGLOBAL RTLD_GLOBAL
10227 # define LT_DLGLOBAL DL_GLOBAL
10229 # define LT_DLGLOBAL 0
10233 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10234 find out it does not work in some platform. */
10235 #ifndef LT_DLLAZY_OR_NOW
10237 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10240 # define LT_DLLAZY_OR_NOW DL_LAZY
10243 # define LT_DLLAZY_OR_NOW RTLD_NOW
10246 # define LT_DLLAZY_OR_NOW DL_NOW
10248 # define LT_DLLAZY_OR_NOW 0
10256 extern "C" void exit (int);
10259 void fnord() { int i=42;}
10262 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10263 int status = $lt_dlunknown;
10267 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10268 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10269 /* dlclose (self); */
10277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10278 (eval $ac_link) 2>&5
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10282 (./conftest; exit; ) >&5 2>/dev/null
10284 case x$lt_status in
10285 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10286 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10287 x$lt_dlunknown|x*) ;;
10290 # compilation failed
10299 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10300 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10304 if test x"$libltdl_cv_need_uscore" = xyes; then
10306 cat >>confdefs.h <<\_ACEOF
10307 #define NEED_USCORE 1
10313 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10314 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10315 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10316 echo $ECHO_N "(cached) $ECHO_C" >&6
10318 # PORTME does your system automatically load deplibs for dlopen?
10319 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10320 # For now, we just catch OSes we know something about -- in the
10321 # future, we'll try test this programmatically.
10322 libltdl_cv_sys_dlopen_deplibs=unknown
10324 aix3*|aix4.1.*|aix4.2.*)
10325 # Unknown whether this is true for these versions of AIX, but
10326 # we want this `case' here to explicitly catch those versions.
10327 libltdl_cv_sys_dlopen_deplibs=unknown
10330 libltdl_cv_sys_dlopen_deplibs=yes
10333 # Assuming the user has installed a libdl from somewhere, this is true
10334 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10335 libltdl_cv_sys_dlopen_deplibs=yes
10337 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10338 # GNU and its variants, using gnu ld.so (Glibc)
10339 libltdl_cv_sys_dlopen_deplibs=yes
10342 libltdl_cv_sys_dlopen_deplibs=yes
10345 libltdl_cv_sys_dlopen_deplibs=yes
10347 irix[12345]*|irix6.[01]*)
10348 # Catch all versions of IRIX before 6.2, and indicate that we don't
10349 # know how it worked for any of those versions.
10350 libltdl_cv_sys_dlopen_deplibs=unknown
10353 # The case above catches anything before 6.2, and it's known that
10354 # at 6.2 and later dlopen does load deplibs.
10355 libltdl_cv_sys_dlopen_deplibs=yes
10358 libltdl_cv_sys_dlopen_deplibs=yes
10361 libltdl_cv_sys_dlopen_deplibs=yes
10364 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10365 # it did *not* use an RPATH in a shared library to find objects the
10366 # library depends on, so we explicitly say `no'.
10367 libltdl_cv_sys_dlopen_deplibs=no
10369 osf5.0|osf5.0a|osf5.1)
10370 # dlopen *does* load deplibs and with the right loader patch applied
10371 # it even uses RPATH in a shared library to search for shared objects
10372 # that the library depends on, but there's no easy way to know if that
10373 # patch is installed. Since this is the case, all we can really
10374 # say is unknown -- it depends on the patch being installed. If
10375 # it is, this changes to `yes'. Without it, it would be `no'.
10376 libltdl_cv_sys_dlopen_deplibs=unknown
10379 # the two cases above should catch all versions of osf <= 5.1. Read
10380 # the comments above for what we know about them.
10381 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10382 # is used to find them so we can finally say `yes'.
10383 libltdl_cv_sys_dlopen_deplibs=yes
10386 libltdl_cv_sys_dlopen_deplibs=yes
10388 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10389 libltdl_cv_sys_dlopen_deplibs=yes
10394 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10395 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10396 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10398 cat >>confdefs.h <<\_ACEOF
10399 #define LTDL_DLOPEN_DEPLIBS 1
10405 for ac_header in argz.h
10407 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10408 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10409 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10411 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10412 echo $ECHO_N "(cached) $ECHO_C" >&6
10414 ac_res=`eval echo '${'$as_ac_Header'}'`
10415 { echo "$as_me:$LINENO: result: $ac_res" >&5
10416 echo "${ECHO_T}$ac_res" >&6; }
10418 # Is the header compilable?
10419 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10420 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10421 cat >conftest.$ac_ext <<_ACEOF
10424 cat confdefs.h >>conftest.$ac_ext
10425 cat >>conftest.$ac_ext <<_ACEOF
10426 /* end confdefs.h. */
10427 $ac_includes_default
10428 #include <$ac_header>
10430 rm -f conftest.$ac_objext
10431 if { (ac_try="$ac_compile"
10432 case "(($ac_try" in
10433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10434 *) ac_try_echo=$ac_try;;
10436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10437 (eval "$ac_compile") 2>conftest.er1
10439 grep -v '^ *+' conftest.er1 >conftest.err
10441 cat conftest.err >&5
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); } &&
10444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10445 { (case "(($ac_try" in
10446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10447 *) ac_try_echo=$ac_try;;
10449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10450 (eval "$ac_try") 2>&5
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); }; } &&
10454 { ac_try='test -s conftest.$ac_objext'
10455 { (case "(($ac_try" in
10456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10457 *) ac_try_echo=$ac_try;;
10459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10460 (eval "$ac_try") 2>&5
10462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463 (exit $ac_status); }; }; then
10464 ac_header_compiler=yes
10466 echo "$as_me: failed program was:" >&5
10467 sed 's/^/| /' conftest.$ac_ext >&5
10469 ac_header_compiler=no
10472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10473 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10474 echo "${ECHO_T}$ac_header_compiler" >&6; }
10476 # Is the header present?
10477 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10478 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10479 cat >conftest.$ac_ext <<_ACEOF
10482 cat confdefs.h >>conftest.$ac_ext
10483 cat >>conftest.$ac_ext <<_ACEOF
10484 /* end confdefs.h. */
10485 #include <$ac_header>
10487 if { (ac_try="$ac_cpp conftest.$ac_ext"
10488 case "(($ac_try" in
10489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10490 *) ac_try_echo=$ac_try;;
10492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10493 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10495 grep -v '^ *+' conftest.er1 >conftest.err
10497 cat conftest.err >&5
10498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499 (exit $ac_status); } >/dev/null; then
10500 if test -s conftest.err; then
10501 ac_cpp_err=$ac_c_preproc_warn_flag
10502 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10509 if test -z "$ac_cpp_err"; then
10510 ac_header_preproc=yes
10512 echo "$as_me: failed program was:" >&5
10513 sed 's/^/| /' conftest.$ac_ext >&5
10515 ac_header_preproc=no
10518 rm -f conftest.err conftest.$ac_ext
10519 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10520 echo "${ECHO_T}$ac_header_preproc" >&6; }
10522 # So? What about this header?
10523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10525 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10526 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10528 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10529 ac_header_preproc=yes
10532 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10533 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10534 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10535 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10536 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10537 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10538 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10539 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10541 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10542 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10543 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10545 ## ------------------------------------ ##
10546 ## Report this to http://llvm.org/bugs/ ##
10547 ## ------------------------------------ ##
10549 ) | sed "s/^/$as_me: WARNING: /" >&2
10552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10555 echo $ECHO_N "(cached) $ECHO_C" >&6
10557 eval "$as_ac_Header=\$ac_header_preproc"
10559 ac_res=`eval echo '${'$as_ac_Header'}'`
10560 { echo "$as_me:$LINENO: result: $ac_res" >&5
10561 echo "${ECHO_T}$ac_res" >&6; }
10564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10565 cat >>confdefs.h <<_ACEOF
10566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10574 { echo "$as_me:$LINENO: checking for error_t" >&5
10575 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10576 if test "${ac_cv_type_error_t+set}" = set; then
10577 echo $ECHO_N "(cached) $ECHO_C" >&6
10579 cat >conftest.$ac_ext <<_ACEOF
10582 cat confdefs.h >>conftest.$ac_ext
10583 cat >>conftest.$ac_ext <<_ACEOF
10584 /* end confdefs.h. */
10589 typedef error_t ac__type_new_;
10593 if ((ac__type_new_ *) 0)
10595 if (sizeof (ac__type_new_))
10601 rm -f conftest.$ac_objext
10602 if { (ac_try="$ac_compile"
10603 case "(($ac_try" in
10604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10605 *) ac_try_echo=$ac_try;;
10607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10608 (eval "$ac_compile") 2>conftest.er1
10610 grep -v '^ *+' conftest.er1 >conftest.err
10612 cat conftest.err >&5
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); } &&
10615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10616 { (case "(($ac_try" in
10617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10618 *) ac_try_echo=$ac_try;;
10620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10621 (eval "$ac_try") 2>&5
10623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624 (exit $ac_status); }; } &&
10625 { ac_try='test -s conftest.$ac_objext'
10626 { (case "(($ac_try" in
10627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10628 *) ac_try_echo=$ac_try;;
10630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10631 (eval "$ac_try") 2>&5
10633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634 (exit $ac_status); }; }; then
10635 ac_cv_type_error_t=yes
10637 echo "$as_me: failed program was:" >&5
10638 sed 's/^/| /' conftest.$ac_ext >&5
10640 ac_cv_type_error_t=no
10643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10645 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10646 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10647 if test $ac_cv_type_error_t = yes; then
10649 cat >>confdefs.h <<_ACEOF
10650 #define HAVE_ERROR_T 1
10656 cat >>confdefs.h <<\_ACEOF
10657 #define error_t int
10668 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10670 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10671 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10672 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10673 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10674 echo $ECHO_N "(cached) $ECHO_C" >&6
10676 cat >conftest.$ac_ext <<_ACEOF
10679 cat confdefs.h >>conftest.$ac_ext
10680 cat >>conftest.$ac_ext <<_ACEOF
10681 /* end confdefs.h. */
10682 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10684 #define $ac_func innocuous_$ac_func
10686 /* System header to define __stub macros and hopefully few prototypes,
10687 which can conflict with char $ac_func (); below.
10688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10689 <limits.h> exists even on freestanding compilers. */
10692 # include <limits.h>
10694 # include <assert.h>
10699 /* Override any GCC internal prototype to avoid an error.
10700 Use char because int might match the return type of a GCC
10701 builtin and then its argument prototype would still apply. */
10706 /* The GNU C library defines this for functions which it implements
10707 to always fail with ENOSYS. Some functions are actually named
10708 something starting with __ and the normal name is an alias. */
10709 #if defined __stub_$ac_func || defined __stub___$ac_func
10716 return $ac_func ();
10721 rm -f conftest.$ac_objext conftest$ac_exeext
10722 if { (ac_try="$ac_link"
10723 case "(($ac_try" in
10724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10725 *) ac_try_echo=$ac_try;;
10727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10728 (eval "$ac_link") 2>conftest.er1
10730 grep -v '^ *+' conftest.er1 >conftest.err
10732 cat conftest.err >&5
10733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734 (exit $ac_status); } &&
10735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10736 { (case "(($ac_try" in
10737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10738 *) ac_try_echo=$ac_try;;
10740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10741 (eval "$ac_try") 2>&5
10743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744 (exit $ac_status); }; } &&
10745 { ac_try='test -s conftest$ac_exeext'
10746 { (case "(($ac_try" in
10747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10748 *) ac_try_echo=$ac_try;;
10750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10751 (eval "$ac_try") 2>&5
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); }; }; then
10755 eval "$as_ac_var=yes"
10757 echo "$as_me: failed program was:" >&5
10758 sed 's/^/| /' conftest.$ac_ext >&5
10760 eval "$as_ac_var=no"
10763 rm -f core conftest.err conftest.$ac_objext \
10764 conftest$ac_exeext conftest.$ac_ext
10766 ac_res=`eval echo '${'$as_ac_var'}'`
10767 { echo "$as_me:$LINENO: result: $ac_res" >&5
10768 echo "${ECHO_T}$ac_res" >&6; }
10769 if test `eval echo '${'$as_ac_var'}'` = yes; then
10770 cat >>confdefs.h <<_ACEOF
10771 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10804 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10807 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10809 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10812 echo $ECHO_N "(cached) $ECHO_C" >&6
10814 ac_res=`eval echo '${'$as_ac_Header'}'`
10815 { echo "$as_me:$LINENO: result: $ac_res" >&5
10816 echo "${ECHO_T}$ac_res" >&6; }
10818 # Is the header compilable?
10819 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10820 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10821 cat >conftest.$ac_ext <<_ACEOF
10824 cat confdefs.h >>conftest.$ac_ext
10825 cat >>conftest.$ac_ext <<_ACEOF
10826 /* end confdefs.h. */
10827 $ac_includes_default
10828 #include <$ac_header>
10830 rm -f conftest.$ac_objext
10831 if { (ac_try="$ac_compile"
10832 case "(($ac_try" in
10833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10834 *) ac_try_echo=$ac_try;;
10836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10837 (eval "$ac_compile") 2>conftest.er1
10839 grep -v '^ *+' conftest.er1 >conftest.err
10841 cat conftest.err >&5
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); } &&
10844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10845 { (case "(($ac_try" in
10846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10847 *) ac_try_echo=$ac_try;;
10849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10850 (eval "$ac_try") 2>&5
10852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853 (exit $ac_status); }; } &&
10854 { ac_try='test -s conftest.$ac_objext'
10855 { (case "(($ac_try" in
10856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10857 *) ac_try_echo=$ac_try;;
10859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10860 (eval "$ac_try") 2>&5
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); }; }; then
10864 ac_header_compiler=yes
10866 echo "$as_me: failed program was:" >&5
10867 sed 's/^/| /' conftest.$ac_ext >&5
10869 ac_header_compiler=no
10872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10873 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10874 echo "${ECHO_T}$ac_header_compiler" >&6; }
10876 # Is the header present?
10877 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10878 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10879 cat >conftest.$ac_ext <<_ACEOF
10882 cat confdefs.h >>conftest.$ac_ext
10883 cat >>conftest.$ac_ext <<_ACEOF
10884 /* end confdefs.h. */
10885 #include <$ac_header>
10887 if { (ac_try="$ac_cpp conftest.$ac_ext"
10888 case "(($ac_try" in
10889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10890 *) ac_try_echo=$ac_try;;
10892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10895 grep -v '^ *+' conftest.er1 >conftest.err
10897 cat conftest.err >&5
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); } >/dev/null; then
10900 if test -s conftest.err; then
10901 ac_cpp_err=$ac_c_preproc_warn_flag
10902 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10909 if test -z "$ac_cpp_err"; then
10910 ac_header_preproc=yes
10912 echo "$as_me: failed program was:" >&5
10913 sed 's/^/| /' conftest.$ac_ext >&5
10915 ac_header_preproc=no
10918 rm -f conftest.err conftest.$ac_ext
10919 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10920 echo "${ECHO_T}$ac_header_preproc" >&6; }
10922 # So? What about this header?
10923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10925 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10926 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10928 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10929 ac_header_preproc=yes
10932 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10933 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10934 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10935 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10936 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10937 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10938 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10939 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10941 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10942 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10943 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10945 ## ------------------------------------ ##
10946 ## Report this to http://llvm.org/bugs/ ##
10947 ## ------------------------------------ ##
10949 ) | sed "s/^/$as_me: WARNING: /" >&2
10952 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10955 echo $ECHO_N "(cached) $ECHO_C" >&6
10957 eval "$as_ac_Header=\$ac_header_preproc"
10959 ac_res=`eval echo '${'$as_ac_Header'}'`
10960 { echo "$as_me:$LINENO: result: $ac_res" >&5
10961 echo "${ECHO_T}$ac_res" >&6; }
10964 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10965 cat >>confdefs.h <<_ACEOF
10966 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10977 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
10979 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10981 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10984 echo $ECHO_N "(cached) $ECHO_C" >&6
10986 ac_res=`eval echo '${'$as_ac_Header'}'`
10987 { echo "$as_me:$LINENO: result: $ac_res" >&5
10988 echo "${ECHO_T}$ac_res" >&6; }
10990 # Is the header compilable?
10991 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10992 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10993 cat >conftest.$ac_ext <<_ACEOF
10996 cat confdefs.h >>conftest.$ac_ext
10997 cat >>conftest.$ac_ext <<_ACEOF
10998 /* end confdefs.h. */
10999 $ac_includes_default
11000 #include <$ac_header>
11002 rm -f conftest.$ac_objext
11003 if { (ac_try="$ac_compile"
11004 case "(($ac_try" in
11005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11006 *) ac_try_echo=$ac_try;;
11008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11009 (eval "$ac_compile") 2>conftest.er1
11011 grep -v '^ *+' conftest.er1 >conftest.err
11013 cat conftest.err >&5
11014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); } &&
11016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11017 { (case "(($ac_try" in
11018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11019 *) ac_try_echo=$ac_try;;
11021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11022 (eval "$ac_try") 2>&5
11024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025 (exit $ac_status); }; } &&
11026 { ac_try='test -s conftest.$ac_objext'
11027 { (case "(($ac_try" in
11028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029 *) ac_try_echo=$ac_try;;
11031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11032 (eval "$ac_try") 2>&5
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); }; }; then
11036 ac_header_compiler=yes
11038 echo "$as_me: failed program was:" >&5
11039 sed 's/^/| /' conftest.$ac_ext >&5
11041 ac_header_compiler=no
11044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11045 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11046 echo "${ECHO_T}$ac_header_compiler" >&6; }
11048 # Is the header present?
11049 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11050 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11051 cat >conftest.$ac_ext <<_ACEOF
11054 cat confdefs.h >>conftest.$ac_ext
11055 cat >>conftest.$ac_ext <<_ACEOF
11056 /* end confdefs.h. */
11057 #include <$ac_header>
11059 if { (ac_try="$ac_cpp conftest.$ac_ext"
11060 case "(($ac_try" in
11061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11062 *) ac_try_echo=$ac_try;;
11064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11065 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11067 grep -v '^ *+' conftest.er1 >conftest.err
11069 cat conftest.err >&5
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); } >/dev/null; then
11072 if test -s conftest.err; then
11073 ac_cpp_err=$ac_c_preproc_warn_flag
11074 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11081 if test -z "$ac_cpp_err"; then
11082 ac_header_preproc=yes
11084 echo "$as_me: failed program was:" >&5
11085 sed 's/^/| /' conftest.$ac_ext >&5
11087 ac_header_preproc=no
11090 rm -f conftest.err conftest.$ac_ext
11091 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11092 echo "${ECHO_T}$ac_header_preproc" >&6; }
11094 # So? What about this header?
11095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11097 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11098 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11100 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11101 ac_header_preproc=yes
11104 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11105 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11106 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11107 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11108 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11109 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11110 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11111 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11113 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11114 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11115 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11117 ## ------------------------------------ ##
11118 ## Report this to http://llvm.org/bugs/ ##
11119 ## ------------------------------------ ##
11121 ) | sed "s/^/$as_me: WARNING: /" >&2
11124 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11127 echo $ECHO_N "(cached) $ECHO_C" >&6
11129 eval "$as_ac_Header=\$ac_header_preproc"
11131 ac_res=`eval echo '${'$as_ac_Header'}'`
11132 { echo "$as_me:$LINENO: result: $ac_res" >&5
11133 echo "${ECHO_T}$ac_res" >&6; }
11136 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11137 cat >>confdefs.h <<_ACEOF
11138 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11147 for ac_header in string.h strings.h
11149 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11151 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11154 echo $ECHO_N "(cached) $ECHO_C" >&6
11156 ac_res=`eval echo '${'$as_ac_Header'}'`
11157 { echo "$as_me:$LINENO: result: $ac_res" >&5
11158 echo "${ECHO_T}$ac_res" >&6; }
11160 # Is the header compilable?
11161 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11162 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11163 cat >conftest.$ac_ext <<_ACEOF
11166 cat confdefs.h >>conftest.$ac_ext
11167 cat >>conftest.$ac_ext <<_ACEOF
11168 /* end confdefs.h. */
11169 $ac_includes_default
11170 #include <$ac_header>
11172 rm -f conftest.$ac_objext
11173 if { (ac_try="$ac_compile"
11174 case "(($ac_try" in
11175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11176 *) ac_try_echo=$ac_try;;
11178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11179 (eval "$ac_compile") 2>conftest.er1
11181 grep -v '^ *+' conftest.er1 >conftest.err
11183 cat conftest.err >&5
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); } &&
11186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11187 { (case "(($ac_try" in
11188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11189 *) ac_try_echo=$ac_try;;
11191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11192 (eval "$ac_try") 2>&5
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); }; } &&
11196 { ac_try='test -s conftest.$ac_objext'
11197 { (case "(($ac_try" in
11198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11199 *) ac_try_echo=$ac_try;;
11201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11202 (eval "$ac_try") 2>&5
11204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205 (exit $ac_status); }; }; then
11206 ac_header_compiler=yes
11208 echo "$as_me: failed program was:" >&5
11209 sed 's/^/| /' conftest.$ac_ext >&5
11211 ac_header_compiler=no
11214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11215 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11216 echo "${ECHO_T}$ac_header_compiler" >&6; }
11218 # Is the header present?
11219 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11220 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11221 cat >conftest.$ac_ext <<_ACEOF
11224 cat confdefs.h >>conftest.$ac_ext
11225 cat >>conftest.$ac_ext <<_ACEOF
11226 /* end confdefs.h. */
11227 #include <$ac_header>
11229 if { (ac_try="$ac_cpp conftest.$ac_ext"
11230 case "(($ac_try" in
11231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11232 *) ac_try_echo=$ac_try;;
11234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11235 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11237 grep -v '^ *+' conftest.er1 >conftest.err
11239 cat conftest.err >&5
11240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241 (exit $ac_status); } >/dev/null; then
11242 if test -s conftest.err; then
11243 ac_cpp_err=$ac_c_preproc_warn_flag
11244 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11251 if test -z "$ac_cpp_err"; then
11252 ac_header_preproc=yes
11254 echo "$as_me: failed program was:" >&5
11255 sed 's/^/| /' conftest.$ac_ext >&5
11257 ac_header_preproc=no
11260 rm -f conftest.err conftest.$ac_ext
11261 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11262 echo "${ECHO_T}$ac_header_preproc" >&6; }
11264 # So? What about this header?
11265 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11267 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11268 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11270 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11271 ac_header_preproc=yes
11274 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11275 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11276 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11277 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11278 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11279 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11280 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11281 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11283 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11284 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11285 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11287 ## ------------------------------------ ##
11288 ## Report this to http://llvm.org/bugs/ ##
11289 ## ------------------------------------ ##
11291 ) | sed "s/^/$as_me: WARNING: /" >&2
11294 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11297 echo $ECHO_N "(cached) $ECHO_C" >&6
11299 eval "$as_ac_Header=\$ac_header_preproc"
11301 ac_res=`eval echo '${'$as_ac_Header'}'`
11302 { echo "$as_me:$LINENO: result: $ac_res" >&5
11303 echo "${ECHO_T}$ac_res" >&6; }
11306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11307 cat >>confdefs.h <<_ACEOF
11308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11318 for ac_func in strchr index
11320 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11321 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11323 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11324 echo $ECHO_N "(cached) $ECHO_C" >&6
11326 cat >conftest.$ac_ext <<_ACEOF
11329 cat confdefs.h >>conftest.$ac_ext
11330 cat >>conftest.$ac_ext <<_ACEOF
11331 /* end confdefs.h. */
11332 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11334 #define $ac_func innocuous_$ac_func
11336 /* System header to define __stub macros and hopefully few prototypes,
11337 which can conflict with char $ac_func (); below.
11338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11339 <limits.h> exists even on freestanding compilers. */
11342 # include <limits.h>
11344 # include <assert.h>
11349 /* Override any GCC internal prototype to avoid an error.
11350 Use char because int might match the return type of a GCC
11351 builtin and then its argument prototype would still apply. */
11356 /* The GNU C library defines this for functions which it implements
11357 to always fail with ENOSYS. Some functions are actually named
11358 something starting with __ and the normal name is an alias. */
11359 #if defined __stub_$ac_func || defined __stub___$ac_func
11366 return $ac_func ();
11371 rm -f conftest.$ac_objext conftest$ac_exeext
11372 if { (ac_try="$ac_link"
11373 case "(($ac_try" in
11374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11375 *) ac_try_echo=$ac_try;;
11377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11378 (eval "$ac_link") 2>conftest.er1
11380 grep -v '^ *+' conftest.er1 >conftest.err
11382 cat conftest.err >&5
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); } &&
11385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11386 { (case "(($ac_try" in
11387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11388 *) ac_try_echo=$ac_try;;
11390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11391 (eval "$ac_try") 2>&5
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); }; } &&
11395 { ac_try='test -s conftest$ac_exeext'
11396 { (case "(($ac_try" in
11397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11398 *) ac_try_echo=$ac_try;;
11400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11401 (eval "$ac_try") 2>&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); }; }; then
11405 eval "$as_ac_var=yes"
11407 echo "$as_me: failed program was:" >&5
11408 sed 's/^/| /' conftest.$ac_ext >&5
11410 eval "$as_ac_var=no"
11413 rm -f core conftest.err conftest.$ac_objext \
11414 conftest$ac_exeext conftest.$ac_ext
11416 ac_res=`eval echo '${'$as_ac_var'}'`
11417 { echo "$as_me:$LINENO: result: $ac_res" >&5
11418 echo "${ECHO_T}$ac_res" >&6; }
11419 if test `eval echo '${'$as_ac_var'}'` = yes; then
11420 cat >>confdefs.h <<_ACEOF
11421 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11429 for ac_func in strrchr rindex
11431 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11432 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11433 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11434 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11435 echo $ECHO_N "(cached) $ECHO_C" >&6
11437 cat >conftest.$ac_ext <<_ACEOF
11440 cat confdefs.h >>conftest.$ac_ext
11441 cat >>conftest.$ac_ext <<_ACEOF
11442 /* end confdefs.h. */
11443 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11444 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11445 #define $ac_func innocuous_$ac_func
11447 /* System header to define __stub macros and hopefully few prototypes,
11448 which can conflict with char $ac_func (); below.
11449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11450 <limits.h> exists even on freestanding compilers. */
11453 # include <limits.h>
11455 # include <assert.h>
11460 /* Override any GCC internal prototype to avoid an error.
11461 Use char because int might match the return type of a GCC
11462 builtin and then its argument prototype would still apply. */
11467 /* The GNU C library defines this for functions which it implements
11468 to always fail with ENOSYS. Some functions are actually named
11469 something starting with __ and the normal name is an alias. */
11470 #if defined __stub_$ac_func || defined __stub___$ac_func
11477 return $ac_func ();
11482 rm -f conftest.$ac_objext conftest$ac_exeext
11483 if { (ac_try="$ac_link"
11484 case "(($ac_try" in
11485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11486 *) ac_try_echo=$ac_try;;
11488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11489 (eval "$ac_link") 2>conftest.er1
11491 grep -v '^ *+' conftest.er1 >conftest.err
11493 cat conftest.err >&5
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); } &&
11496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11497 { (case "(($ac_try" in
11498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11499 *) ac_try_echo=$ac_try;;
11501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11502 (eval "$ac_try") 2>&5
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); }; } &&
11506 { ac_try='test -s conftest$ac_exeext'
11507 { (case "(($ac_try" in
11508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11509 *) ac_try_echo=$ac_try;;
11511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11512 (eval "$ac_try") 2>&5
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); }; }; then
11516 eval "$as_ac_var=yes"
11518 echo "$as_me: failed program was:" >&5
11519 sed 's/^/| /' conftest.$ac_ext >&5
11521 eval "$as_ac_var=no"
11524 rm -f core conftest.err conftest.$ac_objext \
11525 conftest$ac_exeext conftest.$ac_ext
11527 ac_res=`eval echo '${'$as_ac_var'}'`
11528 { echo "$as_me:$LINENO: result: $ac_res" >&5
11529 echo "${ECHO_T}$ac_res" >&6; }
11530 if test `eval echo '${'$as_ac_var'}'` = yes; then
11531 cat >>confdefs.h <<_ACEOF
11532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11540 for ac_func in memcpy bcopy
11542 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11543 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11544 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11545 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11546 echo $ECHO_N "(cached) $ECHO_C" >&6
11548 cat >conftest.$ac_ext <<_ACEOF
11551 cat confdefs.h >>conftest.$ac_ext
11552 cat >>conftest.$ac_ext <<_ACEOF
11553 /* end confdefs.h. */
11554 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11556 #define $ac_func innocuous_$ac_func
11558 /* System header to define __stub macros and hopefully few prototypes,
11559 which can conflict with char $ac_func (); below.
11560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11561 <limits.h> exists even on freestanding compilers. */
11564 # include <limits.h>
11566 # include <assert.h>
11571 /* Override any GCC internal prototype to avoid an error.
11572 Use char because int might match the return type of a GCC
11573 builtin and then its argument prototype would still apply. */
11578 /* The GNU C library defines this for functions which it implements
11579 to always fail with ENOSYS. Some functions are actually named
11580 something starting with __ and the normal name is an alias. */
11581 #if defined __stub_$ac_func || defined __stub___$ac_func
11588 return $ac_func ();
11593 rm -f conftest.$ac_objext conftest$ac_exeext
11594 if { (ac_try="$ac_link"
11595 case "(($ac_try" in
11596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11597 *) ac_try_echo=$ac_try;;
11599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11600 (eval "$ac_link") 2>conftest.er1
11602 grep -v '^ *+' conftest.er1 >conftest.err
11604 cat conftest.err >&5
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); } &&
11607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11608 { (case "(($ac_try" in
11609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11610 *) ac_try_echo=$ac_try;;
11612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11613 (eval "$ac_try") 2>&5
11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616 (exit $ac_status); }; } &&
11617 { ac_try='test -s conftest$ac_exeext'
11618 { (case "(($ac_try" in
11619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11620 *) ac_try_echo=$ac_try;;
11622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11623 (eval "$ac_try") 2>&5
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); }; }; then
11627 eval "$as_ac_var=yes"
11629 echo "$as_me: failed program was:" >&5
11630 sed 's/^/| /' conftest.$ac_ext >&5
11632 eval "$as_ac_var=no"
11635 rm -f core conftest.err conftest.$ac_objext \
11636 conftest$ac_exeext conftest.$ac_ext
11638 ac_res=`eval echo '${'$as_ac_var'}'`
11639 { echo "$as_me:$LINENO: result: $ac_res" >&5
11640 echo "${ECHO_T}$ac_res" >&6; }
11641 if test `eval echo '${'$as_ac_var'}'` = yes; then
11642 cat >>confdefs.h <<_ACEOF
11643 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11651 for ac_func in memmove strcmp
11653 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11654 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11655 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11656 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11657 echo $ECHO_N "(cached) $ECHO_C" >&6
11659 cat >conftest.$ac_ext <<_ACEOF
11662 cat confdefs.h >>conftest.$ac_ext
11663 cat >>conftest.$ac_ext <<_ACEOF
11664 /* end confdefs.h. */
11665 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11667 #define $ac_func innocuous_$ac_func
11669 /* System header to define __stub macros and hopefully few prototypes,
11670 which can conflict with char $ac_func (); below.
11671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11672 <limits.h> exists even on freestanding compilers. */
11675 # include <limits.h>
11677 # include <assert.h>
11682 /* Override any GCC internal prototype to avoid an error.
11683 Use char because int might match the return type of a GCC
11684 builtin and then its argument prototype would still apply. */
11689 /* The GNU C library defines this for functions which it implements
11690 to always fail with ENOSYS. Some functions are actually named
11691 something starting with __ and the normal name is an alias. */
11692 #if defined __stub_$ac_func || defined __stub___$ac_func
11699 return $ac_func ();
11704 rm -f conftest.$ac_objext conftest$ac_exeext
11705 if { (ac_try="$ac_link"
11706 case "(($ac_try" in
11707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11708 *) ac_try_echo=$ac_try;;
11710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11711 (eval "$ac_link") 2>conftest.er1
11713 grep -v '^ *+' conftest.er1 >conftest.err
11715 cat conftest.err >&5
11716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); } &&
11718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11719 { (case "(($ac_try" in
11720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11721 *) ac_try_echo=$ac_try;;
11723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11724 (eval "$ac_try") 2>&5
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); }; } &&
11728 { ac_try='test -s conftest$ac_exeext'
11729 { (case "(($ac_try" in
11730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11731 *) ac_try_echo=$ac_try;;
11733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11734 (eval "$ac_try") 2>&5
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); }; }; then
11738 eval "$as_ac_var=yes"
11740 echo "$as_me: failed program was:" >&5
11741 sed 's/^/| /' conftest.$ac_ext >&5
11743 eval "$as_ac_var=no"
11746 rm -f core conftest.err conftest.$ac_objext \
11747 conftest$ac_exeext conftest.$ac_ext
11749 ac_res=`eval echo '${'$as_ac_var'}'`
11750 { echo "$as_me:$LINENO: result: $ac_res" >&5
11751 echo "${ECHO_T}$ac_res" >&6; }
11752 if test `eval echo '${'$as_ac_var'}'` = yes; then
11753 cat >>confdefs.h <<_ACEOF
11754 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11763 for ac_func in closedir opendir readdir
11765 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11766 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11767 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11768 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11769 echo $ECHO_N "(cached) $ECHO_C" >&6
11771 cat >conftest.$ac_ext <<_ACEOF
11774 cat confdefs.h >>conftest.$ac_ext
11775 cat >>conftest.$ac_ext <<_ACEOF
11776 /* end confdefs.h. */
11777 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11779 #define $ac_func innocuous_$ac_func
11781 /* System header to define __stub macros and hopefully few prototypes,
11782 which can conflict with char $ac_func (); below.
11783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11784 <limits.h> exists even on freestanding compilers. */
11787 # include <limits.h>
11789 # include <assert.h>
11794 /* Override any GCC internal prototype to avoid an error.
11795 Use char because int might match the return type of a GCC
11796 builtin and then its argument prototype would still apply. */
11801 /* The GNU C library defines this for functions which it implements
11802 to always fail with ENOSYS. Some functions are actually named
11803 something starting with __ and the normal name is an alias. */
11804 #if defined __stub_$ac_func || defined __stub___$ac_func
11811 return $ac_func ();
11816 rm -f conftest.$ac_objext conftest$ac_exeext
11817 if { (ac_try="$ac_link"
11818 case "(($ac_try" in
11819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11820 *) ac_try_echo=$ac_try;;
11822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11823 (eval "$ac_link") 2>conftest.er1
11825 grep -v '^ *+' conftest.er1 >conftest.err
11827 cat conftest.err >&5
11828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829 (exit $ac_status); } &&
11830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11831 { (case "(($ac_try" in
11832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11833 *) ac_try_echo=$ac_try;;
11835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11836 (eval "$ac_try") 2>&5
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); }; } &&
11840 { ac_try='test -s conftest$ac_exeext'
11841 { (case "(($ac_try" in
11842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11843 *) ac_try_echo=$ac_try;;
11845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11846 (eval "$ac_try") 2>&5
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); }; }; then
11850 eval "$as_ac_var=yes"
11852 echo "$as_me: failed program was:" >&5
11853 sed 's/^/| /' conftest.$ac_ext >&5
11855 eval "$as_ac_var=no"
11858 rm -f core conftest.err conftest.$ac_objext \
11859 conftest$ac_exeext conftest.$ac_ext
11861 ac_res=`eval echo '${'$as_ac_var'}'`
11862 { echo "$as_me:$LINENO: result: $ac_res" >&5
11863 echo "${ECHO_T}$ac_res" >&6; }
11864 if test `eval echo '${'$as_ac_var'}'` = yes; then
11865 cat >>confdefs.h <<_ACEOF
11866 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11874 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11875 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11888 if test "$GCC" != "yes" && test "$ICC" != "yes"
11890 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11891 echo "$as_me: error: gcc|icc required but not found" >&2;}
11892 { (exit 1); exit 1; }; }
11895 if test "$GXX" != "yes" && test "$IXX" != "yes"
11897 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11898 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11899 { (exit 1); exit 1; }; }
11902 if test "$GCC" = "yes"
11904 cat >conftest.$ac_ext <<_ACEOF
11905 #if !defined(__GNUC__) || __GNUC__ < 3
11906 #error Unsupported GCC version
11910 rm -f conftest.$ac_objext
11911 if { (ac_try="$ac_compile"
11912 case "(($ac_try" in
11913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11914 *) ac_try_echo=$ac_try;;
11916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11917 (eval "$ac_compile") 2>conftest.er1
11919 grep -v '^ *+' conftest.er1 >conftest.err
11921 cat conftest.err >&5
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); } &&
11924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11925 { (case "(($ac_try" in
11926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11927 *) ac_try_echo=$ac_try;;
11929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11930 (eval "$ac_try") 2>&5
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); }; } &&
11934 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
11946 echo "$as_me: failed program was:" >&5
11947 sed 's/^/| /' conftest.$ac_ext >&5
11949 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
11950 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
11951 { (exit 1); exit 1; }; }
11954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11957 if test -z "$llvm_cv_gnu_make_command"
11959 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
11960 echo "$as_me: error: GNU Make required but not found" >&2;}
11961 { (exit 1); exit 1; }; }
11964 { echo "$as_me:$LINENO: result: ok" >&5
11965 echo "${ECHO_T}ok" >&6; }
11967 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
11968 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
11969 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
11971 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
11973 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
11975 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
11976 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
11980 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
11981 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
11982 if test "${ac_cv_lib_m_sin+set}" = set; then
11983 echo $ECHO_N "(cached) $ECHO_C" >&6
11985 ac_check_lib_save_LIBS=$LIBS
11987 cat >conftest.$ac_ext <<_ACEOF
11990 cat confdefs.h >>conftest.$ac_ext
11991 cat >>conftest.$ac_ext <<_ACEOF
11992 /* end confdefs.h. */
11994 /* Override any GCC internal prototype to avoid an error.
11995 Use char because int might match the return type of a GCC
11996 builtin and then its argument prototype would still apply. */
12009 rm -f conftest.$ac_objext conftest$ac_exeext
12010 if { (ac_try="$ac_link"
12011 case "(($ac_try" in
12012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12013 *) ac_try_echo=$ac_try;;
12015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12016 (eval "$ac_link") 2>conftest.er1
12018 grep -v '^ *+' conftest.er1 >conftest.err
12020 cat conftest.err >&5
12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); } &&
12023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12024 { (case "(($ac_try" in
12025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12026 *) ac_try_echo=$ac_try;;
12028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12029 (eval "$ac_try") 2>&5
12031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032 (exit $ac_status); }; } &&
12033 { ac_try='test -s conftest$ac_exeext'
12034 { (case "(($ac_try" in
12035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12036 *) ac_try_echo=$ac_try;;
12038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12039 (eval "$ac_try") 2>&5
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); }; }; then
12043 ac_cv_lib_m_sin=yes
12045 echo "$as_me: failed program was:" >&5
12046 sed 's/^/| /' conftest.$ac_ext >&5
12051 rm -f core conftest.err conftest.$ac_objext \
12052 conftest$ac_exeext conftest.$ac_ext
12053 LIBS=$ac_check_lib_save_LIBS
12055 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12056 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12057 if test $ac_cv_lib_m_sin = yes; then
12058 cat >>confdefs.h <<_ACEOF
12059 #define HAVE_LIBM 1
12066 if test "$llvm_cv_os_type" = "MingW" ; then
12068 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12069 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12070 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12071 echo $ECHO_N "(cached) $ECHO_C" >&6
12073 ac_check_lib_save_LIBS=$LIBS
12074 LIBS="-limagehlp $LIBS"
12075 cat >conftest.$ac_ext <<_ACEOF
12078 cat confdefs.h >>conftest.$ac_ext
12079 cat >>conftest.$ac_ext <<_ACEOF
12080 /* end confdefs.h. */
12091 rm -f conftest.$ac_objext conftest$ac_exeext
12092 if { (ac_try="$ac_link"
12093 case "(($ac_try" in
12094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12095 *) ac_try_echo=$ac_try;;
12097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12098 (eval "$ac_link") 2>conftest.er1
12100 grep -v '^ *+' conftest.er1 >conftest.err
12102 cat conftest.err >&5
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); } &&
12105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12106 { (case "(($ac_try" in
12107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12108 *) ac_try_echo=$ac_try;;
12110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12111 (eval "$ac_try") 2>&5
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); }; } &&
12115 { ac_try='test -s conftest$ac_exeext'
12116 { (case "(($ac_try" in
12117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12118 *) ac_try_echo=$ac_try;;
12120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12121 (eval "$ac_try") 2>&5
12123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 (exit $ac_status); }; }; then
12125 ac_cv_lib_imagehlp_main=yes
12127 echo "$as_me: failed program was:" >&5
12128 sed 's/^/| /' conftest.$ac_ext >&5
12130 ac_cv_lib_imagehlp_main=no
12133 rm -f core conftest.err conftest.$ac_objext \
12134 conftest$ac_exeext conftest.$ac_ext
12135 LIBS=$ac_check_lib_save_LIBS
12137 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12138 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12139 if test $ac_cv_lib_imagehlp_main = yes; then
12140 cat >>confdefs.h <<_ACEOF
12141 #define HAVE_LIBIMAGEHLP 1
12144 LIBS="-limagehlp $LIBS"
12149 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12150 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12151 if test "${ac_cv_lib_psapi_main+set}" = set; then
12152 echo $ECHO_N "(cached) $ECHO_C" >&6
12154 ac_check_lib_save_LIBS=$LIBS
12155 LIBS="-lpsapi $LIBS"
12156 cat >conftest.$ac_ext <<_ACEOF
12159 cat confdefs.h >>conftest.$ac_ext
12160 cat >>conftest.$ac_ext <<_ACEOF
12161 /* end confdefs.h. */
12172 rm -f conftest.$ac_objext conftest$ac_exeext
12173 if { (ac_try="$ac_link"
12174 case "(($ac_try" in
12175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12176 *) ac_try_echo=$ac_try;;
12178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12179 (eval "$ac_link") 2>conftest.er1
12181 grep -v '^ *+' conftest.er1 >conftest.err
12183 cat conftest.err >&5
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); } &&
12186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12187 { (case "(($ac_try" in
12188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12189 *) ac_try_echo=$ac_try;;
12191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12192 (eval "$ac_try") 2>&5
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); }; } &&
12196 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); }; }; then
12206 ac_cv_lib_psapi_main=yes
12208 echo "$as_me: failed program was:" >&5
12209 sed 's/^/| /' conftest.$ac_ext >&5
12211 ac_cv_lib_psapi_main=no
12214 rm -f core conftest.err conftest.$ac_objext \
12215 conftest$ac_exeext conftest.$ac_ext
12216 LIBS=$ac_check_lib_save_LIBS
12218 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12219 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12220 if test $ac_cv_lib_psapi_main = yes; then
12221 cat >>confdefs.h <<_ACEOF
12222 #define HAVE_LIBPSAPI 1
12225 LIBS="-lpsapi $LIBS"
12231 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12232 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12233 if test "${ac_cv_search_dlopen+set}" = set; then
12234 echo $ECHO_N "(cached) $ECHO_C" >&6
12236 ac_func_search_save_LIBS=$LIBS
12237 cat >conftest.$ac_ext <<_ACEOF
12240 cat confdefs.h >>conftest.$ac_ext
12241 cat >>conftest.$ac_ext <<_ACEOF
12242 /* end confdefs.h. */
12244 /* Override any GCC internal prototype to avoid an error.
12245 Use char because int might match the return type of a GCC
12246 builtin and then its argument prototype would still apply. */
12259 for ac_lib in '' dl; do
12260 if test -z "$ac_lib"; then
12261 ac_res="none required"
12264 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12266 rm -f conftest.$ac_objext conftest$ac_exeext
12267 if { (ac_try="$ac_link"
12268 case "(($ac_try" in
12269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12270 *) ac_try_echo=$ac_try;;
12272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12273 (eval "$ac_link") 2>conftest.er1
12275 grep -v '^ *+' conftest.er1 >conftest.err
12277 cat conftest.err >&5
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); } &&
12280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12281 { (case "(($ac_try" in
12282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12283 *) ac_try_echo=$ac_try;;
12285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12286 (eval "$ac_try") 2>&5
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); }; } &&
12290 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12300 ac_cv_search_dlopen=$ac_res
12302 echo "$as_me: failed program was:" >&5
12303 sed 's/^/| /' conftest.$ac_ext >&5
12308 rm -f core conftest.err conftest.$ac_objext \
12310 if test "${ac_cv_search_dlopen+set}" = set; then
12314 if test "${ac_cv_search_dlopen+set}" = set; then
12317 ac_cv_search_dlopen=no
12319 rm conftest.$ac_ext
12320 LIBS=$ac_func_search_save_LIBS
12322 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12323 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12324 ac_res=$ac_cv_search_dlopen
12325 if test "$ac_res" != no; then
12326 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12328 cat >>confdefs.h <<\_ACEOF
12329 #define HAVE_DLOPEN 1
12333 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12334 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12338 if test "$llvm_cv_enable_libffi" = "yes" ; then
12339 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12340 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12341 if test "${ac_cv_search_ffi_call+set}" = set; then
12342 echo $ECHO_N "(cached) $ECHO_C" >&6
12344 ac_func_search_save_LIBS=$LIBS
12345 cat >conftest.$ac_ext <<_ACEOF
12348 cat confdefs.h >>conftest.$ac_ext
12349 cat >>conftest.$ac_ext <<_ACEOF
12350 /* end confdefs.h. */
12352 /* Override any GCC internal prototype to avoid an error.
12353 Use char because int might match the return type of a GCC
12354 builtin and then its argument prototype would still apply. */
12362 return ffi_call ();
12367 for ac_lib in '' ffi; do
12368 if test -z "$ac_lib"; then
12369 ac_res="none required"
12372 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12374 rm -f conftest.$ac_objext conftest$ac_exeext
12375 if { (ac_try="$ac_link"
12376 case "(($ac_try" in
12377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12378 *) ac_try_echo=$ac_try;;
12380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12381 (eval "$ac_link") 2>conftest.er1
12383 grep -v '^ *+' conftest.er1 >conftest.err
12385 cat conftest.err >&5
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); } &&
12388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12389 { (case "(($ac_try" in
12390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12391 *) ac_try_echo=$ac_try;;
12393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12394 (eval "$ac_try") 2>&5
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); }; } &&
12398 { ac_try='test -s conftest$ac_exeext'
12399 { (case "(($ac_try" in
12400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12401 *) ac_try_echo=$ac_try;;
12403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12404 (eval "$ac_try") 2>&5
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); }; }; then
12408 ac_cv_search_ffi_call=$ac_res
12410 echo "$as_me: failed program was:" >&5
12411 sed 's/^/| /' conftest.$ac_ext >&5
12416 rm -f core conftest.err conftest.$ac_objext \
12418 if test "${ac_cv_search_ffi_call+set}" = set; then
12422 if test "${ac_cv_search_ffi_call+set}" = set; then
12425 ac_cv_search_ffi_call=no
12427 rm conftest.$ac_ext
12428 LIBS=$ac_func_search_save_LIBS
12430 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12431 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12432 ac_res=$ac_cv_search_ffi_call
12433 if test "$ac_res" != no; then
12434 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12436 cat >>confdefs.h <<\_ACEOF
12437 #define HAVE_FFI_CALL 1
12441 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12442 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12443 { (exit 1); exit 1; }; }
12448 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12449 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12450 if test "${ac_cv_search_mallinfo+set}" = set; then
12451 echo $ECHO_N "(cached) $ECHO_C" >&6
12453 ac_func_search_save_LIBS=$LIBS
12454 cat >conftest.$ac_ext <<_ACEOF
12457 cat confdefs.h >>conftest.$ac_ext
12458 cat >>conftest.$ac_ext <<_ACEOF
12459 /* end confdefs.h. */
12461 /* Override any GCC internal prototype to avoid an error.
12462 Use char because int might match the return type of a GCC
12463 builtin and then its argument prototype would still apply. */
12471 return mallinfo ();
12476 for ac_lib in '' malloc; do
12477 if test -z "$ac_lib"; then
12478 ac_res="none required"
12481 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12483 rm -f conftest.$ac_objext conftest$ac_exeext
12484 if { (ac_try="$ac_link"
12485 case "(($ac_try" in
12486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12487 *) ac_try_echo=$ac_try;;
12489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12490 (eval "$ac_link") 2>conftest.er1
12492 grep -v '^ *+' conftest.er1 >conftest.err
12494 cat conftest.err >&5
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); } &&
12497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12498 { (case "(($ac_try" in
12499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12500 *) ac_try_echo=$ac_try;;
12502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12503 (eval "$ac_try") 2>&5
12505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); }; } &&
12507 { ac_try='test -s conftest$ac_exeext'
12508 { (case "(($ac_try" in
12509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12510 *) ac_try_echo=$ac_try;;
12512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12513 (eval "$ac_try") 2>&5
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); }; }; then
12517 ac_cv_search_mallinfo=$ac_res
12519 echo "$as_me: failed program was:" >&5
12520 sed 's/^/| /' conftest.$ac_ext >&5
12525 rm -f core conftest.err conftest.$ac_objext \
12527 if test "${ac_cv_search_mallinfo+set}" = set; then
12531 if test "${ac_cv_search_mallinfo+set}" = set; then
12534 ac_cv_search_mallinfo=no
12536 rm conftest.$ac_ext
12537 LIBS=$ac_func_search_save_LIBS
12539 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12540 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12541 ac_res=$ac_cv_search_mallinfo
12542 if test "$ac_res" != no; then
12543 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12545 cat >>confdefs.h <<\_ACEOF
12546 #define HAVE_MALLINFO 1
12552 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12554 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12555 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12556 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12557 echo $ECHO_N "(cached) $ECHO_C" >&6
12559 ac_check_lib_save_LIBS=$LIBS
12560 LIBS="-lpthread $LIBS"
12561 cat >conftest.$ac_ext <<_ACEOF
12564 cat confdefs.h >>conftest.$ac_ext
12565 cat >>conftest.$ac_ext <<_ACEOF
12566 /* end confdefs.h. */
12568 /* Override any GCC internal prototype to avoid an error.
12569 Use char because int might match the return type of a GCC
12570 builtin and then its argument prototype would still apply. */
12574 char pthread_mutex_init ();
12578 return pthread_mutex_init ();
12583 rm -f conftest.$ac_objext conftest$ac_exeext
12584 if { (ac_try="$ac_link"
12585 case "(($ac_try" in
12586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12587 *) ac_try_echo=$ac_try;;
12589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12590 (eval "$ac_link") 2>conftest.er1
12592 grep -v '^ *+' conftest.er1 >conftest.err
12594 cat conftest.err >&5
12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); } &&
12597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12598 { (case "(($ac_try" in
12599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12600 *) ac_try_echo=$ac_try;;
12602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12603 (eval "$ac_try") 2>&5
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); }; } &&
12607 { ac_try='test -s conftest$ac_exeext'
12608 { (case "(($ac_try" in
12609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12610 *) ac_try_echo=$ac_try;;
12612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12613 (eval "$ac_try") 2>&5
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); }; }; then
12617 ac_cv_lib_pthread_pthread_mutex_init=yes
12619 echo "$as_me: failed program was:" >&5
12620 sed 's/^/| /' conftest.$ac_ext >&5
12622 ac_cv_lib_pthread_pthread_mutex_init=no
12625 rm -f core conftest.err conftest.$ac_objext \
12626 conftest$ac_exeext conftest.$ac_ext
12627 LIBS=$ac_check_lib_save_LIBS
12629 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12630 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12631 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12632 cat >>confdefs.h <<_ACEOF
12633 #define HAVE_LIBPTHREAD 1
12636 LIBS="-lpthread $LIBS"
12640 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12641 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12642 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12643 echo $ECHO_N "(cached) $ECHO_C" >&6
12645 ac_func_search_save_LIBS=$LIBS
12646 cat >conftest.$ac_ext <<_ACEOF
12649 cat confdefs.h >>conftest.$ac_ext
12650 cat >>conftest.$ac_ext <<_ACEOF
12651 /* end confdefs.h. */
12653 /* Override any GCC internal prototype to avoid an error.
12654 Use char because int might match the return type of a GCC
12655 builtin and then its argument prototype would still apply. */
12659 char pthread_mutex_lock ();
12663 return pthread_mutex_lock ();
12668 for ac_lib in '' pthread; do
12669 if test -z "$ac_lib"; then
12670 ac_res="none required"
12673 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12675 rm -f conftest.$ac_objext conftest$ac_exeext
12676 if { (ac_try="$ac_link"
12677 case "(($ac_try" in
12678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12679 *) ac_try_echo=$ac_try;;
12681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12682 (eval "$ac_link") 2>conftest.er1
12684 grep -v '^ *+' conftest.er1 >conftest.err
12686 cat conftest.err >&5
12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688 (exit $ac_status); } &&
12689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12690 { (case "(($ac_try" in
12691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12692 *) ac_try_echo=$ac_try;;
12694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12695 (eval "$ac_try") 2>&5
12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698 (exit $ac_status); }; } &&
12699 { ac_try='test -s conftest$ac_exeext'
12700 { (case "(($ac_try" in
12701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12702 *) ac_try_echo=$ac_try;;
12704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12705 (eval "$ac_try") 2>&5
12707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708 (exit $ac_status); }; }; then
12709 ac_cv_search_pthread_mutex_lock=$ac_res
12711 echo "$as_me: failed program was:" >&5
12712 sed 's/^/| /' conftest.$ac_ext >&5
12717 rm -f core conftest.err conftest.$ac_objext \
12719 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12723 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12726 ac_cv_search_pthread_mutex_lock=no
12728 rm conftest.$ac_ext
12729 LIBS=$ac_func_search_save_LIBS
12731 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12732 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12733 ac_res=$ac_cv_search_pthread_mutex_lock
12734 if test "$ac_res" != no; then
12735 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12737 cat >>confdefs.h <<\_ACEOF
12738 #define HAVE_PTHREAD_MUTEX_LOCK 1
12743 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12744 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12745 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12746 echo $ECHO_N "(cached) $ECHO_C" >&6
12748 ac_func_search_save_LIBS=$LIBS
12749 cat >conftest.$ac_ext <<_ACEOF
12752 cat confdefs.h >>conftest.$ac_ext
12753 cat >>conftest.$ac_ext <<_ACEOF
12754 /* end confdefs.h. */
12756 /* Override any GCC internal prototype to avoid an error.
12757 Use char because int might match the return type of a GCC
12758 builtin and then its argument prototype would still apply. */
12762 char pthread_rwlock_init ();
12766 return pthread_rwlock_init ();
12771 for ac_lib in '' pthread; do
12772 if test -z "$ac_lib"; then
12773 ac_res="none required"
12776 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12778 rm -f conftest.$ac_objext conftest$ac_exeext
12779 if { (ac_try="$ac_link"
12780 case "(($ac_try" in
12781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12782 *) ac_try_echo=$ac_try;;
12784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12785 (eval "$ac_link") 2>conftest.er1
12787 grep -v '^ *+' conftest.er1 >conftest.err
12789 cat conftest.err >&5
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); } &&
12792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12793 { (case "(($ac_try" in
12794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12795 *) ac_try_echo=$ac_try;;
12797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12798 (eval "$ac_try") 2>&5
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); }; } &&
12802 { ac_try='test -s conftest$ac_exeext'
12803 { (case "(($ac_try" in
12804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12805 *) ac_try_echo=$ac_try;;
12807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12808 (eval "$ac_try") 2>&5
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); }; }; then
12812 ac_cv_search_pthread_rwlock_init=$ac_res
12814 echo "$as_me: failed program was:" >&5
12815 sed 's/^/| /' conftest.$ac_ext >&5
12820 rm -f core conftest.err conftest.$ac_objext \
12822 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12826 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12829 ac_cv_search_pthread_rwlock_init=no
12831 rm conftest.$ac_ext
12832 LIBS=$ac_func_search_save_LIBS
12834 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12835 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12836 ac_res=$ac_cv_search_pthread_rwlock_init
12837 if test "$ac_res" != no; then
12838 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12840 cat >>confdefs.h <<\_ACEOF
12841 #define HAVE_PTHREAD_RWLOCK_INIT 1
12846 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12847 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12848 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12849 echo $ECHO_N "(cached) $ECHO_C" >&6
12851 ac_func_search_save_LIBS=$LIBS
12852 cat >conftest.$ac_ext <<_ACEOF
12855 cat confdefs.h >>conftest.$ac_ext
12856 cat >>conftest.$ac_ext <<_ACEOF
12857 /* end confdefs.h. */
12859 /* Override any GCC internal prototype to avoid an error.
12860 Use char because int might match the return type of a GCC
12861 builtin and then its argument prototype would still apply. */
12865 char pthread_getspecific ();
12869 return pthread_getspecific ();
12874 for ac_lib in '' pthread; do
12875 if test -z "$ac_lib"; then
12876 ac_res="none required"
12879 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12881 rm -f conftest.$ac_objext conftest$ac_exeext
12882 if { (ac_try="$ac_link"
12883 case "(($ac_try" in
12884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12885 *) ac_try_echo=$ac_try;;
12887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12888 (eval "$ac_link") 2>conftest.er1
12890 grep -v '^ *+' conftest.er1 >conftest.err
12892 cat conftest.err >&5
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); } &&
12895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12896 { (case "(($ac_try" in
12897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12898 *) ac_try_echo=$ac_try;;
12900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12901 (eval "$ac_try") 2>&5
12903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904 (exit $ac_status); }; } &&
12905 { ac_try='test -s conftest$ac_exeext'
12906 { (case "(($ac_try" in
12907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12908 *) ac_try_echo=$ac_try;;
12910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12911 (eval "$ac_try") 2>&5
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); }; }; then
12915 ac_cv_search_pthread_getspecific=$ac_res
12917 echo "$as_me: failed program was:" >&5
12918 sed 's/^/| /' conftest.$ac_ext >&5
12923 rm -f core conftest.err conftest.$ac_objext \
12925 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12929 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12932 ac_cv_search_pthread_getspecific=no
12934 rm conftest.$ac_ext
12935 LIBS=$ac_func_search_save_LIBS
12937 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
12938 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
12939 ac_res=$ac_cv_search_pthread_getspecific
12940 if test "$ac_res" != no; then
12941 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12943 cat >>confdefs.h <<\_ACEOF
12944 #define HAVE_PTHREAD_GETSPECIFIC 1
12952 # Check whether --with-udis86 was given.
12953 if test "${with_udis86+set}" = set; then
12954 withval=$with_udis86;
12959 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
12962 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
12963 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
12964 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
12965 echo $ECHO_N "(cached) $ECHO_C" >&6
12967 ac_check_lib_save_LIBS=$LIBS
12968 LIBS="-ludis86 $LIBS"
12969 cat >conftest.$ac_ext <<_ACEOF
12972 cat confdefs.h >>conftest.$ac_ext
12973 cat >>conftest.$ac_ext <<_ACEOF
12974 /* end confdefs.h. */
12976 /* Override any GCC internal prototype to avoid an error.
12977 Use char because int might match the return type of a GCC
12978 builtin and then its argument prototype would still apply. */
12991 rm -f conftest.$ac_objext conftest$ac_exeext
12992 if { (ac_try="$ac_link"
12993 case "(($ac_try" in
12994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12995 *) ac_try_echo=$ac_try;;
12997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12998 (eval "$ac_link") 2>conftest.er1
13000 grep -v '^ *+' conftest.er1 >conftest.err
13002 cat conftest.err >&5
13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); } &&
13005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13006 { (case "(($ac_try" in
13007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13008 *) ac_try_echo=$ac_try;;
13010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13011 (eval "$ac_try") 2>&5
13013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014 (exit $ac_status); }; } &&
13015 { ac_try='test -s conftest$ac_exeext'
13016 { (case "(($ac_try" in
13017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13018 *) ac_try_echo=$ac_try;;
13020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13021 (eval "$ac_try") 2>&5
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); }; }; then
13025 ac_cv_lib_udis86_ud_init=yes
13027 echo "$as_me: failed program was:" >&5
13028 sed 's/^/| /' conftest.$ac_ext >&5
13030 ac_cv_lib_udis86_ud_init=no
13033 rm -f core conftest.err conftest.$ac_objext \
13034 conftest$ac_exeext conftest.$ac_ext
13035 LIBS=$ac_check_lib_save_LIBS
13037 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13038 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13039 if test $ac_cv_lib_udis86_ud_init = yes; then
13040 cat >>confdefs.h <<_ACEOF
13041 #define HAVE_LIBUDIS86 1
13044 LIBS="-ludis86 $LIBS"
13048 echo "Error! You need to have libudis86 around."
13060 cat >>confdefs.h <<_ACEOF
13061 #define USE_UDIS86 $USE_UDIS86
13066 # Check whether --with-oprofile was given.
13067 if test "${with_oprofile+set}" = set; then
13068 withval=$with_oprofile;
13072 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13073 no) llvm_cv_oppath=
13076 *) llvm_cv_oppath="${withval}/lib/oprofile"
13077 CPPFLAGS="-I${withval}/include";;
13079 case $llvm_cv_os_type in
13081 if test -n "$llvm_cv_oppath" ; then
13082 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13083 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13084 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13085 if test "${ac_cv_search_bfd_init+set}" = set; then
13086 echo $ECHO_N "(cached) $ECHO_C" >&6
13088 ac_func_search_save_LIBS=$LIBS
13089 cat >conftest.$ac_ext <<_ACEOF
13092 cat confdefs.h >>conftest.$ac_ext
13093 cat >>conftest.$ac_ext <<_ACEOF
13094 /* end confdefs.h. */
13096 /* Override any GCC internal prototype to avoid an error.
13097 Use char because int might match the return type of a GCC
13098 builtin and then its argument prototype would still apply. */
13106 return bfd_init ();
13111 for ac_lib in '' bfd; do
13112 if test -z "$ac_lib"; then
13113 ac_res="none required"
13116 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13118 rm -f conftest.$ac_objext conftest$ac_exeext
13119 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
13127 grep -v '^ *+' conftest.er1 >conftest.err
13129 cat conftest.err >&5
13130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131 (exit $ac_status); } &&
13132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13133 { (case "(($ac_try" in
13134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13135 *) ac_try_echo=$ac_try;;
13137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13138 (eval "$ac_try") 2>&5
13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141 (exit $ac_status); }; } &&
13142 { ac_try='test -s conftest$ac_exeext'
13143 { (case "(($ac_try" in
13144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13145 *) ac_try_echo=$ac_try;;
13147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13148 (eval "$ac_try") 2>&5
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); }; }; then
13152 ac_cv_search_bfd_init=$ac_res
13154 echo "$as_me: failed program was:" >&5
13155 sed 's/^/| /' conftest.$ac_ext >&5
13160 rm -f core conftest.err conftest.$ac_objext \
13162 if test "${ac_cv_search_bfd_init+set}" = set; then
13166 if test "${ac_cv_search_bfd_init+set}" = set; then
13169 ac_cv_search_bfd_init=no
13171 rm conftest.$ac_ext
13172 LIBS=$ac_func_search_save_LIBS
13174 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13175 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13176 ac_res=$ac_cv_search_bfd_init
13177 if test "$ac_res" != no; then
13178 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13182 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13183 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13184 if test "${ac_cv_search_op_open_agent+set}" = set; then
13185 echo $ECHO_N "(cached) $ECHO_C" >&6
13187 ac_func_search_save_LIBS=$LIBS
13188 cat >conftest.$ac_ext <<_ACEOF
13191 cat confdefs.h >>conftest.$ac_ext
13192 cat >>conftest.$ac_ext <<_ACEOF
13193 /* end confdefs.h. */
13195 /* Override any GCC internal prototype to avoid an error.
13196 Use char because int might match the return type of a GCC
13197 builtin and then its argument prototype would still apply. */
13201 char op_open_agent ();
13205 return op_open_agent ();
13210 for ac_lib in '' opagent; do
13211 if test -z "$ac_lib"; then
13212 ac_res="none required"
13215 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13217 rm -f conftest.$ac_objext conftest$ac_exeext
13218 if { (ac_try="$ac_link"
13219 case "(($ac_try" in
13220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13221 *) ac_try_echo=$ac_try;;
13223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13224 (eval "$ac_link") 2>conftest.er1
13226 grep -v '^ *+' conftest.er1 >conftest.err
13228 cat conftest.err >&5
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); } &&
13231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13232 { (case "(($ac_try" in
13233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13234 *) ac_try_echo=$ac_try;;
13236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13237 (eval "$ac_try") 2>&5
13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); }; } &&
13241 { ac_try='test -s conftest$ac_exeext'
13242 { (case "(($ac_try" in
13243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13244 *) ac_try_echo=$ac_try;;
13246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13247 (eval "$ac_try") 2>&5
13249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250 (exit $ac_status); }; }; then
13251 ac_cv_search_op_open_agent=$ac_res
13253 echo "$as_me: failed program was:" >&5
13254 sed 's/^/| /' conftest.$ac_ext >&5
13259 rm -f core conftest.err conftest.$ac_objext \
13261 if test "${ac_cv_search_op_open_agent+set}" = set; then
13265 if test "${ac_cv_search_op_open_agent+set}" = set; then
13268 ac_cv_search_op_open_agent=no
13270 rm conftest.$ac_ext
13271 LIBS=$ac_func_search_save_LIBS
13273 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13274 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13275 ac_res=$ac_cv_search_op_open_agent
13276 if test "$ac_res" != no; then
13277 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13281 echo "Error! You need to have libopagent around."
13286 if test "${ac_cv_header_opagent_h+set}" = set; then
13287 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13288 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13289 if test "${ac_cv_header_opagent_h+set}" = set; then
13290 echo $ECHO_N "(cached) $ECHO_C" >&6
13292 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13293 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13295 # Is the header compilable?
13296 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13297 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13298 cat >conftest.$ac_ext <<_ACEOF
13301 cat confdefs.h >>conftest.$ac_ext
13302 cat >>conftest.$ac_ext <<_ACEOF
13303 /* end confdefs.h. */
13304 $ac_includes_default
13305 #include <opagent.h>
13307 rm -f conftest.$ac_objext
13308 if { (ac_try="$ac_compile"
13309 case "(($ac_try" in
13310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13311 *) ac_try_echo=$ac_try;;
13313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13314 (eval "$ac_compile") 2>conftest.er1
13316 grep -v '^ *+' conftest.er1 >conftest.err
13318 cat conftest.err >&5
13319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320 (exit $ac_status); } &&
13321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13322 { (case "(($ac_try" in
13323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13324 *) ac_try_echo=$ac_try;;
13326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13327 (eval "$ac_try") 2>&5
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); }; } &&
13331 { ac_try='test -s conftest.$ac_objext'
13332 { (case "(($ac_try" in
13333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13334 *) ac_try_echo=$ac_try;;
13336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13337 (eval "$ac_try") 2>&5
13339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340 (exit $ac_status); }; }; then
13341 ac_header_compiler=yes
13343 echo "$as_me: failed program was:" >&5
13344 sed 's/^/| /' conftest.$ac_ext >&5
13346 ac_header_compiler=no
13349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13350 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13351 echo "${ECHO_T}$ac_header_compiler" >&6; }
13353 # Is the header present?
13354 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13355 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13356 cat >conftest.$ac_ext <<_ACEOF
13359 cat confdefs.h >>conftest.$ac_ext
13360 cat >>conftest.$ac_ext <<_ACEOF
13361 /* end confdefs.h. */
13362 #include <opagent.h>
13364 if { (ac_try="$ac_cpp conftest.$ac_ext"
13365 case "(($ac_try" in
13366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13367 *) ac_try_echo=$ac_try;;
13369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13372 grep -v '^ *+' conftest.er1 >conftest.err
13374 cat conftest.err >&5
13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); } >/dev/null; then
13377 if test -s conftest.err; then
13378 ac_cpp_err=$ac_c_preproc_warn_flag
13379 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13386 if test -z "$ac_cpp_err"; then
13387 ac_header_preproc=yes
13389 echo "$as_me: failed program was:" >&5
13390 sed 's/^/| /' conftest.$ac_ext >&5
13392 ac_header_preproc=no
13395 rm -f conftest.err conftest.$ac_ext
13396 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13397 echo "${ECHO_T}$ac_header_preproc" >&6; }
13399 # So? What about this header?
13400 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13402 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13403 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13404 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13405 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13406 ac_header_preproc=yes
13409 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13410 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13411 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13412 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13413 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13414 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13415 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13416 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13417 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13418 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13419 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13420 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13422 ## ------------------------------------ ##
13423 ## Report this to http://llvm.org/bugs/ ##
13424 ## ------------------------------------ ##
13426 ) | sed "s/^/$as_me: WARNING: /" >&2
13429 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13430 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13431 if test "${ac_cv_header_opagent_h+set}" = set; then
13432 echo $ECHO_N "(cached) $ECHO_C" >&6
13434 ac_cv_header_opagent_h=$ac_header_preproc
13436 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13437 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13440 if test $ac_cv_header_opagent_h = yes; then
13444 echo "Error! You need to have opagent.h around."
13452 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13453 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13454 { (exit 1); exit 1; }; } ;;
13465 cat >>confdefs.h <<_ACEOF
13466 #define LLVM_USE_OPROFILE $USE_OPROFILE
13471 # Check whether --with-intel-jitevents was given.
13472 if test "${with_intel_jitevents+set}" = set; then
13473 withval=$with_intel_jitevents;
13474 case $llvm_cv_os_type in
13475 Linux|Win32|Cygwin|MingW) ;;
13477 { { echo "$as_me:$LINENO: error:
13478 Intel JIT API support is available on Linux and Windows only.\"" >&5
13479 echo "$as_me: error:
13480 Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13481 { (exit 1); exit 1; }; } ;;
13484 USE_INTEL_JITEVENTS=1
13486 case "$llvm_cv_target_arch" in
13487 x86) llvm_intel_jitevents_archdir="lib32";;
13488 x86_64) llvm_intel_jitevents_archdir="lib64";;
13489 *) echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13492 INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13493 INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13495 /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13496 INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13503 LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
13504 CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
13506 { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13507 echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13508 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13509 echo $ECHO_N "(cached) $ECHO_C" >&6
13511 ac_func_search_save_LIBS=$LIBS
13512 cat >conftest.$ac_ext <<_ACEOF
13515 cat confdefs.h >>conftest.$ac_ext
13516 cat >>conftest.$ac_ext <<_ACEOF
13517 /* end confdefs.h. */
13519 /* Override any GCC internal prototype to avoid an error.
13520 Use char because int might match the return type of a GCC
13521 builtin and then its argument prototype would still apply. */
13525 char iJIT_IsProfilingActive ();
13529 return iJIT_IsProfilingActive ();
13534 for ac_lib in '' jitprofiling; do
13535 if test -z "$ac_lib"; then
13536 ac_res="none required"
13539 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13541 rm -f conftest.$ac_objext conftest$ac_exeext
13542 if { (ac_try="$ac_link"
13543 case "(($ac_try" in
13544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13545 *) ac_try_echo=$ac_try;;
13547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13548 (eval "$ac_link") 2>conftest.er1
13550 grep -v '^ *+' conftest.er1 >conftest.err
13552 cat conftest.err >&5
13553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554 (exit $ac_status); } &&
13555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13556 { (case "(($ac_try" in
13557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13558 *) ac_try_echo=$ac_try;;
13560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13561 (eval "$ac_try") 2>&5
13563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564 (exit $ac_status); }; } &&
13565 { ac_try='test -s conftest$ac_exeext'
13566 { (case "(($ac_try" in
13567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13568 *) ac_try_echo=$ac_try;;
13570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13571 (eval "$ac_try") 2>&5
13573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574 (exit $ac_status); }; }; then
13575 ac_cv_search_iJIT_IsProfilingActive=$ac_res
13577 echo "$as_me: failed program was:" >&5
13578 sed 's/^/| /' conftest.$ac_ext >&5
13583 rm -f core conftest.err conftest.$ac_objext \
13585 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13589 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13592 ac_cv_search_iJIT_IsProfilingActive=no
13594 rm conftest.$ac_ext
13595 LIBS=$ac_func_search_save_LIBS
13597 { echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13598 echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13599 ac_res=$ac_cv_search_iJIT_IsProfilingActive
13600 if test "$ac_res" != no; then
13601 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13605 echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13610 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13611 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13612 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13613 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13614 echo $ECHO_N "(cached) $ECHO_C" >&6
13616 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13617 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13619 # Is the header compilable?
13620 { echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13621 echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13622 cat >conftest.$ac_ext <<_ACEOF
13625 cat confdefs.h >>conftest.$ac_ext
13626 cat >>conftest.$ac_ext <<_ACEOF
13627 /* end confdefs.h. */
13628 $ac_includes_default
13629 #include <jitprofiling.h>
13631 rm -f conftest.$ac_objext
13632 if { (ac_try="$ac_compile"
13633 case "(($ac_try" in
13634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13635 *) ac_try_echo=$ac_try;;
13637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13638 (eval "$ac_compile") 2>conftest.er1
13640 grep -v '^ *+' conftest.er1 >conftest.err
13642 cat conftest.err >&5
13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644 (exit $ac_status); } &&
13645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13646 { (case "(($ac_try" in
13647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13648 *) ac_try_echo=$ac_try;;
13650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13651 (eval "$ac_try") 2>&5
13653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); }; } &&
13655 { ac_try='test -s conftest.$ac_objext'
13656 { (case "(($ac_try" in
13657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13658 *) ac_try_echo=$ac_try;;
13660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13661 (eval "$ac_try") 2>&5
13663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664 (exit $ac_status); }; }; then
13665 ac_header_compiler=yes
13667 echo "$as_me: failed program was:" >&5
13668 sed 's/^/| /' conftest.$ac_ext >&5
13670 ac_header_compiler=no
13673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13674 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13675 echo "${ECHO_T}$ac_header_compiler" >&6; }
13677 # Is the header present?
13678 { echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13679 echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13680 cat >conftest.$ac_ext <<_ACEOF
13683 cat confdefs.h >>conftest.$ac_ext
13684 cat >>conftest.$ac_ext <<_ACEOF
13685 /* end confdefs.h. */
13686 #include <jitprofiling.h>
13688 if { (ac_try="$ac_cpp conftest.$ac_ext"
13689 case "(($ac_try" in
13690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13691 *) ac_try_echo=$ac_try;;
13693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13694 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13696 grep -v '^ *+' conftest.er1 >conftest.err
13698 cat conftest.err >&5
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); } >/dev/null; then
13701 if test -s conftest.err; then
13702 ac_cpp_err=$ac_c_preproc_warn_flag
13703 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13710 if test -z "$ac_cpp_err"; then
13711 ac_header_preproc=yes
13713 echo "$as_me: failed program was:" >&5
13714 sed 's/^/| /' conftest.$ac_ext >&5
13716 ac_header_preproc=no
13719 rm -f conftest.err conftest.$ac_ext
13720 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13721 echo "${ECHO_T}$ac_header_preproc" >&6; }
13723 # So? What about this header?
13724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13726 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13727 echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13728 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13729 echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13730 ac_header_preproc=yes
13733 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13734 echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13735 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&5
13736 echo "$as_me: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&2;}
13737 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13738 echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13739 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&5
13740 echo "$as_me: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&2;}
13741 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13742 echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13743 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13744 echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13746 ## ------------------------------------ ##
13747 ## Report this to http://llvm.org/bugs/ ##
13748 ## ------------------------------------ ##
13750 ) | sed "s/^/$as_me: WARNING: /" >&2
13753 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13754 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13755 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13756 echo $ECHO_N "(cached) $ECHO_C" >&6
13758 ac_cv_header_jitprofiling_h=$ac_header_preproc
13760 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13761 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13764 if test $ac_cv_header_jitprofiling_h = yes; then
13768 echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13778 USE_INTEL_JITEVENTS=0
13784 cat >>confdefs.h <<_ACEOF
13785 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13795 ac_header_dirent=no
13796 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13797 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13798 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13799 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13801 echo $ECHO_N "(cached) $ECHO_C" >&6
13803 cat >conftest.$ac_ext <<_ACEOF
13806 cat confdefs.h >>conftest.$ac_ext
13807 cat >>conftest.$ac_ext <<_ACEOF
13808 /* end confdefs.h. */
13809 #include <sys/types.h>
13821 rm -f conftest.$ac_objext
13822 if { (ac_try="$ac_compile"
13823 case "(($ac_try" in
13824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13825 *) ac_try_echo=$ac_try;;
13827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13828 (eval "$ac_compile") 2>conftest.er1
13830 grep -v '^ *+' conftest.er1 >conftest.err
13832 cat conftest.err >&5
13833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834 (exit $ac_status); } &&
13835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13836 { (case "(($ac_try" in
13837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13838 *) ac_try_echo=$ac_try;;
13840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13841 (eval "$ac_try") 2>&5
13843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844 (exit $ac_status); }; } &&
13845 { ac_try='test -s conftest.$ac_objext'
13846 { (case "(($ac_try" in
13847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13848 *) ac_try_echo=$ac_try;;
13850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13851 (eval "$ac_try") 2>&5
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); }; }; then
13855 eval "$as_ac_Header=yes"
13857 echo "$as_me: failed program was:" >&5
13858 sed 's/^/| /' conftest.$ac_ext >&5
13860 eval "$as_ac_Header=no"
13863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13865 ac_res=`eval echo '${'$as_ac_Header'}'`
13866 { echo "$as_me:$LINENO: result: $ac_res" >&5
13867 echo "${ECHO_T}$ac_res" >&6; }
13868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13869 cat >>confdefs.h <<_ACEOF
13870 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13873 ac_header_dirent=$ac_hdr; break
13877 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13878 if test $ac_header_dirent = dirent.h; then
13879 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13880 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13881 if test "${ac_cv_search_opendir+set}" = set; then
13882 echo $ECHO_N "(cached) $ECHO_C" >&6
13884 ac_func_search_save_LIBS=$LIBS
13885 cat >conftest.$ac_ext <<_ACEOF
13888 cat confdefs.h >>conftest.$ac_ext
13889 cat >>conftest.$ac_ext <<_ACEOF
13890 /* end confdefs.h. */
13892 /* Override any GCC internal prototype to avoid an error.
13893 Use char because int might match the return type of a GCC
13894 builtin and then its argument prototype would still apply. */
13907 for ac_lib in '' dir; do
13908 if test -z "$ac_lib"; then
13909 ac_res="none required"
13912 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13914 rm -f conftest.$ac_objext conftest$ac_exeext
13915 if { (ac_try="$ac_link"
13916 case "(($ac_try" in
13917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13918 *) ac_try_echo=$ac_try;;
13920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13921 (eval "$ac_link") 2>conftest.er1
13923 grep -v '^ *+' conftest.er1 >conftest.err
13925 cat conftest.err >&5
13926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); } &&
13928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13929 { (case "(($ac_try" in
13930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13931 *) ac_try_echo=$ac_try;;
13933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13934 (eval "$ac_try") 2>&5
13936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937 (exit $ac_status); }; } &&
13938 { ac_try='test -s conftest$ac_exeext'
13939 { (case "(($ac_try" in
13940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13941 *) ac_try_echo=$ac_try;;
13943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13944 (eval "$ac_try") 2>&5
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); }; }; then
13948 ac_cv_search_opendir=$ac_res
13950 echo "$as_me: failed program was:" >&5
13951 sed 's/^/| /' conftest.$ac_ext >&5
13956 rm -f core conftest.err conftest.$ac_objext \
13958 if test "${ac_cv_search_opendir+set}" = set; then
13962 if test "${ac_cv_search_opendir+set}" = set; then
13965 ac_cv_search_opendir=no
13967 rm conftest.$ac_ext
13968 LIBS=$ac_func_search_save_LIBS
13970 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13971 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13972 ac_res=$ac_cv_search_opendir
13973 if test "$ac_res" != no; then
13974 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13979 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13980 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13981 if test "${ac_cv_search_opendir+set}" = set; then
13982 echo $ECHO_N "(cached) $ECHO_C" >&6
13984 ac_func_search_save_LIBS=$LIBS
13985 cat >conftest.$ac_ext <<_ACEOF
13988 cat confdefs.h >>conftest.$ac_ext
13989 cat >>conftest.$ac_ext <<_ACEOF
13990 /* end confdefs.h. */
13992 /* Override any GCC internal prototype to avoid an error.
13993 Use char because int might match the return type of a GCC
13994 builtin and then its argument prototype would still apply. */
14007 for ac_lib in '' x; do
14008 if test -z "$ac_lib"; then
14009 ac_res="none required"
14012 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14014 rm -f conftest.$ac_objext conftest$ac_exeext
14015 if { (ac_try="$ac_link"
14016 case "(($ac_try" in
14017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14018 *) ac_try_echo=$ac_try;;
14020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14021 (eval "$ac_link") 2>conftest.er1
14023 grep -v '^ *+' conftest.er1 >conftest.err
14025 cat conftest.err >&5
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); } &&
14028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14029 { (case "(($ac_try" in
14030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14031 *) ac_try_echo=$ac_try;;
14033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14034 (eval "$ac_try") 2>&5
14036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037 (exit $ac_status); }; } &&
14038 { ac_try='test -s conftest$ac_exeext'
14039 { (case "(($ac_try" in
14040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14041 *) ac_try_echo=$ac_try;;
14043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14044 (eval "$ac_try") 2>&5
14046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047 (exit $ac_status); }; }; then
14048 ac_cv_search_opendir=$ac_res
14050 echo "$as_me: failed program was:" >&5
14051 sed 's/^/| /' conftest.$ac_ext >&5
14056 rm -f core conftest.err conftest.$ac_objext \
14058 if test "${ac_cv_search_opendir+set}" = set; then
14062 if test "${ac_cv_search_opendir+set}" = set; then
14065 ac_cv_search_opendir=no
14067 rm conftest.$ac_ext
14068 LIBS=$ac_func_search_save_LIBS
14070 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14071 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14072 ac_res=$ac_cv_search_opendir
14073 if test "$ac_res" != no; then
14074 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14080 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14081 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14082 if test "${ac_cv_header_mmap_anon+set}" = set; then
14083 echo $ECHO_N "(cached) $ECHO_C" >&6
14086 ac_cpp='$CPP $CPPFLAGS'
14087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14091 cat >conftest.$ac_ext <<_ACEOF
14094 cat confdefs.h >>conftest.$ac_ext
14095 cat >>conftest.$ac_ext <<_ACEOF
14096 /* end confdefs.h. */
14097 #include <sys/mman.h>
14098 #include <unistd.h>
14103 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14108 rm -f conftest.$ac_objext
14109 if { (ac_try="$ac_compile"
14110 case "(($ac_try" in
14111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14112 *) ac_try_echo=$ac_try;;
14114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14115 (eval "$ac_compile") 2>conftest.er1
14117 grep -v '^ *+' conftest.er1 >conftest.err
14119 cat conftest.err >&5
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); } &&
14122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14123 { (case "(($ac_try" in
14124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14125 *) ac_try_echo=$ac_try;;
14127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14128 (eval "$ac_try") 2>&5
14130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131 (exit $ac_status); }; } &&
14132 { ac_try='test -s conftest.$ac_objext'
14133 { (case "(($ac_try" in
14134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14135 *) ac_try_echo=$ac_try;;
14137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14138 (eval "$ac_try") 2>&5
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); }; }; then
14142 ac_cv_header_mmap_anon=yes
14144 echo "$as_me: failed program was:" >&5
14145 sed 's/^/| /' conftest.$ac_ext >&5
14147 ac_cv_header_mmap_anon=no
14150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14152 ac_cpp='$CPP $CPPFLAGS'
14153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14159 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14160 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14161 if test "$ac_cv_header_mmap_anon" = yes; then
14163 cat >>confdefs.h <<\_ACEOF
14164 #define HAVE_MMAP_ANONYMOUS 1
14169 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14170 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14171 if test "${ac_cv_header_stat_broken+set}" = set; then
14172 echo $ECHO_N "(cached) $ECHO_C" >&6
14174 cat >conftest.$ac_ext <<_ACEOF
14177 cat confdefs.h >>conftest.$ac_ext
14178 cat >>conftest.$ac_ext <<_ACEOF
14179 /* end confdefs.h. */
14180 #include <sys/types.h>
14181 #include <sys/stat.h>
14183 #if defined S_ISBLK && defined S_IFDIR
14184 # if S_ISBLK (S_IFDIR)
14189 #if defined S_ISBLK && defined S_IFCHR
14190 # if S_ISBLK (S_IFCHR)
14195 #if defined S_ISLNK && defined S_IFREG
14196 # if S_ISLNK (S_IFREG)
14201 #if defined S_ISSOCK && defined S_IFREG
14202 # if S_ISSOCK (S_IFREG)
14208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14209 $EGREP "You lose" >/dev/null 2>&1; then
14210 ac_cv_header_stat_broken=yes
14212 ac_cv_header_stat_broken=no
14217 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14218 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14219 if test $ac_cv_header_stat_broken = yes; then
14221 cat >>confdefs.h <<\_ACEOF
14222 #define STAT_MACROS_BROKEN 1
14227 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14228 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14229 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14230 echo $ECHO_N "(cached) $ECHO_C" >&6
14232 cat >conftest.$ac_ext <<_ACEOF
14235 cat confdefs.h >>conftest.$ac_ext
14236 cat >>conftest.$ac_ext <<_ACEOF
14237 /* end confdefs.h. */
14238 #include <sys/types.h>
14239 #include <sys/wait.h>
14240 #ifndef WEXITSTATUS
14241 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14244 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14252 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14257 rm -f conftest.$ac_objext
14258 if { (ac_try="$ac_compile"
14259 case "(($ac_try" in
14260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14261 *) ac_try_echo=$ac_try;;
14263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14264 (eval "$ac_compile") 2>conftest.er1
14266 grep -v '^ *+' conftest.er1 >conftest.err
14268 cat conftest.err >&5
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); } &&
14271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14272 { (case "(($ac_try" in
14273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14274 *) ac_try_echo=$ac_try;;
14276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14277 (eval "$ac_try") 2>&5
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); }; } &&
14281 { ac_try='test -s conftest.$ac_objext'
14282 { (case "(($ac_try" in
14283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14284 *) ac_try_echo=$ac_try;;
14286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14287 (eval "$ac_try") 2>&5
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); }; }; then
14291 ac_cv_header_sys_wait_h=yes
14293 echo "$as_me: failed program was:" >&5
14294 sed 's/^/| /' conftest.$ac_ext >&5
14296 ac_cv_header_sys_wait_h=no
14299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14301 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14302 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14303 if test $ac_cv_header_sys_wait_h = yes; then
14305 cat >>confdefs.h <<\_ACEOF
14306 #define HAVE_SYS_WAIT_H 1
14311 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14312 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14313 if test "${ac_cv_header_time+set}" = set; then
14314 echo $ECHO_N "(cached) $ECHO_C" >&6
14316 cat >conftest.$ac_ext <<_ACEOF
14319 cat confdefs.h >>conftest.$ac_ext
14320 cat >>conftest.$ac_ext <<_ACEOF
14321 /* end confdefs.h. */
14322 #include <sys/types.h>
14323 #include <sys/time.h>
14329 if ((struct tm *) 0)
14335 rm -f conftest.$ac_objext
14336 if { (ac_try="$ac_compile"
14337 case "(($ac_try" in
14338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14339 *) ac_try_echo=$ac_try;;
14341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14342 (eval "$ac_compile") 2>conftest.er1
14344 grep -v '^ *+' conftest.er1 >conftest.err
14346 cat conftest.err >&5
14347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348 (exit $ac_status); } &&
14349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14350 { (case "(($ac_try" in
14351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14352 *) ac_try_echo=$ac_try;;
14354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14355 (eval "$ac_try") 2>&5
14357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358 (exit $ac_status); }; } &&
14359 { ac_try='test -s conftest.$ac_objext'
14360 { (case "(($ac_try" in
14361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14362 *) ac_try_echo=$ac_try;;
14364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14365 (eval "$ac_try") 2>&5
14367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368 (exit $ac_status); }; }; then
14369 ac_cv_header_time=yes
14371 echo "$as_me: failed program was:" >&5
14372 sed 's/^/| /' conftest.$ac_ext >&5
14374 ac_cv_header_time=no
14377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14379 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14380 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14381 if test $ac_cv_header_time = yes; then
14383 cat >>confdefs.h <<\_ACEOF
14384 #define TIME_WITH_SYS_TIME 1
14396 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14398 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14400 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14403 echo $ECHO_N "(cached) $ECHO_C" >&6
14405 ac_res=`eval echo '${'$as_ac_Header'}'`
14406 { echo "$as_me:$LINENO: result: $ac_res" >&5
14407 echo "${ECHO_T}$ac_res" >&6; }
14409 # Is the header compilable?
14410 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14411 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14412 cat >conftest.$ac_ext <<_ACEOF
14415 cat confdefs.h >>conftest.$ac_ext
14416 cat >>conftest.$ac_ext <<_ACEOF
14417 /* end confdefs.h. */
14418 $ac_includes_default
14419 #include <$ac_header>
14421 rm -f conftest.$ac_objext
14422 if { (ac_try="$ac_compile"
14423 case "(($ac_try" in
14424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14425 *) ac_try_echo=$ac_try;;
14427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14428 (eval "$ac_compile") 2>conftest.er1
14430 grep -v '^ *+' conftest.er1 >conftest.err
14432 cat conftest.err >&5
14433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); } &&
14435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14436 { (case "(($ac_try" in
14437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14438 *) ac_try_echo=$ac_try;;
14440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14441 (eval "$ac_try") 2>&5
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); }; } &&
14445 { ac_try='test -s conftest.$ac_objext'
14446 { (case "(($ac_try" in
14447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14448 *) ac_try_echo=$ac_try;;
14450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14451 (eval "$ac_try") 2>&5
14453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454 (exit $ac_status); }; }; then
14455 ac_header_compiler=yes
14457 echo "$as_me: failed program was:" >&5
14458 sed 's/^/| /' conftest.$ac_ext >&5
14460 ac_header_compiler=no
14463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14464 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14465 echo "${ECHO_T}$ac_header_compiler" >&6; }
14467 # Is the header present?
14468 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14469 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14470 cat >conftest.$ac_ext <<_ACEOF
14473 cat confdefs.h >>conftest.$ac_ext
14474 cat >>conftest.$ac_ext <<_ACEOF
14475 /* end confdefs.h. */
14476 #include <$ac_header>
14478 if { (ac_try="$ac_cpp conftest.$ac_ext"
14479 case "(($ac_try" in
14480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14481 *) ac_try_echo=$ac_try;;
14483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14484 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14486 grep -v '^ *+' conftest.er1 >conftest.err
14488 cat conftest.err >&5
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); } >/dev/null; then
14491 if test -s conftest.err; then
14492 ac_cpp_err=$ac_c_preproc_warn_flag
14493 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14500 if test -z "$ac_cpp_err"; then
14501 ac_header_preproc=yes
14503 echo "$as_me: failed program was:" >&5
14504 sed 's/^/| /' conftest.$ac_ext >&5
14506 ac_header_preproc=no
14509 rm -f conftest.err conftest.$ac_ext
14510 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14511 echo "${ECHO_T}$ac_header_preproc" >&6; }
14513 # So? What about this header?
14514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14516 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14517 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14519 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14520 ac_header_preproc=yes
14523 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14524 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14525 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14526 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14527 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14528 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14529 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14530 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14533 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14534 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14536 ## ------------------------------------ ##
14537 ## Report this to http://llvm.org/bugs/ ##
14538 ## ------------------------------------ ##
14540 ) | sed "s/^/$as_me: WARNING: /" >&2
14543 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14546 echo $ECHO_N "(cached) $ECHO_C" >&6
14548 eval "$as_ac_Header=\$ac_header_preproc"
14550 ac_res=`eval echo '${'$as_ac_Header'}'`
14551 { echo "$as_me:$LINENO: result: $ac_res" >&5
14552 echo "${ECHO_T}$ac_res" >&6; }
14555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14556 cat >>confdefs.h <<_ACEOF
14557 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14570 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14572 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14574 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14577 echo $ECHO_N "(cached) $ECHO_C" >&6
14579 ac_res=`eval echo '${'$as_ac_Header'}'`
14580 { echo "$as_me:$LINENO: result: $ac_res" >&5
14581 echo "${ECHO_T}$ac_res" >&6; }
14583 # Is the header compilable?
14584 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14585 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14586 cat >conftest.$ac_ext <<_ACEOF
14589 cat confdefs.h >>conftest.$ac_ext
14590 cat >>conftest.$ac_ext <<_ACEOF
14591 /* end confdefs.h. */
14592 $ac_includes_default
14593 #include <$ac_header>
14595 rm -f conftest.$ac_objext
14596 if { (ac_try="$ac_compile"
14597 case "(($ac_try" in
14598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14599 *) ac_try_echo=$ac_try;;
14601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14602 (eval "$ac_compile") 2>conftest.er1
14604 grep -v '^ *+' conftest.er1 >conftest.err
14606 cat conftest.err >&5
14607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608 (exit $ac_status); } &&
14609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14610 { (case "(($ac_try" in
14611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14612 *) ac_try_echo=$ac_try;;
14614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14615 (eval "$ac_try") 2>&5
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); }; } &&
14619 { ac_try='test -s conftest.$ac_objext'
14620 { (case "(($ac_try" in
14621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14622 *) ac_try_echo=$ac_try;;
14624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14625 (eval "$ac_try") 2>&5
14627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 (exit $ac_status); }; }; then
14629 ac_header_compiler=yes
14631 echo "$as_me: failed program was:" >&5
14632 sed 's/^/| /' conftest.$ac_ext >&5
14634 ac_header_compiler=no
14637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14638 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14639 echo "${ECHO_T}$ac_header_compiler" >&6; }
14641 # Is the header present?
14642 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14643 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14644 cat >conftest.$ac_ext <<_ACEOF
14647 cat confdefs.h >>conftest.$ac_ext
14648 cat >>conftest.$ac_ext <<_ACEOF
14649 /* end confdefs.h. */
14650 #include <$ac_header>
14652 if { (ac_try="$ac_cpp conftest.$ac_ext"
14653 case "(($ac_try" in
14654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14655 *) ac_try_echo=$ac_try;;
14657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14660 grep -v '^ *+' conftest.er1 >conftest.err
14662 cat conftest.err >&5
14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 (exit $ac_status); } >/dev/null; then
14665 if test -s conftest.err; then
14666 ac_cpp_err=$ac_c_preproc_warn_flag
14667 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14674 if test -z "$ac_cpp_err"; then
14675 ac_header_preproc=yes
14677 echo "$as_me: failed program was:" >&5
14678 sed 's/^/| /' conftest.$ac_ext >&5
14680 ac_header_preproc=no
14683 rm -f conftest.err conftest.$ac_ext
14684 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14685 echo "${ECHO_T}$ac_header_preproc" >&6; }
14687 # So? What about this header?
14688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14694 ac_header_preproc=yes
14697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14700 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14702 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14704 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14708 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14710 ## ------------------------------------ ##
14711 ## Report this to http://llvm.org/bugs/ ##
14712 ## ------------------------------------ ##
14714 ) | sed "s/^/$as_me: WARNING: /" >&2
14717 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14720 echo $ECHO_N "(cached) $ECHO_C" >&6
14722 eval "$as_ac_Header=\$ac_header_preproc"
14724 ac_res=`eval echo '${'$as_ac_Header'}'`
14725 { echo "$as_me:$LINENO: result: $ac_res" >&5
14726 echo "${ECHO_T}$ac_res" >&6; }
14729 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14730 cat >>confdefs.h <<_ACEOF
14731 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14740 for ac_header in utime.h windows.h
14742 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14743 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14744 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14745 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14746 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14747 echo $ECHO_N "(cached) $ECHO_C" >&6
14749 ac_res=`eval echo '${'$as_ac_Header'}'`
14750 { echo "$as_me:$LINENO: result: $ac_res" >&5
14751 echo "${ECHO_T}$ac_res" >&6; }
14753 # Is the header compilable?
14754 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14755 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14756 cat >conftest.$ac_ext <<_ACEOF
14759 cat confdefs.h >>conftest.$ac_ext
14760 cat >>conftest.$ac_ext <<_ACEOF
14761 /* end confdefs.h. */
14762 $ac_includes_default
14763 #include <$ac_header>
14765 rm -f conftest.$ac_objext
14766 if { (ac_try="$ac_compile"
14767 case "(($ac_try" in
14768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14769 *) ac_try_echo=$ac_try;;
14771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14772 (eval "$ac_compile") 2>conftest.er1
14774 grep -v '^ *+' conftest.er1 >conftest.err
14776 cat conftest.err >&5
14777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14778 (exit $ac_status); } &&
14779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14780 { (case "(($ac_try" in
14781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14782 *) ac_try_echo=$ac_try;;
14784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14785 (eval "$ac_try") 2>&5
14787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788 (exit $ac_status); }; } &&
14789 { ac_try='test -s conftest.$ac_objext'
14790 { (case "(($ac_try" in
14791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14792 *) ac_try_echo=$ac_try;;
14794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14795 (eval "$ac_try") 2>&5
14797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798 (exit $ac_status); }; }; then
14799 ac_header_compiler=yes
14801 echo "$as_me: failed program was:" >&5
14802 sed 's/^/| /' conftest.$ac_ext >&5
14804 ac_header_compiler=no
14807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14808 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14809 echo "${ECHO_T}$ac_header_compiler" >&6; }
14811 # Is the header present?
14812 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14813 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14814 cat >conftest.$ac_ext <<_ACEOF
14817 cat confdefs.h >>conftest.$ac_ext
14818 cat >>conftest.$ac_ext <<_ACEOF
14819 /* end confdefs.h. */
14820 #include <$ac_header>
14822 if { (ac_try="$ac_cpp conftest.$ac_ext"
14823 case "(($ac_try" in
14824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14825 *) ac_try_echo=$ac_try;;
14827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14830 grep -v '^ *+' conftest.er1 >conftest.err
14832 cat conftest.err >&5
14833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834 (exit $ac_status); } >/dev/null; then
14835 if test -s conftest.err; then
14836 ac_cpp_err=$ac_c_preproc_warn_flag
14837 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14844 if test -z "$ac_cpp_err"; then
14845 ac_header_preproc=yes
14847 echo "$as_me: failed program was:" >&5
14848 sed 's/^/| /' conftest.$ac_ext >&5
14850 ac_header_preproc=no
14853 rm -f conftest.err conftest.$ac_ext
14854 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14855 echo "${ECHO_T}$ac_header_preproc" >&6; }
14857 # So? What about this header?
14858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14860 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14861 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14863 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14864 ac_header_preproc=yes
14867 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14868 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14869 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14870 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14871 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14872 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14873 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14874 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14876 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14877 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14878 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14880 ## ------------------------------------ ##
14881 ## Report this to http://llvm.org/bugs/ ##
14882 ## ------------------------------------ ##
14884 ) | sed "s/^/$as_me: WARNING: /" >&2
14887 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14890 echo $ECHO_N "(cached) $ECHO_C" >&6
14892 eval "$as_ac_Header=\$ac_header_preproc"
14894 ac_res=`eval echo '${'$as_ac_Header'}'`
14895 { echo "$as_me:$LINENO: result: $ac_res" >&5
14896 echo "${ECHO_T}$ac_res" >&6; }
14899 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14900 cat >>confdefs.h <<_ACEOF
14901 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14913 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14915 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14917 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14920 echo $ECHO_N "(cached) $ECHO_C" >&6
14922 ac_res=`eval echo '${'$as_ac_Header'}'`
14923 { echo "$as_me:$LINENO: result: $ac_res" >&5
14924 echo "${ECHO_T}$ac_res" >&6; }
14926 # Is the header compilable?
14927 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14928 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14929 cat >conftest.$ac_ext <<_ACEOF
14932 cat confdefs.h >>conftest.$ac_ext
14933 cat >>conftest.$ac_ext <<_ACEOF
14934 /* end confdefs.h. */
14935 $ac_includes_default
14936 #include <$ac_header>
14938 rm -f conftest.$ac_objext
14939 if { (ac_try="$ac_compile"
14940 case "(($ac_try" in
14941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14942 *) ac_try_echo=$ac_try;;
14944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14945 (eval "$ac_compile") 2>conftest.er1
14947 grep -v '^ *+' conftest.er1 >conftest.err
14949 cat conftest.err >&5
14950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951 (exit $ac_status); } &&
14952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14953 { (case "(($ac_try" in
14954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14955 *) ac_try_echo=$ac_try;;
14957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14958 (eval "$ac_try") 2>&5
14960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961 (exit $ac_status); }; } &&
14962 { ac_try='test -s conftest.$ac_objext'
14963 { (case "(($ac_try" in
14964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14965 *) ac_try_echo=$ac_try;;
14967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14968 (eval "$ac_try") 2>&5
14970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); }; }; then
14972 ac_header_compiler=yes
14974 echo "$as_me: failed program was:" >&5
14975 sed 's/^/| /' conftest.$ac_ext >&5
14977 ac_header_compiler=no
14980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14981 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14982 echo "${ECHO_T}$ac_header_compiler" >&6; }
14984 # Is the header present?
14985 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14986 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14987 cat >conftest.$ac_ext <<_ACEOF
14990 cat confdefs.h >>conftest.$ac_ext
14991 cat >>conftest.$ac_ext <<_ACEOF
14992 /* end confdefs.h. */
14993 #include <$ac_header>
14995 if { (ac_try="$ac_cpp conftest.$ac_ext"
14996 case "(($ac_try" in
14997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14998 *) ac_try_echo=$ac_try;;
15000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15001 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15003 grep -v '^ *+' conftest.er1 >conftest.err
15005 cat conftest.err >&5
15006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); } >/dev/null; then
15008 if test -s conftest.err; then
15009 ac_cpp_err=$ac_c_preproc_warn_flag
15010 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15017 if test -z "$ac_cpp_err"; then
15018 ac_header_preproc=yes
15020 echo "$as_me: failed program was:" >&5
15021 sed 's/^/| /' conftest.$ac_ext >&5
15023 ac_header_preproc=no
15026 rm -f conftest.err conftest.$ac_ext
15027 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15028 echo "${ECHO_T}$ac_header_preproc" >&6; }
15030 # So? What about this header?
15031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15033 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15034 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15036 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15037 ac_header_preproc=yes
15040 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15041 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15042 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15043 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15044 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15045 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15046 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15047 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15049 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15050 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15051 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15053 ## ------------------------------------ ##
15054 ## Report this to http://llvm.org/bugs/ ##
15055 ## ------------------------------------ ##
15057 ) | sed "s/^/$as_me: WARNING: /" >&2
15060 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15062 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15063 echo $ECHO_N "(cached) $ECHO_C" >&6
15065 eval "$as_ac_Header=\$ac_header_preproc"
15067 ac_res=`eval echo '${'$as_ac_Header'}'`
15068 { echo "$as_me:$LINENO: result: $ac_res" >&5
15069 echo "${ECHO_T}$ac_res" >&6; }
15072 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15073 cat >>confdefs.h <<_ACEOF
15074 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15085 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15087 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15089 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15091 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15092 echo $ECHO_N "(cached) $ECHO_C" >&6
15094 ac_res=`eval echo '${'$as_ac_Header'}'`
15095 { echo "$as_me:$LINENO: result: $ac_res" >&5
15096 echo "${ECHO_T}$ac_res" >&6; }
15098 # Is the header compilable?
15099 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15100 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15101 cat >conftest.$ac_ext <<_ACEOF
15104 cat confdefs.h >>conftest.$ac_ext
15105 cat >>conftest.$ac_ext <<_ACEOF
15106 /* end confdefs.h. */
15107 $ac_includes_default
15108 #include <$ac_header>
15110 rm -f conftest.$ac_objext
15111 if { (ac_try="$ac_compile"
15112 case "(($ac_try" in
15113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15114 *) ac_try_echo=$ac_try;;
15116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15117 (eval "$ac_compile") 2>conftest.er1
15119 grep -v '^ *+' conftest.er1 >conftest.err
15121 cat conftest.err >&5
15122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123 (exit $ac_status); } &&
15124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15125 { (case "(($ac_try" in
15126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15127 *) ac_try_echo=$ac_try;;
15129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15130 (eval "$ac_try") 2>&5
15132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15133 (exit $ac_status); }; } &&
15134 { ac_try='test -s conftest.$ac_objext'
15135 { (case "(($ac_try" in
15136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15137 *) ac_try_echo=$ac_try;;
15139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15140 (eval "$ac_try") 2>&5
15142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); }; }; then
15144 ac_header_compiler=yes
15146 echo "$as_me: failed program was:" >&5
15147 sed 's/^/| /' conftest.$ac_ext >&5
15149 ac_header_compiler=no
15152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15153 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15154 echo "${ECHO_T}$ac_header_compiler" >&6; }
15156 # Is the header present?
15157 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15158 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15159 cat >conftest.$ac_ext <<_ACEOF
15162 cat confdefs.h >>conftest.$ac_ext
15163 cat >>conftest.$ac_ext <<_ACEOF
15164 /* end confdefs.h. */
15165 #include <$ac_header>
15167 if { (ac_try="$ac_cpp conftest.$ac_ext"
15168 case "(($ac_try" in
15169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15170 *) ac_try_echo=$ac_try;;
15172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15175 grep -v '^ *+' conftest.er1 >conftest.err
15177 cat conftest.err >&5
15178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15179 (exit $ac_status); } >/dev/null; then
15180 if test -s conftest.err; then
15181 ac_cpp_err=$ac_c_preproc_warn_flag
15182 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15189 if test -z "$ac_cpp_err"; then
15190 ac_header_preproc=yes
15192 echo "$as_me: failed program was:" >&5
15193 sed 's/^/| /' conftest.$ac_ext >&5
15195 ac_header_preproc=no
15198 rm -f conftest.err conftest.$ac_ext
15199 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15200 echo "${ECHO_T}$ac_header_preproc" >&6; }
15202 # So? What about this header?
15203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15205 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15206 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15208 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15209 ac_header_preproc=yes
15212 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15213 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15214 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15215 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15216 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15217 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15218 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15219 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15222 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15223 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15225 ## ------------------------------------ ##
15226 ## Report this to http://llvm.org/bugs/ ##
15227 ## ------------------------------------ ##
15229 ) | sed "s/^/$as_me: WARNING: /" >&2
15232 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15235 echo $ECHO_N "(cached) $ECHO_C" >&6
15237 eval "$as_ac_Header=\$ac_header_preproc"
15239 ac_res=`eval echo '${'$as_ac_Header'}'`
15240 { echo "$as_me:$LINENO: result: $ac_res" >&5
15241 echo "${ECHO_T}$ac_res" >&6; }
15244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15245 cat >>confdefs.h <<_ACEOF
15246 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15254 for ac_header in valgrind/valgrind.h
15256 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15258 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15261 echo $ECHO_N "(cached) $ECHO_C" >&6
15263 ac_res=`eval echo '${'$as_ac_Header'}'`
15264 { echo "$as_me:$LINENO: result: $ac_res" >&5
15265 echo "${ECHO_T}$ac_res" >&6; }
15267 # Is the header compilable?
15268 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15269 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15270 cat >conftest.$ac_ext <<_ACEOF
15273 cat confdefs.h >>conftest.$ac_ext
15274 cat >>conftest.$ac_ext <<_ACEOF
15275 /* end confdefs.h. */
15276 $ac_includes_default
15277 #include <$ac_header>
15279 rm -f conftest.$ac_objext
15280 if { (ac_try="$ac_compile"
15281 case "(($ac_try" in
15282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15283 *) ac_try_echo=$ac_try;;
15285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15286 (eval "$ac_compile") 2>conftest.er1
15288 grep -v '^ *+' conftest.er1 >conftest.err
15290 cat conftest.err >&5
15291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292 (exit $ac_status); } &&
15293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15294 { (case "(($ac_try" in
15295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15296 *) ac_try_echo=$ac_try;;
15298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15299 (eval "$ac_try") 2>&5
15301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302 (exit $ac_status); }; } &&
15303 { ac_try='test -s conftest.$ac_objext'
15304 { (case "(($ac_try" in
15305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15306 *) ac_try_echo=$ac_try;;
15308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15309 (eval "$ac_try") 2>&5
15311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312 (exit $ac_status); }; }; then
15313 ac_header_compiler=yes
15315 echo "$as_me: failed program was:" >&5
15316 sed 's/^/| /' conftest.$ac_ext >&5
15318 ac_header_compiler=no
15321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15322 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15323 echo "${ECHO_T}$ac_header_compiler" >&6; }
15325 # Is the header present?
15326 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15327 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15328 cat >conftest.$ac_ext <<_ACEOF
15331 cat confdefs.h >>conftest.$ac_ext
15332 cat >>conftest.$ac_ext <<_ACEOF
15333 /* end confdefs.h. */
15334 #include <$ac_header>
15336 if { (ac_try="$ac_cpp conftest.$ac_ext"
15337 case "(($ac_try" in
15338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15339 *) ac_try_echo=$ac_try;;
15341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15342 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15344 grep -v '^ *+' conftest.er1 >conftest.err
15346 cat conftest.err >&5
15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 (exit $ac_status); } >/dev/null; then
15349 if test -s conftest.err; then
15350 ac_cpp_err=$ac_c_preproc_warn_flag
15351 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15358 if test -z "$ac_cpp_err"; then
15359 ac_header_preproc=yes
15361 echo "$as_me: failed program was:" >&5
15362 sed 's/^/| /' conftest.$ac_ext >&5
15364 ac_header_preproc=no
15367 rm -f conftest.err conftest.$ac_ext
15368 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15369 echo "${ECHO_T}$ac_header_preproc" >&6; }
15371 # So? What about this header?
15372 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15374 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15375 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15377 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15378 ac_header_preproc=yes
15381 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15382 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15383 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15384 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15385 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15386 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15387 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15388 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15390 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15391 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15392 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15394 ## ------------------------------------ ##
15395 ## Report this to http://llvm.org/bugs/ ##
15396 ## ------------------------------------ ##
15398 ) | sed "s/^/$as_me: WARNING: /" >&2
15401 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15404 echo $ECHO_N "(cached) $ECHO_C" >&6
15406 eval "$as_ac_Header=\$ac_header_preproc"
15408 ac_res=`eval echo '${'$as_ac_Header'}'`
15409 { echo "$as_me:$LINENO: result: $ac_res" >&5
15410 echo "${ECHO_T}$ac_res" >&6; }
15413 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15414 cat >>confdefs.h <<_ACEOF
15415 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15423 for ac_header in fenv.h
15425 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15427 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15430 echo $ECHO_N "(cached) $ECHO_C" >&6
15432 ac_res=`eval echo '${'$as_ac_Header'}'`
15433 { echo "$as_me:$LINENO: result: $ac_res" >&5
15434 echo "${ECHO_T}$ac_res" >&6; }
15436 # Is the header compilable?
15437 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15438 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15439 cat >conftest.$ac_ext <<_ACEOF
15442 cat confdefs.h >>conftest.$ac_ext
15443 cat >>conftest.$ac_ext <<_ACEOF
15444 /* end confdefs.h. */
15445 $ac_includes_default
15446 #include <$ac_header>
15448 rm -f conftest.$ac_objext
15449 if { (ac_try="$ac_compile"
15450 case "(($ac_try" in
15451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15452 *) ac_try_echo=$ac_try;;
15454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15455 (eval "$ac_compile") 2>conftest.er1
15457 grep -v '^ *+' conftest.er1 >conftest.err
15459 cat conftest.err >&5
15460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461 (exit $ac_status); } &&
15462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15463 { (case "(($ac_try" in
15464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15465 *) ac_try_echo=$ac_try;;
15467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15468 (eval "$ac_try") 2>&5
15470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471 (exit $ac_status); }; } &&
15472 { ac_try='test -s conftest.$ac_objext'
15473 { (case "(($ac_try" in
15474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15475 *) ac_try_echo=$ac_try;;
15477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15478 (eval "$ac_try") 2>&5
15480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15481 (exit $ac_status); }; }; then
15482 ac_header_compiler=yes
15484 echo "$as_me: failed program was:" >&5
15485 sed 's/^/| /' conftest.$ac_ext >&5
15487 ac_header_compiler=no
15490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15491 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15492 echo "${ECHO_T}$ac_header_compiler" >&6; }
15494 # Is the header present?
15495 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15496 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15497 cat >conftest.$ac_ext <<_ACEOF
15500 cat confdefs.h >>conftest.$ac_ext
15501 cat >>conftest.$ac_ext <<_ACEOF
15502 /* end confdefs.h. */
15503 #include <$ac_header>
15505 if { (ac_try="$ac_cpp conftest.$ac_ext"
15506 case "(($ac_try" in
15507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15508 *) ac_try_echo=$ac_try;;
15510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15513 grep -v '^ *+' conftest.er1 >conftest.err
15515 cat conftest.err >&5
15516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517 (exit $ac_status); } >/dev/null; then
15518 if test -s conftest.err; then
15519 ac_cpp_err=$ac_c_preproc_warn_flag
15520 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15527 if test -z "$ac_cpp_err"; then
15528 ac_header_preproc=yes
15530 echo "$as_me: failed program was:" >&5
15531 sed 's/^/| /' conftest.$ac_ext >&5
15533 ac_header_preproc=no
15536 rm -f conftest.err conftest.$ac_ext
15537 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15538 echo "${ECHO_T}$ac_header_preproc" >&6; }
15540 # So? What about this header?
15541 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15543 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15544 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15546 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15547 ac_header_preproc=yes
15550 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15551 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15552 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15553 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15554 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15555 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15556 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15557 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15559 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15560 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15561 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15563 ## ------------------------------------ ##
15564 ## Report this to http://llvm.org/bugs/ ##
15565 ## ------------------------------------ ##
15567 ) | sed "s/^/$as_me: WARNING: /" >&2
15570 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15573 echo $ECHO_N "(cached) $ECHO_C" >&6
15575 eval "$as_ac_Header=\$ac_header_preproc"
15577 ac_res=`eval echo '${'$as_ac_Header'}'`
15578 { echo "$as_me:$LINENO: result: $ac_res" >&5
15579 echo "${ECHO_T}$ac_res" >&6; }
15582 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15583 cat >>confdefs.h <<_ACEOF
15584 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15591 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15593 for ac_header in pthread.h
15595 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15600 echo $ECHO_N "(cached) $ECHO_C" >&6
15602 ac_res=`eval echo '${'$as_ac_Header'}'`
15603 { echo "$as_me:$LINENO: result: $ac_res" >&5
15604 echo "${ECHO_T}$ac_res" >&6; }
15606 # Is the header compilable?
15607 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15609 cat >conftest.$ac_ext <<_ACEOF
15612 cat confdefs.h >>conftest.$ac_ext
15613 cat >>conftest.$ac_ext <<_ACEOF
15614 /* end confdefs.h. */
15615 $ac_includes_default
15616 #include <$ac_header>
15618 rm -f conftest.$ac_objext
15619 if { (ac_try="$ac_compile"
15620 case "(($ac_try" in
15621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15622 *) ac_try_echo=$ac_try;;
15624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15625 (eval "$ac_compile") 2>conftest.er1
15627 grep -v '^ *+' conftest.er1 >conftest.err
15629 cat conftest.err >&5
15630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631 (exit $ac_status); } &&
15632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15633 { (case "(($ac_try" in
15634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15635 *) ac_try_echo=$ac_try;;
15637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15638 (eval "$ac_try") 2>&5
15640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641 (exit $ac_status); }; } &&
15642 { ac_try='test -s conftest.$ac_objext'
15643 { (case "(($ac_try" in
15644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15645 *) ac_try_echo=$ac_try;;
15647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15648 (eval "$ac_try") 2>&5
15650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651 (exit $ac_status); }; }; then
15652 ac_header_compiler=yes
15654 echo "$as_me: failed program was:" >&5
15655 sed 's/^/| /' conftest.$ac_ext >&5
15657 ac_header_compiler=no
15660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15661 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15662 echo "${ECHO_T}$ac_header_compiler" >&6; }
15664 # Is the header present?
15665 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15666 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15667 cat >conftest.$ac_ext <<_ACEOF
15670 cat confdefs.h >>conftest.$ac_ext
15671 cat >>conftest.$ac_ext <<_ACEOF
15672 /* end confdefs.h. */
15673 #include <$ac_header>
15675 if { (ac_try="$ac_cpp conftest.$ac_ext"
15676 case "(($ac_try" in
15677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15678 *) ac_try_echo=$ac_try;;
15680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15681 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15683 grep -v '^ *+' conftest.er1 >conftest.err
15685 cat conftest.err >&5
15686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687 (exit $ac_status); } >/dev/null; then
15688 if test -s conftest.err; then
15689 ac_cpp_err=$ac_c_preproc_warn_flag
15690 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15697 if test -z "$ac_cpp_err"; then
15698 ac_header_preproc=yes
15700 echo "$as_me: failed program was:" >&5
15701 sed 's/^/| /' conftest.$ac_ext >&5
15703 ac_header_preproc=no
15706 rm -f conftest.err conftest.$ac_ext
15707 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15708 echo "${ECHO_T}$ac_header_preproc" >&6; }
15710 # So? What about this header?
15711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15713 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15714 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15716 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15717 ac_header_preproc=yes
15720 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15721 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15722 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15723 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15724 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15725 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15726 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15727 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15729 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15730 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15731 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15733 ## ------------------------------------ ##
15734 ## Report this to http://llvm.org/bugs/ ##
15735 ## ------------------------------------ ##
15737 ) | sed "s/^/$as_me: WARNING: /" >&2
15740 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15743 echo $ECHO_N "(cached) $ECHO_C" >&6
15745 eval "$as_ac_Header=\$ac_header_preproc"
15747 ac_res=`eval echo '${'$as_ac_Header'}'`
15748 { echo "$as_me:$LINENO: result: $ac_res" >&5
15749 echo "${ECHO_T}$ac_res" >&6; }
15752 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15753 cat >>confdefs.h <<_ACEOF
15754 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15770 if test "$llvm_cv_enable_libffi" = "yes" ; then
15773 for ac_header in ffi.h ffi/ffi.h
15775 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15777 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15780 echo $ECHO_N "(cached) $ECHO_C" >&6
15782 ac_res=`eval echo '${'$as_ac_Header'}'`
15783 { echo "$as_me:$LINENO: result: $ac_res" >&5
15784 echo "${ECHO_T}$ac_res" >&6; }
15786 # Is the header compilable?
15787 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15788 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15789 cat >conftest.$ac_ext <<_ACEOF
15792 cat confdefs.h >>conftest.$ac_ext
15793 cat >>conftest.$ac_ext <<_ACEOF
15794 /* end confdefs.h. */
15795 $ac_includes_default
15796 #include <$ac_header>
15798 rm -f conftest.$ac_objext
15799 if { (ac_try="$ac_compile"
15800 case "(($ac_try" in
15801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15802 *) ac_try_echo=$ac_try;;
15804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15805 (eval "$ac_compile") 2>conftest.er1
15807 grep -v '^ *+' conftest.er1 >conftest.err
15809 cat conftest.err >&5
15810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 (exit $ac_status); } &&
15812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15813 { (case "(($ac_try" in
15814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15815 *) ac_try_echo=$ac_try;;
15817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15818 (eval "$ac_try") 2>&5
15820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821 (exit $ac_status); }; } &&
15822 { ac_try='test -s conftest.$ac_objext'
15823 { (case "(($ac_try" in
15824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15825 *) ac_try_echo=$ac_try;;
15827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15828 (eval "$ac_try") 2>&5
15830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831 (exit $ac_status); }; }; then
15832 ac_header_compiler=yes
15834 echo "$as_me: failed program was:" >&5
15835 sed 's/^/| /' conftest.$ac_ext >&5
15837 ac_header_compiler=no
15840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15841 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15842 echo "${ECHO_T}$ac_header_compiler" >&6; }
15844 # Is the header present?
15845 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15846 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15847 cat >conftest.$ac_ext <<_ACEOF
15850 cat confdefs.h >>conftest.$ac_ext
15851 cat >>conftest.$ac_ext <<_ACEOF
15852 /* end confdefs.h. */
15853 #include <$ac_header>
15855 if { (ac_try="$ac_cpp conftest.$ac_ext"
15856 case "(($ac_try" in
15857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15858 *) ac_try_echo=$ac_try;;
15860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15863 grep -v '^ *+' conftest.er1 >conftest.err
15865 cat conftest.err >&5
15866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 (exit $ac_status); } >/dev/null; then
15868 if test -s conftest.err; then
15869 ac_cpp_err=$ac_c_preproc_warn_flag
15870 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15877 if test -z "$ac_cpp_err"; then
15878 ac_header_preproc=yes
15880 echo "$as_me: failed program was:" >&5
15881 sed 's/^/| /' conftest.$ac_ext >&5
15883 ac_header_preproc=no
15886 rm -f conftest.err conftest.$ac_ext
15887 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15888 echo "${ECHO_T}$ac_header_preproc" >&6; }
15890 # So? What about this header?
15891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15893 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15894 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15896 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15897 ac_header_preproc=yes
15900 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15901 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15902 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15903 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15904 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15905 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15906 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15907 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15910 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15911 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15913 ## ------------------------------------ ##
15914 ## Report this to http://llvm.org/bugs/ ##
15915 ## ------------------------------------ ##
15917 ) | sed "s/^/$as_me: WARNING: /" >&2
15920 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15923 echo $ECHO_N "(cached) $ECHO_C" >&6
15925 eval "$as_ac_Header=\$ac_header_preproc"
15927 ac_res=`eval echo '${'$as_ac_Header'}'`
15928 { echo "$as_me:$LINENO: result: $ac_res" >&5
15929 echo "${ECHO_T}$ac_res" >&6; }
15932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15933 cat >>confdefs.h <<_ACEOF
15934 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15944 for ac_header in CrashReporterClient.h
15946 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15948 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15951 echo $ECHO_N "(cached) $ECHO_C" >&6
15953 ac_res=`eval echo '${'$as_ac_Header'}'`
15954 { echo "$as_me:$LINENO: result: $ac_res" >&5
15955 echo "${ECHO_T}$ac_res" >&6; }
15957 # Is the header compilable?
15958 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15959 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15960 cat >conftest.$ac_ext <<_ACEOF
15963 cat confdefs.h >>conftest.$ac_ext
15964 cat >>conftest.$ac_ext <<_ACEOF
15965 /* end confdefs.h. */
15966 $ac_includes_default
15967 #include <$ac_header>
15969 rm -f conftest.$ac_objext
15970 if { (ac_try="$ac_compile"
15971 case "(($ac_try" in
15972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15973 *) ac_try_echo=$ac_try;;
15975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15976 (eval "$ac_compile") 2>conftest.er1
15978 grep -v '^ *+' conftest.er1 >conftest.err
15980 cat conftest.err >&5
15981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982 (exit $ac_status); } &&
15983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15984 { (case "(($ac_try" in
15985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15986 *) ac_try_echo=$ac_try;;
15988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15989 (eval "$ac_try") 2>&5
15991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992 (exit $ac_status); }; } &&
15993 { ac_try='test -s conftest.$ac_objext'
15994 { (case "(($ac_try" in
15995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15996 *) ac_try_echo=$ac_try;;
15998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15999 (eval "$ac_try") 2>&5
16001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002 (exit $ac_status); }; }; then
16003 ac_header_compiler=yes
16005 echo "$as_me: failed program was:" >&5
16006 sed 's/^/| /' conftest.$ac_ext >&5
16008 ac_header_compiler=no
16011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16012 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16013 echo "${ECHO_T}$ac_header_compiler" >&6; }
16015 # Is the header present?
16016 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16017 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16018 cat >conftest.$ac_ext <<_ACEOF
16021 cat confdefs.h >>conftest.$ac_ext
16022 cat >>conftest.$ac_ext <<_ACEOF
16023 /* end confdefs.h. */
16024 #include <$ac_header>
16026 if { (ac_try="$ac_cpp conftest.$ac_ext"
16027 case "(($ac_try" in
16028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16029 *) ac_try_echo=$ac_try;;
16031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16034 grep -v '^ *+' conftest.er1 >conftest.err
16036 cat conftest.err >&5
16037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038 (exit $ac_status); } >/dev/null; then
16039 if test -s conftest.err; then
16040 ac_cpp_err=$ac_c_preproc_warn_flag
16041 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16048 if test -z "$ac_cpp_err"; then
16049 ac_header_preproc=yes
16051 echo "$as_me: failed program was:" >&5
16052 sed 's/^/| /' conftest.$ac_ext >&5
16054 ac_header_preproc=no
16057 rm -f conftest.err conftest.$ac_ext
16058 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16059 echo "${ECHO_T}$ac_header_preproc" >&6; }
16061 # So? What about this header?
16062 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16064 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16065 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16067 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16068 ac_header_preproc=yes
16071 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16072 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16073 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16074 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16075 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16076 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16077 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16078 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16080 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16081 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16082 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16084 ## ------------------------------------ ##
16085 ## Report this to http://llvm.org/bugs/ ##
16086 ## ------------------------------------ ##
16088 ) | sed "s/^/$as_me: WARNING: /" >&2
16091 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16094 echo $ECHO_N "(cached) $ECHO_C" >&6
16096 eval "$as_ac_Header=\$ac_header_preproc"
16098 ac_res=`eval echo '${'$as_ac_Header'}'`
16099 { echo "$as_me:$LINENO: result: $ac_res" >&5
16100 echo "${ECHO_T}$ac_res" >&6; }
16103 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16104 cat >>confdefs.h <<_ACEOF
16105 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16113 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16114 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16115 cat >conftest.$ac_ext <<_ACEOF
16118 cat confdefs.h >>conftest.$ac_ext
16119 cat >>conftest.$ac_ext <<_ACEOF
16120 /* end confdefs.h. */
16121 extern const char *__crashreporter_info__;
16123 __crashreporter_info__ = "test";
16128 rm -f conftest.$ac_objext conftest$ac_exeext
16129 if { (ac_try="$ac_link"
16130 case "(($ac_try" in
16131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16132 *) ac_try_echo=$ac_try;;
16134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16135 (eval "$ac_link") 2>conftest.er1
16137 grep -v '^ *+' conftest.er1 >conftest.err
16139 cat conftest.err >&5
16140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141 (exit $ac_status); } &&
16142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16143 { (case "(($ac_try" in
16144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16145 *) ac_try_echo=$ac_try;;
16147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16148 (eval "$ac_try") 2>&5
16150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151 (exit $ac_status); }; } &&
16152 { ac_try='test -s conftest$ac_exeext'
16153 { (case "(($ac_try" in
16154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16155 *) ac_try_echo=$ac_try;;
16157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16158 (eval "$ac_try") 2>&5
16160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161 (exit $ac_status); }; }; then
16162 { echo "$as_me:$LINENO: result: yes" >&5
16163 echo "${ECHO_T}yes" >&6; }
16165 cat >>confdefs.h <<\_ACEOF
16166 #define HAVE_CRASHREPORTER_INFO 1
16170 echo "$as_me: failed program was:" >&5
16171 sed 's/^/| /' conftest.$ac_ext >&5
16173 { echo "$as_me:$LINENO: result: no" >&5
16174 echo "${ECHO_T}no" >&6; }
16176 cat >>confdefs.h <<\_ACEOF
16177 #define HAVE_CRASHREPORTER_INFO 0
16182 rm -f core conftest.err conftest.$ac_objext \
16183 conftest$ac_exeext conftest.$ac_ext
16188 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16189 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16190 if test "${ac_cv_huge_val_sanity+set}" = set; then
16191 echo $ECHO_N "(cached) $ECHO_C" >&6
16195 ac_cpp='$CXXCPP $CPPFLAGS'
16196 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16197 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16198 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16200 ac_save_CXXFLAGS=$CXXFLAGS
16201 CXXFLAGS="$CXXFLAGS -pedantic"
16202 if test "$cross_compiling" = yes; then
16203 ac_cv_huge_val_sanity=yes
16205 cat >conftest.$ac_ext <<_ACEOF
16208 cat confdefs.h >>conftest.$ac_ext
16209 cat >>conftest.$ac_ext <<_ACEOF
16210 /* end confdefs.h. */
16215 double x = HUGE_VAL; return x != x;
16220 rm -f conftest$ac_exeext
16221 if { (ac_try="$ac_link"
16222 case "(($ac_try" in
16223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16224 *) ac_try_echo=$ac_try;;
16226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16227 (eval "$ac_link") 2>&5
16229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16231 { (case "(($ac_try" in
16232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16233 *) ac_try_echo=$ac_try;;
16235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16236 (eval "$ac_try") 2>&5
16238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16239 (exit $ac_status); }; }; then
16240 ac_cv_huge_val_sanity=yes
16242 echo "$as_me: program exited with status $ac_status" >&5
16243 echo "$as_me: failed program was:" >&5
16244 sed 's/^/| /' conftest.$ac_ext >&5
16246 ( exit $ac_status )
16247 ac_cv_huge_val_sanity=no
16249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16253 CXXFLAGS=$ac_save_CXXFLAGS
16255 ac_cpp='$CPP $CPPFLAGS'
16256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16262 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16263 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16264 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16267 { echo "$as_me:$LINENO: checking for pid_t" >&5
16268 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16269 if test "${ac_cv_type_pid_t+set}" = set; then
16270 echo $ECHO_N "(cached) $ECHO_C" >&6
16272 cat >conftest.$ac_ext <<_ACEOF
16275 cat confdefs.h >>conftest.$ac_ext
16276 cat >>conftest.$ac_ext <<_ACEOF
16277 /* end confdefs.h. */
16278 $ac_includes_default
16279 typedef pid_t ac__type_new_;
16283 if ((ac__type_new_ *) 0)
16285 if (sizeof (ac__type_new_))
16291 rm -f conftest.$ac_objext
16292 if { (ac_try="$ac_compile"
16293 case "(($ac_try" in
16294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16295 *) ac_try_echo=$ac_try;;
16297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16298 (eval "$ac_compile") 2>conftest.er1
16300 grep -v '^ *+' conftest.er1 >conftest.err
16302 cat conftest.err >&5
16303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16304 (exit $ac_status); } &&
16305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16306 { (case "(($ac_try" in
16307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16308 *) ac_try_echo=$ac_try;;
16310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16311 (eval "$ac_try") 2>&5
16313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314 (exit $ac_status); }; } &&
16315 { ac_try='test -s conftest.$ac_objext'
16316 { (case "(($ac_try" in
16317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16318 *) ac_try_echo=$ac_try;;
16320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16321 (eval "$ac_try") 2>&5
16323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324 (exit $ac_status); }; }; then
16325 ac_cv_type_pid_t=yes
16327 echo "$as_me: failed program was:" >&5
16328 sed 's/^/| /' conftest.$ac_ext >&5
16330 ac_cv_type_pid_t=no
16333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16335 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16336 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16337 if test $ac_cv_type_pid_t = yes; then
16341 cat >>confdefs.h <<_ACEOF
16347 { echo "$as_me:$LINENO: checking for size_t" >&5
16348 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16349 if test "${ac_cv_type_size_t+set}" = set; then
16350 echo $ECHO_N "(cached) $ECHO_C" >&6
16352 cat >conftest.$ac_ext <<_ACEOF
16355 cat confdefs.h >>conftest.$ac_ext
16356 cat >>conftest.$ac_ext <<_ACEOF
16357 /* end confdefs.h. */
16358 $ac_includes_default
16359 typedef size_t ac__type_new_;
16363 if ((ac__type_new_ *) 0)
16365 if (sizeof (ac__type_new_))
16371 rm -f conftest.$ac_objext
16372 if { (ac_try="$ac_compile"
16373 case "(($ac_try" in
16374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16375 *) ac_try_echo=$ac_try;;
16377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16378 (eval "$ac_compile") 2>conftest.er1
16380 grep -v '^ *+' conftest.er1 >conftest.err
16382 cat conftest.err >&5
16383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384 (exit $ac_status); } &&
16385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16386 { (case "(($ac_try" in
16387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16388 *) ac_try_echo=$ac_try;;
16390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16391 (eval "$ac_try") 2>&5
16393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394 (exit $ac_status); }; } &&
16395 { ac_try='test -s conftest.$ac_objext'
16396 { (case "(($ac_try" in
16397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16398 *) ac_try_echo=$ac_try;;
16400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16401 (eval "$ac_try") 2>&5
16403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); }; }; then
16405 ac_cv_type_size_t=yes
16407 echo "$as_me: failed program was:" >&5
16408 sed 's/^/| /' conftest.$ac_ext >&5
16410 ac_cv_type_size_t=no
16413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16415 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16416 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16417 if test $ac_cv_type_size_t = yes; then
16421 cat >>confdefs.h <<_ACEOF
16422 #define size_t unsigned int
16428 cat >>confdefs.h <<_ACEOF
16429 #define RETSIGTYPE void
16432 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16433 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16434 if test "${ac_cv_struct_tm+set}" = set; then
16435 echo $ECHO_N "(cached) $ECHO_C" >&6
16437 cat >conftest.$ac_ext <<_ACEOF
16440 cat confdefs.h >>conftest.$ac_ext
16441 cat >>conftest.$ac_ext <<_ACEOF
16442 /* end confdefs.h. */
16443 #include <sys/types.h>
16449 struct tm *tp; tp->tm_sec;
16454 rm -f conftest.$ac_objext
16455 if { (ac_try="$ac_compile"
16456 case "(($ac_try" in
16457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16458 *) ac_try_echo=$ac_try;;
16460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16461 (eval "$ac_compile") 2>conftest.er1
16463 grep -v '^ *+' conftest.er1 >conftest.err
16465 cat conftest.err >&5
16466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467 (exit $ac_status); } &&
16468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16469 { (case "(($ac_try" in
16470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16471 *) ac_try_echo=$ac_try;;
16473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16474 (eval "$ac_try") 2>&5
16476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477 (exit $ac_status); }; } &&
16478 { ac_try='test -s conftest.$ac_objext'
16479 { (case "(($ac_try" in
16480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16481 *) ac_try_echo=$ac_try;;
16483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16484 (eval "$ac_try") 2>&5
16486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487 (exit $ac_status); }; }; then
16488 ac_cv_struct_tm=time.h
16490 echo "$as_me: failed program was:" >&5
16491 sed 's/^/| /' conftest.$ac_ext >&5
16493 ac_cv_struct_tm=sys/time.h
16496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16498 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16499 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16500 if test $ac_cv_struct_tm = sys/time.h; then
16502 cat >>confdefs.h <<\_ACEOF
16503 #define TM_IN_SYS_TIME 1
16508 { echo "$as_me:$LINENO: checking for int64_t" >&5
16509 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16510 if test "${ac_cv_type_int64_t+set}" = set; then
16511 echo $ECHO_N "(cached) $ECHO_C" >&6
16513 cat >conftest.$ac_ext <<_ACEOF
16516 cat confdefs.h >>conftest.$ac_ext
16517 cat >>conftest.$ac_ext <<_ACEOF
16518 /* end confdefs.h. */
16519 $ac_includes_default
16520 typedef int64_t ac__type_new_;
16524 if ((ac__type_new_ *) 0)
16526 if (sizeof (ac__type_new_))
16532 rm -f conftest.$ac_objext
16533 if { (ac_try="$ac_compile"
16534 case "(($ac_try" in
16535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16536 *) ac_try_echo=$ac_try;;
16538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16539 (eval "$ac_compile") 2>conftest.er1
16541 grep -v '^ *+' conftest.er1 >conftest.err
16543 cat conftest.err >&5
16544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545 (exit $ac_status); } &&
16546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16547 { (case "(($ac_try" in
16548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16549 *) ac_try_echo=$ac_try;;
16551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16552 (eval "$ac_try") 2>&5
16554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555 (exit $ac_status); }; } &&
16556 { ac_try='test -s conftest.$ac_objext'
16557 { (case "(($ac_try" in
16558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16559 *) ac_try_echo=$ac_try;;
16561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16562 (eval "$ac_try") 2>&5
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); }; }; then
16566 ac_cv_type_int64_t=yes
16568 echo "$as_me: failed program was:" >&5
16569 sed 's/^/| /' conftest.$ac_ext >&5
16571 ac_cv_type_int64_t=no
16574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16576 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16577 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16578 if test $ac_cv_type_int64_t = yes; then
16580 cat >>confdefs.h <<_ACEOF
16581 #define HAVE_INT64_T 1
16586 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16587 echo "$as_me: error: Type int64_t required but not found" >&2;}
16588 { (exit 1); exit 1; }; }
16591 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16592 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16593 if test "${ac_cv_type_uint64_t+set}" = set; then
16594 echo $ECHO_N "(cached) $ECHO_C" >&6
16596 cat >conftest.$ac_ext <<_ACEOF
16599 cat confdefs.h >>conftest.$ac_ext
16600 cat >>conftest.$ac_ext <<_ACEOF
16601 /* end confdefs.h. */
16602 $ac_includes_default
16603 typedef uint64_t ac__type_new_;
16607 if ((ac__type_new_ *) 0)
16609 if (sizeof (ac__type_new_))
16615 rm -f conftest.$ac_objext
16616 if { (ac_try="$ac_compile"
16617 case "(($ac_try" in
16618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16619 *) ac_try_echo=$ac_try;;
16621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16622 (eval "$ac_compile") 2>conftest.er1
16624 grep -v '^ *+' conftest.er1 >conftest.err
16626 cat conftest.err >&5
16627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628 (exit $ac_status); } &&
16629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16630 { (case "(($ac_try" in
16631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16632 *) ac_try_echo=$ac_try;;
16634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16635 (eval "$ac_try") 2>&5
16637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638 (exit $ac_status); }; } &&
16639 { ac_try='test -s conftest.$ac_objext'
16640 { (case "(($ac_try" in
16641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16642 *) ac_try_echo=$ac_try;;
16644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16645 (eval "$ac_try") 2>&5
16647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648 (exit $ac_status); }; }; then
16649 ac_cv_type_uint64_t=yes
16651 echo "$as_me: failed program was:" >&5
16652 sed 's/^/| /' conftest.$ac_ext >&5
16654 ac_cv_type_uint64_t=no
16657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16659 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16660 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16661 if test $ac_cv_type_uint64_t = yes; then
16663 cat >>confdefs.h <<_ACEOF
16664 #define HAVE_UINT64_T 1
16669 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16670 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16671 if test "${ac_cv_type_u_int64_t+set}" = set; then
16672 echo $ECHO_N "(cached) $ECHO_C" >&6
16674 cat >conftest.$ac_ext <<_ACEOF
16677 cat confdefs.h >>conftest.$ac_ext
16678 cat >>conftest.$ac_ext <<_ACEOF
16679 /* end confdefs.h. */
16680 $ac_includes_default
16681 typedef u_int64_t ac__type_new_;
16685 if ((ac__type_new_ *) 0)
16687 if (sizeof (ac__type_new_))
16693 rm -f conftest.$ac_objext
16694 if { (ac_try="$ac_compile"
16695 case "(($ac_try" in
16696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16697 *) ac_try_echo=$ac_try;;
16699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16700 (eval "$ac_compile") 2>conftest.er1
16702 grep -v '^ *+' conftest.er1 >conftest.err
16704 cat conftest.err >&5
16705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16706 (exit $ac_status); } &&
16707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16708 { (case "(($ac_try" in
16709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16710 *) ac_try_echo=$ac_try;;
16712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16713 (eval "$ac_try") 2>&5
16715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716 (exit $ac_status); }; } &&
16717 { ac_try='test -s conftest.$ac_objext'
16718 { (case "(($ac_try" in
16719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16720 *) ac_try_echo=$ac_try;;
16722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16723 (eval "$ac_try") 2>&5
16725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726 (exit $ac_status); }; }; then
16727 ac_cv_type_u_int64_t=yes
16729 echo "$as_me: failed program was:" >&5
16730 sed 's/^/| /' conftest.$ac_ext >&5
16732 ac_cv_type_u_int64_t=no
16735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16737 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16738 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16739 if test $ac_cv_type_u_int64_t = yes; then
16741 cat >>confdefs.h <<_ACEOF
16742 #define HAVE_U_INT64_T 1
16747 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16748 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16749 { (exit 1); exit 1; }; }
16763 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16765 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16766 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16767 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16768 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16769 echo $ECHO_N "(cached) $ECHO_C" >&6
16771 cat >conftest.$ac_ext <<_ACEOF
16774 cat confdefs.h >>conftest.$ac_ext
16775 cat >>conftest.$ac_ext <<_ACEOF
16776 /* end confdefs.h. */
16777 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16779 #define $ac_func innocuous_$ac_func
16781 /* System header to define __stub macros and hopefully few prototypes,
16782 which can conflict with char $ac_func (); below.
16783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16784 <limits.h> exists even on freestanding compilers. */
16787 # include <limits.h>
16789 # include <assert.h>
16794 /* Override any GCC internal prototype to avoid an error.
16795 Use char because int might match the return type of a GCC
16796 builtin and then its argument prototype would still apply. */
16801 /* The GNU C library defines this for functions which it implements
16802 to always fail with ENOSYS. Some functions are actually named
16803 something starting with __ and the normal name is an alias. */
16804 #if defined __stub_$ac_func || defined __stub___$ac_func
16811 return $ac_func ();
16816 rm -f conftest.$ac_objext conftest$ac_exeext
16817 if { (ac_try="$ac_link"
16818 case "(($ac_try" in
16819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16820 *) ac_try_echo=$ac_try;;
16822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16823 (eval "$ac_link") 2>conftest.er1
16825 grep -v '^ *+' conftest.er1 >conftest.err
16827 cat conftest.err >&5
16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); } &&
16830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16831 { (case "(($ac_try" in
16832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16833 *) ac_try_echo=$ac_try;;
16835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16836 (eval "$ac_try") 2>&5
16838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839 (exit $ac_status); }; } &&
16840 { ac_try='test -s conftest$ac_exeext'
16841 { (case "(($ac_try" in
16842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16843 *) ac_try_echo=$ac_try;;
16845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16846 (eval "$ac_try") 2>&5
16848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849 (exit $ac_status); }; }; then
16850 eval "$as_ac_var=yes"
16852 echo "$as_me: failed program was:" >&5
16853 sed 's/^/| /' conftest.$ac_ext >&5
16855 eval "$as_ac_var=no"
16858 rm -f core conftest.err conftest.$ac_objext \
16859 conftest$ac_exeext conftest.$ac_ext
16861 ac_res=`eval echo '${'$as_ac_var'}'`
16862 { echo "$as_me:$LINENO: result: $ac_res" >&5
16863 echo "${ECHO_T}$ac_res" >&6; }
16864 if test `eval echo '${'$as_ac_var'}'` = yes; then
16865 cat >>confdefs.h <<_ACEOF
16866 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16876 for ac_func in powf fmodf strtof round
16878 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16879 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16880 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16881 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16882 echo $ECHO_N "(cached) $ECHO_C" >&6
16884 cat >conftest.$ac_ext <<_ACEOF
16887 cat confdefs.h >>conftest.$ac_ext
16888 cat >>conftest.$ac_ext <<_ACEOF
16889 /* end confdefs.h. */
16890 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16892 #define $ac_func innocuous_$ac_func
16894 /* System header to define __stub macros and hopefully few prototypes,
16895 which can conflict with char $ac_func (); below.
16896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16897 <limits.h> exists even on freestanding compilers. */
16900 # include <limits.h>
16902 # include <assert.h>
16907 /* Override any GCC internal prototype to avoid an error.
16908 Use char because int might match the return type of a GCC
16909 builtin and then its argument prototype would still apply. */
16914 /* The GNU C library defines this for functions which it implements
16915 to always fail with ENOSYS. Some functions are actually named
16916 something starting with __ and the normal name is an alias. */
16917 #if defined __stub_$ac_func || defined __stub___$ac_func
16924 return $ac_func ();
16929 rm -f conftest.$ac_objext conftest$ac_exeext
16930 if { (ac_try="$ac_link"
16931 case "(($ac_try" in
16932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16933 *) ac_try_echo=$ac_try;;
16935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16936 (eval "$ac_link") 2>conftest.er1
16938 grep -v '^ *+' conftest.er1 >conftest.err
16940 cat conftest.err >&5
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); } &&
16943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16944 { (case "(($ac_try" in
16945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16946 *) ac_try_echo=$ac_try;;
16948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16949 (eval "$ac_try") 2>&5
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); }; } &&
16953 { ac_try='test -s conftest$ac_exeext'
16954 { (case "(($ac_try" in
16955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16956 *) ac_try_echo=$ac_try;;
16958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16959 (eval "$ac_try") 2>&5
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); }; }; then
16963 eval "$as_ac_var=yes"
16965 echo "$as_me: failed program was:" >&5
16966 sed 's/^/| /' conftest.$ac_ext >&5
16968 eval "$as_ac_var=no"
16971 rm -f core conftest.err conftest.$ac_objext \
16972 conftest$ac_exeext conftest.$ac_ext
16974 ac_res=`eval echo '${'$as_ac_var'}'`
16975 { echo "$as_me:$LINENO: result: $ac_res" >&5
16976 echo "${ECHO_T}$ac_res" >&6; }
16977 if test `eval echo '${'$as_ac_var'}'` = yes; then
16978 cat >>confdefs.h <<_ACEOF
16979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16990 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16992 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16993 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16994 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16995 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16996 echo $ECHO_N "(cached) $ECHO_C" >&6
16998 cat >conftest.$ac_ext <<_ACEOF
17001 cat confdefs.h >>conftest.$ac_ext
17002 cat >>conftest.$ac_ext <<_ACEOF
17003 /* end confdefs.h. */
17004 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17006 #define $ac_func innocuous_$ac_func
17008 /* System header to define __stub macros and hopefully few prototypes,
17009 which can conflict with char $ac_func (); below.
17010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17011 <limits.h> exists even on freestanding compilers. */
17014 # include <limits.h>
17016 # include <assert.h>
17021 /* Override any GCC internal prototype to avoid an error.
17022 Use char because int might match the return type of a GCC
17023 builtin and then its argument prototype would still apply. */
17028 /* The GNU C library defines this for functions which it implements
17029 to always fail with ENOSYS. Some functions are actually named
17030 something starting with __ and the normal name is an alias. */
17031 #if defined __stub_$ac_func || defined __stub___$ac_func
17038 return $ac_func ();
17043 rm -f conftest.$ac_objext conftest$ac_exeext
17044 if { (ac_try="$ac_link"
17045 case "(($ac_try" in
17046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17047 *) ac_try_echo=$ac_try;;
17049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17050 (eval "$ac_link") 2>conftest.er1
17052 grep -v '^ *+' conftest.er1 >conftest.err
17054 cat conftest.err >&5
17055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); } &&
17057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17058 { (case "(($ac_try" in
17059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17060 *) ac_try_echo=$ac_try;;
17062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17063 (eval "$ac_try") 2>&5
17065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066 (exit $ac_status); }; } &&
17067 { ac_try='test -s conftest$ac_exeext'
17068 { (case "(($ac_try" in
17069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17070 *) ac_try_echo=$ac_try;;
17072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17073 (eval "$ac_try") 2>&5
17075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); }; }; then
17077 eval "$as_ac_var=yes"
17079 echo "$as_me: failed program was:" >&5
17080 sed 's/^/| /' conftest.$ac_ext >&5
17082 eval "$as_ac_var=no"
17085 rm -f core conftest.err conftest.$ac_objext \
17086 conftest$ac_exeext conftest.$ac_ext
17088 ac_res=`eval echo '${'$as_ac_var'}'`
17089 { echo "$as_me:$LINENO: result: $ac_res" >&5
17090 echo "${ECHO_T}$ac_res" >&6; }
17091 if test `eval echo '${'$as_ac_var'}'` = yes; then
17092 cat >>confdefs.h <<_ACEOF
17093 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17102 for ac_func in isatty mkdtemp mkstemp
17104 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17105 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17106 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17107 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17108 echo $ECHO_N "(cached) $ECHO_C" >&6
17110 cat >conftest.$ac_ext <<_ACEOF
17113 cat confdefs.h >>conftest.$ac_ext
17114 cat >>conftest.$ac_ext <<_ACEOF
17115 /* end confdefs.h. */
17116 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17118 #define $ac_func innocuous_$ac_func
17120 /* System header to define __stub macros and hopefully few prototypes,
17121 which can conflict with char $ac_func (); below.
17122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17123 <limits.h> exists even on freestanding compilers. */
17126 # include <limits.h>
17128 # include <assert.h>
17133 /* Override any GCC internal prototype to avoid an error.
17134 Use char because int might match the return type of a GCC
17135 builtin and then its argument prototype would still apply. */
17140 /* The GNU C library defines this for functions which it implements
17141 to always fail with ENOSYS. Some functions are actually named
17142 something starting with __ and the normal name is an alias. */
17143 #if defined __stub_$ac_func || defined __stub___$ac_func
17150 return $ac_func ();
17155 rm -f conftest.$ac_objext conftest$ac_exeext
17156 if { (ac_try="$ac_link"
17157 case "(($ac_try" in
17158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17159 *) ac_try_echo=$ac_try;;
17161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17162 (eval "$ac_link") 2>conftest.er1
17164 grep -v '^ *+' conftest.er1 >conftest.err
17166 cat conftest.err >&5
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); } &&
17169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17170 { (case "(($ac_try" in
17171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17172 *) ac_try_echo=$ac_try;;
17174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17175 (eval "$ac_try") 2>&5
17177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178 (exit $ac_status); }; } &&
17179 { ac_try='test -s conftest$ac_exeext'
17180 { (case "(($ac_try" in
17181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17182 *) ac_try_echo=$ac_try;;
17184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17185 (eval "$ac_try") 2>&5
17187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188 (exit $ac_status); }; }; then
17189 eval "$as_ac_var=yes"
17191 echo "$as_me: failed program was:" >&5
17192 sed 's/^/| /' conftest.$ac_ext >&5
17194 eval "$as_ac_var=no"
17197 rm -f core conftest.err conftest.$ac_objext \
17198 conftest$ac_exeext conftest.$ac_ext
17200 ac_res=`eval echo '${'$as_ac_var'}'`
17201 { echo "$as_me:$LINENO: result: $ac_res" >&5
17202 echo "${ECHO_T}$ac_res" >&6; }
17203 if test `eval echo '${'$as_ac_var'}'` = yes; then
17204 cat >>confdefs.h <<_ACEOF
17205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17218 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17220 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17221 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17222 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17223 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17224 echo $ECHO_N "(cached) $ECHO_C" >&6
17226 cat >conftest.$ac_ext <<_ACEOF
17229 cat confdefs.h >>conftest.$ac_ext
17230 cat >>conftest.$ac_ext <<_ACEOF
17231 /* end confdefs.h. */
17232 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17234 #define $ac_func innocuous_$ac_func
17236 /* System header to define __stub macros and hopefully few prototypes,
17237 which can conflict with char $ac_func (); below.
17238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17239 <limits.h> exists even on freestanding compilers. */
17242 # include <limits.h>
17244 # include <assert.h>
17249 /* Override any GCC internal prototype to avoid an error.
17250 Use char because int might match the return type of a GCC
17251 builtin and then its argument prototype would still apply. */
17256 /* The GNU C library defines this for functions which it implements
17257 to always fail with ENOSYS. Some functions are actually named
17258 something starting with __ and the normal name is an alias. */
17259 #if defined __stub_$ac_func || defined __stub___$ac_func
17266 return $ac_func ();
17271 rm -f conftest.$ac_objext conftest$ac_exeext
17272 if { (ac_try="$ac_link"
17273 case "(($ac_try" in
17274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17275 *) ac_try_echo=$ac_try;;
17277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17278 (eval "$ac_link") 2>conftest.er1
17280 grep -v '^ *+' conftest.er1 >conftest.err
17282 cat conftest.err >&5
17283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284 (exit $ac_status); } &&
17285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17286 { (case "(($ac_try" in
17287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17288 *) ac_try_echo=$ac_try;;
17290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17291 (eval "$ac_try") 2>&5
17293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294 (exit $ac_status); }; } &&
17295 { ac_try='test -s conftest$ac_exeext'
17296 { (case "(($ac_try" in
17297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17298 *) ac_try_echo=$ac_try;;
17300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17301 (eval "$ac_try") 2>&5
17303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304 (exit $ac_status); }; }; then
17305 eval "$as_ac_var=yes"
17307 echo "$as_me: failed program was:" >&5
17308 sed 's/^/| /' conftest.$ac_ext >&5
17310 eval "$as_ac_var=no"
17313 rm -f core conftest.err conftest.$ac_objext \
17314 conftest$ac_exeext conftest.$ac_ext
17316 ac_res=`eval echo '${'$as_ac_var'}'`
17317 { echo "$as_me:$LINENO: result: $ac_res" >&5
17318 echo "${ECHO_T}$ac_res" >&6; }
17319 if test `eval echo '${'$as_ac_var'}'` = yes; then
17320 cat >>confdefs.h <<_ACEOF
17321 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17331 for ac_func in strerror strerror_r setenv arc4random
17333 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17334 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17336 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17337 echo $ECHO_N "(cached) $ECHO_C" >&6
17339 cat >conftest.$ac_ext <<_ACEOF
17342 cat confdefs.h >>conftest.$ac_ext
17343 cat >>conftest.$ac_ext <<_ACEOF
17344 /* end confdefs.h. */
17345 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17347 #define $ac_func innocuous_$ac_func
17349 /* System header to define __stub macros and hopefully few prototypes,
17350 which can conflict with char $ac_func (); below.
17351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17352 <limits.h> exists even on freestanding compilers. */
17355 # include <limits.h>
17357 # include <assert.h>
17362 /* Override any GCC internal prototype to avoid an error.
17363 Use char because int might match the return type of a GCC
17364 builtin and then its argument prototype would still apply. */
17369 /* The GNU C library defines this for functions which it implements
17370 to always fail with ENOSYS. Some functions are actually named
17371 something starting with __ and the normal name is an alias. */
17372 #if defined __stub_$ac_func || defined __stub___$ac_func
17379 return $ac_func ();
17384 rm -f conftest.$ac_objext conftest$ac_exeext
17385 if { (ac_try="$ac_link"
17386 case "(($ac_try" in
17387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17388 *) ac_try_echo=$ac_try;;
17390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17391 (eval "$ac_link") 2>conftest.er1
17393 grep -v '^ *+' conftest.er1 >conftest.err
17395 cat conftest.err >&5
17396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397 (exit $ac_status); } &&
17398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17399 { (case "(($ac_try" in
17400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17401 *) ac_try_echo=$ac_try;;
17403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17404 (eval "$ac_try") 2>&5
17406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407 (exit $ac_status); }; } &&
17408 { ac_try='test -s conftest$ac_exeext'
17409 { (case "(($ac_try" in
17410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17411 *) ac_try_echo=$ac_try;;
17413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17414 (eval "$ac_try") 2>&5
17416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417 (exit $ac_status); }; }; then
17418 eval "$as_ac_var=yes"
17420 echo "$as_me: failed program was:" >&5
17421 sed 's/^/| /' conftest.$ac_ext >&5
17423 eval "$as_ac_var=no"
17426 rm -f core conftest.err conftest.$ac_objext \
17427 conftest$ac_exeext conftest.$ac_ext
17429 ac_res=`eval echo '${'$as_ac_var'}'`
17430 { echo "$as_me:$LINENO: result: $ac_res" >&5
17431 echo "${ECHO_T}$ac_res" >&6; }
17432 if test `eval echo '${'$as_ac_var'}'` = yes; then
17433 cat >>confdefs.h <<_ACEOF
17434 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17444 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17446 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17447 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17448 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17449 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17450 echo $ECHO_N "(cached) $ECHO_C" >&6
17452 cat >conftest.$ac_ext <<_ACEOF
17455 cat confdefs.h >>conftest.$ac_ext
17456 cat >>conftest.$ac_ext <<_ACEOF
17457 /* end confdefs.h. */
17458 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17459 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17460 #define $ac_func innocuous_$ac_func
17462 /* System header to define __stub macros and hopefully few prototypes,
17463 which can conflict with char $ac_func (); below.
17464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17465 <limits.h> exists even on freestanding compilers. */
17468 # include <limits.h>
17470 # include <assert.h>
17475 /* Override any GCC internal prototype to avoid an error.
17476 Use char because int might match the return type of a GCC
17477 builtin and then its argument prototype would still apply. */
17482 /* The GNU C library defines this for functions which it implements
17483 to always fail with ENOSYS. Some functions are actually named
17484 something starting with __ and the normal name is an alias. */
17485 #if defined __stub_$ac_func || defined __stub___$ac_func
17492 return $ac_func ();
17497 rm -f conftest.$ac_objext conftest$ac_exeext
17498 if { (ac_try="$ac_link"
17499 case "(($ac_try" in
17500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17501 *) ac_try_echo=$ac_try;;
17503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17504 (eval "$ac_link") 2>conftest.er1
17506 grep -v '^ *+' conftest.er1 >conftest.err
17508 cat conftest.err >&5
17509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); } &&
17511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17512 { (case "(($ac_try" in
17513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17514 *) ac_try_echo=$ac_try;;
17516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17517 (eval "$ac_try") 2>&5
17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); }; } &&
17521 { ac_try='test -s conftest$ac_exeext'
17522 { (case "(($ac_try" in
17523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17524 *) ac_try_echo=$ac_try;;
17526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17527 (eval "$ac_try") 2>&5
17529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530 (exit $ac_status); }; }; then
17531 eval "$as_ac_var=yes"
17533 echo "$as_me: failed program was:" >&5
17534 sed 's/^/| /' conftest.$ac_ext >&5
17536 eval "$as_ac_var=no"
17539 rm -f core conftest.err conftest.$ac_objext \
17540 conftest$ac_exeext conftest.$ac_ext
17542 ac_res=`eval echo '${'$as_ac_var'}'`
17543 { echo "$as_me:$LINENO: result: $ac_res" >&5
17544 echo "${ECHO_T}$ac_res" >&6; }
17545 if test `eval echo '${'$as_ac_var'}'` = yes; then
17546 cat >>confdefs.h <<_ACEOF
17547 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17558 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17560 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17561 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17562 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17563 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17564 echo $ECHO_N "(cached) $ECHO_C" >&6
17566 cat >conftest.$ac_ext <<_ACEOF
17569 cat confdefs.h >>conftest.$ac_ext
17570 cat >>conftest.$ac_ext <<_ACEOF
17571 /* end confdefs.h. */
17572 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17574 #define $ac_func innocuous_$ac_func
17576 /* System header to define __stub macros and hopefully few prototypes,
17577 which can conflict with char $ac_func (); below.
17578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17579 <limits.h> exists even on freestanding compilers. */
17582 # include <limits.h>
17584 # include <assert.h>
17589 /* Override any GCC internal prototype to avoid an error.
17590 Use char because int might match the return type of a GCC
17591 builtin and then its argument prototype would still apply. */
17596 /* The GNU C library defines this for functions which it implements
17597 to always fail with ENOSYS. Some functions are actually named
17598 something starting with __ and the normal name is an alias. */
17599 #if defined __stub_$ac_func || defined __stub___$ac_func
17606 return $ac_func ();
17611 rm -f conftest.$ac_objext conftest$ac_exeext
17612 if { (ac_try="$ac_link"
17613 case "(($ac_try" in
17614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17615 *) ac_try_echo=$ac_try;;
17617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17618 (eval "$ac_link") 2>conftest.er1
17620 grep -v '^ *+' conftest.er1 >conftest.err
17622 cat conftest.err >&5
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); } &&
17625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17626 { (case "(($ac_try" in
17627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17628 *) ac_try_echo=$ac_try;;
17630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17631 (eval "$ac_try") 2>&5
17633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634 (exit $ac_status); }; } &&
17635 { ac_try='test -s conftest$ac_exeext'
17636 { (case "(($ac_try" in
17637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17638 *) ac_try_echo=$ac_try;;
17640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17641 (eval "$ac_try") 2>&5
17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); }; }; then
17645 eval "$as_ac_var=yes"
17647 echo "$as_me: failed program was:" >&5
17648 sed 's/^/| /' conftest.$ac_ext >&5
17650 eval "$as_ac_var=no"
17653 rm -f core conftest.err conftest.$ac_objext \
17654 conftest$ac_exeext conftest.$ac_ext
17656 ac_res=`eval echo '${'$as_ac_var'}'`
17657 { echo "$as_me:$LINENO: result: $ac_res" >&5
17658 echo "${ECHO_T}$ac_res" >&6; }
17659 if test `eval echo '${'$as_ac_var'}'` = yes; then
17660 cat >>confdefs.h <<_ACEOF
17661 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17667 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17668 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17669 if test "${llvm_cv_c_printf_a+set}" = set; then
17670 echo $ECHO_N "(cached) $ECHO_C" >&6
17673 ac_cpp='$CPP $CPPFLAGS'
17674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17678 if test "$cross_compiling" = yes; then
17679 llvmac_cv_c_printf_a=no
17681 cat >conftest.$ac_ext <<_ACEOF
17685 cat confdefs.h >>conftest.$ac_ext
17686 cat >>conftest.$ac_ext <<_ACEOF
17687 /* end confdefs.h. */
17690 #include <stdlib.h>
17696 volatile double A, B;
17700 sprintf(Buffer, "%a", A);
17704 if (A != 0x1.999999999999ap-4)
17711 rm -f conftest$ac_exeext
17712 if { (ac_try="$ac_link"
17713 case "(($ac_try" in
17714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17715 *) ac_try_echo=$ac_try;;
17717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17718 (eval "$ac_link") 2>&5
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17722 { (case "(($ac_try" in
17723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17724 *) ac_try_echo=$ac_try;;
17726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17727 (eval "$ac_try") 2>&5
17729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730 (exit $ac_status); }; }; then
17731 llvm_cv_c_printf_a=yes
17733 echo "$as_me: program exited with status $ac_status" >&5
17734 echo "$as_me: failed program was:" >&5
17735 sed 's/^/| /' conftest.$ac_ext >&5
17737 ( exit $ac_status )
17738 llvmac_cv_c_printf_a=no
17740 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17745 ac_cpp='$CPP $CPPFLAGS'
17746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17751 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17752 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17753 if test "$llvm_cv_c_printf_a" = "yes"; then
17755 cat >>confdefs.h <<\_ACEOF
17756 #define HAVE_PRINTF_A 1
17762 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17763 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17764 if test "${ac_cv_func_rand48+set}" = set; then
17765 echo $ECHO_N "(cached) $ECHO_C" >&6
17768 ac_cpp='$CXXCPP $CPPFLAGS'
17769 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17770 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17771 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17773 cat >conftest.$ac_ext <<_ACEOF
17776 cat confdefs.h >>conftest.$ac_ext
17777 cat >>conftest.$ac_ext <<_ACEOF
17778 /* end confdefs.h. */
17779 #include <stdlib.h>
17783 srand48(0);lrand48();drand48();
17788 rm -f conftest.$ac_objext
17789 if { (ac_try="$ac_compile"
17790 case "(($ac_try" in
17791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17792 *) ac_try_echo=$ac_try;;
17794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17795 (eval "$ac_compile") 2>conftest.er1
17797 grep -v '^ *+' conftest.er1 >conftest.err
17799 cat conftest.err >&5
17800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17801 (exit $ac_status); } &&
17802 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17803 { (case "(($ac_try" in
17804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17805 *) ac_try_echo=$ac_try;;
17807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17808 (eval "$ac_try") 2>&5
17810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811 (exit $ac_status); }; } &&
17812 { ac_try='test -s conftest.$ac_objext'
17813 { (case "(($ac_try" in
17814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17815 *) ac_try_echo=$ac_try;;
17817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17818 (eval "$ac_try") 2>&5
17820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821 (exit $ac_status); }; }; then
17822 ac_cv_func_rand48=yes
17824 echo "$as_me: failed program was:" >&5
17825 sed 's/^/| /' conftest.$ac_ext >&5
17827 ac_cv_func_rand48=no
17830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17832 ac_cpp='$CPP $CPPFLAGS'
17833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17838 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17839 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17841 if test "$ac_cv_func_rand48" = "yes" ; then
17843 cat >>confdefs.h <<\_ACEOF
17844 #define HAVE_RAND48 1
17850 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17851 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17852 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17853 echo $ECHO_N "(cached) $ECHO_C" >&6
17855 cat >conftest.$ac_ext <<_ACEOF
17858 cat confdefs.h >>conftest.$ac_ext
17859 cat >>conftest.$ac_ext <<_ACEOF
17860 /* end confdefs.h. */
17861 $ac_includes_default
17866 char *p = (char *) strerror_s;
17874 rm -f conftest.$ac_objext
17875 if { (ac_try="$ac_compile"
17876 case "(($ac_try" in
17877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17878 *) ac_try_echo=$ac_try;;
17880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17881 (eval "$ac_compile") 2>conftest.er1
17883 grep -v '^ *+' conftest.er1 >conftest.err
17885 cat conftest.err >&5
17886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17887 (exit $ac_status); } &&
17888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17889 { (case "(($ac_try" in
17890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17891 *) ac_try_echo=$ac_try;;
17893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17894 (eval "$ac_try") 2>&5
17896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897 (exit $ac_status); }; } &&
17898 { ac_try='test -s conftest.$ac_objext'
17899 { (case "(($ac_try" in
17900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17901 *) ac_try_echo=$ac_try;;
17903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17904 (eval "$ac_try") 2>&5
17906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907 (exit $ac_status); }; }; then
17908 ac_cv_have_decl_strerror_s=yes
17910 echo "$as_me: failed program was:" >&5
17911 sed 's/^/| /' conftest.$ac_ext >&5
17913 ac_cv_have_decl_strerror_s=no
17916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17918 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17919 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17920 if test $ac_cv_have_decl_strerror_s = yes; then
17922 cat >>confdefs.h <<_ACEOF
17923 #define HAVE_DECL_STRERROR_S 1
17928 cat >>confdefs.h <<_ACEOF
17929 #define HAVE_DECL_STRERROR_S 0
17937 if test "$llvm_cv_os_type" = "MingW" ; then
17938 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17939 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17940 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17941 echo $ECHO_N "(cached) $ECHO_C" >&6
17943 ac_check_lib_save_LIBS=$LIBS
17945 cat >conftest.$ac_ext <<_ACEOF
17948 cat confdefs.h >>conftest.$ac_ext
17949 cat >>conftest.$ac_ext <<_ACEOF
17950 /* end confdefs.h. */
17952 /* Override any GCC internal prototype to avoid an error.
17953 Use char because int might match the return type of a GCC
17954 builtin and then its argument prototype would still apply. */
17967 rm -f conftest.$ac_objext conftest$ac_exeext
17968 if { (ac_try="$ac_link"
17969 case "(($ac_try" in
17970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17971 *) ac_try_echo=$ac_try;;
17973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17974 (eval "$ac_link") 2>conftest.er1
17976 grep -v '^ *+' conftest.er1 >conftest.err
17978 cat conftest.err >&5
17979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17980 (exit $ac_status); } &&
17981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17982 { (case "(($ac_try" in
17983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17984 *) ac_try_echo=$ac_try;;
17986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17987 (eval "$ac_try") 2>&5
17989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990 (exit $ac_status); }; } &&
17991 { ac_try='test -s conftest$ac_exeext'
17992 { (case "(($ac_try" in
17993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17994 *) ac_try_echo=$ac_try;;
17996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17997 (eval "$ac_try") 2>&5
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); }; }; then
18001 ac_cv_lib_gcc__alloca=yes
18003 echo "$as_me: failed program was:" >&5
18004 sed 's/^/| /' conftest.$ac_ext >&5
18006 ac_cv_lib_gcc__alloca=no
18009 rm -f core conftest.err conftest.$ac_objext \
18010 conftest$ac_exeext conftest.$ac_ext
18011 LIBS=$ac_check_lib_save_LIBS
18013 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18014 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18015 if test $ac_cv_lib_gcc__alloca = yes; then
18017 cat >>confdefs.h <<\_ACEOF
18018 #define HAVE__ALLOCA 1
18023 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18024 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18025 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18026 echo $ECHO_N "(cached) $ECHO_C" >&6
18028 ac_check_lib_save_LIBS=$LIBS
18030 cat >conftest.$ac_ext <<_ACEOF
18033 cat confdefs.h >>conftest.$ac_ext
18034 cat >>conftest.$ac_ext <<_ACEOF
18035 /* end confdefs.h. */
18037 /* Override any GCC internal prototype to avoid an error.
18038 Use char because int might match the return type of a GCC
18039 builtin and then its argument prototype would still apply. */
18047 return __alloca ();
18052 rm -f conftest.$ac_objext conftest$ac_exeext
18053 if { (ac_try="$ac_link"
18054 case "(($ac_try" in
18055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18056 *) ac_try_echo=$ac_try;;
18058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18059 (eval "$ac_link") 2>conftest.er1
18061 grep -v '^ *+' conftest.er1 >conftest.err
18063 cat conftest.err >&5
18064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18065 (exit $ac_status); } &&
18066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18067 { (case "(($ac_try" in
18068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18069 *) ac_try_echo=$ac_try;;
18071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18072 (eval "$ac_try") 2>&5
18074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075 (exit $ac_status); }; } &&
18076 { ac_try='test -s conftest$ac_exeext'
18077 { (case "(($ac_try" in
18078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18079 *) ac_try_echo=$ac_try;;
18081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18082 (eval "$ac_try") 2>&5
18084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18085 (exit $ac_status); }; }; then
18086 ac_cv_lib_gcc___alloca=yes
18088 echo "$as_me: failed program was:" >&5
18089 sed 's/^/| /' conftest.$ac_ext >&5
18091 ac_cv_lib_gcc___alloca=no
18094 rm -f core conftest.err conftest.$ac_objext \
18095 conftest$ac_exeext conftest.$ac_ext
18096 LIBS=$ac_check_lib_save_LIBS
18098 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18099 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18100 if test $ac_cv_lib_gcc___alloca = yes; then
18102 cat >>confdefs.h <<\_ACEOF
18103 #define HAVE___ALLOCA 1
18108 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18109 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18110 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18111 echo $ECHO_N "(cached) $ECHO_C" >&6
18113 ac_check_lib_save_LIBS=$LIBS
18115 cat >conftest.$ac_ext <<_ACEOF
18118 cat confdefs.h >>conftest.$ac_ext
18119 cat >>conftest.$ac_ext <<_ACEOF
18120 /* end confdefs.h. */
18122 /* Override any GCC internal prototype to avoid an error.
18123 Use char because int might match the return type of a GCC
18124 builtin and then its argument prototype would still apply. */
18132 return __chkstk ();
18137 rm -f conftest.$ac_objext conftest$ac_exeext
18138 if { (ac_try="$ac_link"
18139 case "(($ac_try" in
18140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18141 *) ac_try_echo=$ac_try;;
18143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18144 (eval "$ac_link") 2>conftest.er1
18146 grep -v '^ *+' conftest.er1 >conftest.err
18148 cat conftest.err >&5
18149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18150 (exit $ac_status); } &&
18151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18152 { (case "(($ac_try" in
18153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18154 *) ac_try_echo=$ac_try;;
18156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18157 (eval "$ac_try") 2>&5
18159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160 (exit $ac_status); }; } &&
18161 { ac_try='test -s conftest$ac_exeext'
18162 { (case "(($ac_try" in
18163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18164 *) ac_try_echo=$ac_try;;
18166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18167 (eval "$ac_try") 2>&5
18169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170 (exit $ac_status); }; }; then
18171 ac_cv_lib_gcc___chkstk=yes
18173 echo "$as_me: failed program was:" >&5
18174 sed 's/^/| /' conftest.$ac_ext >&5
18176 ac_cv_lib_gcc___chkstk=no
18179 rm -f core conftest.err conftest.$ac_objext \
18180 conftest$ac_exeext conftest.$ac_ext
18181 LIBS=$ac_check_lib_save_LIBS
18183 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18184 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18185 if test $ac_cv_lib_gcc___chkstk = yes; then
18187 cat >>confdefs.h <<\_ACEOF
18188 #define HAVE___CHKSTK 1
18193 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18194 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18195 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18196 echo $ECHO_N "(cached) $ECHO_C" >&6
18198 ac_check_lib_save_LIBS=$LIBS
18200 cat >conftest.$ac_ext <<_ACEOF
18203 cat confdefs.h >>conftest.$ac_ext
18204 cat >>conftest.$ac_ext <<_ACEOF
18205 /* end confdefs.h. */
18207 /* Override any GCC internal prototype to avoid an error.
18208 Use char because int might match the return type of a GCC
18209 builtin and then its argument prototype would still apply. */
18217 return ___chkstk ();
18222 rm -f conftest.$ac_objext conftest$ac_exeext
18223 if { (ac_try="$ac_link"
18224 case "(($ac_try" in
18225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18226 *) ac_try_echo=$ac_try;;
18228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18229 (eval "$ac_link") 2>conftest.er1
18231 grep -v '^ *+' conftest.er1 >conftest.err
18233 cat conftest.err >&5
18234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235 (exit $ac_status); } &&
18236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18237 { (case "(($ac_try" in
18238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18239 *) ac_try_echo=$ac_try;;
18241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18242 (eval "$ac_try") 2>&5
18244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245 (exit $ac_status); }; } &&
18246 { ac_try='test -s conftest$ac_exeext'
18247 { (case "(($ac_try" in
18248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18249 *) ac_try_echo=$ac_try;;
18251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18252 (eval "$ac_try") 2>&5
18254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255 (exit $ac_status); }; }; then
18256 ac_cv_lib_gcc____chkstk=yes
18258 echo "$as_me: failed program was:" >&5
18259 sed 's/^/| /' conftest.$ac_ext >&5
18261 ac_cv_lib_gcc____chkstk=no
18264 rm -f core conftest.err conftest.$ac_objext \
18265 conftest$ac_exeext conftest.$ac_ext
18266 LIBS=$ac_check_lib_save_LIBS
18268 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18269 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18270 if test $ac_cv_lib_gcc____chkstk = yes; then
18272 cat >>confdefs.h <<\_ACEOF
18273 #define HAVE____CHKSTK 1
18279 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18280 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18281 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18282 echo $ECHO_N "(cached) $ECHO_C" >&6
18284 ac_check_lib_save_LIBS=$LIBS
18286 cat >conftest.$ac_ext <<_ACEOF
18289 cat confdefs.h >>conftest.$ac_ext
18290 cat >>conftest.$ac_ext <<_ACEOF
18291 /* end confdefs.h. */
18293 /* Override any GCC internal prototype to avoid an error.
18294 Use char because int might match the return type of a GCC
18295 builtin and then its argument prototype would still apply. */
18303 return __ashldi3 ();
18308 rm -f conftest.$ac_objext conftest$ac_exeext
18309 if { (ac_try="$ac_link"
18310 case "(($ac_try" in
18311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18312 *) ac_try_echo=$ac_try;;
18314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18315 (eval "$ac_link") 2>conftest.er1
18317 grep -v '^ *+' conftest.er1 >conftest.err
18319 cat conftest.err >&5
18320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321 (exit $ac_status); } &&
18322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18323 { (case "(($ac_try" in
18324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18325 *) ac_try_echo=$ac_try;;
18327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18328 (eval "$ac_try") 2>&5
18330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331 (exit $ac_status); }; } &&
18332 { ac_try='test -s conftest$ac_exeext'
18333 { (case "(($ac_try" in
18334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18335 *) ac_try_echo=$ac_try;;
18337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18338 (eval "$ac_try") 2>&5
18340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341 (exit $ac_status); }; }; then
18342 ac_cv_lib_gcc___ashldi3=yes
18344 echo "$as_me: failed program was:" >&5
18345 sed 's/^/| /' conftest.$ac_ext >&5
18347 ac_cv_lib_gcc___ashldi3=no
18350 rm -f core conftest.err conftest.$ac_objext \
18351 conftest$ac_exeext conftest.$ac_ext
18352 LIBS=$ac_check_lib_save_LIBS
18354 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18355 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18356 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18358 cat >>confdefs.h <<\_ACEOF
18359 #define HAVE___ASHLDI3 1
18364 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18365 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18366 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18367 echo $ECHO_N "(cached) $ECHO_C" >&6
18369 ac_check_lib_save_LIBS=$LIBS
18371 cat >conftest.$ac_ext <<_ACEOF
18374 cat confdefs.h >>conftest.$ac_ext
18375 cat >>conftest.$ac_ext <<_ACEOF
18376 /* end confdefs.h. */
18378 /* Override any GCC internal prototype to avoid an error.
18379 Use char because int might match the return type of a GCC
18380 builtin and then its argument prototype would still apply. */
18388 return __ashrdi3 ();
18393 rm -f conftest.$ac_objext conftest$ac_exeext
18394 if { (ac_try="$ac_link"
18395 case "(($ac_try" in
18396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18397 *) ac_try_echo=$ac_try;;
18399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18400 (eval "$ac_link") 2>conftest.er1
18402 grep -v '^ *+' conftest.er1 >conftest.err
18404 cat conftest.err >&5
18405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406 (exit $ac_status); } &&
18407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18408 { (case "(($ac_try" in
18409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18410 *) ac_try_echo=$ac_try;;
18412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18413 (eval "$ac_try") 2>&5
18415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18416 (exit $ac_status); }; } &&
18417 { ac_try='test -s conftest$ac_exeext'
18418 { (case "(($ac_try" in
18419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18420 *) ac_try_echo=$ac_try;;
18422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18423 (eval "$ac_try") 2>&5
18425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18426 (exit $ac_status); }; }; then
18427 ac_cv_lib_gcc___ashrdi3=yes
18429 echo "$as_me: failed program was:" >&5
18430 sed 's/^/| /' conftest.$ac_ext >&5
18432 ac_cv_lib_gcc___ashrdi3=no
18435 rm -f core conftest.err conftest.$ac_objext \
18436 conftest$ac_exeext conftest.$ac_ext
18437 LIBS=$ac_check_lib_save_LIBS
18439 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18440 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18441 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18443 cat >>confdefs.h <<\_ACEOF
18444 #define HAVE___ASHRDI3 1
18449 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18450 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18451 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18452 echo $ECHO_N "(cached) $ECHO_C" >&6
18454 ac_check_lib_save_LIBS=$LIBS
18456 cat >conftest.$ac_ext <<_ACEOF
18459 cat confdefs.h >>conftest.$ac_ext
18460 cat >>conftest.$ac_ext <<_ACEOF
18461 /* end confdefs.h. */
18463 /* Override any GCC internal prototype to avoid an error.
18464 Use char because int might match the return type of a GCC
18465 builtin and then its argument prototype would still apply. */
18473 return __divdi3 ();
18478 rm -f conftest.$ac_objext conftest$ac_exeext
18479 if { (ac_try="$ac_link"
18480 case "(($ac_try" in
18481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18482 *) ac_try_echo=$ac_try;;
18484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18485 (eval "$ac_link") 2>conftest.er1
18487 grep -v '^ *+' conftest.er1 >conftest.err
18489 cat conftest.err >&5
18490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491 (exit $ac_status); } &&
18492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18493 { (case "(($ac_try" in
18494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18495 *) ac_try_echo=$ac_try;;
18497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18498 (eval "$ac_try") 2>&5
18500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501 (exit $ac_status); }; } &&
18502 { ac_try='test -s conftest$ac_exeext'
18503 { (case "(($ac_try" in
18504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18505 *) ac_try_echo=$ac_try;;
18507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18508 (eval "$ac_try") 2>&5
18510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511 (exit $ac_status); }; }; then
18512 ac_cv_lib_gcc___divdi3=yes
18514 echo "$as_me: failed program was:" >&5
18515 sed 's/^/| /' conftest.$ac_ext >&5
18517 ac_cv_lib_gcc___divdi3=no
18520 rm -f core conftest.err conftest.$ac_objext \
18521 conftest$ac_exeext conftest.$ac_ext
18522 LIBS=$ac_check_lib_save_LIBS
18524 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18525 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18526 if test $ac_cv_lib_gcc___divdi3 = yes; then
18528 cat >>confdefs.h <<\_ACEOF
18529 #define HAVE___DIVDI3 1
18534 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18535 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18536 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18537 echo $ECHO_N "(cached) $ECHO_C" >&6
18539 ac_check_lib_save_LIBS=$LIBS
18541 cat >conftest.$ac_ext <<_ACEOF
18544 cat confdefs.h >>conftest.$ac_ext
18545 cat >>conftest.$ac_ext <<_ACEOF
18546 /* end confdefs.h. */
18548 /* Override any GCC internal prototype to avoid an error.
18549 Use char because int might match the return type of a GCC
18550 builtin and then its argument prototype would still apply. */
18558 return __fixdfdi ();
18563 rm -f conftest.$ac_objext conftest$ac_exeext
18564 if { (ac_try="$ac_link"
18565 case "(($ac_try" in
18566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18567 *) ac_try_echo=$ac_try;;
18569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18570 (eval "$ac_link") 2>conftest.er1
18572 grep -v '^ *+' conftest.er1 >conftest.err
18574 cat conftest.err >&5
18575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576 (exit $ac_status); } &&
18577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18578 { (case "(($ac_try" in
18579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18580 *) ac_try_echo=$ac_try;;
18582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18583 (eval "$ac_try") 2>&5
18585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586 (exit $ac_status); }; } &&
18587 { ac_try='test -s conftest$ac_exeext'
18588 { (case "(($ac_try" in
18589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18590 *) ac_try_echo=$ac_try;;
18592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18593 (eval "$ac_try") 2>&5
18595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18596 (exit $ac_status); }; }; then
18597 ac_cv_lib_gcc___fixdfdi=yes
18599 echo "$as_me: failed program was:" >&5
18600 sed 's/^/| /' conftest.$ac_ext >&5
18602 ac_cv_lib_gcc___fixdfdi=no
18605 rm -f core conftest.err conftest.$ac_objext \
18606 conftest$ac_exeext conftest.$ac_ext
18607 LIBS=$ac_check_lib_save_LIBS
18609 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18610 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18611 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18613 cat >>confdefs.h <<\_ACEOF
18614 #define HAVE___FIXDFDI 1
18619 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18620 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18621 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18622 echo $ECHO_N "(cached) $ECHO_C" >&6
18624 ac_check_lib_save_LIBS=$LIBS
18626 cat >conftest.$ac_ext <<_ACEOF
18629 cat confdefs.h >>conftest.$ac_ext
18630 cat >>conftest.$ac_ext <<_ACEOF
18631 /* end confdefs.h. */
18633 /* Override any GCC internal prototype to avoid an error.
18634 Use char because int might match the return type of a GCC
18635 builtin and then its argument prototype would still apply. */
18643 return __fixsfdi ();
18648 rm -f conftest.$ac_objext conftest$ac_exeext
18649 if { (ac_try="$ac_link"
18650 case "(($ac_try" in
18651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18652 *) ac_try_echo=$ac_try;;
18654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18655 (eval "$ac_link") 2>conftest.er1
18657 grep -v '^ *+' conftest.er1 >conftest.err
18659 cat conftest.err >&5
18660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661 (exit $ac_status); } &&
18662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18663 { (case "(($ac_try" in
18664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18665 *) ac_try_echo=$ac_try;;
18667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18668 (eval "$ac_try") 2>&5
18670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18671 (exit $ac_status); }; } &&
18672 { ac_try='test -s conftest$ac_exeext'
18673 { (case "(($ac_try" in
18674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18675 *) ac_try_echo=$ac_try;;
18677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18678 (eval "$ac_try") 2>&5
18680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18681 (exit $ac_status); }; }; then
18682 ac_cv_lib_gcc___fixsfdi=yes
18684 echo "$as_me: failed program was:" >&5
18685 sed 's/^/| /' conftest.$ac_ext >&5
18687 ac_cv_lib_gcc___fixsfdi=no
18690 rm -f core conftest.err conftest.$ac_objext \
18691 conftest$ac_exeext conftest.$ac_ext
18692 LIBS=$ac_check_lib_save_LIBS
18694 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18695 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18696 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18698 cat >>confdefs.h <<\_ACEOF
18699 #define HAVE___FIXSFDI 1
18704 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18705 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18706 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18707 echo $ECHO_N "(cached) $ECHO_C" >&6
18709 ac_check_lib_save_LIBS=$LIBS
18711 cat >conftest.$ac_ext <<_ACEOF
18714 cat confdefs.h >>conftest.$ac_ext
18715 cat >>conftest.$ac_ext <<_ACEOF
18716 /* end confdefs.h. */
18718 /* Override any GCC internal prototype to avoid an error.
18719 Use char because int might match the return type of a GCC
18720 builtin and then its argument prototype would still apply. */
18724 char __floatdidf ();
18728 return __floatdidf ();
18733 rm -f conftest.$ac_objext conftest$ac_exeext
18734 if { (ac_try="$ac_link"
18735 case "(($ac_try" in
18736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18737 *) ac_try_echo=$ac_try;;
18739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18740 (eval "$ac_link") 2>conftest.er1
18742 grep -v '^ *+' conftest.er1 >conftest.err
18744 cat conftest.err >&5
18745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746 (exit $ac_status); } &&
18747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18748 { (case "(($ac_try" in
18749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18750 *) ac_try_echo=$ac_try;;
18752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18753 (eval "$ac_try") 2>&5
18755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18756 (exit $ac_status); }; } &&
18757 { ac_try='test -s conftest$ac_exeext'
18758 { (case "(($ac_try" in
18759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18760 *) ac_try_echo=$ac_try;;
18762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18763 (eval "$ac_try") 2>&5
18765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766 (exit $ac_status); }; }; then
18767 ac_cv_lib_gcc___floatdidf=yes
18769 echo "$as_me: failed program was:" >&5
18770 sed 's/^/| /' conftest.$ac_ext >&5
18772 ac_cv_lib_gcc___floatdidf=no
18775 rm -f core conftest.err conftest.$ac_objext \
18776 conftest$ac_exeext conftest.$ac_ext
18777 LIBS=$ac_check_lib_save_LIBS
18779 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18780 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18781 if test $ac_cv_lib_gcc___floatdidf = yes; then
18783 cat >>confdefs.h <<\_ACEOF
18784 #define HAVE___FLOATDIDF 1
18789 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18790 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18791 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18792 echo $ECHO_N "(cached) $ECHO_C" >&6
18794 ac_check_lib_save_LIBS=$LIBS
18796 cat >conftest.$ac_ext <<_ACEOF
18799 cat confdefs.h >>conftest.$ac_ext
18800 cat >>conftest.$ac_ext <<_ACEOF
18801 /* end confdefs.h. */
18803 /* Override any GCC internal prototype to avoid an error.
18804 Use char because int might match the return type of a GCC
18805 builtin and then its argument prototype would still apply. */
18813 return __lshrdi3 ();
18818 rm -f conftest.$ac_objext conftest$ac_exeext
18819 if { (ac_try="$ac_link"
18820 case "(($ac_try" in
18821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18822 *) ac_try_echo=$ac_try;;
18824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18825 (eval "$ac_link") 2>conftest.er1
18827 grep -v '^ *+' conftest.er1 >conftest.err
18829 cat conftest.err >&5
18830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831 (exit $ac_status); } &&
18832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18833 { (case "(($ac_try" in
18834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18835 *) ac_try_echo=$ac_try;;
18837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18838 (eval "$ac_try") 2>&5
18840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18841 (exit $ac_status); }; } &&
18842 { ac_try='test -s conftest$ac_exeext'
18843 { (case "(($ac_try" in
18844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18845 *) ac_try_echo=$ac_try;;
18847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18848 (eval "$ac_try") 2>&5
18850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851 (exit $ac_status); }; }; then
18852 ac_cv_lib_gcc___lshrdi3=yes
18854 echo "$as_me: failed program was:" >&5
18855 sed 's/^/| /' conftest.$ac_ext >&5
18857 ac_cv_lib_gcc___lshrdi3=no
18860 rm -f core conftest.err conftest.$ac_objext \
18861 conftest$ac_exeext conftest.$ac_ext
18862 LIBS=$ac_check_lib_save_LIBS
18864 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18865 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18866 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18868 cat >>confdefs.h <<\_ACEOF
18869 #define HAVE___LSHRDI3 1
18874 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18875 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18876 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18877 echo $ECHO_N "(cached) $ECHO_C" >&6
18879 ac_check_lib_save_LIBS=$LIBS
18881 cat >conftest.$ac_ext <<_ACEOF
18884 cat confdefs.h >>conftest.$ac_ext
18885 cat >>conftest.$ac_ext <<_ACEOF
18886 /* end confdefs.h. */
18888 /* Override any GCC internal prototype to avoid an error.
18889 Use char because int might match the return type of a GCC
18890 builtin and then its argument prototype would still apply. */
18898 return __moddi3 ();
18903 rm -f conftest.$ac_objext conftest$ac_exeext
18904 if { (ac_try="$ac_link"
18905 case "(($ac_try" in
18906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18907 *) ac_try_echo=$ac_try;;
18909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18910 (eval "$ac_link") 2>conftest.er1
18912 grep -v '^ *+' conftest.er1 >conftest.err
18914 cat conftest.err >&5
18915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18916 (exit $ac_status); } &&
18917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18918 { (case "(($ac_try" in
18919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18920 *) ac_try_echo=$ac_try;;
18922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18923 (eval "$ac_try") 2>&5
18925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18926 (exit $ac_status); }; } &&
18927 { ac_try='test -s conftest$ac_exeext'
18928 { (case "(($ac_try" in
18929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18930 *) ac_try_echo=$ac_try;;
18932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18933 (eval "$ac_try") 2>&5
18935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936 (exit $ac_status); }; }; then
18937 ac_cv_lib_gcc___moddi3=yes
18939 echo "$as_me: failed program was:" >&5
18940 sed 's/^/| /' conftest.$ac_ext >&5
18942 ac_cv_lib_gcc___moddi3=no
18945 rm -f core conftest.err conftest.$ac_objext \
18946 conftest$ac_exeext conftest.$ac_ext
18947 LIBS=$ac_check_lib_save_LIBS
18949 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18950 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18951 if test $ac_cv_lib_gcc___moddi3 = yes; then
18953 cat >>confdefs.h <<\_ACEOF
18954 #define HAVE___MODDI3 1
18959 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18960 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18961 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18962 echo $ECHO_N "(cached) $ECHO_C" >&6
18964 ac_check_lib_save_LIBS=$LIBS
18966 cat >conftest.$ac_ext <<_ACEOF
18969 cat confdefs.h >>conftest.$ac_ext
18970 cat >>conftest.$ac_ext <<_ACEOF
18971 /* end confdefs.h. */
18973 /* Override any GCC internal prototype to avoid an error.
18974 Use char because int might match the return type of a GCC
18975 builtin and then its argument prototype would still apply. */
18983 return __udivdi3 ();
18988 rm -f conftest.$ac_objext conftest$ac_exeext
18989 if { (ac_try="$ac_link"
18990 case "(($ac_try" in
18991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18992 *) ac_try_echo=$ac_try;;
18994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18995 (eval "$ac_link") 2>conftest.er1
18997 grep -v '^ *+' conftest.er1 >conftest.err
18999 cat conftest.err >&5
19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001 (exit $ac_status); } &&
19002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19003 { (case "(($ac_try" in
19004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19005 *) ac_try_echo=$ac_try;;
19007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19008 (eval "$ac_try") 2>&5
19010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011 (exit $ac_status); }; } &&
19012 { ac_try='test -s conftest$ac_exeext'
19013 { (case "(($ac_try" in
19014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19015 *) ac_try_echo=$ac_try;;
19017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19018 (eval "$ac_try") 2>&5
19020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19021 (exit $ac_status); }; }; then
19022 ac_cv_lib_gcc___udivdi3=yes
19024 echo "$as_me: failed program was:" >&5
19025 sed 's/^/| /' conftest.$ac_ext >&5
19027 ac_cv_lib_gcc___udivdi3=no
19030 rm -f core conftest.err conftest.$ac_objext \
19031 conftest$ac_exeext conftest.$ac_ext
19032 LIBS=$ac_check_lib_save_LIBS
19034 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19035 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19036 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19038 cat >>confdefs.h <<\_ACEOF
19039 #define HAVE___UDIVDI3 1
19044 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19045 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19046 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19047 echo $ECHO_N "(cached) $ECHO_C" >&6
19049 ac_check_lib_save_LIBS=$LIBS
19051 cat >conftest.$ac_ext <<_ACEOF
19054 cat confdefs.h >>conftest.$ac_ext
19055 cat >>conftest.$ac_ext <<_ACEOF
19056 /* end confdefs.h. */
19058 /* Override any GCC internal prototype to avoid an error.
19059 Use char because int might match the return type of a GCC
19060 builtin and then its argument prototype would still apply. */
19068 return __umoddi3 ();
19073 rm -f conftest.$ac_objext conftest$ac_exeext
19074 if { (ac_try="$ac_link"
19075 case "(($ac_try" in
19076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19077 *) ac_try_echo=$ac_try;;
19079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19080 (eval "$ac_link") 2>conftest.er1
19082 grep -v '^ *+' conftest.er1 >conftest.err
19084 cat conftest.err >&5
19085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086 (exit $ac_status); } &&
19087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19088 { (case "(($ac_try" in
19089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19090 *) ac_try_echo=$ac_try;;
19092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19093 (eval "$ac_try") 2>&5
19095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096 (exit $ac_status); }; } &&
19097 { ac_try='test -s conftest$ac_exeext'
19098 { (case "(($ac_try" in
19099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19100 *) ac_try_echo=$ac_try;;
19102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19103 (eval "$ac_try") 2>&5
19105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106 (exit $ac_status); }; }; then
19107 ac_cv_lib_gcc___umoddi3=yes
19109 echo "$as_me: failed program was:" >&5
19110 sed 's/^/| /' conftest.$ac_ext >&5
19112 ac_cv_lib_gcc___umoddi3=no
19115 rm -f core conftest.err conftest.$ac_objext \
19116 conftest$ac_exeext conftest.$ac_ext
19117 LIBS=$ac_check_lib_save_LIBS
19119 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19120 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19121 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19123 cat >>confdefs.h <<\_ACEOF
19124 #define HAVE___UMODDI3 1
19130 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19131 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19132 if test "${ac_cv_lib_gcc___main+set}" = set; then
19133 echo $ECHO_N "(cached) $ECHO_C" >&6
19135 ac_check_lib_save_LIBS=$LIBS
19137 cat >conftest.$ac_ext <<_ACEOF
19140 cat confdefs.h >>conftest.$ac_ext
19141 cat >>conftest.$ac_ext <<_ACEOF
19142 /* end confdefs.h. */
19144 /* Override any GCC internal prototype to avoid an error.
19145 Use char because int might match the return type of a GCC
19146 builtin and then its argument prototype would still apply. */
19159 rm -f conftest.$ac_objext conftest$ac_exeext
19160 if { (ac_try="$ac_link"
19161 case "(($ac_try" in
19162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19163 *) ac_try_echo=$ac_try;;
19165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19166 (eval "$ac_link") 2>conftest.er1
19168 grep -v '^ *+' conftest.er1 >conftest.err
19170 cat conftest.err >&5
19171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172 (exit $ac_status); } &&
19173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19174 { (case "(($ac_try" in
19175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19176 *) ac_try_echo=$ac_try;;
19178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19179 (eval "$ac_try") 2>&5
19181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19182 (exit $ac_status); }; } &&
19183 { ac_try='test -s conftest$ac_exeext'
19184 { (case "(($ac_try" in
19185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19186 *) ac_try_echo=$ac_try;;
19188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19189 (eval "$ac_try") 2>&5
19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192 (exit $ac_status); }; }; then
19193 ac_cv_lib_gcc___main=yes
19195 echo "$as_me: failed program was:" >&5
19196 sed 's/^/| /' conftest.$ac_ext >&5
19198 ac_cv_lib_gcc___main=no
19201 rm -f core conftest.err conftest.$ac_objext \
19202 conftest$ac_exeext conftest.$ac_ext
19203 LIBS=$ac_check_lib_save_LIBS
19205 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19206 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19207 if test $ac_cv_lib_gcc___main = yes; then
19209 cat >>confdefs.h <<\_ACEOF
19210 #define HAVE___MAIN 1
19215 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19216 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19217 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19218 echo $ECHO_N "(cached) $ECHO_C" >&6
19220 ac_check_lib_save_LIBS=$LIBS
19222 cat >conftest.$ac_ext <<_ACEOF
19225 cat confdefs.h >>conftest.$ac_ext
19226 cat >>conftest.$ac_ext <<_ACEOF
19227 /* end confdefs.h. */
19229 /* Override any GCC internal prototype to avoid an error.
19230 Use char because int might match the return type of a GCC
19231 builtin and then its argument prototype would still apply. */
19239 return __cmpdi2 ();
19244 rm -f conftest.$ac_objext conftest$ac_exeext
19245 if { (ac_try="$ac_link"
19246 case "(($ac_try" in
19247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19248 *) ac_try_echo=$ac_try;;
19250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19251 (eval "$ac_link") 2>conftest.er1
19253 grep -v '^ *+' conftest.er1 >conftest.err
19255 cat conftest.err >&5
19256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19257 (exit $ac_status); } &&
19258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19259 { (case "(($ac_try" in
19260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19261 *) ac_try_echo=$ac_try;;
19263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19264 (eval "$ac_try") 2>&5
19266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267 (exit $ac_status); }; } &&
19268 { ac_try='test -s conftest$ac_exeext'
19269 { (case "(($ac_try" in
19270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19271 *) ac_try_echo=$ac_try;;
19273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19274 (eval "$ac_try") 2>&5
19276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277 (exit $ac_status); }; }; then
19278 ac_cv_lib_gcc___cmpdi2=yes
19280 echo "$as_me: failed program was:" >&5
19281 sed 's/^/| /' conftest.$ac_ext >&5
19283 ac_cv_lib_gcc___cmpdi2=no
19286 rm -f core conftest.err conftest.$ac_objext \
19287 conftest$ac_exeext conftest.$ac_ext
19288 LIBS=$ac_check_lib_save_LIBS
19290 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19291 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19292 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19294 cat >>confdefs.h <<\_ACEOF
19295 #define HAVE___CMPDI2 1
19302 if test "$llvm_cv_os_type" = "MingW" ; then
19303 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19304 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19305 cat >conftest.$ac_ext <<_ACEOF
19306 #include <windows.h>
19307 #include <imagehlp.h>
19308 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19309 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19311 rm -f conftest.$ac_objext
19312 if { (ac_try="$ac_compile"
19313 case "(($ac_try" in
19314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19315 *) ac_try_echo=$ac_try;;
19317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19318 (eval "$ac_compile") 2>conftest.er1
19320 grep -v '^ *+' conftest.er1 >conftest.err
19322 cat conftest.err >&5
19323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); } &&
19325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19326 { (case "(($ac_try" in
19327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19328 *) ac_try_echo=$ac_try;;
19330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19331 (eval "$ac_try") 2>&5
19333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334 (exit $ac_status); }; } &&
19335 { ac_try='test -s conftest.$ac_objext'
19336 { (case "(($ac_try" in
19337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19338 *) ac_try_echo=$ac_try;;
19340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19341 (eval "$ac_try") 2>&5
19343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344 (exit $ac_status); }; }; then
19346 { echo "$as_me:$LINENO: result: yes" >&5
19347 echo "${ECHO_T}yes" >&6; }
19348 llvm_cv_win32_elmcb_pcstr="PCSTR"
19351 echo "$as_me: failed program was:" >&5
19352 sed 's/^/| /' conftest.$ac_ext >&5
19355 { echo "$as_me:$LINENO: result: no" >&5
19356 echo "${ECHO_T}no" >&6; }
19357 llvm_cv_win32_elmcb_pcstr="PSTR"
19361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19363 cat >>confdefs.h <<_ACEOF
19364 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19370 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19371 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19372 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19373 echo $ECHO_N "(cached) $ECHO_C" >&6
19376 ac_cpp='$CXXCPP $CPPFLAGS'
19377 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19378 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19379 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19381 cat >conftest.$ac_ext <<_ACEOF
19384 cat confdefs.h >>conftest.$ac_ext
19385 cat >>conftest.$ac_ext <<_ACEOF
19386 /* end confdefs.h. */
19396 rm -f conftest.$ac_objext
19397 if { (ac_try="$ac_compile"
19398 case "(($ac_try" in
19399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19400 *) ac_try_echo=$ac_try;;
19402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19403 (eval "$ac_compile") 2>conftest.er1
19405 grep -v '^ *+' conftest.er1 >conftest.err
19407 cat conftest.err >&5
19408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409 (exit $ac_status); } &&
19410 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19411 { (case "(($ac_try" in
19412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19413 *) ac_try_echo=$ac_try;;
19415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19416 (eval "$ac_try") 2>&5
19418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419 (exit $ac_status); }; } &&
19420 { ac_try='test -s conftest.$ac_objext'
19421 { (case "(($ac_try" in
19422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19423 *) ac_try_echo=$ac_try;;
19425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19426 (eval "$ac_try") 2>&5
19428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429 (exit $ac_status); }; }; then
19430 ac_cv_func_isnan_in_math_h=yes
19432 echo "$as_me: failed program was:" >&5
19433 sed 's/^/| /' conftest.$ac_ext >&5
19435 ac_cv_func_isnan_in_math_h=no
19438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19440 ac_cpp='$CPP $CPPFLAGS'
19441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19446 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19447 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19450 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19452 cat >>confdefs.h <<\_ACEOF
19453 #define HAVE_ISNAN_IN_MATH_H 1
19458 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19459 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19460 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19461 echo $ECHO_N "(cached) $ECHO_C" >&6
19464 ac_cpp='$CXXCPP $CPPFLAGS'
19465 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19466 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19467 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19469 cat >conftest.$ac_ext <<_ACEOF
19472 cat confdefs.h >>conftest.$ac_ext
19473 cat >>conftest.$ac_ext <<_ACEOF
19474 /* end confdefs.h. */
19484 rm -f conftest.$ac_objext
19485 if { (ac_try="$ac_compile"
19486 case "(($ac_try" in
19487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19488 *) ac_try_echo=$ac_try;;
19490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19491 (eval "$ac_compile") 2>conftest.er1
19493 grep -v '^ *+' conftest.er1 >conftest.err
19495 cat conftest.err >&5
19496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19497 (exit $ac_status); } &&
19498 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19499 { (case "(($ac_try" in
19500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19501 *) ac_try_echo=$ac_try;;
19503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19504 (eval "$ac_try") 2>&5
19506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507 (exit $ac_status); }; } &&
19508 { ac_try='test -s conftest.$ac_objext'
19509 { (case "(($ac_try" in
19510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19511 *) ac_try_echo=$ac_try;;
19513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19514 (eval "$ac_try") 2>&5
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); }; }; then
19518 ac_cv_func_isnan_in_cmath=yes
19520 echo "$as_me: failed program was:" >&5
19521 sed 's/^/| /' conftest.$ac_ext >&5
19523 ac_cv_func_isnan_in_cmath=no
19526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19528 ac_cpp='$CPP $CPPFLAGS'
19529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19534 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19535 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19537 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19539 cat >>confdefs.h <<\_ACEOF
19540 #define HAVE_ISNAN_IN_CMATH 1
19545 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19546 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19547 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19548 echo $ECHO_N "(cached) $ECHO_C" >&6
19551 ac_cpp='$CXXCPP $CPPFLAGS'
19552 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19553 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19554 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19556 cat >conftest.$ac_ext <<_ACEOF
19559 cat confdefs.h >>conftest.$ac_ext
19560 cat >>conftest.$ac_ext <<_ACEOF
19561 /* end confdefs.h. */
19566 float f; std::isnan(f);
19571 rm -f conftest.$ac_objext
19572 if { (ac_try="$ac_compile"
19573 case "(($ac_try" in
19574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19575 *) ac_try_echo=$ac_try;;
19577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19578 (eval "$ac_compile") 2>conftest.er1
19580 grep -v '^ *+' conftest.er1 >conftest.err
19582 cat conftest.err >&5
19583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584 (exit $ac_status); } &&
19585 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19586 { (case "(($ac_try" in
19587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19588 *) ac_try_echo=$ac_try;;
19590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19591 (eval "$ac_try") 2>&5
19593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594 (exit $ac_status); }; } &&
19595 { ac_try='test -s conftest.$ac_objext'
19596 { (case "(($ac_try" in
19597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19598 *) ac_try_echo=$ac_try;;
19600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19601 (eval "$ac_try") 2>&5
19603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19604 (exit $ac_status); }; }; then
19605 ac_cv_func_std_isnan_in_cmath=yes
19607 echo "$as_me: failed program was:" >&5
19608 sed 's/^/| /' conftest.$ac_ext >&5
19610 ac_cv_func_std_isnan_in_cmath=no
19613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19615 ac_cpp='$CPP $CPPFLAGS'
19616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19621 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19622 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19624 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19626 cat >>confdefs.h <<\_ACEOF
19627 #define HAVE_STD_ISNAN_IN_CMATH 1
19633 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19634 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19635 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19636 echo $ECHO_N "(cached) $ECHO_C" >&6
19639 ac_cpp='$CXXCPP $CPPFLAGS'
19640 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19641 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19642 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19644 cat >conftest.$ac_ext <<_ACEOF
19647 cat confdefs.h >>conftest.$ac_ext
19648 cat >>conftest.$ac_ext <<_ACEOF
19649 /* end confdefs.h. */
19659 rm -f conftest.$ac_objext
19660 if { (ac_try="$ac_compile"
19661 case "(($ac_try" in
19662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19663 *) ac_try_echo=$ac_try;;
19665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19666 (eval "$ac_compile") 2>conftest.er1
19668 grep -v '^ *+' conftest.er1 >conftest.err
19670 cat conftest.err >&5
19671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19672 (exit $ac_status); } &&
19673 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19674 { (case "(($ac_try" in
19675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19676 *) ac_try_echo=$ac_try;;
19678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19679 (eval "$ac_try") 2>&5
19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); }; } &&
19683 { ac_try='test -s conftest.$ac_objext'
19684 { (case "(($ac_try" in
19685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19686 *) ac_try_echo=$ac_try;;
19688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19689 (eval "$ac_try") 2>&5
19691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692 (exit $ac_status); }; }; then
19693 ac_cv_func_isinf_in_math_h=yes
19695 echo "$as_me: failed program was:" >&5
19696 sed 's/^/| /' conftest.$ac_ext >&5
19698 ac_cv_func_isinf_in_math_h=no
19701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19703 ac_cpp='$CPP $CPPFLAGS'
19704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19709 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19710 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19712 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19714 cat >>confdefs.h <<\_ACEOF
19715 #define HAVE_ISINF_IN_MATH_H 1
19720 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19721 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19722 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19723 echo $ECHO_N "(cached) $ECHO_C" >&6
19726 ac_cpp='$CXXCPP $CPPFLAGS'
19727 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19728 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19729 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19731 cat >conftest.$ac_ext <<_ACEOF
19734 cat confdefs.h >>conftest.$ac_ext
19735 cat >>conftest.$ac_ext <<_ACEOF
19736 /* end confdefs.h. */
19746 rm -f conftest.$ac_objext
19747 if { (ac_try="$ac_compile"
19748 case "(($ac_try" in
19749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19750 *) ac_try_echo=$ac_try;;
19752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19753 (eval "$ac_compile") 2>conftest.er1
19755 grep -v '^ *+' conftest.er1 >conftest.err
19757 cat conftest.err >&5
19758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19759 (exit $ac_status); } &&
19760 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19761 { (case "(($ac_try" in
19762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19763 *) ac_try_echo=$ac_try;;
19765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19766 (eval "$ac_try") 2>&5
19768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769 (exit $ac_status); }; } &&
19770 { ac_try='test -s conftest.$ac_objext'
19771 { (case "(($ac_try" in
19772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19773 *) ac_try_echo=$ac_try;;
19775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19776 (eval "$ac_try") 2>&5
19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779 (exit $ac_status); }; }; then
19780 ac_cv_func_isinf_in_cmath=yes
19782 echo "$as_me: failed program was:" >&5
19783 sed 's/^/| /' conftest.$ac_ext >&5
19785 ac_cv_func_isinf_in_cmath=no
19788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19790 ac_cpp='$CPP $CPPFLAGS'
19791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19796 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19797 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19799 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19801 cat >>confdefs.h <<\_ACEOF
19802 #define HAVE_ISINF_IN_CMATH 1
19807 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19808 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19809 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19810 echo $ECHO_N "(cached) $ECHO_C" >&6
19813 ac_cpp='$CXXCPP $CPPFLAGS'
19814 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19815 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19816 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19818 cat >conftest.$ac_ext <<_ACEOF
19821 cat confdefs.h >>conftest.$ac_ext
19822 cat >>conftest.$ac_ext <<_ACEOF
19823 /* end confdefs.h. */
19828 float f; std::isinf(f);
19833 rm -f conftest.$ac_objext
19834 if { (ac_try="$ac_compile"
19835 case "(($ac_try" in
19836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19837 *) ac_try_echo=$ac_try;;
19839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19840 (eval "$ac_compile") 2>conftest.er1
19842 grep -v '^ *+' conftest.er1 >conftest.err
19844 cat conftest.err >&5
19845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846 (exit $ac_status); } &&
19847 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19848 { (case "(($ac_try" in
19849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19850 *) ac_try_echo=$ac_try;;
19852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19853 (eval "$ac_try") 2>&5
19855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856 (exit $ac_status); }; } &&
19857 { ac_try='test -s conftest.$ac_objext'
19858 { (case "(($ac_try" in
19859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19860 *) ac_try_echo=$ac_try;;
19862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19863 (eval "$ac_try") 2>&5
19865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866 (exit $ac_status); }; }; then
19867 ac_cv_func_std_isinf_in_cmath=yes
19869 echo "$as_me: failed program was:" >&5
19870 sed 's/^/| /' conftest.$ac_ext >&5
19872 ac_cv_func_std_isinf_in_cmath=no
19875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19877 ac_cpp='$CPP $CPPFLAGS'
19878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19883 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19884 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19886 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19888 cat >>confdefs.h <<\_ACEOF
19889 #define HAVE_STD_ISINF_IN_CMATH 1
19894 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19895 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19896 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19897 echo $ECHO_N "(cached) $ECHO_C" >&6
19900 ac_cpp='$CXXCPP $CPPFLAGS'
19901 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19902 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19903 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19905 cat >conftest.$ac_ext <<_ACEOF
19908 cat confdefs.h >>conftest.$ac_ext
19909 cat >>conftest.$ac_ext <<_ACEOF
19910 /* end confdefs.h. */
19911 #include <ieeefp.h>
19915 float f; finite(f);
19920 rm -f conftest.$ac_objext
19921 if { (ac_try="$ac_compile"
19922 case "(($ac_try" in
19923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19924 *) ac_try_echo=$ac_try;;
19926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19927 (eval "$ac_compile") 2>conftest.er1
19929 grep -v '^ *+' conftest.er1 >conftest.err
19931 cat conftest.err >&5
19932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933 (exit $ac_status); } &&
19934 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19935 { (case "(($ac_try" in
19936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19937 *) ac_try_echo=$ac_try;;
19939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19940 (eval "$ac_try") 2>&5
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); }; } &&
19944 { ac_try='test -s conftest.$ac_objext'
19945 { (case "(($ac_try" in
19946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19947 *) ac_try_echo=$ac_try;;
19949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19950 (eval "$ac_try") 2>&5
19952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953 (exit $ac_status); }; }; then
19954 ac_cv_func_finite_in_ieeefp_h=yes
19956 echo "$as_me: failed program was:" >&5
19957 sed 's/^/| /' conftest.$ac_ext >&5
19959 ac_cv_func_finite_in_ieeefp_h=no
19962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19964 ac_cpp='$CPP $CPPFLAGS'
19965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19970 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19971 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19973 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19975 cat >>confdefs.h <<\_ACEOF
19976 #define HAVE_FINITE_IN_IEEEFP_H 1
19983 if test "$llvm_cv_platform_type" = "Unix" ; then
19986 for ac_header in stdlib.h unistd.h
19988 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19990 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19993 echo $ECHO_N "(cached) $ECHO_C" >&6
19995 ac_res=`eval echo '${'$as_ac_Header'}'`
19996 { echo "$as_me:$LINENO: result: $ac_res" >&5
19997 echo "${ECHO_T}$ac_res" >&6; }
19999 # Is the header compilable?
20000 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20001 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20002 cat >conftest.$ac_ext <<_ACEOF
20005 cat confdefs.h >>conftest.$ac_ext
20006 cat >>conftest.$ac_ext <<_ACEOF
20007 /* end confdefs.h. */
20008 $ac_includes_default
20009 #include <$ac_header>
20011 rm -f conftest.$ac_objext
20012 if { (ac_try="$ac_compile"
20013 case "(($ac_try" in
20014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20015 *) ac_try_echo=$ac_try;;
20017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20018 (eval "$ac_compile") 2>conftest.er1
20020 grep -v '^ *+' conftest.er1 >conftest.err
20022 cat conftest.err >&5
20023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024 (exit $ac_status); } &&
20025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20026 { (case "(($ac_try" in
20027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20028 *) ac_try_echo=$ac_try;;
20030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20031 (eval "$ac_try") 2>&5
20033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20034 (exit $ac_status); }; } &&
20035 { ac_try='test -s conftest.$ac_objext'
20036 { (case "(($ac_try" in
20037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20038 *) ac_try_echo=$ac_try;;
20040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20041 (eval "$ac_try") 2>&5
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); }; }; then
20045 ac_header_compiler=yes
20047 echo "$as_me: failed program was:" >&5
20048 sed 's/^/| /' conftest.$ac_ext >&5
20050 ac_header_compiler=no
20053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20054 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20055 echo "${ECHO_T}$ac_header_compiler" >&6; }
20057 # Is the header present?
20058 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20059 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20060 cat >conftest.$ac_ext <<_ACEOF
20063 cat confdefs.h >>conftest.$ac_ext
20064 cat >>conftest.$ac_ext <<_ACEOF
20065 /* end confdefs.h. */
20066 #include <$ac_header>
20068 if { (ac_try="$ac_cpp conftest.$ac_ext"
20069 case "(($ac_try" in
20070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20071 *) ac_try_echo=$ac_try;;
20073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20074 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20076 grep -v '^ *+' conftest.er1 >conftest.err
20078 cat conftest.err >&5
20079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080 (exit $ac_status); } >/dev/null; then
20081 if test -s conftest.err; then
20082 ac_cpp_err=$ac_c_preproc_warn_flag
20083 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20090 if test -z "$ac_cpp_err"; then
20091 ac_header_preproc=yes
20093 echo "$as_me: failed program was:" >&5
20094 sed 's/^/| /' conftest.$ac_ext >&5
20096 ac_header_preproc=no
20099 rm -f conftest.err conftest.$ac_ext
20100 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20101 echo "${ECHO_T}$ac_header_preproc" >&6; }
20103 # So? What about this header?
20104 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20106 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20107 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20109 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20110 ac_header_preproc=yes
20113 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20114 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20115 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20116 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20117 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20118 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20119 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20120 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20122 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20123 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20124 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20126 ## ------------------------------------ ##
20127 ## Report this to http://llvm.org/bugs/ ##
20128 ## ------------------------------------ ##
20130 ) | sed "s/^/$as_me: WARNING: /" >&2
20133 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20136 echo $ECHO_N "(cached) $ECHO_C" >&6
20138 eval "$as_ac_Header=\$ac_header_preproc"
20140 ac_res=`eval echo '${'$as_ac_Header'}'`
20141 { echo "$as_me:$LINENO: result: $ac_res" >&5
20142 echo "${ECHO_T}$ac_res" >&6; }
20145 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20146 cat >>confdefs.h <<_ACEOF
20147 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20155 for ac_func in getpagesize
20157 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20158 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20159 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20160 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20161 echo $ECHO_N "(cached) $ECHO_C" >&6
20163 cat >conftest.$ac_ext <<_ACEOF
20166 cat confdefs.h >>conftest.$ac_ext
20167 cat >>conftest.$ac_ext <<_ACEOF
20168 /* end confdefs.h. */
20169 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20170 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20171 #define $ac_func innocuous_$ac_func
20173 /* System header to define __stub macros and hopefully few prototypes,
20174 which can conflict with char $ac_func (); below.
20175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20176 <limits.h> exists even on freestanding compilers. */
20179 # include <limits.h>
20181 # include <assert.h>
20186 /* Override any GCC internal prototype to avoid an error.
20187 Use char because int might match the return type of a GCC
20188 builtin and then its argument prototype would still apply. */
20193 /* The GNU C library defines this for functions which it implements
20194 to always fail with ENOSYS. Some functions are actually named
20195 something starting with __ and the normal name is an alias. */
20196 #if defined __stub_$ac_func || defined __stub___$ac_func
20203 return $ac_func ();
20208 rm -f conftest.$ac_objext conftest$ac_exeext
20209 if { (ac_try="$ac_link"
20210 case "(($ac_try" in
20211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20212 *) ac_try_echo=$ac_try;;
20214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20215 (eval "$ac_link") 2>conftest.er1
20217 grep -v '^ *+' conftest.er1 >conftest.err
20219 cat conftest.err >&5
20220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221 (exit $ac_status); } &&
20222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20223 { (case "(($ac_try" in
20224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20225 *) ac_try_echo=$ac_try;;
20227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20228 (eval "$ac_try") 2>&5
20230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231 (exit $ac_status); }; } &&
20232 { ac_try='test -s conftest$ac_exeext'
20233 { (case "(($ac_try" in
20234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20235 *) ac_try_echo=$ac_try;;
20237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20238 (eval "$ac_try") 2>&5
20240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241 (exit $ac_status); }; }; then
20242 eval "$as_ac_var=yes"
20244 echo "$as_me: failed program was:" >&5
20245 sed 's/^/| /' conftest.$ac_ext >&5
20247 eval "$as_ac_var=no"
20250 rm -f core conftest.err conftest.$ac_objext \
20251 conftest$ac_exeext conftest.$ac_ext
20253 ac_res=`eval echo '${'$as_ac_var'}'`
20254 { echo "$as_me:$LINENO: result: $ac_res" >&5
20255 echo "${ECHO_T}$ac_res" >&6; }
20256 if test `eval echo '${'$as_ac_var'}'` = yes; then
20257 cat >>confdefs.h <<_ACEOF
20258 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20264 { echo "$as_me:$LINENO: checking for working mmap" >&5
20265 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20266 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20267 echo $ECHO_N "(cached) $ECHO_C" >&6
20269 if test "$cross_compiling" = yes; then
20270 ac_cv_func_mmap_fixed_mapped=no
20272 cat >conftest.$ac_ext <<_ACEOF
20275 cat confdefs.h >>conftest.$ac_ext
20276 cat >>conftest.$ac_ext <<_ACEOF
20277 /* end confdefs.h. */
20278 $ac_includes_default
20279 /* malloc might have been renamed as rpl_malloc. */
20282 /* Thanks to Mike Haertel and Jim Avera for this test.
20283 Here is a matrix of mmap possibilities:
20284 mmap private not fixed
20285 mmap private fixed at somewhere currently unmapped
20286 mmap private fixed at somewhere already mapped
20287 mmap shared not fixed
20288 mmap shared fixed at somewhere currently unmapped
20289 mmap shared fixed at somewhere already mapped
20290 For private mappings, we should verify that changes cannot be read()
20291 back from the file, nor mmap's back from the file at a different
20292 address. (There have been systems where private was not correctly
20293 implemented like the infamous i386 svr4.0, and systems where the
20294 VM page cache was not coherent with the file system buffer cache
20295 like early versions of FreeBSD and possibly contemporary NetBSD.)
20296 For shared mappings, we should conversely verify that changes get
20297 propagated back to all the places they're supposed to be.
20299 Grep wants private fixed already mapped.
20300 The main things grep needs to know about mmap are:
20301 * does it exist and is it safe to write into the mmap'd area
20302 * how to use it (BSD variants) */
20305 #include <sys/mman.h>
20307 #if !STDC_HEADERS && !HAVE_STDLIB_H
20311 /* This mess was copied from the GNU getpagesize.h. */
20312 #if !HAVE_GETPAGESIZE
20313 /* Assume that all systems that can run configure have sys/param.h. */
20314 # if !HAVE_SYS_PARAM_H
20315 # define HAVE_SYS_PARAM_H 1
20318 # ifdef _SC_PAGESIZE
20319 # define getpagesize() sysconf(_SC_PAGESIZE)
20320 # else /* no _SC_PAGESIZE */
20321 # if HAVE_SYS_PARAM_H
20322 # include <sys/param.h>
20323 # ifdef EXEC_PAGESIZE
20324 # define getpagesize() EXEC_PAGESIZE
20325 # else /* no EXEC_PAGESIZE */
20327 # define getpagesize() NBPG * CLSIZE
20330 # endif /* no CLSIZE */
20331 # else /* no NBPG */
20333 # define getpagesize() NBPC
20334 # else /* no NBPC */
20336 # define getpagesize() PAGESIZE
20337 # endif /* PAGESIZE */
20338 # endif /* no NBPC */
20339 # endif /* no NBPG */
20340 # endif /* no EXEC_PAGESIZE */
20341 # else /* no HAVE_SYS_PARAM_H */
20342 # define getpagesize() 8192 /* punt totally */
20343 # endif /* no HAVE_SYS_PARAM_H */
20344 # endif /* no _SC_PAGESIZE */
20346 #endif /* no HAVE_GETPAGESIZE */
20351 char *data, *data2, *data3;
20355 pagesize = getpagesize ();
20357 /* First, make a file with some known garbage in it. */
20358 data = (char *) malloc (pagesize);
20361 for (i = 0; i < pagesize; ++i)
20362 *(data + i) = rand ();
20364 fd = creat ("conftest.mmap", 0600);
20367 if (write (fd, data, pagesize) != pagesize)
20371 /* Next, try to mmap the file at a fixed address which already has
20372 something else allocated at it. If we can, also make sure that
20373 we see the same garbage. */
20374 fd = open ("conftest.mmap", O_RDWR);
20377 data2 = (char *) malloc (2 * pagesize);
20380 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20381 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20382 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20384 for (i = 0; i < pagesize; ++i)
20385 if (*(data + i) != *(data2 + i))
20388 /* Finally, make sure that changes to the mapped area do not
20389 percolate back to the file as seen by read(). (This is a bug on
20390 some variants of i386 svr4.0.) */
20391 for (i = 0; i < pagesize; ++i)
20392 *(data2 + i) = *(data2 + i) + 1;
20393 data3 = (char *) malloc (pagesize);
20396 if (read (fd, data3, pagesize) != pagesize)
20398 for (i = 0; i < pagesize; ++i)
20399 if (*(data + i) != *(data3 + i))
20405 rm -f conftest$ac_exeext
20406 if { (ac_try="$ac_link"
20407 case "(($ac_try" in
20408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20409 *) ac_try_echo=$ac_try;;
20411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20412 (eval "$ac_link") 2>&5
20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20416 { (case "(($ac_try" in
20417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20418 *) ac_try_echo=$ac_try;;
20420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20421 (eval "$ac_try") 2>&5
20423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20424 (exit $ac_status); }; }; then
20425 ac_cv_func_mmap_fixed_mapped=yes
20427 echo "$as_me: program exited with status $ac_status" >&5
20428 echo "$as_me: failed program was:" >&5
20429 sed 's/^/| /' conftest.$ac_ext >&5
20431 ( exit $ac_status )
20432 ac_cv_func_mmap_fixed_mapped=no
20434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20439 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20440 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20441 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20443 cat >>confdefs.h <<\_ACEOF
20444 #define HAVE_MMAP 1
20448 rm -f conftest.mmap
20450 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20451 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20452 if test "${ac_cv_func_mmap_file+set}" = set; then
20453 echo $ECHO_N "(cached) $ECHO_C" >&6
20456 ac_cpp='$CPP $CPPFLAGS'
20457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20461 if test "$cross_compiling" = yes; then
20462 ac_cv_func_mmap_file=no
20464 cat >conftest.$ac_ext <<_ACEOF
20468 cat confdefs.h >>conftest.$ac_ext
20469 cat >>conftest.$ac_ext <<_ACEOF
20470 /* end confdefs.h. */
20472 #include <sys/types.h>
20473 #include <sys/mman.h>
20481 fd = creat ("foo",0777);
20482 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20484 return (fd != (int) MAP_FAILED);
20489 rm -f conftest$ac_exeext
20490 if { (ac_try="$ac_link"
20491 case "(($ac_try" in
20492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20493 *) ac_try_echo=$ac_try;;
20495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20496 (eval "$ac_link") 2>&5
20498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20500 { (case "(($ac_try" in
20501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20502 *) ac_try_echo=$ac_try;;
20504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20505 (eval "$ac_try") 2>&5
20507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508 (exit $ac_status); }; }; then
20509 ac_cv_func_mmap_file=yes
20511 echo "$as_me: program exited with status $ac_status" >&5
20512 echo "$as_me: failed program was:" >&5
20513 sed 's/^/| /' conftest.$ac_ext >&5
20515 ( exit $ac_status )
20516 ac_cv_func_mmap_file=no
20518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20523 ac_cpp='$CPP $CPPFLAGS'
20524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20530 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20531 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20532 if test "$ac_cv_func_mmap_file" = yes; then
20534 cat >>confdefs.h <<\_ACEOF
20535 #define HAVE_MMAP_FILE
20542 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20543 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20544 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20545 echo $ECHO_N "(cached) $ECHO_C" >&6
20547 if test "$llvm_cv_os_type" = "Interix" ; then
20548 ac_cv_need_dev_zero_for_mmap=yes
20550 ac_cv_need_dev_zero_for_mmap=no
20554 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20555 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20556 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20558 cat >>confdefs.h <<\_ACEOF
20559 #define NEED_DEV_ZERO_FOR_MMAP 1
20564 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20566 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20567 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20569 if test "$ac_cv_func_mmap_file" = "no"
20571 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20572 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20576 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20577 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20579 ac_cpp='$CXXCPP $CPPFLAGS'
20580 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20581 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20582 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20584 cat >conftest.$ac_ext <<_ACEOF
20587 cat confdefs.h >>conftest.$ac_ext
20588 cat >>conftest.$ac_ext <<_ACEOF
20589 /* end confdefs.h. */
20591 volatile unsigned long val = 1;
20592 __sync_synchronize();
20593 __sync_val_compare_and_swap(&val, 1, 0);
20594 __sync_add_and_fetch(&val, 1);
20595 __sync_sub_and_fetch(&val, 1);
20600 rm -f conftest.$ac_objext conftest$ac_exeext
20601 if { (ac_try="$ac_link"
20602 case "(($ac_try" in
20603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20604 *) ac_try_echo=$ac_try;;
20606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20607 (eval "$ac_link") 2>conftest.er1
20609 grep -v '^ *+' conftest.er1 >conftest.err
20611 cat conftest.err >&5
20612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613 (exit $ac_status); } &&
20614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20615 { (case "(($ac_try" in
20616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20617 *) ac_try_echo=$ac_try;;
20619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20620 (eval "$ac_try") 2>&5
20622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623 (exit $ac_status); }; } &&
20624 { ac_try='test -s conftest$ac_exeext'
20625 { (case "(($ac_try" in
20626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20627 *) ac_try_echo=$ac_try;;
20629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20630 (eval "$ac_try") 2>&5
20632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633 (exit $ac_status); }; }; then
20635 ac_cpp='$CPP $CPPFLAGS'
20636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20640 { echo "$as_me:$LINENO: result: yes" >&5
20641 echo "${ECHO_T}yes" >&6; }
20643 cat >>confdefs.h <<\_ACEOF
20644 #define LLVM_HAS_ATOMICS 1
20648 echo "$as_me: failed program was:" >&5
20649 sed 's/^/| /' conftest.$ac_ext >&5
20651 { echo "$as_me:$LINENO: result: no" >&5
20652 echo "${ECHO_T}no" >&6; }
20654 cat >>confdefs.h <<\_ACEOF
20655 #define LLVM_HAS_ATOMICS 0
20658 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20659 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20662 rm -f core conftest.err conftest.$ac_objext \
20663 conftest$ac_exeext conftest.$ac_ext
20666 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20667 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20668 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20669 if test "${llvm_cv_linux_mixed+set}" = set; then
20670 echo $ECHO_N "(cached) $ECHO_C" >&6
20673 ac_cpp='$CPP $CPPFLAGS'
20674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20678 cat >conftest.$ac_ext <<_ACEOF
20681 cat confdefs.h >>conftest.$ac_ext
20682 cat >>conftest.$ac_ext <<_ACEOF
20683 /* end confdefs.h. */
20685 error: Not x86-64 even if uname says so!
20696 rm -f conftest.$ac_objext
20697 if { (ac_try="$ac_compile"
20698 case "(($ac_try" in
20699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20700 *) ac_try_echo=$ac_try;;
20702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20703 (eval "$ac_compile") 2>conftest.er1
20705 grep -v '^ *+' conftest.er1 >conftest.err
20707 cat conftest.err >&5
20708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709 (exit $ac_status); } &&
20710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20711 { (case "(($ac_try" in
20712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20713 *) ac_try_echo=$ac_try;;
20715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20716 (eval "$ac_try") 2>&5
20718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719 (exit $ac_status); }; } &&
20720 { ac_try='test -s conftest.$ac_objext'
20721 { (case "(($ac_try" in
20722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20723 *) ac_try_echo=$ac_try;;
20725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20726 (eval "$ac_try") 2>&5
20728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729 (exit $ac_status); }; }; then
20730 llvm_cv_linux_mixed=no
20732 echo "$as_me: failed program was:" >&5
20733 sed 's/^/| /' conftest.$ac_ext >&5
20735 llvm_cv_linux_mixed=yes
20738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20740 ac_cpp='$CPP $CPPFLAGS'
20741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20747 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20748 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20750 if test "$llvm_cv_linux_mixed" = "yes"; then
20751 llvm_cv_target_arch="x86"
20757 for ac_func in __dso_handle
20759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20760 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20762 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20763 echo $ECHO_N "(cached) $ECHO_C" >&6
20765 cat >conftest.$ac_ext <<_ACEOF
20768 cat confdefs.h >>conftest.$ac_ext
20769 cat >>conftest.$ac_ext <<_ACEOF
20770 /* end confdefs.h. */
20771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20773 #define $ac_func innocuous_$ac_func
20775 /* System header to define __stub macros and hopefully few prototypes,
20776 which can conflict with char $ac_func (); below.
20777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20778 <limits.h> exists even on freestanding compilers. */
20781 # include <limits.h>
20783 # include <assert.h>
20788 /* Override any GCC internal prototype to avoid an error.
20789 Use char because int might match the return type of a GCC
20790 builtin and then its argument prototype would still apply. */
20795 /* The GNU C library defines this for functions which it implements
20796 to always fail with ENOSYS. Some functions are actually named
20797 something starting with __ and the normal name is an alias. */
20798 #if defined __stub_$ac_func || defined __stub___$ac_func
20805 return $ac_func ();
20810 rm -f conftest.$ac_objext conftest$ac_exeext
20811 if { (ac_try="$ac_link"
20812 case "(($ac_try" in
20813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20814 *) ac_try_echo=$ac_try;;
20816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20817 (eval "$ac_link") 2>conftest.er1
20819 grep -v '^ *+' conftest.er1 >conftest.err
20821 cat conftest.err >&5
20822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823 (exit $ac_status); } &&
20824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20825 { (case "(($ac_try" in
20826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20827 *) ac_try_echo=$ac_try;;
20829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20830 (eval "$ac_try") 2>&5
20832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20833 (exit $ac_status); }; } &&
20834 { ac_try='test -s conftest$ac_exeext'
20835 { (case "(($ac_try" in
20836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20837 *) ac_try_echo=$ac_try;;
20839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20840 (eval "$ac_try") 2>&5
20842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843 (exit $ac_status); }; }; then
20844 eval "$as_ac_var=yes"
20846 echo "$as_me: failed program was:" >&5
20847 sed 's/^/| /' conftest.$ac_ext >&5
20849 eval "$as_ac_var=no"
20852 rm -f core conftest.err conftest.$ac_objext \
20853 conftest$ac_exeext conftest.$ac_ext
20855 ac_res=`eval echo '${'$as_ac_var'}'`
20856 { echo "$as_me:$LINENO: result: $ac_res" >&5
20857 echo "${ECHO_T}$ac_res" >&6; }
20858 if test `eval echo '${'$as_ac_var'}'` = yes; then
20859 cat >>confdefs.h <<_ACEOF
20860 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20867 SHLIBEXT=$libltdl_cv_shlibext
20870 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20873 if test "${prefix}" = "NONE" ; then
20874 prefix="/usr/local"
20876 eval LLVM_PREFIX="${prefix}";
20877 eval LLVM_BINDIR="${prefix}/bin";
20878 eval LLVM_LIBDIR="${prefix}/lib";
20879 eval LLVM_DATADIR="${prefix}/share/llvm";
20880 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20881 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20882 eval LLVM_INCLUDEDIR="${prefix}/include";
20883 eval LLVM_INFODIR="${prefix}/info";
20884 eval LLVM_MANDIR="${prefix}/man";
20885 LLVM_CONFIGTIME=`date`
20897 if test "${ENABLE_TIMESTAMPS}" = "0"; then
20898 LLVM_CONFIGTIME="(timestamp not enabled)"
20902 cat >>confdefs.h <<_ACEOF
20903 #define LLVM_PREFIX "$LLVM_PREFIX"
20907 cat >>confdefs.h <<_ACEOF
20908 #define LLVM_BINDIR "$LLVM_BINDIR"
20912 cat >>confdefs.h <<_ACEOF
20913 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20917 cat >>confdefs.h <<_ACEOF
20918 #define LLVM_DATADIR "$LLVM_DATADIR"
20922 cat >>confdefs.h <<_ACEOF
20923 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20927 cat >>confdefs.h <<_ACEOF
20928 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20932 cat >>confdefs.h <<_ACEOF
20933 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20937 cat >>confdefs.h <<_ACEOF
20938 #define LLVM_INFODIR "$LLVM_INFODIR"
20942 cat >>confdefs.h <<_ACEOF
20943 #define LLVM_MANDIR "$LLVM_MANDIR"
20947 cat >>confdefs.h <<_ACEOF
20948 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20952 cat >>confdefs.h <<_ACEOF
20953 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20957 if test "$BINDINGS_TO_BUILD" = auto ; then
20958 BINDINGS_TO_BUILD=""
20959 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20960 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20963 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20969 binding_prereqs_failed=0
20970 for a_binding in $BINDINGS_TO_BUILD ; do
20971 case "$a_binding" in
20973 if test "x$OCAMLC" = x ; then
20974 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20975 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20976 binding_prereqs_failed=1
20978 if test "x$OCAMLDEP" = x ; then
20979 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20980 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20981 binding_prereqs_failed=1
20983 if test "x$OCAMLOPT" = x ; then
20984 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20985 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20987 if test "x$with_ocaml_libdir" != xauto ; then
20988 OCAML_LIBDIR=$with_ocaml_libdir
20991 ocaml_stdlib="`"$OCAMLC" -where`"
20992 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20994 # ocaml stdlib is beneath our prefix; use stdlib
20995 OCAML_LIBDIR=$ocaml_stdlib
20998 # ocaml stdlib is outside our prefix; use libdir/ocaml
20999 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21006 if test "$binding_prereqs_failed" = 1 ; then
21007 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21008 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21009 { (exit 1); exit 1; }; }
21012 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21013 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21014 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21015 echo $ECHO_N "(cached) $ECHO_C" >&6
21018 ac_cpp='$CXXCPP $CPPFLAGS'
21019 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21020 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21021 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21023 oldcxxflags="$CXXFLAGS"
21024 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21025 cat >conftest.$ac_ext <<_ACEOF
21028 cat confdefs.h >>conftest.$ac_ext
21029 cat >>conftest.$ac_ext <<_ACEOF
21030 /* end confdefs.h. */
21031 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21040 rm -f conftest.$ac_objext
21041 if { (ac_try="$ac_compile"
21042 case "(($ac_try" in
21043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21044 *) ac_try_echo=$ac_try;;
21046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21047 (eval "$ac_compile") 2>conftest.er1
21049 grep -v '^ *+' conftest.er1 >conftest.err
21051 cat conftest.err >&5
21052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053 (exit $ac_status); } &&
21054 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21055 { (case "(($ac_try" in
21056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21057 *) ac_try_echo=$ac_try;;
21059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21060 (eval "$ac_try") 2>&5
21062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063 (exit $ac_status); }; } &&
21064 { ac_try='test -s conftest.$ac_objext'
21065 { (case "(($ac_try" in
21066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21067 *) ac_try_echo=$ac_try;;
21069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21070 (eval "$ac_try") 2>&5
21072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073 (exit $ac_status); }; }; then
21074 llvm_cv_cxx_visibility_inlines_hidden=yes
21076 echo "$as_me: failed program was:" >&5
21077 sed 's/^/| /' conftest.$ac_ext >&5
21079 llvm_cv_cxx_visibility_inlines_hidden=no
21082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21083 CXXFLAGS="$oldcxxflags"
21085 ac_cpp='$CPP $CPPFLAGS'
21086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21092 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21093 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21094 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21095 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21098 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21103 if test "$llvm_cv_link_use_r" = "yes" ; then
21110 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21111 RDYNAMIC="-Wl,-export-dynamic"
21118 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21125 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21127 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21129 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21131 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21133 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21136 ac_config_files="$ac_config_files Makefile.config"
21139 ac_config_files="$ac_config_files llvm.spec"
21142 ac_config_files="$ac_config_files docs/doxygen.cfg"
21145 if test "${clang_src_root}" = ""; then
21146 clang_src_root="$srcdir/tools/clang"
21148 if test -f ${clang_src_root}/README.txt; then
21149 configh="include/clang/Config/config.h"
21150 doxy="docs/doxygen.cfg"
21151 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21153 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21157 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21160 ac_config_commands="$ac_config_commands setup"
21162 ac_config_commands="$ac_config_commands Makefile"
21165 ac_config_commands="$ac_config_commands Makefile.common"
21168 ac_config_commands="$ac_config_commands examples/Makefile"
21171 ac_config_commands="$ac_config_commands lib/Makefile"
21174 ac_config_commands="$ac_config_commands runtime/Makefile"
21177 ac_config_commands="$ac_config_commands test/Makefile"
21180 ac_config_commands="$ac_config_commands test/Makefile.tests"
21183 ac_config_commands="$ac_config_commands unittests/Makefile"
21186 ac_config_commands="$ac_config_commands tools/Makefile"
21189 ac_config_commands="$ac_config_commands utils/Makefile"
21192 ac_config_commands="$ac_config_commands projects/Makefile"
21195 ac_config_commands="$ac_config_commands bindings/Makefile"
21198 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21202 cat >confcache <<\_ACEOF
21203 # This file is a shell script that caches the results of configure
21204 # tests run on this system so they can be shared between configure
21205 # scripts and configure runs, see configure's option --config-cache.
21206 # It is not useful on other systems. If it contains results you don't
21207 # want to keep, you may remove or edit it.
21209 # config.status only pays attention to the cache file if you give it
21210 # the --recheck option to rerun configure.
21212 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21213 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21214 # following values.
21218 # The following way of writing the cache mishandles newlines in values,
21219 # but we know of no workaround that is simple, portable, and efficient.
21220 # So, we kill variables containing newlines.
21221 # Ultrix sh set writes to stderr and can't be redirected directly,
21222 # and sets the high bit in the cache file unless we assign to the vars.
21224 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21225 eval ac_val=\$$ac_var
21229 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21230 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21233 _ | IFS | as_nl) ;; #(
21234 *) $as_unset $ac_var ;;
21240 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21241 *${as_nl}ac_space=\ *)
21242 # `set' does not quote correctly, so add quotes (double-quote
21243 # substitution turns \\\\ into \\, and sed turns \\ into \).
21246 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21249 # `set' quotes correctly as required by POSIX, so do not add quotes.
21250 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21259 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21261 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21263 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21264 if test -w "$cache_file"; then
21265 test "x$cache_file" != "x/dev/null" &&
21266 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21267 echo "$as_me: updating cache $cache_file" >&6;}
21268 cat confcache >$cache_file
21270 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21271 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21276 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21277 # Let make expand exec_prefix.
21278 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21280 DEFS=-DHAVE_CONFIG_H
21284 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21285 # 1. Remove the extension, and $U if already installed.
21286 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21287 ac_i=`echo "$ac_i" | sed "$ac_script"`
21288 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21289 # will be set to the directory where LIBOBJS objects are built.
21290 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21291 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21293 LIBOBJS=$ac_libobjs
21295 LTLIBOBJS=$ac_ltlibobjs
21298 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21299 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21300 Usually this means the macro was only invoked conditionally." >&5
21301 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21302 Usually this means the macro was only invoked conditionally." >&2;}
21303 { (exit 1); exit 1; }; }
21305 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21306 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21307 Usually this means the macro was only invoked conditionally." >&5
21308 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21309 Usually this means the macro was only invoked conditionally." >&2;}
21310 { (exit 1); exit 1; }; }
21313 : ${CONFIG_STATUS=./config.status}
21314 ac_clean_files_save=$ac_clean_files
21315 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21316 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21317 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21318 cat >$CONFIG_STATUS <<_ACEOF
21320 # Generated by $as_me.
21321 # Run this file to recreate the current configuration.
21322 # Compiler output produced by configure, useful for debugging
21323 # configure, is in config.log if it exists.
21326 ac_cs_recheck=false
21328 SHELL=\${CONFIG_SHELL-$SHELL}
21331 cat >>$CONFIG_STATUS <<\_ACEOF
21332 ## --------------------- ##
21333 ## M4sh Initialization. ##
21334 ## --------------------- ##
21336 # Be Bourne compatible
21337 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21340 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21341 # is contrary to our usage. Disable this feature.
21342 alias -g '${1+"$@"}'='"$@"'
21343 setopt NO_GLOB_SUBST
21345 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21347 BIN_SH=xpg4; export BIN_SH # for Tru64
21348 DUALCASE=1; export DUALCASE # for MKS sh
21352 # Avoid depending upon Character Ranges.
21353 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21354 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21355 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21356 as_cr_digits='0123456789'
21357 as_cr_alnum=$as_cr_Letters$as_cr_digits
21359 # The user is always right.
21360 if test "${PATH_SEPARATOR+set}" != set; then
21361 echo "#! /bin/sh" >conf$$.sh
21362 echo "exit 0" >>conf$$.sh
21364 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21372 # Support unset when possible.
21373 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21381 # We need space, tab and new line, in precisely that order. Quoting is
21382 # there to prevent editors from complaining about space-tab.
21383 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21384 # splitting by setting IFS to empty value.)
21389 # Find who we are. Look in the path if we contain no directory separator.
21391 *[\\/]* ) as_myself=$0 ;;
21392 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21393 for as_dir in $PATH
21396 test -z "$as_dir" && as_dir=.
21397 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21403 # We did not find ourselves, most probably we were run as `sh COMMAND'
21404 # in which case we are not to be found in the path.
21405 if test "x$as_myself" = x; then
21408 if test ! -f "$as_myself"; then
21409 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21410 { (exit 1); exit 1; }
21413 # Work around bugs in pre-3.0 UWIN ksh.
21414 for as_var in ENV MAIL MAILPATH
21415 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21423 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21424 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21425 LC_TELEPHONE LC_TIME
21427 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21428 eval $as_var=C; export $as_var
21430 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21434 # Required to use basename.
21435 if expr a : '\(a\)' >/dev/null 2>&1 &&
21436 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21442 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21443 as_basename=basename
21449 # Name of the executable.
21450 as_me=`$as_basename -- "$0" ||
21451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21452 X"$0" : 'X\(//\)$' \| \
21453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21455 sed '/^.*\/\([^/][^/]*\)\/*$/{
21474 as_lineno_1=$LINENO
21475 as_lineno_2=$LINENO
21476 test "x$as_lineno_1" != "x$as_lineno_2" &&
21477 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21479 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21480 # uniformly replaced by the line number. The first 'sed' inserts a
21481 # line-number line after each line using $LINENO; the second 'sed'
21482 # does the real work. The second script uses 'N' to pair each
21483 # line-number line with the line containing $LINENO, and appends
21484 # trailing '-' during substitution so that $LINENO is not a special
21485 # case at line end.
21486 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21487 # scripts with optimization help from Paolo Bonzini. Blame Lee
21488 # E. McMahon (1931-1989) for sed's syntax. :-)
21500 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21503 ' >$as_me.lineno &&
21504 chmod +x "$as_me.lineno" ||
21505 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21506 { (exit 1); exit 1; }; }
21508 # Don't try to exec as it changes $[0], causing all sort of problems
21509 # (the dirname of $[0] is not the place where we might find the
21510 # original and so on. Autoconf is especially sensitive to this).
21511 . "./$as_me.lineno"
21512 # Exit status is that of the last command.
21517 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21523 ECHO_C= ECHO_N= ECHO_T=
21524 case `echo -n x` in
21526 case `echo 'x\c'` in
21527 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21534 if expr a : '\(a\)' >/dev/null 2>&1 &&
21535 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21541 rm -f conf$$ conf$$.exe conf$$.file
21542 if test -d conf$$.dir; then
21543 rm -f conf$$.dir/conf$$.file
21549 if ln -s conf$$.file conf$$ 2>/dev/null; then
21551 # ... but there are two gotchas:
21552 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21553 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21554 # In both cases, we have to default to `cp -p'.
21555 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21557 elif ln conf$$.file conf$$ 2>/dev/null; then
21562 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21563 rmdir conf$$.dir 2>/dev/null
21565 if mkdir -p . 2>/dev/null; then
21568 test -d ./-p && rmdir ./-p
21572 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21573 # systems may use methods other than mode bits to determine executability.
21574 cat >conf$$.file <<_ASEOF
21578 chmod +x conf$$.file
21579 if test -x conf$$.file >/dev/null 2>&1; then
21580 as_executable_p="test -x"
21586 # Sed expression to map a string onto a valid CPP name.
21587 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21589 # Sed expression to map a string onto a valid variable name.
21590 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21595 # Save the log message, to keep $[0] and so on meaningful, and to
21596 # report actual input values of CONFIG_FILES etc. instead of their
21597 # values after options handling.
21599 This file was extended by LLVM $as_me 3.2svn, which was
21600 generated by GNU Autoconf 2.60. Invocation command line was
21602 CONFIG_FILES = $CONFIG_FILES
21603 CONFIG_HEADERS = $CONFIG_HEADERS
21604 CONFIG_LINKS = $CONFIG_LINKS
21605 CONFIG_COMMANDS = $CONFIG_COMMANDS
21608 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21613 cat >>$CONFIG_STATUS <<_ACEOF
21614 # Files that config.status was made for.
21615 config_files="$ac_config_files"
21616 config_headers="$ac_config_headers"
21617 config_commands="$ac_config_commands"
21621 cat >>$CONFIG_STATUS <<\_ACEOF
21623 \`$as_me' instantiates files from templates according to the
21624 current configuration.
21626 Usage: $0 [OPTIONS] [FILE]...
21628 -h, --help print this help, then exit
21629 -V, --version print version number, then exit
21630 -q, --quiet do not print progress messages
21631 -d, --debug don't remove temporary files
21632 --recheck update $as_me by reconfiguring in the same conditions
21633 --file=FILE[:TEMPLATE]
21634 instantiate the configuration file FILE
21635 --header=FILE[:TEMPLATE]
21636 instantiate the configuration header FILE
21638 Configuration files:
21641 Configuration headers:
21644 Configuration commands:
21647 Report bugs to <bug-autoconf@gnu.org>."
21650 cat >>$CONFIG_STATUS <<_ACEOF
21652 LLVM config.status 3.2svn
21653 configured by $0, generated by GNU Autoconf 2.60,
21654 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21656 Copyright (C) 2006 Free Software Foundation, Inc.
21657 This config.status script is free software; the Free Software Foundation
21658 gives unlimited permission to copy, distribute and modify it."
21665 cat >>$CONFIG_STATUS <<\_ACEOF
21666 # If no file are specified by the user, then we need to provide default
21667 # value. By we need to know if files were specified by the user.
21673 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21674 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21685 # Handling of the options.
21686 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21688 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21689 echo "$ac_cs_version"; exit ;;
21690 --debug | --debu | --deb | --de | --d | -d )
21692 --file | --fil | --fi | --f )
21694 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21695 ac_need_defaults=false;;
21696 --header | --heade | --head | --hea )
21698 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21699 ac_need_defaults=false;;
21701 # Conflict between --help and --header
21702 { echo "$as_me: error: ambiguous option: $1
21703 Try \`$0 --help' for more information." >&2
21704 { (exit 1); exit 1; }; };;
21705 --help | --hel | -h )
21706 echo "$ac_cs_usage"; exit ;;
21707 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21708 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21711 # This is an error.
21712 -*) { echo "$as_me: error: unrecognized option: $1
21713 Try \`$0 --help' for more information." >&2
21714 { (exit 1); exit 1; }; } ;;
21716 *) ac_config_targets="$ac_config_targets $1"
21717 ac_need_defaults=false ;;
21723 ac_configure_extra_args=
21725 if $ac_cs_silent; then
21727 ac_configure_extra_args="$ac_configure_extra_args --silent"
21731 cat >>$CONFIG_STATUS <<_ACEOF
21732 if \$ac_cs_recheck; then
21733 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21734 CONFIG_SHELL=$SHELL
21735 export CONFIG_SHELL
21736 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21740 cat >>$CONFIG_STATUS <<\_ACEOF
21744 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21745 ## Running $as_me. ##
21751 cat >>$CONFIG_STATUS <<_ACEOF
21755 llvm_src="${srcdir}"
21759 cat >>$CONFIG_STATUS <<\_ACEOF
21761 # Handling of arguments.
21762 for ac_config_target in $ac_config_targets
21764 case $ac_config_target in
21765 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21766 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21767 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21768 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21769 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21770 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21771 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21772 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21773 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21774 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21775 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21776 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
21777 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21778 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21779 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21780 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21781 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21782 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21783 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21784 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21785 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21786 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21787 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21788 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21789 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21790 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21791 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21793 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21794 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21795 { (exit 1); exit 1; }; };;
21800 # If the user did not use the arguments to specify the items to instantiate,
21801 # then the envvar interface is used. Set only those that are not.
21802 # We use the long form for the default assignment because of an extremely
21803 # bizarre bug on SunOS 4.1.3.
21804 if $ac_need_defaults; then
21805 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21806 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21807 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21810 # Have a temporary directory for convenience. Make it in the build tree
21811 # simply because there is no reason against having it here, and in addition,
21812 # creating and moving files from /tmp can sometimes cause problems.
21813 # Hook for its removal unless debugging.
21814 # Note that there is a small window in which the directory will not be cleaned:
21815 # after its creation but before its name has been assigned to `$tmp'.
21819 trap 'exit_status=$?
21820 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21822 trap '{ (exit 1); exit 1; }' 1 2 13 15
21824 # Create a (secure) tmp directory for tmp files.
21827 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21828 test -n "$tmp" && test -d "$tmp"
21831 tmp=./conf$$-$RANDOM
21832 (umask 077 && mkdir "$tmp")
21835 echo "$me: cannot create a temporary directory in ." >&2
21836 { (exit 1); exit 1; }
21840 # Set up the sed scripts for CONFIG_FILES section.
21843 # No need to generate the scripts if there are no CONFIG_FILES.
21844 # This happens for instance when ./config.status config.h
21845 if test -n "$CONFIG_FILES"; then
21852 for ac_last_try in false false false false false :; do
21853 cat >conf$$subs.sed <<_ACEOF
21854 SHELL!$SHELL$ac_delim
21855 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21856 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21857 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21858 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21859 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21860 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21861 exec_prefix!$exec_prefix$ac_delim
21862 prefix!$prefix$ac_delim
21863 program_transform_name!$program_transform_name$ac_delim
21864 bindir!$bindir$ac_delim
21865 sbindir!$sbindir$ac_delim
21866 libexecdir!$libexecdir$ac_delim
21867 datarootdir!$datarootdir$ac_delim
21868 datadir!$datadir$ac_delim
21869 sysconfdir!$sysconfdir$ac_delim
21870 sharedstatedir!$sharedstatedir$ac_delim
21871 localstatedir!$localstatedir$ac_delim
21872 includedir!$includedir$ac_delim
21873 oldincludedir!$oldincludedir$ac_delim
21874 docdir!$docdir$ac_delim
21875 infodir!$infodir$ac_delim
21876 htmldir!$htmldir$ac_delim
21877 dvidir!$dvidir$ac_delim
21878 pdfdir!$pdfdir$ac_delim
21879 psdir!$psdir$ac_delim
21880 libdir!$libdir$ac_delim
21881 localedir!$localedir$ac_delim
21882 mandir!$mandir$ac_delim
21883 DEFS!$DEFS$ac_delim
21884 ECHO_C!$ECHO_C$ac_delim
21885 ECHO_N!$ECHO_N$ac_delim
21886 ECHO_T!$ECHO_T$ac_delim
21887 LIBS!$LIBS$ac_delim
21888 build_alias!$build_alias$ac_delim
21889 host_alias!$host_alias$ac_delim
21890 target_alias!$target_alias$ac_delim
21891 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21893 CFLAGS!$CFLAGS$ac_delim
21894 LDFLAGS!$LDFLAGS$ac_delim
21895 CPPFLAGS!$CPPFLAGS$ac_delim
21896 ac_ct_CC!$ac_ct_CC$ac_delim
21897 EXEEXT!$EXEEXT$ac_delim
21898 OBJEXT!$OBJEXT$ac_delim
21900 CXXFLAGS!$CXXFLAGS$ac_delim
21901 ac_ct_CXX!$ac_ct_CXX$ac_delim
21903 subdirs!$subdirs$ac_delim
21904 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21905 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21906 build!$build$ac_delim
21907 build_cpu!$build_cpu$ac_delim
21908 build_vendor!$build_vendor$ac_delim
21909 build_os!$build_os$ac_delim
21910 host!$host$ac_delim
21911 host_cpu!$host_cpu$ac_delim
21912 host_vendor!$host_vendor$ac_delim
21913 host_os!$host_os$ac_delim
21914 target!$target$ac_delim
21915 target_cpu!$target_cpu$ac_delim
21916 target_vendor!$target_vendor$ac_delim
21917 target_os!$target_os$ac_delim
21919 HOST_OS!$HOST_OS$ac_delim
21920 TARGET_OS!$TARGET_OS$ac_delim
21921 LINKALL!$LINKALL$ac_delim
21922 NOLINKALL!$NOLINKALL$ac_delim
21923 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21924 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21925 ARCH!$ARCH$ac_delim
21926 HOST_ARCH!$HOST_ARCH$ac_delim
21927 ENDIAN!$ENDIAN$ac_delim
21928 GREP!$GREP$ac_delim
21929 EGREP!$EGREP$ac_delim
21930 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21931 BUILD_CC!$BUILD_CC$ac_delim
21932 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21933 BUILD_CXX!$BUILD_CXX$ac_delim
21934 CVSBUILD!$CVSBUILD$ac_delim
21935 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21936 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21937 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21938 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21939 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21940 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21941 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21942 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21944 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21945 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21946 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21947 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
21948 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21949 ENABLE_PIC!$ENABLE_PIC$ac_delim
21950 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21953 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21955 elif $ac_last_try; then
21956 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21957 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21958 { (exit 1); exit 1; }; }
21960 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21964 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21965 if test -n "$ac_eof"; then
21966 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21967 ac_eof=`expr $ac_eof + 1`
21970 cat >>$CONFIG_STATUS <<_ACEOF
21971 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21972 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21975 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21976 s/^/s,@/; s/!/@,|#_!!_#|/
21979 s/'"$ac_delim"'$/,g/; t
21981 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21982 ' >>$CONFIG_STATUS <conf$$subs.sed
21983 rm -f conf$$subs.sed
21984 cat >>$CONFIG_STATUS <<_ACEOF
21990 for ac_last_try in false false false false false :; do
21991 cat >conf$$subs.sed <<_ACEOF
21992 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21993 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21994 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21995 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21996 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21997 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21998 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21999 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22000 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22001 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22002 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22003 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22004 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22006 ifGNUmake!$ifGNUmake$ac_delim
22007 LN_S!$LN_S$ac_delim
22010 DATE!$DATE$ac_delim
22011 FIND!$FIND$ac_delim
22012 MKDIR!$MKDIR$ac_delim
22014 RANLIB!$RANLIB$ac_delim
22019 BINPWD!$BINPWD$ac_delim
22020 GRAPHVIZ!$GRAPHVIZ$ac_delim
22023 NEATO!$NEATO$ac_delim
22024 TWOPI!$TWOPI$ac_delim
22025 CIRCO!$CIRCO$ac_delim
22027 DOTTY!$DOTTY$ac_delim
22028 XDOT_PY!$XDOT_PY$ac_delim
22029 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22030 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22031 INSTALL_DATA!$INSTALL_DATA$ac_delim
22032 BZIP2!$BZIP2$ac_delim
22034 DOXYGEN!$DOXYGEN$ac_delim
22035 GROFF!$GROFF$ac_delim
22036 GZIPBIN!$GZIPBIN$ac_delim
22037 PDFROFF!$PDFROFF$ac_delim
22039 OCAMLC!$OCAMLC$ac_delim
22040 OCAMLOPT!$OCAMLOPT$ac_delim
22041 OCAMLDEP!$OCAMLDEP$ac_delim
22042 OCAMLDOC!$OCAMLDOC$ac_delim
22044 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22045 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22046 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22047 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22048 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22049 LIBADD_DL!$LIBADD_DL$ac_delim
22050 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22051 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22052 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22053 USE_UDIS86!$USE_UDIS86$ac_delim
22054 USE_OPROFILE!$USE_OPROFILE$ac_delim
22055 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22056 INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
22057 INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
22058 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22059 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22060 MMAP_FILE!$MMAP_FILE$ac_delim
22061 SHLIBEXT!$SHLIBEXT$ac_delim
22062 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22063 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22064 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22065 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22066 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22067 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22068 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22069 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22070 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22071 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22072 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22073 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22074 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22075 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22076 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22077 RPATH!$RPATH$ac_delim
22078 RDYNAMIC!$RDYNAMIC$ac_delim
22079 LIBOBJS!$LIBOBJS$ac_delim
22080 LTLIBOBJS!$LTLIBOBJS$ac_delim
22083 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
22085 elif $ac_last_try; then
22086 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22087 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22088 { (exit 1); exit 1; }; }
22090 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22094 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22095 if test -n "$ac_eof"; then
22096 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22097 ac_eof=`expr $ac_eof + 1`
22100 cat >>$CONFIG_STATUS <<_ACEOF
22101 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22102 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22105 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22106 s/^/s,@/; s/!/@,|#_!!_#|/
22109 s/'"$ac_delim"'$/,g/; t
22111 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22112 ' >>$CONFIG_STATUS <conf$$subs.sed
22113 rm -f conf$$subs.sed
22114 cat >>$CONFIG_STATUS <<_ACEOF
22121 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22122 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22123 # trailing colons and then remove the whole line if VPATH becomes empty
22124 # (actually we leave an empty line to preserve line numbers).
22125 if test "x$srcdir" = x.; then
22126 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22127 s/:*\$(srcdir):*/:/
22128 s/:*\${srcdir}:*/:/
22130 s/^\([^=]*=[ ]*\):*/\1/
22136 cat >>$CONFIG_STATUS <<\_ACEOF
22137 fi # test -n "$CONFIG_FILES"
22140 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22143 :[FHLC]) ac_mode=$ac_tag; continue;;
22145 case $ac_mode$ac_tag in
22147 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22148 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22149 { (exit 1); exit 1; }; };;
22150 :[FH]-) ac_tag=-:-;;
22151 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22168 -) ac_f="$tmp/stdin";;
22169 *) # Look for the file first in the build tree, then in the source tree
22170 # (if the path is not absolute). The absolute path cannot be DOS-style,
22171 # because $ac_f cannot contain `:'.
22175 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22177 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22178 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22179 { (exit 1); exit 1; }; };;
22181 ac_file_inputs="$ac_file_inputs $ac_f"
22184 # Let's still pretend it is `configure' which instantiates (i.e., don't
22185 # use $as_me), people would be surprised to read:
22186 # /* config.h. Generated by config.status. */
22187 configure_input="Generated from "`IFS=:
22188 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22189 if test x"$ac_file" != x-; then
22190 configure_input="$ac_file. $configure_input"
22191 { echo "$as_me:$LINENO: creating $ac_file" >&5
22192 echo "$as_me: creating $ac_file" >&6;}
22196 *:-:* | *:-) cat >"$tmp/stdin";;
22201 ac_dir=`$as_dirname -- "$ac_file" ||
22202 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22203 X"$ac_file" : 'X\(//\)[^/]' \| \
22204 X"$ac_file" : 'X\(//\)$' \| \
22205 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22207 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22211 /^X\(\/\/\)[^/].*/{
22226 -*) as_dir=./$as_dir;;
22228 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22232 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22233 *) as_qdir=$as_dir;;
22235 as_dirs="'$as_qdir' $as_dirs"
22236 as_dir=`$as_dirname -- "$as_dir" ||
22237 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22238 X"$as_dir" : 'X\(//\)[^/]' \| \
22239 X"$as_dir" : 'X\(//\)$' \| \
22240 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22246 /^X\(\/\/\)[^/].*/{
22259 test -d "$as_dir" && break
22261 test -z "$as_dirs" || eval "mkdir $as_dirs"
22262 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22263 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22264 { (exit 1); exit 1; }; }; }
22268 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22270 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22271 # A ".." for each directory in $ac_dir_suffix.
22272 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22273 case $ac_top_builddir_sub in
22274 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22275 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22278 ac_abs_top_builddir=$ac_pwd
22279 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22280 # for backward compatibility:
22281 ac_top_builddir=$ac_top_build_prefix
22284 .) # We are building in place.
22286 ac_top_srcdir=$ac_top_builddir_sub
22287 ac_abs_top_srcdir=$ac_pwd ;;
22288 [\\/]* | ?:[\\/]* ) # Absolute name.
22289 ac_srcdir=$srcdir$ac_dir_suffix;
22290 ac_top_srcdir=$srcdir
22291 ac_abs_top_srcdir=$srcdir ;;
22292 *) # Relative name.
22293 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22294 ac_top_srcdir=$ac_top_build_prefix$srcdir
22295 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22297 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22307 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22308 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22312 cat >>$CONFIG_STATUS <<\_ACEOF
22313 # If the template does not know about datarootdir, expand it.
22314 # FIXME: This hack should be removed a few years after 2.60.
22315 ac_datarootdir_hack=; ac_datarootdir_seen=
22317 case `sed -n '/datarootdir/ {
22326 ' $ac_file_inputs` in
22327 *datarootdir*) ac_datarootdir_seen=yes;;
22328 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22329 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22330 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22332 cat >>$CONFIG_STATUS <<_ACEOF
22333 ac_datarootdir_hack='
22334 s&@datadir@&$datadir&g
22335 s&@docdir@&$docdir&g
22336 s&@infodir@&$infodir&g
22337 s&@localedir@&$localedir&g
22338 s&@mandir@&$mandir&g
22339 s&\\\${datarootdir}&$datarootdir&g' ;;
22343 # Neutralize VPATH when `$srcdir' = `.'.
22344 # Shell code in configure.ac might set extrasub.
22345 # FIXME: do we really want to maintain this feature?
22346 cat >>$CONFIG_STATUS <<_ACEOF
22350 cat >>$CONFIG_STATUS <<\_ACEOF
22352 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22353 s&@configure_input@&$configure_input&;t t
22354 s&@top_builddir@&$ac_top_builddir_sub&;t t
22355 s&@srcdir@&$ac_srcdir&;t t
22356 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22357 s&@top_srcdir@&$ac_top_srcdir&;t t
22358 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22359 s&@builddir@&$ac_builddir&;t t
22360 s&@abs_builddir@&$ac_abs_builddir&;t t
22361 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22362 s&@INSTALL@&$ac_INSTALL&;t t
22363 $ac_datarootdir_hack
22364 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22366 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22367 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22368 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22369 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22370 which seems to be undefined. Please make sure it is defined." >&5
22371 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22372 which seems to be undefined. Please make sure it is defined." >&2;}
22376 -) cat "$tmp/out"; rm -f "$tmp/out";;
22377 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22386 # Transform confdefs.h into a sed script `conftest.defines', that
22387 # substitutes the proper values into config.h.in to produce config.h.
22388 rm -f conftest.defines conftest.tail
22389 # First, append a space to every undef/define line, to ease matching.
22390 echo 's/$/ /' >conftest.defines
22391 # Then, protect against being on the right side of a sed subst, or in
22392 # an unquoted here document, in config.status. If some macros were
22393 # called several times there might be several #defines for the same
22394 # symbol, which is useless. But do not sort them, since the last
22395 # AC_DEFINE must be honored.
22396 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22397 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22398 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22399 # PARAMS is the parameter list in the macro definition--in most cases, it's
22400 # just an empty string.
22401 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22402 ac_dB='\\)[ (].*,\\1define\\2'
22410 s/^[ ]*#[ ]*define[ ][ ]*//
22415 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22416 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22417 ' >>conftest.defines
22419 # Remove the space that was appended to ease matching.
22420 # Then replace #undef with comments. This is necessary, for
22421 # example, in the case of _POSIX_SOURCE, which is predefined and required
22422 # on some systems where configure will not decide to define it.
22423 # (The regexp can be short, since the line contains either #define or #undef.)
22425 s,^[ #]*u.*,/* & */,' >>conftest.defines
22427 # Break up conftest.defines:
22428 ac_max_sed_lines=50
22430 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22431 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22432 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22434 ac_in='$ac_file_inputs'
22435 ac_out='"$tmp/out1"'
22436 ac_nxt='"$tmp/out2"'
22440 # Write a here document:
22441 cat >>$CONFIG_STATUS <<_ACEOF
22442 # First, check the format of the line:
22443 cat >"\$tmp/defines.sed" <<\\CEOF
22444 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22445 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22449 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22451 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22452 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22453 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22454 grep . conftest.tail >/dev/null || break
22455 rm -f conftest.defines
22456 mv conftest.tail conftest.defines
22458 rm -f conftest.defines conftest.tail
22460 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22461 cat >>$CONFIG_STATUS <<\_ACEOF
22462 if test x"$ac_file" != x-; then
22463 echo "/* $configure_input */" >"$tmp/config.h"
22464 cat "$ac_result" >>"$tmp/config.h"
22465 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22466 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22467 echo "$as_me: $ac_file is unchanged" >&6;}
22470 mv "$tmp/config.h" $ac_file
22473 echo "/* $configure_input */"
22479 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22480 echo "$as_me: executing $ac_file commands" >&6;}
22485 case $ac_file$ac_mode in
22486 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22487 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22488 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22489 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22490 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22491 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22492 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22493 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22494 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22495 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22496 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22497 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22498 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22499 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22500 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22501 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22502 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22503 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22504 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22505 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22506 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22507 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22508 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22509 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22510 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22511 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22517 { (exit 0); exit 0; }
22519 chmod +x $CONFIG_STATUS
22520 ac_clean_files=$ac_clean_files_save
22523 # configure is writing to config.log, and then calls config.status.
22524 # config.status does its own redirection, appending to config.log.
22525 # Unfortunately, on DOS this fails, as config.log is still kept open
22526 # by configure, so config.status won't be able to write to it; its
22527 # output is simply discarded. So we exec the FD to /dev/null,
22528 # effectively closing config.log, so it can be properly (re)opened and
22529 # appended to by config.status. When coming back to configure, we
22530 # need to make the FD available again.
22531 if test "$no_create" != yes; then
22533 ac_config_status_args=
22534 test "$silent" = yes &&
22535 ac_config_status_args="$ac_config_status_args --quiet"
22537 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22539 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22540 # would make configure fail if this is the last instruction.
22541 $ac_cs_success || { (exit 1); exit 1; }
22545 # CONFIG_SUBDIRS section.
22547 if test "$no_recursion" != yes; then
22549 # Remove --cache-file and --srcdir arguments so they do not pile up.
22550 ac_sub_configure_args=
22552 eval "set x $ac_configure_args"
22556 if test -n "$ac_prev"; then
22561 -cache-file | --cache-file | --cache-fil | --cache-fi \
22562 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22563 ac_prev=cache_file ;;
22564 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22565 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22568 --config-cache | -C)
22570 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22572 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22574 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22576 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22580 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22582 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22586 # Always prepend --prefix to ensure using the same prefix
22587 # in subdir configurations.
22588 ac_arg="--prefix=$prefix"
22590 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22592 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22595 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22597 # Do not complain, so a configure script can configure whichever
22598 # parts of a large source tree are present.
22599 test -d "$srcdir/$ac_dir" || continue
22601 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22602 echo "$as_me:$LINENO: $ac_msg" >&5
22606 -*) as_dir=./$as_dir;;
22608 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22612 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22613 *) as_qdir=$as_dir;;
22615 as_dirs="'$as_qdir' $as_dirs"
22616 as_dir=`$as_dirname -- "$as_dir" ||
22617 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22618 X"$as_dir" : 'X\(//\)[^/]' \| \
22619 X"$as_dir" : 'X\(//\)$' \| \
22620 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22622 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22626 /^X\(\/\/\)[^/].*/{
22639 test -d "$as_dir" && break
22641 test -z "$as_dirs" || eval "mkdir $as_dirs"
22642 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22643 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22644 { (exit 1); exit 1; }; }; }
22648 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22650 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22651 # A ".." for each directory in $ac_dir_suffix.
22652 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22653 case $ac_top_builddir_sub in
22654 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22655 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22658 ac_abs_top_builddir=$ac_pwd
22659 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22660 # for backward compatibility:
22661 ac_top_builddir=$ac_top_build_prefix
22664 .) # We are building in place.
22666 ac_top_srcdir=$ac_top_builddir_sub
22667 ac_abs_top_srcdir=$ac_pwd ;;
22668 [\\/]* | ?:[\\/]* ) # Absolute name.
22669 ac_srcdir=$srcdir$ac_dir_suffix;
22670 ac_top_srcdir=$srcdir
22671 ac_abs_top_srcdir=$srcdir ;;
22672 *) # Relative name.
22673 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22674 ac_top_srcdir=$ac_top_build_prefix$srcdir
22675 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22677 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22682 # Check for guested configure; otherwise get Cygnus style configure.
22683 if test -f "$ac_srcdir/configure.gnu"; then
22684 ac_sub_configure=$ac_srcdir/configure.gnu
22685 elif test -f "$ac_srcdir/configure"; then
22686 ac_sub_configure=$ac_srcdir/configure
22687 elif test -f "$ac_srcdir/configure.in"; then
22688 # This should be Cygnus configure.
22689 ac_sub_configure=$ac_aux_dir/configure
22691 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22692 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22696 # The recursion is here.
22697 if test -n "$ac_sub_configure"; then
22698 # Make the cache file name correct relative to the subdirectory.
22699 case $cache_file in
22700 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22701 *) # Relative name.
22702 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22705 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22706 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22707 # The eval makes quoting arguments work.
22708 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22709 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22710 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22711 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22712 { (exit 1); exit 1; }; }