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, 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" ;;
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 host) case "$llvm_cv_target_arch" in
5350 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5351 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5352 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5353 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5354 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5355 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5356 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5357 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5358 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5359 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5360 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5361 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5362 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5363 echo "$as_me: error: Can not set target to build" >&2;}
5364 { (exit 1); exit 1; }; } ;;
5366 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5367 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5368 { (exit 1); exit 1; }; } ;;
5373 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5376 for a_target in $TARGETS_TO_BUILD; do
5377 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5379 cat >>confdefs.h <<_ACEOF
5380 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5383 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5384 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5385 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5386 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5387 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5388 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5390 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5391 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5394 cat >>confdefs.h <<_ACEOF
5395 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5399 cat >>confdefs.h <<_ACEOF
5400 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5404 cat >>confdefs.h <<_ACEOF
5405 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5409 cat >>confdefs.h <<_ACEOF
5410 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5413 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5415 cat >>confdefs.h <<_ACEOF
5416 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5420 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5422 cat >>confdefs.h <<_ACEOF
5423 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5430 LLVM_ENUM_TARGETS=""
5431 LLVM_ENUM_ASM_PRINTERS=""
5432 LLVM_ENUM_ASM_PARSERS=""
5433 LLVM_ENUM_DISASSEMBLERS=""
5434 for target_to_build in $TARGETS_TO_BUILD; do
5435 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5436 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5437 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5439 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5440 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5442 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5443 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5452 # Check whether --with-optimize-option was given.
5453 if test "${with_optimize_option+set}" = set; then
5454 withval=$with_optimize_option;
5459 { echo "$as_me:$LINENO: checking optimization flags" >&5
5460 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5463 case "$llvm_cv_os_type" in
5464 FreeBSD) optimize_option=-O2 ;;
5465 MingW) optimize_option=-O2 ;;
5466 *) optimize_option=-O3 ;;
5468 *) optimize_option="$withval" ;;
5470 OPTIMIZE_OPTION=$optimize_option
5472 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5473 echo "${ECHO_T}$optimize_option" >&6; }
5476 # Check whether --with-extra-options was given.
5477 if test "${with_extra_options+set}" = set; then
5478 withval=$with_extra_options;
5484 default) EXTRA_OPTIONS= ;;
5485 *) EXTRA_OPTIONS=$withval ;;
5487 EXTRA_OPTIONS=$EXTRA_OPTIONS
5491 # Check whether --with-extra-ld-options was given.
5492 if test "${with_extra_ld_options+set}" = set; then
5493 withval=$with_extra_ld_options;
5499 default) EXTRA_LD_OPTIONS= ;;
5500 *) EXTRA_LD_OPTIONS=$withval ;;
5502 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5505 # Check whether --enable-bindings was given.
5506 if test "${enable_bindings+set}" = set; then
5507 enableval=$enable_bindings;
5512 BINDINGS_TO_BUILD=""
5513 case "$enableval" in
5514 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5515 all ) BINDINGS_TO_BUILD="ocaml" ;;
5516 none | no) BINDINGS_TO_BUILD="" ;;
5517 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5518 case "$a_binding" in
5519 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5520 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5521 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5522 { (exit 1); exit 1; }; } ;;
5529 # Check whether --with-ocaml-libdir was given.
5530 if test "${with_ocaml_libdir+set}" = set; then
5531 withval=$with_ocaml_libdir;
5537 auto) with_ocaml_libdir="$withval" ;;
5538 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5539 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5540 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5541 { (exit 1); exit 1; }; } ;;
5545 # Check whether --with-clang-srcdir was given.
5546 if test "${with_clang_srcdir+set}" = set; then
5547 withval=$with_clang_srcdir;
5553 -) clang_src_root="" ;;
5554 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5555 *) clang_src_root="$ac_pwd/$withval" ;;
5557 CLANG_SRC_ROOT=$clang_src_root
5561 # Check whether --with-clang-resource-dir was given.
5562 if test "${with_clang_resource_dir+set}" = set; then
5563 withval=$with_clang_resource_dir;
5569 cat >>confdefs.h <<_ACEOF
5570 #define CLANG_RESOURCE_DIR "$withval"
5575 # Check whether --with-c-include-dirs was given.
5576 if test "${with_c_include_dirs+set}" = set; then
5577 withval=$with_c_include_dirs;
5583 cat >>confdefs.h <<_ACEOF
5584 #define C_INCLUDE_DIRS "$withval"
5588 # Clang normally uses the system c++ headers and libraries. With this option,
5589 # clang will use the ones provided by a gcc installation instead. This option should
5590 # be passed the same value that was used with --prefix when configuring gcc.
5592 # Check whether --with-gcc-toolchain was given.
5593 if test "${with_gcc_toolchain+set}" = set; then
5594 withval=$with_gcc_toolchain;
5600 cat >>confdefs.h <<_ACEOF
5601 #define GCC_INSTALL_PREFIX "$withval"
5606 # Check whether --with-default-sysroot was given.
5607 if test "${with_default_sysroot+set}" = set; then
5608 withval=$with_default_sysroot;
5614 cat >>confdefs.h <<_ACEOF
5615 #define DEFAULT_SYSROOT "$withval"
5620 # Check whether --with-binutils-include was given.
5621 if test "${with_binutils_include+set}" = set; then
5622 withval=$with_binutils_include;
5628 default) WITH_BINUTILS_INCDIR=default ;;
5629 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5630 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5631 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5632 { (exit 1); exit 1; }; } ;;
5634 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5635 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5637 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5638 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5639 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5640 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5641 { (exit 1); exit 1; }; };
5646 # Check whether --with-bug-report-url was given.
5647 if test "${with_bug_report_url+set}" = set; then
5648 withval=$with_bug_report_url;
5650 withval="http://llvm.org/bugs/"
5654 cat >>confdefs.h <<_ACEOF
5655 #define BUG_REPORT_URL "$withval"
5659 # Check whether --enable-libffi was given.
5660 if test "${enable_libffi+set}" = set; then
5661 enableval=$enable_libffi; case "$enableval" in
5662 yes) llvm_cv_enable_libffi="yes" ;;
5663 no) llvm_cv_enable_libffi="no" ;;
5664 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5665 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5666 { (exit 1); exit 1; }; } ;;
5669 llvm_cv_enable_libffi=no
5674 # Check whether --with-internal-prefix was given.
5675 if test "${with_internal_prefix+set}" = set; then
5676 withval=$with_internal_prefix;
5681 INTERNAL_PREFIX=$withval
5685 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5686 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5687 if test "${lt_cv_path_NM+set}" = set; then
5688 echo $ECHO_N "(cached) $ECHO_C" >&6
5690 if test -n "$NM"; then
5691 # Let the user override the test.
5694 lt_nm_to_check="${ac_tool_prefix}nm"
5695 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5696 lt_nm_to_check="$lt_nm_to_check nm"
5698 for lt_tmp_nm in $lt_nm_to_check; do
5699 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5700 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5702 test -z "$ac_dir" && ac_dir=.
5703 tmp_nm="$ac_dir/$lt_tmp_nm"
5704 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5705 # Check to see if the nm accepts a BSD-compat flag.
5706 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5707 # nm: unknown option "B" ignored
5708 # Tru64's nm complains that /dev/null is an invalid object file
5709 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5710 */dev/null* | *'Invalid file or object type'*)
5711 lt_cv_path_NM="$tmp_nm -B"
5715 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5717 lt_cv_path_NM="$tmp_nm -p"
5721 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5722 continue # so that we can try to find one that supports BSD flags
5731 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5734 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5735 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5740 { echo "$as_me:$LINENO: checking for GNU make" >&5
5741 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5742 if test "${llvm_cv_gnu_make_command+set}" = set; then
5743 echo $ECHO_N "(cached) $ECHO_C" >&6
5745 llvm_cv_gnu_make_command=''
5746 for a in "$MAKE" make gmake gnumake ; do
5747 if test -z "$a" ; then continue ; fi ;
5748 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5750 llvm_cv_gnu_make_command=$a ;
5755 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5756 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5757 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5761 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5762 echo "${ECHO_T}\"Not found\"" >&6; };
5766 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5767 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5769 if test "$LN_S" = "ln -s"; then
5770 { echo "$as_me:$LINENO: result: yes" >&5
5771 echo "${ECHO_T}yes" >&6; }
5773 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5774 echo "${ECHO_T}no, using $LN_S" >&6; }
5777 # Extract the first word of "cmp", so it can be a program name with args.
5778 set dummy cmp; ac_word=$2
5779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5781 if test "${ac_cv_path_CMP+set}" = set; then
5782 echo $ECHO_N "(cached) $ECHO_C" >&6
5786 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5793 test -z "$as_dir" && as_dir=.
5794 for ac_exec_ext in '' $ac_executable_extensions; do
5795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5796 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5804 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5809 if test -n "$CMP"; then
5810 { echo "$as_me:$LINENO: result: $CMP" >&5
5811 echo "${ECHO_T}$CMP" >&6; }
5813 { echo "$as_me:$LINENO: result: no" >&5
5814 echo "${ECHO_T}no" >&6; }
5818 # Extract the first word of "cp", so it can be a program name with args.
5819 set dummy cp; ac_word=$2
5820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5822 if test "${ac_cv_path_CP+set}" = set; then
5823 echo $ECHO_N "(cached) $ECHO_C" >&6
5827 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834 test -z "$as_dir" && as_dir=.
5835 for ac_exec_ext in '' $ac_executable_extensions; do
5836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5837 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5845 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5850 if test -n "$CP"; then
5851 { echo "$as_me:$LINENO: result: $CP" >&5
5852 echo "${ECHO_T}$CP" >&6; }
5854 { echo "$as_me:$LINENO: result: no" >&5
5855 echo "${ECHO_T}no" >&6; }
5859 # Extract the first word of "date", so it can be a program name with args.
5860 set dummy date; ac_word=$2
5861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5863 if test "${ac_cv_path_DATE+set}" = set; then
5864 echo $ECHO_N "(cached) $ECHO_C" >&6
5868 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5875 test -z "$as_dir" && as_dir=.
5876 for ac_exec_ext in '' $ac_executable_extensions; do
5877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5878 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5886 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5890 DATE=$ac_cv_path_DATE
5891 if test -n "$DATE"; then
5892 { echo "$as_me:$LINENO: result: $DATE" >&5
5893 echo "${ECHO_T}$DATE" >&6; }
5895 { echo "$as_me:$LINENO: result: no" >&5
5896 echo "${ECHO_T}no" >&6; }
5900 # Extract the first word of "find", so it can be a program name with args.
5901 set dummy find; ac_word=$2
5902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5904 if test "${ac_cv_path_FIND+set}" = set; then
5905 echo $ECHO_N "(cached) $ECHO_C" >&6
5909 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5916 test -z "$as_dir" && as_dir=.
5917 for ac_exec_ext in '' $ac_executable_extensions; do
5918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5919 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5927 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5931 FIND=$ac_cv_path_FIND
5932 if test -n "$FIND"; then
5933 { echo "$as_me:$LINENO: result: $FIND" >&5
5934 echo "${ECHO_T}$FIND" >&6; }
5936 { echo "$as_me:$LINENO: result: no" >&5
5937 echo "${ECHO_T}no" >&6; }
5941 # Extract the first word of "grep", so it can be a program name with args.
5942 set dummy grep; ac_word=$2
5943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5945 if test "${ac_cv_path_GREP+set}" = set; then
5946 echo $ECHO_N "(cached) $ECHO_C" >&6
5950 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957 test -z "$as_dir" && as_dir=.
5958 for ac_exec_ext in '' $ac_executable_extensions; do
5959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5960 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5968 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5972 GREP=$ac_cv_path_GREP
5973 if test -n "$GREP"; then
5974 { echo "$as_me:$LINENO: result: $GREP" >&5
5975 echo "${ECHO_T}$GREP" >&6; }
5977 { echo "$as_me:$LINENO: result: no" >&5
5978 echo "${ECHO_T}no" >&6; }
5982 # Extract the first word of "mkdir", so it can be a program name with args.
5983 set dummy mkdir; ac_word=$2
5984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5986 if test "${ac_cv_path_MKDIR+set}" = set; then
5987 echo $ECHO_N "(cached) $ECHO_C" >&6
5991 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5998 test -z "$as_dir" && as_dir=.
5999 for ac_exec_ext in '' $ac_executable_extensions; do
6000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6001 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6009 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6013 MKDIR=$ac_cv_path_MKDIR
6014 if test -n "$MKDIR"; then
6015 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6016 echo "${ECHO_T}$MKDIR" >&6; }
6018 { echo "$as_me:$LINENO: result: no" >&5
6019 echo "${ECHO_T}no" >&6; }
6023 # Extract the first word of "mv", so it can be a program name with args.
6024 set dummy mv; ac_word=$2
6025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6027 if test "${ac_cv_path_MV+set}" = set; then
6028 echo $ECHO_N "(cached) $ECHO_C" >&6
6032 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039 test -z "$as_dir" && as_dir=.
6040 for ac_exec_ext in '' $ac_executable_extensions; do
6041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6042 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6050 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6055 if test -n "$MV"; then
6056 { echo "$as_me:$LINENO: result: $MV" >&5
6057 echo "${ECHO_T}$MV" >&6; }
6059 { echo "$as_me:$LINENO: result: no" >&5
6060 echo "${ECHO_T}no" >&6; }
6064 if test -n "$ac_tool_prefix"; then
6065 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6066 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6069 if test "${ac_cv_prog_RANLIB+set}" = set; then
6070 echo $ECHO_N "(cached) $ECHO_C" >&6
6072 if test -n "$RANLIB"; then
6073 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079 test -z "$as_dir" && as_dir=.
6080 for ac_exec_ext in '' $ac_executable_extensions; do
6081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6082 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6092 RANLIB=$ac_cv_prog_RANLIB
6093 if test -n "$RANLIB"; then
6094 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6095 echo "${ECHO_T}$RANLIB" >&6; }
6097 { echo "$as_me:$LINENO: result: no" >&5
6098 echo "${ECHO_T}no" >&6; }
6103 if test -z "$ac_cv_prog_RANLIB"; then
6104 ac_ct_RANLIB=$RANLIB
6105 # Extract the first word of "ranlib", so it can be a program name with args.
6106 set dummy ranlib; ac_word=$2
6107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6109 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6110 echo $ECHO_N "(cached) $ECHO_C" >&6
6112 if test -n "$ac_ct_RANLIB"; then
6113 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6119 test -z "$as_dir" && as_dir=.
6120 for ac_exec_ext in '' $ac_executable_extensions; do
6121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6122 ac_cv_prog_ac_ct_RANLIB="ranlib"
6123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6132 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6133 if test -n "$ac_ct_RANLIB"; then
6134 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6135 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6137 { echo "$as_me:$LINENO: result: no" >&5
6138 echo "${ECHO_T}no" >&6; }
6141 if test "x$ac_ct_RANLIB" = x; then
6144 case $cross_compiling:$ac_tool_warned in
6146 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6147 whose name does not start with the host triplet. If you think this
6148 configuration is useful to you, please write to autoconf@gnu.org." >&5
6149 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6150 whose name does not start with the host triplet. If you think this
6151 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6152 ac_tool_warned=yes ;;
6154 RANLIB=$ac_ct_RANLIB
6157 RANLIB="$ac_cv_prog_RANLIB"
6160 if test -n "$ac_tool_prefix"; then
6161 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6162 set dummy ${ac_tool_prefix}ar; ac_word=$2
6163 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6165 if test "${ac_cv_prog_AR+set}" = set; then
6166 echo $ECHO_N "(cached) $ECHO_C" >&6
6168 if test -n "$AR"; then
6169 ac_cv_prog_AR="$AR" # Let the user override the test.
6171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6175 test -z "$as_dir" && as_dir=.
6176 for ac_exec_ext in '' $ac_executable_extensions; do
6177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6178 ac_cv_prog_AR="${ac_tool_prefix}ar"
6179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6189 if test -n "$AR"; then
6190 { echo "$as_me:$LINENO: result: $AR" >&5
6191 echo "${ECHO_T}$AR" >&6; }
6193 { echo "$as_me:$LINENO: result: no" >&5
6194 echo "${ECHO_T}no" >&6; }
6199 if test -z "$ac_cv_prog_AR"; then
6201 # Extract the first word of "ar", so it can be a program name with args.
6202 set dummy ar; ac_word=$2
6203 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6205 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6206 echo $ECHO_N "(cached) $ECHO_C" >&6
6208 if test -n "$ac_ct_AR"; then
6209 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6215 test -z "$as_dir" && as_dir=.
6216 for ac_exec_ext in '' $ac_executable_extensions; do
6217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6218 ac_cv_prog_ac_ct_AR="ar"
6219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6228 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6229 if test -n "$ac_ct_AR"; then
6230 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6231 echo "${ECHO_T}$ac_ct_AR" >&6; }
6233 { echo "$as_me:$LINENO: result: no" >&5
6234 echo "${ECHO_T}no" >&6; }
6237 if test "x$ac_ct_AR" = x; then
6240 case $cross_compiling:$ac_tool_warned in
6242 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6243 whose name does not start with the host triplet. If you think this
6244 configuration is useful to you, please write to autoconf@gnu.org." >&5
6245 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6246 whose name does not start with the host triplet. If you think this
6247 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6248 ac_tool_warned=yes ;;
6256 # Extract the first word of "rm", so it can be a program name with args.
6257 set dummy rm; ac_word=$2
6258 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6260 if test "${ac_cv_path_RM+set}" = set; then
6261 echo $ECHO_N "(cached) $ECHO_C" >&6
6265 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6272 test -z "$as_dir" && as_dir=.
6273 for ac_exec_ext in '' $ac_executable_extensions; do
6274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6275 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6283 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6288 if test -n "$RM"; then
6289 { echo "$as_me:$LINENO: result: $RM" >&5
6290 echo "${ECHO_T}$RM" >&6; }
6292 { echo "$as_me:$LINENO: result: no" >&5
6293 echo "${ECHO_T}no" >&6; }
6297 # Extract the first word of "sed", so it can be a program name with args.
6298 set dummy sed; ac_word=$2
6299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6301 if test "${ac_cv_path_SED+set}" = set; then
6302 echo $ECHO_N "(cached) $ECHO_C" >&6
6306 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313 test -z "$as_dir" && as_dir=.
6314 for ac_exec_ext in '' $ac_executable_extensions; do
6315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6316 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6324 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6329 if test -n "$SED"; then
6330 { echo "$as_me:$LINENO: result: $SED" >&5
6331 echo "${ECHO_T}$SED" >&6; }
6333 { echo "$as_me:$LINENO: result: no" >&5
6334 echo "${ECHO_T}no" >&6; }
6338 # Extract the first word of "tar", so it can be a program name with args.
6339 set dummy tar; ac_word=$2
6340 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6342 if test "${ac_cv_path_TAR+set}" = set; then
6343 echo $ECHO_N "(cached) $ECHO_C" >&6
6347 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6354 test -z "$as_dir" && as_dir=.
6355 for ac_exec_ext in '' $ac_executable_extensions; do
6356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6357 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6365 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6370 if test -n "$TAR"; then
6371 { echo "$as_me:$LINENO: result: $TAR" >&5
6372 echo "${ECHO_T}$TAR" >&6; }
6374 { echo "$as_me:$LINENO: result: no" >&5
6375 echo "${ECHO_T}no" >&6; }
6379 # Extract the first word of "pwd", so it can be a program name with args.
6380 set dummy pwd; ac_word=$2
6381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6383 if test "${ac_cv_path_BINPWD+set}" = set; then
6384 echo $ECHO_N "(cached) $ECHO_C" >&6
6388 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395 test -z "$as_dir" && as_dir=.
6396 for ac_exec_ext in '' $ac_executable_extensions; do
6397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6398 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6406 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6410 BINPWD=$ac_cv_path_BINPWD
6411 if test -n "$BINPWD"; then
6412 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6413 echo "${ECHO_T}$BINPWD" >&6; }
6415 { echo "$as_me:$LINENO: result: no" >&5
6416 echo "${ECHO_T}no" >&6; }
6421 # Extract the first word of "Graphviz", so it can be a program name with args.
6422 set dummy Graphviz; ac_word=$2
6423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6425 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6426 echo $ECHO_N "(cached) $ECHO_C" >&6
6430 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6437 test -z "$as_dir" && as_dir=.
6438 for ac_exec_ext in '' $ac_executable_extensions; do
6439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6440 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6448 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6452 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6453 if test -n "$GRAPHVIZ"; then
6454 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6455 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6457 { echo "$as_me:$LINENO: result: no" >&5
6458 echo "${ECHO_T}no" >&6; }
6462 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6464 cat >>confdefs.h <<\_ACEOF
6465 #define HAVE_GRAPHVIZ 1
6468 if test "$llvm_cv_os_type" = "MingW" ; then
6469 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6472 cat >>confdefs.h <<_ACEOF
6473 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6477 # Extract the first word of "dot", so it can be a program name with args.
6478 set dummy dot; ac_word=$2
6479 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6481 if test "${ac_cv_path_DOT+set}" = set; then
6482 echo $ECHO_N "(cached) $ECHO_C" >&6
6486 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493 test -z "$as_dir" && as_dir=.
6494 for ac_exec_ext in '' $ac_executable_extensions; do
6495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6496 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6504 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6509 if test -n "$DOT"; then
6510 { echo "$as_me:$LINENO: result: $DOT" >&5
6511 echo "${ECHO_T}$DOT" >&6; }
6513 { echo "$as_me:$LINENO: result: no" >&5
6514 echo "${ECHO_T}no" >&6; }
6518 if test "$DOT" != "echo dot" ; then
6520 cat >>confdefs.h <<\_ACEOF
6524 if test "$llvm_cv_os_type" = "MingW" ; then
6525 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6528 cat >>confdefs.h <<_ACEOF
6529 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6533 # Extract the first word of "fdp", so it can be a program name with args.
6534 set dummy fdp; ac_word=$2
6535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6537 if test "${ac_cv_path_FDP+set}" = set; then
6538 echo $ECHO_N "(cached) $ECHO_C" >&6
6542 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6549 test -z "$as_dir" && as_dir=.
6550 for ac_exec_ext in '' $ac_executable_extensions; do
6551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6552 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6560 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6565 if test -n "$FDP"; then
6566 { echo "$as_me:$LINENO: result: $FDP" >&5
6567 echo "${ECHO_T}$FDP" >&6; }
6569 { echo "$as_me:$LINENO: result: no" >&5
6570 echo "${ECHO_T}no" >&6; }
6574 if test "$FDP" != "echo fdp" ; then
6576 cat >>confdefs.h <<\_ACEOF
6580 if test "$llvm_cv_os_type" = "MingW" ; then
6581 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6584 cat >>confdefs.h <<_ACEOF
6585 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6589 # Extract the first word of "neato", so it can be a program name with args.
6590 set dummy neato; ac_word=$2
6591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6593 if test "${ac_cv_path_NEATO+set}" = set; then
6594 echo $ECHO_N "(cached) $ECHO_C" >&6
6598 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6605 test -z "$as_dir" && as_dir=.
6606 for ac_exec_ext in '' $ac_executable_extensions; do
6607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6608 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6616 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6620 NEATO=$ac_cv_path_NEATO
6621 if test -n "$NEATO"; then
6622 { echo "$as_me:$LINENO: result: $NEATO" >&5
6623 echo "${ECHO_T}$NEATO" >&6; }
6625 { echo "$as_me:$LINENO: result: no" >&5
6626 echo "${ECHO_T}no" >&6; }
6630 if test "$NEATO" != "echo neato" ; then
6632 cat >>confdefs.h <<\_ACEOF
6633 #define HAVE_NEATO 1
6636 if test "$llvm_cv_os_type" = "MingW" ; then
6637 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6640 cat >>confdefs.h <<_ACEOF
6641 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6645 # Extract the first word of "twopi", so it can be a program name with args.
6646 set dummy twopi; ac_word=$2
6647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6649 if test "${ac_cv_path_TWOPI+set}" = set; then
6650 echo $ECHO_N "(cached) $ECHO_C" >&6
6654 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6661 test -z "$as_dir" && as_dir=.
6662 for ac_exec_ext in '' $ac_executable_extensions; do
6663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6664 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6672 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6676 TWOPI=$ac_cv_path_TWOPI
6677 if test -n "$TWOPI"; then
6678 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6679 echo "${ECHO_T}$TWOPI" >&6; }
6681 { echo "$as_me:$LINENO: result: no" >&5
6682 echo "${ECHO_T}no" >&6; }
6686 if test "$TWOPI" != "echo twopi" ; then
6688 cat >>confdefs.h <<\_ACEOF
6689 #define HAVE_TWOPI 1
6692 if test "$llvm_cv_os_type" = "MingW" ; then
6693 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6696 cat >>confdefs.h <<_ACEOF
6697 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6701 # Extract the first word of "circo", so it can be a program name with args.
6702 set dummy circo; ac_word=$2
6703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6705 if test "${ac_cv_path_CIRCO+set}" = set; then
6706 echo $ECHO_N "(cached) $ECHO_C" >&6
6710 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717 test -z "$as_dir" && as_dir=.
6718 for ac_exec_ext in '' $ac_executable_extensions; do
6719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6720 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6728 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6732 CIRCO=$ac_cv_path_CIRCO
6733 if test -n "$CIRCO"; then
6734 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6735 echo "${ECHO_T}$CIRCO" >&6; }
6737 { echo "$as_me:$LINENO: result: no" >&5
6738 echo "${ECHO_T}no" >&6; }
6742 if test "$CIRCO" != "echo circo" ; then
6744 cat >>confdefs.h <<\_ACEOF
6745 #define HAVE_CIRCO 1
6748 if test "$llvm_cv_os_type" = "MingW" ; then
6749 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6752 cat >>confdefs.h <<_ACEOF
6753 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6757 for ac_prog in gv gsview32
6759 # Extract the first word of "$ac_prog", so it can be a program name with args.
6760 set dummy $ac_prog; ac_word=$2
6761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6763 if test "${ac_cv_path_GV+set}" = set; then
6764 echo $ECHO_N "(cached) $ECHO_C" >&6
6768 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775 test -z "$as_dir" && as_dir=.
6776 for ac_exec_ext in '' $ac_executable_extensions; do
6777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6778 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6790 if test -n "$GV"; then
6791 { echo "$as_me:$LINENO: result: $GV" >&5
6792 echo "${ECHO_T}$GV" >&6; }
6794 { echo "$as_me:$LINENO: result: no" >&5
6795 echo "${ECHO_T}no" >&6; }
6799 test -n "$GV" && break
6801 test -n "$GV" || GV="echo gv"
6803 if test "$GV" != "echo gv" ; then
6805 cat >>confdefs.h <<\_ACEOF
6809 if test "$llvm_cv_os_type" = "MingW" ; then
6810 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6813 cat >>confdefs.h <<_ACEOF
6814 #define LLVM_PATH_GV "$GV${EXEEXT}"
6818 # Extract the first word of "dotty", so it can be a program name with args.
6819 set dummy dotty; ac_word=$2
6820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6822 if test "${ac_cv_path_DOTTY+set}" = set; then
6823 echo $ECHO_N "(cached) $ECHO_C" >&6
6827 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834 test -z "$as_dir" && as_dir=.
6835 for ac_exec_ext in '' $ac_executable_extensions; do
6836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6837 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6845 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6849 DOTTY=$ac_cv_path_DOTTY
6850 if test -n "$DOTTY"; then
6851 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6852 echo "${ECHO_T}$DOTTY" >&6; }
6854 { echo "$as_me:$LINENO: result: no" >&5
6855 echo "${ECHO_T}no" >&6; }
6859 if test "$DOTTY" != "echo dotty" ; then
6861 cat >>confdefs.h <<\_ACEOF
6862 #define HAVE_DOTTY 1
6865 if test "$llvm_cv_os_type" = "MingW" ; then
6866 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6869 cat >>confdefs.h <<_ACEOF
6870 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6874 # Extract the first word of "xdot.py", so it can be a program name with args.
6875 set dummy xdot.py; ac_word=$2
6876 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6878 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6879 echo $ECHO_N "(cached) $ECHO_C" >&6
6883 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890 test -z "$as_dir" && as_dir=.
6891 for ac_exec_ext in '' $ac_executable_extensions; do
6892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6893 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6901 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6905 XDOT_PY=$ac_cv_path_XDOT_PY
6906 if test -n "$XDOT_PY"; then
6907 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6908 echo "${ECHO_T}$XDOT_PY" >&6; }
6910 { echo "$as_me:$LINENO: result: no" >&5
6911 echo "${ECHO_T}no" >&6; }
6915 if test "$XDOT_PY" != "echo xdot.py" ; then
6917 cat >>confdefs.h <<\_ACEOF
6918 #define HAVE_XDOT_PY 1
6921 if test "$llvm_cv_os_type" = "MingW" ; then
6922 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6925 cat >>confdefs.h <<_ACEOF
6926 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6931 # Find a good install program. We prefer a C program (faster),
6932 # so one script is as good as another. But avoid the broken or
6933 # incompatible versions:
6934 # SysV /etc/install, /usr/sbin/install
6935 # SunOS /usr/etc/install
6936 # IRIX /sbin/install
6938 # AmigaOS /C/install, which installs bootblocks on floppy discs
6939 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6940 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6941 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6942 # OS/2's system install, which has a completely different semantic
6943 # ./install, which can be erroneously created by make from ./install.sh.
6944 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6945 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6946 if test -z "$INSTALL"; then
6947 if test "${ac_cv_path_install+set}" = set; then
6948 echo $ECHO_N "(cached) $ECHO_C" >&6
6950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6954 test -z "$as_dir" && as_dir=.
6955 # Account for people who put trailing slashes in PATH elements.
6957 ./ | .// | /cC/* | \
6958 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6959 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6962 # OSF1 and SCO ODT 3.0 have their own names for install.
6963 # Don't use installbsd from OSF since it installs stuff as root
6965 for ac_prog in ginstall scoinst install; do
6966 for ac_exec_ext in '' $ac_executable_extensions; do
6967 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6968 if test $ac_prog = install &&
6969 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6970 # AIX install. It has an incompatible calling convention.
6972 elif test $ac_prog = install &&
6973 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6974 # program-specific install script used by HP pwplus--don't use.
6977 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6990 if test "${ac_cv_path_install+set}" = set; then
6991 INSTALL=$ac_cv_path_install
6993 # As a last resort, use the slow shell script. Don't cache a
6994 # value for INSTALL within a source directory, because that will
6995 # break other packages using the cache if that directory is
6996 # removed, or if the value is a relative name.
6997 INSTALL=$ac_install_sh
7000 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7001 echo "${ECHO_T}$INSTALL" >&6; }
7003 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7004 # It thinks the first close brace ends the variable substitution.
7005 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7007 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7009 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7012 [\\/$]* | ?:[\\/]* ) ;;
7013 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7016 # Extract the first word of "bzip2", so it can be a program name with args.
7017 set dummy bzip2; ac_word=$2
7018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7020 if test "${ac_cv_path_BZIP2+set}" = set; then
7021 echo $ECHO_N "(cached) $ECHO_C" >&6
7025 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032 test -z "$as_dir" && as_dir=.
7033 for ac_exec_ext in '' $ac_executable_extensions; do
7034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7035 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7046 BZIP2=$ac_cv_path_BZIP2
7047 if test -n "$BZIP2"; then
7048 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7049 echo "${ECHO_T}$BZIP2" >&6; }
7051 { echo "$as_me:$LINENO: result: no" >&5
7052 echo "${ECHO_T}no" >&6; }
7056 # Extract the first word of "cat", so it can be a program name with args.
7057 set dummy cat; ac_word=$2
7058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7060 if test "${ac_cv_path_CAT+set}" = set; then
7061 echo $ECHO_N "(cached) $ECHO_C" >&6
7065 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072 test -z "$as_dir" && as_dir=.
7073 for ac_exec_ext in '' $ac_executable_extensions; do
7074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7075 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7087 if test -n "$CAT"; then
7088 { echo "$as_me:$LINENO: result: $CAT" >&5
7089 echo "${ECHO_T}$CAT" >&6; }
7091 { echo "$as_me:$LINENO: result: no" >&5
7092 echo "${ECHO_T}no" >&6; }
7096 # Extract the first word of "doxygen", so it can be a program name with args.
7097 set dummy doxygen; ac_word=$2
7098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7100 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7101 echo $ECHO_N "(cached) $ECHO_C" >&6
7105 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7112 test -z "$as_dir" && as_dir=.
7113 for ac_exec_ext in '' $ac_executable_extensions; do
7114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7115 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7126 DOXYGEN=$ac_cv_path_DOXYGEN
7127 if test -n "$DOXYGEN"; then
7128 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7129 echo "${ECHO_T}$DOXYGEN" >&6; }
7131 { echo "$as_me:$LINENO: result: no" >&5
7132 echo "${ECHO_T}no" >&6; }
7136 # Extract the first word of "groff", so it can be a program name with args.
7137 set dummy groff; ac_word=$2
7138 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7140 if test "${ac_cv_path_GROFF+set}" = set; then
7141 echo $ECHO_N "(cached) $ECHO_C" >&6
7145 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152 test -z "$as_dir" && as_dir=.
7153 for ac_exec_ext in '' $ac_executable_extensions; do
7154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7155 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7166 GROFF=$ac_cv_path_GROFF
7167 if test -n "$GROFF"; then
7168 { echo "$as_me:$LINENO: result: $GROFF" >&5
7169 echo "${ECHO_T}$GROFF" >&6; }
7171 { echo "$as_me:$LINENO: result: no" >&5
7172 echo "${ECHO_T}no" >&6; }
7176 # Extract the first word of "gzip", so it can be a program name with args.
7177 set dummy gzip; ac_word=$2
7178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7180 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7181 echo $ECHO_N "(cached) $ECHO_C" >&6
7185 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7192 test -z "$as_dir" && as_dir=.
7193 for ac_exec_ext in '' $ac_executable_extensions; do
7194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7195 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7206 GZIPBIN=$ac_cv_path_GZIPBIN
7207 if test -n "$GZIPBIN"; then
7208 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7209 echo "${ECHO_T}$GZIPBIN" >&6; }
7211 { echo "$as_me:$LINENO: result: no" >&5
7212 echo "${ECHO_T}no" >&6; }
7216 # Extract the first word of "pdfroff", so it can be a program name with args.
7217 set dummy pdfroff; ac_word=$2
7218 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7220 if test "${ac_cv_path_PDFROFF+set}" = set; then
7221 echo $ECHO_N "(cached) $ECHO_C" >&6
7225 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7232 test -z "$as_dir" && as_dir=.
7233 for ac_exec_ext in '' $ac_executable_extensions; do
7234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7235 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7246 PDFROFF=$ac_cv_path_PDFROFF
7247 if test -n "$PDFROFF"; then
7248 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7249 echo "${ECHO_T}$PDFROFF" >&6; }
7251 { echo "$as_me:$LINENO: result: no" >&5
7252 echo "${ECHO_T}no" >&6; }
7256 # Extract the first word of "zip", so it can be a program name with args.
7257 set dummy zip; ac_word=$2
7258 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7260 if test "${ac_cv_path_ZIP+set}" = set; then
7261 echo $ECHO_N "(cached) $ECHO_C" >&6
7265 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7272 test -z "$as_dir" && as_dir=.
7273 for ac_exec_ext in '' $ac_executable_extensions; do
7274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7275 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7287 if test -n "$ZIP"; then
7288 { echo "$as_me:$LINENO: result: $ZIP" >&5
7289 echo "${ECHO_T}$ZIP" >&6; }
7291 { echo "$as_me:$LINENO: result: no" >&5
7292 echo "${ECHO_T}no" >&6; }
7296 for ac_prog in ocamlc
7298 # Extract the first word of "$ac_prog", so it can be a program name with args.
7299 set dummy $ac_prog; ac_word=$2
7300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7302 if test "${ac_cv_path_OCAMLC+set}" = set; then
7303 echo $ECHO_N "(cached) $ECHO_C" >&6
7307 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314 test -z "$as_dir" && as_dir=.
7315 for ac_exec_ext in '' $ac_executable_extensions; do
7316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7317 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7328 OCAMLC=$ac_cv_path_OCAMLC
7329 if test -n "$OCAMLC"; then
7330 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7331 echo "${ECHO_T}$OCAMLC" >&6; }
7333 { echo "$as_me:$LINENO: result: no" >&5
7334 echo "${ECHO_T}no" >&6; }
7338 test -n "$OCAMLC" && break
7341 for ac_prog in ocamlopt
7343 # Extract the first word of "$ac_prog", so it can be a program name with args.
7344 set dummy $ac_prog; ac_word=$2
7345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7347 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7348 echo $ECHO_N "(cached) $ECHO_C" >&6
7352 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7359 test -z "$as_dir" && as_dir=.
7360 for ac_exec_ext in '' $ac_executable_extensions; do
7361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7362 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7373 OCAMLOPT=$ac_cv_path_OCAMLOPT
7374 if test -n "$OCAMLOPT"; then
7375 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7376 echo "${ECHO_T}$OCAMLOPT" >&6; }
7378 { echo "$as_me:$LINENO: result: no" >&5
7379 echo "${ECHO_T}no" >&6; }
7383 test -n "$OCAMLOPT" && break
7386 for ac_prog in ocamldep
7388 # Extract the first word of "$ac_prog", so it can be a program name with args.
7389 set dummy $ac_prog; ac_word=$2
7390 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7392 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7393 echo $ECHO_N "(cached) $ECHO_C" >&6
7397 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7404 test -z "$as_dir" && as_dir=.
7405 for ac_exec_ext in '' $ac_executable_extensions; do
7406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7407 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7418 OCAMLDEP=$ac_cv_path_OCAMLDEP
7419 if test -n "$OCAMLDEP"; then
7420 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7421 echo "${ECHO_T}$OCAMLDEP" >&6; }
7423 { echo "$as_me:$LINENO: result: no" >&5
7424 echo "${ECHO_T}no" >&6; }
7428 test -n "$OCAMLDEP" && break
7431 for ac_prog in ocamldoc
7433 # Extract the first word of "$ac_prog", so it can be a program name with args.
7434 set dummy $ac_prog; ac_word=$2
7435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7437 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7438 echo $ECHO_N "(cached) $ECHO_C" >&6
7442 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7449 test -z "$as_dir" && as_dir=.
7450 for ac_exec_ext in '' $ac_executable_extensions; do
7451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7452 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7463 OCAMLDOC=$ac_cv_path_OCAMLDOC
7464 if test -n "$OCAMLDOC"; then
7465 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7466 echo "${ECHO_T}$OCAMLDOC" >&6; }
7468 { echo "$as_me:$LINENO: result: no" >&5
7469 echo "${ECHO_T}no" >&6; }
7473 test -n "$OCAMLDOC" && break
7476 for ac_prog in gas as
7478 # Extract the first word of "$ac_prog", so it can be a program name with args.
7479 set dummy $ac_prog; ac_word=$2
7480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7482 if test "${ac_cv_path_GAS+set}" = set; then
7483 echo $ECHO_N "(cached) $ECHO_C" >&6
7487 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7494 test -z "$as_dir" && as_dir=.
7495 for ac_exec_ext in '' $ac_executable_extensions; do
7496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7497 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7509 if test -n "$GAS"; then
7510 { echo "$as_me:$LINENO: result: $GAS" >&5
7511 echo "${ECHO_T}$GAS" >&6; }
7513 { echo "$as_me:$LINENO: result: no" >&5
7514 echo "${ECHO_T}no" >&6; }
7518 test -n "$GAS" && break
7522 { echo "$as_me:$LINENO: checking for linker version" >&5
7523 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7524 if test "${llvm_cv_link_version+set}" = set; then
7525 echo $ECHO_N "(cached) $ECHO_C" >&6
7528 version_string="$(ld -v 2>&1 | head -1)"
7531 if (echo "$version_string" | grep -q "ld64"); then
7532 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7534 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7538 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7539 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7541 cat >>confdefs.h <<_ACEOF
7542 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7547 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7548 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7549 if test "${llvm_cv_link_use_r+set}" = set; then
7550 echo $ECHO_N "(cached) $ECHO_C" >&6
7553 ac_cpp='$CPP $CPPFLAGS'
7554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7559 CFLAGS="$CFLAGS -Wl,-R."
7560 cat >conftest.$ac_ext <<_ACEOF
7563 cat confdefs.h >>conftest.$ac_ext
7564 cat >>conftest.$ac_ext <<_ACEOF
7565 /* end confdefs.h. */
7575 rm -f conftest.$ac_objext conftest$ac_exeext
7576 if { (ac_try="$ac_link"
7578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7579 *) ac_try_echo=$ac_try;;
7581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7582 (eval "$ac_link") 2>conftest.er1
7584 grep -v '^ *+' conftest.er1 >conftest.err
7586 cat conftest.err >&5
7587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588 (exit $ac_status); } &&
7589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7590 { (case "(($ac_try" in
7591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7592 *) ac_try_echo=$ac_try;;
7594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7595 (eval "$ac_try") 2>&5
7597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598 (exit $ac_status); }; } &&
7599 { ac_try='test -s conftest$ac_exeext'
7600 { (case "(($ac_try" in
7601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7602 *) ac_try_echo=$ac_try;;
7604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7605 (eval "$ac_try") 2>&5
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); }; }; then
7609 llvm_cv_link_use_r=yes
7611 echo "$as_me: failed program was:" >&5
7612 sed 's/^/| /' conftest.$ac_ext >&5
7614 llvm_cv_link_use_r=no
7617 rm -f core conftest.err conftest.$ac_objext \
7618 conftest$ac_exeext conftest.$ac_ext
7621 ac_cpp='$CPP $CPPFLAGS'
7622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7628 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7629 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7630 if test "$llvm_cv_link_use_r" = yes ; then
7632 cat >>confdefs.h <<\_ACEOF
7633 #define HAVE_LINK_R 1
7639 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7640 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7641 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7642 echo $ECHO_N "(cached) $ECHO_C" >&6
7645 ac_cpp='$CPP $CPPFLAGS'
7646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7651 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7652 cat >conftest.$ac_ext <<_ACEOF
7655 cat confdefs.h >>conftest.$ac_ext
7656 cat >>conftest.$ac_ext <<_ACEOF
7657 /* end confdefs.h. */
7667 rm -f conftest.$ac_objext conftest$ac_exeext
7668 if { (ac_try="$ac_link"
7670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7671 *) ac_try_echo=$ac_try;;
7673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7674 (eval "$ac_link") 2>conftest.er1
7676 grep -v '^ *+' conftest.er1 >conftest.err
7678 cat conftest.err >&5
7679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680 (exit $ac_status); } &&
7681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7682 { (case "(($ac_try" in
7683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7684 *) ac_try_echo=$ac_try;;
7686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7687 (eval "$ac_try") 2>&5
7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690 (exit $ac_status); }; } &&
7691 { ac_try='test -s conftest$ac_exeext'
7692 { (case "(($ac_try" in
7693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7694 *) ac_try_echo=$ac_try;;
7696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7697 (eval "$ac_try") 2>&5
7699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700 (exit $ac_status); }; }; then
7701 llvm_cv_link_use_export_dynamic=yes
7703 echo "$as_me: failed program was:" >&5
7704 sed 's/^/| /' conftest.$ac_ext >&5
7706 llvm_cv_link_use_export_dynamic=no
7709 rm -f core conftest.err conftest.$ac_objext \
7710 conftest$ac_exeext conftest.$ac_ext
7713 ac_cpp='$CPP $CPPFLAGS'
7714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7720 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7721 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7722 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7724 cat >>confdefs.h <<\_ACEOF
7725 #define HAVE_LINK_EXPORT_DYNAMIC 1
7731 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7732 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7733 if test "${llvm_cv_link_use_version_script+set}" = set; then
7734 echo $ECHO_N "(cached) $ECHO_C" >&6
7737 ac_cpp='$CPP $CPPFLAGS'
7738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7744 # The following code is from the autoconf manual,
7745 # "11.13: Limitations of Usual Tools".
7746 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7747 # Use mktemp if possible; otherwise fall back on mkdir,
7748 # with $RANDOM to make collisions less likely.
7752 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7754 test -n "$tmp" && test -d "$tmp"
7756 tmp=$TMPDIR/foo$$-$RANDOM
7757 (umask 077 && mkdir "$tmp")
7760 echo "{" > "$tmp/export.map"
7761 echo " global: main;" >> "$tmp/export.map"
7762 echo " local: *;" >> "$tmp/export.map"
7763 echo "};" >> "$tmp/export.map"
7765 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7766 cat >conftest.$ac_ext <<_ACEOF
7769 cat confdefs.h >>conftest.$ac_ext
7770 cat >>conftest.$ac_ext <<_ACEOF
7771 /* end confdefs.h. */
7781 rm -f conftest.$ac_objext conftest$ac_exeext
7782 if { (ac_try="$ac_link"
7784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7785 *) ac_try_echo=$ac_try;;
7787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7788 (eval "$ac_link") 2>conftest.er1
7790 grep -v '^ *+' conftest.er1 >conftest.err
7792 cat conftest.err >&5
7793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7794 (exit $ac_status); } &&
7795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7796 { (case "(($ac_try" in
7797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7798 *) ac_try_echo=$ac_try;;
7800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7801 (eval "$ac_try") 2>&5
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); }; } &&
7805 { ac_try='test -s conftest$ac_exeext'
7806 { (case "(($ac_try" in
7807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7808 *) ac_try_echo=$ac_try;;
7810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7811 (eval "$ac_try") 2>&5
7813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814 (exit $ac_status); }; }; then
7815 llvm_cv_link_use_version_script=yes
7817 echo "$as_me: failed program was:" >&5
7818 sed 's/^/| /' conftest.$ac_ext >&5
7820 llvm_cv_link_use_version_script=no
7823 rm -f core conftest.err conftest.$ac_objext \
7824 conftest$ac_exeext conftest.$ac_ext
7825 rm "$tmp/export.map"
7829 ac_cpp='$CPP $CPPFLAGS'
7830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7836 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7837 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7838 if test "$llvm_cv_link_use_version_script" = yes ; then
7839 HAVE_LINK_VERSION_SCRIPT=1
7846 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7847 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7848 if test "${ac_cv_c_const+set}" = set; then
7849 echo $ECHO_N "(cached) $ECHO_C" >&6
7851 cat >conftest.$ac_ext <<_ACEOF
7854 cat confdefs.h >>conftest.$ac_ext
7855 cat >>conftest.$ac_ext <<_ACEOF
7856 /* end confdefs.h. */
7861 /* FIXME: Include the comments suggested by Paul. */
7863 /* Ultrix mips cc rejects this. */
7864 typedef int charset[2];
7866 /* SunOS 4.1.1 cc rejects this. */
7867 char const *const *ccp;
7869 /* NEC SVR4.0.2 mips cc rejects this. */
7870 struct point {int x, y;};
7871 static struct point const zero = {0,0};
7872 /* AIX XL C 1.02.0.0 rejects this.
7873 It does not let you subtract one const X* pointer from another in
7874 an arm of an if-expression whose if-part is not a constant
7876 const char *g = "string";
7877 ccp = &g + (g ? g-g : 0);
7878 /* HPUX 7.0 cc rejects these. */
7881 ccp = (char const *const *) p;
7882 { /* SCO 3.2v4 cc rejects this. */
7884 char const *s = 0 ? (char *) 0 : (char const *) 0;
7889 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7891 const int *foo = &x[0];
7894 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7895 typedef const int *iptr;
7899 { /* AIX XL C 1.02.0.0 rejects this saying
7900 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7901 struct s { int j; const int *ap[3]; };
7902 struct s *b; b->j = 5;
7904 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7908 return !x[0] && !zero.x;
7915 rm -f conftest.$ac_objext
7916 if { (ac_try="$ac_compile"
7918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7919 *) ac_try_echo=$ac_try;;
7921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7922 (eval "$ac_compile") 2>conftest.er1
7924 grep -v '^ *+' conftest.er1 >conftest.err
7926 cat conftest.err >&5
7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); } &&
7929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7930 { (case "(($ac_try" in
7931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7932 *) ac_try_echo=$ac_try;;
7934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7935 (eval "$ac_try") 2>&5
7937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938 (exit $ac_status); }; } &&
7939 { ac_try='test -s conftest.$ac_objext'
7940 { (case "(($ac_try" in
7941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7942 *) ac_try_echo=$ac_try;;
7944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7945 (eval "$ac_try") 2>&5
7947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948 (exit $ac_status); }; }; then
7951 echo "$as_me: failed program was:" >&5
7952 sed 's/^/| /' conftest.$ac_ext >&5
7957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7959 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7960 echo "${ECHO_T}$ac_cv_c_const" >&6; }
7961 if test $ac_cv_c_const = no; then
7963 cat >>confdefs.h <<\_ACEOF
7975 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7976 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7977 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7978 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
7979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7980 echo $ECHO_N "(cached) $ECHO_C" >&6
7982 cat >conftest.$ac_ext <<_ACEOF
7985 cat confdefs.h >>conftest.$ac_ext
7986 cat >>conftest.$ac_ext <<_ACEOF
7987 /* end confdefs.h. */
7988 #include <sys/types.h>
8000 rm -f conftest.$ac_objext
8001 if { (ac_try="$ac_compile"
8003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8004 *) ac_try_echo=$ac_try;;
8006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8007 (eval "$ac_compile") 2>conftest.er1
8009 grep -v '^ *+' conftest.er1 >conftest.err
8011 cat conftest.err >&5
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); } &&
8014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8015 { (case "(($ac_try" in
8016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8017 *) ac_try_echo=$ac_try;;
8019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8020 (eval "$ac_try") 2>&5
8022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023 (exit $ac_status); }; } &&
8024 { ac_try='test -s conftest.$ac_objext'
8025 { (case "(($ac_try" in
8026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8027 *) ac_try_echo=$ac_try;;
8029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8030 (eval "$ac_try") 2>&5
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); }; }; then
8034 eval "$as_ac_Header=yes"
8036 echo "$as_me: failed program was:" >&5
8037 sed 's/^/| /' conftest.$ac_ext >&5
8039 eval "$as_ac_Header=no"
8042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8044 ac_res=`eval echo '${'$as_ac_Header'}'`
8045 { echo "$as_me:$LINENO: result: $ac_res" >&5
8046 echo "${ECHO_T}$ac_res" >&6; }
8047 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8048 cat >>confdefs.h <<_ACEOF
8049 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8052 ac_header_dirent=$ac_hdr; break
8056 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8057 if test $ac_header_dirent = dirent.h; then
8058 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8059 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8060 if test "${ac_cv_search_opendir+set}" = set; then
8061 echo $ECHO_N "(cached) $ECHO_C" >&6
8063 ac_func_search_save_LIBS=$LIBS
8064 cat >conftest.$ac_ext <<_ACEOF
8067 cat confdefs.h >>conftest.$ac_ext
8068 cat >>conftest.$ac_ext <<_ACEOF
8069 /* end confdefs.h. */
8071 /* Override any GCC internal prototype to avoid an error.
8072 Use char because int might match the return type of a GCC
8073 builtin and then its argument prototype would still apply. */
8086 for ac_lib in '' dir; do
8087 if test -z "$ac_lib"; then
8088 ac_res="none required"
8091 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8093 rm -f conftest.$ac_objext conftest$ac_exeext
8094 if { (ac_try="$ac_link"
8096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8097 *) ac_try_echo=$ac_try;;
8099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8100 (eval "$ac_link") 2>conftest.er1
8102 grep -v '^ *+' conftest.er1 >conftest.err
8104 cat conftest.err >&5
8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 (exit $ac_status); } &&
8107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8108 { (case "(($ac_try" in
8109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8110 *) ac_try_echo=$ac_try;;
8112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8113 (eval "$ac_try") 2>&5
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); }; } &&
8117 { ac_try='test -s conftest$ac_exeext'
8118 { (case "(($ac_try" in
8119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8120 *) ac_try_echo=$ac_try;;
8122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8123 (eval "$ac_try") 2>&5
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); }; }; then
8127 ac_cv_search_opendir=$ac_res
8129 echo "$as_me: failed program was:" >&5
8130 sed 's/^/| /' conftest.$ac_ext >&5
8135 rm -f core conftest.err conftest.$ac_objext \
8137 if test "${ac_cv_search_opendir+set}" = set; then
8141 if test "${ac_cv_search_opendir+set}" = set; then
8144 ac_cv_search_opendir=no
8147 LIBS=$ac_func_search_save_LIBS
8149 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8150 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8151 ac_res=$ac_cv_search_opendir
8152 if test "$ac_res" != no; then
8153 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8158 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8159 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8160 if test "${ac_cv_search_opendir+set}" = set; then
8161 echo $ECHO_N "(cached) $ECHO_C" >&6
8163 ac_func_search_save_LIBS=$LIBS
8164 cat >conftest.$ac_ext <<_ACEOF
8167 cat confdefs.h >>conftest.$ac_ext
8168 cat >>conftest.$ac_ext <<_ACEOF
8169 /* end confdefs.h. */
8171 /* Override any GCC internal prototype to avoid an error.
8172 Use char because int might match the return type of a GCC
8173 builtin and then its argument prototype would still apply. */
8186 for ac_lib in '' x; do
8187 if test -z "$ac_lib"; then
8188 ac_res="none required"
8191 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8193 rm -f conftest.$ac_objext conftest$ac_exeext
8194 if { (ac_try="$ac_link"
8196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8197 *) ac_try_echo=$ac_try;;
8199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8200 (eval "$ac_link") 2>conftest.er1
8202 grep -v '^ *+' conftest.er1 >conftest.err
8204 cat conftest.err >&5
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); } &&
8207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8208 { (case "(($ac_try" in
8209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8210 *) ac_try_echo=$ac_try;;
8212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8213 (eval "$ac_try") 2>&5
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 (exit $ac_status); }; } &&
8217 { ac_try='test -s conftest$ac_exeext'
8218 { (case "(($ac_try" in
8219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8220 *) ac_try_echo=$ac_try;;
8222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8223 (eval "$ac_try") 2>&5
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); }; }; then
8227 ac_cv_search_opendir=$ac_res
8229 echo "$as_me: failed program was:" >&5
8230 sed 's/^/| /' conftest.$ac_ext >&5
8235 rm -f core conftest.err conftest.$ac_objext \
8237 if test "${ac_cv_search_opendir+set}" = set; then
8241 if test "${ac_cv_search_opendir+set}" = set; then
8244 ac_cv_search_opendir=no
8247 LIBS=$ac_func_search_save_LIBS
8249 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8250 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8251 ac_res=$ac_cv_search_opendir
8252 if test "$ac_res" != no; then
8253 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8260 for ac_header in dlfcn.h
8262 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8264 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8267 echo $ECHO_N "(cached) $ECHO_C" >&6
8269 ac_res=`eval echo '${'$as_ac_Header'}'`
8270 { echo "$as_me:$LINENO: result: $ac_res" >&5
8271 echo "${ECHO_T}$ac_res" >&6; }
8273 # Is the header compilable?
8274 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8275 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8276 cat >conftest.$ac_ext <<_ACEOF
8279 cat confdefs.h >>conftest.$ac_ext
8280 cat >>conftest.$ac_ext <<_ACEOF
8281 /* end confdefs.h. */
8282 $ac_includes_default
8283 #include <$ac_header>
8285 rm -f conftest.$ac_objext
8286 if { (ac_try="$ac_compile"
8288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8289 *) ac_try_echo=$ac_try;;
8291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8292 (eval "$ac_compile") 2>conftest.er1
8294 grep -v '^ *+' conftest.er1 >conftest.err
8296 cat conftest.err >&5
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); } &&
8299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8300 { (case "(($ac_try" in
8301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8302 *) ac_try_echo=$ac_try;;
8304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8305 (eval "$ac_try") 2>&5
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); }; } &&
8309 { ac_try='test -s conftest.$ac_objext'
8310 { (case "(($ac_try" in
8311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8312 *) ac_try_echo=$ac_try;;
8314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8315 (eval "$ac_try") 2>&5
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); }; }; then
8319 ac_header_compiler=yes
8321 echo "$as_me: failed program was:" >&5
8322 sed 's/^/| /' conftest.$ac_ext >&5
8324 ac_header_compiler=no
8327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8328 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8329 echo "${ECHO_T}$ac_header_compiler" >&6; }
8331 # Is the header present?
8332 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8333 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8334 cat >conftest.$ac_ext <<_ACEOF
8337 cat confdefs.h >>conftest.$ac_ext
8338 cat >>conftest.$ac_ext <<_ACEOF
8339 /* end confdefs.h. */
8340 #include <$ac_header>
8342 if { (ac_try="$ac_cpp conftest.$ac_ext"
8344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8345 *) ac_try_echo=$ac_try;;
8347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8350 grep -v '^ *+' conftest.er1 >conftest.err
8352 cat conftest.err >&5
8353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354 (exit $ac_status); } >/dev/null; then
8355 if test -s conftest.err; then
8356 ac_cpp_err=$ac_c_preproc_warn_flag
8357 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8364 if test -z "$ac_cpp_err"; then
8365 ac_header_preproc=yes
8367 echo "$as_me: failed program was:" >&5
8368 sed 's/^/| /' conftest.$ac_ext >&5
8370 ac_header_preproc=no
8373 rm -f conftest.err conftest.$ac_ext
8374 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8375 echo "${ECHO_T}$ac_header_preproc" >&6; }
8377 # So? What about this header?
8378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8380 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8381 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8383 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8384 ac_header_preproc=yes
8387 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8388 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8389 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8390 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8391 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8392 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8393 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8394 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8396 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8397 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8398 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8400 ## ------------------------------------ ##
8401 ## Report this to http://llvm.org/bugs/ ##
8402 ## ------------------------------------ ##
8404 ) | sed "s/^/$as_me: WARNING: /" >&2
8407 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8410 echo $ECHO_N "(cached) $ECHO_C" >&6
8412 eval "$as_ac_Header=\$ac_header_preproc"
8414 ac_res=`eval echo '${'$as_ac_Header'}'`
8415 { echo "$as_me:$LINENO: result: $ac_res" >&5
8416 echo "${ECHO_T}$ac_res" >&6; }
8419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8420 cat >>confdefs.h <<_ACEOF
8421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8428 # Check whether --enable-ltdl-install was given.
8429 if test "${enable_ltdl_install+set}" = set; then
8430 enableval=$enable_ltdl_install;
8436 if test x"${enable_ltdl_install-no}" != xno; then
8438 INSTALL_LTDL_FALSE='#'
8440 INSTALL_LTDL_TRUE='#'
8446 if test x"${enable_ltdl_convenience-no}" != xno; then
8447 CONVENIENCE_LTDL_TRUE=
8448 CONVENIENCE_LTDL_FALSE='#'
8450 CONVENIENCE_LTDL_TRUE='#'
8451 CONVENIENCE_LTDL_FALSE=
8455 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8456 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8458 libname_spec='lib$name'
8466 shlibpath_overrides_runpath=unknown
8468 dynamic_linker="$host_os ld.so"
8469 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8470 if test "$GCC" = yes; then
8471 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8472 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8473 # if the path contains ";" then we assume it to be the separator
8474 # otherwise default to the standard path separator (i.e. ":") - it is
8475 # assumed that no part of a normal pathname contains ";" but that should
8476 # okay in the real world where ";" in dirpaths is itself problematic.
8477 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8479 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8482 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8484 need_lib_prefix=unknown
8485 hardcode_into_libs=no
8487 # when you set need_version to no, make sure it does not cause -set_version
8488 # flags to be left without arguments
8489 need_version=unknown
8494 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8495 shlibpath_var=LIBPATH
8497 # AIX 3 has no versioning support, so we append a major version to the name.
8498 soname_spec='${libname}${release}${shared_ext}$major'
8505 hardcode_into_libs=yes
8506 if test "$host_cpu" = ia64; then
8507 # AIX 5 supports IA64
8508 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8509 shlibpath_var=LD_LIBRARY_PATH
8511 # With GCC up to 2.95.x, collect2 would create an import file
8512 # for dependence libraries. The import file would start with
8513 # the line `#! .'. This would cause the generated library to
8514 # depend on `.', always an invalid library. This was fixed in
8515 # development snapshots of GCC prior to 3.0.
8517 aix4 | aix4.[01] | aix4.[01].*)
8518 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8520 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8527 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8528 # soname into executable. Probably we can add versioning support to
8529 # collect2, so additional links can be useful in future.
8530 if test "$aix_use_runtimelinking" = yes; then
8531 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8532 # instead of lib<name>.a to let people know that these are not
8533 # typical AIX shared libraries.
8534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8536 # We preserve .a as extension for shared libraries through AIX4.2
8537 # and later when we are not doing run time linking.
8538 library_names_spec='${libname}${release}.a $libname.a'
8539 soname_spec='${libname}${release}${shared_ext}$major'
8541 shlibpath_var=LIBPATH
8546 library_names_spec='$libname.ixlibrary $libname.a'
8547 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8548 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'
8552 library_names_spec='${libname}${shared_ext}'
8553 dynamic_linker="$host_os ld.so"
8554 shlibpath_var=LIBRARY_PATH
8560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8561 soname_spec='${libname}${release}${shared_ext}$major'
8562 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8563 shlibpath_var=LD_LIBRARY_PATH
8564 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8565 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8566 # the default ld.so.conf also contains /usr/contrib/lib and
8567 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8568 # libtool to hard-code these into programs
8571 cygwin* | mingw* | pw32*)
8572 version_type=windows
8577 case $GCC,$host_os in
8578 yes,cygwin* | yes,mingw* | yes,pw32*)
8579 library_names_spec='$libname.dll.a'
8580 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8581 postinstall_cmds='base_file=`basename \${file}`~
8582 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8583 dldir=$destdir/`dirname \$dlpath`~
8584 test -d \$dldir || mkdir -p \$dldir~
8585 $install_prog $dir/$dlname \$dldir/$dlname~
8586 chmod a+x \$dldir/$dlname'
8587 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8588 dlpath=$dir/\$dldll~
8590 shlibpath_overrides_runpath=yes
8594 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8595 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8596 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8599 # MinGW DLLs use traditional 'lib' prefix
8600 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8601 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8602 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8603 # It is most probably a Windows format PATH printed by
8604 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8605 # path with ; separators, and with drive letters. We can handle the
8606 # drive letters (cygwin fileutils understands them), so leave them,
8607 # especially as we might pass files found there to a mingw objdump,
8608 # which wouldn't understand a cygwinified path. Ahh.
8609 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8611 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8615 # pw32 DLLs use 'pw' prefix rather than 'lib'
8616 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8622 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8625 dynamic_linker='Win32 ld.exe'
8626 # FIXME: first we should search . and the directory the executable is in
8630 darwin* | rhapsody*)
8631 dynamic_linker="$host_os dyld"
8635 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8636 soname_spec='${libname}${release}${major}$shared_ext'
8637 shlibpath_overrides_runpath=yes
8638 shlibpath_var=DYLD_LIBRARY_PATH
8639 shrext_cmds='.dylib'
8640 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8641 if test "$GCC" = yes; then
8642 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"`
8644 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8646 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8654 soname_spec='${libname}${release}${shared_ext}$major'
8655 shlibpath_var=LD_LIBRARY_PATH
8666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8667 soname_spec='${libname}${release}${shared_ext}$major'
8668 shlibpath_var=LD_LIBRARY_PATH
8669 shlibpath_overrides_runpath=no
8670 hardcode_into_libs=yes
8671 dynamic_linker='GNU ld.so'
8674 freebsd* | dragonfly*)
8675 # DragonFly does not have aout. When/if they implement a new
8676 # versioning mechanism, adjust this.
8677 if test -x /usr/bin/objformat; then
8678 objformat=`/usr/bin/objformat`
8681 freebsd[123].*) objformat=aout ;;
8685 version_type=freebsd-$objformat
8686 case $version_type in
8688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8693 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8697 shlibpath_var=LD_LIBRARY_PATH
8700 shlibpath_overrides_runpath=yes
8702 freebsd3.[01]* | freebsdelf3.[01]*)
8703 shlibpath_overrides_runpath=yes
8704 hardcode_into_libs=yes
8706 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8707 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8708 shlibpath_overrides_runpath=no
8709 hardcode_into_libs=yes
8711 freebsd*) # from 4.6 on
8712 shlibpath_overrides_runpath=yes
8713 hardcode_into_libs=yes
8722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8723 soname_spec='${libname}${release}${shared_ext}$major'
8724 shlibpath_var=LD_LIBRARY_PATH
8725 hardcode_into_libs=yes
8728 hpux9* | hpux10* | hpux11*)
8729 # Give a soname corresponding to the major version so that dld.sl refuses to
8730 # link against other versions.
8737 hardcode_into_libs=yes
8738 dynamic_linker="$host_os dld.so"
8739 shlibpath_var=LD_LIBRARY_PATH
8740 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8742 soname_spec='${libname}${release}${shared_ext}$major'
8743 if test "X$HPUX_IA64_MODE" = X32; then
8744 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8746 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8748 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8752 hardcode_into_libs=yes
8753 dynamic_linker="$host_os dld.sl"
8754 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8755 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8757 soname_spec='${libname}${release}${shared_ext}$major'
8758 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8759 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8763 dynamic_linker="$host_os dld.sl"
8764 shlibpath_var=SHLIB_PATH
8765 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8767 soname_spec='${libname}${release}${shared_ext}$major'
8770 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8771 postinstall_cmds='chmod 555 $lib'
8778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8779 soname_spec='${libname}${release}${shared_ext}$major'
8780 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8781 shlibpath_var=LD_LIBRARY_PATH
8782 shlibpath_overrides_runpath=no
8783 hardcode_into_libs=yes
8786 irix5* | irix6* | nonstopux*)
8788 nonstopux*) version_type=nonstopux ;;
8790 if test "$lt_cv_prog_gnu_ld" = yes; then
8798 soname_spec='${libname}${release}${shared_ext}$major'
8799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8801 irix5* | nonstopux*)
8805 case $LD in # libtool.m4 will add one of these switches to LD
8806 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8807 libsuff= shlibsuff= libmagic=32-bit;;
8808 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8809 libsuff=32 shlibsuff=N32 libmagic=N32;;
8810 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8811 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8812 *) libsuff= shlibsuff= libmagic=never-match;;
8816 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8817 shlibpath_overrides_runpath=no
8818 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8819 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8820 hardcode_into_libs=yes
8823 # No shared lib support for Linux oldld, aout, or coff.
8824 linux*oldld* | linux*aout* | linux*coff*)
8828 # This must be Linux ELF.
8833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8834 soname_spec='${libname}${release}${shared_ext}$major'
8835 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8836 shlibpath_var=LD_LIBRARY_PATH
8837 shlibpath_overrides_runpath=no
8838 # This implies no fast_install, which is unacceptable.
8839 # Some rework will be needed to allow for fast_install
8840 # before this can be enabled.
8841 hardcode_into_libs=yes
8843 # Append ld.so.conf contents to the search path
8844 if test -f /etc/ld.so.conf; then
8845 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' ' '`
8846 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8849 # We used to test for /lib/ld.so.1 and disable shared libraries on
8850 # powerpc, because MkLinux only supported shared libraries with the
8851 # GNU dynamic linker. Since this was broken with cross compilers,
8852 # most powerpc-linux boxes support dynamic linking these days and
8853 # people can always --disable-shared, the test was removed, and we
8854 # assume the GNU/Linux dynamic linker is in use.
8855 dynamic_linker='GNU/Linux ld.so'
8862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8863 soname_spec='${libname}${release}${shared_ext}$major'
8864 shlibpath_var=LD_LIBRARY_PATH
8865 shlibpath_overrides_runpath=no
8866 hardcode_into_libs=yes
8867 dynamic_linker='GNU ld.so'
8874 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8876 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8877 dynamic_linker='NetBSD (a.out) ld.so'
8879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8880 soname_spec='${libname}${release}${shared_ext}$major'
8881 dynamic_linker='NetBSD ld.elf_so'
8883 shlibpath_var=LD_LIBRARY_PATH
8884 shlibpath_overrides_runpath=yes
8885 hardcode_into_libs=yes
8890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8891 shlibpath_var=LD_LIBRARY_PATH
8892 shlibpath_overrides_runpath=yes
8899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8900 soname_spec='${libname}${release}${shared_ext}$major'
8901 shlibpath_var=LD_LIBRARY_PATH
8902 shlibpath_overrides_runpath=yes
8907 sys_lib_dlsearch_path_spec="/usr/lib"
8909 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8911 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8912 *) need_version=no ;;
8914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8915 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8916 shlibpath_var=LD_LIBRARY_PATH
8917 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8919 openbsd2.[89] | openbsd2.[89].*)
8920 shlibpath_overrides_runpath=no
8923 shlibpath_overrides_runpath=yes
8927 shlibpath_overrides_runpath=yes
8932 libname_spec='$name'
8935 library_names_spec='$libname${shared_ext} $libname.a'
8936 dynamic_linker='OS/2 ld.exe'
8937 shlibpath_var=LIBPATH
8940 osf3* | osf4* | osf5*)
8944 soname_spec='${libname}${release}${shared_ext}$major'
8945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8946 shlibpath_var=LD_LIBRARY_PATH
8947 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8948 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8956 soname_spec='${libname}${release}${shared_ext}$major'
8957 shlibpath_var=LD_LIBRARY_PATH
8958 shlibpath_overrides_runpath=yes
8959 hardcode_into_libs=yes
8960 # ldd complains unless libraries are executable
8961 postinstall_cmds='chmod +x $lib'
8966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8967 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8968 shlibpath_var=LD_LIBRARY_PATH
8969 shlibpath_overrides_runpath=yes
8970 if test "$with_gnu_ld" = yes; then
8978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8979 soname_spec='${libname}${release}${shared_ext}$major'
8980 shlibpath_var=LD_LIBRARY_PATH
8981 case $host_vendor in
8983 shlibpath_overrides_runpath=no
8985 export_dynamic_flag_spec='${wl}-Blargedynsym'
8986 runpath_var=LD_RUN_PATH
8994 shlibpath_overrides_runpath=no
8995 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9001 if test -d /usr/nec ;then
9003 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9004 soname_spec='$libname${shared_ext}.$major'
9005 shlibpath_var=LD_LIBRARY_PATH
9009 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9010 version_type=freebsd-elf
9013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9014 soname_spec='${libname}${release}${shared_ext}$major'
9015 shlibpath_var=LD_LIBRARY_PATH
9016 hardcode_into_libs=yes
9017 if test "$with_gnu_ld" = yes; then
9018 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9019 shlibpath_overrides_runpath=no
9021 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9022 shlibpath_overrides_runpath=yes
9025 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9029 sys_lib_dlsearch_path_spec='/usr/lib'
9034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9035 soname_spec='${libname}${release}${shared_ext}$major'
9036 shlibpath_var=LD_LIBRARY_PATH
9043 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9044 echo "${ECHO_T}$dynamic_linker" >&6; }
9045 test "$dynamic_linker" = no && can_build_shared=no
9047 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9048 if test "$GCC" = yes; then
9049 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9053 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9054 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9055 if test "${libltdl_cv_shlibext+set}" = set; then
9056 echo $ECHO_N "(cached) $ECHO_C" >&6
9060 eval libltdl_cv_shlibext=$shrext_cmds
9063 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9064 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9065 if test -n "$libltdl_cv_shlibext"; then
9067 cat >>confdefs.h <<_ACEOF
9068 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9074 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9075 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9076 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9077 echo $ECHO_N "(cached) $ECHO_C" >&6
9079 libltdl_cv_shlibpath_var="$shlibpath_var"
9081 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9082 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9083 if test -n "$libltdl_cv_shlibpath_var"; then
9085 cat >>confdefs.h <<_ACEOF
9086 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9092 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9093 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9094 if test "${libltdl_cv_sys_search_path+set}" = set; then
9095 echo $ECHO_N "(cached) $ECHO_C" >&6
9097 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9099 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9100 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9101 if test -n "$libltdl_cv_sys_search_path"; then
9103 for dir in $libltdl_cv_sys_search_path; do
9104 if test -z "$sys_search_path"; then
9105 sys_search_path="$dir"
9107 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9111 cat >>confdefs.h <<_ACEOF
9112 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9117 { echo "$as_me:$LINENO: checking for objdir" >&5
9118 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9119 if test "${libltdl_cv_objdir+set}" = set; then
9120 echo $ECHO_N "(cached) $ECHO_C" >&6
9122 libltdl_cv_objdir="$objdir"
9123 if test -n "$objdir"; then
9126 rm -f .libs 2>/dev/null
9127 mkdir .libs 2>/dev/null
9128 if test -d .libs; then
9129 libltdl_cv_objdir=.libs
9131 # MS-DOS does not allow filenames that begin with a dot.
9132 libltdl_cv_objdir=_libs
9134 rmdir .libs 2>/dev/null
9138 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9139 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9141 cat >>confdefs.h <<_ACEOF
9142 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9150 # Check for command to grab the raw symbol name followed by C symbol from nm.
9151 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9152 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9153 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9154 echo $ECHO_N "(cached) $ECHO_C" >&6
9157 # These are sane defaults that work on at least a few old systems.
9158 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9160 # Character class describing NM global symbol codes.
9161 symcode='[BCDEGRST]'
9163 # Regexp to match symbols that can be accessed directly from C.
9164 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9166 # Transform an extracted symbol line into a proper C declaration
9167 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9169 # Transform an extracted symbol line into symbol name and symbol address
9170 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'"
9172 # Define system-specific variables.
9177 cygwin* | mingw* | pw32*)
9178 symcode='[ABCDGISTW]'
9180 hpux*) # Its linker distinguishes data from code symbols
9181 if test "$host_cpu" = ia64; then
9182 symcode='[ABCDEGRST]'
9184 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9185 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'"
9188 if test "$host_cpu" = ia64; then
9189 symcode='[ABCDGIRSTW]'
9190 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9191 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'"
9195 symcode='[BCDEGRST]'
9198 symcode='[BCDEGQRST]'
9209 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9217 # Handle CRLF in mingw tool chain
9221 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9225 # If we're using GNU nm, then use its standard symbol codes.
9226 case `$NM -V 2>&1` in
9227 *GNU* | *'with BFD'*)
9228 symcode='[ABCDGIRSTW]' ;;
9231 # Try without a prefix undercore, then with it.
9232 for ac_symprfx in "" "_"; do
9234 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9235 symxfrm="\\1 $ac_symprfx\\2 \\2"
9237 # Write the raw and C identifiers.
9238 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9240 # Check to see that the pipe works correctly.
9244 cat > conftest.$ac_ext <<EOF
9249 void nm_test_func(){}
9253 int main(){nm_test_var='a';nm_test_func();return(0);}
9256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9257 (eval $ac_compile) 2>&5
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); }; then
9261 # Now try to grab the symbols.
9263 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9264 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 (exit $ac_status); } && test -s "$nlist"; then
9268 # Try sorting and uniquifying the output.
9269 if sort "$nlist" | uniq > "$nlist"T; then
9270 mv -f "$nlist"T "$nlist"
9275 # Make sure that we snagged all the symbols we need.
9276 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9277 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9278 cat <<EOF > conftest.$ac_ext
9284 # Now generate the symbol file.
9285 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9287 cat <<EOF >> conftest.$ac_ext
9288 #if defined (__STDC__) && __STDC__
9289 # define lt_ptr_t void *
9291 # define lt_ptr_t char *
9295 /* The mapping between symbol names and symbols. */
9300 lt_preloaded_symbols[] =
9303 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9304 cat <<\EOF >> conftest.$ac_ext
9312 # Now try linking the two files.
9313 mv conftest.$ac_objext conftstm.$ac_objext
9314 lt_save_LIBS="$LIBS"
9315 lt_save_CFLAGS="$CFLAGS"
9316 LIBS="conftstm.$ac_objext"
9317 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9319 (eval $ac_link) 2>&5
9321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9325 LIBS="$lt_save_LIBS"
9326 CFLAGS="$lt_save_CFLAGS"
9328 echo "cannot find nm_test_func in $nlist" >&5
9331 echo "cannot find nm_test_var in $nlist" >&5
9334 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9337 echo "$progname: failed program was:" >&5
9338 cat conftest.$ac_ext >&5
9340 rm -f conftest* conftst*
9342 # Do not use the global_symbol_pipe unless it works.
9343 if test "$pipe_works" = yes; then
9346 lt_cv_sys_global_symbol_pipe=
9352 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9353 lt_cv_sys_global_symbol_to_cdecl=
9355 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9356 { echo "$as_me:$LINENO: result: failed" >&5
9357 echo "${ECHO_T}failed" >&6; }
9359 { echo "$as_me:$LINENO: result: ok" >&5
9360 echo "${ECHO_T}ok" >&6; }
9364 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9365 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9366 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9367 echo $ECHO_N "(cached) $ECHO_C" >&6
9369 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9370 libltdl_cv_preloaded_symbols=yes
9372 libltdl_cv_preloaded_symbols=no
9376 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9377 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9378 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9380 cat >>confdefs.h <<\_ACEOF
9381 #define HAVE_PRELOADED_SYMBOLS 1
9389 ac_cpp='$CPP $CPPFLAGS'
9390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9395 { echo "$as_me:$LINENO: checking for shl_load" >&5
9396 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9397 if test "${ac_cv_func_shl_load+set}" = set; then
9398 echo $ECHO_N "(cached) $ECHO_C" >&6
9400 cat >conftest.$ac_ext <<_ACEOF
9403 cat confdefs.h >>conftest.$ac_ext
9404 cat >>conftest.$ac_ext <<_ACEOF
9405 /* end confdefs.h. */
9406 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9407 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9408 #define shl_load innocuous_shl_load
9410 /* System header to define __stub macros and hopefully few prototypes,
9411 which can conflict with char shl_load (); below.
9412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9413 <limits.h> exists even on freestanding compilers. */
9416 # include <limits.h>
9418 # include <assert.h>
9423 /* Override any GCC internal prototype to avoid an error.
9424 Use char because int might match the return type of a GCC
9425 builtin and then its argument prototype would still apply. */
9430 /* The GNU C library defines this for functions which it implements
9431 to always fail with ENOSYS. Some functions are actually named
9432 something starting with __ and the normal name is an alias. */
9433 #if defined __stub_shl_load || defined __stub___shl_load
9445 rm -f conftest.$ac_objext conftest$ac_exeext
9446 if { (ac_try="$ac_link"
9448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9449 *) ac_try_echo=$ac_try;;
9451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9452 (eval "$ac_link") 2>conftest.er1
9454 grep -v '^ *+' conftest.er1 >conftest.err
9456 cat conftest.err >&5
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); } &&
9459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9460 { (case "(($ac_try" in
9461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9462 *) ac_try_echo=$ac_try;;
9464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9465 (eval "$ac_try") 2>&5
9467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468 (exit $ac_status); }; } &&
9469 { ac_try='test -s conftest$ac_exeext'
9470 { (case "(($ac_try" in
9471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9472 *) ac_try_echo=$ac_try;;
9474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9475 (eval "$ac_try") 2>&5
9477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478 (exit $ac_status); }; }; then
9479 ac_cv_func_shl_load=yes
9481 echo "$as_me: failed program was:" >&5
9482 sed 's/^/| /' conftest.$ac_ext >&5
9484 ac_cv_func_shl_load=no
9487 rm -f core conftest.err conftest.$ac_objext \
9488 conftest$ac_exeext conftest.$ac_ext
9490 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9491 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9492 if test $ac_cv_func_shl_load = yes; then
9494 cat >>confdefs.h <<\_ACEOF
9495 #define HAVE_SHL_LOAD 1
9499 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9500 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9501 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9502 echo $ECHO_N "(cached) $ECHO_C" >&6
9504 ac_check_lib_save_LIBS=$LIBS
9506 cat >conftest.$ac_ext <<_ACEOF
9509 cat confdefs.h >>conftest.$ac_ext
9510 cat >>conftest.$ac_ext <<_ACEOF
9511 /* end confdefs.h. */
9513 /* Override any GCC internal prototype to avoid an error.
9514 Use char because int might match the return type of a GCC
9515 builtin and then its argument prototype would still apply. */
9528 rm -f conftest.$ac_objext conftest$ac_exeext
9529 if { (ac_try="$ac_link"
9531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9532 *) ac_try_echo=$ac_try;;
9534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9535 (eval "$ac_link") 2>conftest.er1
9537 grep -v '^ *+' conftest.er1 >conftest.err
9539 cat conftest.err >&5
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); } &&
9542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9543 { (case "(($ac_try" in
9544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9545 *) ac_try_echo=$ac_try;;
9547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9548 (eval "$ac_try") 2>&5
9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 (exit $ac_status); }; } &&
9552 { ac_try='test -s conftest$ac_exeext'
9553 { (case "(($ac_try" in
9554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9555 *) ac_try_echo=$ac_try;;
9557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9558 (eval "$ac_try") 2>&5
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); }; }; then
9562 ac_cv_lib_dld_shl_load=yes
9564 echo "$as_me: failed program was:" >&5
9565 sed 's/^/| /' conftest.$ac_ext >&5
9567 ac_cv_lib_dld_shl_load=no
9570 rm -f core conftest.err conftest.$ac_objext \
9571 conftest$ac_exeext conftest.$ac_ext
9572 LIBS=$ac_check_lib_save_LIBS
9574 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9575 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9576 if test $ac_cv_lib_dld_shl_load = yes; then
9578 cat >>confdefs.h <<\_ACEOF
9579 #define HAVE_SHL_LOAD 1
9582 LIBADD_DL="$LIBADD_DL -ldld"
9584 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9585 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9586 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9587 echo $ECHO_N "(cached) $ECHO_C" >&6
9589 ac_check_lib_save_LIBS=$LIBS
9591 cat >conftest.$ac_ext <<_ACEOF
9594 cat confdefs.h >>conftest.$ac_ext
9595 cat >>conftest.$ac_ext <<_ACEOF
9596 /* end confdefs.h. */
9598 /* Override any GCC internal prototype to avoid an error.
9599 Use char because int might match the return type of a GCC
9600 builtin and then its argument prototype would still apply. */
9613 rm -f conftest.$ac_objext conftest$ac_exeext
9614 if { (ac_try="$ac_link"
9616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9617 *) ac_try_echo=$ac_try;;
9619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9620 (eval "$ac_link") 2>conftest.er1
9622 grep -v '^ *+' conftest.er1 >conftest.err
9624 cat conftest.err >&5
9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 (exit $ac_status); } &&
9627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9628 { (case "(($ac_try" in
9629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9630 *) ac_try_echo=$ac_try;;
9632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9633 (eval "$ac_try") 2>&5
9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636 (exit $ac_status); }; } &&
9637 { ac_try='test -s conftest$ac_exeext'
9638 { (case "(($ac_try" in
9639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9640 *) ac_try_echo=$ac_try;;
9642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9643 (eval "$ac_try") 2>&5
9645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646 (exit $ac_status); }; }; then
9647 ac_cv_lib_dl_dlopen=yes
9649 echo "$as_me: failed program was:" >&5
9650 sed 's/^/| /' conftest.$ac_ext >&5
9652 ac_cv_lib_dl_dlopen=no
9655 rm -f core conftest.err conftest.$ac_objext \
9656 conftest$ac_exeext conftest.$ac_ext
9657 LIBS=$ac_check_lib_save_LIBS
9659 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9660 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9661 if test $ac_cv_lib_dl_dlopen = yes; then
9663 cat >>confdefs.h <<\_ACEOF
9664 #define HAVE_LIBDL 1
9667 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9669 cat >conftest.$ac_ext <<_ACEOF
9672 cat confdefs.h >>conftest.$ac_ext
9673 cat >>conftest.$ac_ext <<_ACEOF
9674 /* end confdefs.h. */
9687 rm -f conftest.$ac_objext conftest$ac_exeext
9688 if { (ac_try="$ac_link"
9690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9691 *) ac_try_echo=$ac_try;;
9693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9694 (eval "$ac_link") 2>conftest.er1
9696 grep -v '^ *+' conftest.er1 >conftest.err
9698 cat conftest.err >&5
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 (exit $ac_status); } &&
9701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9702 { (case "(($ac_try" in
9703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9704 *) ac_try_echo=$ac_try;;
9706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9707 (eval "$ac_try") 2>&5
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); }; } &&
9711 { ac_try='test -s conftest$ac_exeext'
9712 { (case "(($ac_try" in
9713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9714 *) ac_try_echo=$ac_try;;
9716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9717 (eval "$ac_try") 2>&5
9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720 (exit $ac_status); }; }; then
9722 cat >>confdefs.h <<\_ACEOF
9723 #define HAVE_LIBDL 1
9725 libltdl_cv_func_dlopen="yes"
9727 echo "$as_me: failed program was:" >&5
9728 sed 's/^/| /' conftest.$ac_ext >&5
9730 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9731 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9732 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9733 echo $ECHO_N "(cached) $ECHO_C" >&6
9735 ac_check_lib_save_LIBS=$LIBS
9737 cat >conftest.$ac_ext <<_ACEOF
9740 cat confdefs.h >>conftest.$ac_ext
9741 cat >>conftest.$ac_ext <<_ACEOF
9742 /* end confdefs.h. */
9744 /* Override any GCC internal prototype to avoid an error.
9745 Use char because int might match the return type of a GCC
9746 builtin and then its argument prototype would still apply. */
9759 rm -f conftest.$ac_objext conftest$ac_exeext
9760 if { (ac_try="$ac_link"
9762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9763 *) ac_try_echo=$ac_try;;
9765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9766 (eval "$ac_link") 2>conftest.er1
9768 grep -v '^ *+' conftest.er1 >conftest.err
9770 cat conftest.err >&5
9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); } &&
9773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9774 { (case "(($ac_try" in
9775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9776 *) ac_try_echo=$ac_try;;
9778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9779 (eval "$ac_try") 2>&5
9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); }; } &&
9783 { ac_try='test -s conftest$ac_exeext'
9784 { (case "(($ac_try" in
9785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9786 *) ac_try_echo=$ac_try;;
9788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9789 (eval "$ac_try") 2>&5
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); }; }; then
9793 ac_cv_lib_svld_dlopen=yes
9795 echo "$as_me: failed program was:" >&5
9796 sed 's/^/| /' conftest.$ac_ext >&5
9798 ac_cv_lib_svld_dlopen=no
9801 rm -f core conftest.err conftest.$ac_objext \
9802 conftest$ac_exeext conftest.$ac_ext
9803 LIBS=$ac_check_lib_save_LIBS
9805 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9806 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9807 if test $ac_cv_lib_svld_dlopen = yes; then
9809 cat >>confdefs.h <<\_ACEOF
9810 #define HAVE_LIBDL 1
9813 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9815 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9816 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9817 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9818 echo $ECHO_N "(cached) $ECHO_C" >&6
9820 ac_check_lib_save_LIBS=$LIBS
9822 cat >conftest.$ac_ext <<_ACEOF
9825 cat confdefs.h >>conftest.$ac_ext
9826 cat >>conftest.$ac_ext <<_ACEOF
9827 /* end confdefs.h. */
9829 /* Override any GCC internal prototype to avoid an error.
9830 Use char because int might match the return type of a GCC
9831 builtin and then its argument prototype would still apply. */
9844 rm -f conftest.$ac_objext conftest$ac_exeext
9845 if { (ac_try="$ac_link"
9847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848 *) ac_try_echo=$ac_try;;
9850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9851 (eval "$ac_link") 2>conftest.er1
9853 grep -v '^ *+' conftest.er1 >conftest.err
9855 cat conftest.err >&5
9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); } &&
9858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9859 { (case "(($ac_try" in
9860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9861 *) ac_try_echo=$ac_try;;
9863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9864 (eval "$ac_try") 2>&5
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); }; } &&
9868 { ac_try='test -s conftest$ac_exeext'
9869 { (case "(($ac_try" in
9870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9871 *) ac_try_echo=$ac_try;;
9873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9874 (eval "$ac_try") 2>&5
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); }; }; then
9878 ac_cv_lib_dld_dld_link=yes
9880 echo "$as_me: failed program was:" >&5
9881 sed 's/^/| /' conftest.$ac_ext >&5
9883 ac_cv_lib_dld_dld_link=no
9886 rm -f core conftest.err conftest.$ac_objext \
9887 conftest$ac_exeext conftest.$ac_ext
9888 LIBS=$ac_check_lib_save_LIBS
9890 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9891 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9892 if test $ac_cv_lib_dld_dld_link = yes; then
9894 cat >>confdefs.h <<\_ACEOF
9898 LIBADD_DL="$LIBADD_DL -ldld"
9900 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9901 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9902 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9903 echo $ECHO_N "(cached) $ECHO_C" >&6
9905 cat >conftest.$ac_ext <<_ACEOF
9908 cat confdefs.h >>conftest.$ac_ext
9909 cat >>conftest.$ac_ext <<_ACEOF
9910 /* end confdefs.h. */
9911 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9913 #define _dyld_func_lookup innocuous__dyld_func_lookup
9915 /* System header to define __stub macros and hopefully few prototypes,
9916 which can conflict with char _dyld_func_lookup (); below.
9917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9918 <limits.h> exists even on freestanding compilers. */
9921 # include <limits.h>
9923 # include <assert.h>
9926 #undef _dyld_func_lookup
9928 /* Override any GCC internal prototype to avoid an error.
9929 Use char because int might match the return type of a GCC
9930 builtin and then its argument prototype would still apply. */
9934 char _dyld_func_lookup ();
9935 /* The GNU C library defines this for functions which it implements
9936 to always fail with ENOSYS. Some functions are actually named
9937 something starting with __ and the normal name is an alias. */
9938 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
9945 return _dyld_func_lookup ();
9950 rm -f conftest.$ac_objext conftest$ac_exeext
9951 if { (ac_try="$ac_link"
9953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9954 *) ac_try_echo=$ac_try;;
9956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9957 (eval "$ac_link") 2>conftest.er1
9959 grep -v '^ *+' conftest.er1 >conftest.err
9961 cat conftest.err >&5
9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963 (exit $ac_status); } &&
9964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9965 { (case "(($ac_try" in
9966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9967 *) ac_try_echo=$ac_try;;
9969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9970 (eval "$ac_try") 2>&5
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); }; } &&
9974 { ac_try='test -s conftest$ac_exeext'
9975 { (case "(($ac_try" in
9976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9977 *) ac_try_echo=$ac_try;;
9979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9980 (eval "$ac_try") 2>&5
9982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983 (exit $ac_status); }; }; then
9984 ac_cv_func__dyld_func_lookup=yes
9986 echo "$as_me: failed program was:" >&5
9987 sed 's/^/| /' conftest.$ac_ext >&5
9989 ac_cv_func__dyld_func_lookup=no
9992 rm -f core conftest.err conftest.$ac_objext \
9993 conftest$ac_exeext conftest.$ac_ext
9995 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
9996 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
9997 if test $ac_cv_func__dyld_func_lookup = yes; then
9999 cat >>confdefs.h <<\_ACEOF
10000 #define HAVE_DYLD 1
10014 rm -f core conftest.err conftest.$ac_objext \
10015 conftest$ac_exeext conftest.$ac_ext
10026 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10028 lt_save_LIBS="$LIBS"
10029 LIBS="$LIBS $LIBADD_DL"
10031 for ac_func in dlerror
10033 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10034 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10036 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10037 echo $ECHO_N "(cached) $ECHO_C" >&6
10039 cat >conftest.$ac_ext <<_ACEOF
10042 cat confdefs.h >>conftest.$ac_ext
10043 cat >>conftest.$ac_ext <<_ACEOF
10044 /* end confdefs.h. */
10045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10047 #define $ac_func innocuous_$ac_func
10049 /* System header to define __stub macros and hopefully few prototypes,
10050 which can conflict with char $ac_func (); below.
10051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10052 <limits.h> exists even on freestanding compilers. */
10055 # include <limits.h>
10057 # include <assert.h>
10062 /* Override any GCC internal prototype to avoid an error.
10063 Use char because int might match the return type of a GCC
10064 builtin and then its argument prototype would still apply. */
10069 /* The GNU C library defines this for functions which it implements
10070 to always fail with ENOSYS. Some functions are actually named
10071 something starting with __ and the normal name is an alias. */
10072 #if defined __stub_$ac_func || defined __stub___$ac_func
10079 return $ac_func ();
10084 rm -f conftest.$ac_objext conftest$ac_exeext
10085 if { (ac_try="$ac_link"
10086 case "(($ac_try" in
10087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10088 *) ac_try_echo=$ac_try;;
10090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10091 (eval "$ac_link") 2>conftest.er1
10093 grep -v '^ *+' conftest.er1 >conftest.err
10095 cat conftest.err >&5
10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); } &&
10098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10099 { (case "(($ac_try" in
10100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10101 *) ac_try_echo=$ac_try;;
10103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10104 (eval "$ac_try") 2>&5
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); }; } &&
10108 { ac_try='test -s conftest$ac_exeext'
10109 { (case "(($ac_try" in
10110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10111 *) ac_try_echo=$ac_try;;
10113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10114 (eval "$ac_try") 2>&5
10116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117 (exit $ac_status); }; }; then
10118 eval "$as_ac_var=yes"
10120 echo "$as_me: failed program was:" >&5
10121 sed 's/^/| /' conftest.$ac_ext >&5
10123 eval "$as_ac_var=no"
10126 rm -f core conftest.err conftest.$ac_objext \
10127 conftest$ac_exeext conftest.$ac_ext
10129 ac_res=`eval echo '${'$as_ac_var'}'`
10130 { echo "$as_me:$LINENO: result: $ac_res" >&5
10131 echo "${ECHO_T}$ac_res" >&6; }
10132 if test `eval echo '${'$as_ac_var'}'` = yes; then
10133 cat >>confdefs.h <<_ACEOF
10134 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10140 LIBS="$lt_save_LIBS"
10143 ac_cpp='$CPP $CPPFLAGS'
10144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10150 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10151 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10152 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10153 echo $ECHO_N "(cached) $ECHO_C" >&6
10155 ac_cv_sys_symbol_underscore=no
10156 cat > conftest.$ac_ext <<EOF
10157 void nm_test_func(){}
10158 int main(){nm_test_func;return 0;}
10160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10161 (eval $ac_compile) 2>&5
10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); }; then
10165 # Now try to grab the symbols.
10166 ac_nlist=conftest.nm
10167 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10168 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); } && test -s "$ac_nlist"; then
10172 # See whether the symbols have a leading underscore.
10173 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10174 ac_cv_sys_symbol_underscore=yes
10176 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10179 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10183 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10186 echo "configure: failed program was:" >&5
10192 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10193 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10196 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10197 if test x"$libltdl_cv_func_dlopen" = xyes ||
10198 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10199 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10200 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10201 if test "${libltdl_cv_need_uscore+set}" = set; then
10202 echo $ECHO_N "(cached) $ECHO_C" >&6
10204 libltdl_cv_need_uscore=unknown
10206 LIBS="$LIBS $LIBADD_DL"
10207 if test "$cross_compiling" = yes; then :
10208 libltdl_cv_need_uscore=cross
10210 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10211 lt_status=$lt_dlunknown
10212 cat > conftest.$ac_ext <<EOF
10213 #line 10213 "configure"
10214 #include "confdefs.h"
10223 # define LT_DLGLOBAL RTLD_GLOBAL
10226 # define LT_DLGLOBAL DL_GLOBAL
10228 # define LT_DLGLOBAL 0
10232 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10233 find out it does not work in some platform. */
10234 #ifndef LT_DLLAZY_OR_NOW
10236 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10239 # define LT_DLLAZY_OR_NOW DL_LAZY
10242 # define LT_DLLAZY_OR_NOW RTLD_NOW
10245 # define LT_DLLAZY_OR_NOW DL_NOW
10247 # define LT_DLLAZY_OR_NOW 0
10255 extern "C" void exit (int);
10258 void fnord() { int i=42;}
10261 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10262 int status = $lt_dlunknown;
10266 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10267 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10268 /* dlclose (self); */
10276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10277 (eval $ac_link) 2>&5
10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10281 (./conftest; exit; ) >&5 2>/dev/null
10283 case x$lt_status in
10284 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10285 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10286 x$lt_dlunknown|x*) ;;
10289 # compilation failed
10298 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10299 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10303 if test x"$libltdl_cv_need_uscore" = xyes; then
10305 cat >>confdefs.h <<\_ACEOF
10306 #define NEED_USCORE 1
10312 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10313 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10314 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10315 echo $ECHO_N "(cached) $ECHO_C" >&6
10317 # PORTME does your system automatically load deplibs for dlopen?
10318 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10319 # For now, we just catch OSes we know something about -- in the
10320 # future, we'll try test this programmatically.
10321 libltdl_cv_sys_dlopen_deplibs=unknown
10323 aix3*|aix4.1.*|aix4.2.*)
10324 # Unknown whether this is true for these versions of AIX, but
10325 # we want this `case' here to explicitly catch those versions.
10326 libltdl_cv_sys_dlopen_deplibs=unknown
10329 libltdl_cv_sys_dlopen_deplibs=yes
10332 # Assuming the user has installed a libdl from somewhere, this is true
10333 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10334 libltdl_cv_sys_dlopen_deplibs=yes
10336 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10337 # GNU and its variants, using gnu ld.so (Glibc)
10338 libltdl_cv_sys_dlopen_deplibs=yes
10341 libltdl_cv_sys_dlopen_deplibs=yes
10344 libltdl_cv_sys_dlopen_deplibs=yes
10346 irix[12345]*|irix6.[01]*)
10347 # Catch all versions of IRIX before 6.2, and indicate that we don't
10348 # know how it worked for any of those versions.
10349 libltdl_cv_sys_dlopen_deplibs=unknown
10352 # The case above catches anything before 6.2, and it's known that
10353 # at 6.2 and later dlopen does load deplibs.
10354 libltdl_cv_sys_dlopen_deplibs=yes
10357 libltdl_cv_sys_dlopen_deplibs=yes
10360 libltdl_cv_sys_dlopen_deplibs=yes
10363 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10364 # it did *not* use an RPATH in a shared library to find objects the
10365 # library depends on, so we explicitly say `no'.
10366 libltdl_cv_sys_dlopen_deplibs=no
10368 osf5.0|osf5.0a|osf5.1)
10369 # dlopen *does* load deplibs and with the right loader patch applied
10370 # it even uses RPATH in a shared library to search for shared objects
10371 # that the library depends on, but there's no easy way to know if that
10372 # patch is installed. Since this is the case, all we can really
10373 # say is unknown -- it depends on the patch being installed. If
10374 # it is, this changes to `yes'. Without it, it would be `no'.
10375 libltdl_cv_sys_dlopen_deplibs=unknown
10378 # the two cases above should catch all versions of osf <= 5.1. Read
10379 # the comments above for what we know about them.
10380 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10381 # is used to find them so we can finally say `yes'.
10382 libltdl_cv_sys_dlopen_deplibs=yes
10385 libltdl_cv_sys_dlopen_deplibs=yes
10387 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10388 libltdl_cv_sys_dlopen_deplibs=yes
10393 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10394 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10395 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10397 cat >>confdefs.h <<\_ACEOF
10398 #define LTDL_DLOPEN_DEPLIBS 1
10404 for ac_header in argz.h
10406 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10408 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10411 echo $ECHO_N "(cached) $ECHO_C" >&6
10413 ac_res=`eval echo '${'$as_ac_Header'}'`
10414 { echo "$as_me:$LINENO: result: $ac_res" >&5
10415 echo "${ECHO_T}$ac_res" >&6; }
10417 # Is the header compilable?
10418 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10419 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10420 cat >conftest.$ac_ext <<_ACEOF
10423 cat confdefs.h >>conftest.$ac_ext
10424 cat >>conftest.$ac_ext <<_ACEOF
10425 /* end confdefs.h. */
10426 $ac_includes_default
10427 #include <$ac_header>
10429 rm -f conftest.$ac_objext
10430 if { (ac_try="$ac_compile"
10431 case "(($ac_try" in
10432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10433 *) ac_try_echo=$ac_try;;
10435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10436 (eval "$ac_compile") 2>conftest.er1
10438 grep -v '^ *+' conftest.er1 >conftest.err
10440 cat conftest.err >&5
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); } &&
10443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10444 { (case "(($ac_try" in
10445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10446 *) ac_try_echo=$ac_try;;
10448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10449 (eval "$ac_try") 2>&5
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); }; } &&
10453 { ac_try='test -s conftest.$ac_objext'
10454 { (case "(($ac_try" in
10455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10456 *) ac_try_echo=$ac_try;;
10458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10459 (eval "$ac_try") 2>&5
10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462 (exit $ac_status); }; }; then
10463 ac_header_compiler=yes
10465 echo "$as_me: failed program was:" >&5
10466 sed 's/^/| /' conftest.$ac_ext >&5
10468 ac_header_compiler=no
10471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10472 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10473 echo "${ECHO_T}$ac_header_compiler" >&6; }
10475 # Is the header present?
10476 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10477 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10478 cat >conftest.$ac_ext <<_ACEOF
10481 cat confdefs.h >>conftest.$ac_ext
10482 cat >>conftest.$ac_ext <<_ACEOF
10483 /* end confdefs.h. */
10484 #include <$ac_header>
10486 if { (ac_try="$ac_cpp conftest.$ac_ext"
10487 case "(($ac_try" in
10488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10489 *) ac_try_echo=$ac_try;;
10491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10492 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10494 grep -v '^ *+' conftest.er1 >conftest.err
10496 cat conftest.err >&5
10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); } >/dev/null; then
10499 if test -s conftest.err; then
10500 ac_cpp_err=$ac_c_preproc_warn_flag
10501 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10508 if test -z "$ac_cpp_err"; then
10509 ac_header_preproc=yes
10511 echo "$as_me: failed program was:" >&5
10512 sed 's/^/| /' conftest.$ac_ext >&5
10514 ac_header_preproc=no
10517 rm -f conftest.err conftest.$ac_ext
10518 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10519 echo "${ECHO_T}$ac_header_preproc" >&6; }
10521 # So? What about this header?
10522 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10524 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10525 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10527 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10528 ac_header_preproc=yes
10531 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10532 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10533 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10534 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10535 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10536 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10537 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10538 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10540 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10541 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10542 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10544 ## ------------------------------------ ##
10545 ## Report this to http://llvm.org/bugs/ ##
10546 ## ------------------------------------ ##
10548 ) | sed "s/^/$as_me: WARNING: /" >&2
10551 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10554 echo $ECHO_N "(cached) $ECHO_C" >&6
10556 eval "$as_ac_Header=\$ac_header_preproc"
10558 ac_res=`eval echo '${'$as_ac_Header'}'`
10559 { echo "$as_me:$LINENO: result: $ac_res" >&5
10560 echo "${ECHO_T}$ac_res" >&6; }
10563 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10564 cat >>confdefs.h <<_ACEOF
10565 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10573 { echo "$as_me:$LINENO: checking for error_t" >&5
10574 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10575 if test "${ac_cv_type_error_t+set}" = set; then
10576 echo $ECHO_N "(cached) $ECHO_C" >&6
10578 cat >conftest.$ac_ext <<_ACEOF
10581 cat confdefs.h >>conftest.$ac_ext
10582 cat >>conftest.$ac_ext <<_ACEOF
10583 /* end confdefs.h. */
10588 typedef error_t ac__type_new_;
10592 if ((ac__type_new_ *) 0)
10594 if (sizeof (ac__type_new_))
10600 rm -f conftest.$ac_objext
10601 if { (ac_try="$ac_compile"
10602 case "(($ac_try" in
10603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10604 *) ac_try_echo=$ac_try;;
10606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10607 (eval "$ac_compile") 2>conftest.er1
10609 grep -v '^ *+' conftest.er1 >conftest.err
10611 cat conftest.err >&5
10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); } &&
10614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10615 { (case "(($ac_try" in
10616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10617 *) ac_try_echo=$ac_try;;
10619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10620 (eval "$ac_try") 2>&5
10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); }; } &&
10624 { ac_try='test -s conftest.$ac_objext'
10625 { (case "(($ac_try" in
10626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10627 *) ac_try_echo=$ac_try;;
10629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10630 (eval "$ac_try") 2>&5
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); }; }; then
10634 ac_cv_type_error_t=yes
10636 echo "$as_me: failed program was:" >&5
10637 sed 's/^/| /' conftest.$ac_ext >&5
10639 ac_cv_type_error_t=no
10642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10644 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10645 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10646 if test $ac_cv_type_error_t = yes; then
10648 cat >>confdefs.h <<_ACEOF
10649 #define HAVE_ERROR_T 1
10655 cat >>confdefs.h <<\_ACEOF
10656 #define error_t int
10667 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10669 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10670 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10671 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10672 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10673 echo $ECHO_N "(cached) $ECHO_C" >&6
10675 cat >conftest.$ac_ext <<_ACEOF
10678 cat confdefs.h >>conftest.$ac_ext
10679 cat >>conftest.$ac_ext <<_ACEOF
10680 /* end confdefs.h. */
10681 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10682 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10683 #define $ac_func innocuous_$ac_func
10685 /* System header to define __stub macros and hopefully few prototypes,
10686 which can conflict with char $ac_func (); below.
10687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10688 <limits.h> exists even on freestanding compilers. */
10691 # include <limits.h>
10693 # include <assert.h>
10698 /* Override any GCC internal prototype to avoid an error.
10699 Use char because int might match the return type of a GCC
10700 builtin and then its argument prototype would still apply. */
10705 /* The GNU C library defines this for functions which it implements
10706 to always fail with ENOSYS. Some functions are actually named
10707 something starting with __ and the normal name is an alias. */
10708 #if defined __stub_$ac_func || defined __stub___$ac_func
10715 return $ac_func ();
10720 rm -f conftest.$ac_objext conftest$ac_exeext
10721 if { (ac_try="$ac_link"
10722 case "(($ac_try" in
10723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10724 *) ac_try_echo=$ac_try;;
10726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10727 (eval "$ac_link") 2>conftest.er1
10729 grep -v '^ *+' conftest.er1 >conftest.err
10731 cat conftest.err >&5
10732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733 (exit $ac_status); } &&
10734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10735 { (case "(($ac_try" in
10736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10737 *) ac_try_echo=$ac_try;;
10739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10740 (eval "$ac_try") 2>&5
10742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743 (exit $ac_status); }; } &&
10744 { ac_try='test -s conftest$ac_exeext'
10745 { (case "(($ac_try" in
10746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10747 *) ac_try_echo=$ac_try;;
10749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10750 (eval "$ac_try") 2>&5
10752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753 (exit $ac_status); }; }; then
10754 eval "$as_ac_var=yes"
10756 echo "$as_me: failed program was:" >&5
10757 sed 's/^/| /' conftest.$ac_ext >&5
10759 eval "$as_ac_var=no"
10762 rm -f core conftest.err conftest.$ac_objext \
10763 conftest$ac_exeext conftest.$ac_ext
10765 ac_res=`eval echo '${'$as_ac_var'}'`
10766 { echo "$as_me:$LINENO: result: $ac_res" >&5
10767 echo "${ECHO_T}$ac_res" >&6; }
10768 if test `eval echo '${'$as_ac_var'}'` = yes; then
10769 cat >>confdefs.h <<_ACEOF
10770 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10803 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10806 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10807 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10808 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10811 echo $ECHO_N "(cached) $ECHO_C" >&6
10813 ac_res=`eval echo '${'$as_ac_Header'}'`
10814 { echo "$as_me:$LINENO: result: $ac_res" >&5
10815 echo "${ECHO_T}$ac_res" >&6; }
10817 # Is the header compilable?
10818 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10819 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10820 cat >conftest.$ac_ext <<_ACEOF
10823 cat confdefs.h >>conftest.$ac_ext
10824 cat >>conftest.$ac_ext <<_ACEOF
10825 /* end confdefs.h. */
10826 $ac_includes_default
10827 #include <$ac_header>
10829 rm -f conftest.$ac_objext
10830 if { (ac_try="$ac_compile"
10831 case "(($ac_try" in
10832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10833 *) ac_try_echo=$ac_try;;
10835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10836 (eval "$ac_compile") 2>conftest.er1
10838 grep -v '^ *+' conftest.er1 >conftest.err
10840 cat conftest.err >&5
10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); } &&
10843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10844 { (case "(($ac_try" in
10845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10846 *) ac_try_echo=$ac_try;;
10848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10849 (eval "$ac_try") 2>&5
10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); }; } &&
10853 { ac_try='test -s conftest.$ac_objext'
10854 { (case "(($ac_try" in
10855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10856 *) ac_try_echo=$ac_try;;
10858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10859 (eval "$ac_try") 2>&5
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); }; }; then
10863 ac_header_compiler=yes
10865 echo "$as_me: failed program was:" >&5
10866 sed 's/^/| /' conftest.$ac_ext >&5
10868 ac_header_compiler=no
10871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10872 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10873 echo "${ECHO_T}$ac_header_compiler" >&6; }
10875 # Is the header present?
10876 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10877 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10878 cat >conftest.$ac_ext <<_ACEOF
10881 cat confdefs.h >>conftest.$ac_ext
10882 cat >>conftest.$ac_ext <<_ACEOF
10883 /* end confdefs.h. */
10884 #include <$ac_header>
10886 if { (ac_try="$ac_cpp conftest.$ac_ext"
10887 case "(($ac_try" in
10888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10889 *) ac_try_echo=$ac_try;;
10891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10892 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10894 grep -v '^ *+' conftest.er1 >conftest.err
10896 cat conftest.err >&5
10897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898 (exit $ac_status); } >/dev/null; then
10899 if test -s conftest.err; then
10900 ac_cpp_err=$ac_c_preproc_warn_flag
10901 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10908 if test -z "$ac_cpp_err"; then
10909 ac_header_preproc=yes
10911 echo "$as_me: failed program was:" >&5
10912 sed 's/^/| /' conftest.$ac_ext >&5
10914 ac_header_preproc=no
10917 rm -f conftest.err conftest.$ac_ext
10918 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10919 echo "${ECHO_T}$ac_header_preproc" >&6; }
10921 # So? What about this header?
10922 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10924 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10925 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10927 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10928 ac_header_preproc=yes
10931 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10932 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10933 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10934 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10935 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10936 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10937 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10938 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10940 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10941 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10942 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10944 ## ------------------------------------ ##
10945 ## Report this to http://llvm.org/bugs/ ##
10946 ## ------------------------------------ ##
10948 ) | sed "s/^/$as_me: WARNING: /" >&2
10951 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10954 echo $ECHO_N "(cached) $ECHO_C" >&6
10956 eval "$as_ac_Header=\$ac_header_preproc"
10958 ac_res=`eval echo '${'$as_ac_Header'}'`
10959 { echo "$as_me:$LINENO: result: $ac_res" >&5
10960 echo "${ECHO_T}$ac_res" >&6; }
10963 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10964 cat >>confdefs.h <<_ACEOF
10965 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10976 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
10978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10980 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10983 echo $ECHO_N "(cached) $ECHO_C" >&6
10985 ac_res=`eval echo '${'$as_ac_Header'}'`
10986 { echo "$as_me:$LINENO: result: $ac_res" >&5
10987 echo "${ECHO_T}$ac_res" >&6; }
10989 # Is the header compilable?
10990 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10991 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10992 cat >conftest.$ac_ext <<_ACEOF
10995 cat confdefs.h >>conftest.$ac_ext
10996 cat >>conftest.$ac_ext <<_ACEOF
10997 /* end confdefs.h. */
10998 $ac_includes_default
10999 #include <$ac_header>
11001 rm -f conftest.$ac_objext
11002 if { (ac_try="$ac_compile"
11003 case "(($ac_try" in
11004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11005 *) ac_try_echo=$ac_try;;
11007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11008 (eval "$ac_compile") 2>conftest.er1
11010 grep -v '^ *+' conftest.er1 >conftest.err
11012 cat conftest.err >&5
11013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014 (exit $ac_status); } &&
11015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11016 { (case "(($ac_try" in
11017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11018 *) ac_try_echo=$ac_try;;
11020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11021 (eval "$ac_try") 2>&5
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); }; } &&
11025 { ac_try='test -s conftest.$ac_objext'
11026 { (case "(($ac_try" in
11027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11028 *) ac_try_echo=$ac_try;;
11030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11031 (eval "$ac_try") 2>&5
11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); }; }; then
11035 ac_header_compiler=yes
11037 echo "$as_me: failed program was:" >&5
11038 sed 's/^/| /' conftest.$ac_ext >&5
11040 ac_header_compiler=no
11043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11044 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11045 echo "${ECHO_T}$ac_header_compiler" >&6; }
11047 # Is the header present?
11048 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11049 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11050 cat >conftest.$ac_ext <<_ACEOF
11053 cat confdefs.h >>conftest.$ac_ext
11054 cat >>conftest.$ac_ext <<_ACEOF
11055 /* end confdefs.h. */
11056 #include <$ac_header>
11058 if { (ac_try="$ac_cpp conftest.$ac_ext"
11059 case "(($ac_try" in
11060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11061 *) ac_try_echo=$ac_try;;
11063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11064 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11066 grep -v '^ *+' conftest.er1 >conftest.err
11068 cat conftest.err >&5
11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070 (exit $ac_status); } >/dev/null; then
11071 if test -s conftest.err; then
11072 ac_cpp_err=$ac_c_preproc_warn_flag
11073 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11080 if test -z "$ac_cpp_err"; then
11081 ac_header_preproc=yes
11083 echo "$as_me: failed program was:" >&5
11084 sed 's/^/| /' conftest.$ac_ext >&5
11086 ac_header_preproc=no
11089 rm -f conftest.err conftest.$ac_ext
11090 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11091 echo "${ECHO_T}$ac_header_preproc" >&6; }
11093 # So? What about this header?
11094 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11096 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11097 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11099 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11100 ac_header_preproc=yes
11103 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11104 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11105 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11106 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11107 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11108 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11109 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11110 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11111 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11112 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11113 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11114 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11116 ## ------------------------------------ ##
11117 ## Report this to http://llvm.org/bugs/ ##
11118 ## ------------------------------------ ##
11120 ) | sed "s/^/$as_me: WARNING: /" >&2
11123 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11126 echo $ECHO_N "(cached) $ECHO_C" >&6
11128 eval "$as_ac_Header=\$ac_header_preproc"
11130 ac_res=`eval echo '${'$as_ac_Header'}'`
11131 { echo "$as_me:$LINENO: result: $ac_res" >&5
11132 echo "${ECHO_T}$ac_res" >&6; }
11135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11136 cat >>confdefs.h <<_ACEOF
11137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11146 for ac_header in string.h strings.h
11148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11153 echo $ECHO_N "(cached) $ECHO_C" >&6
11155 ac_res=`eval echo '${'$as_ac_Header'}'`
11156 { echo "$as_me:$LINENO: result: $ac_res" >&5
11157 echo "${ECHO_T}$ac_res" >&6; }
11159 # Is the header compilable?
11160 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11161 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11162 cat >conftest.$ac_ext <<_ACEOF
11165 cat confdefs.h >>conftest.$ac_ext
11166 cat >>conftest.$ac_ext <<_ACEOF
11167 /* end confdefs.h. */
11168 $ac_includes_default
11169 #include <$ac_header>
11171 rm -f conftest.$ac_objext
11172 if { (ac_try="$ac_compile"
11173 case "(($ac_try" in
11174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11175 *) ac_try_echo=$ac_try;;
11177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11178 (eval "$ac_compile") 2>conftest.er1
11180 grep -v '^ *+' conftest.er1 >conftest.err
11182 cat conftest.err >&5
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); } &&
11185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11186 { (case "(($ac_try" in
11187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11188 *) ac_try_echo=$ac_try;;
11190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11191 (eval "$ac_try") 2>&5
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); }; } &&
11195 { ac_try='test -s conftest.$ac_objext'
11196 { (case "(($ac_try" in
11197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11198 *) ac_try_echo=$ac_try;;
11200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11201 (eval "$ac_try") 2>&5
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); }; }; then
11205 ac_header_compiler=yes
11207 echo "$as_me: failed program was:" >&5
11208 sed 's/^/| /' conftest.$ac_ext >&5
11210 ac_header_compiler=no
11213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11214 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11215 echo "${ECHO_T}$ac_header_compiler" >&6; }
11217 # Is the header present?
11218 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11219 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11220 cat >conftest.$ac_ext <<_ACEOF
11223 cat confdefs.h >>conftest.$ac_ext
11224 cat >>conftest.$ac_ext <<_ACEOF
11225 /* end confdefs.h. */
11226 #include <$ac_header>
11228 if { (ac_try="$ac_cpp conftest.$ac_ext"
11229 case "(($ac_try" in
11230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11231 *) ac_try_echo=$ac_try;;
11233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11234 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11236 grep -v '^ *+' conftest.er1 >conftest.err
11238 cat conftest.err >&5
11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); } >/dev/null; then
11241 if test -s conftest.err; then
11242 ac_cpp_err=$ac_c_preproc_warn_flag
11243 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11250 if test -z "$ac_cpp_err"; then
11251 ac_header_preproc=yes
11253 echo "$as_me: failed program was:" >&5
11254 sed 's/^/| /' conftest.$ac_ext >&5
11256 ac_header_preproc=no
11259 rm -f conftest.err conftest.$ac_ext
11260 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11261 echo "${ECHO_T}$ac_header_preproc" >&6; }
11263 # So? What about this header?
11264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11266 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11267 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11269 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11270 ac_header_preproc=yes
11273 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11274 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11275 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11276 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11277 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11278 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11279 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11280 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11282 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11283 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11284 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11286 ## ------------------------------------ ##
11287 ## Report this to http://llvm.org/bugs/ ##
11288 ## ------------------------------------ ##
11290 ) | sed "s/^/$as_me: WARNING: /" >&2
11293 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11296 echo $ECHO_N "(cached) $ECHO_C" >&6
11298 eval "$as_ac_Header=\$ac_header_preproc"
11300 ac_res=`eval echo '${'$as_ac_Header'}'`
11301 { echo "$as_me:$LINENO: result: $ac_res" >&5
11302 echo "${ECHO_T}$ac_res" >&6; }
11305 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11306 cat >>confdefs.h <<_ACEOF
11307 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11317 for ac_func in strchr index
11319 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11320 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11321 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11322 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11323 echo $ECHO_N "(cached) $ECHO_C" >&6
11325 cat >conftest.$ac_ext <<_ACEOF
11328 cat confdefs.h >>conftest.$ac_ext
11329 cat >>conftest.$ac_ext <<_ACEOF
11330 /* end confdefs.h. */
11331 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11332 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11333 #define $ac_func innocuous_$ac_func
11335 /* System header to define __stub macros and hopefully few prototypes,
11336 which can conflict with char $ac_func (); below.
11337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11338 <limits.h> exists even on freestanding compilers. */
11341 # include <limits.h>
11343 # include <assert.h>
11348 /* Override any GCC internal prototype to avoid an error.
11349 Use char because int might match the return type of a GCC
11350 builtin and then its argument prototype would still apply. */
11355 /* The GNU C library defines this for functions which it implements
11356 to always fail with ENOSYS. Some functions are actually named
11357 something starting with __ and the normal name is an alias. */
11358 #if defined __stub_$ac_func || defined __stub___$ac_func
11365 return $ac_func ();
11370 rm -f conftest.$ac_objext conftest$ac_exeext
11371 if { (ac_try="$ac_link"
11372 case "(($ac_try" in
11373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11374 *) ac_try_echo=$ac_try;;
11376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11377 (eval "$ac_link") 2>conftest.er1
11379 grep -v '^ *+' conftest.er1 >conftest.err
11381 cat conftest.err >&5
11382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383 (exit $ac_status); } &&
11384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11385 { (case "(($ac_try" in
11386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11387 *) ac_try_echo=$ac_try;;
11389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11390 (eval "$ac_try") 2>&5
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); }; } &&
11394 { ac_try='test -s conftest$ac_exeext'
11395 { (case "(($ac_try" in
11396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11397 *) ac_try_echo=$ac_try;;
11399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11400 (eval "$ac_try") 2>&5
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); }; }; then
11404 eval "$as_ac_var=yes"
11406 echo "$as_me: failed program was:" >&5
11407 sed 's/^/| /' conftest.$ac_ext >&5
11409 eval "$as_ac_var=no"
11412 rm -f core conftest.err conftest.$ac_objext \
11413 conftest$ac_exeext conftest.$ac_ext
11415 ac_res=`eval echo '${'$as_ac_var'}'`
11416 { echo "$as_me:$LINENO: result: $ac_res" >&5
11417 echo "${ECHO_T}$ac_res" >&6; }
11418 if test `eval echo '${'$as_ac_var'}'` = yes; then
11419 cat >>confdefs.h <<_ACEOF
11420 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11428 for ac_func in strrchr rindex
11430 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11431 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11432 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11433 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11434 echo $ECHO_N "(cached) $ECHO_C" >&6
11436 cat >conftest.$ac_ext <<_ACEOF
11439 cat confdefs.h >>conftest.$ac_ext
11440 cat >>conftest.$ac_ext <<_ACEOF
11441 /* end confdefs.h. */
11442 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11443 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11444 #define $ac_func innocuous_$ac_func
11446 /* System header to define __stub macros and hopefully few prototypes,
11447 which can conflict with char $ac_func (); below.
11448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11449 <limits.h> exists even on freestanding compilers. */
11452 # include <limits.h>
11454 # include <assert.h>
11459 /* Override any GCC internal prototype to avoid an error.
11460 Use char because int might match the return type of a GCC
11461 builtin and then its argument prototype would still apply. */
11466 /* The GNU C library defines this for functions which it implements
11467 to always fail with ENOSYS. Some functions are actually named
11468 something starting with __ and the normal name is an alias. */
11469 #if defined __stub_$ac_func || defined __stub___$ac_func
11476 return $ac_func ();
11481 rm -f conftest.$ac_objext conftest$ac_exeext
11482 if { (ac_try="$ac_link"
11483 case "(($ac_try" in
11484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11485 *) ac_try_echo=$ac_try;;
11487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11488 (eval "$ac_link") 2>conftest.er1
11490 grep -v '^ *+' conftest.er1 >conftest.err
11492 cat conftest.err >&5
11493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494 (exit $ac_status); } &&
11495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11496 { (case "(($ac_try" in
11497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11498 *) ac_try_echo=$ac_try;;
11500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11501 (eval "$ac_try") 2>&5
11503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504 (exit $ac_status); }; } &&
11505 { ac_try='test -s conftest$ac_exeext'
11506 { (case "(($ac_try" in
11507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11508 *) ac_try_echo=$ac_try;;
11510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11511 (eval "$ac_try") 2>&5
11513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514 (exit $ac_status); }; }; then
11515 eval "$as_ac_var=yes"
11517 echo "$as_me: failed program was:" >&5
11518 sed 's/^/| /' conftest.$ac_ext >&5
11520 eval "$as_ac_var=no"
11523 rm -f core conftest.err conftest.$ac_objext \
11524 conftest$ac_exeext conftest.$ac_ext
11526 ac_res=`eval echo '${'$as_ac_var'}'`
11527 { echo "$as_me:$LINENO: result: $ac_res" >&5
11528 echo "${ECHO_T}$ac_res" >&6; }
11529 if test `eval echo '${'$as_ac_var'}'` = yes; then
11530 cat >>confdefs.h <<_ACEOF
11531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11539 for ac_func in memcpy bcopy
11541 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11542 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11543 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11544 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11545 echo $ECHO_N "(cached) $ECHO_C" >&6
11547 cat >conftest.$ac_ext <<_ACEOF
11550 cat confdefs.h >>conftest.$ac_ext
11551 cat >>conftest.$ac_ext <<_ACEOF
11552 /* end confdefs.h. */
11553 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11554 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11555 #define $ac_func innocuous_$ac_func
11557 /* System header to define __stub macros and hopefully few prototypes,
11558 which can conflict with char $ac_func (); below.
11559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11560 <limits.h> exists even on freestanding compilers. */
11563 # include <limits.h>
11565 # include <assert.h>
11570 /* Override any GCC internal prototype to avoid an error.
11571 Use char because int might match the return type of a GCC
11572 builtin and then its argument prototype would still apply. */
11577 /* The GNU C library defines this for functions which it implements
11578 to always fail with ENOSYS. Some functions are actually named
11579 something starting with __ and the normal name is an alias. */
11580 #if defined __stub_$ac_func || defined __stub___$ac_func
11587 return $ac_func ();
11592 rm -f conftest.$ac_objext conftest$ac_exeext
11593 if { (ac_try="$ac_link"
11594 case "(($ac_try" in
11595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11596 *) ac_try_echo=$ac_try;;
11598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11599 (eval "$ac_link") 2>conftest.er1
11601 grep -v '^ *+' conftest.er1 >conftest.err
11603 cat conftest.err >&5
11604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605 (exit $ac_status); } &&
11606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11607 { (case "(($ac_try" in
11608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11609 *) ac_try_echo=$ac_try;;
11611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11612 (eval "$ac_try") 2>&5
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); }; } &&
11616 { ac_try='test -s conftest$ac_exeext'
11617 { (case "(($ac_try" in
11618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11619 *) ac_try_echo=$ac_try;;
11621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11622 (eval "$ac_try") 2>&5
11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625 (exit $ac_status); }; }; then
11626 eval "$as_ac_var=yes"
11628 echo "$as_me: failed program was:" >&5
11629 sed 's/^/| /' conftest.$ac_ext >&5
11631 eval "$as_ac_var=no"
11634 rm -f core conftest.err conftest.$ac_objext \
11635 conftest$ac_exeext conftest.$ac_ext
11637 ac_res=`eval echo '${'$as_ac_var'}'`
11638 { echo "$as_me:$LINENO: result: $ac_res" >&5
11639 echo "${ECHO_T}$ac_res" >&6; }
11640 if test `eval echo '${'$as_ac_var'}'` = yes; then
11641 cat >>confdefs.h <<_ACEOF
11642 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11650 for ac_func in memmove strcmp
11652 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11653 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11654 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11655 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11656 echo $ECHO_N "(cached) $ECHO_C" >&6
11658 cat >conftest.$ac_ext <<_ACEOF
11661 cat confdefs.h >>conftest.$ac_ext
11662 cat >>conftest.$ac_ext <<_ACEOF
11663 /* end confdefs.h. */
11664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11666 #define $ac_func innocuous_$ac_func
11668 /* System header to define __stub macros and hopefully few prototypes,
11669 which can conflict with char $ac_func (); below.
11670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11671 <limits.h> exists even on freestanding compilers. */
11674 # include <limits.h>
11676 # include <assert.h>
11681 /* Override any GCC internal prototype to avoid an error.
11682 Use char because int might match the return type of a GCC
11683 builtin and then its argument prototype would still apply. */
11688 /* The GNU C library defines this for functions which it implements
11689 to always fail with ENOSYS. Some functions are actually named
11690 something starting with __ and the normal name is an alias. */
11691 #if defined __stub_$ac_func || defined __stub___$ac_func
11698 return $ac_func ();
11703 rm -f conftest.$ac_objext conftest$ac_exeext
11704 if { (ac_try="$ac_link"
11705 case "(($ac_try" in
11706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11707 *) ac_try_echo=$ac_try;;
11709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11710 (eval "$ac_link") 2>conftest.er1
11712 grep -v '^ *+' conftest.er1 >conftest.err
11714 cat conftest.err >&5
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); } &&
11717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11718 { (case "(($ac_try" in
11719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11720 *) ac_try_echo=$ac_try;;
11722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11723 (eval "$ac_try") 2>&5
11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); }; } &&
11727 { ac_try='test -s conftest$ac_exeext'
11728 { (case "(($ac_try" in
11729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11730 *) ac_try_echo=$ac_try;;
11732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11733 (eval "$ac_try") 2>&5
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 (exit $ac_status); }; }; then
11737 eval "$as_ac_var=yes"
11739 echo "$as_me: failed program was:" >&5
11740 sed 's/^/| /' conftest.$ac_ext >&5
11742 eval "$as_ac_var=no"
11745 rm -f core conftest.err conftest.$ac_objext \
11746 conftest$ac_exeext conftest.$ac_ext
11748 ac_res=`eval echo '${'$as_ac_var'}'`
11749 { echo "$as_me:$LINENO: result: $ac_res" >&5
11750 echo "${ECHO_T}$ac_res" >&6; }
11751 if test `eval echo '${'$as_ac_var'}'` = yes; then
11752 cat >>confdefs.h <<_ACEOF
11753 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11762 for ac_func in closedir opendir readdir
11764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11765 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11767 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11768 echo $ECHO_N "(cached) $ECHO_C" >&6
11770 cat >conftest.$ac_ext <<_ACEOF
11773 cat confdefs.h >>conftest.$ac_ext
11774 cat >>conftest.$ac_ext <<_ACEOF
11775 /* end confdefs.h. */
11776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11778 #define $ac_func innocuous_$ac_func
11780 /* System header to define __stub macros and hopefully few prototypes,
11781 which can conflict with char $ac_func (); below.
11782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11783 <limits.h> exists even on freestanding compilers. */
11786 # include <limits.h>
11788 # include <assert.h>
11793 /* Override any GCC internal prototype to avoid an error.
11794 Use char because int might match the return type of a GCC
11795 builtin and then its argument prototype would still apply. */
11800 /* The GNU C library defines this for functions which it implements
11801 to always fail with ENOSYS. Some functions are actually named
11802 something starting with __ and the normal name is an alias. */
11803 #if defined __stub_$ac_func || defined __stub___$ac_func
11810 return $ac_func ();
11815 rm -f conftest.$ac_objext conftest$ac_exeext
11816 if { (ac_try="$ac_link"
11817 case "(($ac_try" in
11818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11819 *) ac_try_echo=$ac_try;;
11821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11822 (eval "$ac_link") 2>conftest.er1
11824 grep -v '^ *+' conftest.er1 >conftest.err
11826 cat conftest.err >&5
11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828 (exit $ac_status); } &&
11829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11830 { (case "(($ac_try" in
11831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11832 *) ac_try_echo=$ac_try;;
11834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11835 (eval "$ac_try") 2>&5
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); }; } &&
11839 { ac_try='test -s conftest$ac_exeext'
11840 { (case "(($ac_try" in
11841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11842 *) ac_try_echo=$ac_try;;
11844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11845 (eval "$ac_try") 2>&5
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); }; }; then
11849 eval "$as_ac_var=yes"
11851 echo "$as_me: failed program was:" >&5
11852 sed 's/^/| /' conftest.$ac_ext >&5
11854 eval "$as_ac_var=no"
11857 rm -f core conftest.err conftest.$ac_objext \
11858 conftest$ac_exeext conftest.$ac_ext
11860 ac_res=`eval echo '${'$as_ac_var'}'`
11861 { echo "$as_me:$LINENO: result: $ac_res" >&5
11862 echo "${ECHO_T}$ac_res" >&6; }
11863 if test `eval echo '${'$as_ac_var'}'` = yes; then
11864 cat >>confdefs.h <<_ACEOF
11865 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11873 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11874 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11887 if test "$GCC" != "yes" && test "$ICC" != "yes"
11889 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11890 echo "$as_me: error: gcc|icc required but not found" >&2;}
11891 { (exit 1); exit 1; }; }
11894 if test "$GXX" != "yes" && test "$IXX" != "yes"
11896 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11897 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11898 { (exit 1); exit 1; }; }
11901 if test "$GCC" = "yes"
11903 cat >conftest.$ac_ext <<_ACEOF
11904 #if !defined(__GNUC__) || __GNUC__ < 3
11905 #error Unsupported GCC version
11909 rm -f conftest.$ac_objext
11910 if { (ac_try="$ac_compile"
11911 case "(($ac_try" in
11912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11913 *) ac_try_echo=$ac_try;;
11915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11916 (eval "$ac_compile") 2>conftest.er1
11918 grep -v '^ *+' conftest.er1 >conftest.err
11920 cat conftest.err >&5
11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 (exit $ac_status); } &&
11923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11924 { (case "(($ac_try" in
11925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11926 *) ac_try_echo=$ac_try;;
11928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11929 (eval "$ac_try") 2>&5
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); }; } &&
11933 { ac_try='test -s conftest.$ac_objext'
11934 { (case "(($ac_try" in
11935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11936 *) ac_try_echo=$ac_try;;
11938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11939 (eval "$ac_try") 2>&5
11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942 (exit $ac_status); }; }; then
11945 echo "$as_me: failed program was:" >&5
11946 sed 's/^/| /' conftest.$ac_ext >&5
11948 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
11949 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
11950 { (exit 1); exit 1; }; }
11953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11956 if test -z "$llvm_cv_gnu_make_command"
11958 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
11959 echo "$as_me: error: GNU Make required but not found" >&2;}
11960 { (exit 1); exit 1; }; }
11963 { echo "$as_me:$LINENO: result: ok" >&5
11964 echo "${ECHO_T}ok" >&6; }
11966 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
11967 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
11968 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
11970 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
11972 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
11974 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
11975 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
11979 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
11980 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
11981 if test "${ac_cv_lib_m_sin+set}" = set; then
11982 echo $ECHO_N "(cached) $ECHO_C" >&6
11984 ac_check_lib_save_LIBS=$LIBS
11986 cat >conftest.$ac_ext <<_ACEOF
11989 cat confdefs.h >>conftest.$ac_ext
11990 cat >>conftest.$ac_ext <<_ACEOF
11991 /* end confdefs.h. */
11993 /* Override any GCC internal prototype to avoid an error.
11994 Use char because int might match the return type of a GCC
11995 builtin and then its argument prototype would still apply. */
12008 rm -f conftest.$ac_objext conftest$ac_exeext
12009 if { (ac_try="$ac_link"
12010 case "(($ac_try" in
12011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12012 *) ac_try_echo=$ac_try;;
12014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12015 (eval "$ac_link") 2>conftest.er1
12017 grep -v '^ *+' conftest.er1 >conftest.err
12019 cat conftest.err >&5
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); } &&
12022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12023 { (case "(($ac_try" in
12024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12025 *) ac_try_echo=$ac_try;;
12027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12028 (eval "$ac_try") 2>&5
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); }; } &&
12032 { ac_try='test -s conftest$ac_exeext'
12033 { (case "(($ac_try" in
12034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12035 *) ac_try_echo=$ac_try;;
12037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12038 (eval "$ac_try") 2>&5
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); }; }; then
12042 ac_cv_lib_m_sin=yes
12044 echo "$as_me: failed program was:" >&5
12045 sed 's/^/| /' conftest.$ac_ext >&5
12050 rm -f core conftest.err conftest.$ac_objext \
12051 conftest$ac_exeext conftest.$ac_ext
12052 LIBS=$ac_check_lib_save_LIBS
12054 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12055 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12056 if test $ac_cv_lib_m_sin = yes; then
12057 cat >>confdefs.h <<_ACEOF
12058 #define HAVE_LIBM 1
12065 if test "$llvm_cv_os_type" = "MingW" ; then
12067 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12068 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12069 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12070 echo $ECHO_N "(cached) $ECHO_C" >&6
12072 ac_check_lib_save_LIBS=$LIBS
12073 LIBS="-limagehlp $LIBS"
12074 cat >conftest.$ac_ext <<_ACEOF
12077 cat confdefs.h >>conftest.$ac_ext
12078 cat >>conftest.$ac_ext <<_ACEOF
12079 /* end confdefs.h. */
12090 rm -f conftest.$ac_objext conftest$ac_exeext
12091 if { (ac_try="$ac_link"
12092 case "(($ac_try" in
12093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12094 *) ac_try_echo=$ac_try;;
12096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12097 (eval "$ac_link") 2>conftest.er1
12099 grep -v '^ *+' conftest.er1 >conftest.err
12101 cat conftest.err >&5
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); } &&
12104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12105 { (case "(($ac_try" in
12106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12107 *) ac_try_echo=$ac_try;;
12109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12110 (eval "$ac_try") 2>&5
12112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113 (exit $ac_status); }; } &&
12114 { ac_try='test -s conftest$ac_exeext'
12115 { (case "(($ac_try" in
12116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12117 *) ac_try_echo=$ac_try;;
12119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12120 (eval "$ac_try") 2>&5
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); }; }; then
12124 ac_cv_lib_imagehlp_main=yes
12126 echo "$as_me: failed program was:" >&5
12127 sed 's/^/| /' conftest.$ac_ext >&5
12129 ac_cv_lib_imagehlp_main=no
12132 rm -f core conftest.err conftest.$ac_objext \
12133 conftest$ac_exeext conftest.$ac_ext
12134 LIBS=$ac_check_lib_save_LIBS
12136 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12137 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12138 if test $ac_cv_lib_imagehlp_main = yes; then
12139 cat >>confdefs.h <<_ACEOF
12140 #define HAVE_LIBIMAGEHLP 1
12143 LIBS="-limagehlp $LIBS"
12148 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12149 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12150 if test "${ac_cv_lib_psapi_main+set}" = set; then
12151 echo $ECHO_N "(cached) $ECHO_C" >&6
12153 ac_check_lib_save_LIBS=$LIBS
12154 LIBS="-lpsapi $LIBS"
12155 cat >conftest.$ac_ext <<_ACEOF
12158 cat confdefs.h >>conftest.$ac_ext
12159 cat >>conftest.$ac_ext <<_ACEOF
12160 /* end confdefs.h. */
12171 rm -f conftest.$ac_objext conftest$ac_exeext
12172 if { (ac_try="$ac_link"
12173 case "(($ac_try" in
12174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12175 *) ac_try_echo=$ac_try;;
12177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12178 (eval "$ac_link") 2>conftest.er1
12180 grep -v '^ *+' conftest.er1 >conftest.err
12182 cat conftest.err >&5
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); } &&
12185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12186 { (case "(($ac_try" in
12187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12188 *) ac_try_echo=$ac_try;;
12190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12191 (eval "$ac_try") 2>&5
12193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194 (exit $ac_status); }; } &&
12195 { ac_try='test -s conftest$ac_exeext'
12196 { (case "(($ac_try" in
12197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12198 *) ac_try_echo=$ac_try;;
12200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12201 (eval "$ac_try") 2>&5
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); }; }; then
12205 ac_cv_lib_psapi_main=yes
12207 echo "$as_me: failed program was:" >&5
12208 sed 's/^/| /' conftest.$ac_ext >&5
12210 ac_cv_lib_psapi_main=no
12213 rm -f core conftest.err conftest.$ac_objext \
12214 conftest$ac_exeext conftest.$ac_ext
12215 LIBS=$ac_check_lib_save_LIBS
12217 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12218 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12219 if test $ac_cv_lib_psapi_main = yes; then
12220 cat >>confdefs.h <<_ACEOF
12221 #define HAVE_LIBPSAPI 1
12224 LIBS="-lpsapi $LIBS"
12230 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12231 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12232 if test "${ac_cv_search_dlopen+set}" = set; then
12233 echo $ECHO_N "(cached) $ECHO_C" >&6
12235 ac_func_search_save_LIBS=$LIBS
12236 cat >conftest.$ac_ext <<_ACEOF
12239 cat confdefs.h >>conftest.$ac_ext
12240 cat >>conftest.$ac_ext <<_ACEOF
12241 /* end confdefs.h. */
12243 /* Override any GCC internal prototype to avoid an error.
12244 Use char because int might match the return type of a GCC
12245 builtin and then its argument prototype would still apply. */
12258 for ac_lib in '' dl; do
12259 if test -z "$ac_lib"; then
12260 ac_res="none required"
12263 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12265 rm -f conftest.$ac_objext conftest$ac_exeext
12266 if { (ac_try="$ac_link"
12267 case "(($ac_try" in
12268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12269 *) ac_try_echo=$ac_try;;
12271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12272 (eval "$ac_link") 2>conftest.er1
12274 grep -v '^ *+' conftest.er1 >conftest.err
12276 cat conftest.err >&5
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); } &&
12279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12280 { (case "(($ac_try" in
12281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12282 *) ac_try_echo=$ac_try;;
12284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12285 (eval "$ac_try") 2>&5
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); }; } &&
12289 { ac_try='test -s conftest$ac_exeext'
12290 { (case "(($ac_try" in
12291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12292 *) ac_try_echo=$ac_try;;
12294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12295 (eval "$ac_try") 2>&5
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); }; }; then
12299 ac_cv_search_dlopen=$ac_res
12301 echo "$as_me: failed program was:" >&5
12302 sed 's/^/| /' conftest.$ac_ext >&5
12307 rm -f core conftest.err conftest.$ac_objext \
12309 if test "${ac_cv_search_dlopen+set}" = set; then
12313 if test "${ac_cv_search_dlopen+set}" = set; then
12316 ac_cv_search_dlopen=no
12318 rm conftest.$ac_ext
12319 LIBS=$ac_func_search_save_LIBS
12321 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12322 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12323 ac_res=$ac_cv_search_dlopen
12324 if test "$ac_res" != no; then
12325 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12327 cat >>confdefs.h <<\_ACEOF
12328 #define HAVE_DLOPEN 1
12332 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12333 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12337 if test "$llvm_cv_enable_libffi" = "yes" ; then
12338 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12339 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12340 if test "${ac_cv_search_ffi_call+set}" = set; then
12341 echo $ECHO_N "(cached) $ECHO_C" >&6
12343 ac_func_search_save_LIBS=$LIBS
12344 cat >conftest.$ac_ext <<_ACEOF
12347 cat confdefs.h >>conftest.$ac_ext
12348 cat >>conftest.$ac_ext <<_ACEOF
12349 /* end confdefs.h. */
12351 /* Override any GCC internal prototype to avoid an error.
12352 Use char because int might match the return type of a GCC
12353 builtin and then its argument prototype would still apply. */
12361 return ffi_call ();
12366 for ac_lib in '' ffi; do
12367 if test -z "$ac_lib"; then
12368 ac_res="none required"
12371 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12373 rm -f conftest.$ac_objext conftest$ac_exeext
12374 if { (ac_try="$ac_link"
12375 case "(($ac_try" in
12376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12377 *) ac_try_echo=$ac_try;;
12379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12380 (eval "$ac_link") 2>conftest.er1
12382 grep -v '^ *+' conftest.er1 >conftest.err
12384 cat conftest.err >&5
12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 (exit $ac_status); } &&
12387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12388 { (case "(($ac_try" in
12389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12390 *) ac_try_echo=$ac_try;;
12392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12393 (eval "$ac_try") 2>&5
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); }; } &&
12397 { ac_try='test -s conftest$ac_exeext'
12398 { (case "(($ac_try" in
12399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12400 *) ac_try_echo=$ac_try;;
12402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12403 (eval "$ac_try") 2>&5
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); }; }; then
12407 ac_cv_search_ffi_call=$ac_res
12409 echo "$as_me: failed program was:" >&5
12410 sed 's/^/| /' conftest.$ac_ext >&5
12415 rm -f core conftest.err conftest.$ac_objext \
12417 if test "${ac_cv_search_ffi_call+set}" = set; then
12421 if test "${ac_cv_search_ffi_call+set}" = set; then
12424 ac_cv_search_ffi_call=no
12426 rm conftest.$ac_ext
12427 LIBS=$ac_func_search_save_LIBS
12429 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12430 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12431 ac_res=$ac_cv_search_ffi_call
12432 if test "$ac_res" != no; then
12433 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12435 cat >>confdefs.h <<\_ACEOF
12436 #define HAVE_FFI_CALL 1
12440 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12441 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12442 { (exit 1); exit 1; }; }
12447 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12448 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12449 if test "${ac_cv_search_mallinfo+set}" = set; then
12450 echo $ECHO_N "(cached) $ECHO_C" >&6
12452 ac_func_search_save_LIBS=$LIBS
12453 cat >conftest.$ac_ext <<_ACEOF
12456 cat confdefs.h >>conftest.$ac_ext
12457 cat >>conftest.$ac_ext <<_ACEOF
12458 /* end confdefs.h. */
12460 /* Override any GCC internal prototype to avoid an error.
12461 Use char because int might match the return type of a GCC
12462 builtin and then its argument prototype would still apply. */
12470 return mallinfo ();
12475 for ac_lib in '' malloc; do
12476 if test -z "$ac_lib"; then
12477 ac_res="none required"
12480 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12482 rm -f conftest.$ac_objext conftest$ac_exeext
12483 if { (ac_try="$ac_link"
12484 case "(($ac_try" in
12485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12486 *) ac_try_echo=$ac_try;;
12488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12489 (eval "$ac_link") 2>conftest.er1
12491 grep -v '^ *+' conftest.er1 >conftest.err
12493 cat conftest.err >&5
12494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495 (exit $ac_status); } &&
12496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12497 { (case "(($ac_try" in
12498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12499 *) ac_try_echo=$ac_try;;
12501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12502 (eval "$ac_try") 2>&5
12504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505 (exit $ac_status); }; } &&
12506 { ac_try='test -s conftest$ac_exeext'
12507 { (case "(($ac_try" in
12508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12509 *) ac_try_echo=$ac_try;;
12511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12512 (eval "$ac_try") 2>&5
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); }; }; then
12516 ac_cv_search_mallinfo=$ac_res
12518 echo "$as_me: failed program was:" >&5
12519 sed 's/^/| /' conftest.$ac_ext >&5
12524 rm -f core conftest.err conftest.$ac_objext \
12526 if test "${ac_cv_search_mallinfo+set}" = set; then
12530 if test "${ac_cv_search_mallinfo+set}" = set; then
12533 ac_cv_search_mallinfo=no
12535 rm conftest.$ac_ext
12536 LIBS=$ac_func_search_save_LIBS
12538 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12539 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12540 ac_res=$ac_cv_search_mallinfo
12541 if test "$ac_res" != no; then
12542 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12544 cat >>confdefs.h <<\_ACEOF
12545 #define HAVE_MALLINFO 1
12551 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12553 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12554 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12555 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12556 echo $ECHO_N "(cached) $ECHO_C" >&6
12558 ac_check_lib_save_LIBS=$LIBS
12559 LIBS="-lpthread $LIBS"
12560 cat >conftest.$ac_ext <<_ACEOF
12563 cat confdefs.h >>conftest.$ac_ext
12564 cat >>conftest.$ac_ext <<_ACEOF
12565 /* end confdefs.h. */
12567 /* Override any GCC internal prototype to avoid an error.
12568 Use char because int might match the return type of a GCC
12569 builtin and then its argument prototype would still apply. */
12573 char pthread_mutex_init ();
12577 return pthread_mutex_init ();
12582 rm -f conftest.$ac_objext conftest$ac_exeext
12583 if { (ac_try="$ac_link"
12584 case "(($ac_try" in
12585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12586 *) ac_try_echo=$ac_try;;
12588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12589 (eval "$ac_link") 2>conftest.er1
12591 grep -v '^ *+' conftest.er1 >conftest.err
12593 cat conftest.err >&5
12594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); } &&
12596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12597 { (case "(($ac_try" in
12598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12599 *) ac_try_echo=$ac_try;;
12601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12602 (eval "$ac_try") 2>&5
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); }; } &&
12606 { ac_try='test -s conftest$ac_exeext'
12607 { (case "(($ac_try" in
12608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12609 *) ac_try_echo=$ac_try;;
12611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12612 (eval "$ac_try") 2>&5
12614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615 (exit $ac_status); }; }; then
12616 ac_cv_lib_pthread_pthread_mutex_init=yes
12618 echo "$as_me: failed program was:" >&5
12619 sed 's/^/| /' conftest.$ac_ext >&5
12621 ac_cv_lib_pthread_pthread_mutex_init=no
12624 rm -f core conftest.err conftest.$ac_objext \
12625 conftest$ac_exeext conftest.$ac_ext
12626 LIBS=$ac_check_lib_save_LIBS
12628 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12629 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12630 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12631 cat >>confdefs.h <<_ACEOF
12632 #define HAVE_LIBPTHREAD 1
12635 LIBS="-lpthread $LIBS"
12639 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12640 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12641 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12642 echo $ECHO_N "(cached) $ECHO_C" >&6
12644 ac_func_search_save_LIBS=$LIBS
12645 cat >conftest.$ac_ext <<_ACEOF
12648 cat confdefs.h >>conftest.$ac_ext
12649 cat >>conftest.$ac_ext <<_ACEOF
12650 /* end confdefs.h. */
12652 /* Override any GCC internal prototype to avoid an error.
12653 Use char because int might match the return type of a GCC
12654 builtin and then its argument prototype would still apply. */
12658 char pthread_mutex_lock ();
12662 return pthread_mutex_lock ();
12667 for ac_lib in '' pthread; do
12668 if test -z "$ac_lib"; then
12669 ac_res="none required"
12672 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12674 rm -f conftest.$ac_objext conftest$ac_exeext
12675 if { (ac_try="$ac_link"
12676 case "(($ac_try" in
12677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12678 *) ac_try_echo=$ac_try;;
12680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12681 (eval "$ac_link") 2>conftest.er1
12683 grep -v '^ *+' conftest.er1 >conftest.err
12685 cat conftest.err >&5
12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); } &&
12688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12689 { (case "(($ac_try" in
12690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12691 *) ac_try_echo=$ac_try;;
12693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12694 (eval "$ac_try") 2>&5
12696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697 (exit $ac_status); }; } &&
12698 { ac_try='test -s conftest$ac_exeext'
12699 { (case "(($ac_try" in
12700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12701 *) ac_try_echo=$ac_try;;
12703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12704 (eval "$ac_try") 2>&5
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); }; }; then
12708 ac_cv_search_pthread_mutex_lock=$ac_res
12710 echo "$as_me: failed program was:" >&5
12711 sed 's/^/| /' conftest.$ac_ext >&5
12716 rm -f core conftest.err conftest.$ac_objext \
12718 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12722 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12725 ac_cv_search_pthread_mutex_lock=no
12727 rm conftest.$ac_ext
12728 LIBS=$ac_func_search_save_LIBS
12730 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12731 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12732 ac_res=$ac_cv_search_pthread_mutex_lock
12733 if test "$ac_res" != no; then
12734 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12736 cat >>confdefs.h <<\_ACEOF
12737 #define HAVE_PTHREAD_MUTEX_LOCK 1
12742 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12743 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12744 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12745 echo $ECHO_N "(cached) $ECHO_C" >&6
12747 ac_func_search_save_LIBS=$LIBS
12748 cat >conftest.$ac_ext <<_ACEOF
12751 cat confdefs.h >>conftest.$ac_ext
12752 cat >>conftest.$ac_ext <<_ACEOF
12753 /* end confdefs.h. */
12755 /* Override any GCC internal prototype to avoid an error.
12756 Use char because int might match the return type of a GCC
12757 builtin and then its argument prototype would still apply. */
12761 char pthread_rwlock_init ();
12765 return pthread_rwlock_init ();
12770 for ac_lib in '' pthread; do
12771 if test -z "$ac_lib"; then
12772 ac_res="none required"
12775 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12777 rm -f conftest.$ac_objext conftest$ac_exeext
12778 if { (ac_try="$ac_link"
12779 case "(($ac_try" in
12780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12781 *) ac_try_echo=$ac_try;;
12783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12784 (eval "$ac_link") 2>conftest.er1
12786 grep -v '^ *+' conftest.er1 >conftest.err
12788 cat conftest.err >&5
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); } &&
12791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12792 { (case "(($ac_try" in
12793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12794 *) ac_try_echo=$ac_try;;
12796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12797 (eval "$ac_try") 2>&5
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); }; } &&
12801 { ac_try='test -s conftest$ac_exeext'
12802 { (case "(($ac_try" in
12803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12804 *) ac_try_echo=$ac_try;;
12806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12807 (eval "$ac_try") 2>&5
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); }; }; then
12811 ac_cv_search_pthread_rwlock_init=$ac_res
12813 echo "$as_me: failed program was:" >&5
12814 sed 's/^/| /' conftest.$ac_ext >&5
12819 rm -f core conftest.err conftest.$ac_objext \
12821 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12825 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12828 ac_cv_search_pthread_rwlock_init=no
12830 rm conftest.$ac_ext
12831 LIBS=$ac_func_search_save_LIBS
12833 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12834 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12835 ac_res=$ac_cv_search_pthread_rwlock_init
12836 if test "$ac_res" != no; then
12837 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12839 cat >>confdefs.h <<\_ACEOF
12840 #define HAVE_PTHREAD_RWLOCK_INIT 1
12845 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12846 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12847 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12848 echo $ECHO_N "(cached) $ECHO_C" >&6
12850 ac_func_search_save_LIBS=$LIBS
12851 cat >conftest.$ac_ext <<_ACEOF
12854 cat confdefs.h >>conftest.$ac_ext
12855 cat >>conftest.$ac_ext <<_ACEOF
12856 /* end confdefs.h. */
12858 /* Override any GCC internal prototype to avoid an error.
12859 Use char because int might match the return type of a GCC
12860 builtin and then its argument prototype would still apply. */
12864 char pthread_getspecific ();
12868 return pthread_getspecific ();
12873 for ac_lib in '' pthread; do
12874 if test -z "$ac_lib"; then
12875 ac_res="none required"
12878 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12880 rm -f conftest.$ac_objext conftest$ac_exeext
12881 if { (ac_try="$ac_link"
12882 case "(($ac_try" in
12883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12884 *) ac_try_echo=$ac_try;;
12886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12887 (eval "$ac_link") 2>conftest.er1
12889 grep -v '^ *+' conftest.er1 >conftest.err
12891 cat conftest.err >&5
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); } &&
12894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12895 { (case "(($ac_try" in
12896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12897 *) ac_try_echo=$ac_try;;
12899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12900 (eval "$ac_try") 2>&5
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); }; } &&
12904 { ac_try='test -s conftest$ac_exeext'
12905 { (case "(($ac_try" in
12906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12907 *) ac_try_echo=$ac_try;;
12909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12910 (eval "$ac_try") 2>&5
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); }; }; then
12914 ac_cv_search_pthread_getspecific=$ac_res
12916 echo "$as_me: failed program was:" >&5
12917 sed 's/^/| /' conftest.$ac_ext >&5
12922 rm -f core conftest.err conftest.$ac_objext \
12924 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12928 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12931 ac_cv_search_pthread_getspecific=no
12933 rm conftest.$ac_ext
12934 LIBS=$ac_func_search_save_LIBS
12936 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
12937 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
12938 ac_res=$ac_cv_search_pthread_getspecific
12939 if test "$ac_res" != no; then
12940 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12942 cat >>confdefs.h <<\_ACEOF
12943 #define HAVE_PTHREAD_GETSPECIFIC 1
12951 # Check whether --with-udis86 was given.
12952 if test "${with_udis86+set}" = set; then
12953 withval=$with_udis86;
12958 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
12961 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
12962 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
12963 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
12964 echo $ECHO_N "(cached) $ECHO_C" >&6
12966 ac_check_lib_save_LIBS=$LIBS
12967 LIBS="-ludis86 $LIBS"
12968 cat >conftest.$ac_ext <<_ACEOF
12971 cat confdefs.h >>conftest.$ac_ext
12972 cat >>conftest.$ac_ext <<_ACEOF
12973 /* end confdefs.h. */
12975 /* Override any GCC internal prototype to avoid an error.
12976 Use char because int might match the return type of a GCC
12977 builtin and then its argument prototype would still apply. */
12990 rm -f conftest.$ac_objext conftest$ac_exeext
12991 if { (ac_try="$ac_link"
12992 case "(($ac_try" in
12993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12994 *) ac_try_echo=$ac_try;;
12996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12997 (eval "$ac_link") 2>conftest.er1
12999 grep -v '^ *+' conftest.er1 >conftest.err
13001 cat conftest.err >&5
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); } &&
13004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13005 { (case "(($ac_try" in
13006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13007 *) ac_try_echo=$ac_try;;
13009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13010 (eval "$ac_try") 2>&5
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); }; } &&
13014 { ac_try='test -s conftest$ac_exeext'
13015 { (case "(($ac_try" in
13016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13017 *) ac_try_echo=$ac_try;;
13019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13020 (eval "$ac_try") 2>&5
13022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023 (exit $ac_status); }; }; then
13024 ac_cv_lib_udis86_ud_init=yes
13026 echo "$as_me: failed program was:" >&5
13027 sed 's/^/| /' conftest.$ac_ext >&5
13029 ac_cv_lib_udis86_ud_init=no
13032 rm -f core conftest.err conftest.$ac_objext \
13033 conftest$ac_exeext conftest.$ac_ext
13034 LIBS=$ac_check_lib_save_LIBS
13036 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13037 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13038 if test $ac_cv_lib_udis86_ud_init = yes; then
13039 cat >>confdefs.h <<_ACEOF
13040 #define HAVE_LIBUDIS86 1
13043 LIBS="-ludis86 $LIBS"
13047 echo "Error! You need to have libudis86 around."
13059 cat >>confdefs.h <<_ACEOF
13060 #define USE_UDIS86 $USE_UDIS86
13065 # Check whether --with-oprofile was given.
13066 if test "${with_oprofile+set}" = set; then
13067 withval=$with_oprofile;
13071 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13072 no) llvm_cv_oppath=
13075 *) llvm_cv_oppath="${withval}/lib/oprofile"
13076 CPPFLAGS="-I${withval}/include";;
13078 case $llvm_cv_os_type in
13080 if test -n "$llvm_cv_oppath" ; then
13081 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13082 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13083 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13084 if test "${ac_cv_search_bfd_init+set}" = set; then
13085 echo $ECHO_N "(cached) $ECHO_C" >&6
13087 ac_func_search_save_LIBS=$LIBS
13088 cat >conftest.$ac_ext <<_ACEOF
13091 cat confdefs.h >>conftest.$ac_ext
13092 cat >>conftest.$ac_ext <<_ACEOF
13093 /* end confdefs.h. */
13095 /* Override any GCC internal prototype to avoid an error.
13096 Use char because int might match the return type of a GCC
13097 builtin and then its argument prototype would still apply. */
13105 return bfd_init ();
13110 for ac_lib in '' bfd; do
13111 if test -z "$ac_lib"; then
13112 ac_res="none required"
13115 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13117 rm -f conftest.$ac_objext conftest$ac_exeext
13118 if { (ac_try="$ac_link"
13119 case "(($ac_try" in
13120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13121 *) ac_try_echo=$ac_try;;
13123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13124 (eval "$ac_link") 2>conftest.er1
13126 grep -v '^ *+' conftest.er1 >conftest.err
13128 cat conftest.err >&5
13129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130 (exit $ac_status); } &&
13131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13132 { (case "(($ac_try" in
13133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13134 *) ac_try_echo=$ac_try;;
13136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13137 (eval "$ac_try") 2>&5
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); }; } &&
13141 { ac_try='test -s conftest$ac_exeext'
13142 { (case "(($ac_try" in
13143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13144 *) ac_try_echo=$ac_try;;
13146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13147 (eval "$ac_try") 2>&5
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); }; }; then
13151 ac_cv_search_bfd_init=$ac_res
13153 echo "$as_me: failed program was:" >&5
13154 sed 's/^/| /' conftest.$ac_ext >&5
13159 rm -f core conftest.err conftest.$ac_objext \
13161 if test "${ac_cv_search_bfd_init+set}" = set; then
13165 if test "${ac_cv_search_bfd_init+set}" = set; then
13168 ac_cv_search_bfd_init=no
13170 rm conftest.$ac_ext
13171 LIBS=$ac_func_search_save_LIBS
13173 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13174 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13175 ac_res=$ac_cv_search_bfd_init
13176 if test "$ac_res" != no; then
13177 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13181 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13182 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13183 if test "${ac_cv_search_op_open_agent+set}" = set; then
13184 echo $ECHO_N "(cached) $ECHO_C" >&6
13186 ac_func_search_save_LIBS=$LIBS
13187 cat >conftest.$ac_ext <<_ACEOF
13190 cat confdefs.h >>conftest.$ac_ext
13191 cat >>conftest.$ac_ext <<_ACEOF
13192 /* end confdefs.h. */
13194 /* Override any GCC internal prototype to avoid an error.
13195 Use char because int might match the return type of a GCC
13196 builtin and then its argument prototype would still apply. */
13200 char op_open_agent ();
13204 return op_open_agent ();
13209 for ac_lib in '' opagent; do
13210 if test -z "$ac_lib"; then
13211 ac_res="none required"
13214 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13216 rm -f conftest.$ac_objext conftest$ac_exeext
13217 if { (ac_try="$ac_link"
13218 case "(($ac_try" in
13219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13220 *) ac_try_echo=$ac_try;;
13222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13223 (eval "$ac_link") 2>conftest.er1
13225 grep -v '^ *+' conftest.er1 >conftest.err
13227 cat conftest.err >&5
13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); } &&
13230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13231 { (case "(($ac_try" in
13232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13233 *) ac_try_echo=$ac_try;;
13235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13236 (eval "$ac_try") 2>&5
13238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239 (exit $ac_status); }; } &&
13240 { ac_try='test -s conftest$ac_exeext'
13241 { (case "(($ac_try" in
13242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13243 *) ac_try_echo=$ac_try;;
13245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13246 (eval "$ac_try") 2>&5
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); }; }; then
13250 ac_cv_search_op_open_agent=$ac_res
13252 echo "$as_me: failed program was:" >&5
13253 sed 's/^/| /' conftest.$ac_ext >&5
13258 rm -f core conftest.err conftest.$ac_objext \
13260 if test "${ac_cv_search_op_open_agent+set}" = set; then
13264 if test "${ac_cv_search_op_open_agent+set}" = set; then
13267 ac_cv_search_op_open_agent=no
13269 rm conftest.$ac_ext
13270 LIBS=$ac_func_search_save_LIBS
13272 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13273 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13274 ac_res=$ac_cv_search_op_open_agent
13275 if test "$ac_res" != no; then
13276 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13280 echo "Error! You need to have libopagent around."
13285 if test "${ac_cv_header_opagent_h+set}" = set; then
13286 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13287 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13288 if test "${ac_cv_header_opagent_h+set}" = set; then
13289 echo $ECHO_N "(cached) $ECHO_C" >&6
13291 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13292 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13294 # Is the header compilable?
13295 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13296 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13297 cat >conftest.$ac_ext <<_ACEOF
13300 cat confdefs.h >>conftest.$ac_ext
13301 cat >>conftest.$ac_ext <<_ACEOF
13302 /* end confdefs.h. */
13303 $ac_includes_default
13304 #include <opagent.h>
13306 rm -f conftest.$ac_objext
13307 if { (ac_try="$ac_compile"
13308 case "(($ac_try" in
13309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13310 *) ac_try_echo=$ac_try;;
13312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13313 (eval "$ac_compile") 2>conftest.er1
13315 grep -v '^ *+' conftest.er1 >conftest.err
13317 cat conftest.err >&5
13318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319 (exit $ac_status); } &&
13320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13321 { (case "(($ac_try" in
13322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13323 *) ac_try_echo=$ac_try;;
13325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13326 (eval "$ac_try") 2>&5
13328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329 (exit $ac_status); }; } &&
13330 { ac_try='test -s conftest.$ac_objext'
13331 { (case "(($ac_try" in
13332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13333 *) ac_try_echo=$ac_try;;
13335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13336 (eval "$ac_try") 2>&5
13338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339 (exit $ac_status); }; }; then
13340 ac_header_compiler=yes
13342 echo "$as_me: failed program was:" >&5
13343 sed 's/^/| /' conftest.$ac_ext >&5
13345 ac_header_compiler=no
13348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13349 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13350 echo "${ECHO_T}$ac_header_compiler" >&6; }
13352 # Is the header present?
13353 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13354 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13355 cat >conftest.$ac_ext <<_ACEOF
13358 cat confdefs.h >>conftest.$ac_ext
13359 cat >>conftest.$ac_ext <<_ACEOF
13360 /* end confdefs.h. */
13361 #include <opagent.h>
13363 if { (ac_try="$ac_cpp conftest.$ac_ext"
13364 case "(($ac_try" in
13365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13366 *) ac_try_echo=$ac_try;;
13368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13369 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13371 grep -v '^ *+' conftest.er1 >conftest.err
13373 cat conftest.err >&5
13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); } >/dev/null; then
13376 if test -s conftest.err; then
13377 ac_cpp_err=$ac_c_preproc_warn_flag
13378 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13385 if test -z "$ac_cpp_err"; then
13386 ac_header_preproc=yes
13388 echo "$as_me: failed program was:" >&5
13389 sed 's/^/| /' conftest.$ac_ext >&5
13391 ac_header_preproc=no
13394 rm -f conftest.err conftest.$ac_ext
13395 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13396 echo "${ECHO_T}$ac_header_preproc" >&6; }
13398 # So? What about this header?
13399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13401 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13402 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13403 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13404 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13405 ac_header_preproc=yes
13408 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13409 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13410 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13411 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13412 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13413 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13414 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13415 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13416 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13417 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13418 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13419 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13421 ## ------------------------------------ ##
13422 ## Report this to http://llvm.org/bugs/ ##
13423 ## ------------------------------------ ##
13425 ) | sed "s/^/$as_me: WARNING: /" >&2
13428 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13429 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13430 if test "${ac_cv_header_opagent_h+set}" = set; then
13431 echo $ECHO_N "(cached) $ECHO_C" >&6
13433 ac_cv_header_opagent_h=$ac_header_preproc
13435 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13436 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13439 if test $ac_cv_header_opagent_h = yes; then
13443 echo "Error! You need to have opagent.h around."
13451 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13452 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13453 { (exit 1); exit 1; }; } ;;
13464 cat >>confdefs.h <<_ACEOF
13465 #define LLVM_USE_OPROFILE $USE_OPROFILE
13470 # Check whether --with-intel-jitevents was given.
13471 if test "${with_intel_jitevents+set}" = set; then
13472 withval=$with_intel_jitevents;
13473 case $llvm_cv_os_type in
13474 Linux|Win32|Cygwin|MingW) ;;
13476 { { echo "$as_me:$LINENO: error:
13477 Intel JIT API support is available on Linux and Windows only.\"" >&5
13478 echo "$as_me: error:
13479 Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13480 { (exit 1); exit 1; }; } ;;
13483 USE_INTEL_JITEVENTS=1
13485 case "$llvm_cv_target_arch" in
13486 x86) llvm_intel_jitevents_archdir="lib32";;
13487 x86_64) llvm_intel_jitevents_archdir="lib64";;
13488 *) echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13491 INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13492 INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13494 /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13495 INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13502 LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
13503 CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
13505 { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13506 echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13507 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13508 echo $ECHO_N "(cached) $ECHO_C" >&6
13510 ac_func_search_save_LIBS=$LIBS
13511 cat >conftest.$ac_ext <<_ACEOF
13514 cat confdefs.h >>conftest.$ac_ext
13515 cat >>conftest.$ac_ext <<_ACEOF
13516 /* end confdefs.h. */
13518 /* Override any GCC internal prototype to avoid an error.
13519 Use char because int might match the return type of a GCC
13520 builtin and then its argument prototype would still apply. */
13524 char iJIT_IsProfilingActive ();
13528 return iJIT_IsProfilingActive ();
13533 for ac_lib in '' jitprofiling; do
13534 if test -z "$ac_lib"; then
13535 ac_res="none required"
13538 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13540 rm -f conftest.$ac_objext conftest$ac_exeext
13541 if { (ac_try="$ac_link"
13542 case "(($ac_try" in
13543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13544 *) ac_try_echo=$ac_try;;
13546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13547 (eval "$ac_link") 2>conftest.er1
13549 grep -v '^ *+' conftest.er1 >conftest.err
13551 cat conftest.err >&5
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); } &&
13554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13555 { (case "(($ac_try" in
13556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13557 *) ac_try_echo=$ac_try;;
13559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13560 (eval "$ac_try") 2>&5
13562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563 (exit $ac_status); }; } &&
13564 { ac_try='test -s conftest$ac_exeext'
13565 { (case "(($ac_try" in
13566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13567 *) ac_try_echo=$ac_try;;
13569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13570 (eval "$ac_try") 2>&5
13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); }; }; then
13574 ac_cv_search_iJIT_IsProfilingActive=$ac_res
13576 echo "$as_me: failed program was:" >&5
13577 sed 's/^/| /' conftest.$ac_ext >&5
13582 rm -f core conftest.err conftest.$ac_objext \
13584 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13588 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13591 ac_cv_search_iJIT_IsProfilingActive=no
13593 rm conftest.$ac_ext
13594 LIBS=$ac_func_search_save_LIBS
13596 { echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13597 echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13598 ac_res=$ac_cv_search_iJIT_IsProfilingActive
13599 if test "$ac_res" != no; then
13600 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13604 echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13609 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13610 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13611 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13612 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13613 echo $ECHO_N "(cached) $ECHO_C" >&6
13615 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13616 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13618 # Is the header compilable?
13619 { echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13620 echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13621 cat >conftest.$ac_ext <<_ACEOF
13624 cat confdefs.h >>conftest.$ac_ext
13625 cat >>conftest.$ac_ext <<_ACEOF
13626 /* end confdefs.h. */
13627 $ac_includes_default
13628 #include <jitprofiling.h>
13630 rm -f conftest.$ac_objext
13631 if { (ac_try="$ac_compile"
13632 case "(($ac_try" in
13633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13634 *) ac_try_echo=$ac_try;;
13636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13637 (eval "$ac_compile") 2>conftest.er1
13639 grep -v '^ *+' conftest.er1 >conftest.err
13641 cat conftest.err >&5
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); } &&
13644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13645 { (case "(($ac_try" in
13646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13647 *) ac_try_echo=$ac_try;;
13649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13650 (eval "$ac_try") 2>&5
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); }; } &&
13654 { ac_try='test -s conftest.$ac_objext'
13655 { (case "(($ac_try" in
13656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13657 *) ac_try_echo=$ac_try;;
13659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13660 (eval "$ac_try") 2>&5
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); }; }; then
13664 ac_header_compiler=yes
13666 echo "$as_me: failed program was:" >&5
13667 sed 's/^/| /' conftest.$ac_ext >&5
13669 ac_header_compiler=no
13672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13673 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13674 echo "${ECHO_T}$ac_header_compiler" >&6; }
13676 # Is the header present?
13677 { echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13678 echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13679 cat >conftest.$ac_ext <<_ACEOF
13682 cat confdefs.h >>conftest.$ac_ext
13683 cat >>conftest.$ac_ext <<_ACEOF
13684 /* end confdefs.h. */
13685 #include <jitprofiling.h>
13687 if { (ac_try="$ac_cpp conftest.$ac_ext"
13688 case "(($ac_try" in
13689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13690 *) ac_try_echo=$ac_try;;
13692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13695 grep -v '^ *+' conftest.er1 >conftest.err
13697 cat conftest.err >&5
13698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); } >/dev/null; then
13700 if test -s conftest.err; then
13701 ac_cpp_err=$ac_c_preproc_warn_flag
13702 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13709 if test -z "$ac_cpp_err"; then
13710 ac_header_preproc=yes
13712 echo "$as_me: failed program was:" >&5
13713 sed 's/^/| /' conftest.$ac_ext >&5
13715 ac_header_preproc=no
13718 rm -f conftest.err conftest.$ac_ext
13719 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13720 echo "${ECHO_T}$ac_header_preproc" >&6; }
13722 # So? What about this header?
13723 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13725 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13726 echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13727 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13728 echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13729 ac_header_preproc=yes
13732 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13733 echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13734 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&5
13735 echo "$as_me: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&2;}
13736 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13737 echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13738 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&5
13739 echo "$as_me: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&2;}
13740 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13741 echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13742 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13743 echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13745 ## ------------------------------------ ##
13746 ## Report this to http://llvm.org/bugs/ ##
13747 ## ------------------------------------ ##
13749 ) | sed "s/^/$as_me: WARNING: /" >&2
13752 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13753 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13754 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13755 echo $ECHO_N "(cached) $ECHO_C" >&6
13757 ac_cv_header_jitprofiling_h=$ac_header_preproc
13759 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13760 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13763 if test $ac_cv_header_jitprofiling_h = yes; then
13767 echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13777 USE_INTEL_JITEVENTS=0
13783 cat >>confdefs.h <<_ACEOF
13784 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13794 ac_header_dirent=no
13795 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13796 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13797 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13798 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13800 echo $ECHO_N "(cached) $ECHO_C" >&6
13802 cat >conftest.$ac_ext <<_ACEOF
13805 cat confdefs.h >>conftest.$ac_ext
13806 cat >>conftest.$ac_ext <<_ACEOF
13807 /* end confdefs.h. */
13808 #include <sys/types.h>
13820 rm -f conftest.$ac_objext
13821 if { (ac_try="$ac_compile"
13822 case "(($ac_try" in
13823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13824 *) ac_try_echo=$ac_try;;
13826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13827 (eval "$ac_compile") 2>conftest.er1
13829 grep -v '^ *+' conftest.er1 >conftest.err
13831 cat conftest.err >&5
13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833 (exit $ac_status); } &&
13834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13835 { (case "(($ac_try" in
13836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13837 *) ac_try_echo=$ac_try;;
13839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13840 (eval "$ac_try") 2>&5
13842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843 (exit $ac_status); }; } &&
13844 { ac_try='test -s conftest.$ac_objext'
13845 { (case "(($ac_try" in
13846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13847 *) ac_try_echo=$ac_try;;
13849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13850 (eval "$ac_try") 2>&5
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); }; }; then
13854 eval "$as_ac_Header=yes"
13856 echo "$as_me: failed program was:" >&5
13857 sed 's/^/| /' conftest.$ac_ext >&5
13859 eval "$as_ac_Header=no"
13862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13864 ac_res=`eval echo '${'$as_ac_Header'}'`
13865 { echo "$as_me:$LINENO: result: $ac_res" >&5
13866 echo "${ECHO_T}$ac_res" >&6; }
13867 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13868 cat >>confdefs.h <<_ACEOF
13869 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13872 ac_header_dirent=$ac_hdr; break
13876 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13877 if test $ac_header_dirent = dirent.h; then
13878 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13879 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13880 if test "${ac_cv_search_opendir+set}" = set; then
13881 echo $ECHO_N "(cached) $ECHO_C" >&6
13883 ac_func_search_save_LIBS=$LIBS
13884 cat >conftest.$ac_ext <<_ACEOF
13887 cat confdefs.h >>conftest.$ac_ext
13888 cat >>conftest.$ac_ext <<_ACEOF
13889 /* end confdefs.h. */
13891 /* Override any GCC internal prototype to avoid an error.
13892 Use char because int might match the return type of a GCC
13893 builtin and then its argument prototype would still apply. */
13906 for ac_lib in '' dir; do
13907 if test -z "$ac_lib"; then
13908 ac_res="none required"
13911 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13913 rm -f conftest.$ac_objext conftest$ac_exeext
13914 if { (ac_try="$ac_link"
13915 case "(($ac_try" in
13916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13917 *) ac_try_echo=$ac_try;;
13919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13920 (eval "$ac_link") 2>conftest.er1
13922 grep -v '^ *+' conftest.er1 >conftest.err
13924 cat conftest.err >&5
13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 (exit $ac_status); } &&
13927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13928 { (case "(($ac_try" in
13929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13930 *) ac_try_echo=$ac_try;;
13932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13933 (eval "$ac_try") 2>&5
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); }; } &&
13937 { ac_try='test -s conftest$ac_exeext'
13938 { (case "(($ac_try" in
13939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13940 *) ac_try_echo=$ac_try;;
13942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13943 (eval "$ac_try") 2>&5
13945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); }; }; then
13947 ac_cv_search_opendir=$ac_res
13949 echo "$as_me: failed program was:" >&5
13950 sed 's/^/| /' conftest.$ac_ext >&5
13955 rm -f core conftest.err conftest.$ac_objext \
13957 if test "${ac_cv_search_opendir+set}" = set; then
13961 if test "${ac_cv_search_opendir+set}" = set; then
13964 ac_cv_search_opendir=no
13966 rm conftest.$ac_ext
13967 LIBS=$ac_func_search_save_LIBS
13969 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13970 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13971 ac_res=$ac_cv_search_opendir
13972 if test "$ac_res" != no; then
13973 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13978 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13979 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13980 if test "${ac_cv_search_opendir+set}" = set; then
13981 echo $ECHO_N "(cached) $ECHO_C" >&6
13983 ac_func_search_save_LIBS=$LIBS
13984 cat >conftest.$ac_ext <<_ACEOF
13987 cat confdefs.h >>conftest.$ac_ext
13988 cat >>conftest.$ac_ext <<_ACEOF
13989 /* end confdefs.h. */
13991 /* Override any GCC internal prototype to avoid an error.
13992 Use char because int might match the return type of a GCC
13993 builtin and then its argument prototype would still apply. */
14006 for ac_lib in '' x; do
14007 if test -z "$ac_lib"; then
14008 ac_res="none required"
14011 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14013 rm -f conftest.$ac_objext conftest$ac_exeext
14014 if { (ac_try="$ac_link"
14015 case "(($ac_try" in
14016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14017 *) ac_try_echo=$ac_try;;
14019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14020 (eval "$ac_link") 2>conftest.er1
14022 grep -v '^ *+' conftest.er1 >conftest.err
14024 cat conftest.err >&5
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); } &&
14027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14028 { (case "(($ac_try" in
14029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14030 *) ac_try_echo=$ac_try;;
14032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14033 (eval "$ac_try") 2>&5
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); }; } &&
14037 { ac_try='test -s conftest$ac_exeext'
14038 { (case "(($ac_try" in
14039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14040 *) ac_try_echo=$ac_try;;
14042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14043 (eval "$ac_try") 2>&5
14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); }; }; then
14047 ac_cv_search_opendir=$ac_res
14049 echo "$as_me: failed program was:" >&5
14050 sed 's/^/| /' conftest.$ac_ext >&5
14055 rm -f core conftest.err conftest.$ac_objext \
14057 if test "${ac_cv_search_opendir+set}" = set; then
14061 if test "${ac_cv_search_opendir+set}" = set; then
14064 ac_cv_search_opendir=no
14066 rm conftest.$ac_ext
14067 LIBS=$ac_func_search_save_LIBS
14069 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14070 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14071 ac_res=$ac_cv_search_opendir
14072 if test "$ac_res" != no; then
14073 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14079 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14080 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14081 if test "${ac_cv_header_mmap_anon+set}" = set; then
14082 echo $ECHO_N "(cached) $ECHO_C" >&6
14085 ac_cpp='$CPP $CPPFLAGS'
14086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14090 cat >conftest.$ac_ext <<_ACEOF
14093 cat confdefs.h >>conftest.$ac_ext
14094 cat >>conftest.$ac_ext <<_ACEOF
14095 /* end confdefs.h. */
14096 #include <sys/mman.h>
14097 #include <unistd.h>
14102 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14107 rm -f conftest.$ac_objext
14108 if { (ac_try="$ac_compile"
14109 case "(($ac_try" in
14110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14111 *) ac_try_echo=$ac_try;;
14113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14114 (eval "$ac_compile") 2>conftest.er1
14116 grep -v '^ *+' conftest.er1 >conftest.err
14118 cat conftest.err >&5
14119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120 (exit $ac_status); } &&
14121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14122 { (case "(($ac_try" in
14123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14124 *) ac_try_echo=$ac_try;;
14126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14127 (eval "$ac_try") 2>&5
14129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130 (exit $ac_status); }; } &&
14131 { ac_try='test -s conftest.$ac_objext'
14132 { (case "(($ac_try" in
14133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14134 *) ac_try_echo=$ac_try;;
14136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14137 (eval "$ac_try") 2>&5
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); }; }; then
14141 ac_cv_header_mmap_anon=yes
14143 echo "$as_me: failed program was:" >&5
14144 sed 's/^/| /' conftest.$ac_ext >&5
14146 ac_cv_header_mmap_anon=no
14149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14151 ac_cpp='$CPP $CPPFLAGS'
14152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14158 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14159 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14160 if test "$ac_cv_header_mmap_anon" = yes; then
14162 cat >>confdefs.h <<\_ACEOF
14163 #define HAVE_MMAP_ANONYMOUS 1
14168 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14169 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14170 if test "${ac_cv_header_stat_broken+set}" = set; then
14171 echo $ECHO_N "(cached) $ECHO_C" >&6
14173 cat >conftest.$ac_ext <<_ACEOF
14176 cat confdefs.h >>conftest.$ac_ext
14177 cat >>conftest.$ac_ext <<_ACEOF
14178 /* end confdefs.h. */
14179 #include <sys/types.h>
14180 #include <sys/stat.h>
14182 #if defined S_ISBLK && defined S_IFDIR
14183 # if S_ISBLK (S_IFDIR)
14188 #if defined S_ISBLK && defined S_IFCHR
14189 # if S_ISBLK (S_IFCHR)
14194 #if defined S_ISLNK && defined S_IFREG
14195 # if S_ISLNK (S_IFREG)
14200 #if defined S_ISSOCK && defined S_IFREG
14201 # if S_ISSOCK (S_IFREG)
14207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14208 $EGREP "You lose" >/dev/null 2>&1; then
14209 ac_cv_header_stat_broken=yes
14211 ac_cv_header_stat_broken=no
14216 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14217 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14218 if test $ac_cv_header_stat_broken = yes; then
14220 cat >>confdefs.h <<\_ACEOF
14221 #define STAT_MACROS_BROKEN 1
14226 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14227 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14228 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14229 echo $ECHO_N "(cached) $ECHO_C" >&6
14231 cat >conftest.$ac_ext <<_ACEOF
14234 cat confdefs.h >>conftest.$ac_ext
14235 cat >>conftest.$ac_ext <<_ACEOF
14236 /* end confdefs.h. */
14237 #include <sys/types.h>
14238 #include <sys/wait.h>
14239 #ifndef WEXITSTATUS
14240 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14243 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14251 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14256 rm -f conftest.$ac_objext
14257 if { (ac_try="$ac_compile"
14258 case "(($ac_try" in
14259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14260 *) ac_try_echo=$ac_try;;
14262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14263 (eval "$ac_compile") 2>conftest.er1
14265 grep -v '^ *+' conftest.er1 >conftest.err
14267 cat conftest.err >&5
14268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269 (exit $ac_status); } &&
14270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14271 { (case "(($ac_try" in
14272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14273 *) ac_try_echo=$ac_try;;
14275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14276 (eval "$ac_try") 2>&5
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); }; } &&
14280 { ac_try='test -s conftest.$ac_objext'
14281 { (case "(($ac_try" in
14282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14283 *) ac_try_echo=$ac_try;;
14285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14286 (eval "$ac_try") 2>&5
14288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289 (exit $ac_status); }; }; then
14290 ac_cv_header_sys_wait_h=yes
14292 echo "$as_me: failed program was:" >&5
14293 sed 's/^/| /' conftest.$ac_ext >&5
14295 ac_cv_header_sys_wait_h=no
14298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14300 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14301 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14302 if test $ac_cv_header_sys_wait_h = yes; then
14304 cat >>confdefs.h <<\_ACEOF
14305 #define HAVE_SYS_WAIT_H 1
14310 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14311 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14312 if test "${ac_cv_header_time+set}" = set; then
14313 echo $ECHO_N "(cached) $ECHO_C" >&6
14315 cat >conftest.$ac_ext <<_ACEOF
14318 cat confdefs.h >>conftest.$ac_ext
14319 cat >>conftest.$ac_ext <<_ACEOF
14320 /* end confdefs.h. */
14321 #include <sys/types.h>
14322 #include <sys/time.h>
14328 if ((struct tm *) 0)
14334 rm -f conftest.$ac_objext
14335 if { (ac_try="$ac_compile"
14336 case "(($ac_try" in
14337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14338 *) ac_try_echo=$ac_try;;
14340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14341 (eval "$ac_compile") 2>conftest.er1
14343 grep -v '^ *+' conftest.er1 >conftest.err
14345 cat conftest.err >&5
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); } &&
14348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14349 { (case "(($ac_try" in
14350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14351 *) ac_try_echo=$ac_try;;
14353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14354 (eval "$ac_try") 2>&5
14356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357 (exit $ac_status); }; } &&
14358 { ac_try='test -s conftest.$ac_objext'
14359 { (case "(($ac_try" in
14360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14361 *) ac_try_echo=$ac_try;;
14363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14364 (eval "$ac_try") 2>&5
14366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367 (exit $ac_status); }; }; then
14368 ac_cv_header_time=yes
14370 echo "$as_me: failed program was:" >&5
14371 sed 's/^/| /' conftest.$ac_ext >&5
14373 ac_cv_header_time=no
14376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14378 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14379 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14380 if test $ac_cv_header_time = yes; then
14382 cat >>confdefs.h <<\_ACEOF
14383 #define TIME_WITH_SYS_TIME 1
14395 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14397 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14399 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14402 echo $ECHO_N "(cached) $ECHO_C" >&6
14404 ac_res=`eval echo '${'$as_ac_Header'}'`
14405 { echo "$as_me:$LINENO: result: $ac_res" >&5
14406 echo "${ECHO_T}$ac_res" >&6; }
14408 # Is the header compilable?
14409 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14410 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14411 cat >conftest.$ac_ext <<_ACEOF
14414 cat confdefs.h >>conftest.$ac_ext
14415 cat >>conftest.$ac_ext <<_ACEOF
14416 /* end confdefs.h. */
14417 $ac_includes_default
14418 #include <$ac_header>
14420 rm -f conftest.$ac_objext
14421 if { (ac_try="$ac_compile"
14422 case "(($ac_try" in
14423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14424 *) ac_try_echo=$ac_try;;
14426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14427 (eval "$ac_compile") 2>conftest.er1
14429 grep -v '^ *+' conftest.er1 >conftest.err
14431 cat conftest.err >&5
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); } &&
14434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14435 { (case "(($ac_try" in
14436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14437 *) ac_try_echo=$ac_try;;
14439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14440 (eval "$ac_try") 2>&5
14442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443 (exit $ac_status); }; } &&
14444 { ac_try='test -s conftest.$ac_objext'
14445 { (case "(($ac_try" in
14446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14447 *) ac_try_echo=$ac_try;;
14449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14450 (eval "$ac_try") 2>&5
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); }; }; then
14454 ac_header_compiler=yes
14456 echo "$as_me: failed program was:" >&5
14457 sed 's/^/| /' conftest.$ac_ext >&5
14459 ac_header_compiler=no
14462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14463 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14464 echo "${ECHO_T}$ac_header_compiler" >&6; }
14466 # Is the header present?
14467 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14468 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14469 cat >conftest.$ac_ext <<_ACEOF
14472 cat confdefs.h >>conftest.$ac_ext
14473 cat >>conftest.$ac_ext <<_ACEOF
14474 /* end confdefs.h. */
14475 #include <$ac_header>
14477 if { (ac_try="$ac_cpp conftest.$ac_ext"
14478 case "(($ac_try" in
14479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14480 *) ac_try_echo=$ac_try;;
14482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14485 grep -v '^ *+' conftest.er1 >conftest.err
14487 cat conftest.err >&5
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); } >/dev/null; then
14490 if test -s conftest.err; then
14491 ac_cpp_err=$ac_c_preproc_warn_flag
14492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14499 if test -z "$ac_cpp_err"; then
14500 ac_header_preproc=yes
14502 echo "$as_me: failed program was:" >&5
14503 sed 's/^/| /' conftest.$ac_ext >&5
14505 ac_header_preproc=no
14508 rm -f conftest.err conftest.$ac_ext
14509 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14510 echo "${ECHO_T}$ac_header_preproc" >&6; }
14512 # So? What about this header?
14513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14515 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14516 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14518 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14519 ac_header_preproc=yes
14522 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14523 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14524 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14525 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14526 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14527 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14528 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14529 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14531 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14532 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14533 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14535 ## ------------------------------------ ##
14536 ## Report this to http://llvm.org/bugs/ ##
14537 ## ------------------------------------ ##
14539 ) | sed "s/^/$as_me: WARNING: /" >&2
14542 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14545 echo $ECHO_N "(cached) $ECHO_C" >&6
14547 eval "$as_ac_Header=\$ac_header_preproc"
14549 ac_res=`eval echo '${'$as_ac_Header'}'`
14550 { echo "$as_me:$LINENO: result: $ac_res" >&5
14551 echo "${ECHO_T}$ac_res" >&6; }
14554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14555 cat >>confdefs.h <<_ACEOF
14556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14569 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14571 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14573 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14576 echo $ECHO_N "(cached) $ECHO_C" >&6
14578 ac_res=`eval echo '${'$as_ac_Header'}'`
14579 { echo "$as_me:$LINENO: result: $ac_res" >&5
14580 echo "${ECHO_T}$ac_res" >&6; }
14582 # Is the header compilable?
14583 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14584 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14585 cat >conftest.$ac_ext <<_ACEOF
14588 cat confdefs.h >>conftest.$ac_ext
14589 cat >>conftest.$ac_ext <<_ACEOF
14590 /* end confdefs.h. */
14591 $ac_includes_default
14592 #include <$ac_header>
14594 rm -f conftest.$ac_objext
14595 if { (ac_try="$ac_compile"
14596 case "(($ac_try" in
14597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14598 *) ac_try_echo=$ac_try;;
14600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14601 (eval "$ac_compile") 2>conftest.er1
14603 grep -v '^ *+' conftest.er1 >conftest.err
14605 cat conftest.err >&5
14606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607 (exit $ac_status); } &&
14608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14609 { (case "(($ac_try" in
14610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14611 *) ac_try_echo=$ac_try;;
14613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14614 (eval "$ac_try") 2>&5
14616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617 (exit $ac_status); }; } &&
14618 { ac_try='test -s conftest.$ac_objext'
14619 { (case "(($ac_try" in
14620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14621 *) ac_try_echo=$ac_try;;
14623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14624 (eval "$ac_try") 2>&5
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); }; }; then
14628 ac_header_compiler=yes
14630 echo "$as_me: failed program was:" >&5
14631 sed 's/^/| /' conftest.$ac_ext >&5
14633 ac_header_compiler=no
14636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14637 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14638 echo "${ECHO_T}$ac_header_compiler" >&6; }
14640 # Is the header present?
14641 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14642 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14643 cat >conftest.$ac_ext <<_ACEOF
14646 cat confdefs.h >>conftest.$ac_ext
14647 cat >>conftest.$ac_ext <<_ACEOF
14648 /* end confdefs.h. */
14649 #include <$ac_header>
14651 if { (ac_try="$ac_cpp conftest.$ac_ext"
14652 case "(($ac_try" in
14653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14654 *) ac_try_echo=$ac_try;;
14656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14657 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14659 grep -v '^ *+' conftest.er1 >conftest.err
14661 cat conftest.err >&5
14662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663 (exit $ac_status); } >/dev/null; then
14664 if test -s conftest.err; then
14665 ac_cpp_err=$ac_c_preproc_warn_flag
14666 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14673 if test -z "$ac_cpp_err"; then
14674 ac_header_preproc=yes
14676 echo "$as_me: failed program was:" >&5
14677 sed 's/^/| /' conftest.$ac_ext >&5
14679 ac_header_preproc=no
14682 rm -f conftest.err conftest.$ac_ext
14683 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14684 echo "${ECHO_T}$ac_header_preproc" >&6; }
14686 # So? What about this header?
14687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14689 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14690 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14692 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14693 ac_header_preproc=yes
14696 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14697 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14698 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14699 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14700 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14701 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14702 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14703 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14705 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14706 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14707 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14709 ## ------------------------------------ ##
14710 ## Report this to http://llvm.org/bugs/ ##
14711 ## ------------------------------------ ##
14713 ) | sed "s/^/$as_me: WARNING: /" >&2
14716 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14719 echo $ECHO_N "(cached) $ECHO_C" >&6
14721 eval "$as_ac_Header=\$ac_header_preproc"
14723 ac_res=`eval echo '${'$as_ac_Header'}'`
14724 { echo "$as_me:$LINENO: result: $ac_res" >&5
14725 echo "${ECHO_T}$ac_res" >&6; }
14728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14729 cat >>confdefs.h <<_ACEOF
14730 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14739 for ac_header in utime.h windows.h
14741 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14743 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14746 echo $ECHO_N "(cached) $ECHO_C" >&6
14748 ac_res=`eval echo '${'$as_ac_Header'}'`
14749 { echo "$as_me:$LINENO: result: $ac_res" >&5
14750 echo "${ECHO_T}$ac_res" >&6; }
14752 # Is the header compilable?
14753 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14754 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14755 cat >conftest.$ac_ext <<_ACEOF
14758 cat confdefs.h >>conftest.$ac_ext
14759 cat >>conftest.$ac_ext <<_ACEOF
14760 /* end confdefs.h. */
14761 $ac_includes_default
14762 #include <$ac_header>
14764 rm -f conftest.$ac_objext
14765 if { (ac_try="$ac_compile"
14766 case "(($ac_try" in
14767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14768 *) ac_try_echo=$ac_try;;
14770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14771 (eval "$ac_compile") 2>conftest.er1
14773 grep -v '^ *+' conftest.er1 >conftest.err
14775 cat conftest.err >&5
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); } &&
14778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14779 { (case "(($ac_try" in
14780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14781 *) ac_try_echo=$ac_try;;
14783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14784 (eval "$ac_try") 2>&5
14786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787 (exit $ac_status); }; } &&
14788 { ac_try='test -s conftest.$ac_objext'
14789 { (case "(($ac_try" in
14790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14791 *) ac_try_echo=$ac_try;;
14793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14794 (eval "$ac_try") 2>&5
14796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797 (exit $ac_status); }; }; then
14798 ac_header_compiler=yes
14800 echo "$as_me: failed program was:" >&5
14801 sed 's/^/| /' conftest.$ac_ext >&5
14803 ac_header_compiler=no
14806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14807 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14808 echo "${ECHO_T}$ac_header_compiler" >&6; }
14810 # Is the header present?
14811 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14812 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14813 cat >conftest.$ac_ext <<_ACEOF
14816 cat confdefs.h >>conftest.$ac_ext
14817 cat >>conftest.$ac_ext <<_ACEOF
14818 /* end confdefs.h. */
14819 #include <$ac_header>
14821 if { (ac_try="$ac_cpp conftest.$ac_ext"
14822 case "(($ac_try" in
14823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14824 *) ac_try_echo=$ac_try;;
14826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14829 grep -v '^ *+' conftest.er1 >conftest.err
14831 cat conftest.err >&5
14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 (exit $ac_status); } >/dev/null; then
14834 if test -s conftest.err; then
14835 ac_cpp_err=$ac_c_preproc_warn_flag
14836 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14843 if test -z "$ac_cpp_err"; then
14844 ac_header_preproc=yes
14846 echo "$as_me: failed program was:" >&5
14847 sed 's/^/| /' conftest.$ac_ext >&5
14849 ac_header_preproc=no
14852 rm -f conftest.err conftest.$ac_ext
14853 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14854 echo "${ECHO_T}$ac_header_preproc" >&6; }
14856 # So? What about this header?
14857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14859 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14860 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14862 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14863 ac_header_preproc=yes
14866 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14867 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14868 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14869 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14870 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14871 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14872 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14873 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14875 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14876 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14877 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14879 ## ------------------------------------ ##
14880 ## Report this to http://llvm.org/bugs/ ##
14881 ## ------------------------------------ ##
14883 ) | sed "s/^/$as_me: WARNING: /" >&2
14886 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14889 echo $ECHO_N "(cached) $ECHO_C" >&6
14891 eval "$as_ac_Header=\$ac_header_preproc"
14893 ac_res=`eval echo '${'$as_ac_Header'}'`
14894 { echo "$as_me:$LINENO: result: $ac_res" >&5
14895 echo "${ECHO_T}$ac_res" >&6; }
14898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14899 cat >>confdefs.h <<_ACEOF
14900 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14912 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14914 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14916 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14919 echo $ECHO_N "(cached) $ECHO_C" >&6
14921 ac_res=`eval echo '${'$as_ac_Header'}'`
14922 { echo "$as_me:$LINENO: result: $ac_res" >&5
14923 echo "${ECHO_T}$ac_res" >&6; }
14925 # Is the header compilable?
14926 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14927 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14928 cat >conftest.$ac_ext <<_ACEOF
14931 cat confdefs.h >>conftest.$ac_ext
14932 cat >>conftest.$ac_ext <<_ACEOF
14933 /* end confdefs.h. */
14934 $ac_includes_default
14935 #include <$ac_header>
14937 rm -f conftest.$ac_objext
14938 if { (ac_try="$ac_compile"
14939 case "(($ac_try" in
14940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14941 *) ac_try_echo=$ac_try;;
14943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14944 (eval "$ac_compile") 2>conftest.er1
14946 grep -v '^ *+' conftest.er1 >conftest.err
14948 cat conftest.err >&5
14949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950 (exit $ac_status); } &&
14951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14952 { (case "(($ac_try" in
14953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14954 *) ac_try_echo=$ac_try;;
14956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14957 (eval "$ac_try") 2>&5
14959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960 (exit $ac_status); }; } &&
14961 { ac_try='test -s conftest.$ac_objext'
14962 { (case "(($ac_try" in
14963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14964 *) ac_try_echo=$ac_try;;
14966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14967 (eval "$ac_try") 2>&5
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); }; }; then
14971 ac_header_compiler=yes
14973 echo "$as_me: failed program was:" >&5
14974 sed 's/^/| /' conftest.$ac_ext >&5
14976 ac_header_compiler=no
14979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14980 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14981 echo "${ECHO_T}$ac_header_compiler" >&6; }
14983 # Is the header present?
14984 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14985 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14986 cat >conftest.$ac_ext <<_ACEOF
14989 cat confdefs.h >>conftest.$ac_ext
14990 cat >>conftest.$ac_ext <<_ACEOF
14991 /* end confdefs.h. */
14992 #include <$ac_header>
14994 if { (ac_try="$ac_cpp conftest.$ac_ext"
14995 case "(($ac_try" in
14996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14997 *) ac_try_echo=$ac_try;;
14999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15002 grep -v '^ *+' conftest.er1 >conftest.err
15004 cat conftest.err >&5
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); } >/dev/null; then
15007 if test -s conftest.err; then
15008 ac_cpp_err=$ac_c_preproc_warn_flag
15009 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15016 if test -z "$ac_cpp_err"; then
15017 ac_header_preproc=yes
15019 echo "$as_me: failed program was:" >&5
15020 sed 's/^/| /' conftest.$ac_ext >&5
15022 ac_header_preproc=no
15025 rm -f conftest.err conftest.$ac_ext
15026 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15027 echo "${ECHO_T}$ac_header_preproc" >&6; }
15029 # So? What about this header?
15030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15032 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15033 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15035 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15036 ac_header_preproc=yes
15039 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15040 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15041 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15042 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15043 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15044 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15045 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15046 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15048 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15049 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15050 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15052 ## ------------------------------------ ##
15053 ## Report this to http://llvm.org/bugs/ ##
15054 ## ------------------------------------ ##
15056 ) | sed "s/^/$as_me: WARNING: /" >&2
15059 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15062 echo $ECHO_N "(cached) $ECHO_C" >&6
15064 eval "$as_ac_Header=\$ac_header_preproc"
15066 ac_res=`eval echo '${'$as_ac_Header'}'`
15067 { echo "$as_me:$LINENO: result: $ac_res" >&5
15068 echo "${ECHO_T}$ac_res" >&6; }
15071 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15072 cat >>confdefs.h <<_ACEOF
15073 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15084 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15086 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15088 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15091 echo $ECHO_N "(cached) $ECHO_C" >&6
15093 ac_res=`eval echo '${'$as_ac_Header'}'`
15094 { echo "$as_me:$LINENO: result: $ac_res" >&5
15095 echo "${ECHO_T}$ac_res" >&6; }
15097 # Is the header compilable?
15098 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15099 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15100 cat >conftest.$ac_ext <<_ACEOF
15103 cat confdefs.h >>conftest.$ac_ext
15104 cat >>conftest.$ac_ext <<_ACEOF
15105 /* end confdefs.h. */
15106 $ac_includes_default
15107 #include <$ac_header>
15109 rm -f conftest.$ac_objext
15110 if { (ac_try="$ac_compile"
15111 case "(($ac_try" in
15112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15113 *) ac_try_echo=$ac_try;;
15115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15116 (eval "$ac_compile") 2>conftest.er1
15118 grep -v '^ *+' conftest.er1 >conftest.err
15120 cat conftest.err >&5
15121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122 (exit $ac_status); } &&
15123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15124 { (case "(($ac_try" in
15125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15126 *) ac_try_echo=$ac_try;;
15128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15129 (eval "$ac_try") 2>&5
15131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132 (exit $ac_status); }; } &&
15133 { ac_try='test -s conftest.$ac_objext'
15134 { (case "(($ac_try" in
15135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15136 *) ac_try_echo=$ac_try;;
15138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15139 (eval "$ac_try") 2>&5
15141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 (exit $ac_status); }; }; then
15143 ac_header_compiler=yes
15145 echo "$as_me: failed program was:" >&5
15146 sed 's/^/| /' conftest.$ac_ext >&5
15148 ac_header_compiler=no
15151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15152 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15153 echo "${ECHO_T}$ac_header_compiler" >&6; }
15155 # Is the header present?
15156 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15157 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15158 cat >conftest.$ac_ext <<_ACEOF
15161 cat confdefs.h >>conftest.$ac_ext
15162 cat >>conftest.$ac_ext <<_ACEOF
15163 /* end confdefs.h. */
15164 #include <$ac_header>
15166 if { (ac_try="$ac_cpp conftest.$ac_ext"
15167 case "(($ac_try" in
15168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15169 *) ac_try_echo=$ac_try;;
15171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15172 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15174 grep -v '^ *+' conftest.er1 >conftest.err
15176 cat conftest.err >&5
15177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178 (exit $ac_status); } >/dev/null; then
15179 if test -s conftest.err; then
15180 ac_cpp_err=$ac_c_preproc_warn_flag
15181 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15188 if test -z "$ac_cpp_err"; then
15189 ac_header_preproc=yes
15191 echo "$as_me: failed program was:" >&5
15192 sed 's/^/| /' conftest.$ac_ext >&5
15194 ac_header_preproc=no
15197 rm -f conftest.err conftest.$ac_ext
15198 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15199 echo "${ECHO_T}$ac_header_preproc" >&6; }
15201 # So? What about this header?
15202 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15204 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15205 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15207 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15208 ac_header_preproc=yes
15211 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15212 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15213 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15214 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15215 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15216 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15217 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15218 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15220 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15221 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15222 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15224 ## ------------------------------------ ##
15225 ## Report this to http://llvm.org/bugs/ ##
15226 ## ------------------------------------ ##
15228 ) | sed "s/^/$as_me: WARNING: /" >&2
15231 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15234 echo $ECHO_N "(cached) $ECHO_C" >&6
15236 eval "$as_ac_Header=\$ac_header_preproc"
15238 ac_res=`eval echo '${'$as_ac_Header'}'`
15239 { echo "$as_me:$LINENO: result: $ac_res" >&5
15240 echo "${ECHO_T}$ac_res" >&6; }
15243 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15244 cat >>confdefs.h <<_ACEOF
15245 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15253 for ac_header in valgrind/valgrind.h
15255 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15257 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15260 echo $ECHO_N "(cached) $ECHO_C" >&6
15262 ac_res=`eval echo '${'$as_ac_Header'}'`
15263 { echo "$as_me:$LINENO: result: $ac_res" >&5
15264 echo "${ECHO_T}$ac_res" >&6; }
15266 # Is the header compilable?
15267 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15268 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15269 cat >conftest.$ac_ext <<_ACEOF
15272 cat confdefs.h >>conftest.$ac_ext
15273 cat >>conftest.$ac_ext <<_ACEOF
15274 /* end confdefs.h. */
15275 $ac_includes_default
15276 #include <$ac_header>
15278 rm -f conftest.$ac_objext
15279 if { (ac_try="$ac_compile"
15280 case "(($ac_try" in
15281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15282 *) ac_try_echo=$ac_try;;
15284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15285 (eval "$ac_compile") 2>conftest.er1
15287 grep -v '^ *+' conftest.er1 >conftest.err
15289 cat conftest.err >&5
15290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291 (exit $ac_status); } &&
15292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15293 { (case "(($ac_try" in
15294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15295 *) ac_try_echo=$ac_try;;
15297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15298 (eval "$ac_try") 2>&5
15300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301 (exit $ac_status); }; } &&
15302 { ac_try='test -s conftest.$ac_objext'
15303 { (case "(($ac_try" in
15304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15305 *) ac_try_echo=$ac_try;;
15307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15308 (eval "$ac_try") 2>&5
15310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 (exit $ac_status); }; }; then
15312 ac_header_compiler=yes
15314 echo "$as_me: failed program was:" >&5
15315 sed 's/^/| /' conftest.$ac_ext >&5
15317 ac_header_compiler=no
15320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15321 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15322 echo "${ECHO_T}$ac_header_compiler" >&6; }
15324 # Is the header present?
15325 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15326 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15327 cat >conftest.$ac_ext <<_ACEOF
15330 cat confdefs.h >>conftest.$ac_ext
15331 cat >>conftest.$ac_ext <<_ACEOF
15332 /* end confdefs.h. */
15333 #include <$ac_header>
15335 if { (ac_try="$ac_cpp conftest.$ac_ext"
15336 case "(($ac_try" in
15337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15338 *) ac_try_echo=$ac_try;;
15340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15343 grep -v '^ *+' conftest.er1 >conftest.err
15345 cat conftest.err >&5
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); } >/dev/null; then
15348 if test -s conftest.err; then
15349 ac_cpp_err=$ac_c_preproc_warn_flag
15350 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15357 if test -z "$ac_cpp_err"; then
15358 ac_header_preproc=yes
15360 echo "$as_me: failed program was:" >&5
15361 sed 's/^/| /' conftest.$ac_ext >&5
15363 ac_header_preproc=no
15366 rm -f conftest.err conftest.$ac_ext
15367 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15368 echo "${ECHO_T}$ac_header_preproc" >&6; }
15370 # So? What about this header?
15371 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15373 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15374 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15376 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15377 ac_header_preproc=yes
15380 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15381 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15382 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15383 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15384 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15385 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15386 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15387 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15389 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15390 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15391 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15393 ## ------------------------------------ ##
15394 ## Report this to http://llvm.org/bugs/ ##
15395 ## ------------------------------------ ##
15397 ) | sed "s/^/$as_me: WARNING: /" >&2
15400 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15403 echo $ECHO_N "(cached) $ECHO_C" >&6
15405 eval "$as_ac_Header=\$ac_header_preproc"
15407 ac_res=`eval echo '${'$as_ac_Header'}'`
15408 { echo "$as_me:$LINENO: result: $ac_res" >&5
15409 echo "${ECHO_T}$ac_res" >&6; }
15412 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15413 cat >>confdefs.h <<_ACEOF
15414 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15422 for ac_header in fenv.h
15424 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15426 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15429 echo $ECHO_N "(cached) $ECHO_C" >&6
15431 ac_res=`eval echo '${'$as_ac_Header'}'`
15432 { echo "$as_me:$LINENO: result: $ac_res" >&5
15433 echo "${ECHO_T}$ac_res" >&6; }
15435 # Is the header compilable?
15436 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15437 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15438 cat >conftest.$ac_ext <<_ACEOF
15441 cat confdefs.h >>conftest.$ac_ext
15442 cat >>conftest.$ac_ext <<_ACEOF
15443 /* end confdefs.h. */
15444 $ac_includes_default
15445 #include <$ac_header>
15447 rm -f conftest.$ac_objext
15448 if { (ac_try="$ac_compile"
15449 case "(($ac_try" in
15450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15451 *) ac_try_echo=$ac_try;;
15453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15454 (eval "$ac_compile") 2>conftest.er1
15456 grep -v '^ *+' conftest.er1 >conftest.err
15458 cat conftest.err >&5
15459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460 (exit $ac_status); } &&
15461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15462 { (case "(($ac_try" in
15463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15464 *) ac_try_echo=$ac_try;;
15466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15467 (eval "$ac_try") 2>&5
15469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470 (exit $ac_status); }; } &&
15471 { ac_try='test -s conftest.$ac_objext'
15472 { (case "(($ac_try" in
15473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15474 *) ac_try_echo=$ac_try;;
15476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15477 (eval "$ac_try") 2>&5
15479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480 (exit $ac_status); }; }; then
15481 ac_header_compiler=yes
15483 echo "$as_me: failed program was:" >&5
15484 sed 's/^/| /' conftest.$ac_ext >&5
15486 ac_header_compiler=no
15489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15490 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15491 echo "${ECHO_T}$ac_header_compiler" >&6; }
15493 # Is the header present?
15494 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15495 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15496 cat >conftest.$ac_ext <<_ACEOF
15499 cat confdefs.h >>conftest.$ac_ext
15500 cat >>conftest.$ac_ext <<_ACEOF
15501 /* end confdefs.h. */
15502 #include <$ac_header>
15504 if { (ac_try="$ac_cpp conftest.$ac_ext"
15505 case "(($ac_try" in
15506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15507 *) ac_try_echo=$ac_try;;
15509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15510 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15512 grep -v '^ *+' conftest.er1 >conftest.err
15514 cat conftest.err >&5
15515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516 (exit $ac_status); } >/dev/null; then
15517 if test -s conftest.err; then
15518 ac_cpp_err=$ac_c_preproc_warn_flag
15519 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15526 if test -z "$ac_cpp_err"; then
15527 ac_header_preproc=yes
15529 echo "$as_me: failed program was:" >&5
15530 sed 's/^/| /' conftest.$ac_ext >&5
15532 ac_header_preproc=no
15535 rm -f conftest.err conftest.$ac_ext
15536 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15537 echo "${ECHO_T}$ac_header_preproc" >&6; }
15539 # So? What about this header?
15540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15542 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15543 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15545 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15546 ac_header_preproc=yes
15549 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15550 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15551 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15552 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15553 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15554 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15555 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15556 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15558 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15559 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15560 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15562 ## ------------------------------------ ##
15563 ## Report this to http://llvm.org/bugs/ ##
15564 ## ------------------------------------ ##
15566 ) | sed "s/^/$as_me: WARNING: /" >&2
15569 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15572 echo $ECHO_N "(cached) $ECHO_C" >&6
15574 eval "$as_ac_Header=\$ac_header_preproc"
15576 ac_res=`eval echo '${'$as_ac_Header'}'`
15577 { echo "$as_me:$LINENO: result: $ac_res" >&5
15578 echo "${ECHO_T}$ac_res" >&6; }
15581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15582 cat >>confdefs.h <<_ACEOF
15583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15590 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15592 for ac_header in pthread.h
15594 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15596 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15599 echo $ECHO_N "(cached) $ECHO_C" >&6
15601 ac_res=`eval echo '${'$as_ac_Header'}'`
15602 { echo "$as_me:$LINENO: result: $ac_res" >&5
15603 echo "${ECHO_T}$ac_res" >&6; }
15605 # Is the header compilable?
15606 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15607 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15608 cat >conftest.$ac_ext <<_ACEOF
15611 cat confdefs.h >>conftest.$ac_ext
15612 cat >>conftest.$ac_ext <<_ACEOF
15613 /* end confdefs.h. */
15614 $ac_includes_default
15615 #include <$ac_header>
15617 rm -f conftest.$ac_objext
15618 if { (ac_try="$ac_compile"
15619 case "(($ac_try" in
15620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15621 *) ac_try_echo=$ac_try;;
15623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15624 (eval "$ac_compile") 2>conftest.er1
15626 grep -v '^ *+' conftest.er1 >conftest.err
15628 cat conftest.err >&5
15629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630 (exit $ac_status); } &&
15631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15632 { (case "(($ac_try" in
15633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15634 *) ac_try_echo=$ac_try;;
15636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15637 (eval "$ac_try") 2>&5
15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 (exit $ac_status); }; } &&
15641 { ac_try='test -s conftest.$ac_objext'
15642 { (case "(($ac_try" in
15643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15644 *) ac_try_echo=$ac_try;;
15646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15647 (eval "$ac_try") 2>&5
15649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 (exit $ac_status); }; }; then
15651 ac_header_compiler=yes
15653 echo "$as_me: failed program was:" >&5
15654 sed 's/^/| /' conftest.$ac_ext >&5
15656 ac_header_compiler=no
15659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15660 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15661 echo "${ECHO_T}$ac_header_compiler" >&6; }
15663 # Is the header present?
15664 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15665 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15666 cat >conftest.$ac_ext <<_ACEOF
15669 cat confdefs.h >>conftest.$ac_ext
15670 cat >>conftest.$ac_ext <<_ACEOF
15671 /* end confdefs.h. */
15672 #include <$ac_header>
15674 if { (ac_try="$ac_cpp conftest.$ac_ext"
15675 case "(($ac_try" in
15676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15677 *) ac_try_echo=$ac_try;;
15679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15682 grep -v '^ *+' conftest.er1 >conftest.err
15684 cat conftest.err >&5
15685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686 (exit $ac_status); } >/dev/null; then
15687 if test -s conftest.err; then
15688 ac_cpp_err=$ac_c_preproc_warn_flag
15689 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15696 if test -z "$ac_cpp_err"; then
15697 ac_header_preproc=yes
15699 echo "$as_me: failed program was:" >&5
15700 sed 's/^/| /' conftest.$ac_ext >&5
15702 ac_header_preproc=no
15705 rm -f conftest.err conftest.$ac_ext
15706 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15707 echo "${ECHO_T}$ac_header_preproc" >&6; }
15709 # So? What about this header?
15710 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15712 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15713 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15715 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15716 ac_header_preproc=yes
15719 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15720 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15721 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15722 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15723 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15724 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15725 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15726 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15728 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15729 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15730 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15732 ## ------------------------------------ ##
15733 ## Report this to http://llvm.org/bugs/ ##
15734 ## ------------------------------------ ##
15736 ) | sed "s/^/$as_me: WARNING: /" >&2
15739 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15742 echo $ECHO_N "(cached) $ECHO_C" >&6
15744 eval "$as_ac_Header=\$ac_header_preproc"
15746 ac_res=`eval echo '${'$as_ac_Header'}'`
15747 { echo "$as_me:$LINENO: result: $ac_res" >&5
15748 echo "${ECHO_T}$ac_res" >&6; }
15751 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15752 cat >>confdefs.h <<_ACEOF
15753 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15769 if test "$llvm_cv_enable_libffi" = "yes" ; then
15772 for ac_header in ffi.h ffi/ffi.h
15774 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15776 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15779 echo $ECHO_N "(cached) $ECHO_C" >&6
15781 ac_res=`eval echo '${'$as_ac_Header'}'`
15782 { echo "$as_me:$LINENO: result: $ac_res" >&5
15783 echo "${ECHO_T}$ac_res" >&6; }
15785 # Is the header compilable?
15786 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15787 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15788 cat >conftest.$ac_ext <<_ACEOF
15791 cat confdefs.h >>conftest.$ac_ext
15792 cat >>conftest.$ac_ext <<_ACEOF
15793 /* end confdefs.h. */
15794 $ac_includes_default
15795 #include <$ac_header>
15797 rm -f conftest.$ac_objext
15798 if { (ac_try="$ac_compile"
15799 case "(($ac_try" in
15800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15801 *) ac_try_echo=$ac_try;;
15803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15804 (eval "$ac_compile") 2>conftest.er1
15806 grep -v '^ *+' conftest.er1 >conftest.err
15808 cat conftest.err >&5
15809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810 (exit $ac_status); } &&
15811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15812 { (case "(($ac_try" in
15813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15814 *) ac_try_echo=$ac_try;;
15816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15817 (eval "$ac_try") 2>&5
15819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820 (exit $ac_status); }; } &&
15821 { ac_try='test -s conftest.$ac_objext'
15822 { (case "(($ac_try" in
15823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15824 *) ac_try_echo=$ac_try;;
15826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15827 (eval "$ac_try") 2>&5
15829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830 (exit $ac_status); }; }; then
15831 ac_header_compiler=yes
15833 echo "$as_me: failed program was:" >&5
15834 sed 's/^/| /' conftest.$ac_ext >&5
15836 ac_header_compiler=no
15839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15840 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15841 echo "${ECHO_T}$ac_header_compiler" >&6; }
15843 # Is the header present?
15844 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15845 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15846 cat >conftest.$ac_ext <<_ACEOF
15849 cat confdefs.h >>conftest.$ac_ext
15850 cat >>conftest.$ac_ext <<_ACEOF
15851 /* end confdefs.h. */
15852 #include <$ac_header>
15854 if { (ac_try="$ac_cpp conftest.$ac_ext"
15855 case "(($ac_try" in
15856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15857 *) ac_try_echo=$ac_try;;
15859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15860 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15862 grep -v '^ *+' conftest.er1 >conftest.err
15864 cat conftest.err >&5
15865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15866 (exit $ac_status); } >/dev/null; then
15867 if test -s conftest.err; then
15868 ac_cpp_err=$ac_c_preproc_warn_flag
15869 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15876 if test -z "$ac_cpp_err"; then
15877 ac_header_preproc=yes
15879 echo "$as_me: failed program was:" >&5
15880 sed 's/^/| /' conftest.$ac_ext >&5
15882 ac_header_preproc=no
15885 rm -f conftest.err conftest.$ac_ext
15886 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15887 echo "${ECHO_T}$ac_header_preproc" >&6; }
15889 # So? What about this header?
15890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15892 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15893 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15895 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15896 ac_header_preproc=yes
15899 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15900 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15901 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15902 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15903 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15904 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15905 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15906 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15908 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15909 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15910 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15912 ## ------------------------------------ ##
15913 ## Report this to http://llvm.org/bugs/ ##
15914 ## ------------------------------------ ##
15916 ) | sed "s/^/$as_me: WARNING: /" >&2
15919 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15922 echo $ECHO_N "(cached) $ECHO_C" >&6
15924 eval "$as_ac_Header=\$ac_header_preproc"
15926 ac_res=`eval echo '${'$as_ac_Header'}'`
15927 { echo "$as_me:$LINENO: result: $ac_res" >&5
15928 echo "${ECHO_T}$ac_res" >&6; }
15931 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15932 cat >>confdefs.h <<_ACEOF
15933 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15943 for ac_header in CrashReporterClient.h
15945 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15947 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15950 echo $ECHO_N "(cached) $ECHO_C" >&6
15952 ac_res=`eval echo '${'$as_ac_Header'}'`
15953 { echo "$as_me:$LINENO: result: $ac_res" >&5
15954 echo "${ECHO_T}$ac_res" >&6; }
15956 # Is the header compilable?
15957 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15958 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15959 cat >conftest.$ac_ext <<_ACEOF
15962 cat confdefs.h >>conftest.$ac_ext
15963 cat >>conftest.$ac_ext <<_ACEOF
15964 /* end confdefs.h. */
15965 $ac_includes_default
15966 #include <$ac_header>
15968 rm -f conftest.$ac_objext
15969 if { (ac_try="$ac_compile"
15970 case "(($ac_try" in
15971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15972 *) ac_try_echo=$ac_try;;
15974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15975 (eval "$ac_compile") 2>conftest.er1
15977 grep -v '^ *+' conftest.er1 >conftest.err
15979 cat conftest.err >&5
15980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15981 (exit $ac_status); } &&
15982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15983 { (case "(($ac_try" in
15984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15985 *) ac_try_echo=$ac_try;;
15987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15988 (eval "$ac_try") 2>&5
15990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15991 (exit $ac_status); }; } &&
15992 { ac_try='test -s conftest.$ac_objext'
15993 { (case "(($ac_try" in
15994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15995 *) ac_try_echo=$ac_try;;
15997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15998 (eval "$ac_try") 2>&5
16000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001 (exit $ac_status); }; }; then
16002 ac_header_compiler=yes
16004 echo "$as_me: failed program was:" >&5
16005 sed 's/^/| /' conftest.$ac_ext >&5
16007 ac_header_compiler=no
16010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16011 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16012 echo "${ECHO_T}$ac_header_compiler" >&6; }
16014 # Is the header present?
16015 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16016 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16017 cat >conftest.$ac_ext <<_ACEOF
16020 cat confdefs.h >>conftest.$ac_ext
16021 cat >>conftest.$ac_ext <<_ACEOF
16022 /* end confdefs.h. */
16023 #include <$ac_header>
16025 if { (ac_try="$ac_cpp conftest.$ac_ext"
16026 case "(($ac_try" in
16027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16028 *) ac_try_echo=$ac_try;;
16030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16031 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16033 grep -v '^ *+' conftest.er1 >conftest.err
16035 cat conftest.err >&5
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); } >/dev/null; then
16038 if test -s conftest.err; then
16039 ac_cpp_err=$ac_c_preproc_warn_flag
16040 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16047 if test -z "$ac_cpp_err"; then
16048 ac_header_preproc=yes
16050 echo "$as_me: failed program was:" >&5
16051 sed 's/^/| /' conftest.$ac_ext >&5
16053 ac_header_preproc=no
16056 rm -f conftest.err conftest.$ac_ext
16057 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16058 echo "${ECHO_T}$ac_header_preproc" >&6; }
16060 # So? What about this header?
16061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16063 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16064 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16066 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16067 ac_header_preproc=yes
16070 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16071 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16072 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16073 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16074 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16075 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16076 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16077 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16079 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16080 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16081 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16083 ## ------------------------------------ ##
16084 ## Report this to http://llvm.org/bugs/ ##
16085 ## ------------------------------------ ##
16087 ) | sed "s/^/$as_me: WARNING: /" >&2
16090 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16093 echo $ECHO_N "(cached) $ECHO_C" >&6
16095 eval "$as_ac_Header=\$ac_header_preproc"
16097 ac_res=`eval echo '${'$as_ac_Header'}'`
16098 { echo "$as_me:$LINENO: result: $ac_res" >&5
16099 echo "${ECHO_T}$ac_res" >&6; }
16102 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16103 cat >>confdefs.h <<_ACEOF
16104 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16112 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16113 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16114 cat >conftest.$ac_ext <<_ACEOF
16117 cat confdefs.h >>conftest.$ac_ext
16118 cat >>conftest.$ac_ext <<_ACEOF
16119 /* end confdefs.h. */
16120 extern const char *__crashreporter_info__;
16122 __crashreporter_info__ = "test";
16127 rm -f conftest.$ac_objext conftest$ac_exeext
16128 if { (ac_try="$ac_link"
16129 case "(($ac_try" in
16130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16131 *) ac_try_echo=$ac_try;;
16133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16134 (eval "$ac_link") 2>conftest.er1
16136 grep -v '^ *+' conftest.er1 >conftest.err
16138 cat conftest.err >&5
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); } &&
16141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16142 { (case "(($ac_try" in
16143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16144 *) ac_try_echo=$ac_try;;
16146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16147 (eval "$ac_try") 2>&5
16149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150 (exit $ac_status); }; } &&
16151 { ac_try='test -s conftest$ac_exeext'
16152 { (case "(($ac_try" in
16153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16154 *) ac_try_echo=$ac_try;;
16156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16157 (eval "$ac_try") 2>&5
16159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160 (exit $ac_status); }; }; then
16161 { echo "$as_me:$LINENO: result: yes" >&5
16162 echo "${ECHO_T}yes" >&6; }
16164 cat >>confdefs.h <<\_ACEOF
16165 #define HAVE_CRASHREPORTER_INFO 1
16169 echo "$as_me: failed program was:" >&5
16170 sed 's/^/| /' conftest.$ac_ext >&5
16172 { echo "$as_me:$LINENO: result: no" >&5
16173 echo "${ECHO_T}no" >&6; }
16175 cat >>confdefs.h <<\_ACEOF
16176 #define HAVE_CRASHREPORTER_INFO 0
16181 rm -f core conftest.err conftest.$ac_objext \
16182 conftest$ac_exeext conftest.$ac_ext
16187 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16188 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16189 if test "${ac_cv_huge_val_sanity+set}" = set; then
16190 echo $ECHO_N "(cached) $ECHO_C" >&6
16194 ac_cpp='$CXXCPP $CPPFLAGS'
16195 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16196 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16197 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16199 ac_save_CXXFLAGS=$CXXFLAGS
16200 CXXFLAGS="$CXXFLAGS -pedantic"
16201 if test "$cross_compiling" = yes; then
16202 ac_cv_huge_val_sanity=yes
16204 cat >conftest.$ac_ext <<_ACEOF
16207 cat confdefs.h >>conftest.$ac_ext
16208 cat >>conftest.$ac_ext <<_ACEOF
16209 /* end confdefs.h. */
16214 double x = HUGE_VAL; return x != x;
16219 rm -f conftest$ac_exeext
16220 if { (ac_try="$ac_link"
16221 case "(($ac_try" in
16222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16223 *) ac_try_echo=$ac_try;;
16225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16226 (eval "$ac_link") 2>&5
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16230 { (case "(($ac_try" in
16231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16232 *) ac_try_echo=$ac_try;;
16234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16235 (eval "$ac_try") 2>&5
16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238 (exit $ac_status); }; }; then
16239 ac_cv_huge_val_sanity=yes
16241 echo "$as_me: program exited with status $ac_status" >&5
16242 echo "$as_me: failed program was:" >&5
16243 sed 's/^/| /' conftest.$ac_ext >&5
16245 ( exit $ac_status )
16246 ac_cv_huge_val_sanity=no
16248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16252 CXXFLAGS=$ac_save_CXXFLAGS
16254 ac_cpp='$CPP $CPPFLAGS'
16255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16261 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16262 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16263 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16266 { echo "$as_me:$LINENO: checking for pid_t" >&5
16267 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16268 if test "${ac_cv_type_pid_t+set}" = set; then
16269 echo $ECHO_N "(cached) $ECHO_C" >&6
16271 cat >conftest.$ac_ext <<_ACEOF
16274 cat confdefs.h >>conftest.$ac_ext
16275 cat >>conftest.$ac_ext <<_ACEOF
16276 /* end confdefs.h. */
16277 $ac_includes_default
16278 typedef pid_t ac__type_new_;
16282 if ((ac__type_new_ *) 0)
16284 if (sizeof (ac__type_new_))
16290 rm -f conftest.$ac_objext
16291 if { (ac_try="$ac_compile"
16292 case "(($ac_try" in
16293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16294 *) ac_try_echo=$ac_try;;
16296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16297 (eval "$ac_compile") 2>conftest.er1
16299 grep -v '^ *+' conftest.er1 >conftest.err
16301 cat conftest.err >&5
16302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303 (exit $ac_status); } &&
16304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16305 { (case "(($ac_try" in
16306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16307 *) ac_try_echo=$ac_try;;
16309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16310 (eval "$ac_try") 2>&5
16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); }; } &&
16314 { ac_try='test -s conftest.$ac_objext'
16315 { (case "(($ac_try" in
16316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16317 *) ac_try_echo=$ac_try;;
16319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16320 (eval "$ac_try") 2>&5
16322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323 (exit $ac_status); }; }; then
16324 ac_cv_type_pid_t=yes
16326 echo "$as_me: failed program was:" >&5
16327 sed 's/^/| /' conftest.$ac_ext >&5
16329 ac_cv_type_pid_t=no
16332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16334 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16335 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16336 if test $ac_cv_type_pid_t = yes; then
16340 cat >>confdefs.h <<_ACEOF
16346 { echo "$as_me:$LINENO: checking for size_t" >&5
16347 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16348 if test "${ac_cv_type_size_t+set}" = set; then
16349 echo $ECHO_N "(cached) $ECHO_C" >&6
16351 cat >conftest.$ac_ext <<_ACEOF
16354 cat confdefs.h >>conftest.$ac_ext
16355 cat >>conftest.$ac_ext <<_ACEOF
16356 /* end confdefs.h. */
16357 $ac_includes_default
16358 typedef size_t ac__type_new_;
16362 if ((ac__type_new_ *) 0)
16364 if (sizeof (ac__type_new_))
16370 rm -f conftest.$ac_objext
16371 if { (ac_try="$ac_compile"
16372 case "(($ac_try" in
16373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16374 *) ac_try_echo=$ac_try;;
16376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16377 (eval "$ac_compile") 2>conftest.er1
16379 grep -v '^ *+' conftest.er1 >conftest.err
16381 cat conftest.err >&5
16382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383 (exit $ac_status); } &&
16384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16385 { (case "(($ac_try" in
16386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16387 *) ac_try_echo=$ac_try;;
16389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16390 (eval "$ac_try") 2>&5
16392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16393 (exit $ac_status); }; } &&
16394 { ac_try='test -s conftest.$ac_objext'
16395 { (case "(($ac_try" in
16396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16397 *) ac_try_echo=$ac_try;;
16399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16400 (eval "$ac_try") 2>&5
16402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403 (exit $ac_status); }; }; then
16404 ac_cv_type_size_t=yes
16406 echo "$as_me: failed program was:" >&5
16407 sed 's/^/| /' conftest.$ac_ext >&5
16409 ac_cv_type_size_t=no
16412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16414 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16415 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16416 if test $ac_cv_type_size_t = yes; then
16420 cat >>confdefs.h <<_ACEOF
16421 #define size_t unsigned int
16427 cat >>confdefs.h <<_ACEOF
16428 #define RETSIGTYPE void
16431 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16432 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16433 if test "${ac_cv_struct_tm+set}" = set; then
16434 echo $ECHO_N "(cached) $ECHO_C" >&6
16436 cat >conftest.$ac_ext <<_ACEOF
16439 cat confdefs.h >>conftest.$ac_ext
16440 cat >>conftest.$ac_ext <<_ACEOF
16441 /* end confdefs.h. */
16442 #include <sys/types.h>
16448 struct tm *tp; tp->tm_sec;
16453 rm -f conftest.$ac_objext
16454 if { (ac_try="$ac_compile"
16455 case "(($ac_try" in
16456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16457 *) ac_try_echo=$ac_try;;
16459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16460 (eval "$ac_compile") 2>conftest.er1
16462 grep -v '^ *+' conftest.er1 >conftest.err
16464 cat conftest.err >&5
16465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466 (exit $ac_status); } &&
16467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16468 { (case "(($ac_try" in
16469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16470 *) ac_try_echo=$ac_try;;
16472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16473 (eval "$ac_try") 2>&5
16475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476 (exit $ac_status); }; } &&
16477 { ac_try='test -s conftest.$ac_objext'
16478 { (case "(($ac_try" in
16479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16480 *) ac_try_echo=$ac_try;;
16482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16483 (eval "$ac_try") 2>&5
16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); }; }; then
16487 ac_cv_struct_tm=time.h
16489 echo "$as_me: failed program was:" >&5
16490 sed 's/^/| /' conftest.$ac_ext >&5
16492 ac_cv_struct_tm=sys/time.h
16495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16497 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16498 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16499 if test $ac_cv_struct_tm = sys/time.h; then
16501 cat >>confdefs.h <<\_ACEOF
16502 #define TM_IN_SYS_TIME 1
16507 { echo "$as_me:$LINENO: checking for int64_t" >&5
16508 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16509 if test "${ac_cv_type_int64_t+set}" = set; then
16510 echo $ECHO_N "(cached) $ECHO_C" >&6
16512 cat >conftest.$ac_ext <<_ACEOF
16515 cat confdefs.h >>conftest.$ac_ext
16516 cat >>conftest.$ac_ext <<_ACEOF
16517 /* end confdefs.h. */
16518 $ac_includes_default
16519 typedef int64_t ac__type_new_;
16523 if ((ac__type_new_ *) 0)
16525 if (sizeof (ac__type_new_))
16531 rm -f conftest.$ac_objext
16532 if { (ac_try="$ac_compile"
16533 case "(($ac_try" in
16534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16535 *) ac_try_echo=$ac_try;;
16537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16538 (eval "$ac_compile") 2>conftest.er1
16540 grep -v '^ *+' conftest.er1 >conftest.err
16542 cat conftest.err >&5
16543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544 (exit $ac_status); } &&
16545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16546 { (case "(($ac_try" in
16547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16548 *) ac_try_echo=$ac_try;;
16550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16551 (eval "$ac_try") 2>&5
16553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554 (exit $ac_status); }; } &&
16555 { ac_try='test -s conftest.$ac_objext'
16556 { (case "(($ac_try" in
16557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16558 *) ac_try_echo=$ac_try;;
16560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16561 (eval "$ac_try") 2>&5
16563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564 (exit $ac_status); }; }; then
16565 ac_cv_type_int64_t=yes
16567 echo "$as_me: failed program was:" >&5
16568 sed 's/^/| /' conftest.$ac_ext >&5
16570 ac_cv_type_int64_t=no
16573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16575 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16576 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16577 if test $ac_cv_type_int64_t = yes; then
16579 cat >>confdefs.h <<_ACEOF
16580 #define HAVE_INT64_T 1
16585 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16586 echo "$as_me: error: Type int64_t required but not found" >&2;}
16587 { (exit 1); exit 1; }; }
16590 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16591 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16592 if test "${ac_cv_type_uint64_t+set}" = set; then
16593 echo $ECHO_N "(cached) $ECHO_C" >&6
16595 cat >conftest.$ac_ext <<_ACEOF
16598 cat confdefs.h >>conftest.$ac_ext
16599 cat >>conftest.$ac_ext <<_ACEOF
16600 /* end confdefs.h. */
16601 $ac_includes_default
16602 typedef uint64_t ac__type_new_;
16606 if ((ac__type_new_ *) 0)
16608 if (sizeof (ac__type_new_))
16614 rm -f conftest.$ac_objext
16615 if { (ac_try="$ac_compile"
16616 case "(($ac_try" in
16617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16618 *) ac_try_echo=$ac_try;;
16620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16621 (eval "$ac_compile") 2>conftest.er1
16623 grep -v '^ *+' conftest.er1 >conftest.err
16625 cat conftest.err >&5
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); } &&
16628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16629 { (case "(($ac_try" in
16630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16631 *) ac_try_echo=$ac_try;;
16633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16634 (eval "$ac_try") 2>&5
16636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637 (exit $ac_status); }; } &&
16638 { ac_try='test -s conftest.$ac_objext'
16639 { (case "(($ac_try" in
16640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16641 *) ac_try_echo=$ac_try;;
16643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16644 (eval "$ac_try") 2>&5
16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); }; }; then
16648 ac_cv_type_uint64_t=yes
16650 echo "$as_me: failed program was:" >&5
16651 sed 's/^/| /' conftest.$ac_ext >&5
16653 ac_cv_type_uint64_t=no
16656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16658 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16659 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16660 if test $ac_cv_type_uint64_t = yes; then
16662 cat >>confdefs.h <<_ACEOF
16663 #define HAVE_UINT64_T 1
16668 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16669 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16670 if test "${ac_cv_type_u_int64_t+set}" = set; then
16671 echo $ECHO_N "(cached) $ECHO_C" >&6
16673 cat >conftest.$ac_ext <<_ACEOF
16676 cat confdefs.h >>conftest.$ac_ext
16677 cat >>conftest.$ac_ext <<_ACEOF
16678 /* end confdefs.h. */
16679 $ac_includes_default
16680 typedef u_int64_t ac__type_new_;
16684 if ((ac__type_new_ *) 0)
16686 if (sizeof (ac__type_new_))
16692 rm -f conftest.$ac_objext
16693 if { (ac_try="$ac_compile"
16694 case "(($ac_try" in
16695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16696 *) ac_try_echo=$ac_try;;
16698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16699 (eval "$ac_compile") 2>conftest.er1
16701 grep -v '^ *+' conftest.er1 >conftest.err
16703 cat conftest.err >&5
16704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); } &&
16706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16707 { (case "(($ac_try" in
16708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16709 *) ac_try_echo=$ac_try;;
16711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16712 (eval "$ac_try") 2>&5
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); }; } &&
16716 { ac_try='test -s conftest.$ac_objext'
16717 { (case "(($ac_try" in
16718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16719 *) ac_try_echo=$ac_try;;
16721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16722 (eval "$ac_try") 2>&5
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); }; }; then
16726 ac_cv_type_u_int64_t=yes
16728 echo "$as_me: failed program was:" >&5
16729 sed 's/^/| /' conftest.$ac_ext >&5
16731 ac_cv_type_u_int64_t=no
16734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16736 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16737 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16738 if test $ac_cv_type_u_int64_t = yes; then
16740 cat >>confdefs.h <<_ACEOF
16741 #define HAVE_U_INT64_T 1
16746 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16747 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16748 { (exit 1); exit 1; }; }
16762 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16765 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16767 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16768 echo $ECHO_N "(cached) $ECHO_C" >&6
16770 cat >conftest.$ac_ext <<_ACEOF
16773 cat confdefs.h >>conftest.$ac_ext
16774 cat >>conftest.$ac_ext <<_ACEOF
16775 /* end confdefs.h. */
16776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16778 #define $ac_func innocuous_$ac_func
16780 /* System header to define __stub macros and hopefully few prototypes,
16781 which can conflict with char $ac_func (); below.
16782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16783 <limits.h> exists even on freestanding compilers. */
16786 # include <limits.h>
16788 # include <assert.h>
16793 /* Override any GCC internal prototype to avoid an error.
16794 Use char because int might match the return type of a GCC
16795 builtin and then its argument prototype would still apply. */
16800 /* The GNU C library defines this for functions which it implements
16801 to always fail with ENOSYS. Some functions are actually named
16802 something starting with __ and the normal name is an alias. */
16803 #if defined __stub_$ac_func || defined __stub___$ac_func
16810 return $ac_func ();
16815 rm -f conftest.$ac_objext conftest$ac_exeext
16816 if { (ac_try="$ac_link"
16817 case "(($ac_try" in
16818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16819 *) ac_try_echo=$ac_try;;
16821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16822 (eval "$ac_link") 2>conftest.er1
16824 grep -v '^ *+' conftest.er1 >conftest.err
16826 cat conftest.err >&5
16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); } &&
16829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16830 { (case "(($ac_try" in
16831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16832 *) ac_try_echo=$ac_try;;
16834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16835 (eval "$ac_try") 2>&5
16837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838 (exit $ac_status); }; } &&
16839 { ac_try='test -s conftest$ac_exeext'
16840 { (case "(($ac_try" in
16841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16842 *) ac_try_echo=$ac_try;;
16844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16845 (eval "$ac_try") 2>&5
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); }; }; then
16849 eval "$as_ac_var=yes"
16851 echo "$as_me: failed program was:" >&5
16852 sed 's/^/| /' conftest.$ac_ext >&5
16854 eval "$as_ac_var=no"
16857 rm -f core conftest.err conftest.$ac_objext \
16858 conftest$ac_exeext conftest.$ac_ext
16860 ac_res=`eval echo '${'$as_ac_var'}'`
16861 { echo "$as_me:$LINENO: result: $ac_res" >&5
16862 echo "${ECHO_T}$ac_res" >&6; }
16863 if test `eval echo '${'$as_ac_var'}'` = yes; then
16864 cat >>confdefs.h <<_ACEOF
16865 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16875 for ac_func in powf fmodf strtof round
16877 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16878 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16879 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16880 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16881 echo $ECHO_N "(cached) $ECHO_C" >&6
16883 cat >conftest.$ac_ext <<_ACEOF
16886 cat confdefs.h >>conftest.$ac_ext
16887 cat >>conftest.$ac_ext <<_ACEOF
16888 /* end confdefs.h. */
16889 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16891 #define $ac_func innocuous_$ac_func
16893 /* System header to define __stub macros and hopefully few prototypes,
16894 which can conflict with char $ac_func (); below.
16895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16896 <limits.h> exists even on freestanding compilers. */
16899 # include <limits.h>
16901 # include <assert.h>
16906 /* Override any GCC internal prototype to avoid an error.
16907 Use char because int might match the return type of a GCC
16908 builtin and then its argument prototype would still apply. */
16913 /* The GNU C library defines this for functions which it implements
16914 to always fail with ENOSYS. Some functions are actually named
16915 something starting with __ and the normal name is an alias. */
16916 #if defined __stub_$ac_func || defined __stub___$ac_func
16923 return $ac_func ();
16928 rm -f conftest.$ac_objext conftest$ac_exeext
16929 if { (ac_try="$ac_link"
16930 case "(($ac_try" in
16931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16932 *) ac_try_echo=$ac_try;;
16934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16935 (eval "$ac_link") 2>conftest.er1
16937 grep -v '^ *+' conftest.er1 >conftest.err
16939 cat conftest.err >&5
16940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 (exit $ac_status); } &&
16942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16943 { (case "(($ac_try" in
16944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16945 *) ac_try_echo=$ac_try;;
16947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16948 (eval "$ac_try") 2>&5
16950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951 (exit $ac_status); }; } &&
16952 { ac_try='test -s conftest$ac_exeext'
16953 { (case "(($ac_try" in
16954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16955 *) ac_try_echo=$ac_try;;
16957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16958 (eval "$ac_try") 2>&5
16960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961 (exit $ac_status); }; }; then
16962 eval "$as_ac_var=yes"
16964 echo "$as_me: failed program was:" >&5
16965 sed 's/^/| /' conftest.$ac_ext >&5
16967 eval "$as_ac_var=no"
16970 rm -f core conftest.err conftest.$ac_objext \
16971 conftest$ac_exeext conftest.$ac_ext
16973 ac_res=`eval echo '${'$as_ac_var'}'`
16974 { echo "$as_me:$LINENO: result: $ac_res" >&5
16975 echo "${ECHO_T}$ac_res" >&6; }
16976 if test `eval echo '${'$as_ac_var'}'` = yes; then
16977 cat >>confdefs.h <<_ACEOF
16978 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16989 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16992 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16994 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16995 echo $ECHO_N "(cached) $ECHO_C" >&6
16997 cat >conftest.$ac_ext <<_ACEOF
17000 cat confdefs.h >>conftest.$ac_ext
17001 cat >>conftest.$ac_ext <<_ACEOF
17002 /* end confdefs.h. */
17003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17005 #define $ac_func innocuous_$ac_func
17007 /* System header to define __stub macros and hopefully few prototypes,
17008 which can conflict with char $ac_func (); below.
17009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17010 <limits.h> exists even on freestanding compilers. */
17013 # include <limits.h>
17015 # include <assert.h>
17020 /* Override any GCC internal prototype to avoid an error.
17021 Use char because int might match the return type of a GCC
17022 builtin and then its argument prototype would still apply. */
17027 /* The GNU C library defines this for functions which it implements
17028 to always fail with ENOSYS. Some functions are actually named
17029 something starting with __ and the normal name is an alias. */
17030 #if defined __stub_$ac_func || defined __stub___$ac_func
17037 return $ac_func ();
17042 rm -f conftest.$ac_objext conftest$ac_exeext
17043 if { (ac_try="$ac_link"
17044 case "(($ac_try" in
17045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17046 *) ac_try_echo=$ac_try;;
17048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17049 (eval "$ac_link") 2>conftest.er1
17051 grep -v '^ *+' conftest.er1 >conftest.err
17053 cat conftest.err >&5
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055 (exit $ac_status); } &&
17056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17057 { (case "(($ac_try" in
17058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17059 *) ac_try_echo=$ac_try;;
17061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17062 (eval "$ac_try") 2>&5
17064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065 (exit $ac_status); }; } &&
17066 { ac_try='test -s conftest$ac_exeext'
17067 { (case "(($ac_try" in
17068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17069 *) ac_try_echo=$ac_try;;
17071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17072 (eval "$ac_try") 2>&5
17074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075 (exit $ac_status); }; }; then
17076 eval "$as_ac_var=yes"
17078 echo "$as_me: failed program was:" >&5
17079 sed 's/^/| /' conftest.$ac_ext >&5
17081 eval "$as_ac_var=no"
17084 rm -f core conftest.err conftest.$ac_objext \
17085 conftest$ac_exeext conftest.$ac_ext
17087 ac_res=`eval echo '${'$as_ac_var'}'`
17088 { echo "$as_me:$LINENO: result: $ac_res" >&5
17089 echo "${ECHO_T}$ac_res" >&6; }
17090 if test `eval echo '${'$as_ac_var'}'` = yes; then
17091 cat >>confdefs.h <<_ACEOF
17092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17101 for ac_func in isatty mkdtemp mkstemp
17103 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17104 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17105 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17106 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17107 echo $ECHO_N "(cached) $ECHO_C" >&6
17109 cat >conftest.$ac_ext <<_ACEOF
17112 cat confdefs.h >>conftest.$ac_ext
17113 cat >>conftest.$ac_ext <<_ACEOF
17114 /* end confdefs.h. */
17115 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17117 #define $ac_func innocuous_$ac_func
17119 /* System header to define __stub macros and hopefully few prototypes,
17120 which can conflict with char $ac_func (); below.
17121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17122 <limits.h> exists even on freestanding compilers. */
17125 # include <limits.h>
17127 # include <assert.h>
17132 /* Override any GCC internal prototype to avoid an error.
17133 Use char because int might match the return type of a GCC
17134 builtin and then its argument prototype would still apply. */
17139 /* The GNU C library defines this for functions which it implements
17140 to always fail with ENOSYS. Some functions are actually named
17141 something starting with __ and the normal name is an alias. */
17142 #if defined __stub_$ac_func || defined __stub___$ac_func
17149 return $ac_func ();
17154 rm -f conftest.$ac_objext conftest$ac_exeext
17155 if { (ac_try="$ac_link"
17156 case "(($ac_try" in
17157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17158 *) ac_try_echo=$ac_try;;
17160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17161 (eval "$ac_link") 2>conftest.er1
17163 grep -v '^ *+' conftest.er1 >conftest.err
17165 cat conftest.err >&5
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); } &&
17168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17169 { (case "(($ac_try" in
17170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17171 *) ac_try_echo=$ac_try;;
17173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17174 (eval "$ac_try") 2>&5
17176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177 (exit $ac_status); }; } &&
17178 { ac_try='test -s conftest$ac_exeext'
17179 { (case "(($ac_try" in
17180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17181 *) ac_try_echo=$ac_try;;
17183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17184 (eval "$ac_try") 2>&5
17186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17187 (exit $ac_status); }; }; then
17188 eval "$as_ac_var=yes"
17190 echo "$as_me: failed program was:" >&5
17191 sed 's/^/| /' conftest.$ac_ext >&5
17193 eval "$as_ac_var=no"
17196 rm -f core conftest.err conftest.$ac_objext \
17197 conftest$ac_exeext conftest.$ac_ext
17199 ac_res=`eval echo '${'$as_ac_var'}'`
17200 { echo "$as_me:$LINENO: result: $ac_res" >&5
17201 echo "${ECHO_T}$ac_res" >&6; }
17202 if test `eval echo '${'$as_ac_var'}'` = yes; then
17203 cat >>confdefs.h <<_ACEOF
17204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17217 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17220 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17222 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17223 echo $ECHO_N "(cached) $ECHO_C" >&6
17225 cat >conftest.$ac_ext <<_ACEOF
17228 cat confdefs.h >>conftest.$ac_ext
17229 cat >>conftest.$ac_ext <<_ACEOF
17230 /* end confdefs.h. */
17231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17233 #define $ac_func innocuous_$ac_func
17235 /* System header to define __stub macros and hopefully few prototypes,
17236 which can conflict with char $ac_func (); below.
17237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17238 <limits.h> exists even on freestanding compilers. */
17241 # include <limits.h>
17243 # include <assert.h>
17248 /* Override any GCC internal prototype to avoid an error.
17249 Use char because int might match the return type of a GCC
17250 builtin and then its argument prototype would still apply. */
17255 /* The GNU C library defines this for functions which it implements
17256 to always fail with ENOSYS. Some functions are actually named
17257 something starting with __ and the normal name is an alias. */
17258 #if defined __stub_$ac_func || defined __stub___$ac_func
17265 return $ac_func ();
17270 rm -f conftest.$ac_objext conftest$ac_exeext
17271 if { (ac_try="$ac_link"
17272 case "(($ac_try" in
17273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17274 *) ac_try_echo=$ac_try;;
17276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17277 (eval "$ac_link") 2>conftest.er1
17279 grep -v '^ *+' conftest.er1 >conftest.err
17281 cat conftest.err >&5
17282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283 (exit $ac_status); } &&
17284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17285 { (case "(($ac_try" in
17286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17287 *) ac_try_echo=$ac_try;;
17289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17290 (eval "$ac_try") 2>&5
17292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293 (exit $ac_status); }; } &&
17294 { ac_try='test -s conftest$ac_exeext'
17295 { (case "(($ac_try" in
17296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17297 *) ac_try_echo=$ac_try;;
17299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17300 (eval "$ac_try") 2>&5
17302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303 (exit $ac_status); }; }; then
17304 eval "$as_ac_var=yes"
17306 echo "$as_me: failed program was:" >&5
17307 sed 's/^/| /' conftest.$ac_ext >&5
17309 eval "$as_ac_var=no"
17312 rm -f core conftest.err conftest.$ac_objext \
17313 conftest$ac_exeext conftest.$ac_ext
17315 ac_res=`eval echo '${'$as_ac_var'}'`
17316 { echo "$as_me:$LINENO: result: $ac_res" >&5
17317 echo "${ECHO_T}$ac_res" >&6; }
17318 if test `eval echo '${'$as_ac_var'}'` = yes; then
17319 cat >>confdefs.h <<_ACEOF
17320 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17330 for ac_func in strerror strerror_r setenv arc4random
17332 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17333 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17334 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17335 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17336 echo $ECHO_N "(cached) $ECHO_C" >&6
17338 cat >conftest.$ac_ext <<_ACEOF
17341 cat confdefs.h >>conftest.$ac_ext
17342 cat >>conftest.$ac_ext <<_ACEOF
17343 /* end confdefs.h. */
17344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17346 #define $ac_func innocuous_$ac_func
17348 /* System header to define __stub macros and hopefully few prototypes,
17349 which can conflict with char $ac_func (); below.
17350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17351 <limits.h> exists even on freestanding compilers. */
17354 # include <limits.h>
17356 # include <assert.h>
17361 /* Override any GCC internal prototype to avoid an error.
17362 Use char because int might match the return type of a GCC
17363 builtin and then its argument prototype would still apply. */
17368 /* The GNU C library defines this for functions which it implements
17369 to always fail with ENOSYS. Some functions are actually named
17370 something starting with __ and the normal name is an alias. */
17371 #if defined __stub_$ac_func || defined __stub___$ac_func
17378 return $ac_func ();
17383 rm -f conftest.$ac_objext conftest$ac_exeext
17384 if { (ac_try="$ac_link"
17385 case "(($ac_try" in
17386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17387 *) ac_try_echo=$ac_try;;
17389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17390 (eval "$ac_link") 2>conftest.er1
17392 grep -v '^ *+' conftest.er1 >conftest.err
17394 cat conftest.err >&5
17395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396 (exit $ac_status); } &&
17397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17398 { (case "(($ac_try" in
17399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17400 *) ac_try_echo=$ac_try;;
17402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17403 (eval "$ac_try") 2>&5
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); }; } &&
17407 { ac_try='test -s conftest$ac_exeext'
17408 { (case "(($ac_try" in
17409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17410 *) ac_try_echo=$ac_try;;
17412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17413 (eval "$ac_try") 2>&5
17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); }; }; then
17417 eval "$as_ac_var=yes"
17419 echo "$as_me: failed program was:" >&5
17420 sed 's/^/| /' conftest.$ac_ext >&5
17422 eval "$as_ac_var=no"
17425 rm -f core conftest.err conftest.$ac_objext \
17426 conftest$ac_exeext conftest.$ac_ext
17428 ac_res=`eval echo '${'$as_ac_var'}'`
17429 { echo "$as_me:$LINENO: result: $ac_res" >&5
17430 echo "${ECHO_T}$ac_res" >&6; }
17431 if test `eval echo '${'$as_ac_var'}'` = yes; then
17432 cat >>confdefs.h <<_ACEOF
17433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17443 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17445 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17446 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17447 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17448 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17449 echo $ECHO_N "(cached) $ECHO_C" >&6
17451 cat >conftest.$ac_ext <<_ACEOF
17454 cat confdefs.h >>conftest.$ac_ext
17455 cat >>conftest.$ac_ext <<_ACEOF
17456 /* end confdefs.h. */
17457 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17458 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17459 #define $ac_func innocuous_$ac_func
17461 /* System header to define __stub macros and hopefully few prototypes,
17462 which can conflict with char $ac_func (); below.
17463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17464 <limits.h> exists even on freestanding compilers. */
17467 # include <limits.h>
17469 # include <assert.h>
17474 /* Override any GCC internal prototype to avoid an error.
17475 Use char because int might match the return type of a GCC
17476 builtin and then its argument prototype would still apply. */
17481 /* The GNU C library defines this for functions which it implements
17482 to always fail with ENOSYS. Some functions are actually named
17483 something starting with __ and the normal name is an alias. */
17484 #if defined __stub_$ac_func || defined __stub___$ac_func
17491 return $ac_func ();
17496 rm -f conftest.$ac_objext conftest$ac_exeext
17497 if { (ac_try="$ac_link"
17498 case "(($ac_try" in
17499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17500 *) ac_try_echo=$ac_try;;
17502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17503 (eval "$ac_link") 2>conftest.er1
17505 grep -v '^ *+' conftest.er1 >conftest.err
17507 cat conftest.err >&5
17508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509 (exit $ac_status); } &&
17510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17511 { (case "(($ac_try" in
17512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17513 *) ac_try_echo=$ac_try;;
17515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17516 (eval "$ac_try") 2>&5
17518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519 (exit $ac_status); }; } &&
17520 { ac_try='test -s conftest$ac_exeext'
17521 { (case "(($ac_try" in
17522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17523 *) ac_try_echo=$ac_try;;
17525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17526 (eval "$ac_try") 2>&5
17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529 (exit $ac_status); }; }; then
17530 eval "$as_ac_var=yes"
17532 echo "$as_me: failed program was:" >&5
17533 sed 's/^/| /' conftest.$ac_ext >&5
17535 eval "$as_ac_var=no"
17538 rm -f core conftest.err conftest.$ac_objext \
17539 conftest$ac_exeext conftest.$ac_ext
17541 ac_res=`eval echo '${'$as_ac_var'}'`
17542 { echo "$as_me:$LINENO: result: $ac_res" >&5
17543 echo "${ECHO_T}$ac_res" >&6; }
17544 if test `eval echo '${'$as_ac_var'}'` = yes; then
17545 cat >>confdefs.h <<_ACEOF
17546 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17557 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17560 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17562 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17563 echo $ECHO_N "(cached) $ECHO_C" >&6
17565 cat >conftest.$ac_ext <<_ACEOF
17568 cat confdefs.h >>conftest.$ac_ext
17569 cat >>conftest.$ac_ext <<_ACEOF
17570 /* end confdefs.h. */
17571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17573 #define $ac_func innocuous_$ac_func
17575 /* System header to define __stub macros and hopefully few prototypes,
17576 which can conflict with char $ac_func (); below.
17577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17578 <limits.h> exists even on freestanding compilers. */
17581 # include <limits.h>
17583 # include <assert.h>
17588 /* Override any GCC internal prototype to avoid an error.
17589 Use char because int might match the return type of a GCC
17590 builtin and then its argument prototype would still apply. */
17595 /* The GNU C library defines this for functions which it implements
17596 to always fail with ENOSYS. Some functions are actually named
17597 something starting with __ and the normal name is an alias. */
17598 #if defined __stub_$ac_func || defined __stub___$ac_func
17605 return $ac_func ();
17610 rm -f conftest.$ac_objext conftest$ac_exeext
17611 if { (ac_try="$ac_link"
17612 case "(($ac_try" in
17613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17614 *) ac_try_echo=$ac_try;;
17616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17617 (eval "$ac_link") 2>conftest.er1
17619 grep -v '^ *+' conftest.er1 >conftest.err
17621 cat conftest.err >&5
17622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623 (exit $ac_status); } &&
17624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17625 { (case "(($ac_try" in
17626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17627 *) ac_try_echo=$ac_try;;
17629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17630 (eval "$ac_try") 2>&5
17632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633 (exit $ac_status); }; } &&
17634 { ac_try='test -s conftest$ac_exeext'
17635 { (case "(($ac_try" in
17636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17637 *) ac_try_echo=$ac_try;;
17639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17640 (eval "$ac_try") 2>&5
17642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643 (exit $ac_status); }; }; then
17644 eval "$as_ac_var=yes"
17646 echo "$as_me: failed program was:" >&5
17647 sed 's/^/| /' conftest.$ac_ext >&5
17649 eval "$as_ac_var=no"
17652 rm -f core conftest.err conftest.$ac_objext \
17653 conftest$ac_exeext conftest.$ac_ext
17655 ac_res=`eval echo '${'$as_ac_var'}'`
17656 { echo "$as_me:$LINENO: result: $ac_res" >&5
17657 echo "${ECHO_T}$ac_res" >&6; }
17658 if test `eval echo '${'$as_ac_var'}'` = yes; then
17659 cat >>confdefs.h <<_ACEOF
17660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17666 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17667 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17668 if test "${llvm_cv_c_printf_a+set}" = set; then
17669 echo $ECHO_N "(cached) $ECHO_C" >&6
17672 ac_cpp='$CPP $CPPFLAGS'
17673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17677 if test "$cross_compiling" = yes; then
17678 llvmac_cv_c_printf_a=no
17680 cat >conftest.$ac_ext <<_ACEOF
17684 cat confdefs.h >>conftest.$ac_ext
17685 cat >>conftest.$ac_ext <<_ACEOF
17686 /* end confdefs.h. */
17689 #include <stdlib.h>
17695 volatile double A, B;
17699 sprintf(Buffer, "%a", A);
17703 if (A != 0x1.999999999999ap-4)
17710 rm -f conftest$ac_exeext
17711 if { (ac_try="$ac_link"
17712 case "(($ac_try" in
17713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17714 *) ac_try_echo=$ac_try;;
17716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17717 (eval "$ac_link") 2>&5
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17721 { (case "(($ac_try" in
17722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17723 *) ac_try_echo=$ac_try;;
17725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17726 (eval "$ac_try") 2>&5
17728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17729 (exit $ac_status); }; }; then
17730 llvm_cv_c_printf_a=yes
17732 echo "$as_me: program exited with status $ac_status" >&5
17733 echo "$as_me: failed program was:" >&5
17734 sed 's/^/| /' conftest.$ac_ext >&5
17736 ( exit $ac_status )
17737 llvmac_cv_c_printf_a=no
17739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17744 ac_cpp='$CPP $CPPFLAGS'
17745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17750 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17751 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17752 if test "$llvm_cv_c_printf_a" = "yes"; then
17754 cat >>confdefs.h <<\_ACEOF
17755 #define HAVE_PRINTF_A 1
17761 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17762 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17763 if test "${ac_cv_func_rand48+set}" = set; then
17764 echo $ECHO_N "(cached) $ECHO_C" >&6
17767 ac_cpp='$CXXCPP $CPPFLAGS'
17768 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17769 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17770 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17772 cat >conftest.$ac_ext <<_ACEOF
17775 cat confdefs.h >>conftest.$ac_ext
17776 cat >>conftest.$ac_ext <<_ACEOF
17777 /* end confdefs.h. */
17778 #include <stdlib.h>
17782 srand48(0);lrand48();drand48();
17787 rm -f conftest.$ac_objext
17788 if { (ac_try="$ac_compile"
17789 case "(($ac_try" in
17790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17791 *) ac_try_echo=$ac_try;;
17793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17794 (eval "$ac_compile") 2>conftest.er1
17796 grep -v '^ *+' conftest.er1 >conftest.err
17798 cat conftest.err >&5
17799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17800 (exit $ac_status); } &&
17801 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17802 { (case "(($ac_try" in
17803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17804 *) ac_try_echo=$ac_try;;
17806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17807 (eval "$ac_try") 2>&5
17809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810 (exit $ac_status); }; } &&
17811 { ac_try='test -s conftest.$ac_objext'
17812 { (case "(($ac_try" in
17813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17814 *) ac_try_echo=$ac_try;;
17816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17817 (eval "$ac_try") 2>&5
17819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820 (exit $ac_status); }; }; then
17821 ac_cv_func_rand48=yes
17823 echo "$as_me: failed program was:" >&5
17824 sed 's/^/| /' conftest.$ac_ext >&5
17826 ac_cv_func_rand48=no
17829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17831 ac_cpp='$CPP $CPPFLAGS'
17832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17837 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17838 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17840 if test "$ac_cv_func_rand48" = "yes" ; then
17842 cat >>confdefs.h <<\_ACEOF
17843 #define HAVE_RAND48 1
17849 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17850 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17851 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17852 echo $ECHO_N "(cached) $ECHO_C" >&6
17854 cat >conftest.$ac_ext <<_ACEOF
17857 cat confdefs.h >>conftest.$ac_ext
17858 cat >>conftest.$ac_ext <<_ACEOF
17859 /* end confdefs.h. */
17860 $ac_includes_default
17865 char *p = (char *) strerror_s;
17873 rm -f conftest.$ac_objext
17874 if { (ac_try="$ac_compile"
17875 case "(($ac_try" in
17876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17877 *) ac_try_echo=$ac_try;;
17879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17880 (eval "$ac_compile") 2>conftest.er1
17882 grep -v '^ *+' conftest.er1 >conftest.err
17884 cat conftest.err >&5
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); } &&
17887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17888 { (case "(($ac_try" in
17889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17890 *) ac_try_echo=$ac_try;;
17892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17893 (eval "$ac_try") 2>&5
17895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17896 (exit $ac_status); }; } &&
17897 { ac_try='test -s conftest.$ac_objext'
17898 { (case "(($ac_try" in
17899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17900 *) ac_try_echo=$ac_try;;
17902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17903 (eval "$ac_try") 2>&5
17905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906 (exit $ac_status); }; }; then
17907 ac_cv_have_decl_strerror_s=yes
17909 echo "$as_me: failed program was:" >&5
17910 sed 's/^/| /' conftest.$ac_ext >&5
17912 ac_cv_have_decl_strerror_s=no
17915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17917 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17918 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17919 if test $ac_cv_have_decl_strerror_s = yes; then
17921 cat >>confdefs.h <<_ACEOF
17922 #define HAVE_DECL_STRERROR_S 1
17927 cat >>confdefs.h <<_ACEOF
17928 #define HAVE_DECL_STRERROR_S 0
17936 if test "$llvm_cv_os_type" = "MingW" ; then
17937 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17938 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17939 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17940 echo $ECHO_N "(cached) $ECHO_C" >&6
17942 ac_check_lib_save_LIBS=$LIBS
17944 cat >conftest.$ac_ext <<_ACEOF
17947 cat confdefs.h >>conftest.$ac_ext
17948 cat >>conftest.$ac_ext <<_ACEOF
17949 /* end confdefs.h. */
17951 /* Override any GCC internal prototype to avoid an error.
17952 Use char because int might match the return type of a GCC
17953 builtin and then its argument prototype would still apply. */
17966 rm -f conftest.$ac_objext conftest$ac_exeext
17967 if { (ac_try="$ac_link"
17968 case "(($ac_try" in
17969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17970 *) ac_try_echo=$ac_try;;
17972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17973 (eval "$ac_link") 2>conftest.er1
17975 grep -v '^ *+' conftest.er1 >conftest.err
17977 cat conftest.err >&5
17978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979 (exit $ac_status); } &&
17980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17981 { (case "(($ac_try" in
17982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17983 *) ac_try_echo=$ac_try;;
17985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17986 (eval "$ac_try") 2>&5
17988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17989 (exit $ac_status); }; } &&
17990 { ac_try='test -s conftest$ac_exeext'
17991 { (case "(($ac_try" in
17992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17993 *) ac_try_echo=$ac_try;;
17995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17996 (eval "$ac_try") 2>&5
17998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999 (exit $ac_status); }; }; then
18000 ac_cv_lib_gcc__alloca=yes
18002 echo "$as_me: failed program was:" >&5
18003 sed 's/^/| /' conftest.$ac_ext >&5
18005 ac_cv_lib_gcc__alloca=no
18008 rm -f core conftest.err conftest.$ac_objext \
18009 conftest$ac_exeext conftest.$ac_ext
18010 LIBS=$ac_check_lib_save_LIBS
18012 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18013 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18014 if test $ac_cv_lib_gcc__alloca = yes; then
18016 cat >>confdefs.h <<\_ACEOF
18017 #define HAVE__ALLOCA 1
18022 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18023 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18024 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18025 echo $ECHO_N "(cached) $ECHO_C" >&6
18027 ac_check_lib_save_LIBS=$LIBS
18029 cat >conftest.$ac_ext <<_ACEOF
18032 cat confdefs.h >>conftest.$ac_ext
18033 cat >>conftest.$ac_ext <<_ACEOF
18034 /* end confdefs.h. */
18036 /* Override any GCC internal prototype to avoid an error.
18037 Use char because int might match the return type of a GCC
18038 builtin and then its argument prototype would still apply. */
18046 return __alloca ();
18051 rm -f conftest.$ac_objext conftest$ac_exeext
18052 if { (ac_try="$ac_link"
18053 case "(($ac_try" in
18054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18055 *) ac_try_echo=$ac_try;;
18057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18058 (eval "$ac_link") 2>conftest.er1
18060 grep -v '^ *+' conftest.er1 >conftest.err
18062 cat conftest.err >&5
18063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064 (exit $ac_status); } &&
18065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18066 { (case "(($ac_try" in
18067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18068 *) ac_try_echo=$ac_try;;
18070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18071 (eval "$ac_try") 2>&5
18073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074 (exit $ac_status); }; } &&
18075 { ac_try='test -s conftest$ac_exeext'
18076 { (case "(($ac_try" in
18077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18078 *) ac_try_echo=$ac_try;;
18080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18081 (eval "$ac_try") 2>&5
18083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084 (exit $ac_status); }; }; then
18085 ac_cv_lib_gcc___alloca=yes
18087 echo "$as_me: failed program was:" >&5
18088 sed 's/^/| /' conftest.$ac_ext >&5
18090 ac_cv_lib_gcc___alloca=no
18093 rm -f core conftest.err conftest.$ac_objext \
18094 conftest$ac_exeext conftest.$ac_ext
18095 LIBS=$ac_check_lib_save_LIBS
18097 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18098 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18099 if test $ac_cv_lib_gcc___alloca = yes; then
18101 cat >>confdefs.h <<\_ACEOF
18102 #define HAVE___ALLOCA 1
18107 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18108 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18109 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18110 echo $ECHO_N "(cached) $ECHO_C" >&6
18112 ac_check_lib_save_LIBS=$LIBS
18114 cat >conftest.$ac_ext <<_ACEOF
18117 cat confdefs.h >>conftest.$ac_ext
18118 cat >>conftest.$ac_ext <<_ACEOF
18119 /* end confdefs.h. */
18121 /* Override any GCC internal prototype to avoid an error.
18122 Use char because int might match the return type of a GCC
18123 builtin and then its argument prototype would still apply. */
18131 return __chkstk ();
18136 rm -f conftest.$ac_objext conftest$ac_exeext
18137 if { (ac_try="$ac_link"
18138 case "(($ac_try" in
18139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18140 *) ac_try_echo=$ac_try;;
18142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18143 (eval "$ac_link") 2>conftest.er1
18145 grep -v '^ *+' conftest.er1 >conftest.err
18147 cat conftest.err >&5
18148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149 (exit $ac_status); } &&
18150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18151 { (case "(($ac_try" in
18152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18153 *) ac_try_echo=$ac_try;;
18155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18156 (eval "$ac_try") 2>&5
18158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159 (exit $ac_status); }; } &&
18160 { ac_try='test -s conftest$ac_exeext'
18161 { (case "(($ac_try" in
18162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18163 *) ac_try_echo=$ac_try;;
18165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18166 (eval "$ac_try") 2>&5
18168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169 (exit $ac_status); }; }; then
18170 ac_cv_lib_gcc___chkstk=yes
18172 echo "$as_me: failed program was:" >&5
18173 sed 's/^/| /' conftest.$ac_ext >&5
18175 ac_cv_lib_gcc___chkstk=no
18178 rm -f core conftest.err conftest.$ac_objext \
18179 conftest$ac_exeext conftest.$ac_ext
18180 LIBS=$ac_check_lib_save_LIBS
18182 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18183 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18184 if test $ac_cv_lib_gcc___chkstk = yes; then
18186 cat >>confdefs.h <<\_ACEOF
18187 #define HAVE___CHKSTK 1
18192 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18193 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18194 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18195 echo $ECHO_N "(cached) $ECHO_C" >&6
18197 ac_check_lib_save_LIBS=$LIBS
18199 cat >conftest.$ac_ext <<_ACEOF
18202 cat confdefs.h >>conftest.$ac_ext
18203 cat >>conftest.$ac_ext <<_ACEOF
18204 /* end confdefs.h. */
18206 /* Override any GCC internal prototype to avoid an error.
18207 Use char because int might match the return type of a GCC
18208 builtin and then its argument prototype would still apply. */
18216 return ___chkstk ();
18221 rm -f conftest.$ac_objext conftest$ac_exeext
18222 if { (ac_try="$ac_link"
18223 case "(($ac_try" in
18224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18225 *) ac_try_echo=$ac_try;;
18227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18228 (eval "$ac_link") 2>conftest.er1
18230 grep -v '^ *+' conftest.er1 >conftest.err
18232 cat conftest.err >&5
18233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234 (exit $ac_status); } &&
18235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18236 { (case "(($ac_try" in
18237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18238 *) ac_try_echo=$ac_try;;
18240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18241 (eval "$ac_try") 2>&5
18243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244 (exit $ac_status); }; } &&
18245 { ac_try='test -s conftest$ac_exeext'
18246 { (case "(($ac_try" in
18247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18248 *) ac_try_echo=$ac_try;;
18250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18251 (eval "$ac_try") 2>&5
18253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18254 (exit $ac_status); }; }; then
18255 ac_cv_lib_gcc____chkstk=yes
18257 echo "$as_me: failed program was:" >&5
18258 sed 's/^/| /' conftest.$ac_ext >&5
18260 ac_cv_lib_gcc____chkstk=no
18263 rm -f core conftest.err conftest.$ac_objext \
18264 conftest$ac_exeext conftest.$ac_ext
18265 LIBS=$ac_check_lib_save_LIBS
18267 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18268 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18269 if test $ac_cv_lib_gcc____chkstk = yes; then
18271 cat >>confdefs.h <<\_ACEOF
18272 #define HAVE____CHKSTK 1
18278 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18279 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18280 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18281 echo $ECHO_N "(cached) $ECHO_C" >&6
18283 ac_check_lib_save_LIBS=$LIBS
18285 cat >conftest.$ac_ext <<_ACEOF
18288 cat confdefs.h >>conftest.$ac_ext
18289 cat >>conftest.$ac_ext <<_ACEOF
18290 /* end confdefs.h. */
18292 /* Override any GCC internal prototype to avoid an error.
18293 Use char because int might match the return type of a GCC
18294 builtin and then its argument prototype would still apply. */
18302 return __ashldi3 ();
18307 rm -f conftest.$ac_objext conftest$ac_exeext
18308 if { (ac_try="$ac_link"
18309 case "(($ac_try" in
18310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18311 *) ac_try_echo=$ac_try;;
18313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18314 (eval "$ac_link") 2>conftest.er1
18316 grep -v '^ *+' conftest.er1 >conftest.err
18318 cat conftest.err >&5
18319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320 (exit $ac_status); } &&
18321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18322 { (case "(($ac_try" in
18323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18324 *) ac_try_echo=$ac_try;;
18326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18327 (eval "$ac_try") 2>&5
18329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18330 (exit $ac_status); }; } &&
18331 { ac_try='test -s conftest$ac_exeext'
18332 { (case "(($ac_try" in
18333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18334 *) ac_try_echo=$ac_try;;
18336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18337 (eval "$ac_try") 2>&5
18339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340 (exit $ac_status); }; }; then
18341 ac_cv_lib_gcc___ashldi3=yes
18343 echo "$as_me: failed program was:" >&5
18344 sed 's/^/| /' conftest.$ac_ext >&5
18346 ac_cv_lib_gcc___ashldi3=no
18349 rm -f core conftest.err conftest.$ac_objext \
18350 conftest$ac_exeext conftest.$ac_ext
18351 LIBS=$ac_check_lib_save_LIBS
18353 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18354 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18355 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18357 cat >>confdefs.h <<\_ACEOF
18358 #define HAVE___ASHLDI3 1
18363 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18364 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18365 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18366 echo $ECHO_N "(cached) $ECHO_C" >&6
18368 ac_check_lib_save_LIBS=$LIBS
18370 cat >conftest.$ac_ext <<_ACEOF
18373 cat confdefs.h >>conftest.$ac_ext
18374 cat >>conftest.$ac_ext <<_ACEOF
18375 /* end confdefs.h. */
18377 /* Override any GCC internal prototype to avoid an error.
18378 Use char because int might match the return type of a GCC
18379 builtin and then its argument prototype would still apply. */
18387 return __ashrdi3 ();
18392 rm -f conftest.$ac_objext conftest$ac_exeext
18393 if { (ac_try="$ac_link"
18394 case "(($ac_try" in
18395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18396 *) ac_try_echo=$ac_try;;
18398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18399 (eval "$ac_link") 2>conftest.er1
18401 grep -v '^ *+' conftest.er1 >conftest.err
18403 cat conftest.err >&5
18404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18405 (exit $ac_status); } &&
18406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18407 { (case "(($ac_try" in
18408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18409 *) ac_try_echo=$ac_try;;
18411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18412 (eval "$ac_try") 2>&5
18414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415 (exit $ac_status); }; } &&
18416 { ac_try='test -s conftest$ac_exeext'
18417 { (case "(($ac_try" in
18418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18419 *) ac_try_echo=$ac_try;;
18421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18422 (eval "$ac_try") 2>&5
18424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18425 (exit $ac_status); }; }; then
18426 ac_cv_lib_gcc___ashrdi3=yes
18428 echo "$as_me: failed program was:" >&5
18429 sed 's/^/| /' conftest.$ac_ext >&5
18431 ac_cv_lib_gcc___ashrdi3=no
18434 rm -f core conftest.err conftest.$ac_objext \
18435 conftest$ac_exeext conftest.$ac_ext
18436 LIBS=$ac_check_lib_save_LIBS
18438 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18439 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18440 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18442 cat >>confdefs.h <<\_ACEOF
18443 #define HAVE___ASHRDI3 1
18448 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18449 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18450 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18451 echo $ECHO_N "(cached) $ECHO_C" >&6
18453 ac_check_lib_save_LIBS=$LIBS
18455 cat >conftest.$ac_ext <<_ACEOF
18458 cat confdefs.h >>conftest.$ac_ext
18459 cat >>conftest.$ac_ext <<_ACEOF
18460 /* end confdefs.h. */
18462 /* Override any GCC internal prototype to avoid an error.
18463 Use char because int might match the return type of a GCC
18464 builtin and then its argument prototype would still apply. */
18472 return __divdi3 ();
18477 rm -f conftest.$ac_objext conftest$ac_exeext
18478 if { (ac_try="$ac_link"
18479 case "(($ac_try" in
18480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18481 *) ac_try_echo=$ac_try;;
18483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18484 (eval "$ac_link") 2>conftest.er1
18486 grep -v '^ *+' conftest.er1 >conftest.err
18488 cat conftest.err >&5
18489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490 (exit $ac_status); } &&
18491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18492 { (case "(($ac_try" in
18493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18494 *) ac_try_echo=$ac_try;;
18496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18497 (eval "$ac_try") 2>&5
18499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18500 (exit $ac_status); }; } &&
18501 { ac_try='test -s conftest$ac_exeext'
18502 { (case "(($ac_try" in
18503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18504 *) ac_try_echo=$ac_try;;
18506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18507 (eval "$ac_try") 2>&5
18509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18510 (exit $ac_status); }; }; then
18511 ac_cv_lib_gcc___divdi3=yes
18513 echo "$as_me: failed program was:" >&5
18514 sed 's/^/| /' conftest.$ac_ext >&5
18516 ac_cv_lib_gcc___divdi3=no
18519 rm -f core conftest.err conftest.$ac_objext \
18520 conftest$ac_exeext conftest.$ac_ext
18521 LIBS=$ac_check_lib_save_LIBS
18523 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18524 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18525 if test $ac_cv_lib_gcc___divdi3 = yes; then
18527 cat >>confdefs.h <<\_ACEOF
18528 #define HAVE___DIVDI3 1
18533 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18534 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18535 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18536 echo $ECHO_N "(cached) $ECHO_C" >&6
18538 ac_check_lib_save_LIBS=$LIBS
18540 cat >conftest.$ac_ext <<_ACEOF
18543 cat confdefs.h >>conftest.$ac_ext
18544 cat >>conftest.$ac_ext <<_ACEOF
18545 /* end confdefs.h. */
18547 /* Override any GCC internal prototype to avoid an error.
18548 Use char because int might match the return type of a GCC
18549 builtin and then its argument prototype would still apply. */
18557 return __fixdfdi ();
18562 rm -f conftest.$ac_objext conftest$ac_exeext
18563 if { (ac_try="$ac_link"
18564 case "(($ac_try" in
18565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18566 *) ac_try_echo=$ac_try;;
18568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18569 (eval "$ac_link") 2>conftest.er1
18571 grep -v '^ *+' conftest.er1 >conftest.err
18573 cat conftest.err >&5
18574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575 (exit $ac_status); } &&
18576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18577 { (case "(($ac_try" in
18578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18579 *) ac_try_echo=$ac_try;;
18581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18582 (eval "$ac_try") 2>&5
18584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18585 (exit $ac_status); }; } &&
18586 { ac_try='test -s conftest$ac_exeext'
18587 { (case "(($ac_try" in
18588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18589 *) ac_try_echo=$ac_try;;
18591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18592 (eval "$ac_try") 2>&5
18594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595 (exit $ac_status); }; }; then
18596 ac_cv_lib_gcc___fixdfdi=yes
18598 echo "$as_me: failed program was:" >&5
18599 sed 's/^/| /' conftest.$ac_ext >&5
18601 ac_cv_lib_gcc___fixdfdi=no
18604 rm -f core conftest.err conftest.$ac_objext \
18605 conftest$ac_exeext conftest.$ac_ext
18606 LIBS=$ac_check_lib_save_LIBS
18608 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18609 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18610 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18612 cat >>confdefs.h <<\_ACEOF
18613 #define HAVE___FIXDFDI 1
18618 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18619 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18620 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18621 echo $ECHO_N "(cached) $ECHO_C" >&6
18623 ac_check_lib_save_LIBS=$LIBS
18625 cat >conftest.$ac_ext <<_ACEOF
18628 cat confdefs.h >>conftest.$ac_ext
18629 cat >>conftest.$ac_ext <<_ACEOF
18630 /* end confdefs.h. */
18632 /* Override any GCC internal prototype to avoid an error.
18633 Use char because int might match the return type of a GCC
18634 builtin and then its argument prototype would still apply. */
18642 return __fixsfdi ();
18647 rm -f conftest.$ac_objext conftest$ac_exeext
18648 if { (ac_try="$ac_link"
18649 case "(($ac_try" in
18650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18651 *) ac_try_echo=$ac_try;;
18653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18654 (eval "$ac_link") 2>conftest.er1
18656 grep -v '^ *+' conftest.er1 >conftest.err
18658 cat conftest.err >&5
18659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660 (exit $ac_status); } &&
18661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18662 { (case "(($ac_try" in
18663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18664 *) ac_try_echo=$ac_try;;
18666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18667 (eval "$ac_try") 2>&5
18669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670 (exit $ac_status); }; } &&
18671 { ac_try='test -s conftest$ac_exeext'
18672 { (case "(($ac_try" in
18673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18674 *) ac_try_echo=$ac_try;;
18676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18677 (eval "$ac_try") 2>&5
18679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18680 (exit $ac_status); }; }; then
18681 ac_cv_lib_gcc___fixsfdi=yes
18683 echo "$as_me: failed program was:" >&5
18684 sed 's/^/| /' conftest.$ac_ext >&5
18686 ac_cv_lib_gcc___fixsfdi=no
18689 rm -f core conftest.err conftest.$ac_objext \
18690 conftest$ac_exeext conftest.$ac_ext
18691 LIBS=$ac_check_lib_save_LIBS
18693 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18694 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18695 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18697 cat >>confdefs.h <<\_ACEOF
18698 #define HAVE___FIXSFDI 1
18703 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18704 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18705 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18706 echo $ECHO_N "(cached) $ECHO_C" >&6
18708 ac_check_lib_save_LIBS=$LIBS
18710 cat >conftest.$ac_ext <<_ACEOF
18713 cat confdefs.h >>conftest.$ac_ext
18714 cat >>conftest.$ac_ext <<_ACEOF
18715 /* end confdefs.h. */
18717 /* Override any GCC internal prototype to avoid an error.
18718 Use char because int might match the return type of a GCC
18719 builtin and then its argument prototype would still apply. */
18723 char __floatdidf ();
18727 return __floatdidf ();
18732 rm -f conftest.$ac_objext conftest$ac_exeext
18733 if { (ac_try="$ac_link"
18734 case "(($ac_try" in
18735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18736 *) ac_try_echo=$ac_try;;
18738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18739 (eval "$ac_link") 2>conftest.er1
18741 grep -v '^ *+' conftest.er1 >conftest.err
18743 cat conftest.err >&5
18744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18745 (exit $ac_status); } &&
18746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18747 { (case "(($ac_try" in
18748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18749 *) ac_try_echo=$ac_try;;
18751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18752 (eval "$ac_try") 2>&5
18754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18755 (exit $ac_status); }; } &&
18756 { ac_try='test -s conftest$ac_exeext'
18757 { (case "(($ac_try" in
18758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18759 *) ac_try_echo=$ac_try;;
18761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18762 (eval "$ac_try") 2>&5
18764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18765 (exit $ac_status); }; }; then
18766 ac_cv_lib_gcc___floatdidf=yes
18768 echo "$as_me: failed program was:" >&5
18769 sed 's/^/| /' conftest.$ac_ext >&5
18771 ac_cv_lib_gcc___floatdidf=no
18774 rm -f core conftest.err conftest.$ac_objext \
18775 conftest$ac_exeext conftest.$ac_ext
18776 LIBS=$ac_check_lib_save_LIBS
18778 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18779 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18780 if test $ac_cv_lib_gcc___floatdidf = yes; then
18782 cat >>confdefs.h <<\_ACEOF
18783 #define HAVE___FLOATDIDF 1
18788 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18789 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18790 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18791 echo $ECHO_N "(cached) $ECHO_C" >&6
18793 ac_check_lib_save_LIBS=$LIBS
18795 cat >conftest.$ac_ext <<_ACEOF
18798 cat confdefs.h >>conftest.$ac_ext
18799 cat >>conftest.$ac_ext <<_ACEOF
18800 /* end confdefs.h. */
18802 /* Override any GCC internal prototype to avoid an error.
18803 Use char because int might match the return type of a GCC
18804 builtin and then its argument prototype would still apply. */
18812 return __lshrdi3 ();
18817 rm -f conftest.$ac_objext conftest$ac_exeext
18818 if { (ac_try="$ac_link"
18819 case "(($ac_try" in
18820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18821 *) ac_try_echo=$ac_try;;
18823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18824 (eval "$ac_link") 2>conftest.er1
18826 grep -v '^ *+' conftest.er1 >conftest.err
18828 cat conftest.err >&5
18829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830 (exit $ac_status); } &&
18831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18832 { (case "(($ac_try" in
18833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18834 *) ac_try_echo=$ac_try;;
18836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18837 (eval "$ac_try") 2>&5
18839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18840 (exit $ac_status); }; } &&
18841 { ac_try='test -s conftest$ac_exeext'
18842 { (case "(($ac_try" in
18843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18844 *) ac_try_echo=$ac_try;;
18846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18847 (eval "$ac_try") 2>&5
18849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850 (exit $ac_status); }; }; then
18851 ac_cv_lib_gcc___lshrdi3=yes
18853 echo "$as_me: failed program was:" >&5
18854 sed 's/^/| /' conftest.$ac_ext >&5
18856 ac_cv_lib_gcc___lshrdi3=no
18859 rm -f core conftest.err conftest.$ac_objext \
18860 conftest$ac_exeext conftest.$ac_ext
18861 LIBS=$ac_check_lib_save_LIBS
18863 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18864 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18865 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18867 cat >>confdefs.h <<\_ACEOF
18868 #define HAVE___LSHRDI3 1
18873 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18874 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18875 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18876 echo $ECHO_N "(cached) $ECHO_C" >&6
18878 ac_check_lib_save_LIBS=$LIBS
18880 cat >conftest.$ac_ext <<_ACEOF
18883 cat confdefs.h >>conftest.$ac_ext
18884 cat >>conftest.$ac_ext <<_ACEOF
18885 /* end confdefs.h. */
18887 /* Override any GCC internal prototype to avoid an error.
18888 Use char because int might match the return type of a GCC
18889 builtin and then its argument prototype would still apply. */
18897 return __moddi3 ();
18902 rm -f conftest.$ac_objext conftest$ac_exeext
18903 if { (ac_try="$ac_link"
18904 case "(($ac_try" in
18905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18906 *) ac_try_echo=$ac_try;;
18908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18909 (eval "$ac_link") 2>conftest.er1
18911 grep -v '^ *+' conftest.er1 >conftest.err
18913 cat conftest.err >&5
18914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18915 (exit $ac_status); } &&
18916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18917 { (case "(($ac_try" in
18918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18919 *) ac_try_echo=$ac_try;;
18921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18922 (eval "$ac_try") 2>&5
18924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18925 (exit $ac_status); }; } &&
18926 { ac_try='test -s conftest$ac_exeext'
18927 { (case "(($ac_try" in
18928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18929 *) ac_try_echo=$ac_try;;
18931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18932 (eval "$ac_try") 2>&5
18934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935 (exit $ac_status); }; }; then
18936 ac_cv_lib_gcc___moddi3=yes
18938 echo "$as_me: failed program was:" >&5
18939 sed 's/^/| /' conftest.$ac_ext >&5
18941 ac_cv_lib_gcc___moddi3=no
18944 rm -f core conftest.err conftest.$ac_objext \
18945 conftest$ac_exeext conftest.$ac_ext
18946 LIBS=$ac_check_lib_save_LIBS
18948 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18949 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18950 if test $ac_cv_lib_gcc___moddi3 = yes; then
18952 cat >>confdefs.h <<\_ACEOF
18953 #define HAVE___MODDI3 1
18958 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18959 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18960 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18961 echo $ECHO_N "(cached) $ECHO_C" >&6
18963 ac_check_lib_save_LIBS=$LIBS
18965 cat >conftest.$ac_ext <<_ACEOF
18968 cat confdefs.h >>conftest.$ac_ext
18969 cat >>conftest.$ac_ext <<_ACEOF
18970 /* end confdefs.h. */
18972 /* Override any GCC internal prototype to avoid an error.
18973 Use char because int might match the return type of a GCC
18974 builtin and then its argument prototype would still apply. */
18982 return __udivdi3 ();
18987 rm -f conftest.$ac_objext conftest$ac_exeext
18988 if { (ac_try="$ac_link"
18989 case "(($ac_try" in
18990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18991 *) ac_try_echo=$ac_try;;
18993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18994 (eval "$ac_link") 2>conftest.er1
18996 grep -v '^ *+' conftest.er1 >conftest.err
18998 cat conftest.err >&5
18999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000 (exit $ac_status); } &&
19001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19002 { (case "(($ac_try" in
19003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19004 *) ac_try_echo=$ac_try;;
19006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19007 (eval "$ac_try") 2>&5
19009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010 (exit $ac_status); }; } &&
19011 { ac_try='test -s conftest$ac_exeext'
19012 { (case "(($ac_try" in
19013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19014 *) ac_try_echo=$ac_try;;
19016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19017 (eval "$ac_try") 2>&5
19019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19020 (exit $ac_status); }; }; then
19021 ac_cv_lib_gcc___udivdi3=yes
19023 echo "$as_me: failed program was:" >&5
19024 sed 's/^/| /' conftest.$ac_ext >&5
19026 ac_cv_lib_gcc___udivdi3=no
19029 rm -f core conftest.err conftest.$ac_objext \
19030 conftest$ac_exeext conftest.$ac_ext
19031 LIBS=$ac_check_lib_save_LIBS
19033 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19034 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19035 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19037 cat >>confdefs.h <<\_ACEOF
19038 #define HAVE___UDIVDI3 1
19043 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19044 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19045 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19046 echo $ECHO_N "(cached) $ECHO_C" >&6
19048 ac_check_lib_save_LIBS=$LIBS
19050 cat >conftest.$ac_ext <<_ACEOF
19053 cat confdefs.h >>conftest.$ac_ext
19054 cat >>conftest.$ac_ext <<_ACEOF
19055 /* end confdefs.h. */
19057 /* Override any GCC internal prototype to avoid an error.
19058 Use char because int might match the return type of a GCC
19059 builtin and then its argument prototype would still apply. */
19067 return __umoddi3 ();
19072 rm -f conftest.$ac_objext conftest$ac_exeext
19073 if { (ac_try="$ac_link"
19074 case "(($ac_try" in
19075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19076 *) ac_try_echo=$ac_try;;
19078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19079 (eval "$ac_link") 2>conftest.er1
19081 grep -v '^ *+' conftest.er1 >conftest.err
19083 cat conftest.err >&5
19084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19085 (exit $ac_status); } &&
19086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19087 { (case "(($ac_try" in
19088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19089 *) ac_try_echo=$ac_try;;
19091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19092 (eval "$ac_try") 2>&5
19094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095 (exit $ac_status); }; } &&
19096 { ac_try='test -s conftest$ac_exeext'
19097 { (case "(($ac_try" in
19098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19099 *) ac_try_echo=$ac_try;;
19101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19102 (eval "$ac_try") 2>&5
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); }; }; then
19106 ac_cv_lib_gcc___umoddi3=yes
19108 echo "$as_me: failed program was:" >&5
19109 sed 's/^/| /' conftest.$ac_ext >&5
19111 ac_cv_lib_gcc___umoddi3=no
19114 rm -f core conftest.err conftest.$ac_objext \
19115 conftest$ac_exeext conftest.$ac_ext
19116 LIBS=$ac_check_lib_save_LIBS
19118 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19119 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19120 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19122 cat >>confdefs.h <<\_ACEOF
19123 #define HAVE___UMODDI3 1
19129 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19130 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19131 if test "${ac_cv_lib_gcc___main+set}" = set; then
19132 echo $ECHO_N "(cached) $ECHO_C" >&6
19134 ac_check_lib_save_LIBS=$LIBS
19136 cat >conftest.$ac_ext <<_ACEOF
19139 cat confdefs.h >>conftest.$ac_ext
19140 cat >>conftest.$ac_ext <<_ACEOF
19141 /* end confdefs.h. */
19143 /* Override any GCC internal prototype to avoid an error.
19144 Use char because int might match the return type of a GCC
19145 builtin and then its argument prototype would still apply. */
19158 rm -f conftest.$ac_objext conftest$ac_exeext
19159 if { (ac_try="$ac_link"
19160 case "(($ac_try" in
19161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19162 *) ac_try_echo=$ac_try;;
19164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19165 (eval "$ac_link") 2>conftest.er1
19167 grep -v '^ *+' conftest.er1 >conftest.err
19169 cat conftest.err >&5
19170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171 (exit $ac_status); } &&
19172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19173 { (case "(($ac_try" in
19174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19175 *) ac_try_echo=$ac_try;;
19177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19178 (eval "$ac_try") 2>&5
19180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181 (exit $ac_status); }; } &&
19182 { ac_try='test -s conftest$ac_exeext'
19183 { (case "(($ac_try" in
19184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19185 *) ac_try_echo=$ac_try;;
19187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19188 (eval "$ac_try") 2>&5
19190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191 (exit $ac_status); }; }; then
19192 ac_cv_lib_gcc___main=yes
19194 echo "$as_me: failed program was:" >&5
19195 sed 's/^/| /' conftest.$ac_ext >&5
19197 ac_cv_lib_gcc___main=no
19200 rm -f core conftest.err conftest.$ac_objext \
19201 conftest$ac_exeext conftest.$ac_ext
19202 LIBS=$ac_check_lib_save_LIBS
19204 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19205 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19206 if test $ac_cv_lib_gcc___main = yes; then
19208 cat >>confdefs.h <<\_ACEOF
19209 #define HAVE___MAIN 1
19214 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19215 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19216 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19217 echo $ECHO_N "(cached) $ECHO_C" >&6
19219 ac_check_lib_save_LIBS=$LIBS
19221 cat >conftest.$ac_ext <<_ACEOF
19224 cat confdefs.h >>conftest.$ac_ext
19225 cat >>conftest.$ac_ext <<_ACEOF
19226 /* end confdefs.h. */
19228 /* Override any GCC internal prototype to avoid an error.
19229 Use char because int might match the return type of a GCC
19230 builtin and then its argument prototype would still apply. */
19238 return __cmpdi2 ();
19243 rm -f conftest.$ac_objext conftest$ac_exeext
19244 if { (ac_try="$ac_link"
19245 case "(($ac_try" in
19246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19247 *) ac_try_echo=$ac_try;;
19249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19250 (eval "$ac_link") 2>conftest.er1
19252 grep -v '^ *+' conftest.er1 >conftest.err
19254 cat conftest.err >&5
19255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256 (exit $ac_status); } &&
19257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19258 { (case "(($ac_try" in
19259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19260 *) ac_try_echo=$ac_try;;
19262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19263 (eval "$ac_try") 2>&5
19265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266 (exit $ac_status); }; } &&
19267 { ac_try='test -s conftest$ac_exeext'
19268 { (case "(($ac_try" in
19269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19270 *) ac_try_echo=$ac_try;;
19272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19273 (eval "$ac_try") 2>&5
19275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276 (exit $ac_status); }; }; then
19277 ac_cv_lib_gcc___cmpdi2=yes
19279 echo "$as_me: failed program was:" >&5
19280 sed 's/^/| /' conftest.$ac_ext >&5
19282 ac_cv_lib_gcc___cmpdi2=no
19285 rm -f core conftest.err conftest.$ac_objext \
19286 conftest$ac_exeext conftest.$ac_ext
19287 LIBS=$ac_check_lib_save_LIBS
19289 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19290 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19291 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19293 cat >>confdefs.h <<\_ACEOF
19294 #define HAVE___CMPDI2 1
19301 if test "$llvm_cv_os_type" = "MingW" ; then
19302 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19303 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19304 cat >conftest.$ac_ext <<_ACEOF
19305 #include <windows.h>
19306 #include <imagehlp.h>
19307 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19308 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19310 rm -f conftest.$ac_objext
19311 if { (ac_try="$ac_compile"
19312 case "(($ac_try" in
19313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19314 *) ac_try_echo=$ac_try;;
19316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19317 (eval "$ac_compile") 2>conftest.er1
19319 grep -v '^ *+' conftest.er1 >conftest.err
19321 cat conftest.err >&5
19322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323 (exit $ac_status); } &&
19324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19325 { (case "(($ac_try" in
19326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19327 *) ac_try_echo=$ac_try;;
19329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19330 (eval "$ac_try") 2>&5
19332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333 (exit $ac_status); }; } &&
19334 { ac_try='test -s conftest.$ac_objext'
19335 { (case "(($ac_try" in
19336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19337 *) ac_try_echo=$ac_try;;
19339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19340 (eval "$ac_try") 2>&5
19342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343 (exit $ac_status); }; }; then
19345 { echo "$as_me:$LINENO: result: yes" >&5
19346 echo "${ECHO_T}yes" >&6; }
19347 llvm_cv_win32_elmcb_pcstr="PCSTR"
19350 echo "$as_me: failed program was:" >&5
19351 sed 's/^/| /' conftest.$ac_ext >&5
19354 { echo "$as_me:$LINENO: result: no" >&5
19355 echo "${ECHO_T}no" >&6; }
19356 llvm_cv_win32_elmcb_pcstr="PSTR"
19360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19362 cat >>confdefs.h <<_ACEOF
19363 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19369 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19370 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19371 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19372 echo $ECHO_N "(cached) $ECHO_C" >&6
19375 ac_cpp='$CXXCPP $CPPFLAGS'
19376 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19377 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19378 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19380 cat >conftest.$ac_ext <<_ACEOF
19383 cat confdefs.h >>conftest.$ac_ext
19384 cat >>conftest.$ac_ext <<_ACEOF
19385 /* end confdefs.h. */
19395 rm -f conftest.$ac_objext
19396 if { (ac_try="$ac_compile"
19397 case "(($ac_try" in
19398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19399 *) ac_try_echo=$ac_try;;
19401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19402 (eval "$ac_compile") 2>conftest.er1
19404 grep -v '^ *+' conftest.er1 >conftest.err
19406 cat conftest.err >&5
19407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408 (exit $ac_status); } &&
19409 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19410 { (case "(($ac_try" in
19411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19412 *) ac_try_echo=$ac_try;;
19414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19415 (eval "$ac_try") 2>&5
19417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418 (exit $ac_status); }; } &&
19419 { ac_try='test -s conftest.$ac_objext'
19420 { (case "(($ac_try" in
19421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19422 *) ac_try_echo=$ac_try;;
19424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19425 (eval "$ac_try") 2>&5
19427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428 (exit $ac_status); }; }; then
19429 ac_cv_func_isnan_in_math_h=yes
19431 echo "$as_me: failed program was:" >&5
19432 sed 's/^/| /' conftest.$ac_ext >&5
19434 ac_cv_func_isnan_in_math_h=no
19437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19439 ac_cpp='$CPP $CPPFLAGS'
19440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19445 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19446 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19449 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19451 cat >>confdefs.h <<\_ACEOF
19452 #define HAVE_ISNAN_IN_MATH_H 1
19457 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19458 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19459 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19460 echo $ECHO_N "(cached) $ECHO_C" >&6
19463 ac_cpp='$CXXCPP $CPPFLAGS'
19464 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19465 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19466 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19468 cat >conftest.$ac_ext <<_ACEOF
19471 cat confdefs.h >>conftest.$ac_ext
19472 cat >>conftest.$ac_ext <<_ACEOF
19473 /* end confdefs.h. */
19483 rm -f conftest.$ac_objext
19484 if { (ac_try="$ac_compile"
19485 case "(($ac_try" in
19486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19487 *) ac_try_echo=$ac_try;;
19489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19490 (eval "$ac_compile") 2>conftest.er1
19492 grep -v '^ *+' conftest.er1 >conftest.err
19494 cat conftest.err >&5
19495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496 (exit $ac_status); } &&
19497 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19498 { (case "(($ac_try" in
19499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19500 *) ac_try_echo=$ac_try;;
19502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19503 (eval "$ac_try") 2>&5
19505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19506 (exit $ac_status); }; } &&
19507 { ac_try='test -s conftest.$ac_objext'
19508 { (case "(($ac_try" in
19509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19510 *) ac_try_echo=$ac_try;;
19512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19513 (eval "$ac_try") 2>&5
19515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516 (exit $ac_status); }; }; then
19517 ac_cv_func_isnan_in_cmath=yes
19519 echo "$as_me: failed program was:" >&5
19520 sed 's/^/| /' conftest.$ac_ext >&5
19522 ac_cv_func_isnan_in_cmath=no
19525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19527 ac_cpp='$CPP $CPPFLAGS'
19528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19533 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19534 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19536 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19538 cat >>confdefs.h <<\_ACEOF
19539 #define HAVE_ISNAN_IN_CMATH 1
19544 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19545 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19546 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19547 echo $ECHO_N "(cached) $ECHO_C" >&6
19550 ac_cpp='$CXXCPP $CPPFLAGS'
19551 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19552 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19553 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19555 cat >conftest.$ac_ext <<_ACEOF
19558 cat confdefs.h >>conftest.$ac_ext
19559 cat >>conftest.$ac_ext <<_ACEOF
19560 /* end confdefs.h. */
19565 float f; std::isnan(f);
19570 rm -f conftest.$ac_objext
19571 if { (ac_try="$ac_compile"
19572 case "(($ac_try" in
19573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19574 *) ac_try_echo=$ac_try;;
19576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19577 (eval "$ac_compile") 2>conftest.er1
19579 grep -v '^ *+' conftest.er1 >conftest.err
19581 cat conftest.err >&5
19582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583 (exit $ac_status); } &&
19584 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19585 { (case "(($ac_try" in
19586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19587 *) ac_try_echo=$ac_try;;
19589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19590 (eval "$ac_try") 2>&5
19592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19593 (exit $ac_status); }; } &&
19594 { ac_try='test -s conftest.$ac_objext'
19595 { (case "(($ac_try" in
19596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19597 *) ac_try_echo=$ac_try;;
19599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19600 (eval "$ac_try") 2>&5
19602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603 (exit $ac_status); }; }; then
19604 ac_cv_func_std_isnan_in_cmath=yes
19606 echo "$as_me: failed program was:" >&5
19607 sed 's/^/| /' conftest.$ac_ext >&5
19609 ac_cv_func_std_isnan_in_cmath=no
19612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19614 ac_cpp='$CPP $CPPFLAGS'
19615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19620 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19621 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19623 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19625 cat >>confdefs.h <<\_ACEOF
19626 #define HAVE_STD_ISNAN_IN_CMATH 1
19632 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19633 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19634 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19635 echo $ECHO_N "(cached) $ECHO_C" >&6
19638 ac_cpp='$CXXCPP $CPPFLAGS'
19639 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19640 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19641 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19643 cat >conftest.$ac_ext <<_ACEOF
19646 cat confdefs.h >>conftest.$ac_ext
19647 cat >>conftest.$ac_ext <<_ACEOF
19648 /* end confdefs.h. */
19658 rm -f conftest.$ac_objext
19659 if { (ac_try="$ac_compile"
19660 case "(($ac_try" in
19661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19662 *) ac_try_echo=$ac_try;;
19664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19665 (eval "$ac_compile") 2>conftest.er1
19667 grep -v '^ *+' conftest.er1 >conftest.err
19669 cat conftest.err >&5
19670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671 (exit $ac_status); } &&
19672 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19673 { (case "(($ac_try" in
19674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19675 *) ac_try_echo=$ac_try;;
19677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19678 (eval "$ac_try") 2>&5
19680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681 (exit $ac_status); }; } &&
19682 { ac_try='test -s conftest.$ac_objext'
19683 { (case "(($ac_try" in
19684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19685 *) ac_try_echo=$ac_try;;
19687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19688 (eval "$ac_try") 2>&5
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); }; }; then
19692 ac_cv_func_isinf_in_math_h=yes
19694 echo "$as_me: failed program was:" >&5
19695 sed 's/^/| /' conftest.$ac_ext >&5
19697 ac_cv_func_isinf_in_math_h=no
19700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19702 ac_cpp='$CPP $CPPFLAGS'
19703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19708 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19709 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19711 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19713 cat >>confdefs.h <<\_ACEOF
19714 #define HAVE_ISINF_IN_MATH_H 1
19719 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19720 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19721 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19722 echo $ECHO_N "(cached) $ECHO_C" >&6
19725 ac_cpp='$CXXCPP $CPPFLAGS'
19726 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19727 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19728 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19730 cat >conftest.$ac_ext <<_ACEOF
19733 cat confdefs.h >>conftest.$ac_ext
19734 cat >>conftest.$ac_ext <<_ACEOF
19735 /* end confdefs.h. */
19745 rm -f conftest.$ac_objext
19746 if { (ac_try="$ac_compile"
19747 case "(($ac_try" in
19748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19749 *) ac_try_echo=$ac_try;;
19751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19752 (eval "$ac_compile") 2>conftest.er1
19754 grep -v '^ *+' conftest.er1 >conftest.err
19756 cat conftest.err >&5
19757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758 (exit $ac_status); } &&
19759 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19760 { (case "(($ac_try" in
19761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19762 *) ac_try_echo=$ac_try;;
19764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19765 (eval "$ac_try") 2>&5
19767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768 (exit $ac_status); }; } &&
19769 { ac_try='test -s conftest.$ac_objext'
19770 { (case "(($ac_try" in
19771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19772 *) ac_try_echo=$ac_try;;
19774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19775 (eval "$ac_try") 2>&5
19777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); }; }; then
19779 ac_cv_func_isinf_in_cmath=yes
19781 echo "$as_me: failed program was:" >&5
19782 sed 's/^/| /' conftest.$ac_ext >&5
19784 ac_cv_func_isinf_in_cmath=no
19787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19789 ac_cpp='$CPP $CPPFLAGS'
19790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19795 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19796 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19798 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19800 cat >>confdefs.h <<\_ACEOF
19801 #define HAVE_ISINF_IN_CMATH 1
19806 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19807 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19808 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19809 echo $ECHO_N "(cached) $ECHO_C" >&6
19812 ac_cpp='$CXXCPP $CPPFLAGS'
19813 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19814 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19815 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19817 cat >conftest.$ac_ext <<_ACEOF
19820 cat confdefs.h >>conftest.$ac_ext
19821 cat >>conftest.$ac_ext <<_ACEOF
19822 /* end confdefs.h. */
19827 float f; std::isinf(f);
19832 rm -f conftest.$ac_objext
19833 if { (ac_try="$ac_compile"
19834 case "(($ac_try" in
19835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19836 *) ac_try_echo=$ac_try;;
19838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19839 (eval "$ac_compile") 2>conftest.er1
19841 grep -v '^ *+' conftest.er1 >conftest.err
19843 cat conftest.err >&5
19844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19845 (exit $ac_status); } &&
19846 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19847 { (case "(($ac_try" in
19848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19849 *) ac_try_echo=$ac_try;;
19851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19852 (eval "$ac_try") 2>&5
19854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855 (exit $ac_status); }; } &&
19856 { ac_try='test -s conftest.$ac_objext'
19857 { (case "(($ac_try" in
19858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19859 *) ac_try_echo=$ac_try;;
19861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19862 (eval "$ac_try") 2>&5
19864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865 (exit $ac_status); }; }; then
19866 ac_cv_func_std_isinf_in_cmath=yes
19868 echo "$as_me: failed program was:" >&5
19869 sed 's/^/| /' conftest.$ac_ext >&5
19871 ac_cv_func_std_isinf_in_cmath=no
19874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19876 ac_cpp='$CPP $CPPFLAGS'
19877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19882 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19883 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19885 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19887 cat >>confdefs.h <<\_ACEOF
19888 #define HAVE_STD_ISINF_IN_CMATH 1
19893 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19894 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19895 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19896 echo $ECHO_N "(cached) $ECHO_C" >&6
19899 ac_cpp='$CXXCPP $CPPFLAGS'
19900 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19901 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19902 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19904 cat >conftest.$ac_ext <<_ACEOF
19907 cat confdefs.h >>conftest.$ac_ext
19908 cat >>conftest.$ac_ext <<_ACEOF
19909 /* end confdefs.h. */
19910 #include <ieeefp.h>
19914 float f; finite(f);
19919 rm -f conftest.$ac_objext
19920 if { (ac_try="$ac_compile"
19921 case "(($ac_try" in
19922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19923 *) ac_try_echo=$ac_try;;
19925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19926 (eval "$ac_compile") 2>conftest.er1
19928 grep -v '^ *+' conftest.er1 >conftest.err
19930 cat conftest.err >&5
19931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932 (exit $ac_status); } &&
19933 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19934 { (case "(($ac_try" in
19935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19936 *) ac_try_echo=$ac_try;;
19938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19939 (eval "$ac_try") 2>&5
19941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942 (exit $ac_status); }; } &&
19943 { ac_try='test -s conftest.$ac_objext'
19944 { (case "(($ac_try" in
19945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19946 *) ac_try_echo=$ac_try;;
19948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19949 (eval "$ac_try") 2>&5
19951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19952 (exit $ac_status); }; }; then
19953 ac_cv_func_finite_in_ieeefp_h=yes
19955 echo "$as_me: failed program was:" >&5
19956 sed 's/^/| /' conftest.$ac_ext >&5
19958 ac_cv_func_finite_in_ieeefp_h=no
19961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19963 ac_cpp='$CPP $CPPFLAGS'
19964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19969 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19970 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19972 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19974 cat >>confdefs.h <<\_ACEOF
19975 #define HAVE_FINITE_IN_IEEEFP_H 1
19982 if test "$llvm_cv_platform_type" = "Unix" ; then
19985 for ac_header in stdlib.h unistd.h
19987 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19989 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19992 echo $ECHO_N "(cached) $ECHO_C" >&6
19994 ac_res=`eval echo '${'$as_ac_Header'}'`
19995 { echo "$as_me:$LINENO: result: $ac_res" >&5
19996 echo "${ECHO_T}$ac_res" >&6; }
19998 # Is the header compilable?
19999 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20000 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20001 cat >conftest.$ac_ext <<_ACEOF
20004 cat confdefs.h >>conftest.$ac_ext
20005 cat >>conftest.$ac_ext <<_ACEOF
20006 /* end confdefs.h. */
20007 $ac_includes_default
20008 #include <$ac_header>
20010 rm -f conftest.$ac_objext
20011 if { (ac_try="$ac_compile"
20012 case "(($ac_try" in
20013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20014 *) ac_try_echo=$ac_try;;
20016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20017 (eval "$ac_compile") 2>conftest.er1
20019 grep -v '^ *+' conftest.er1 >conftest.err
20021 cat conftest.err >&5
20022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023 (exit $ac_status); } &&
20024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20025 { (case "(($ac_try" in
20026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20027 *) ac_try_echo=$ac_try;;
20029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20030 (eval "$ac_try") 2>&5
20032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20033 (exit $ac_status); }; } &&
20034 { ac_try='test -s conftest.$ac_objext'
20035 { (case "(($ac_try" in
20036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20037 *) ac_try_echo=$ac_try;;
20039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20040 (eval "$ac_try") 2>&5
20042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20043 (exit $ac_status); }; }; then
20044 ac_header_compiler=yes
20046 echo "$as_me: failed program was:" >&5
20047 sed 's/^/| /' conftest.$ac_ext >&5
20049 ac_header_compiler=no
20052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20053 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20054 echo "${ECHO_T}$ac_header_compiler" >&6; }
20056 # Is the header present?
20057 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20058 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20059 cat >conftest.$ac_ext <<_ACEOF
20062 cat confdefs.h >>conftest.$ac_ext
20063 cat >>conftest.$ac_ext <<_ACEOF
20064 /* end confdefs.h. */
20065 #include <$ac_header>
20067 if { (ac_try="$ac_cpp conftest.$ac_ext"
20068 case "(($ac_try" in
20069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20070 *) ac_try_echo=$ac_try;;
20072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20075 grep -v '^ *+' conftest.er1 >conftest.err
20077 cat conftest.err >&5
20078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20079 (exit $ac_status); } >/dev/null; then
20080 if test -s conftest.err; then
20081 ac_cpp_err=$ac_c_preproc_warn_flag
20082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20089 if test -z "$ac_cpp_err"; then
20090 ac_header_preproc=yes
20092 echo "$as_me: failed program was:" >&5
20093 sed 's/^/| /' conftest.$ac_ext >&5
20095 ac_header_preproc=no
20098 rm -f conftest.err conftest.$ac_ext
20099 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20100 echo "${ECHO_T}$ac_header_preproc" >&6; }
20102 # So? What about this header?
20103 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20105 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20106 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20107 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20108 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20109 ac_header_preproc=yes
20112 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20113 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20114 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20115 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20116 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20117 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20118 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20119 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20120 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20121 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20122 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20123 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20125 ## ------------------------------------ ##
20126 ## Report this to http://llvm.org/bugs/ ##
20127 ## ------------------------------------ ##
20129 ) | sed "s/^/$as_me: WARNING: /" >&2
20132 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20135 echo $ECHO_N "(cached) $ECHO_C" >&6
20137 eval "$as_ac_Header=\$ac_header_preproc"
20139 ac_res=`eval echo '${'$as_ac_Header'}'`
20140 { echo "$as_me:$LINENO: result: $ac_res" >&5
20141 echo "${ECHO_T}$ac_res" >&6; }
20144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20145 cat >>confdefs.h <<_ACEOF
20146 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20154 for ac_func in getpagesize
20156 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20157 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20158 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20159 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20160 echo $ECHO_N "(cached) $ECHO_C" >&6
20162 cat >conftest.$ac_ext <<_ACEOF
20165 cat confdefs.h >>conftest.$ac_ext
20166 cat >>conftest.$ac_ext <<_ACEOF
20167 /* end confdefs.h. */
20168 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20169 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20170 #define $ac_func innocuous_$ac_func
20172 /* System header to define __stub macros and hopefully few prototypes,
20173 which can conflict with char $ac_func (); below.
20174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20175 <limits.h> exists even on freestanding compilers. */
20178 # include <limits.h>
20180 # include <assert.h>
20185 /* Override any GCC internal prototype to avoid an error.
20186 Use char because int might match the return type of a GCC
20187 builtin and then its argument prototype would still apply. */
20192 /* The GNU C library defines this for functions which it implements
20193 to always fail with ENOSYS. Some functions are actually named
20194 something starting with __ and the normal name is an alias. */
20195 #if defined __stub_$ac_func || defined __stub___$ac_func
20202 return $ac_func ();
20207 rm -f conftest.$ac_objext conftest$ac_exeext
20208 if { (ac_try="$ac_link"
20209 case "(($ac_try" in
20210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20211 *) ac_try_echo=$ac_try;;
20213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20214 (eval "$ac_link") 2>conftest.er1
20216 grep -v '^ *+' conftest.er1 >conftest.err
20218 cat conftest.err >&5
20219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220 (exit $ac_status); } &&
20221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20222 { (case "(($ac_try" in
20223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20224 *) ac_try_echo=$ac_try;;
20226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20227 (eval "$ac_try") 2>&5
20229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230 (exit $ac_status); }; } &&
20231 { ac_try='test -s conftest$ac_exeext'
20232 { (case "(($ac_try" in
20233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20234 *) ac_try_echo=$ac_try;;
20236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20237 (eval "$ac_try") 2>&5
20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); }; }; then
20241 eval "$as_ac_var=yes"
20243 echo "$as_me: failed program was:" >&5
20244 sed 's/^/| /' conftest.$ac_ext >&5
20246 eval "$as_ac_var=no"
20249 rm -f core conftest.err conftest.$ac_objext \
20250 conftest$ac_exeext conftest.$ac_ext
20252 ac_res=`eval echo '${'$as_ac_var'}'`
20253 { echo "$as_me:$LINENO: result: $ac_res" >&5
20254 echo "${ECHO_T}$ac_res" >&6; }
20255 if test `eval echo '${'$as_ac_var'}'` = yes; then
20256 cat >>confdefs.h <<_ACEOF
20257 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20263 { echo "$as_me:$LINENO: checking for working mmap" >&5
20264 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20265 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20266 echo $ECHO_N "(cached) $ECHO_C" >&6
20268 if test "$cross_compiling" = yes; then
20269 ac_cv_func_mmap_fixed_mapped=no
20271 cat >conftest.$ac_ext <<_ACEOF
20274 cat confdefs.h >>conftest.$ac_ext
20275 cat >>conftest.$ac_ext <<_ACEOF
20276 /* end confdefs.h. */
20277 $ac_includes_default
20278 /* malloc might have been renamed as rpl_malloc. */
20281 /* Thanks to Mike Haertel and Jim Avera for this test.
20282 Here is a matrix of mmap possibilities:
20283 mmap private not fixed
20284 mmap private fixed at somewhere currently unmapped
20285 mmap private fixed at somewhere already mapped
20286 mmap shared not fixed
20287 mmap shared fixed at somewhere currently unmapped
20288 mmap shared fixed at somewhere already mapped
20289 For private mappings, we should verify that changes cannot be read()
20290 back from the file, nor mmap's back from the file at a different
20291 address. (There have been systems where private was not correctly
20292 implemented like the infamous i386 svr4.0, and systems where the
20293 VM page cache was not coherent with the file system buffer cache
20294 like early versions of FreeBSD and possibly contemporary NetBSD.)
20295 For shared mappings, we should conversely verify that changes get
20296 propagated back to all the places they're supposed to be.
20298 Grep wants private fixed already mapped.
20299 The main things grep needs to know about mmap are:
20300 * does it exist and is it safe to write into the mmap'd area
20301 * how to use it (BSD variants) */
20304 #include <sys/mman.h>
20306 #if !STDC_HEADERS && !HAVE_STDLIB_H
20310 /* This mess was copied from the GNU getpagesize.h. */
20311 #if !HAVE_GETPAGESIZE
20312 /* Assume that all systems that can run configure have sys/param.h. */
20313 # if !HAVE_SYS_PARAM_H
20314 # define HAVE_SYS_PARAM_H 1
20317 # ifdef _SC_PAGESIZE
20318 # define getpagesize() sysconf(_SC_PAGESIZE)
20319 # else /* no _SC_PAGESIZE */
20320 # if HAVE_SYS_PARAM_H
20321 # include <sys/param.h>
20322 # ifdef EXEC_PAGESIZE
20323 # define getpagesize() EXEC_PAGESIZE
20324 # else /* no EXEC_PAGESIZE */
20326 # define getpagesize() NBPG * CLSIZE
20329 # endif /* no CLSIZE */
20330 # else /* no NBPG */
20332 # define getpagesize() NBPC
20333 # else /* no NBPC */
20335 # define getpagesize() PAGESIZE
20336 # endif /* PAGESIZE */
20337 # endif /* no NBPC */
20338 # endif /* no NBPG */
20339 # endif /* no EXEC_PAGESIZE */
20340 # else /* no HAVE_SYS_PARAM_H */
20341 # define getpagesize() 8192 /* punt totally */
20342 # endif /* no HAVE_SYS_PARAM_H */
20343 # endif /* no _SC_PAGESIZE */
20345 #endif /* no HAVE_GETPAGESIZE */
20350 char *data, *data2, *data3;
20354 pagesize = getpagesize ();
20356 /* First, make a file with some known garbage in it. */
20357 data = (char *) malloc (pagesize);
20360 for (i = 0; i < pagesize; ++i)
20361 *(data + i) = rand ();
20363 fd = creat ("conftest.mmap", 0600);
20366 if (write (fd, data, pagesize) != pagesize)
20370 /* Next, try to mmap the file at a fixed address which already has
20371 something else allocated at it. If we can, also make sure that
20372 we see the same garbage. */
20373 fd = open ("conftest.mmap", O_RDWR);
20376 data2 = (char *) malloc (2 * pagesize);
20379 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20380 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20381 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20383 for (i = 0; i < pagesize; ++i)
20384 if (*(data + i) != *(data2 + i))
20387 /* Finally, make sure that changes to the mapped area do not
20388 percolate back to the file as seen by read(). (This is a bug on
20389 some variants of i386 svr4.0.) */
20390 for (i = 0; i < pagesize; ++i)
20391 *(data2 + i) = *(data2 + i) + 1;
20392 data3 = (char *) malloc (pagesize);
20395 if (read (fd, data3, pagesize) != pagesize)
20397 for (i = 0; i < pagesize; ++i)
20398 if (*(data + i) != *(data3 + i))
20404 rm -f conftest$ac_exeext
20405 if { (ac_try="$ac_link"
20406 case "(($ac_try" in
20407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20408 *) ac_try_echo=$ac_try;;
20410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20411 (eval "$ac_link") 2>&5
20413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20415 { (case "(($ac_try" in
20416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20417 *) ac_try_echo=$ac_try;;
20419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20420 (eval "$ac_try") 2>&5
20422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423 (exit $ac_status); }; }; then
20424 ac_cv_func_mmap_fixed_mapped=yes
20426 echo "$as_me: program exited with status $ac_status" >&5
20427 echo "$as_me: failed program was:" >&5
20428 sed 's/^/| /' conftest.$ac_ext >&5
20430 ( exit $ac_status )
20431 ac_cv_func_mmap_fixed_mapped=no
20433 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20438 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20439 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20440 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20442 cat >>confdefs.h <<\_ACEOF
20443 #define HAVE_MMAP 1
20447 rm -f conftest.mmap
20449 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20450 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20451 if test "${ac_cv_func_mmap_file+set}" = set; then
20452 echo $ECHO_N "(cached) $ECHO_C" >&6
20455 ac_cpp='$CPP $CPPFLAGS'
20456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20460 if test "$cross_compiling" = yes; then
20461 ac_cv_func_mmap_file=no
20463 cat >conftest.$ac_ext <<_ACEOF
20467 cat confdefs.h >>conftest.$ac_ext
20468 cat >>conftest.$ac_ext <<_ACEOF
20469 /* end confdefs.h. */
20471 #include <sys/types.h>
20472 #include <sys/mman.h>
20480 fd = creat ("foo",0777);
20481 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20483 return (fd != (int) MAP_FAILED);
20488 rm -f conftest$ac_exeext
20489 if { (ac_try="$ac_link"
20490 case "(($ac_try" in
20491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20492 *) ac_try_echo=$ac_try;;
20494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20495 (eval "$ac_link") 2>&5
20497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20499 { (case "(($ac_try" in
20500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20501 *) ac_try_echo=$ac_try;;
20503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20504 (eval "$ac_try") 2>&5
20506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 (exit $ac_status); }; }; then
20508 ac_cv_func_mmap_file=yes
20510 echo "$as_me: program exited with status $ac_status" >&5
20511 echo "$as_me: failed program was:" >&5
20512 sed 's/^/| /' conftest.$ac_ext >&5
20514 ( exit $ac_status )
20515 ac_cv_func_mmap_file=no
20517 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20522 ac_cpp='$CPP $CPPFLAGS'
20523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20529 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20530 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20531 if test "$ac_cv_func_mmap_file" = yes; then
20533 cat >>confdefs.h <<\_ACEOF
20534 #define HAVE_MMAP_FILE
20541 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20542 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20543 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20544 echo $ECHO_N "(cached) $ECHO_C" >&6
20546 if test "$llvm_cv_os_type" = "Interix" ; then
20547 ac_cv_need_dev_zero_for_mmap=yes
20549 ac_cv_need_dev_zero_for_mmap=no
20553 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20554 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20555 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20557 cat >>confdefs.h <<\_ACEOF
20558 #define NEED_DEV_ZERO_FOR_MMAP 1
20563 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20565 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20566 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20568 if test "$ac_cv_func_mmap_file" = "no"
20570 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20571 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20575 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20576 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20578 ac_cpp='$CXXCPP $CPPFLAGS'
20579 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20580 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20581 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20583 cat >conftest.$ac_ext <<_ACEOF
20586 cat confdefs.h >>conftest.$ac_ext
20587 cat >>conftest.$ac_ext <<_ACEOF
20588 /* end confdefs.h. */
20590 volatile unsigned long val = 1;
20591 __sync_synchronize();
20592 __sync_val_compare_and_swap(&val, 1, 0);
20593 __sync_add_and_fetch(&val, 1);
20594 __sync_sub_and_fetch(&val, 1);
20599 rm -f conftest.$ac_objext conftest$ac_exeext
20600 if { (ac_try="$ac_link"
20601 case "(($ac_try" in
20602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20603 *) ac_try_echo=$ac_try;;
20605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20606 (eval "$ac_link") 2>conftest.er1
20608 grep -v '^ *+' conftest.er1 >conftest.err
20610 cat conftest.err >&5
20611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612 (exit $ac_status); } &&
20613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20614 { (case "(($ac_try" in
20615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20616 *) ac_try_echo=$ac_try;;
20618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20619 (eval "$ac_try") 2>&5
20621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622 (exit $ac_status); }; } &&
20623 { ac_try='test -s conftest$ac_exeext'
20624 { (case "(($ac_try" in
20625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20626 *) ac_try_echo=$ac_try;;
20628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20629 (eval "$ac_try") 2>&5
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 (exit $ac_status); }; }; then
20634 ac_cpp='$CPP $CPPFLAGS'
20635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20639 { echo "$as_me:$LINENO: result: yes" >&5
20640 echo "${ECHO_T}yes" >&6; }
20642 cat >>confdefs.h <<\_ACEOF
20643 #define LLVM_HAS_ATOMICS 1
20647 echo "$as_me: failed program was:" >&5
20648 sed 's/^/| /' conftest.$ac_ext >&5
20650 { echo "$as_me:$LINENO: result: no" >&5
20651 echo "${ECHO_T}no" >&6; }
20653 cat >>confdefs.h <<\_ACEOF
20654 #define LLVM_HAS_ATOMICS 0
20657 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20658 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20661 rm -f core conftest.err conftest.$ac_objext \
20662 conftest$ac_exeext conftest.$ac_ext
20665 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20666 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20667 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20668 if test "${llvm_cv_linux_mixed+set}" = set; then
20669 echo $ECHO_N "(cached) $ECHO_C" >&6
20672 ac_cpp='$CPP $CPPFLAGS'
20673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20677 cat >conftest.$ac_ext <<_ACEOF
20680 cat confdefs.h >>conftest.$ac_ext
20681 cat >>conftest.$ac_ext <<_ACEOF
20682 /* end confdefs.h. */
20684 error: Not x86-64 even if uname says so!
20695 rm -f conftest.$ac_objext
20696 if { (ac_try="$ac_compile"
20697 case "(($ac_try" in
20698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20699 *) ac_try_echo=$ac_try;;
20701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20702 (eval "$ac_compile") 2>conftest.er1
20704 grep -v '^ *+' conftest.er1 >conftest.err
20706 cat conftest.err >&5
20707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708 (exit $ac_status); } &&
20709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20710 { (case "(($ac_try" in
20711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20712 *) ac_try_echo=$ac_try;;
20714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20715 (eval "$ac_try") 2>&5
20717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718 (exit $ac_status); }; } &&
20719 { ac_try='test -s conftest.$ac_objext'
20720 { (case "(($ac_try" in
20721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20722 *) ac_try_echo=$ac_try;;
20724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20725 (eval "$ac_try") 2>&5
20727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728 (exit $ac_status); }; }; then
20729 llvm_cv_linux_mixed=no
20731 echo "$as_me: failed program was:" >&5
20732 sed 's/^/| /' conftest.$ac_ext >&5
20734 llvm_cv_linux_mixed=yes
20737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20739 ac_cpp='$CPP $CPPFLAGS'
20740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20746 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20747 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20749 if test "$llvm_cv_linux_mixed" = "yes"; then
20750 llvm_cv_target_arch="x86"
20756 for ac_func in __dso_handle
20758 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20759 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20760 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20761 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20762 echo $ECHO_N "(cached) $ECHO_C" >&6
20764 cat >conftest.$ac_ext <<_ACEOF
20767 cat confdefs.h >>conftest.$ac_ext
20768 cat >>conftest.$ac_ext <<_ACEOF
20769 /* end confdefs.h. */
20770 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20772 #define $ac_func innocuous_$ac_func
20774 /* System header to define __stub macros and hopefully few prototypes,
20775 which can conflict with char $ac_func (); below.
20776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20777 <limits.h> exists even on freestanding compilers. */
20780 # include <limits.h>
20782 # include <assert.h>
20787 /* Override any GCC internal prototype to avoid an error.
20788 Use char because int might match the return type of a GCC
20789 builtin and then its argument prototype would still apply. */
20794 /* The GNU C library defines this for functions which it implements
20795 to always fail with ENOSYS. Some functions are actually named
20796 something starting with __ and the normal name is an alias. */
20797 #if defined __stub_$ac_func || defined __stub___$ac_func
20804 return $ac_func ();
20809 rm -f conftest.$ac_objext conftest$ac_exeext
20810 if { (ac_try="$ac_link"
20811 case "(($ac_try" in
20812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20813 *) ac_try_echo=$ac_try;;
20815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20816 (eval "$ac_link") 2>conftest.er1
20818 grep -v '^ *+' conftest.er1 >conftest.err
20820 cat conftest.err >&5
20821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822 (exit $ac_status); } &&
20823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20824 { (case "(($ac_try" in
20825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20826 *) ac_try_echo=$ac_try;;
20828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20829 (eval "$ac_try") 2>&5
20831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20832 (exit $ac_status); }; } &&
20833 { ac_try='test -s conftest$ac_exeext'
20834 { (case "(($ac_try" in
20835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20836 *) ac_try_echo=$ac_try;;
20838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20839 (eval "$ac_try") 2>&5
20841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842 (exit $ac_status); }; }; then
20843 eval "$as_ac_var=yes"
20845 echo "$as_me: failed program was:" >&5
20846 sed 's/^/| /' conftest.$ac_ext >&5
20848 eval "$as_ac_var=no"
20851 rm -f core conftest.err conftest.$ac_objext \
20852 conftest$ac_exeext conftest.$ac_ext
20854 ac_res=`eval echo '${'$as_ac_var'}'`
20855 { echo "$as_me:$LINENO: result: $ac_res" >&5
20856 echo "${ECHO_T}$ac_res" >&6; }
20857 if test `eval echo '${'$as_ac_var'}'` = yes; then
20858 cat >>confdefs.h <<_ACEOF
20859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20866 SHLIBEXT=$libltdl_cv_shlibext
20869 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20872 if test "${prefix}" = "NONE" ; then
20873 prefix="/usr/local"
20875 eval LLVM_PREFIX="${prefix}";
20876 eval LLVM_BINDIR="${prefix}/bin";
20877 eval LLVM_LIBDIR="${prefix}/lib";
20878 eval LLVM_DATADIR="${prefix}/share/llvm";
20879 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20880 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20881 eval LLVM_INCLUDEDIR="${prefix}/include";
20882 eval LLVM_INFODIR="${prefix}/info";
20883 eval LLVM_MANDIR="${prefix}/man";
20884 LLVM_CONFIGTIME=`date`
20896 if test "${ENABLE_TIMESTAMPS}" = "0"; then
20897 LLVM_CONFIGTIME="(timestamp not enabled)"
20901 cat >>confdefs.h <<_ACEOF
20902 #define LLVM_PREFIX "$LLVM_PREFIX"
20906 cat >>confdefs.h <<_ACEOF
20907 #define LLVM_BINDIR "$LLVM_BINDIR"
20911 cat >>confdefs.h <<_ACEOF
20912 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20916 cat >>confdefs.h <<_ACEOF
20917 #define LLVM_DATADIR "$LLVM_DATADIR"
20921 cat >>confdefs.h <<_ACEOF
20922 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20926 cat >>confdefs.h <<_ACEOF
20927 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20931 cat >>confdefs.h <<_ACEOF
20932 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20936 cat >>confdefs.h <<_ACEOF
20937 #define LLVM_INFODIR "$LLVM_INFODIR"
20941 cat >>confdefs.h <<_ACEOF
20942 #define LLVM_MANDIR "$LLVM_MANDIR"
20946 cat >>confdefs.h <<_ACEOF
20947 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20951 cat >>confdefs.h <<_ACEOF
20952 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20956 if test "$BINDINGS_TO_BUILD" = auto ; then
20957 BINDINGS_TO_BUILD=""
20958 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20959 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20962 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20968 binding_prereqs_failed=0
20969 for a_binding in $BINDINGS_TO_BUILD ; do
20970 case "$a_binding" in
20972 if test "x$OCAMLC" = x ; then
20973 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20974 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20975 binding_prereqs_failed=1
20977 if test "x$OCAMLDEP" = x ; then
20978 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20979 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20980 binding_prereqs_failed=1
20982 if test "x$OCAMLOPT" = x ; then
20983 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20984 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20986 if test "x$with_ocaml_libdir" != xauto ; then
20987 OCAML_LIBDIR=$with_ocaml_libdir
20990 ocaml_stdlib="`"$OCAMLC" -where`"
20991 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20993 # ocaml stdlib is beneath our prefix; use stdlib
20994 OCAML_LIBDIR=$ocaml_stdlib
20997 # ocaml stdlib is outside our prefix; use libdir/ocaml
20998 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21005 if test "$binding_prereqs_failed" = 1 ; then
21006 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21007 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21008 { (exit 1); exit 1; }; }
21011 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21012 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21013 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21014 echo $ECHO_N "(cached) $ECHO_C" >&6
21017 ac_cpp='$CXXCPP $CPPFLAGS'
21018 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21019 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21020 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21022 oldcxxflags="$CXXFLAGS"
21023 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21024 cat >conftest.$ac_ext <<_ACEOF
21027 cat confdefs.h >>conftest.$ac_ext
21028 cat >>conftest.$ac_ext <<_ACEOF
21029 /* end confdefs.h. */
21030 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21039 rm -f conftest.$ac_objext
21040 if { (ac_try="$ac_compile"
21041 case "(($ac_try" in
21042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21043 *) ac_try_echo=$ac_try;;
21045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21046 (eval "$ac_compile") 2>conftest.er1
21048 grep -v '^ *+' conftest.er1 >conftest.err
21050 cat conftest.err >&5
21051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052 (exit $ac_status); } &&
21053 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21054 { (case "(($ac_try" in
21055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21056 *) ac_try_echo=$ac_try;;
21058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21059 (eval "$ac_try") 2>&5
21061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062 (exit $ac_status); }; } &&
21063 { ac_try='test -s conftest.$ac_objext'
21064 { (case "(($ac_try" in
21065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21066 *) ac_try_echo=$ac_try;;
21068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21069 (eval "$ac_try") 2>&5
21071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072 (exit $ac_status); }; }; then
21073 llvm_cv_cxx_visibility_inlines_hidden=yes
21075 echo "$as_me: failed program was:" >&5
21076 sed 's/^/| /' conftest.$ac_ext >&5
21078 llvm_cv_cxx_visibility_inlines_hidden=no
21081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21082 CXXFLAGS="$oldcxxflags"
21084 ac_cpp='$CPP $CPPFLAGS'
21085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21091 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21092 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21093 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21094 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21097 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21102 if test "$llvm_cv_link_use_r" = "yes" ; then
21109 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21110 RDYNAMIC="-Wl,-export-dynamic"
21117 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21124 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21126 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21128 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21130 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21132 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21135 ac_config_files="$ac_config_files Makefile.config"
21138 ac_config_files="$ac_config_files llvm.spec"
21141 ac_config_files="$ac_config_files docs/doxygen.cfg"
21144 if test "${clang_src_root}" = ""; then
21145 clang_src_root="$srcdir/tools/clang"
21147 if test -f ${clang_src_root}/README.txt; then
21148 configh="include/clang/Config/config.h"
21149 doxy="docs/doxygen.cfg"
21150 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21152 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21156 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21159 ac_config_commands="$ac_config_commands setup"
21161 ac_config_commands="$ac_config_commands Makefile"
21164 ac_config_commands="$ac_config_commands Makefile.common"
21167 ac_config_commands="$ac_config_commands examples/Makefile"
21170 ac_config_commands="$ac_config_commands lib/Makefile"
21173 ac_config_commands="$ac_config_commands runtime/Makefile"
21176 ac_config_commands="$ac_config_commands test/Makefile"
21179 ac_config_commands="$ac_config_commands test/Makefile.tests"
21182 ac_config_commands="$ac_config_commands unittests/Makefile"
21185 ac_config_commands="$ac_config_commands tools/Makefile"
21188 ac_config_commands="$ac_config_commands utils/Makefile"
21191 ac_config_commands="$ac_config_commands projects/Makefile"
21194 ac_config_commands="$ac_config_commands bindings/Makefile"
21197 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21201 cat >confcache <<\_ACEOF
21202 # This file is a shell script that caches the results of configure
21203 # tests run on this system so they can be shared between configure
21204 # scripts and configure runs, see configure's option --config-cache.
21205 # It is not useful on other systems. If it contains results you don't
21206 # want to keep, you may remove or edit it.
21208 # config.status only pays attention to the cache file if you give it
21209 # the --recheck option to rerun configure.
21211 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21212 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21213 # following values.
21217 # The following way of writing the cache mishandles newlines in values,
21218 # but we know of no workaround that is simple, portable, and efficient.
21219 # So, we kill variables containing newlines.
21220 # Ultrix sh set writes to stderr and can't be redirected directly,
21221 # and sets the high bit in the cache file unless we assign to the vars.
21223 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21224 eval ac_val=\$$ac_var
21228 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21229 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21232 _ | IFS | as_nl) ;; #(
21233 *) $as_unset $ac_var ;;
21239 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21240 *${as_nl}ac_space=\ *)
21241 # `set' does not quote correctly, so add quotes (double-quote
21242 # substitution turns \\\\ into \\, and sed turns \\ into \).
21245 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21248 # `set' quotes correctly as required by POSIX, so do not add quotes.
21249 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21258 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21260 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21262 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21263 if test -w "$cache_file"; then
21264 test "x$cache_file" != "x/dev/null" &&
21265 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21266 echo "$as_me: updating cache $cache_file" >&6;}
21267 cat confcache >$cache_file
21269 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21270 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21275 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21276 # Let make expand exec_prefix.
21277 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21279 DEFS=-DHAVE_CONFIG_H
21283 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21284 # 1. Remove the extension, and $U if already installed.
21285 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21286 ac_i=`echo "$ac_i" | sed "$ac_script"`
21287 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21288 # will be set to the directory where LIBOBJS objects are built.
21289 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21290 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21292 LIBOBJS=$ac_libobjs
21294 LTLIBOBJS=$ac_ltlibobjs
21297 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21298 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21299 Usually this means the macro was only invoked conditionally." >&5
21300 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21301 Usually this means the macro was only invoked conditionally." >&2;}
21302 { (exit 1); exit 1; }; }
21304 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21305 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21306 Usually this means the macro was only invoked conditionally." >&5
21307 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21308 Usually this means the macro was only invoked conditionally." >&2;}
21309 { (exit 1); exit 1; }; }
21312 : ${CONFIG_STATUS=./config.status}
21313 ac_clean_files_save=$ac_clean_files
21314 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21315 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21316 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21317 cat >$CONFIG_STATUS <<_ACEOF
21319 # Generated by $as_me.
21320 # Run this file to recreate the current configuration.
21321 # Compiler output produced by configure, useful for debugging
21322 # configure, is in config.log if it exists.
21325 ac_cs_recheck=false
21327 SHELL=\${CONFIG_SHELL-$SHELL}
21330 cat >>$CONFIG_STATUS <<\_ACEOF
21331 ## --------------------- ##
21332 ## M4sh Initialization. ##
21333 ## --------------------- ##
21335 # Be Bourne compatible
21336 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21339 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21340 # is contrary to our usage. Disable this feature.
21341 alias -g '${1+"$@"}'='"$@"'
21342 setopt NO_GLOB_SUBST
21344 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21346 BIN_SH=xpg4; export BIN_SH # for Tru64
21347 DUALCASE=1; export DUALCASE # for MKS sh
21351 # Avoid depending upon Character Ranges.
21352 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21353 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21354 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21355 as_cr_digits='0123456789'
21356 as_cr_alnum=$as_cr_Letters$as_cr_digits
21358 # The user is always right.
21359 if test "${PATH_SEPARATOR+set}" != set; then
21360 echo "#! /bin/sh" >conf$$.sh
21361 echo "exit 0" >>conf$$.sh
21363 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21371 # Support unset when possible.
21372 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21380 # We need space, tab and new line, in precisely that order. Quoting is
21381 # there to prevent editors from complaining about space-tab.
21382 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21383 # splitting by setting IFS to empty value.)
21388 # Find who we are. Look in the path if we contain no directory separator.
21390 *[\\/]* ) as_myself=$0 ;;
21391 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21392 for as_dir in $PATH
21395 test -z "$as_dir" && as_dir=.
21396 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21402 # We did not find ourselves, most probably we were run as `sh COMMAND'
21403 # in which case we are not to be found in the path.
21404 if test "x$as_myself" = x; then
21407 if test ! -f "$as_myself"; then
21408 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21409 { (exit 1); exit 1; }
21412 # Work around bugs in pre-3.0 UWIN ksh.
21413 for as_var in ENV MAIL MAILPATH
21414 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21422 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21423 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21424 LC_TELEPHONE LC_TIME
21426 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21427 eval $as_var=C; export $as_var
21429 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21433 # Required to use basename.
21434 if expr a : '\(a\)' >/dev/null 2>&1 &&
21435 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21441 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21442 as_basename=basename
21448 # Name of the executable.
21449 as_me=`$as_basename -- "$0" ||
21450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21451 X"$0" : 'X\(//\)$' \| \
21452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21454 sed '/^.*\/\([^/][^/]*\)\/*$/{
21473 as_lineno_1=$LINENO
21474 as_lineno_2=$LINENO
21475 test "x$as_lineno_1" != "x$as_lineno_2" &&
21476 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21478 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21479 # uniformly replaced by the line number. The first 'sed' inserts a
21480 # line-number line after each line using $LINENO; the second 'sed'
21481 # does the real work. The second script uses 'N' to pair each
21482 # line-number line with the line containing $LINENO, and appends
21483 # trailing '-' during substitution so that $LINENO is not a special
21484 # case at line end.
21485 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21486 # scripts with optimization help from Paolo Bonzini. Blame Lee
21487 # E. McMahon (1931-1989) for sed's syntax. :-)
21499 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21502 ' >$as_me.lineno &&
21503 chmod +x "$as_me.lineno" ||
21504 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21505 { (exit 1); exit 1; }; }
21507 # Don't try to exec as it changes $[0], causing all sort of problems
21508 # (the dirname of $[0] is not the place where we might find the
21509 # original and so on. Autoconf is especially sensitive to this).
21510 . "./$as_me.lineno"
21511 # Exit status is that of the last command.
21516 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21522 ECHO_C= ECHO_N= ECHO_T=
21523 case `echo -n x` in
21525 case `echo 'x\c'` in
21526 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21533 if expr a : '\(a\)' >/dev/null 2>&1 &&
21534 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21540 rm -f conf$$ conf$$.exe conf$$.file
21541 if test -d conf$$.dir; then
21542 rm -f conf$$.dir/conf$$.file
21548 if ln -s conf$$.file conf$$ 2>/dev/null; then
21550 # ... but there are two gotchas:
21551 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21552 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21553 # In both cases, we have to default to `cp -p'.
21554 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21556 elif ln conf$$.file conf$$ 2>/dev/null; then
21561 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21562 rmdir conf$$.dir 2>/dev/null
21564 if mkdir -p . 2>/dev/null; then
21567 test -d ./-p && rmdir ./-p
21571 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21572 # systems may use methods other than mode bits to determine executability.
21573 cat >conf$$.file <<_ASEOF
21577 chmod +x conf$$.file
21578 if test -x conf$$.file >/dev/null 2>&1; then
21579 as_executable_p="test -x"
21585 # Sed expression to map a string onto a valid CPP name.
21586 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21588 # Sed expression to map a string onto a valid variable name.
21589 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21594 # Save the log message, to keep $[0] and so on meaningful, and to
21595 # report actual input values of CONFIG_FILES etc. instead of their
21596 # values after options handling.
21598 This file was extended by LLVM $as_me 3.2svn, which was
21599 generated by GNU Autoconf 2.60. Invocation command line was
21601 CONFIG_FILES = $CONFIG_FILES
21602 CONFIG_HEADERS = $CONFIG_HEADERS
21603 CONFIG_LINKS = $CONFIG_LINKS
21604 CONFIG_COMMANDS = $CONFIG_COMMANDS
21607 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21612 cat >>$CONFIG_STATUS <<_ACEOF
21613 # Files that config.status was made for.
21614 config_files="$ac_config_files"
21615 config_headers="$ac_config_headers"
21616 config_commands="$ac_config_commands"
21620 cat >>$CONFIG_STATUS <<\_ACEOF
21622 \`$as_me' instantiates files from templates according to the
21623 current configuration.
21625 Usage: $0 [OPTIONS] [FILE]...
21627 -h, --help print this help, then exit
21628 -V, --version print version number, then exit
21629 -q, --quiet do not print progress messages
21630 -d, --debug don't remove temporary files
21631 --recheck update $as_me by reconfiguring in the same conditions
21632 --file=FILE[:TEMPLATE]
21633 instantiate the configuration file FILE
21634 --header=FILE[:TEMPLATE]
21635 instantiate the configuration header FILE
21637 Configuration files:
21640 Configuration headers:
21643 Configuration commands:
21646 Report bugs to <bug-autoconf@gnu.org>."
21649 cat >>$CONFIG_STATUS <<_ACEOF
21651 LLVM config.status 3.2svn
21652 configured by $0, generated by GNU Autoconf 2.60,
21653 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21655 Copyright (C) 2006 Free Software Foundation, Inc.
21656 This config.status script is free software; the Free Software Foundation
21657 gives unlimited permission to copy, distribute and modify it."
21664 cat >>$CONFIG_STATUS <<\_ACEOF
21665 # If no file are specified by the user, then we need to provide default
21666 # value. By we need to know if files were specified by the user.
21672 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21673 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21684 # Handling of the options.
21685 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21687 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21688 echo "$ac_cs_version"; exit ;;
21689 --debug | --debu | --deb | --de | --d | -d )
21691 --file | --fil | --fi | --f )
21693 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21694 ac_need_defaults=false;;
21695 --header | --heade | --head | --hea )
21697 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21698 ac_need_defaults=false;;
21700 # Conflict between --help and --header
21701 { echo "$as_me: error: ambiguous option: $1
21702 Try \`$0 --help' for more information." >&2
21703 { (exit 1); exit 1; }; };;
21704 --help | --hel | -h )
21705 echo "$ac_cs_usage"; exit ;;
21706 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21707 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21710 # This is an error.
21711 -*) { echo "$as_me: error: unrecognized option: $1
21712 Try \`$0 --help' for more information." >&2
21713 { (exit 1); exit 1; }; } ;;
21715 *) ac_config_targets="$ac_config_targets $1"
21716 ac_need_defaults=false ;;
21722 ac_configure_extra_args=
21724 if $ac_cs_silent; then
21726 ac_configure_extra_args="$ac_configure_extra_args --silent"
21730 cat >>$CONFIG_STATUS <<_ACEOF
21731 if \$ac_cs_recheck; then
21732 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21733 CONFIG_SHELL=$SHELL
21734 export CONFIG_SHELL
21735 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21739 cat >>$CONFIG_STATUS <<\_ACEOF
21743 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21744 ## Running $as_me. ##
21750 cat >>$CONFIG_STATUS <<_ACEOF
21754 llvm_src="${srcdir}"
21758 cat >>$CONFIG_STATUS <<\_ACEOF
21760 # Handling of arguments.
21761 for ac_config_target in $ac_config_targets
21763 case $ac_config_target in
21764 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21765 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21766 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21767 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21768 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21769 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21770 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21771 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21772 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21773 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21774 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21775 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
21776 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21777 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21778 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21779 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21780 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21781 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21782 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21783 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21784 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21785 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21786 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21787 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21788 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21789 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21790 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21792 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21793 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21794 { (exit 1); exit 1; }; };;
21799 # If the user did not use the arguments to specify the items to instantiate,
21800 # then the envvar interface is used. Set only those that are not.
21801 # We use the long form for the default assignment because of an extremely
21802 # bizarre bug on SunOS 4.1.3.
21803 if $ac_need_defaults; then
21804 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21805 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21806 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21809 # Have a temporary directory for convenience. Make it in the build tree
21810 # simply because there is no reason against having it here, and in addition,
21811 # creating and moving files from /tmp can sometimes cause problems.
21812 # Hook for its removal unless debugging.
21813 # Note that there is a small window in which the directory will not be cleaned:
21814 # after its creation but before its name has been assigned to `$tmp'.
21818 trap 'exit_status=$?
21819 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21821 trap '{ (exit 1); exit 1; }' 1 2 13 15
21823 # Create a (secure) tmp directory for tmp files.
21826 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21827 test -n "$tmp" && test -d "$tmp"
21830 tmp=./conf$$-$RANDOM
21831 (umask 077 && mkdir "$tmp")
21834 echo "$me: cannot create a temporary directory in ." >&2
21835 { (exit 1); exit 1; }
21839 # Set up the sed scripts for CONFIG_FILES section.
21842 # No need to generate the scripts if there are no CONFIG_FILES.
21843 # This happens for instance when ./config.status config.h
21844 if test -n "$CONFIG_FILES"; then
21851 for ac_last_try in false false false false false :; do
21852 cat >conf$$subs.sed <<_ACEOF
21853 SHELL!$SHELL$ac_delim
21854 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21855 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21856 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21857 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21858 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21859 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21860 exec_prefix!$exec_prefix$ac_delim
21861 prefix!$prefix$ac_delim
21862 program_transform_name!$program_transform_name$ac_delim
21863 bindir!$bindir$ac_delim
21864 sbindir!$sbindir$ac_delim
21865 libexecdir!$libexecdir$ac_delim
21866 datarootdir!$datarootdir$ac_delim
21867 datadir!$datadir$ac_delim
21868 sysconfdir!$sysconfdir$ac_delim
21869 sharedstatedir!$sharedstatedir$ac_delim
21870 localstatedir!$localstatedir$ac_delim
21871 includedir!$includedir$ac_delim
21872 oldincludedir!$oldincludedir$ac_delim
21873 docdir!$docdir$ac_delim
21874 infodir!$infodir$ac_delim
21875 htmldir!$htmldir$ac_delim
21876 dvidir!$dvidir$ac_delim
21877 pdfdir!$pdfdir$ac_delim
21878 psdir!$psdir$ac_delim
21879 libdir!$libdir$ac_delim
21880 localedir!$localedir$ac_delim
21881 mandir!$mandir$ac_delim
21882 DEFS!$DEFS$ac_delim
21883 ECHO_C!$ECHO_C$ac_delim
21884 ECHO_N!$ECHO_N$ac_delim
21885 ECHO_T!$ECHO_T$ac_delim
21886 LIBS!$LIBS$ac_delim
21887 build_alias!$build_alias$ac_delim
21888 host_alias!$host_alias$ac_delim
21889 target_alias!$target_alias$ac_delim
21890 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21892 CFLAGS!$CFLAGS$ac_delim
21893 LDFLAGS!$LDFLAGS$ac_delim
21894 CPPFLAGS!$CPPFLAGS$ac_delim
21895 ac_ct_CC!$ac_ct_CC$ac_delim
21896 EXEEXT!$EXEEXT$ac_delim
21897 OBJEXT!$OBJEXT$ac_delim
21899 CXXFLAGS!$CXXFLAGS$ac_delim
21900 ac_ct_CXX!$ac_ct_CXX$ac_delim
21902 subdirs!$subdirs$ac_delim
21903 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21904 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21905 build!$build$ac_delim
21906 build_cpu!$build_cpu$ac_delim
21907 build_vendor!$build_vendor$ac_delim
21908 build_os!$build_os$ac_delim
21909 host!$host$ac_delim
21910 host_cpu!$host_cpu$ac_delim
21911 host_vendor!$host_vendor$ac_delim
21912 host_os!$host_os$ac_delim
21913 target!$target$ac_delim
21914 target_cpu!$target_cpu$ac_delim
21915 target_vendor!$target_vendor$ac_delim
21916 target_os!$target_os$ac_delim
21918 HOST_OS!$HOST_OS$ac_delim
21919 TARGET_OS!$TARGET_OS$ac_delim
21920 LINKALL!$LINKALL$ac_delim
21921 NOLINKALL!$NOLINKALL$ac_delim
21922 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21923 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21924 ARCH!$ARCH$ac_delim
21925 HOST_ARCH!$HOST_ARCH$ac_delim
21926 ENDIAN!$ENDIAN$ac_delim
21927 GREP!$GREP$ac_delim
21928 EGREP!$EGREP$ac_delim
21929 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21930 BUILD_CC!$BUILD_CC$ac_delim
21931 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21932 BUILD_CXX!$BUILD_CXX$ac_delim
21933 CVSBUILD!$CVSBUILD$ac_delim
21934 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21935 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21936 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21937 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21938 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21939 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21940 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21941 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21943 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21944 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21945 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21946 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
21947 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21948 ENABLE_PIC!$ENABLE_PIC$ac_delim
21949 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21952 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21954 elif $ac_last_try; then
21955 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21956 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21957 { (exit 1); exit 1; }; }
21959 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21963 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21964 if test -n "$ac_eof"; then
21965 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21966 ac_eof=`expr $ac_eof + 1`
21969 cat >>$CONFIG_STATUS <<_ACEOF
21970 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21971 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21974 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21975 s/^/s,@/; s/!/@,|#_!!_#|/
21978 s/'"$ac_delim"'$/,g/; t
21980 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21981 ' >>$CONFIG_STATUS <conf$$subs.sed
21982 rm -f conf$$subs.sed
21983 cat >>$CONFIG_STATUS <<_ACEOF
21989 for ac_last_try in false false false false false :; do
21990 cat >conf$$subs.sed <<_ACEOF
21991 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21992 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21993 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21994 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21995 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21996 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21997 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21998 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21999 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22000 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22001 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22002 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22003 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22005 ifGNUmake!$ifGNUmake$ac_delim
22006 LN_S!$LN_S$ac_delim
22009 DATE!$DATE$ac_delim
22010 FIND!$FIND$ac_delim
22011 MKDIR!$MKDIR$ac_delim
22013 RANLIB!$RANLIB$ac_delim
22018 BINPWD!$BINPWD$ac_delim
22019 GRAPHVIZ!$GRAPHVIZ$ac_delim
22022 NEATO!$NEATO$ac_delim
22023 TWOPI!$TWOPI$ac_delim
22024 CIRCO!$CIRCO$ac_delim
22026 DOTTY!$DOTTY$ac_delim
22027 XDOT_PY!$XDOT_PY$ac_delim
22028 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22029 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22030 INSTALL_DATA!$INSTALL_DATA$ac_delim
22031 BZIP2!$BZIP2$ac_delim
22033 DOXYGEN!$DOXYGEN$ac_delim
22034 GROFF!$GROFF$ac_delim
22035 GZIPBIN!$GZIPBIN$ac_delim
22036 PDFROFF!$PDFROFF$ac_delim
22038 OCAMLC!$OCAMLC$ac_delim
22039 OCAMLOPT!$OCAMLOPT$ac_delim
22040 OCAMLDEP!$OCAMLDEP$ac_delim
22041 OCAMLDOC!$OCAMLDOC$ac_delim
22043 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22044 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22045 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22046 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22047 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22048 LIBADD_DL!$LIBADD_DL$ac_delim
22049 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22050 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22051 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22052 USE_UDIS86!$USE_UDIS86$ac_delim
22053 USE_OPROFILE!$USE_OPROFILE$ac_delim
22054 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22055 INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
22056 INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
22057 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22058 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22059 MMAP_FILE!$MMAP_FILE$ac_delim
22060 SHLIBEXT!$SHLIBEXT$ac_delim
22061 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22062 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22063 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22064 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22065 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22066 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22067 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22068 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22069 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22070 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22071 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22072 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22073 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22074 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22075 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22076 RPATH!$RPATH$ac_delim
22077 RDYNAMIC!$RDYNAMIC$ac_delim
22078 LIBOBJS!$LIBOBJS$ac_delim
22079 LTLIBOBJS!$LTLIBOBJS$ac_delim
22082 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
22084 elif $ac_last_try; then
22085 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22086 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22087 { (exit 1); exit 1; }; }
22089 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22093 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22094 if test -n "$ac_eof"; then
22095 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22096 ac_eof=`expr $ac_eof + 1`
22099 cat >>$CONFIG_STATUS <<_ACEOF
22100 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22101 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22104 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22105 s/^/s,@/; s/!/@,|#_!!_#|/
22108 s/'"$ac_delim"'$/,g/; t
22110 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22111 ' >>$CONFIG_STATUS <conf$$subs.sed
22112 rm -f conf$$subs.sed
22113 cat >>$CONFIG_STATUS <<_ACEOF
22120 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22121 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22122 # trailing colons and then remove the whole line if VPATH becomes empty
22123 # (actually we leave an empty line to preserve line numbers).
22124 if test "x$srcdir" = x.; then
22125 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22126 s/:*\$(srcdir):*/:/
22127 s/:*\${srcdir}:*/:/
22129 s/^\([^=]*=[ ]*\):*/\1/
22135 cat >>$CONFIG_STATUS <<\_ACEOF
22136 fi # test -n "$CONFIG_FILES"
22139 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22142 :[FHLC]) ac_mode=$ac_tag; continue;;
22144 case $ac_mode$ac_tag in
22146 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22147 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22148 { (exit 1); exit 1; }; };;
22149 :[FH]-) ac_tag=-:-;;
22150 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22167 -) ac_f="$tmp/stdin";;
22168 *) # Look for the file first in the build tree, then in the source tree
22169 # (if the path is not absolute). The absolute path cannot be DOS-style,
22170 # because $ac_f cannot contain `:'.
22174 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22176 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22177 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22178 { (exit 1); exit 1; }; };;
22180 ac_file_inputs="$ac_file_inputs $ac_f"
22183 # Let's still pretend it is `configure' which instantiates (i.e., don't
22184 # use $as_me), people would be surprised to read:
22185 # /* config.h. Generated by config.status. */
22186 configure_input="Generated from "`IFS=:
22187 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22188 if test x"$ac_file" != x-; then
22189 configure_input="$ac_file. $configure_input"
22190 { echo "$as_me:$LINENO: creating $ac_file" >&5
22191 echo "$as_me: creating $ac_file" >&6;}
22195 *:-:* | *:-) cat >"$tmp/stdin";;
22200 ac_dir=`$as_dirname -- "$ac_file" ||
22201 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22202 X"$ac_file" : 'X\(//\)[^/]' \| \
22203 X"$ac_file" : 'X\(//\)$' \| \
22204 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22210 /^X\(\/\/\)[^/].*/{
22225 -*) as_dir=./$as_dir;;
22227 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22231 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22232 *) as_qdir=$as_dir;;
22234 as_dirs="'$as_qdir' $as_dirs"
22235 as_dir=`$as_dirname -- "$as_dir" ||
22236 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22237 X"$as_dir" : 'X\(//\)[^/]' \| \
22238 X"$as_dir" : 'X\(//\)$' \| \
22239 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22245 /^X\(\/\/\)[^/].*/{
22258 test -d "$as_dir" && break
22260 test -z "$as_dirs" || eval "mkdir $as_dirs"
22261 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22262 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22263 { (exit 1); exit 1; }; }; }
22267 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22269 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22270 # A ".." for each directory in $ac_dir_suffix.
22271 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22272 case $ac_top_builddir_sub in
22273 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22274 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22277 ac_abs_top_builddir=$ac_pwd
22278 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22279 # for backward compatibility:
22280 ac_top_builddir=$ac_top_build_prefix
22283 .) # We are building in place.
22285 ac_top_srcdir=$ac_top_builddir_sub
22286 ac_abs_top_srcdir=$ac_pwd ;;
22287 [\\/]* | ?:[\\/]* ) # Absolute name.
22288 ac_srcdir=$srcdir$ac_dir_suffix;
22289 ac_top_srcdir=$srcdir
22290 ac_abs_top_srcdir=$srcdir ;;
22291 *) # Relative name.
22292 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22293 ac_top_srcdir=$ac_top_build_prefix$srcdir
22294 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22296 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22306 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22307 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22311 cat >>$CONFIG_STATUS <<\_ACEOF
22312 # If the template does not know about datarootdir, expand it.
22313 # FIXME: This hack should be removed a few years after 2.60.
22314 ac_datarootdir_hack=; ac_datarootdir_seen=
22316 case `sed -n '/datarootdir/ {
22325 ' $ac_file_inputs` in
22326 *datarootdir*) ac_datarootdir_seen=yes;;
22327 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22328 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22329 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22331 cat >>$CONFIG_STATUS <<_ACEOF
22332 ac_datarootdir_hack='
22333 s&@datadir@&$datadir&g
22334 s&@docdir@&$docdir&g
22335 s&@infodir@&$infodir&g
22336 s&@localedir@&$localedir&g
22337 s&@mandir@&$mandir&g
22338 s&\\\${datarootdir}&$datarootdir&g' ;;
22342 # Neutralize VPATH when `$srcdir' = `.'.
22343 # Shell code in configure.ac might set extrasub.
22344 # FIXME: do we really want to maintain this feature?
22345 cat >>$CONFIG_STATUS <<_ACEOF
22349 cat >>$CONFIG_STATUS <<\_ACEOF
22351 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22352 s&@configure_input@&$configure_input&;t t
22353 s&@top_builddir@&$ac_top_builddir_sub&;t t
22354 s&@srcdir@&$ac_srcdir&;t t
22355 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22356 s&@top_srcdir@&$ac_top_srcdir&;t t
22357 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22358 s&@builddir@&$ac_builddir&;t t
22359 s&@abs_builddir@&$ac_abs_builddir&;t t
22360 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22361 s&@INSTALL@&$ac_INSTALL&;t t
22362 $ac_datarootdir_hack
22363 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22365 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22366 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22367 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22368 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22369 which seems to be undefined. Please make sure it is defined." >&5
22370 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22371 which seems to be undefined. Please make sure it is defined." >&2;}
22375 -) cat "$tmp/out"; rm -f "$tmp/out";;
22376 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22385 # Transform confdefs.h into a sed script `conftest.defines', that
22386 # substitutes the proper values into config.h.in to produce config.h.
22387 rm -f conftest.defines conftest.tail
22388 # First, append a space to every undef/define line, to ease matching.
22389 echo 's/$/ /' >conftest.defines
22390 # Then, protect against being on the right side of a sed subst, or in
22391 # an unquoted here document, in config.status. If some macros were
22392 # called several times there might be several #defines for the same
22393 # symbol, which is useless. But do not sort them, since the last
22394 # AC_DEFINE must be honored.
22395 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22396 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22397 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22398 # PARAMS is the parameter list in the macro definition--in most cases, it's
22399 # just an empty string.
22400 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22401 ac_dB='\\)[ (].*,\\1define\\2'
22409 s/^[ ]*#[ ]*define[ ][ ]*//
22414 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22415 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22416 ' >>conftest.defines
22418 # Remove the space that was appended to ease matching.
22419 # Then replace #undef with comments. This is necessary, for
22420 # example, in the case of _POSIX_SOURCE, which is predefined and required
22421 # on some systems where configure will not decide to define it.
22422 # (The regexp can be short, since the line contains either #define or #undef.)
22424 s,^[ #]*u.*,/* & */,' >>conftest.defines
22426 # Break up conftest.defines:
22427 ac_max_sed_lines=50
22429 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22430 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22431 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22433 ac_in='$ac_file_inputs'
22434 ac_out='"$tmp/out1"'
22435 ac_nxt='"$tmp/out2"'
22439 # Write a here document:
22440 cat >>$CONFIG_STATUS <<_ACEOF
22441 # First, check the format of the line:
22442 cat >"\$tmp/defines.sed" <<\\CEOF
22443 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22444 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22448 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22450 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22451 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22452 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22453 grep . conftest.tail >/dev/null || break
22454 rm -f conftest.defines
22455 mv conftest.tail conftest.defines
22457 rm -f conftest.defines conftest.tail
22459 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22460 cat >>$CONFIG_STATUS <<\_ACEOF
22461 if test x"$ac_file" != x-; then
22462 echo "/* $configure_input */" >"$tmp/config.h"
22463 cat "$ac_result" >>"$tmp/config.h"
22464 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22465 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22466 echo "$as_me: $ac_file is unchanged" >&6;}
22469 mv "$tmp/config.h" $ac_file
22472 echo "/* $configure_input */"
22478 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22479 echo "$as_me: executing $ac_file commands" >&6;}
22484 case $ac_file$ac_mode in
22485 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22486 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22487 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22488 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22489 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22490 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22491 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22492 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22493 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22494 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22495 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22496 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22497 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22498 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22499 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22500 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22501 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22502 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22503 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22504 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22505 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22506 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22507 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22508 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22509 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22510 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22516 { (exit 0); exit 0; }
22518 chmod +x $CONFIG_STATUS
22519 ac_clean_files=$ac_clean_files_save
22522 # configure is writing to config.log, and then calls config.status.
22523 # config.status does its own redirection, appending to config.log.
22524 # Unfortunately, on DOS this fails, as config.log is still kept open
22525 # by configure, so config.status won't be able to write to it; its
22526 # output is simply discarded. So we exec the FD to /dev/null,
22527 # effectively closing config.log, so it can be properly (re)opened and
22528 # appended to by config.status. When coming back to configure, we
22529 # need to make the FD available again.
22530 if test "$no_create" != yes; then
22532 ac_config_status_args=
22533 test "$silent" = yes &&
22534 ac_config_status_args="$ac_config_status_args --quiet"
22536 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22538 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22539 # would make configure fail if this is the last instruction.
22540 $ac_cs_success || { (exit 1); exit 1; }
22544 # CONFIG_SUBDIRS section.
22546 if test "$no_recursion" != yes; then
22548 # Remove --cache-file and --srcdir arguments so they do not pile up.
22549 ac_sub_configure_args=
22551 eval "set x $ac_configure_args"
22555 if test -n "$ac_prev"; then
22560 -cache-file | --cache-file | --cache-fil | --cache-fi \
22561 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22562 ac_prev=cache_file ;;
22563 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22564 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22567 --config-cache | -C)
22569 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22571 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22573 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22575 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22579 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22581 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22585 # Always prepend --prefix to ensure using the same prefix
22586 # in subdir configurations.
22587 ac_arg="--prefix=$prefix"
22589 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22591 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22594 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22596 # Do not complain, so a configure script can configure whichever
22597 # parts of a large source tree are present.
22598 test -d "$srcdir/$ac_dir" || continue
22600 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22601 echo "$as_me:$LINENO: $ac_msg" >&5
22605 -*) as_dir=./$as_dir;;
22607 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22611 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22612 *) as_qdir=$as_dir;;
22614 as_dirs="'$as_qdir' $as_dirs"
22615 as_dir=`$as_dirname -- "$as_dir" ||
22616 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22617 X"$as_dir" : 'X\(//\)[^/]' \| \
22618 X"$as_dir" : 'X\(//\)$' \| \
22619 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22621 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22625 /^X\(\/\/\)[^/].*/{
22638 test -d "$as_dir" && break
22640 test -z "$as_dirs" || eval "mkdir $as_dirs"
22641 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22642 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22643 { (exit 1); exit 1; }; }; }
22647 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22649 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22650 # A ".." for each directory in $ac_dir_suffix.
22651 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22652 case $ac_top_builddir_sub in
22653 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22654 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22657 ac_abs_top_builddir=$ac_pwd
22658 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22659 # for backward compatibility:
22660 ac_top_builddir=$ac_top_build_prefix
22663 .) # We are building in place.
22665 ac_top_srcdir=$ac_top_builddir_sub
22666 ac_abs_top_srcdir=$ac_pwd ;;
22667 [\\/]* | ?:[\\/]* ) # Absolute name.
22668 ac_srcdir=$srcdir$ac_dir_suffix;
22669 ac_top_srcdir=$srcdir
22670 ac_abs_top_srcdir=$srcdir ;;
22671 *) # Relative name.
22672 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22673 ac_top_srcdir=$ac_top_build_prefix$srcdir
22674 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22676 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22681 # Check for guested configure; otherwise get Cygnus style configure.
22682 if test -f "$ac_srcdir/configure.gnu"; then
22683 ac_sub_configure=$ac_srcdir/configure.gnu
22684 elif test -f "$ac_srcdir/configure"; then
22685 ac_sub_configure=$ac_srcdir/configure
22686 elif test -f "$ac_srcdir/configure.in"; then
22687 # This should be Cygnus configure.
22688 ac_sub_configure=$ac_aux_dir/configure
22690 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22691 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22695 # The recursion is here.
22696 if test -n "$ac_sub_configure"; then
22697 # Make the cache file name correct relative to the subdirectory.
22698 case $cache_file in
22699 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22700 *) # Relative name.
22701 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22704 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22705 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22706 # The eval makes quoting arguments work.
22707 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22708 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22709 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22710 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22711 { (exit 1); exit 1; }; }