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
689 ENABLE_EXPENSIVE_CHECKS
705 LLVM_ENUM_ASM_PRINTERS
706 LLVM_ENUM_ASM_PARSERS
707 LLVM_ENUM_DISASSEMBLERS
751 HAVE_LINK_VERSION_SCRIPT
754 CONVENIENCE_LTDL_TRUE
755 CONVENIENCE_LTDL_FALSE
758 NO_MISSING_FIELD_INITIALIZERS
759 COVERED_SWITCH_DEFAULT
763 INTEL_JITEVENTS_INCDIR
764 INTEL_JITEVENTS_LIBDIR
783 ENABLE_VISIBILITY_INLINES_HIDDEN
789 ac_precious_vars='build_alias
800 ac_subdirs_all='projects/llvm-gcc
804 projects/llvm-poolalloc
807 projects/llvm-stacker
815 # Initialize some variables set by options.
817 ac_init_version=false
818 # The variables have the same names as the options, with
819 # dashes changed to underlines.
827 program_transform_name=s,x,x,
835 # Installation directory options.
836 # These are left unexpanded so users can "make install exec_prefix=/foo"
837 # and all the variables that are supposed to be based on exec_prefix
838 # by default will actually change.
839 # Use braces instead of parens because sh, perl, etc. also accept them.
840 # (The list follows the same order as the GNU Coding Standards.)
841 bindir='${exec_prefix}/bin'
842 sbindir='${exec_prefix}/sbin'
843 libexecdir='${exec_prefix}/libexec'
844 datarootdir='${prefix}/share'
845 datadir='${datarootdir}'
846 sysconfdir='${prefix}/etc'
847 sharedstatedir='${prefix}/com'
848 localstatedir='${prefix}/var'
849 includedir='${prefix}/include'
850 oldincludedir='/usr/include'
851 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
852 infodir='${datarootdir}/info'
857 libdir='${exec_prefix}/lib'
858 localedir='${datarootdir}/locale'
859 mandir='${datarootdir}/man'
865 # If the previous option needs an argument, assign it.
866 if test -n "$ac_prev"; then
867 eval $ac_prev=\$ac_option
873 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
877 # Accept the important Cygnus configure options, so we can diagnose typos.
879 case $ac_dashdash$ac_option in
883 -bindir | --bindir | --bindi | --bind | --bin | --bi)
885 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
888 -build | --build | --buil | --bui | --bu)
889 ac_prev=build_alias ;;
890 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
891 build_alias=$ac_optarg ;;
893 -cache-file | --cache-file | --cache-fil | --cache-fi \
894 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
895 ac_prev=cache_file ;;
896 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
897 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
898 cache_file=$ac_optarg ;;
901 cache_file=config.cache ;;
903 -datadir | --datadir | --datadi | --datad)
905 -datadir=* | --datadir=* | --datadi=* | --datad=*)
906 datadir=$ac_optarg ;;
908 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
909 | --dataroo | --dataro | --datar)
910 ac_prev=datarootdir ;;
911 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
912 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
913 datarootdir=$ac_optarg ;;
915 -disable-* | --disable-*)
916 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
917 # Reject names that are not valid shell variable names.
918 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
919 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
920 { (exit 1); exit 1; }; }
921 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
922 eval enable_$ac_feature=no ;;
924 -docdir | --docdir | --docdi | --doc | --do)
926 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
929 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
931 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
934 -enable-* | --enable-*)
935 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
936 # Reject names that are not valid shell variable names.
937 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
938 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
939 { (exit 1); exit 1; }; }
940 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
941 eval enable_$ac_feature=\$ac_optarg ;;
943 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
944 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
945 | --exec | --exe | --ex)
946 ac_prev=exec_prefix ;;
947 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
948 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
949 | --exec=* | --exe=* | --ex=*)
950 exec_prefix=$ac_optarg ;;
952 -gas | --gas | --ga | --g)
953 # Obsolete; use --with-gas.
956 -help | --help | --hel | --he | -h)
958 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
959 ac_init_help=recursive ;;
960 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
961 ac_init_help=short ;;
963 -host | --host | --hos | --ho)
964 ac_prev=host_alias ;;
965 -host=* | --host=* | --hos=* | --ho=*)
966 host_alias=$ac_optarg ;;
968 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
970 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
972 htmldir=$ac_optarg ;;
974 -includedir | --includedir | --includedi | --included | --include \
975 | --includ | --inclu | --incl | --inc)
976 ac_prev=includedir ;;
977 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
978 | --includ=* | --inclu=* | --incl=* | --inc=*)
979 includedir=$ac_optarg ;;
981 -infodir | --infodir | --infodi | --infod | --info | --inf)
983 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
984 infodir=$ac_optarg ;;
986 -libdir | --libdir | --libdi | --libd)
988 -libdir=* | --libdir=* | --libdi=* | --libd=*)
991 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
992 | --libexe | --libex | --libe)
993 ac_prev=libexecdir ;;
994 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
995 | --libexe=* | --libex=* | --libe=*)
996 libexecdir=$ac_optarg ;;
998 -localedir | --localedir | --localedi | --localed | --locale)
1000 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1001 localedir=$ac_optarg ;;
1003 -localstatedir | --localstatedir | --localstatedi | --localstated \
1004 | --localstate | --localstat | --localsta | --localst | --locals)
1005 ac_prev=localstatedir ;;
1006 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1007 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1008 localstatedir=$ac_optarg ;;
1010 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1012 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1013 mandir=$ac_optarg ;;
1015 -nfp | --nfp | --nf)
1016 # Obsolete; use --without-fp.
1019 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1020 | --no-cr | --no-c | -n)
1023 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1024 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1027 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1028 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1029 | --oldin | --oldi | --old | --ol | --o)
1030 ac_prev=oldincludedir ;;
1031 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1032 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1033 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1034 oldincludedir=$ac_optarg ;;
1036 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1038 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1039 prefix=$ac_optarg ;;
1041 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1042 | --program-pre | --program-pr | --program-p)
1043 ac_prev=program_prefix ;;
1044 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1045 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1046 program_prefix=$ac_optarg ;;
1048 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1049 | --program-suf | --program-su | --program-s)
1050 ac_prev=program_suffix ;;
1051 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1052 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1053 program_suffix=$ac_optarg ;;
1055 -program-transform-name | --program-transform-name \
1056 | --program-transform-nam | --program-transform-na \
1057 | --program-transform-n | --program-transform- \
1058 | --program-transform | --program-transfor \
1059 | --program-transfo | --program-transf \
1060 | --program-trans | --program-tran \
1061 | --progr-tra | --program-tr | --program-t)
1062 ac_prev=program_transform_name ;;
1063 -program-transform-name=* | --program-transform-name=* \
1064 | --program-transform-nam=* | --program-transform-na=* \
1065 | --program-transform-n=* | --program-transform-=* \
1066 | --program-transform=* | --program-transfor=* \
1067 | --program-transfo=* | --program-transf=* \
1068 | --program-trans=* | --program-tran=* \
1069 | --progr-tra=* | --program-tr=* | --program-t=*)
1070 program_transform_name=$ac_optarg ;;
1072 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1074 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1075 pdfdir=$ac_optarg ;;
1077 -psdir | --psdir | --psdi | --psd | --ps)
1079 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1082 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1083 | -silent | --silent | --silen | --sile | --sil)
1086 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1088 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1090 sbindir=$ac_optarg ;;
1092 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1093 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1094 | --sharedst | --shareds | --shared | --share | --shar \
1096 ac_prev=sharedstatedir ;;
1097 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1098 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1099 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1101 sharedstatedir=$ac_optarg ;;
1103 -site | --site | --sit)
1105 -site=* | --site=* | --sit=*)
1108 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1110 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1111 srcdir=$ac_optarg ;;
1113 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1114 | --syscon | --sysco | --sysc | --sys | --sy)
1115 ac_prev=sysconfdir ;;
1116 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1117 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1118 sysconfdir=$ac_optarg ;;
1120 -target | --target | --targe | --targ | --tar | --ta | --t)
1121 ac_prev=target_alias ;;
1122 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1123 target_alias=$ac_optarg ;;
1125 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1128 -version | --version | --versio | --versi | --vers | -V)
1129 ac_init_version=: ;;
1132 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1133 # Reject names that are not valid shell variable names.
1134 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1135 { echo "$as_me: error: invalid package name: $ac_package" >&2
1136 { (exit 1); exit 1; }; }
1137 ac_package=`echo $ac_package| sed 's/-/_/g'`
1138 eval with_$ac_package=\$ac_optarg ;;
1140 -without-* | --without-*)
1141 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1142 # Reject names that are not valid shell variable names.
1143 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1144 { echo "$as_me: error: invalid package name: $ac_package" >&2
1145 { (exit 1); exit 1; }; }
1146 ac_package=`echo $ac_package | sed 's/-/_/g'`
1147 eval with_$ac_package=no ;;
1150 # Obsolete; use --with-x.
1153 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1154 | --x-incl | --x-inc | --x-in | --x-i)
1155 ac_prev=x_includes ;;
1156 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1157 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1158 x_includes=$ac_optarg ;;
1160 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1161 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1162 ac_prev=x_libraries ;;
1163 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1164 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1165 x_libraries=$ac_optarg ;;
1167 -*) { echo "$as_me: error: unrecognized option: $ac_option
1168 Try \`$0 --help' for more information." >&2
1169 { (exit 1); exit 1; }; }
1173 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1174 # Reject names that are not valid shell variable names.
1175 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1176 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1177 { (exit 1); exit 1; }; }
1178 eval $ac_envvar=\$ac_optarg
1179 export $ac_envvar ;;
1182 # FIXME: should be removed in autoconf 3.0.
1183 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1184 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1185 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1186 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1192 if test -n "$ac_prev"; then
1193 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1194 { echo "$as_me: error: missing argument to $ac_option" >&2
1195 { (exit 1); exit 1; }; }
1198 # Be sure to have absolute directory names.
1199 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1200 datadir sysconfdir sharedstatedir localstatedir includedir \
1201 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1202 libdir localedir mandir
1204 eval ac_val=\$$ac_var
1206 [\\/$]* | ?:[\\/]* ) continue;;
1207 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1209 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1210 { (exit 1); exit 1; }; }
1213 # There might be people who depend on the old broken behavior: `$host'
1214 # used to hold the argument of --host etc.
1215 # FIXME: To remove some day.
1218 target=$target_alias
1220 # FIXME: To remove some day.
1221 if test "x$host_alias" != x; then
1222 if test "x$build_alias" = x; then
1223 cross_compiling=maybe
1224 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1225 If a cross compiler is detected then cross compile mode will be used." >&2
1226 elif test "x$build_alias" != "x$host_alias"; then
1232 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1234 test "$silent" = yes && exec 6>/dev/null
1237 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1238 ac_ls_di=`ls -di .` &&
1239 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1240 { echo "$as_me: error: Working directory cannot be determined" >&2
1241 { (exit 1); exit 1; }; }
1242 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1243 { echo "$as_me: error: pwd does not report name of working directory" >&2
1244 { (exit 1); exit 1; }; }
1247 # Find the source files, if location was not specified.
1248 if test -z "$srcdir"; then
1249 ac_srcdir_defaulted=yes
1250 # Try the directory containing this script, then the parent directory.
1251 ac_confdir=`$as_dirname -- "$0" ||
1252 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1253 X"$0" : 'X\(//\)[^/]' \| \
1254 X"$0" : 'X\(//\)$' \| \
1255 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275 if test ! -r "$srcdir/$ac_unique_file"; then
1279 ac_srcdir_defaulted=no
1281 if test ! -r "$srcdir/$ac_unique_file"; then
1282 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1283 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1284 { (exit 1); exit 1; }; }
1286 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1288 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1289 { (exit 1); exit 1; }; }
1291 # When building in place, set srcdir=.
1292 if test "$ac_abs_confdir" = "$ac_pwd"; then
1295 # Remove unnecessary trailing slashes from srcdir.
1296 # Double slashes in file names in object file debugging info
1297 # mess up M-x gdb in Emacs.
1299 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1301 for ac_var in $ac_precious_vars; do
1302 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1303 eval ac_env_${ac_var}_value=\$${ac_var}
1304 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1305 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1309 # Report the --help message.
1311 if test "$ac_init_help" = "long"; then
1312 # Omit some internal or obsolete options to make the list less imposing.
1313 # This message is too long to be a string in the A/UX 3.1 sh.
1315 \`configure' configures LLVM 3.2svn to adapt to many kinds of systems.
1317 Usage: $0 [OPTION]... [VAR=VALUE]...
1319 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1320 VAR=VALUE. See below for descriptions of some of the useful variables.
1322 Defaults for the options are specified in brackets.
1325 -h, --help display this help and exit
1326 --help=short display options specific to this package
1327 --help=recursive display the short help of all the included packages
1328 -V, --version display version information and exit
1329 -q, --quiet, --silent do not print \`checking...' messages
1330 --cache-file=FILE cache test results in FILE [disabled]
1331 -C, --config-cache alias for \`--cache-file=config.cache'
1332 -n, --no-create do not create output files
1333 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1335 Installation directories:
1336 --prefix=PREFIX install architecture-independent files in PREFIX
1337 [$ac_default_prefix]
1338 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1341 By default, \`make install' will install all the files in
1342 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1343 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1344 for instance \`--prefix=\$HOME'.
1346 For better control, use the options below.
1348 Fine tuning of the installation directories:
1349 --bindir=DIR user executables [EPREFIX/bin]
1350 --sbindir=DIR system admin executables [EPREFIX/sbin]
1351 --libexecdir=DIR program executables [EPREFIX/libexec]
1352 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1353 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1354 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1355 --libdir=DIR object code libraries [EPREFIX/lib]
1356 --includedir=DIR C header files [PREFIX/include]
1357 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1358 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1359 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1360 --infodir=DIR info documentation [DATAROOTDIR/info]
1361 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1362 --mandir=DIR man documentation [DATAROOTDIR/man]
1363 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1364 --htmldir=DIR html documentation [DOCDIR]
1365 --dvidir=DIR dvi documentation [DOCDIR]
1366 --pdfdir=DIR pdf documentation [DOCDIR]
1367 --psdir=DIR ps documentation [DOCDIR]
1373 --build=BUILD configure for building on BUILD [guessed]
1374 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1375 --target=TARGET configure for building compilers for TARGET [HOST]
1379 if test -n "$ac_init_help"; then
1380 case $ac_init_help in
1381 short | recursive ) echo "Configuration of LLVM 3.2svn:";;
1386 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1387 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1388 --enable-polly Use polly if available (default is YES)
1389 --enable-libcpp Use libc++ if available (default is NO)
1390 --enable-optimized Compile with optimizations enabled (default is NO)
1391 --enable-profiling Compile with profiling enabled (default is NO)
1392 --enable-assertions Compile with assertion checks enabled (default is
1394 --enable-expensive-checks
1395 Compile with expensive debug checks enabled (default
1397 --enable-debug-runtime Build runtime libs with debug symbols (default is
1399 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1400 optimization is on and YES if it's off)
1401 --enable-jit Enable Just In Time Compiling (default is YES)
1402 --enable-docs Build documents (default is YES)
1403 --enable-doxygen Build doxygen documentation (default is NO)
1404 --enable-threads Use threads if available (default is YES)
1405 --enable-pthreads Use pthreads if available (default is YES)
1406 --enable-pic Build LLVM with Position Independent Code (default
1408 --enable-shared Build a shared library and link tools against it
1410 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1411 Win32 DLL (default is NO)
1412 --enable-timestamps Enable embedding timestamp information in build
1414 --enable-targets Build specific host targets: all or
1415 target1,target2,... Valid targets are: host, x86,
1416 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1417 xcore, msp430, ptx, nvptx, and cpp (default=all)
1418 --enable-bindings Build specific language bindings:
1419 all,auto,none,{binding-name} (default=auto)
1420 --enable-libffi Check for the presence of libffi (default is NO)
1421 --enable-ltdl-install install libltdl
1424 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1425 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1426 --with-optimize-option Select the compiler options to use for optimized
1428 --with-extra-options Specify additional options to compile LLVM with
1429 --with-extra-ld-options Specify additional options to link LLVM with
1430 --with-ocaml-libdir Specify install location for ocaml bindings (default
1432 --with-clang-srcdir Directory to the out-of-tree Clang source
1433 --with-clang-resource-dir
1434 Relative directory from the Clang binary for
1436 --with-c-include-dirs Colon separated list of directories clang will
1438 --with-gcc-toolchain Directory where gcc is installed.
1439 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1440 --with-binutils-include Specify path to binutils/include/ containing
1441 plugin-api.h file for gold plugin.
1442 --with-bug-report-url Specify the URL where bug reports should be
1443 submitted (default=http://llvm.org/bugs/)
1444 --with-internal-prefix Installation directory for internal files
1445 --with-tclinclude directory where tcl headers are
1446 --with-udis86=<path> Use udis86 external x86 disassembler library
1447 --with-oprofile=<prefix>
1448 Tell OProfile >= 0.9.4 how to symbolize JIT output
1449 --with-intel-jitevents=<vtune-amplifier-dir>
1450 Specify location of run-time support library for
1452 (default=/opt/intel/vtune_amplifier_xe_2011)
1454 Some influential environment variables:
1455 CC C compiler command
1456 CFLAGS C compiler flags
1457 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1458 nonstandard directory <lib dir>
1459 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1460 you have headers in a nonstandard directory <include dir>
1461 CXX C++ compiler command
1462 CXXFLAGS C++ compiler flags
1465 Use these variables to override the choices made by `configure' or to help
1466 it to find libraries and programs with nonstandard names/locations.
1468 Report bugs to <http://llvm.org/bugs/>.
1473 if test "$ac_init_help" = "recursive"; then
1474 # If there are subdirs, report their specific --help.
1475 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1476 test -d "$ac_dir" || continue
1480 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1482 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1483 # A ".." for each directory in $ac_dir_suffix.
1484 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1485 case $ac_top_builddir_sub in
1486 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1487 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1490 ac_abs_top_builddir=$ac_pwd
1491 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1492 # for backward compatibility:
1493 ac_top_builddir=$ac_top_build_prefix
1496 .) # We are building in place.
1498 ac_top_srcdir=$ac_top_builddir_sub
1499 ac_abs_top_srcdir=$ac_pwd ;;
1500 [\\/]* | ?:[\\/]* ) # Absolute name.
1501 ac_srcdir=$srcdir$ac_dir_suffix;
1502 ac_top_srcdir=$srcdir
1503 ac_abs_top_srcdir=$srcdir ;;
1505 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1506 ac_top_srcdir=$ac_top_build_prefix$srcdir
1507 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1509 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1511 cd "$ac_dir" || { ac_status=$?; continue; }
1512 # Check for guested configure.
1513 if test -f "$ac_srcdir/configure.gnu"; then
1515 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1516 elif test -f "$ac_srcdir/configure"; then
1518 $SHELL "$ac_srcdir/configure" --help=recursive
1520 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1522 cd "$ac_pwd" || { ac_status=$?; break; }
1526 test -n "$ac_init_help" && exit $ac_status
1527 if $ac_init_version; then
1529 LLVM configure 3.2svn
1530 generated by GNU Autoconf 2.60
1532 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1533 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1534 This configure script is free software; the Free Software Foundation
1535 gives unlimited permission to copy, distribute and modify it.
1537 Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
1541 cat >config.log <<_ACEOF
1542 This file contains any messages produced by compilers while
1543 running configure, to aid debugging if configure makes a mistake.
1545 It was created by LLVM $as_me 3.2svn, which was
1546 generated by GNU Autoconf 2.60. Invocation command line was
1558 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1559 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1560 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1561 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1562 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1564 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1565 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1567 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1568 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1569 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1570 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1571 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1572 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1573 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1581 test -z "$as_dir" && as_dir=.
1582 echo "PATH: $as_dir"
1598 # Keep a trace of the command line.
1599 # Strip out --no-create and --no-recursion so they do not pile up.
1600 # Strip out --silent because we don't want to record it for future runs.
1601 # Also quote any args containing shell meta-characters.
1602 # Make two passes to allow for proper duplicate-argument suppression.
1606 ac_must_keep_next=false
1612 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1613 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1614 | -silent | --silent | --silen | --sile | --sil)
1617 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1620 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1622 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1623 if test $ac_must_keep_next = true; then
1624 ac_must_keep_next=false # Got value, back to normal.
1627 *=* | --config-cache | -C | -disable-* | --disable-* \
1628 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1629 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1630 | -with-* | --with-* | -without-* | --without-* | --x)
1631 case "$ac_configure_args0 " in
1632 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1635 -* ) ac_must_keep_next=true ;;
1638 ac_configure_args="$ac_configure_args '$ac_arg'"
1643 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1644 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1646 # When interrupted or exit'd, cleanup temporary files, and complete
1647 # config.log. We remove comments because anyway the quotes in there
1648 # would cause problems or look ugly.
1649 # WARNING: Use '\'' to represent an apostrophe within the trap.
1650 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1651 trap 'exit_status=$?
1652 # Save into config.log some information that might help in debugging.
1657 ## ---------------- ##
1658 ## Cache variables. ##
1659 ## ---------------- ##
1662 # The following way of writing the cache mishandles newlines in values,
1664 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1665 eval ac_val=\$$ac_var
1669 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1670 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1673 _ | IFS | as_nl) ;; #(
1674 *) $as_unset $ac_var ;;
1679 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1680 *${as_nl}ac_space=\ *)
1682 "s/'\''/'\''\\\\'\'''\''/g;
1683 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1686 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1694 ## ----------------- ##
1695 ## Output variables. ##
1696 ## ----------------- ##
1699 for ac_var in $ac_subst_vars
1701 eval ac_val=\$$ac_var
1703 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1705 echo "$ac_var='\''$ac_val'\''"
1709 if test -n "$ac_subst_files"; then
1711 ## ------------------- ##
1712 ## File substitutions. ##
1713 ## ------------------- ##
1716 for ac_var in $ac_subst_files
1718 eval ac_val=\$$ac_var
1720 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1722 echo "$ac_var='\''$ac_val'\''"
1727 if test -s confdefs.h; then
1737 test "$ac_signal" != 0 &&
1738 echo "$as_me: caught signal $ac_signal"
1739 echo "$as_me: exit $exit_status"
1741 rm -f core *.core core.conftest.* &&
1742 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1745 for ac_signal in 1 2 13 15; do
1746 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1750 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1751 rm -f -r conftest* confdefs.h
1753 # Predefined preprocessor variables.
1755 cat >>confdefs.h <<_ACEOF
1756 #define PACKAGE_NAME "$PACKAGE_NAME"
1760 cat >>confdefs.h <<_ACEOF
1761 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1765 cat >>confdefs.h <<_ACEOF
1766 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1770 cat >>confdefs.h <<_ACEOF
1771 #define PACKAGE_STRING "$PACKAGE_STRING"
1775 cat >>confdefs.h <<_ACEOF
1776 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1780 # Let the site file select an alternate cache file if it wants to.
1781 # Prefer explicitly selected file to automatically selected ones.
1782 if test -n "$CONFIG_SITE"; then
1783 set x "$CONFIG_SITE"
1784 elif test "x$prefix" != xNONE; then
1785 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1787 set x "$ac_default_prefix/share/config.site" \
1788 "$ac_default_prefix/etc/config.site"
1793 if test -r "$ac_site_file"; then
1794 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1795 echo "$as_me: loading site script $ac_site_file" >&6;}
1796 sed 's/^/| /' "$ac_site_file" >&5
1801 if test -r "$cache_file"; then
1802 # Some versions of bash will fail to source /dev/null (special
1803 # files actually), so we avoid doing that.
1804 if test -f "$cache_file"; then
1805 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1806 echo "$as_me: loading cache $cache_file" >&6;}
1808 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1809 *) . "./$cache_file";;
1813 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1814 echo "$as_me: creating cache $cache_file" >&6;}
1818 # Check that the precious variables saved in the cache have kept the same
1820 ac_cache_corrupted=false
1821 for ac_var in $ac_precious_vars; do
1822 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1823 eval ac_new_set=\$ac_env_${ac_var}_set
1824 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1825 eval ac_new_val=\$ac_env_${ac_var}_value
1826 case $ac_old_set,$ac_new_set in
1828 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1829 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1830 ac_cache_corrupted=: ;;
1832 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1833 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1834 ac_cache_corrupted=: ;;
1837 if test "x$ac_old_val" != "x$ac_new_val"; then
1838 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1839 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1840 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1841 echo "$as_me: former value: $ac_old_val" >&2;}
1842 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1843 echo "$as_me: current value: $ac_new_val" >&2;}
1844 ac_cache_corrupted=:
1847 # Pass precious variables to config.status.
1848 if test "$ac_new_set" = set; then
1850 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1851 *) ac_arg=$ac_var=$ac_new_val ;;
1853 case " $ac_configure_args " in
1854 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1855 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1859 if $ac_cache_corrupted; then
1860 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1861 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1862 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1863 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1864 { (exit 1); exit 1; }; }
1892 ac_cpp='$CPP $CPPFLAGS'
1893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1899 cat >>confdefs.h <<\_ACEOF
1900 #define LLVM_VERSION_MAJOR 3
1904 cat >>confdefs.h <<\_ACEOF
1905 #define LLVM_VERSION_MINOR 2
1909 LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
1918 for ac_dir in autoconf "$srcdir"/autoconf; do
1919 if test -f "$ac_dir/install-sh"; then
1921 ac_install_sh="$ac_aux_dir/install-sh -c"
1923 elif test -f "$ac_dir/install.sh"; then
1925 ac_install_sh="$ac_aux_dir/install.sh -c"
1927 elif test -f "$ac_dir/shtool"; then
1929 ac_install_sh="$ac_aux_dir/shtool install -c"
1933 if test -z "$ac_aux_dir"; then
1934 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1935 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1936 { (exit 1); exit 1; }; }
1939 # These three variables are undocumented and unsupported,
1940 # and are intended to be withdrawn in a future Autoconf release.
1941 # They can cause serious problems if a builder's source tree is in a directory
1942 # whose full name contains unusual characters.
1943 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1944 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1945 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1949 if test ${srcdir} != "." ; then
1950 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1951 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1952 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1953 { (exit 1); exit 1; }; }
1958 ac_cpp='$CPP $CPPFLAGS'
1959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1962 if test -n "$ac_tool_prefix"; then
1963 for ac_prog in clang llvm-gcc gcc
1965 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1966 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1969 if test "${ac_cv_prog_CC+set}" = set; then
1970 echo $ECHO_N "(cached) $ECHO_C" >&6
1972 if test -n "$CC"; then
1973 ac_cv_prog_CC="$CC" # Let the user override the test.
1975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1979 test -z "$as_dir" && as_dir=.
1980 for ac_exec_ext in '' $ac_executable_extensions; do
1981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1982 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1993 if test -n "$CC"; then
1994 { echo "$as_me:$LINENO: result: $CC" >&5
1995 echo "${ECHO_T}$CC" >&6; }
1997 { echo "$as_me:$LINENO: result: no" >&5
1998 echo "${ECHO_T}no" >&6; }
2002 test -n "$CC" && break
2005 if test -z "$CC"; then
2007 for ac_prog in clang llvm-gcc gcc
2009 # Extract the first word of "$ac_prog", so it can be a program name with args.
2010 set dummy $ac_prog; ac_word=$2
2011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2013 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2014 echo $ECHO_N "(cached) $ECHO_C" >&6
2016 if test -n "$ac_ct_CC"; then
2017 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2023 test -z "$as_dir" && as_dir=.
2024 for ac_exec_ext in '' $ac_executable_extensions; do
2025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2026 ac_cv_prog_ac_ct_CC="$ac_prog"
2027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2036 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2037 if test -n "$ac_ct_CC"; then
2038 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2039 echo "${ECHO_T}$ac_ct_CC" >&6; }
2041 { echo "$as_me:$LINENO: result: no" >&5
2042 echo "${ECHO_T}no" >&6; }
2046 test -n "$ac_ct_CC" && break
2049 if test "x$ac_ct_CC" = x; then
2052 case $cross_compiling:$ac_tool_warned in
2054 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2055 whose name does not start with the host triplet. If you think this
2056 configuration is useful to you, please write to autoconf@gnu.org." >&5
2057 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2058 whose name does not start with the host triplet. If you think this
2059 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2060 ac_tool_warned=yes ;;
2067 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2068 See \`config.log' for more details." >&5
2069 echo "$as_me: error: no acceptable C compiler found in \$PATH
2070 See \`config.log' for more details." >&2;}
2071 { (exit 1); exit 1; }; }
2073 # Provide some information about the compiler.
2074 echo "$as_me:$LINENO: checking for C compiler version" >&5
2075 ac_compiler=`set X $ac_compile; echo $2`
2076 { (ac_try="$ac_compiler --version >&5"
2078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2079 *) ac_try_echo=$ac_try;;
2081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2082 (eval "$ac_compiler --version >&5") 2>&5
2084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085 (exit $ac_status); }
2086 { (ac_try="$ac_compiler -v >&5"
2088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2089 *) ac_try_echo=$ac_try;;
2091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2092 (eval "$ac_compiler -v >&5") 2>&5
2094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095 (exit $ac_status); }
2096 { (ac_try="$ac_compiler -V >&5"
2098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2099 *) ac_try_echo=$ac_try;;
2101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2102 (eval "$ac_compiler -V >&5") 2>&5
2104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105 (exit $ac_status); }
2107 cat >conftest.$ac_ext <<_ACEOF
2110 cat confdefs.h >>conftest.$ac_ext
2111 cat >>conftest.$ac_ext <<_ACEOF
2112 /* end confdefs.h. */
2122 ac_clean_files_save=$ac_clean_files
2123 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2124 # Try to create an executable without -o first, disregard a.out.
2125 # It will help us diagnose broken compilers, and finding out an intuition
2127 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2128 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2129 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2131 # List of possible output files, starting from the most likely.
2132 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2133 # only as a last resort. b.out is created by i960 compilers.
2134 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2136 # The IRIX 6 linker writes into existing files which may not be
2137 # executable, retaining their permissions. Remove them first so a
2138 # subsequent execution test works.
2140 for ac_file in $ac_files
2143 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2144 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2149 if { (ac_try="$ac_link_default"
2151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2152 *) ac_try_echo=$ac_try;;
2154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2155 (eval "$ac_link_default") 2>&5
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); }; then
2159 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2160 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2161 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2162 # so that the user can short-circuit this test for compilers unknown to
2164 for ac_file in $ac_files
2166 test -f "$ac_file" || continue
2168 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2171 # We found the default executable, but exeext='' is most
2175 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2177 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2179 # We set ac_cv_exeext here because the later test for it is not
2180 # safe: cross compilers may not add the suffix if given an `-o'
2181 # argument, so we may need to know it at that point already.
2182 # Even if this section looks crufty: it has the advantage of
2189 test "$ac_cv_exeext" = no && ac_cv_exeext=
2192 echo "$as_me: failed program was:" >&5
2193 sed 's/^/| /' conftest.$ac_ext >&5
2195 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2196 See \`config.log' for more details." >&5
2197 echo "$as_me: error: C compiler cannot create executables
2198 See \`config.log' for more details." >&2;}
2199 { (exit 77); exit 77; }; }
2202 ac_exeext=$ac_cv_exeext
2203 { echo "$as_me:$LINENO: result: $ac_file" >&5
2204 echo "${ECHO_T}$ac_file" >&6; }
2206 # Check that the compiler produces executables we can run. If not, either
2207 # the compiler is broken, or we cross compile.
2208 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2209 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2210 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2211 # If not cross compiling, check that we can run a simple program.
2212 if test "$cross_compiling" != yes; then
2213 if { ac_try='./$ac_file'
2214 { (case "(($ac_try" in
2215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2216 *) ac_try_echo=$ac_try;;
2218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2219 (eval "$ac_try") 2>&5
2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222 (exit $ac_status); }; }; then
2225 if test "$cross_compiling" = maybe; then
2228 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2229 If you meant to cross compile, use \`--host'.
2230 See \`config.log' for more details." >&5
2231 echo "$as_me: error: cannot run C compiled programs.
2232 If you meant to cross compile, use \`--host'.
2233 See \`config.log' for more details." >&2;}
2234 { (exit 1); exit 1; }; }
2238 { echo "$as_me:$LINENO: result: yes" >&5
2239 echo "${ECHO_T}yes" >&6; }
2241 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2242 ac_clean_files=$ac_clean_files_save
2243 # Check that the compiler produces executables we can run. If not, either
2244 # the compiler is broken, or we cross compile.
2245 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2246 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2247 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2248 echo "${ECHO_T}$cross_compiling" >&6; }
2250 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2251 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2252 if { (ac_try="$ac_link"
2254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2255 *) ac_try_echo=$ac_try;;
2257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2258 (eval "$ac_link") 2>&5
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); }; then
2262 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2263 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2264 # work properly (i.e., refer to `conftest.exe'), while it won't with
2266 for ac_file in conftest.exe conftest conftest.*; do
2267 test -f "$ac_file" || continue
2269 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2270 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2276 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2277 See \`config.log' for more details." >&5
2278 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2279 See \`config.log' for more details." >&2;}
2280 { (exit 1); exit 1; }; }
2283 rm -f conftest$ac_cv_exeext
2284 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2285 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2287 rm -f conftest.$ac_ext
2288 EXEEXT=$ac_cv_exeext
2290 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2291 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2292 if test "${ac_cv_objext+set}" = set; then
2293 echo $ECHO_N "(cached) $ECHO_C" >&6
2295 cat >conftest.$ac_ext <<_ACEOF
2298 cat confdefs.h >>conftest.$ac_ext
2299 cat >>conftest.$ac_ext <<_ACEOF
2300 /* end confdefs.h. */
2310 rm -f conftest.o conftest.obj
2311 if { (ac_try="$ac_compile"
2313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2314 *) ac_try_echo=$ac_try;;
2316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2317 (eval "$ac_compile") 2>&5
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); }; then
2321 for ac_file in conftest.o conftest.obj conftest.*; do
2322 test -f "$ac_file" || continue;
2324 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2325 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2330 echo "$as_me: failed program was:" >&5
2331 sed 's/^/| /' conftest.$ac_ext >&5
2333 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2334 See \`config.log' for more details." >&5
2335 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2336 See \`config.log' for more details." >&2;}
2337 { (exit 1); exit 1; }; }
2340 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2342 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2343 echo "${ECHO_T}$ac_cv_objext" >&6; }
2344 OBJEXT=$ac_cv_objext
2346 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2347 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2348 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
2351 cat >conftest.$ac_ext <<_ACEOF
2354 cat confdefs.h >>conftest.$ac_ext
2355 cat >>conftest.$ac_ext <<_ACEOF
2356 /* end confdefs.h. */
2369 rm -f conftest.$ac_objext
2370 if { (ac_try="$ac_compile"
2372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2373 *) ac_try_echo=$ac_try;;
2375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2376 (eval "$ac_compile") 2>conftest.er1
2378 grep -v '^ *+' conftest.er1 >conftest.err
2380 cat conftest.err >&5
2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382 (exit $ac_status); } &&
2383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2384 { (case "(($ac_try" in
2385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2386 *) ac_try_echo=$ac_try;;
2388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2389 (eval "$ac_try") 2>&5
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); }; } &&
2393 { ac_try='test -s conftest.$ac_objext'
2394 { (case "(($ac_try" in
2395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2396 *) ac_try_echo=$ac_try;;
2398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2399 (eval "$ac_try") 2>&5
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }; }; then
2405 echo "$as_me: failed program was:" >&5
2406 sed 's/^/| /' conftest.$ac_ext >&5
2411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2412 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2415 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2416 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2417 GCC=`test $ac_compiler_gnu = yes && echo yes`
2418 ac_test_CFLAGS=${CFLAGS+set}
2419 ac_save_CFLAGS=$CFLAGS
2420 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2421 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2422 if test "${ac_cv_prog_cc_g+set}" = set; then
2423 echo $ECHO_N "(cached) $ECHO_C" >&6
2425 ac_save_c_werror_flag=$ac_c_werror_flag
2426 ac_c_werror_flag=yes
2429 cat >conftest.$ac_ext <<_ACEOF
2432 cat confdefs.h >>conftest.$ac_ext
2433 cat >>conftest.$ac_ext <<_ACEOF
2434 /* end confdefs.h. */
2444 rm -f conftest.$ac_objext
2445 if { (ac_try="$ac_compile"
2447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2448 *) ac_try_echo=$ac_try;;
2450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2451 (eval "$ac_compile") 2>conftest.er1
2453 grep -v '^ *+' conftest.er1 >conftest.err
2455 cat conftest.err >&5
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); } &&
2458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2459 { (case "(($ac_try" in
2460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2461 *) ac_try_echo=$ac_try;;
2463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2464 (eval "$ac_try") 2>&5
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); }; } &&
2468 { ac_try='test -s conftest.$ac_objext'
2469 { (case "(($ac_try" in
2470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2471 *) ac_try_echo=$ac_try;;
2473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2474 (eval "$ac_try") 2>&5
2476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477 (exit $ac_status); }; }; then
2480 echo "$as_me: failed program was:" >&5
2481 sed 's/^/| /' conftest.$ac_ext >&5
2484 cat >conftest.$ac_ext <<_ACEOF
2487 cat confdefs.h >>conftest.$ac_ext
2488 cat >>conftest.$ac_ext <<_ACEOF
2489 /* end confdefs.h. */
2499 rm -f conftest.$ac_objext
2500 if { (ac_try="$ac_compile"
2502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2503 *) ac_try_echo=$ac_try;;
2505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2506 (eval "$ac_compile") 2>conftest.er1
2508 grep -v '^ *+' conftest.er1 >conftest.err
2510 cat conftest.err >&5
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); } &&
2513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2514 { (case "(($ac_try" in
2515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2516 *) ac_try_echo=$ac_try;;
2518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2519 (eval "$ac_try") 2>&5
2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); }; } &&
2523 { ac_try='test -s conftest.$ac_objext'
2524 { (case "(($ac_try" in
2525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2526 *) ac_try_echo=$ac_try;;
2528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2529 (eval "$ac_try") 2>&5
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); }; }; then
2535 echo "$as_me: failed program was:" >&5
2536 sed 's/^/| /' conftest.$ac_ext >&5
2538 ac_c_werror_flag=$ac_save_c_werror_flag
2540 cat >conftest.$ac_ext <<_ACEOF
2543 cat confdefs.h >>conftest.$ac_ext
2544 cat >>conftest.$ac_ext <<_ACEOF
2545 /* end confdefs.h. */
2555 rm -f conftest.$ac_objext
2556 if { (ac_try="$ac_compile"
2558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2559 *) ac_try_echo=$ac_try;;
2561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2562 (eval "$ac_compile") 2>conftest.er1
2564 grep -v '^ *+' conftest.er1 >conftest.err
2566 cat conftest.err >&5
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); } &&
2569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2570 { (case "(($ac_try" in
2571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572 *) ac_try_echo=$ac_try;;
2574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2575 (eval "$ac_try") 2>&5
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); }; } &&
2579 { ac_try='test -s conftest.$ac_objext'
2580 { (case "(($ac_try" in
2581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2582 *) ac_try_echo=$ac_try;;
2584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2585 (eval "$ac_try") 2>&5
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); }; }; then
2591 echo "$as_me: failed program was:" >&5
2592 sed 's/^/| /' conftest.$ac_ext >&5
2597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2604 ac_c_werror_flag=$ac_save_c_werror_flag
2606 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2607 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2608 if test "$ac_test_CFLAGS" = set; then
2609 CFLAGS=$ac_save_CFLAGS
2610 elif test $ac_cv_prog_cc_g = yes; then
2611 if test "$GCC" = yes; then
2617 if test "$GCC" = yes; then
2623 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2624 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2625 if test "${ac_cv_prog_cc_c89+set}" = set; then
2626 echo $ECHO_N "(cached) $ECHO_C" >&6
2628 ac_cv_prog_cc_c89=no
2630 cat >conftest.$ac_ext <<_ACEOF
2633 cat confdefs.h >>conftest.$ac_ext
2634 cat >>conftest.$ac_ext <<_ACEOF
2635 /* end confdefs.h. */
2638 #include <sys/types.h>
2639 #include <sys/stat.h>
2640 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2641 struct buf { int x; };
2642 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2643 static char *e (p, i)
2649 static char *f (char * (*g) (char **, int), char **p, ...)
2654 s = g (p, va_arg (v,int));
2659 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2660 function prototypes and stuff, but not '\xHH' hex character constants.
2661 These don't provoke an error unfortunately, instead are silently treated
2662 as 'x'. The following induces an error, until -std is added to get
2663 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2664 array size at least. It's necessary to write '\x00'==0 to get something
2665 that's true only with -std. */
2666 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2668 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2669 inside strings and character constants. */
2671 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2673 int test (int i, double x);
2674 struct s1 {int (*f) (int a);};
2675 struct s2 {int (*f) (double a);};
2676 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2682 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2687 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2688 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2690 CC="$ac_save_CC $ac_arg"
2691 rm -f conftest.$ac_objext
2692 if { (ac_try="$ac_compile"
2694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2695 *) ac_try_echo=$ac_try;;
2697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2698 (eval "$ac_compile") 2>conftest.er1
2700 grep -v '^ *+' conftest.er1 >conftest.err
2702 cat conftest.err >&5
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); } &&
2705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2706 { (case "(($ac_try" in
2707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2708 *) ac_try_echo=$ac_try;;
2710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2711 (eval "$ac_try") 2>&5
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); }; } &&
2715 { ac_try='test -s conftest.$ac_objext'
2716 { (case "(($ac_try" in
2717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2718 *) ac_try_echo=$ac_try;;
2720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2721 (eval "$ac_try") 2>&5
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); }; }; then
2725 ac_cv_prog_cc_c89=$ac_arg
2727 echo "$as_me: failed program was:" >&5
2728 sed 's/^/| /' conftest.$ac_ext >&5
2733 rm -f core conftest.err conftest.$ac_objext
2734 test "x$ac_cv_prog_cc_c89" != "xno" && break
2736 rm -f conftest.$ac_ext
2741 case "x$ac_cv_prog_cc_c89" in
2743 { echo "$as_me:$LINENO: result: none needed" >&5
2744 echo "${ECHO_T}none needed" >&6; } ;;
2746 { echo "$as_me:$LINENO: result: unsupported" >&5
2747 echo "${ECHO_T}unsupported" >&6; } ;;
2749 CC="$CC $ac_cv_prog_cc_c89"
2750 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2751 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2756 ac_cpp='$CPP $CPPFLAGS'
2757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2762 ac_cpp='$CXXCPP $CPPFLAGS'
2763 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2764 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2765 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2766 if test -z "$CXX"; then
2767 if test -n "$CCC"; then
2770 if test -n "$ac_tool_prefix"; then
2771 for ac_prog in clang++ llvm-g++ g++
2773 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2774 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2775 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2777 if test "${ac_cv_prog_CXX+set}" = set; then
2778 echo $ECHO_N "(cached) $ECHO_C" >&6
2780 if test -n "$CXX"; then
2781 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787 test -z "$as_dir" && as_dir=.
2788 for ac_exec_ext in '' $ac_executable_extensions; do
2789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2790 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2801 if test -n "$CXX"; then
2802 { echo "$as_me:$LINENO: result: $CXX" >&5
2803 echo "${ECHO_T}$CXX" >&6; }
2805 { echo "$as_me:$LINENO: result: no" >&5
2806 echo "${ECHO_T}no" >&6; }
2810 test -n "$CXX" && break
2813 if test -z "$CXX"; then
2815 for ac_prog in clang++ llvm-g++ g++
2817 # Extract the first word of "$ac_prog", so it can be a program name with args.
2818 set dummy $ac_prog; ac_word=$2
2819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2821 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2822 echo $ECHO_N "(cached) $ECHO_C" >&6
2824 if test -n "$ac_ct_CXX"; then
2825 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831 test -z "$as_dir" && as_dir=.
2832 for ac_exec_ext in '' $ac_executable_extensions; do
2833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2834 ac_cv_prog_ac_ct_CXX="$ac_prog"
2835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2844 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2845 if test -n "$ac_ct_CXX"; then
2846 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2847 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2849 { echo "$as_me:$LINENO: result: no" >&5
2850 echo "${ECHO_T}no" >&6; }
2854 test -n "$ac_ct_CXX" && break
2857 if test "x$ac_ct_CXX" = x; then
2860 case $cross_compiling:$ac_tool_warned in
2862 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2863 whose name does not start with the host triplet. If you think this
2864 configuration is useful to you, please write to autoconf@gnu.org." >&5
2865 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2866 whose name does not start with the host triplet. If you think this
2867 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2868 ac_tool_warned=yes ;;
2876 # Provide some information about the compiler.
2877 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2878 ac_compiler=`set X $ac_compile; echo $2`
2879 { (ac_try="$ac_compiler --version >&5"
2881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2882 *) ac_try_echo=$ac_try;;
2884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2885 (eval "$ac_compiler --version >&5") 2>&5
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); }
2889 { (ac_try="$ac_compiler -v >&5"
2891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2892 *) ac_try_echo=$ac_try;;
2894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2895 (eval "$ac_compiler -v >&5") 2>&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); }
2899 { (ac_try="$ac_compiler -V >&5"
2901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2902 *) ac_try_echo=$ac_try;;
2904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2905 (eval "$ac_compiler -V >&5") 2>&5
2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908 (exit $ac_status); }
2910 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2911 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2912 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2913 echo $ECHO_N "(cached) $ECHO_C" >&6
2915 cat >conftest.$ac_ext <<_ACEOF
2918 cat confdefs.h >>conftest.$ac_ext
2919 cat >>conftest.$ac_ext <<_ACEOF
2920 /* end confdefs.h. */
2933 rm -f conftest.$ac_objext
2934 if { (ac_try="$ac_compile"
2936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2937 *) ac_try_echo=$ac_try;;
2939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2940 (eval "$ac_compile") 2>conftest.er1
2942 grep -v '^ *+' conftest.er1 >conftest.err
2944 cat conftest.err >&5
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); } &&
2947 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2948 { (case "(($ac_try" in
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953 (eval "$ac_try") 2>&5
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }; } &&
2957 { ac_try='test -s conftest.$ac_objext'
2958 { (case "(($ac_try" in
2959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960 *) ac_try_echo=$ac_try;;
2962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2963 (eval "$ac_try") 2>&5
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); }; }; then
2969 echo "$as_me: failed program was:" >&5
2970 sed 's/^/| /' conftest.$ac_ext >&5
2975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2976 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2979 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2980 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2981 GXX=`test $ac_compiler_gnu = yes && echo yes`
2982 ac_test_CXXFLAGS=${CXXFLAGS+set}
2983 ac_save_CXXFLAGS=$CXXFLAGS
2984 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2985 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2986 if test "${ac_cv_prog_cxx_g+set}" = set; then
2987 echo $ECHO_N "(cached) $ECHO_C" >&6
2989 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2990 ac_cxx_werror_flag=yes
2993 cat >conftest.$ac_ext <<_ACEOF
2996 cat confdefs.h >>conftest.$ac_ext
2997 cat >>conftest.$ac_ext <<_ACEOF
2998 /* end confdefs.h. */
3008 rm -f conftest.$ac_objext
3009 if { (ac_try="$ac_compile"
3011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012 *) ac_try_echo=$ac_try;;
3014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3015 (eval "$ac_compile") 2>conftest.er1
3017 grep -v '^ *+' conftest.er1 >conftest.err
3019 cat conftest.err >&5
3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 (exit $ac_status); } &&
3022 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3023 { (case "(($ac_try" in
3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028 (eval "$ac_try") 2>&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); }; } &&
3032 { ac_try='test -s conftest.$ac_objext'
3033 { (case "(($ac_try" in
3034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3035 *) ac_try_echo=$ac_try;;
3037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3038 (eval "$ac_try") 2>&5
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); }; }; then
3042 ac_cv_prog_cxx_g=yes
3044 echo "$as_me: failed program was:" >&5
3045 sed 's/^/| /' conftest.$ac_ext >&5
3048 cat >conftest.$ac_ext <<_ACEOF
3051 cat confdefs.h >>conftest.$ac_ext
3052 cat >>conftest.$ac_ext <<_ACEOF
3053 /* end confdefs.h. */
3063 rm -f conftest.$ac_objext
3064 if { (ac_try="$ac_compile"
3066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067 *) ac_try_echo=$ac_try;;
3069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3070 (eval "$ac_compile") 2>conftest.er1
3072 grep -v '^ *+' conftest.er1 >conftest.err
3074 cat conftest.err >&5
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); } &&
3077 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3078 { (case "(($ac_try" in
3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3083 (eval "$ac_try") 2>&5
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); }; } &&
3087 { ac_try='test -s conftest.$ac_objext'
3088 { (case "(($ac_try" in
3089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090 *) ac_try_echo=$ac_try;;
3092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3093 (eval "$ac_try") 2>&5
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); }; }; then
3099 echo "$as_me: failed program was:" >&5
3100 sed 's/^/| /' conftest.$ac_ext >&5
3102 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3104 cat >conftest.$ac_ext <<_ACEOF
3107 cat confdefs.h >>conftest.$ac_ext
3108 cat >>conftest.$ac_ext <<_ACEOF
3109 /* end confdefs.h. */
3119 rm -f conftest.$ac_objext
3120 if { (ac_try="$ac_compile"
3122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123 *) ac_try_echo=$ac_try;;
3125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3126 (eval "$ac_compile") 2>conftest.er1
3128 grep -v '^ *+' conftest.er1 >conftest.err
3130 cat conftest.err >&5
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); } &&
3133 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3134 { (case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_try") 2>&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); }; } &&
3143 { ac_try='test -s conftest.$ac_objext'
3144 { (case "(($ac_try" in
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3149 (eval "$ac_try") 2>&5
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); }; }; then
3153 ac_cv_prog_cxx_g=yes
3155 echo "$as_me: failed program was:" >&5
3156 sed 's/^/| /' conftest.$ac_ext >&5
3161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3168 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3170 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3171 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3172 if test "$ac_test_CXXFLAGS" = set; then
3173 CXXFLAGS=$ac_save_CXXFLAGS
3174 elif test $ac_cv_prog_cxx_g = yes; then
3175 if test "$GXX" = yes; then
3181 if test "$GXX" = yes; then
3188 ac_cpp='$CPP $CPPFLAGS'
3189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3194 ac_cpp='$CPP $CPPFLAGS'
3195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3198 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3199 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3200 # On Suns, sometimes $CPP names a directory.
3201 if test -n "$CPP" && test -d "$CPP"; then
3204 if test -z "$CPP"; then
3205 if test "${ac_cv_prog_CPP+set}" = set; then
3206 echo $ECHO_N "(cached) $ECHO_C" >&6
3208 # Double quotes because CPP needs to be expanded
3209 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3212 for ac_c_preproc_warn_flag in '' yes
3214 # Use a header file that comes with gcc, so configuring glibc
3215 # with a fresh cross-compiler works.
3216 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3217 # <limits.h> exists even on freestanding compilers.
3218 # On the NeXT, cc -E runs the code through the compiler's parser,
3219 # not just through cpp. "Syntax error" is here to catch this case.
3220 cat >conftest.$ac_ext <<_ACEOF
3223 cat confdefs.h >>conftest.$ac_ext
3224 cat >>conftest.$ac_ext <<_ACEOF
3225 /* end confdefs.h. */
3227 # include <limits.h>
3229 # include <assert.h>
3233 if { (ac_try="$ac_cpp conftest.$ac_ext"
3235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236 *) ac_try_echo=$ac_try;;
3238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3241 grep -v '^ *+' conftest.er1 >conftest.err
3243 cat conftest.err >&5
3244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245 (exit $ac_status); } >/dev/null; then
3246 if test -s conftest.err; then
3247 ac_cpp_err=$ac_c_preproc_warn_flag
3248 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3255 if test -z "$ac_cpp_err"; then
3258 echo "$as_me: failed program was:" >&5
3259 sed 's/^/| /' conftest.$ac_ext >&5
3261 # Broken: fails on valid input.
3265 rm -f conftest.err conftest.$ac_ext
3267 # OK, works on sane cases. Now check whether nonexistent headers
3268 # can be detected and how.
3269 cat >conftest.$ac_ext <<_ACEOF
3272 cat confdefs.h >>conftest.$ac_ext
3273 cat >>conftest.$ac_ext <<_ACEOF
3274 /* end confdefs.h. */
3275 #include <ac_nonexistent.h>
3277 if { (ac_try="$ac_cpp conftest.$ac_ext"
3279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3280 *) ac_try_echo=$ac_try;;
3282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3283 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3285 grep -v '^ *+' conftest.er1 >conftest.err
3287 cat conftest.err >&5
3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289 (exit $ac_status); } >/dev/null; then
3290 if test -s conftest.err; then
3291 ac_cpp_err=$ac_c_preproc_warn_flag
3292 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3299 if test -z "$ac_cpp_err"; then
3300 # Broken: success on invalid input.
3303 echo "$as_me: failed program was:" >&5
3304 sed 's/^/| /' conftest.$ac_ext >&5
3306 # Passes both tests.
3311 rm -f conftest.err conftest.$ac_ext
3314 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3315 rm -f conftest.err conftest.$ac_ext
3316 if $ac_preproc_ok; then
3328 { echo "$as_me:$LINENO: result: $CPP" >&5
3329 echo "${ECHO_T}$CPP" >&6; }
3331 for ac_c_preproc_warn_flag in '' yes
3333 # Use a header file that comes with gcc, so configuring glibc
3334 # with a fresh cross-compiler works.
3335 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3336 # <limits.h> exists even on freestanding compilers.
3337 # On the NeXT, cc -E runs the code through the compiler's parser,
3338 # not just through cpp. "Syntax error" is here to catch this case.
3339 cat >conftest.$ac_ext <<_ACEOF
3342 cat confdefs.h >>conftest.$ac_ext
3343 cat >>conftest.$ac_ext <<_ACEOF
3344 /* end confdefs.h. */
3346 # include <limits.h>
3348 # include <assert.h>
3352 if { (ac_try="$ac_cpp conftest.$ac_ext"
3354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3355 *) ac_try_echo=$ac_try;;
3357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3358 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3360 grep -v '^ *+' conftest.er1 >conftest.err
3362 cat conftest.err >&5
3363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364 (exit $ac_status); } >/dev/null; then
3365 if test -s conftest.err; then
3366 ac_cpp_err=$ac_c_preproc_warn_flag
3367 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3374 if test -z "$ac_cpp_err"; then
3377 echo "$as_me: failed program was:" >&5
3378 sed 's/^/| /' conftest.$ac_ext >&5
3380 # Broken: fails on valid input.
3384 rm -f conftest.err conftest.$ac_ext
3386 # OK, works on sane cases. Now check whether nonexistent headers
3387 # can be detected and how.
3388 cat >conftest.$ac_ext <<_ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h. */
3394 #include <ac_nonexistent.h>
3396 if { (ac_try="$ac_cpp conftest.$ac_ext"
3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399 *) ac_try_echo=$ac_try;;
3401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3402 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3404 grep -v '^ *+' conftest.er1 >conftest.err
3406 cat conftest.err >&5
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); } >/dev/null; then
3409 if test -s conftest.err; then
3410 ac_cpp_err=$ac_c_preproc_warn_flag
3411 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3418 if test -z "$ac_cpp_err"; then
3419 # Broken: success on invalid input.
3422 echo "$as_me: failed program was:" >&5
3423 sed 's/^/| /' conftest.$ac_ext >&5
3425 # Passes both tests.
3430 rm -f conftest.err conftest.$ac_ext
3433 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3434 rm -f conftest.err conftest.$ac_ext
3435 if $ac_preproc_ok; then
3438 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3439 See \`config.log' for more details." >&5
3440 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3441 See \`config.log' for more details." >&2;}
3442 { (exit 1); exit 1; }; }
3446 ac_cpp='$CPP $CPPFLAGS'
3447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3454 if test -d ${srcdir}/projects/llvm-gcc ; then
3455 subdirs="$subdirs projects/llvm-gcc"
3459 if test -d ${srcdir}/projects/test-suite ; then
3460 subdirs="$subdirs projects/test-suite"
3464 if test -d ${srcdir}/projects/llvm-test ; then
3465 subdirs="$subdirs projects/llvm-test"
3469 if test -d ${srcdir}/projects/poolalloc ; then
3470 subdirs="$subdirs projects/poolalloc"
3474 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3475 subdirs="$subdirs projects/llvm-poolalloc"
3479 for i in `ls ${srcdir}/projects`
3481 if test -d ${srcdir}/projects/${i} ; then
3483 sample) subdirs="$subdirs projects/sample"
3485 privbracket) subdirs="$subdirs projects/privbracket"
3487 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3489 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3491 llvm-java) subdirs="$subdirs projects/llvm-java"
3493 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3495 safecode) subdirs="$subdirs projects/safecode"
3497 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3506 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3507 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3513 # Check whether --enable-polly was given.
3514 if test "${enable_polly+set}" = set; then
3515 enableval=$enable_polly;
3520 case "$enableval" in
3525 default) ENABLE_POLLY=1
3527 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3528 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3529 { (exit 1); exit 1; }; } ;;
3533 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3536 subdirs="$subdirs tools/polly"
3541 # Make sure we can run config.sub.
3542 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3543 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3544 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3545 { (exit 1); exit 1; }; }
3547 { echo "$as_me:$LINENO: checking build system type" >&5
3548 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3549 if test "${ac_cv_build+set}" = set; then
3550 echo $ECHO_N "(cached) $ECHO_C" >&6
3552 ac_build_alias=$build_alias
3553 test "x$ac_build_alias" = x &&
3554 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3555 test "x$ac_build_alias" = x &&
3556 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3557 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3558 { (exit 1); exit 1; }; }
3559 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3560 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3561 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3562 { (exit 1); exit 1; }; }
3565 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3566 echo "${ECHO_T}$ac_cv_build" >&6; }
3567 case $ac_cv_build in
3569 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3570 echo "$as_me: error: invalid value of canonical build" >&2;}
3571 { (exit 1); exit 1; }; };;
3574 ac_save_IFS=$IFS; IFS='-'
3580 # Remember, the first character of IFS is used to create $*,
3581 # except with old shells:
3584 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3587 { echo "$as_me:$LINENO: checking host system type" >&5
3588 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3589 if test "${ac_cv_host+set}" = set; then
3590 echo $ECHO_N "(cached) $ECHO_C" >&6
3592 if test "x$host_alias" = x; then
3593 ac_cv_host=$ac_cv_build
3595 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3596 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3597 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3598 { (exit 1); exit 1; }; }
3602 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3603 echo "${ECHO_T}$ac_cv_host" >&6; }
3606 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3607 echo "$as_me: error: invalid value of canonical host" >&2;}
3608 { (exit 1); exit 1; }; };;
3611 ac_save_IFS=$IFS; IFS='-'
3617 # Remember, the first character of IFS is used to create $*,
3618 # except with old shells:
3621 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3624 { echo "$as_me:$LINENO: checking target system type" >&5
3625 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3626 if test "${ac_cv_target+set}" = set; then
3627 echo $ECHO_N "(cached) $ECHO_C" >&6
3629 if test "x$target_alias" = x; then
3630 ac_cv_target=$ac_cv_host
3632 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3633 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3634 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3635 { (exit 1); exit 1; }; }
3639 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3640 echo "${ECHO_T}$ac_cv_target" >&6; }
3641 case $ac_cv_target in
3643 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3644 echo "$as_me: error: invalid value of canonical target" >&2;}
3645 { (exit 1); exit 1; }; };;
3647 target=$ac_cv_target
3648 ac_save_IFS=$IFS; IFS='-'
3654 # Remember, the first character of IFS is used to create $*,
3655 # except with old shells:
3658 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3661 # The aliases save the names the user supplied, while $host etc.
3662 # will get canonicalized.
3663 test -n "$target_alias" &&
3664 test "$program_prefix$program_suffix$program_transform_name" = \
3666 program_prefix=${target_alias}-
3668 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3669 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3670 if test "${llvm_cv_os_type+set}" = set; then
3671 echo $ECHO_N "(cached) $ECHO_C" >&6
3675 llvm_cv_link_all_option="-Wl,--whole-archive"
3676 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3677 llvm_cv_os_type="AIX"
3678 llvm_cv_platform_type="Unix" ;;
3680 llvm_cv_link_all_option="-Wl,--whole-archive"
3681 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3682 llvm_cv_os_type="IRIX"
3683 llvm_cv_platform_type="Unix" ;;
3685 llvm_cv_link_all_option="-Wl,--whole-archive"
3686 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3687 llvm_cv_os_type="Cygwin"
3688 llvm_cv_platform_type="Unix" ;;
3690 llvm_cv_link_all_option="-Wl,-all_load"
3691 llvm_cv_no_link_all_option="-Wl,-noall_load"
3692 llvm_cv_os_type="Darwin"
3693 llvm_cv_platform_type="Unix" ;;
3695 llvm_cv_link_all_option="-Wl,-all_load"
3696 llvm_cv_no_link_all_option="-Wl,-noall_load"
3697 llvm_cv_os_type="Minix"
3698 llvm_cv_platform_type="Unix" ;;
3699 *-*-freebsd* | *-*-kfreebsd-gnu)
3700 llvm_cv_link_all_option="-Wl,--whole-archive"
3701 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3702 llvm_cv_os_type="FreeBSD"
3703 llvm_cv_platform_type="Unix" ;;
3705 llvm_cv_link_all_option="-Wl,--whole-archive"
3706 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3707 llvm_cv_os_type="OpenBSD"
3708 llvm_cv_platform_type="Unix" ;;
3710 llvm_cv_link_all_option="-Wl,--whole-archive"
3711 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3712 llvm_cv_os_type="NetBSD"
3713 llvm_cv_platform_type="Unix" ;;
3715 llvm_cv_link_all_option="-Wl,--whole-archive"
3716 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3717 llvm_cv_os_type="DragonFly"
3718 llvm_cv_platform_type="Unix" ;;
3720 llvm_cv_link_all_option="-Wl,--whole-archive"
3721 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3722 llvm_cv_os_type="HP-UX"
3723 llvm_cv_platform_type="Unix" ;;
3725 llvm_cv_link_all_option="-Wl,--whole-archive"
3726 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3727 llvm_cv_os_type="Interix"
3728 llvm_cv_platform_type="Unix" ;;
3730 llvm_cv_link_all_option="-Wl,--whole-archive"
3731 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3732 llvm_cv_os_type="Linux"
3733 llvm_cv_platform_type="Unix" ;;
3735 llvm_cv_link_all_option="-Wl,--whole-archive"
3736 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3737 llvm_cv_os_type="GNU"
3738 llvm_cv_platform_type="Unix" ;;
3740 llvm_cv_link_all_option="-Wl,-z,allextract"
3741 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3742 llvm_cv_os_type="SunOS"
3743 llvm_cv_platform_type="Unix" ;;
3745 llvm_cv_link_all_option="-Wl,-z,allextract"
3746 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3747 llvm_cv_os_type="AuroraUX"
3748 llvm_cv_platform_type="Unix" ;;
3750 llvm_cv_link_all_option="-Wl,--whole-archive"
3751 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3752 llvm_cv_os_type="Win32"
3753 llvm_cv_platform_type="Win32" ;;
3755 llvm_cv_link_all_option="-Wl,--whole-archive"
3756 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3757 llvm_cv_os_type="MingW"
3758 llvm_cv_platform_type="Win32" ;;
3760 llvm_cv_link_all_option="-Wl,--whole-archive"
3761 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3762 llvm_cv_os_type="Haiku"
3763 llvm_cv_platform_type="Unix" ;;
3765 llvm_cv_link_all_option="-Wl,--whole-archive"
3766 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3767 llvm_cv_os_type="Freestanding"
3768 llvm_cv_platform_type="Unix" ;;
3770 llvm_cv_link_all_option="-Wl,--whole-archive"
3771 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3772 llvm_cv_os_type="Freestanding"
3773 llvm_cv_platform_type="Unix" ;;
3775 llvm_cv_link_all_option=""
3776 llvm_cv_no_link_all_option=""
3777 llvm_cv_os_type="Unknown"
3778 llvm_cv_platform_type="Unknown" ;;
3781 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3782 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3784 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3785 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3786 if test "${llvm_cv_target_os_type+set}" = set; then
3787 echo $ECHO_N "(cached) $ECHO_C" >&6
3791 llvm_cv_target_os_type="AIX" ;;
3793 llvm_cv_target_os_type="IRIX" ;;
3795 llvm_cv_target_os_type="Cygwin" ;;
3797 llvm_cv_target_os_type="Darwin" ;;
3799 llvm_cv_target_os_type="Minix" ;;
3800 *-*-freebsd* | *-*-kfreebsd-gnu)
3801 llvm_cv_target_os_type="FreeBSD" ;;
3803 llvm_cv_target_os_type="OpenBSD" ;;
3805 llvm_cv_target_os_type="NetBSD" ;;
3807 llvm_cv_target_os_type="DragonFly" ;;
3809 llvm_cv_target_os_type="HP-UX" ;;
3811 llvm_cv_target_os_type="Interix" ;;
3813 llvm_cv_target_os_type="Linux" ;;
3815 llvm_cv_target_os_type="GNU" ;;
3817 llvm_cv_target_os_type="SunOS" ;;
3819 llvm_cv_target_os_type="AuroraUX" ;;
3821 llvm_cv_target_os_type="Win32" ;;
3823 llvm_cv_target_os_type="MingW" ;;
3825 llvm_cv_target_os_type="Haiku" ;;
3827 llvm_cv_target_os_type="RTEMS" ;;
3829 llvm_cv_target_os_type="NativeClient" ;;
3831 llvm_cv_target_os_type="Freestanding" ;;
3833 llvm_cv_target_os_type="Unknown" ;;
3836 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3837 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3839 if test "$llvm_cv_os_type" = "Unknown" ; then
3840 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3841 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3842 { (exit 1); exit 1; }; }
3847 HOST_OS=$llvm_cv_os_type
3849 TARGET_OS=$llvm_cv_target_os_type
3852 LINKALL=$llvm_cv_link_all_option
3854 NOLINKALL=$llvm_cv_no_link_all_option
3857 case $llvm_cv_platform_type in
3860 cat >>confdefs.h <<\_ACEOF
3861 #define LLVM_ON_UNIX 1
3871 cat >>confdefs.h <<\_ACEOF
3872 #define LLVM_ON_WIN32 1
3882 { echo "$as_me:$LINENO: checking target architecture" >&5
3883 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3884 if test "${llvm_cv_target_arch+set}" = set; then
3885 echo $ECHO_N "(cached) $ECHO_C" >&6
3888 i?86-*) llvm_cv_target_arch="x86" ;;
3889 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3890 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3891 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3892 arm*-*) llvm_cv_target_arch="ARM" ;;
3893 mips-*) llvm_cv_target_arch="Mips" ;;
3894 mipsel-*) llvm_cv_target_arch="Mips" ;;
3895 xcore-*) llvm_cv_target_arch="XCore" ;;
3896 msp430-*) llvm_cv_target_arch="MSP430" ;;
3897 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
3898 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3899 ptx-*) llvm_cv_target_arch="PTX" ;;
3900 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
3901 *) llvm_cv_target_arch="Unknown" ;;
3904 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3905 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3907 if test "$llvm_cv_target_arch" = "Unknown" ; then
3908 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3909 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3912 case "$llvm_cv_target_arch" in
3913 x86) LLVM_NATIVE_ARCH="X86" ;;
3914 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3915 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3918 ARCH=$llvm_cv_target_arch
3923 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3924 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3925 if test "${ac_cv_path_GREP+set}" = set; then
3926 echo $ECHO_N "(cached) $ECHO_C" >&6
3928 # Extract the first word of "grep ggrep" to use in msg output
3929 if test -z "$GREP"; then
3930 set dummy grep ggrep; ac_prog_name=$2
3931 if test "${ac_cv_path_GREP+set}" = set; then
3932 echo $ECHO_N "(cached) $ECHO_C" >&6
3934 ac_path_GREP_found=false
3935 # Loop through the user's path and test for each of PROGNAME-LIST
3936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3937 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3940 test -z "$as_dir" && as_dir=.
3941 for ac_prog in grep ggrep; do
3942 for ac_exec_ext in '' $ac_executable_extensions; do
3943 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3944 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3945 # Check for GNU ac_path_GREP and select it if it is found.
3946 # Check for GNU $ac_path_GREP
3947 case `"$ac_path_GREP" --version 2>&1` in
3949 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3952 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3955 cat "conftest.in" "conftest.in" >"conftest.tmp"
3956 mv "conftest.tmp" "conftest.in"
3957 cp "conftest.in" "conftest.nl"
3958 echo 'GREP' >> "conftest.nl"
3959 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3960 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3961 ac_count=`expr $ac_count + 1`
3962 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3963 # Best one so far, save it but keep looking for a better one
3964 ac_cv_path_GREP="$ac_path_GREP"
3965 ac_path_GREP_max=$ac_count
3967 # 10*(2^10) chars as input seems more than enough
3968 test $ac_count -gt 10 && break
3970 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3974 $ac_path_GREP_found && break 3
3984 GREP="$ac_cv_path_GREP"
3985 if test -z "$GREP"; then
3986 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3987 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3988 { (exit 1); exit 1; }; }
3992 ac_cv_path_GREP=$GREP
3997 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3998 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3999 GREP="$ac_cv_path_GREP"
4002 { echo "$as_me:$LINENO: checking for egrep" >&5
4003 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4004 if test "${ac_cv_path_EGREP+set}" = set; then
4005 echo $ECHO_N "(cached) $ECHO_C" >&6
4007 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4008 then ac_cv_path_EGREP="$GREP -E"
4010 # Extract the first word of "egrep" to use in msg output
4011 if test -z "$EGREP"; then
4012 set dummy egrep; ac_prog_name=$2
4013 if test "${ac_cv_path_EGREP+set}" = set; then
4014 echo $ECHO_N "(cached) $ECHO_C" >&6
4016 ac_path_EGREP_found=false
4017 # Loop through the user's path and test for each of PROGNAME-LIST
4018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4022 test -z "$as_dir" && as_dir=.
4023 for ac_prog in egrep; do
4024 for ac_exec_ext in '' $ac_executable_extensions; do
4025 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4026 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4027 # Check for GNU ac_path_EGREP and select it if it is found.
4028 # Check for GNU $ac_path_EGREP
4029 case `"$ac_path_EGREP" --version 2>&1` in
4031 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4034 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4037 cat "conftest.in" "conftest.in" >"conftest.tmp"
4038 mv "conftest.tmp" "conftest.in"
4039 cp "conftest.in" "conftest.nl"
4040 echo 'EGREP' >> "conftest.nl"
4041 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4042 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4043 ac_count=`expr $ac_count + 1`
4044 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4045 # Best one so far, save it but keep looking for a better one
4046 ac_cv_path_EGREP="$ac_path_EGREP"
4047 ac_path_EGREP_max=$ac_count
4049 # 10*(2^10) chars as input seems more than enough
4050 test $ac_count -gt 10 && break
4052 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4056 $ac_path_EGREP_found && break 3
4066 EGREP="$ac_cv_path_EGREP"
4067 if test -z "$EGREP"; then
4068 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4069 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4070 { (exit 1); exit 1; }; }
4074 ac_cv_path_EGREP=$EGREP
4080 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4081 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4082 EGREP="$ac_cv_path_EGREP"
4085 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4086 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4087 if test "${ac_cv_header_stdc+set}" = set; then
4088 echo $ECHO_N "(cached) $ECHO_C" >&6
4090 cat >conftest.$ac_ext <<_ACEOF
4093 cat confdefs.h >>conftest.$ac_ext
4094 cat >>conftest.$ac_ext <<_ACEOF
4095 /* end confdefs.h. */
4109 rm -f conftest.$ac_objext
4110 if { (ac_try="$ac_compile"
4112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113 *) ac_try_echo=$ac_try;;
4115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4116 (eval "$ac_compile") 2>conftest.er1
4118 grep -v '^ *+' conftest.er1 >conftest.err
4120 cat conftest.err >&5
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); } &&
4123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4124 { (case "(($ac_try" in
4125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4126 *) ac_try_echo=$ac_try;;
4128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4129 (eval "$ac_try") 2>&5
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); }; } &&
4133 { ac_try='test -s conftest.$ac_objext'
4134 { (case "(($ac_try" in
4135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136 *) ac_try_echo=$ac_try;;
4138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4139 (eval "$ac_try") 2>&5
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); }; }; then
4143 ac_cv_header_stdc=yes
4145 echo "$as_me: failed program was:" >&5
4146 sed 's/^/| /' conftest.$ac_ext >&5
4148 ac_cv_header_stdc=no
4151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4153 if test $ac_cv_header_stdc = yes; then
4154 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4155 cat >conftest.$ac_ext <<_ACEOF
4158 cat confdefs.h >>conftest.$ac_ext
4159 cat >>conftest.$ac_ext <<_ACEOF
4160 /* end confdefs.h. */
4164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4165 $EGREP "memchr" >/dev/null 2>&1; then
4168 ac_cv_header_stdc=no
4174 if test $ac_cv_header_stdc = yes; then
4175 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4176 cat >conftest.$ac_ext <<_ACEOF
4179 cat confdefs.h >>conftest.$ac_ext
4180 cat >>conftest.$ac_ext <<_ACEOF
4181 /* end confdefs.h. */
4185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4186 $EGREP "free" >/dev/null 2>&1; then
4189 ac_cv_header_stdc=no
4195 if test $ac_cv_header_stdc = yes; then
4196 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4197 if test "$cross_compiling" = yes; then
4200 cat >conftest.$ac_ext <<_ACEOF
4203 cat confdefs.h >>conftest.$ac_ext
4204 cat >>conftest.$ac_ext <<_ACEOF
4205 /* end confdefs.h. */
4208 #if ((' ' & 0x0FF) == 0x020)
4209 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4210 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4212 # define ISLOWER(c) \
4213 (('a' <= (c) && (c) <= 'i') \
4214 || ('j' <= (c) && (c) <= 'r') \
4215 || ('s' <= (c) && (c) <= 'z'))
4216 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4219 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4224 for (i = 0; i < 256; i++)
4225 if (XOR (islower (i), ISLOWER (i))
4226 || toupper (i) != TOUPPER (i))
4231 rm -f conftest$ac_exeext
4232 if { (ac_try="$ac_link"
4234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4235 *) ac_try_echo=$ac_try;;
4237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4238 (eval "$ac_link") 2>&5
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4242 { (case "(($ac_try" in
4243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4244 *) ac_try_echo=$ac_try;;
4246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4247 (eval "$ac_try") 2>&5
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); }; }; then
4253 echo "$as_me: program exited with status $ac_status" >&5
4254 echo "$as_me: failed program was:" >&5
4255 sed 's/^/| /' conftest.$ac_ext >&5
4258 ac_cv_header_stdc=no
4260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4266 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4267 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4268 if test $ac_cv_header_stdc = yes; then
4270 cat >>confdefs.h <<\_ACEOF
4271 #define STDC_HEADERS 1
4276 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4286 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4287 inttypes.h stdint.h unistd.h
4289 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4290 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4293 echo $ECHO_N "(cached) $ECHO_C" >&6
4295 cat >conftest.$ac_ext <<_ACEOF
4298 cat confdefs.h >>conftest.$ac_ext
4299 cat >>conftest.$ac_ext <<_ACEOF
4300 /* end confdefs.h. */
4301 $ac_includes_default
4303 #include <$ac_header>
4305 rm -f conftest.$ac_objext
4306 if { (ac_try="$ac_compile"
4308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309 *) ac_try_echo=$ac_try;;
4311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4312 (eval "$ac_compile") 2>conftest.er1
4314 grep -v '^ *+' conftest.er1 >conftest.err
4316 cat conftest.err >&5
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); } &&
4319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4320 { (case "(($ac_try" in
4321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322 *) ac_try_echo=$ac_try;;
4324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4325 (eval "$ac_try") 2>&5
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); }; } &&
4329 { ac_try='test -s conftest.$ac_objext'
4330 { (case "(($ac_try" in
4331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4332 *) ac_try_echo=$ac_try;;
4334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4335 (eval "$ac_try") 2>&5
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); }; }; then
4339 eval "$as_ac_Header=yes"
4341 echo "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.$ac_ext >&5
4344 eval "$as_ac_Header=no"
4347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4349 ac_res=`eval echo '${'$as_ac_Header'}'`
4350 { echo "$as_me:$LINENO: result: $ac_res" >&5
4351 echo "${ECHO_T}$ac_res" >&6; }
4352 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4353 cat >>confdefs.h <<_ACEOF
4354 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4362 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4363 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4364 if test "${ac_cv_c_bigendian+set}" = set; then
4365 echo $ECHO_N "(cached) $ECHO_C" >&6
4367 # See if sys/param.h defines the BYTE_ORDER macro.
4368 cat >conftest.$ac_ext <<_ACEOF
4371 cat confdefs.h >>conftest.$ac_ext
4372 cat >>conftest.$ac_ext <<_ACEOF
4373 /* end confdefs.h. */
4374 #include <sys/types.h>
4375 #include <sys/param.h>
4380 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4388 rm -f conftest.$ac_objext
4389 if { (ac_try="$ac_compile"
4391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4392 *) ac_try_echo=$ac_try;;
4394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4395 (eval "$ac_compile") 2>conftest.er1
4397 grep -v '^ *+' conftest.er1 >conftest.err
4399 cat conftest.err >&5
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); } &&
4402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4403 { (case "(($ac_try" in
4404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4405 *) ac_try_echo=$ac_try;;
4407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4408 (eval "$ac_try") 2>&5
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); }; } &&
4412 { ac_try='test -s conftest.$ac_objext'
4413 { (case "(($ac_try" in
4414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415 *) ac_try_echo=$ac_try;;
4417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4418 (eval "$ac_try") 2>&5
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); }; }; then
4422 # It does; now see whether it defined to BIG_ENDIAN or not.
4423 cat >conftest.$ac_ext <<_ACEOF
4426 cat confdefs.h >>conftest.$ac_ext
4427 cat >>conftest.$ac_ext <<_ACEOF
4428 /* end confdefs.h. */
4429 #include <sys/types.h>
4430 #include <sys/param.h>
4435 #if BYTE_ORDER != BIG_ENDIAN
4443 rm -f conftest.$ac_objext
4444 if { (ac_try="$ac_compile"
4446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4447 *) ac_try_echo=$ac_try;;
4449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4450 (eval "$ac_compile") 2>conftest.er1
4452 grep -v '^ *+' conftest.er1 >conftest.err
4454 cat conftest.err >&5
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); } &&
4457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4458 { (case "(($ac_try" in
4459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460 *) ac_try_echo=$ac_try;;
4462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4463 (eval "$ac_try") 2>&5
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); }; } &&
4467 { ac_try='test -s conftest.$ac_objext'
4468 { (case "(($ac_try" in
4469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4470 *) ac_try_echo=$ac_try;;
4472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4473 (eval "$ac_try") 2>&5
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); }; }; then
4477 ac_cv_c_bigendian=yes
4479 echo "$as_me: failed program was:" >&5
4480 sed 's/^/| /' conftest.$ac_ext >&5
4482 ac_cv_c_bigendian=no
4485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4487 echo "$as_me: failed program was:" >&5
4488 sed 's/^/| /' conftest.$ac_ext >&5
4490 # It does not; compile a test program.
4491 if test "$cross_compiling" = yes; then
4492 # try to guess the endianness by grepping values into an object file
4493 ac_cv_c_bigendian=unknown
4494 cat >conftest.$ac_ext <<_ACEOF
4497 cat confdefs.h >>conftest.$ac_ext
4498 cat >>conftest.$ac_ext <<_ACEOF
4499 /* end confdefs.h. */
4500 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4501 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4502 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4503 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4504 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4505 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4509 _ascii (); _ebcdic ();
4514 rm -f conftest.$ac_objext
4515 if { (ac_try="$ac_compile"
4517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4518 *) ac_try_echo=$ac_try;;
4520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4521 (eval "$ac_compile") 2>conftest.er1
4523 grep -v '^ *+' conftest.er1 >conftest.err
4525 cat conftest.err >&5
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); } &&
4528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4529 { (case "(($ac_try" in
4530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4531 *) ac_try_echo=$ac_try;;
4533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4534 (eval "$ac_try") 2>&5
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); }; } &&
4538 { ac_try='test -s conftest.$ac_objext'
4539 { (case "(($ac_try" in
4540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4541 *) ac_try_echo=$ac_try;;
4543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4544 (eval "$ac_try") 2>&5
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); }; }; then
4548 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4549 ac_cv_c_bigendian=yes
4551 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4552 if test "$ac_cv_c_bigendian" = unknown; then
4553 ac_cv_c_bigendian=no
4555 # finding both strings is unlikely to happen, but who knows?
4556 ac_cv_c_bigendian=unknown
4560 echo "$as_me: failed program was:" >&5
4561 sed 's/^/| /' conftest.$ac_ext >&5
4566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4568 cat >conftest.$ac_ext <<_ACEOF
4571 cat confdefs.h >>conftest.$ac_ext
4572 cat >>conftest.$ac_ext <<_ACEOF
4573 /* end confdefs.h. */
4574 $ac_includes_default
4579 /* Are we little or big endian? From Harbison&Steele. */
4583 char c[sizeof (long int)];
4586 return u.c[sizeof (long int) - 1] == 1;
4592 rm -f conftest$ac_exeext
4593 if { (ac_try="$ac_link"
4595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4596 *) ac_try_echo=$ac_try;;
4598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4599 (eval "$ac_link") 2>&5
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4603 { (case "(($ac_try" in
4604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4605 *) ac_try_echo=$ac_try;;
4607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4608 (eval "$ac_try") 2>&5
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); }; }; then
4612 ac_cv_c_bigendian=no
4614 echo "$as_me: program exited with status $ac_status" >&5
4615 echo "$as_me: failed program was:" >&5
4616 sed 's/^/| /' conftest.$ac_ext >&5
4619 ac_cv_c_bigendian=yes
4621 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4629 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4630 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4631 case $ac_cv_c_bigendian in
4639 { { echo "$as_me:$LINENO: error: unknown endianness
4640 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4641 echo "$as_me: error: unknown endianness
4642 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4643 { (exit 1); exit 1; }; } ;;
4647 if test "$cross_compiling" = yes; then
4648 LLVM_CROSS_COMPILING=1
4651 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4652 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4653 if test "${ac_cv_build_exeext+set}" = set; then
4654 echo $ECHO_N "(cached) $ECHO_C" >&6
4656 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4657 ac_cv_build_exeext=.exe
4659 ac_build_prefix=${build_alias}-
4661 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4662 set dummy ${ac_build_prefix}gcc; ac_word=$2
4663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4665 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4666 echo $ECHO_N "(cached) $ECHO_C" >&6
4668 if test -n "$BUILD_CC"; then
4669 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675 test -z "$as_dir" && as_dir=.
4676 for ac_exec_ext in '' $ac_executable_extensions; do
4677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4678 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4688 BUILD_CC=$ac_cv_prog_BUILD_CC
4689 if test -n "$BUILD_CC"; then
4690 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4691 echo "${ECHO_T}$BUILD_CC" >&6; }
4693 { echo "$as_me:$LINENO: result: no" >&5
4694 echo "${ECHO_T}no" >&6; }
4698 if test -z "$BUILD_CC"; then
4699 # Extract the first word of "gcc", so it can be a program name with args.
4700 set dummy gcc; ac_word=$2
4701 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4703 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4704 echo $ECHO_N "(cached) $ECHO_C" >&6
4706 if test -n "$BUILD_CC"; then
4707 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713 test -z "$as_dir" && as_dir=.
4714 for ac_exec_ext in '' $ac_executable_extensions; do
4715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4716 ac_cv_prog_BUILD_CC="gcc"
4717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4726 BUILD_CC=$ac_cv_prog_BUILD_CC
4727 if test -n "$BUILD_CC"; then
4728 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4729 echo "${ECHO_T}$BUILD_CC" >&6; }
4731 { echo "$as_me:$LINENO: result: no" >&5
4732 echo "${ECHO_T}no" >&6; }
4736 if test -z "$BUILD_CC"; then
4737 # Extract the first word of "cc", so it can be a program name with args.
4738 set dummy cc; ac_word=$2
4739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4741 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4742 echo $ECHO_N "(cached) $ECHO_C" >&6
4744 if test -n "$BUILD_CC"; then
4745 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752 test -z "$as_dir" && as_dir=.
4753 for ac_exec_ext in '' $ac_executable_extensions; do
4754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4755 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4756 ac_prog_rejected=yes
4759 ac_cv_prog_BUILD_CC="cc"
4760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4767 if test $ac_prog_rejected = yes; then
4768 # We found a bogon in the path, so make sure we never use it.
4769 set dummy $ac_cv_prog_BUILD_CC
4771 if test $# != 0; then
4772 # We chose a different compiler from the bogus one.
4773 # However, it has the same basename, so the bogon will be chosen
4774 # first if we set BUILD_CC to just the basename; use the full file name.
4776 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4781 BUILD_CC=$ac_cv_prog_BUILD_CC
4782 if test -n "$BUILD_CC"; then
4783 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4784 echo "${ECHO_T}$BUILD_CC" >&6; }
4786 { echo "$as_me:$LINENO: result: no" >&5
4787 echo "${ECHO_T}no" >&6; }
4793 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4794 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4795 { (exit 1); exit 1; }; }
4796 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4798 echo 'int main () { return 0; }' > conftest.$ac_ext
4800 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4801 (eval $ac_build_link) 2>&5
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); }; then
4805 for file in conftest.*; do
4807 *.c | *.o | *.obj | *.dSYM) ;;
4808 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4812 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4813 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4814 { (exit 1); exit 1; }; }
4817 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4822 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4823 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4824 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4825 ac_build_exeext=$BUILD_EXEEXT
4827 ac_build_prefix=${build_alias}-
4828 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4829 set dummy ${ac_build_prefix}g++; ac_word=$2
4830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4832 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4833 echo $ECHO_N "(cached) $ECHO_C" >&6
4835 if test -n "$BUILD_CXX"; then
4836 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4842 test -z "$as_dir" && as_dir=.
4843 for ac_exec_ext in '' $ac_executable_extensions; do
4844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4845 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4855 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4856 if test -n "$BUILD_CXX"; then
4857 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4858 echo "${ECHO_T}$BUILD_CXX" >&6; }
4860 { echo "$as_me:$LINENO: result: no" >&5
4861 echo "${ECHO_T}no" >&6; }
4865 if test -z "$BUILD_CXX"; then
4866 # Extract the first word of "g++", so it can be a program name with args.
4867 set dummy g++; ac_word=$2
4868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4870 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4871 echo $ECHO_N "(cached) $ECHO_C" >&6
4873 if test -n "$BUILD_CXX"; then
4874 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4880 test -z "$as_dir" && as_dir=.
4881 for ac_exec_ext in '' $ac_executable_extensions; do
4882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4883 ac_cv_prog_BUILD_CXX="g++"
4884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4893 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4894 if test -n "$BUILD_CXX"; then
4895 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4896 echo "${ECHO_T}$BUILD_CXX" >&6; }
4898 { echo "$as_me:$LINENO: result: no" >&5
4899 echo "${ECHO_T}no" >&6; }
4903 if test -z "$BUILD_CXX"; then
4904 # Extract the first word of "c++", so it can be a program name with args.
4905 set dummy c++; ac_word=$2
4906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4908 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4909 echo $ECHO_N "(cached) $ECHO_C" >&6
4911 if test -n "$BUILD_CXX"; then
4912 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4919 test -z "$as_dir" && as_dir=.
4920 for ac_exec_ext in '' $ac_executable_extensions; do
4921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4922 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4923 ac_prog_rejected=yes
4926 ac_cv_prog_BUILD_CXX="c++"
4927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4934 if test $ac_prog_rejected = yes; then
4935 # We found a bogon in the path, so make sure we never use it.
4936 set dummy $ac_cv_prog_BUILD_CXX
4938 if test $# != 0; then
4939 # We chose a different compiler from the bogus one.
4940 # However, it has the same basename, so the bogon will be chosen
4941 # first if we set BUILD_CXX to just the basename; use the full file name.
4943 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4948 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4949 if test -n "$BUILD_CXX"; then
4950 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4951 echo "${ECHO_T}$BUILD_CXX" >&6; }
4953 { echo "$as_me:$LINENO: result: no" >&5
4954 echo "${ECHO_T}no" >&6; }
4961 LLVM_CROSS_COMPILING=0
4965 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4976 # Check whether --enable-libcpp was given.
4977 if test "${enable_libcpp+set}" = set; then
4978 enableval=$enable_libcpp;
4983 case "$enableval" in
4984 yes) ENABLE_LIBCPP=1
4988 default) ENABLE_LIBCPP=0
4990 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4991 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4992 { (exit 1); exit 1; }; } ;;
4995 # Check whether --enable-optimized was given.
4996 if test "${enable_optimized+set}" = set; then
4997 enableval=$enable_optimized;
5002 if test ${enableval} = "no" ; then
5006 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5010 # Check whether --enable-profiling was given.
5011 if test "${enable_profiling+set}" = set; then
5012 enableval=$enable_profiling;
5017 if test ${enableval} = "no" ; then
5021 ENABLE_PROFILING=ENABLE_PROFILING=1
5025 # Check whether --enable-assertions was given.
5026 if test "${enable_assertions+set}" = set; then
5027 enableval=$enable_assertions;
5032 if test ${enableval} = "yes" ; then
5036 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5040 # Check whether --enable-expensive-checks was given.
5041 if test "${enable_expensive_checks+set}" = set; then
5042 enableval=$enable_expensive_checks;
5047 if test ${enableval} = "yes" ; then
5048 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5050 EXPENSIVE_CHECKS=yes
5053 ENABLE_EXPENSIVE_CHECKS=
5059 # Check whether --enable-debug-runtime was given.
5060 if test "${enable_debug_runtime+set}" = set; then
5061 enableval=$enable_debug_runtime;
5066 if test ${enableval} = "no" ; then
5070 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5074 # Check whether --enable-debug-symbols was given.
5075 if test "${enable_debug_symbols+set}" = set; then
5076 enableval=$enable_debug_symbols;
5081 if test ${enableval} = "no" ; then
5085 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5089 # Check whether --enable-jit was given.
5090 if test "${enable_jit+set}" = set; then
5091 enableval=$enable_jit;
5096 if test ${enableval} = "no"
5101 case "$llvm_cv_target_arch" in
5102 x86) TARGET_HAS_JIT=1
5104 Sparc) TARGET_HAS_JIT=0
5106 PowerPC) TARGET_HAS_JIT=1
5108 x86_64) TARGET_HAS_JIT=1
5110 ARM) TARGET_HAS_JIT=1
5112 Mips) TARGET_HAS_JIT=1
5114 XCore) TARGET_HAS_JIT=0
5116 MSP430) TARGET_HAS_JIT=0
5118 Hexagon) TARGET_HAS_JIT=0
5120 MBlaze) TARGET_HAS_JIT=0
5122 PTX) TARGET_HAS_JIT=0
5124 NVPTX) TARGET_HAS_JIT=0
5131 # Check whether --enable-docs was given.
5132 if test "${enable_docs+set}" = set; then
5133 enableval=$enable_docs;
5138 case "$enableval" in
5143 default) ENABLE_DOCS=1
5145 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5146 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5147 { (exit 1); exit 1; }; } ;;
5150 # Check whether --enable-doxygen was given.
5151 if test "${enable_doxygen+set}" = set; then
5152 enableval=$enable_doxygen;
5157 case "$enableval" in
5158 yes) ENABLE_DOXYGEN=1
5160 no) ENABLE_DOXYGEN=0
5162 default) ENABLE_DOXYGEN=0
5164 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5165 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5166 { (exit 1); exit 1; }; } ;;
5169 # Check whether --enable-threads was given.
5170 if test "${enable_threads+set}" = set; then
5171 enableval=$enable_threads;
5176 case "$enableval" in
5177 yes) LLVM_ENABLE_THREADS=1
5179 no) LLVM_ENABLE_THREADS=0
5181 default) LLVM_ENABLE_THREADS=1
5183 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5184 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5185 { (exit 1); exit 1; }; } ;;
5188 cat >>confdefs.h <<_ACEOF
5189 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5193 # Check whether --enable-pthreads was given.
5194 if test "${enable_pthreads+set}" = set; then
5195 enableval=$enable_pthreads;
5200 case "$enableval" in
5201 yes) ENABLE_PTHREADS=1
5203 no) ENABLE_PTHREADS=0
5205 default) ENABLE_PTHREADS=1
5207 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5208 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5209 { (exit 1); exit 1; }; } ;;
5212 # Check whether --enable-pic was given.
5213 if test "${enable_pic+set}" = set; then
5214 enableval=$enable_pic;
5219 case "$enableval" in
5224 default) ENABLE_PIC=1
5226 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5227 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5228 { (exit 1); exit 1; }; } ;;
5231 cat >>confdefs.h <<_ACEOF
5232 #define ENABLE_PIC $ENABLE_PIC
5236 # Check whether --enable-shared was given.
5237 if test "${enable_shared+set}" = set; then
5238 enableval=$enable_shared;
5243 case "$enableval" in
5244 yes) ENABLE_SHARED=1
5248 default) ENABLE_SHARED=0
5250 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5251 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5252 { (exit 1); exit 1; }; } ;;
5255 # Check whether --enable-embed-stdcxx was given.
5256 if test "${enable_embed_stdcxx+set}" = set; then
5257 enableval=$enable_embed_stdcxx;
5262 case "$enableval" in
5263 yes) ENABLE_EMBED_STDCXX=1
5265 no) ENABLE_EMBED_STDCXX=0
5267 default) ENABLE_EMBED_STDCXX=0
5269 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5270 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5271 { (exit 1); exit 1; }; } ;;
5274 # Check whether --enable-timestamps was given.
5275 if test "${enable_timestamps+set}" = set; then
5276 enableval=$enable_timestamps;
5281 case "$enableval" in
5282 yes) ENABLE_TIMESTAMPS=1
5284 no) ENABLE_TIMESTAMPS=0
5286 default) ENABLE_TIMESTAMPS=1
5288 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5289 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5290 { (exit 1); exit 1; }; } ;;
5293 cat >>confdefs.h <<_ACEOF
5294 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5299 # Check whether --enable-targets was given.
5300 if test "${enable_targets+set}" = set; then
5301 enableval=$enable_targets;
5306 if test "$enableval" = host-only ; then
5309 case "$enableval" in
5310 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze PTX NVPTX Hexagon" ;;
5311 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5313 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5314 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5315 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5316 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5317 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5318 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5319 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5320 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5321 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5322 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5323 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5324 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5325 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5326 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5327 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5328 host) case "$llvm_cv_target_arch" in
5329 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5330 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5331 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5332 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5333 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5334 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5335 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5336 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5337 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5338 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5339 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5340 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5341 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5342 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5343 echo "$as_me: error: Can not set target to build" >&2;}
5344 { (exit 1); exit 1; }; } ;;
5346 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5347 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5348 { (exit 1); exit 1; }; } ;;
5353 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5356 for a_target in $TARGETS_TO_BUILD; do
5357 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5359 cat >>confdefs.h <<_ACEOF
5360 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5363 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5364 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5365 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5366 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5367 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5368 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5370 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5371 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5374 cat >>confdefs.h <<_ACEOF
5375 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5379 cat >>confdefs.h <<_ACEOF
5380 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5384 cat >>confdefs.h <<_ACEOF
5385 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5389 cat >>confdefs.h <<_ACEOF
5390 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5393 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5395 cat >>confdefs.h <<_ACEOF
5396 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5400 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5402 cat >>confdefs.h <<_ACEOF
5403 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5410 LLVM_ENUM_TARGETS=""
5411 LLVM_ENUM_ASM_PRINTERS=""
5412 LLVM_ENUM_ASM_PARSERS=""
5413 LLVM_ENUM_DISASSEMBLERS=""
5414 for target_to_build in $TARGETS_TO_BUILD; do
5415 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5416 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5417 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5419 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5420 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5422 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5423 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5432 # Check whether --with-optimize-option was given.
5433 if test "${with_optimize_option+set}" = set; then
5434 withval=$with_optimize_option;
5439 { echo "$as_me:$LINENO: checking optimization flags" >&5
5440 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5443 case "$llvm_cv_os_type" in
5444 FreeBSD) optimize_option=-O2 ;;
5445 MingW) optimize_option=-O2 ;;
5446 *) optimize_option=-O3 ;;
5448 *) optimize_option="$withval" ;;
5450 OPTIMIZE_OPTION=$optimize_option
5452 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5453 echo "${ECHO_T}$optimize_option" >&6; }
5456 # Check whether --with-extra-options was given.
5457 if test "${with_extra_options+set}" = set; then
5458 withval=$with_extra_options;
5464 default) EXTRA_OPTIONS= ;;
5465 *) EXTRA_OPTIONS=$withval ;;
5467 EXTRA_OPTIONS=$EXTRA_OPTIONS
5471 # Check whether --with-extra-ld-options was given.
5472 if test "${with_extra_ld_options+set}" = set; then
5473 withval=$with_extra_ld_options;
5479 default) EXTRA_LD_OPTIONS= ;;
5480 *) EXTRA_LD_OPTIONS=$withval ;;
5482 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5485 # Check whether --enable-bindings was given.
5486 if test "${enable_bindings+set}" = set; then
5487 enableval=$enable_bindings;
5492 BINDINGS_TO_BUILD=""
5493 case "$enableval" in
5494 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5495 all ) BINDINGS_TO_BUILD="ocaml" ;;
5496 none | no) BINDINGS_TO_BUILD="" ;;
5497 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5498 case "$a_binding" in
5499 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5500 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5501 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5502 { (exit 1); exit 1; }; } ;;
5509 # Check whether --with-ocaml-libdir was given.
5510 if test "${with_ocaml_libdir+set}" = set; then
5511 withval=$with_ocaml_libdir;
5517 auto) with_ocaml_libdir="$withval" ;;
5518 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5519 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5520 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5521 { (exit 1); exit 1; }; } ;;
5525 # Check whether --with-clang-srcdir was given.
5526 if test "${with_clang_srcdir+set}" = set; then
5527 withval=$with_clang_srcdir;
5533 -) clang_src_root="" ;;
5534 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5535 *) clang_src_root="$ac_pwd/$withval" ;;
5537 CLANG_SRC_ROOT=$clang_src_root
5541 # Check whether --with-clang-resource-dir was given.
5542 if test "${with_clang_resource_dir+set}" = set; then
5543 withval=$with_clang_resource_dir;
5549 cat >>confdefs.h <<_ACEOF
5550 #define CLANG_RESOURCE_DIR "$withval"
5555 # Check whether --with-c-include-dirs was given.
5556 if test "${with_c_include_dirs+set}" = set; then
5557 withval=$with_c_include_dirs;
5563 cat >>confdefs.h <<_ACEOF
5564 #define C_INCLUDE_DIRS "$withval"
5568 # Clang normally uses the system c++ headers and libraries. With this option,
5569 # clang will use the ones provided by a gcc installation instead. This option should
5570 # be passed the same value that was used with --prefix when configuring gcc.
5572 # Check whether --with-gcc-toolchain was given.
5573 if test "${with_gcc_toolchain+set}" = set; then
5574 withval=$with_gcc_toolchain;
5580 cat >>confdefs.h <<_ACEOF
5581 #define GCC_INSTALL_PREFIX "$withval"
5586 # Check whether --with-default-sysroot was given.
5587 if test "${with_default_sysroot+set}" = set; then
5588 withval=$with_default_sysroot;
5594 cat >>confdefs.h <<_ACEOF
5595 #define DEFAULT_SYSROOT "$withval"
5600 # Check whether --with-binutils-include was given.
5601 if test "${with_binutils_include+set}" = set; then
5602 withval=$with_binutils_include;
5608 default) WITH_BINUTILS_INCDIR=default ;;
5609 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5610 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5611 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5612 { (exit 1); exit 1; }; } ;;
5614 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5615 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5617 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5618 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5619 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5620 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5621 { (exit 1); exit 1; }; };
5626 # Check whether --with-bug-report-url was given.
5627 if test "${with_bug_report_url+set}" = set; then
5628 withval=$with_bug_report_url;
5630 withval="http://llvm.org/bugs/"
5634 cat >>confdefs.h <<_ACEOF
5635 #define BUG_REPORT_URL "$withval"
5639 # Check whether --enable-libffi was given.
5640 if test "${enable_libffi+set}" = set; then
5641 enableval=$enable_libffi; case "$enableval" in
5642 yes) llvm_cv_enable_libffi="yes" ;;
5643 no) llvm_cv_enable_libffi="no" ;;
5644 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5645 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5646 { (exit 1); exit 1; }; } ;;
5649 llvm_cv_enable_libffi=no
5654 # Check whether --with-internal-prefix was given.
5655 if test "${with_internal_prefix+set}" = set; then
5656 withval=$with_internal_prefix;
5661 INTERNAL_PREFIX=$withval
5665 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5666 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5667 if test "${lt_cv_path_NM+set}" = set; then
5668 echo $ECHO_N "(cached) $ECHO_C" >&6
5670 if test -n "$NM"; then
5671 # Let the user override the test.
5674 lt_nm_to_check="${ac_tool_prefix}nm"
5675 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5676 lt_nm_to_check="$lt_nm_to_check nm"
5678 for lt_tmp_nm in $lt_nm_to_check; do
5679 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5680 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5682 test -z "$ac_dir" && ac_dir=.
5683 tmp_nm="$ac_dir/$lt_tmp_nm"
5684 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5685 # Check to see if the nm accepts a BSD-compat flag.
5686 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5687 # nm: unknown option "B" ignored
5688 # Tru64's nm complains that /dev/null is an invalid object file
5689 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5690 */dev/null* | *'Invalid file or object type'*)
5691 lt_cv_path_NM="$tmp_nm -B"
5695 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5697 lt_cv_path_NM="$tmp_nm -p"
5701 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5702 continue # so that we can try to find one that supports BSD flags
5711 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5714 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5715 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5720 { echo "$as_me:$LINENO: checking for GNU make" >&5
5721 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5722 if test "${llvm_cv_gnu_make_command+set}" = set; then
5723 echo $ECHO_N "(cached) $ECHO_C" >&6
5725 llvm_cv_gnu_make_command=''
5726 for a in "$MAKE" make gmake gnumake ; do
5727 if test -z "$a" ; then continue ; fi ;
5728 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5730 llvm_cv_gnu_make_command=$a ;
5735 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5736 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5737 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5741 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5742 echo "${ECHO_T}\"Not found\"" >&6; };
5746 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5747 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5749 if test "$LN_S" = "ln -s"; then
5750 { echo "$as_me:$LINENO: result: yes" >&5
5751 echo "${ECHO_T}yes" >&6; }
5753 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5754 echo "${ECHO_T}no, using $LN_S" >&6; }
5757 # Extract the first word of "cmp", so it can be a program name with args.
5758 set dummy cmp; ac_word=$2
5759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5761 if test "${ac_cv_path_CMP+set}" = set; then
5762 echo $ECHO_N "(cached) $ECHO_C" >&6
5766 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773 test -z "$as_dir" && as_dir=.
5774 for ac_exec_ext in '' $ac_executable_extensions; do
5775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5776 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5784 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5789 if test -n "$CMP"; then
5790 { echo "$as_me:$LINENO: result: $CMP" >&5
5791 echo "${ECHO_T}$CMP" >&6; }
5793 { echo "$as_me:$LINENO: result: no" >&5
5794 echo "${ECHO_T}no" >&6; }
5798 # Extract the first word of "cp", so it can be a program name with args.
5799 set dummy cp; ac_word=$2
5800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5802 if test "${ac_cv_path_CP+set}" = set; then
5803 echo $ECHO_N "(cached) $ECHO_C" >&6
5807 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5814 test -z "$as_dir" && as_dir=.
5815 for ac_exec_ext in '' $ac_executable_extensions; do
5816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5817 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5825 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5830 if test -n "$CP"; then
5831 { echo "$as_me:$LINENO: result: $CP" >&5
5832 echo "${ECHO_T}$CP" >&6; }
5834 { echo "$as_me:$LINENO: result: no" >&5
5835 echo "${ECHO_T}no" >&6; }
5839 # Extract the first word of "date", so it can be a program name with args.
5840 set dummy date; ac_word=$2
5841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5843 if test "${ac_cv_path_DATE+set}" = set; then
5844 echo $ECHO_N "(cached) $ECHO_C" >&6
5848 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855 test -z "$as_dir" && as_dir=.
5856 for ac_exec_ext in '' $ac_executable_extensions; do
5857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5858 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5866 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5870 DATE=$ac_cv_path_DATE
5871 if test -n "$DATE"; then
5872 { echo "$as_me:$LINENO: result: $DATE" >&5
5873 echo "${ECHO_T}$DATE" >&6; }
5875 { echo "$as_me:$LINENO: result: no" >&5
5876 echo "${ECHO_T}no" >&6; }
5880 # Extract the first word of "find", so it can be a program name with args.
5881 set dummy find; ac_word=$2
5882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5884 if test "${ac_cv_path_FIND+set}" = set; then
5885 echo $ECHO_N "(cached) $ECHO_C" >&6
5889 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5896 test -z "$as_dir" && as_dir=.
5897 for ac_exec_ext in '' $ac_executable_extensions; do
5898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5899 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5907 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5911 FIND=$ac_cv_path_FIND
5912 if test -n "$FIND"; then
5913 { echo "$as_me:$LINENO: result: $FIND" >&5
5914 echo "${ECHO_T}$FIND" >&6; }
5916 { echo "$as_me:$LINENO: result: no" >&5
5917 echo "${ECHO_T}no" >&6; }
5921 # Extract the first word of "grep", so it can be a program name with args.
5922 set dummy grep; ac_word=$2
5923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5925 if test "${ac_cv_path_GREP+set}" = set; then
5926 echo $ECHO_N "(cached) $ECHO_C" >&6
5930 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937 test -z "$as_dir" && as_dir=.
5938 for ac_exec_ext in '' $ac_executable_extensions; do
5939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5940 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5948 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5952 GREP=$ac_cv_path_GREP
5953 if test -n "$GREP"; then
5954 { echo "$as_me:$LINENO: result: $GREP" >&5
5955 echo "${ECHO_T}$GREP" >&6; }
5957 { echo "$as_me:$LINENO: result: no" >&5
5958 echo "${ECHO_T}no" >&6; }
5962 # Extract the first word of "mkdir", so it can be a program name with args.
5963 set dummy mkdir; ac_word=$2
5964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5966 if test "${ac_cv_path_MKDIR+set}" = set; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
5971 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5978 test -z "$as_dir" && as_dir=.
5979 for ac_exec_ext in '' $ac_executable_extensions; do
5980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5981 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5989 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5993 MKDIR=$ac_cv_path_MKDIR
5994 if test -n "$MKDIR"; then
5995 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5996 echo "${ECHO_T}$MKDIR" >&6; }
5998 { echo "$as_me:$LINENO: result: no" >&5
5999 echo "${ECHO_T}no" >&6; }
6003 # Extract the first word of "mv", so it can be a program name with args.
6004 set dummy mv; ac_word=$2
6005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6007 if test "${ac_cv_path_MV+set}" = set; then
6008 echo $ECHO_N "(cached) $ECHO_C" >&6
6012 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6019 test -z "$as_dir" && as_dir=.
6020 for ac_exec_ext in '' $ac_executable_extensions; do
6021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6022 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6030 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6035 if test -n "$MV"; then
6036 { echo "$as_me:$LINENO: result: $MV" >&5
6037 echo "${ECHO_T}$MV" >&6; }
6039 { echo "$as_me:$LINENO: result: no" >&5
6040 echo "${ECHO_T}no" >&6; }
6044 if test -n "$ac_tool_prefix"; then
6045 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6046 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6049 if test "${ac_cv_prog_RANLIB+set}" = set; then
6050 echo $ECHO_N "(cached) $ECHO_C" >&6
6052 if test -n "$RANLIB"; then
6053 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059 test -z "$as_dir" && as_dir=.
6060 for ac_exec_ext in '' $ac_executable_extensions; do
6061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6062 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6072 RANLIB=$ac_cv_prog_RANLIB
6073 if test -n "$RANLIB"; then
6074 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6075 echo "${ECHO_T}$RANLIB" >&6; }
6077 { echo "$as_me:$LINENO: result: no" >&5
6078 echo "${ECHO_T}no" >&6; }
6083 if test -z "$ac_cv_prog_RANLIB"; then
6084 ac_ct_RANLIB=$RANLIB
6085 # Extract the first word of "ranlib", so it can be a program name with args.
6086 set dummy ranlib; ac_word=$2
6087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6089 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6090 echo $ECHO_N "(cached) $ECHO_C" >&6
6092 if test -n "$ac_ct_RANLIB"; then
6093 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6099 test -z "$as_dir" && as_dir=.
6100 for ac_exec_ext in '' $ac_executable_extensions; do
6101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6102 ac_cv_prog_ac_ct_RANLIB="ranlib"
6103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6112 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6113 if test -n "$ac_ct_RANLIB"; then
6114 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6115 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6117 { echo "$as_me:$LINENO: result: no" >&5
6118 echo "${ECHO_T}no" >&6; }
6121 if test "x$ac_ct_RANLIB" = x; then
6124 case $cross_compiling:$ac_tool_warned in
6126 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6127 whose name does not start with the host triplet. If you think this
6128 configuration is useful to you, please write to autoconf@gnu.org." >&5
6129 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6130 whose name does not start with the host triplet. If you think this
6131 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6132 ac_tool_warned=yes ;;
6134 RANLIB=$ac_ct_RANLIB
6137 RANLIB="$ac_cv_prog_RANLIB"
6140 if test -n "$ac_tool_prefix"; then
6141 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6142 set dummy ${ac_tool_prefix}ar; ac_word=$2
6143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6145 if test "${ac_cv_prog_AR+set}" = set; then
6146 echo $ECHO_N "(cached) $ECHO_C" >&6
6148 if test -n "$AR"; then
6149 ac_cv_prog_AR="$AR" # Let the user override the test.
6151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6155 test -z "$as_dir" && as_dir=.
6156 for ac_exec_ext in '' $ac_executable_extensions; do
6157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6158 ac_cv_prog_AR="${ac_tool_prefix}ar"
6159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6169 if test -n "$AR"; then
6170 { echo "$as_me:$LINENO: result: $AR" >&5
6171 echo "${ECHO_T}$AR" >&6; }
6173 { echo "$as_me:$LINENO: result: no" >&5
6174 echo "${ECHO_T}no" >&6; }
6179 if test -z "$ac_cv_prog_AR"; then
6181 # Extract the first word of "ar", so it can be a program name with args.
6182 set dummy ar; ac_word=$2
6183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6185 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6186 echo $ECHO_N "(cached) $ECHO_C" >&6
6188 if test -n "$ac_ct_AR"; then
6189 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195 test -z "$as_dir" && as_dir=.
6196 for ac_exec_ext in '' $ac_executable_extensions; do
6197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6198 ac_cv_prog_ac_ct_AR="ar"
6199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6208 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6209 if test -n "$ac_ct_AR"; then
6210 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6211 echo "${ECHO_T}$ac_ct_AR" >&6; }
6213 { echo "$as_me:$LINENO: result: no" >&5
6214 echo "${ECHO_T}no" >&6; }
6217 if test "x$ac_ct_AR" = x; then
6220 case $cross_compiling:$ac_tool_warned in
6222 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6223 whose name does not start with the host triplet. If you think this
6224 configuration is useful to you, please write to autoconf@gnu.org." >&5
6225 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6226 whose name does not start with the host triplet. If you think this
6227 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6228 ac_tool_warned=yes ;;
6236 # Extract the first word of "rm", so it can be a program name with args.
6237 set dummy rm; ac_word=$2
6238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6240 if test "${ac_cv_path_RM+set}" = set; then
6241 echo $ECHO_N "(cached) $ECHO_C" >&6
6245 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6252 test -z "$as_dir" && as_dir=.
6253 for ac_exec_ext in '' $ac_executable_extensions; do
6254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6255 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6263 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6268 if test -n "$RM"; then
6269 { echo "$as_me:$LINENO: result: $RM" >&5
6270 echo "${ECHO_T}$RM" >&6; }
6272 { echo "$as_me:$LINENO: result: no" >&5
6273 echo "${ECHO_T}no" >&6; }
6277 # Extract the first word of "sed", so it can be a program name with args.
6278 set dummy sed; ac_word=$2
6279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6281 if test "${ac_cv_path_SED+set}" = set; then
6282 echo $ECHO_N "(cached) $ECHO_C" >&6
6286 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6293 test -z "$as_dir" && as_dir=.
6294 for ac_exec_ext in '' $ac_executable_extensions; do
6295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6296 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6304 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6309 if test -n "$SED"; then
6310 { echo "$as_me:$LINENO: result: $SED" >&5
6311 echo "${ECHO_T}$SED" >&6; }
6313 { echo "$as_me:$LINENO: result: no" >&5
6314 echo "${ECHO_T}no" >&6; }
6318 # Extract the first word of "tar", so it can be a program name with args.
6319 set dummy tar; ac_word=$2
6320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6322 if test "${ac_cv_path_TAR+set}" = set; then
6323 echo $ECHO_N "(cached) $ECHO_C" >&6
6327 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334 test -z "$as_dir" && as_dir=.
6335 for ac_exec_ext in '' $ac_executable_extensions; do
6336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6337 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6345 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6350 if test -n "$TAR"; then
6351 { echo "$as_me:$LINENO: result: $TAR" >&5
6352 echo "${ECHO_T}$TAR" >&6; }
6354 { echo "$as_me:$LINENO: result: no" >&5
6355 echo "${ECHO_T}no" >&6; }
6359 # Extract the first word of "pwd", so it can be a program name with args.
6360 set dummy pwd; ac_word=$2
6361 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6363 if test "${ac_cv_path_BINPWD+set}" = set; then
6364 echo $ECHO_N "(cached) $ECHO_C" >&6
6368 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375 test -z "$as_dir" && as_dir=.
6376 for ac_exec_ext in '' $ac_executable_extensions; do
6377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6378 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6386 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6390 BINPWD=$ac_cv_path_BINPWD
6391 if test -n "$BINPWD"; then
6392 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6393 echo "${ECHO_T}$BINPWD" >&6; }
6395 { echo "$as_me:$LINENO: result: no" >&5
6396 echo "${ECHO_T}no" >&6; }
6401 # Extract the first word of "Graphviz", so it can be a program name with args.
6402 set dummy Graphviz; ac_word=$2
6403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6405 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6406 echo $ECHO_N "(cached) $ECHO_C" >&6
6410 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417 test -z "$as_dir" && as_dir=.
6418 for ac_exec_ext in '' $ac_executable_extensions; do
6419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6420 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6428 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6432 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6433 if test -n "$GRAPHVIZ"; then
6434 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6435 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6437 { echo "$as_me:$LINENO: result: no" >&5
6438 echo "${ECHO_T}no" >&6; }
6442 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6444 cat >>confdefs.h <<\_ACEOF
6445 #define HAVE_GRAPHVIZ 1
6448 if test "$llvm_cv_os_type" = "MingW" ; then
6449 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6452 cat >>confdefs.h <<_ACEOF
6453 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6457 # Extract the first word of "dot", so it can be a program name with args.
6458 set dummy dot; ac_word=$2
6459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6461 if test "${ac_cv_path_DOT+set}" = set; then
6462 echo $ECHO_N "(cached) $ECHO_C" >&6
6466 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6473 test -z "$as_dir" && as_dir=.
6474 for ac_exec_ext in '' $ac_executable_extensions; do
6475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6476 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6484 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6489 if test -n "$DOT"; then
6490 { echo "$as_me:$LINENO: result: $DOT" >&5
6491 echo "${ECHO_T}$DOT" >&6; }
6493 { echo "$as_me:$LINENO: result: no" >&5
6494 echo "${ECHO_T}no" >&6; }
6498 if test "$DOT" != "echo dot" ; then
6500 cat >>confdefs.h <<\_ACEOF
6504 if test "$llvm_cv_os_type" = "MingW" ; then
6505 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6508 cat >>confdefs.h <<_ACEOF
6509 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6513 # Extract the first word of "fdp", so it can be a program name with args.
6514 set dummy fdp; ac_word=$2
6515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6517 if test "${ac_cv_path_FDP+set}" = set; then
6518 echo $ECHO_N "(cached) $ECHO_C" >&6
6522 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6529 test -z "$as_dir" && as_dir=.
6530 for ac_exec_ext in '' $ac_executable_extensions; do
6531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6532 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6540 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6545 if test -n "$FDP"; then
6546 { echo "$as_me:$LINENO: result: $FDP" >&5
6547 echo "${ECHO_T}$FDP" >&6; }
6549 { echo "$as_me:$LINENO: result: no" >&5
6550 echo "${ECHO_T}no" >&6; }
6554 if test "$FDP" != "echo fdp" ; then
6556 cat >>confdefs.h <<\_ACEOF
6560 if test "$llvm_cv_os_type" = "MingW" ; then
6561 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6564 cat >>confdefs.h <<_ACEOF
6565 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6569 # Extract the first word of "neato", so it can be a program name with args.
6570 set dummy neato; ac_word=$2
6571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6573 if test "${ac_cv_path_NEATO+set}" = set; then
6574 echo $ECHO_N "(cached) $ECHO_C" >&6
6578 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585 test -z "$as_dir" && as_dir=.
6586 for ac_exec_ext in '' $ac_executable_extensions; do
6587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6588 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6596 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6600 NEATO=$ac_cv_path_NEATO
6601 if test -n "$NEATO"; then
6602 { echo "$as_me:$LINENO: result: $NEATO" >&5
6603 echo "${ECHO_T}$NEATO" >&6; }
6605 { echo "$as_me:$LINENO: result: no" >&5
6606 echo "${ECHO_T}no" >&6; }
6610 if test "$NEATO" != "echo neato" ; then
6612 cat >>confdefs.h <<\_ACEOF
6613 #define HAVE_NEATO 1
6616 if test "$llvm_cv_os_type" = "MingW" ; then
6617 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6620 cat >>confdefs.h <<_ACEOF
6621 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6625 # Extract the first word of "twopi", so it can be a program name with args.
6626 set dummy twopi; ac_word=$2
6627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6629 if test "${ac_cv_path_TWOPI+set}" = set; then
6630 echo $ECHO_N "(cached) $ECHO_C" >&6
6634 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6641 test -z "$as_dir" && as_dir=.
6642 for ac_exec_ext in '' $ac_executable_extensions; do
6643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6644 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6652 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6656 TWOPI=$ac_cv_path_TWOPI
6657 if test -n "$TWOPI"; then
6658 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6659 echo "${ECHO_T}$TWOPI" >&6; }
6661 { echo "$as_me:$LINENO: result: no" >&5
6662 echo "${ECHO_T}no" >&6; }
6666 if test "$TWOPI" != "echo twopi" ; then
6668 cat >>confdefs.h <<\_ACEOF
6669 #define HAVE_TWOPI 1
6672 if test "$llvm_cv_os_type" = "MingW" ; then
6673 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6676 cat >>confdefs.h <<_ACEOF
6677 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6681 # Extract the first word of "circo", so it can be a program name with args.
6682 set dummy circo; ac_word=$2
6683 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6685 if test "${ac_cv_path_CIRCO+set}" = set; then
6686 echo $ECHO_N "(cached) $ECHO_C" >&6
6690 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6697 test -z "$as_dir" && as_dir=.
6698 for ac_exec_ext in '' $ac_executable_extensions; do
6699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6700 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6708 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6712 CIRCO=$ac_cv_path_CIRCO
6713 if test -n "$CIRCO"; then
6714 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6715 echo "${ECHO_T}$CIRCO" >&6; }
6717 { echo "$as_me:$LINENO: result: no" >&5
6718 echo "${ECHO_T}no" >&6; }
6722 if test "$CIRCO" != "echo circo" ; then
6724 cat >>confdefs.h <<\_ACEOF
6725 #define HAVE_CIRCO 1
6728 if test "$llvm_cv_os_type" = "MingW" ; then
6729 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6732 cat >>confdefs.h <<_ACEOF
6733 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6737 for ac_prog in gv gsview32
6739 # Extract the first word of "$ac_prog", so it can be a program name with args.
6740 set dummy $ac_prog; ac_word=$2
6741 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6743 if test "${ac_cv_path_GV+set}" = set; then
6744 echo $ECHO_N "(cached) $ECHO_C" >&6
6748 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6755 test -z "$as_dir" && as_dir=.
6756 for ac_exec_ext in '' $ac_executable_extensions; do
6757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6758 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6770 if test -n "$GV"; then
6771 { echo "$as_me:$LINENO: result: $GV" >&5
6772 echo "${ECHO_T}$GV" >&6; }
6774 { echo "$as_me:$LINENO: result: no" >&5
6775 echo "${ECHO_T}no" >&6; }
6779 test -n "$GV" && break
6781 test -n "$GV" || GV="echo gv"
6783 if test "$GV" != "echo gv" ; then
6785 cat >>confdefs.h <<\_ACEOF
6789 if test "$llvm_cv_os_type" = "MingW" ; then
6790 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6793 cat >>confdefs.h <<_ACEOF
6794 #define LLVM_PATH_GV "$GV${EXEEXT}"
6798 # Extract the first word of "dotty", so it can be a program name with args.
6799 set dummy dotty; ac_word=$2
6800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6802 if test "${ac_cv_path_DOTTY+set}" = set; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
6807 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6814 test -z "$as_dir" && as_dir=.
6815 for ac_exec_ext in '' $ac_executable_extensions; do
6816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6817 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6825 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6829 DOTTY=$ac_cv_path_DOTTY
6830 if test -n "$DOTTY"; then
6831 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6832 echo "${ECHO_T}$DOTTY" >&6; }
6834 { echo "$as_me:$LINENO: result: no" >&5
6835 echo "${ECHO_T}no" >&6; }
6839 if test "$DOTTY" != "echo dotty" ; then
6841 cat >>confdefs.h <<\_ACEOF
6842 #define HAVE_DOTTY 1
6845 if test "$llvm_cv_os_type" = "MingW" ; then
6846 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6849 cat >>confdefs.h <<_ACEOF
6850 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6854 # Extract the first word of "xdot.py", so it can be a program name with args.
6855 set dummy xdot.py; ac_word=$2
6856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6858 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6859 echo $ECHO_N "(cached) $ECHO_C" >&6
6863 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870 test -z "$as_dir" && as_dir=.
6871 for ac_exec_ext in '' $ac_executable_extensions; do
6872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6873 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6881 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6885 XDOT_PY=$ac_cv_path_XDOT_PY
6886 if test -n "$XDOT_PY"; then
6887 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6888 echo "${ECHO_T}$XDOT_PY" >&6; }
6890 { echo "$as_me:$LINENO: result: no" >&5
6891 echo "${ECHO_T}no" >&6; }
6895 if test "$XDOT_PY" != "echo xdot.py" ; then
6897 cat >>confdefs.h <<\_ACEOF
6898 #define HAVE_XDOT_PY 1
6901 if test "$llvm_cv_os_type" = "MingW" ; then
6902 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6905 cat >>confdefs.h <<_ACEOF
6906 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6911 # Find a good install program. We prefer a C program (faster),
6912 # so one script is as good as another. But avoid the broken or
6913 # incompatible versions:
6914 # SysV /etc/install, /usr/sbin/install
6915 # SunOS /usr/etc/install
6916 # IRIX /sbin/install
6918 # AmigaOS /C/install, which installs bootblocks on floppy discs
6919 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6920 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6921 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6922 # OS/2's system install, which has a completely different semantic
6923 # ./install, which can be erroneously created by make from ./install.sh.
6924 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6925 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6926 if test -z "$INSTALL"; then
6927 if test "${ac_cv_path_install+set}" = set; then
6928 echo $ECHO_N "(cached) $ECHO_C" >&6
6930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934 test -z "$as_dir" && as_dir=.
6935 # Account for people who put trailing slashes in PATH elements.
6937 ./ | .// | /cC/* | \
6938 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6939 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6942 # OSF1 and SCO ODT 3.0 have their own names for install.
6943 # Don't use installbsd from OSF since it installs stuff as root
6945 for ac_prog in ginstall scoinst install; do
6946 for ac_exec_ext in '' $ac_executable_extensions; do
6947 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6948 if test $ac_prog = install &&
6949 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6950 # AIX install. It has an incompatible calling convention.
6952 elif test $ac_prog = install &&
6953 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6954 # program-specific install script used by HP pwplus--don't use.
6957 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6970 if test "${ac_cv_path_install+set}" = set; then
6971 INSTALL=$ac_cv_path_install
6973 # As a last resort, use the slow shell script. Don't cache a
6974 # value for INSTALL within a source directory, because that will
6975 # break other packages using the cache if that directory is
6976 # removed, or if the value is a relative name.
6977 INSTALL=$ac_install_sh
6980 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6981 echo "${ECHO_T}$INSTALL" >&6; }
6983 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6984 # It thinks the first close brace ends the variable substitution.
6985 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6987 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6989 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6992 [\\/$]* | ?:[\\/]* ) ;;
6993 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6996 # Extract the first word of "bzip2", so it can be a program name with args.
6997 set dummy bzip2; ac_word=$2
6998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7000 if test "${ac_cv_path_BZIP2+set}" = set; then
7001 echo $ECHO_N "(cached) $ECHO_C" >&6
7005 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7012 test -z "$as_dir" && as_dir=.
7013 for ac_exec_ext in '' $ac_executable_extensions; do
7014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7015 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7026 BZIP2=$ac_cv_path_BZIP2
7027 if test -n "$BZIP2"; then
7028 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7029 echo "${ECHO_T}$BZIP2" >&6; }
7031 { echo "$as_me:$LINENO: result: no" >&5
7032 echo "${ECHO_T}no" >&6; }
7036 # Extract the first word of "cat", so it can be a program name with args.
7037 set dummy cat; ac_word=$2
7038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7040 if test "${ac_cv_path_CAT+set}" = set; then
7041 echo $ECHO_N "(cached) $ECHO_C" >&6
7045 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7052 test -z "$as_dir" && as_dir=.
7053 for ac_exec_ext in '' $ac_executable_extensions; do
7054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7055 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7067 if test -n "$CAT"; then
7068 { echo "$as_me:$LINENO: result: $CAT" >&5
7069 echo "${ECHO_T}$CAT" >&6; }
7071 { echo "$as_me:$LINENO: result: no" >&5
7072 echo "${ECHO_T}no" >&6; }
7076 # Extract the first word of "doxygen", so it can be a program name with args.
7077 set dummy doxygen; ac_word=$2
7078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7080 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7081 echo $ECHO_N "(cached) $ECHO_C" >&6
7085 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7092 test -z "$as_dir" && as_dir=.
7093 for ac_exec_ext in '' $ac_executable_extensions; do
7094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7095 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7106 DOXYGEN=$ac_cv_path_DOXYGEN
7107 if test -n "$DOXYGEN"; then
7108 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7109 echo "${ECHO_T}$DOXYGEN" >&6; }
7111 { echo "$as_me:$LINENO: result: no" >&5
7112 echo "${ECHO_T}no" >&6; }
7116 # Extract the first word of "gzip", so it can be a program name with args.
7117 set dummy gzip; ac_word=$2
7118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7120 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7121 echo $ECHO_N "(cached) $ECHO_C" >&6
7125 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132 test -z "$as_dir" && as_dir=.
7133 for ac_exec_ext in '' $ac_executable_extensions; do
7134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7135 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7146 GZIPBIN=$ac_cv_path_GZIPBIN
7147 if test -n "$GZIPBIN"; then
7148 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7149 echo "${ECHO_T}$GZIPBIN" >&6; }
7151 { echo "$as_me:$LINENO: result: no" >&5
7152 echo "${ECHO_T}no" >&6; }
7158 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7159 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7161 # Check whether --with-tclinclude was given.
7162 if test "${with_tclinclude+set}" = set; then
7163 withval=$with_tclinclude; with_tclinclude=${withval}
7168 if test "${ac_cv_path_tclsh+set}" = set; then
7169 echo $ECHO_N "(cached) $ECHO_C" >&6
7172 if test x"${with_tclinclude}" != x ; then
7173 if test -f ${with_tclinclude}/tclsh ; then
7174 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7175 elif test -f ${with_tclinclude}/src/tclsh ; then
7176 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7178 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7179 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7180 { (exit 1); exit 1; }; }
7186 if test x"${ac_cv_path_tclsh}" = x ; then
7187 { echo "$as_me:$LINENO: result: none" >&5
7188 echo "${ECHO_T}none" >&6; }
7189 for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
7191 # Extract the first word of "$ac_prog", so it can be a program name with args.
7192 set dummy $ac_prog; ac_word=$2
7193 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7195 if test "${ac_cv_path_TCLSH+set}" = set; then
7196 echo $ECHO_N "(cached) $ECHO_C" >&6
7200 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7207 test -z "$as_dir" && as_dir=.
7208 for ac_exec_ext in '' $ac_executable_extensions; do
7209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7210 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7221 TCLSH=$ac_cv_path_TCLSH
7222 if test -n "$TCLSH"; then
7223 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7224 echo "${ECHO_T}$TCLSH" >&6; }
7226 { echo "$as_me:$LINENO: result: no" >&5
7227 echo "${ECHO_T}no" >&6; }
7231 test -n "$TCLSH" && break
7234 if test x"${TCLSH}" = x ; then
7235 ac_cv_path_tclsh='';
7237 ac_cv_path_tclsh="${TCLSH}";
7240 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7241 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7242 TCLSH="${ac_cv_path_tclsh}"
7246 # Extract the first word of "zip", so it can be a program name with args.
7247 set dummy zip; ac_word=$2
7248 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7250 if test "${ac_cv_path_ZIP+set}" = set; then
7251 echo $ECHO_N "(cached) $ECHO_C" >&6
7255 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7262 test -z "$as_dir" && as_dir=.
7263 for ac_exec_ext in '' $ac_executable_extensions; do
7264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7265 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7277 if test -n "$ZIP"; then
7278 { echo "$as_me:$LINENO: result: $ZIP" >&5
7279 echo "${ECHO_T}$ZIP" >&6; }
7281 { echo "$as_me:$LINENO: result: no" >&5
7282 echo "${ECHO_T}no" >&6; }
7286 for ac_prog in ocamlc
7288 # Extract the first word of "$ac_prog", so it can be a program name with args.
7289 set dummy $ac_prog; ac_word=$2
7290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7292 if test "${ac_cv_path_OCAMLC+set}" = set; then
7293 echo $ECHO_N "(cached) $ECHO_C" >&6
7297 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304 test -z "$as_dir" && as_dir=.
7305 for ac_exec_ext in '' $ac_executable_extensions; do
7306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7307 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7318 OCAMLC=$ac_cv_path_OCAMLC
7319 if test -n "$OCAMLC"; then
7320 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7321 echo "${ECHO_T}$OCAMLC" >&6; }
7323 { echo "$as_me:$LINENO: result: no" >&5
7324 echo "${ECHO_T}no" >&6; }
7328 test -n "$OCAMLC" && break
7331 for ac_prog in ocamlopt
7333 # Extract the first word of "$ac_prog", so it can be a program name with args.
7334 set dummy $ac_prog; ac_word=$2
7335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7337 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7338 echo $ECHO_N "(cached) $ECHO_C" >&6
7342 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7349 test -z "$as_dir" && as_dir=.
7350 for ac_exec_ext in '' $ac_executable_extensions; do
7351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7352 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7363 OCAMLOPT=$ac_cv_path_OCAMLOPT
7364 if test -n "$OCAMLOPT"; then
7365 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7366 echo "${ECHO_T}$OCAMLOPT" >&6; }
7368 { echo "$as_me:$LINENO: result: no" >&5
7369 echo "${ECHO_T}no" >&6; }
7373 test -n "$OCAMLOPT" && break
7376 for ac_prog in ocamldep
7378 # Extract the first word of "$ac_prog", so it can be a program name with args.
7379 set dummy $ac_prog; ac_word=$2
7380 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7382 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7383 echo $ECHO_N "(cached) $ECHO_C" >&6
7387 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7394 test -z "$as_dir" && as_dir=.
7395 for ac_exec_ext in '' $ac_executable_extensions; do
7396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7397 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7408 OCAMLDEP=$ac_cv_path_OCAMLDEP
7409 if test -n "$OCAMLDEP"; then
7410 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7411 echo "${ECHO_T}$OCAMLDEP" >&6; }
7413 { echo "$as_me:$LINENO: result: no" >&5
7414 echo "${ECHO_T}no" >&6; }
7418 test -n "$OCAMLDEP" && break
7421 for ac_prog in ocamldoc
7423 # Extract the first word of "$ac_prog", so it can be a program name with args.
7424 set dummy $ac_prog; ac_word=$2
7425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7427 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7428 echo $ECHO_N "(cached) $ECHO_C" >&6
7432 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7439 test -z "$as_dir" && as_dir=.
7440 for ac_exec_ext in '' $ac_executable_extensions; do
7441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7442 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7453 OCAMLDOC=$ac_cv_path_OCAMLDOC
7454 if test -n "$OCAMLDOC"; then
7455 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7456 echo "${ECHO_T}$OCAMLDOC" >&6; }
7458 { echo "$as_me:$LINENO: result: no" >&5
7459 echo "${ECHO_T}no" >&6; }
7463 test -n "$OCAMLDOC" && break
7467 { echo "$as_me:$LINENO: checking for linker version" >&5
7468 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7469 if test "${llvm_cv_link_version+set}" = set; then
7470 echo $ECHO_N "(cached) $ECHO_C" >&6
7473 version_string="$(ld -v 2>&1 | head -1)"
7476 if (echo "$version_string" | grep -q "ld64"); then
7477 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7479 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7483 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7484 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7486 cat >>confdefs.h <<_ACEOF
7487 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7492 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7493 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7494 if test "${llvm_cv_link_use_r+set}" = set; then
7495 echo $ECHO_N "(cached) $ECHO_C" >&6
7498 ac_cpp='$CPP $CPPFLAGS'
7499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7504 CFLAGS="$CFLAGS -Wl,-R."
7505 cat >conftest.$ac_ext <<_ACEOF
7508 cat confdefs.h >>conftest.$ac_ext
7509 cat >>conftest.$ac_ext <<_ACEOF
7510 /* end confdefs.h. */
7520 rm -f conftest.$ac_objext conftest$ac_exeext
7521 if { (ac_try="$ac_link"
7523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7524 *) ac_try_echo=$ac_try;;
7526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7527 (eval "$ac_link") 2>conftest.er1
7529 grep -v '^ *+' conftest.er1 >conftest.err
7531 cat conftest.err >&5
7532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533 (exit $ac_status); } &&
7534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7535 { (case "(($ac_try" in
7536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7537 *) ac_try_echo=$ac_try;;
7539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7540 (eval "$ac_try") 2>&5
7542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543 (exit $ac_status); }; } &&
7544 { ac_try='test -s conftest$ac_exeext'
7545 { (case "(($ac_try" in
7546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7547 *) ac_try_echo=$ac_try;;
7549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7550 (eval "$ac_try") 2>&5
7552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553 (exit $ac_status); }; }; then
7554 llvm_cv_link_use_r=yes
7556 echo "$as_me: failed program was:" >&5
7557 sed 's/^/| /' conftest.$ac_ext >&5
7559 llvm_cv_link_use_r=no
7562 rm -f core conftest.err conftest.$ac_objext \
7563 conftest$ac_exeext conftest.$ac_ext
7566 ac_cpp='$CPP $CPPFLAGS'
7567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7573 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7574 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7575 if test "$llvm_cv_link_use_r" = yes ; then
7577 cat >>confdefs.h <<\_ACEOF
7578 #define HAVE_LINK_R 1
7584 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7585 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7586 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7590 ac_cpp='$CPP $CPPFLAGS'
7591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7596 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7597 cat >conftest.$ac_ext <<_ACEOF
7600 cat confdefs.h >>conftest.$ac_ext
7601 cat >>conftest.$ac_ext <<_ACEOF
7602 /* end confdefs.h. */
7612 rm -f conftest.$ac_objext conftest$ac_exeext
7613 if { (ac_try="$ac_link"
7615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7616 *) ac_try_echo=$ac_try;;
7618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7619 (eval "$ac_link") 2>conftest.er1
7621 grep -v '^ *+' conftest.er1 >conftest.err
7623 cat conftest.err >&5
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); } &&
7626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7627 { (case "(($ac_try" in
7628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7629 *) ac_try_echo=$ac_try;;
7631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7632 (eval "$ac_try") 2>&5
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); }; } &&
7636 { ac_try='test -s conftest$ac_exeext'
7637 { (case "(($ac_try" in
7638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7639 *) ac_try_echo=$ac_try;;
7641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7642 (eval "$ac_try") 2>&5
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); }; }; then
7646 llvm_cv_link_use_export_dynamic=yes
7648 echo "$as_me: failed program was:" >&5
7649 sed 's/^/| /' conftest.$ac_ext >&5
7651 llvm_cv_link_use_export_dynamic=no
7654 rm -f core conftest.err conftest.$ac_objext \
7655 conftest$ac_exeext conftest.$ac_ext
7658 ac_cpp='$CPP $CPPFLAGS'
7659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7665 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7666 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7667 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7669 cat >>confdefs.h <<\_ACEOF
7670 #define HAVE_LINK_EXPORT_DYNAMIC 1
7676 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7677 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7678 if test "${llvm_cv_link_use_version_script+set}" = set; then
7679 echo $ECHO_N "(cached) $ECHO_C" >&6
7682 ac_cpp='$CPP $CPPFLAGS'
7683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7689 # The following code is from the autoconf manual,
7690 # "11.13: Limitations of Usual Tools".
7691 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7692 # Use mktemp if possible; otherwise fall back on mkdir,
7693 # with $RANDOM to make collisions less likely.
7697 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7699 test -n "$tmp" && test -d "$tmp"
7701 tmp=$TMPDIR/foo$$-$RANDOM
7702 (umask 077 && mkdir "$tmp")
7705 echo "{" > "$tmp/export.map"
7706 echo " global: main;" >> "$tmp/export.map"
7707 echo " local: *;" >> "$tmp/export.map"
7708 echo "};" >> "$tmp/export.map"
7710 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7711 cat >conftest.$ac_ext <<_ACEOF
7714 cat confdefs.h >>conftest.$ac_ext
7715 cat >>conftest.$ac_ext <<_ACEOF
7716 /* end confdefs.h. */
7726 rm -f conftest.$ac_objext conftest$ac_exeext
7727 if { (ac_try="$ac_link"
7729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7730 *) ac_try_echo=$ac_try;;
7732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7733 (eval "$ac_link") 2>conftest.er1
7735 grep -v '^ *+' conftest.er1 >conftest.err
7737 cat conftest.err >&5
7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); } &&
7740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7741 { (case "(($ac_try" in
7742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7743 *) ac_try_echo=$ac_try;;
7745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7746 (eval "$ac_try") 2>&5
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); }; } &&
7750 { ac_try='test -s conftest$ac_exeext'
7751 { (case "(($ac_try" in
7752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7753 *) ac_try_echo=$ac_try;;
7755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7756 (eval "$ac_try") 2>&5
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); }; }; then
7760 llvm_cv_link_use_version_script=yes
7762 echo "$as_me: failed program was:" >&5
7763 sed 's/^/| /' conftest.$ac_ext >&5
7765 llvm_cv_link_use_version_script=no
7768 rm -f core conftest.err conftest.$ac_objext \
7769 conftest$ac_exeext conftest.$ac_ext
7770 rm "$tmp/export.map"
7774 ac_cpp='$CPP $CPPFLAGS'
7775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7781 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7782 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7783 if test "$llvm_cv_link_use_version_script" = yes ; then
7784 HAVE_LINK_VERSION_SCRIPT=1
7791 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7792 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7793 if test "${ac_cv_c_const+set}" = set; then
7794 echo $ECHO_N "(cached) $ECHO_C" >&6
7796 cat >conftest.$ac_ext <<_ACEOF
7799 cat confdefs.h >>conftest.$ac_ext
7800 cat >>conftest.$ac_ext <<_ACEOF
7801 /* end confdefs.h. */
7806 /* FIXME: Include the comments suggested by Paul. */
7808 /* Ultrix mips cc rejects this. */
7809 typedef int charset[2];
7811 /* SunOS 4.1.1 cc rejects this. */
7812 char const *const *ccp;
7814 /* NEC SVR4.0.2 mips cc rejects this. */
7815 struct point {int x, y;};
7816 static struct point const zero = {0,0};
7817 /* AIX XL C 1.02.0.0 rejects this.
7818 It does not let you subtract one const X* pointer from another in
7819 an arm of an if-expression whose if-part is not a constant
7821 const char *g = "string";
7822 ccp = &g + (g ? g-g : 0);
7823 /* HPUX 7.0 cc rejects these. */
7826 ccp = (char const *const *) p;
7827 { /* SCO 3.2v4 cc rejects this. */
7829 char const *s = 0 ? (char *) 0 : (char const *) 0;
7834 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7836 const int *foo = &x[0];
7839 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7840 typedef const int *iptr;
7844 { /* AIX XL C 1.02.0.0 rejects this saying
7845 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7846 struct s { int j; const int *ap[3]; };
7847 struct s *b; b->j = 5;
7849 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7853 return !x[0] && !zero.x;
7860 rm -f conftest.$ac_objext
7861 if { (ac_try="$ac_compile"
7863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7864 *) ac_try_echo=$ac_try;;
7866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7867 (eval "$ac_compile") 2>conftest.er1
7869 grep -v '^ *+' conftest.er1 >conftest.err
7871 cat conftest.err >&5
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); } &&
7874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7875 { (case "(($ac_try" in
7876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7877 *) ac_try_echo=$ac_try;;
7879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7880 (eval "$ac_try") 2>&5
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); }; } &&
7884 { ac_try='test -s conftest.$ac_objext'
7885 { (case "(($ac_try" in
7886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7887 *) ac_try_echo=$ac_try;;
7889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7890 (eval "$ac_try") 2>&5
7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); }; }; then
7896 echo "$as_me: failed program was:" >&5
7897 sed 's/^/| /' conftest.$ac_ext >&5
7902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7904 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7905 echo "${ECHO_T}$ac_cv_c_const" >&6; }
7906 if test $ac_cv_c_const = no; then
7908 cat >>confdefs.h <<\_ACEOF
7920 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7921 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7922 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7923 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
7924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7925 echo $ECHO_N "(cached) $ECHO_C" >&6
7927 cat >conftest.$ac_ext <<_ACEOF
7930 cat confdefs.h >>conftest.$ac_ext
7931 cat >>conftest.$ac_ext <<_ACEOF
7932 /* end confdefs.h. */
7933 #include <sys/types.h>
7945 rm -f conftest.$ac_objext
7946 if { (ac_try="$ac_compile"
7948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7949 *) ac_try_echo=$ac_try;;
7951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7952 (eval "$ac_compile") 2>conftest.er1
7954 grep -v '^ *+' conftest.er1 >conftest.err
7956 cat conftest.err >&5
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); } &&
7959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7960 { (case "(($ac_try" in
7961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7962 *) ac_try_echo=$ac_try;;
7964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7965 (eval "$ac_try") 2>&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); }; } &&
7969 { ac_try='test -s conftest.$ac_objext'
7970 { (case "(($ac_try" in
7971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7972 *) ac_try_echo=$ac_try;;
7974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7975 (eval "$ac_try") 2>&5
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); }; }; then
7979 eval "$as_ac_Header=yes"
7981 echo "$as_me: failed program was:" >&5
7982 sed 's/^/| /' conftest.$ac_ext >&5
7984 eval "$as_ac_Header=no"
7987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7989 ac_res=`eval echo '${'$as_ac_Header'}'`
7990 { echo "$as_me:$LINENO: result: $ac_res" >&5
7991 echo "${ECHO_T}$ac_res" >&6; }
7992 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7993 cat >>confdefs.h <<_ACEOF
7994 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7997 ac_header_dirent=$ac_hdr; break
8001 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8002 if test $ac_header_dirent = dirent.h; then
8003 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8004 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8005 if test "${ac_cv_search_opendir+set}" = set; then
8006 echo $ECHO_N "(cached) $ECHO_C" >&6
8008 ac_func_search_save_LIBS=$LIBS
8009 cat >conftest.$ac_ext <<_ACEOF
8012 cat confdefs.h >>conftest.$ac_ext
8013 cat >>conftest.$ac_ext <<_ACEOF
8014 /* end confdefs.h. */
8016 /* Override any GCC internal prototype to avoid an error.
8017 Use char because int might match the return type of a GCC
8018 builtin and then its argument prototype would still apply. */
8031 for ac_lib in '' dir; do
8032 if test -z "$ac_lib"; then
8033 ac_res="none required"
8036 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8038 rm -f conftest.$ac_objext conftest$ac_exeext
8039 if { (ac_try="$ac_link"
8041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8042 *) ac_try_echo=$ac_try;;
8044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8045 (eval "$ac_link") 2>conftest.er1
8047 grep -v '^ *+' conftest.er1 >conftest.err
8049 cat conftest.err >&5
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); } &&
8052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8053 { (case "(($ac_try" in
8054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8055 *) ac_try_echo=$ac_try;;
8057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8058 (eval "$ac_try") 2>&5
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); }; } &&
8062 { ac_try='test -s conftest$ac_exeext'
8063 { (case "(($ac_try" in
8064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8065 *) ac_try_echo=$ac_try;;
8067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8068 (eval "$ac_try") 2>&5
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); }; }; then
8072 ac_cv_search_opendir=$ac_res
8074 echo "$as_me: failed program was:" >&5
8075 sed 's/^/| /' conftest.$ac_ext >&5
8080 rm -f core conftest.err conftest.$ac_objext \
8082 if test "${ac_cv_search_opendir+set}" = set; then
8086 if test "${ac_cv_search_opendir+set}" = set; then
8089 ac_cv_search_opendir=no
8092 LIBS=$ac_func_search_save_LIBS
8094 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8095 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8096 ac_res=$ac_cv_search_opendir
8097 if test "$ac_res" != no; then
8098 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8103 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8104 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8105 if test "${ac_cv_search_opendir+set}" = set; then
8106 echo $ECHO_N "(cached) $ECHO_C" >&6
8108 ac_func_search_save_LIBS=$LIBS
8109 cat >conftest.$ac_ext <<_ACEOF
8112 cat confdefs.h >>conftest.$ac_ext
8113 cat >>conftest.$ac_ext <<_ACEOF
8114 /* end confdefs.h. */
8116 /* Override any GCC internal prototype to avoid an error.
8117 Use char because int might match the return type of a GCC
8118 builtin and then its argument prototype would still apply. */
8131 for ac_lib in '' x; do
8132 if test -z "$ac_lib"; then
8133 ac_res="none required"
8136 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8138 rm -f conftest.$ac_objext conftest$ac_exeext
8139 if { (ac_try="$ac_link"
8141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8142 *) ac_try_echo=$ac_try;;
8144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8145 (eval "$ac_link") 2>conftest.er1
8147 grep -v '^ *+' conftest.er1 >conftest.err
8149 cat conftest.err >&5
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); } &&
8152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8153 { (case "(($ac_try" in
8154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8155 *) ac_try_echo=$ac_try;;
8157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8158 (eval "$ac_try") 2>&5
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); }; } &&
8162 { ac_try='test -s conftest$ac_exeext'
8163 { (case "(($ac_try" in
8164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8165 *) ac_try_echo=$ac_try;;
8167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8168 (eval "$ac_try") 2>&5
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); }; }; then
8172 ac_cv_search_opendir=$ac_res
8174 echo "$as_me: failed program was:" >&5
8175 sed 's/^/| /' conftest.$ac_ext >&5
8180 rm -f core conftest.err conftest.$ac_objext \
8182 if test "${ac_cv_search_opendir+set}" = set; then
8186 if test "${ac_cv_search_opendir+set}" = set; then
8189 ac_cv_search_opendir=no
8192 LIBS=$ac_func_search_save_LIBS
8194 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8195 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8196 ac_res=$ac_cv_search_opendir
8197 if test "$ac_res" != no; then
8198 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8205 for ac_header in dlfcn.h
8207 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8209 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8212 echo $ECHO_N "(cached) $ECHO_C" >&6
8214 ac_res=`eval echo '${'$as_ac_Header'}'`
8215 { echo "$as_me:$LINENO: result: $ac_res" >&5
8216 echo "${ECHO_T}$ac_res" >&6; }
8218 # Is the header compilable?
8219 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8220 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8221 cat >conftest.$ac_ext <<_ACEOF
8224 cat confdefs.h >>conftest.$ac_ext
8225 cat >>conftest.$ac_ext <<_ACEOF
8226 /* end confdefs.h. */
8227 $ac_includes_default
8228 #include <$ac_header>
8230 rm -f conftest.$ac_objext
8231 if { (ac_try="$ac_compile"
8233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8234 *) ac_try_echo=$ac_try;;
8236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8237 (eval "$ac_compile") 2>conftest.er1
8239 grep -v '^ *+' conftest.er1 >conftest.err
8241 cat conftest.err >&5
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); } &&
8244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8245 { (case "(($ac_try" in
8246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8247 *) ac_try_echo=$ac_try;;
8249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8250 (eval "$ac_try") 2>&5
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); }; } &&
8254 { ac_try='test -s conftest.$ac_objext'
8255 { (case "(($ac_try" in
8256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8257 *) ac_try_echo=$ac_try;;
8259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8260 (eval "$ac_try") 2>&5
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); }; }; then
8264 ac_header_compiler=yes
8266 echo "$as_me: failed program was:" >&5
8267 sed 's/^/| /' conftest.$ac_ext >&5
8269 ac_header_compiler=no
8272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8273 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8274 echo "${ECHO_T}$ac_header_compiler" >&6; }
8276 # Is the header present?
8277 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8278 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8279 cat >conftest.$ac_ext <<_ACEOF
8282 cat confdefs.h >>conftest.$ac_ext
8283 cat >>conftest.$ac_ext <<_ACEOF
8284 /* end confdefs.h. */
8285 #include <$ac_header>
8287 if { (ac_try="$ac_cpp conftest.$ac_ext"
8289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8290 *) ac_try_echo=$ac_try;;
8292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8295 grep -v '^ *+' conftest.er1 >conftest.err
8297 cat conftest.err >&5
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); } >/dev/null; then
8300 if test -s conftest.err; then
8301 ac_cpp_err=$ac_c_preproc_warn_flag
8302 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8309 if test -z "$ac_cpp_err"; then
8310 ac_header_preproc=yes
8312 echo "$as_me: failed program was:" >&5
8313 sed 's/^/| /' conftest.$ac_ext >&5
8315 ac_header_preproc=no
8318 rm -f conftest.err conftest.$ac_ext
8319 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8320 echo "${ECHO_T}$ac_header_preproc" >&6; }
8322 # So? What about this header?
8323 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8325 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8326 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8327 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8328 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8329 ac_header_preproc=yes
8332 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8333 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8334 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8335 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8336 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8337 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8338 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8339 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8341 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8342 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8343 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8345 ## ------------------------------------ ##
8346 ## Report this to http://llvm.org/bugs/ ##
8347 ## ------------------------------------ ##
8349 ) | sed "s/^/$as_me: WARNING: /" >&2
8352 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8355 echo $ECHO_N "(cached) $ECHO_C" >&6
8357 eval "$as_ac_Header=\$ac_header_preproc"
8359 ac_res=`eval echo '${'$as_ac_Header'}'`
8360 { echo "$as_me:$LINENO: result: $ac_res" >&5
8361 echo "${ECHO_T}$ac_res" >&6; }
8364 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8365 cat >>confdefs.h <<_ACEOF
8366 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8373 # Check whether --enable-ltdl-install was given.
8374 if test "${enable_ltdl_install+set}" = set; then
8375 enableval=$enable_ltdl_install;
8381 if test x"${enable_ltdl_install-no}" != xno; then
8383 INSTALL_LTDL_FALSE='#'
8385 INSTALL_LTDL_TRUE='#'
8391 if test x"${enable_ltdl_convenience-no}" != xno; then
8392 CONVENIENCE_LTDL_TRUE=
8393 CONVENIENCE_LTDL_FALSE='#'
8395 CONVENIENCE_LTDL_TRUE='#'
8396 CONVENIENCE_LTDL_FALSE=
8400 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8401 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8403 libname_spec='lib$name'
8411 shlibpath_overrides_runpath=unknown
8413 dynamic_linker="$host_os ld.so"
8414 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8415 if test "$GCC" = yes; then
8416 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8417 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8418 # if the path contains ";" then we assume it to be the separator
8419 # otherwise default to the standard path separator (i.e. ":") - it is
8420 # assumed that no part of a normal pathname contains ";" but that should
8421 # okay in the real world where ";" in dirpaths is itself problematic.
8422 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8424 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8427 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8429 need_lib_prefix=unknown
8430 hardcode_into_libs=no
8432 # when you set need_version to no, make sure it does not cause -set_version
8433 # flags to be left without arguments
8434 need_version=unknown
8439 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8440 shlibpath_var=LIBPATH
8442 # AIX 3 has no versioning support, so we append a major version to the name.
8443 soname_spec='${libname}${release}${shared_ext}$major'
8450 hardcode_into_libs=yes
8451 if test "$host_cpu" = ia64; then
8452 # AIX 5 supports IA64
8453 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8454 shlibpath_var=LD_LIBRARY_PATH
8456 # With GCC up to 2.95.x, collect2 would create an import file
8457 # for dependence libraries. The import file would start with
8458 # the line `#! .'. This would cause the generated library to
8459 # depend on `.', always an invalid library. This was fixed in
8460 # development snapshots of GCC prior to 3.0.
8462 aix4 | aix4.[01] | aix4.[01].*)
8463 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8465 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8472 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8473 # soname into executable. Probably we can add versioning support to
8474 # collect2, so additional links can be useful in future.
8475 if test "$aix_use_runtimelinking" = yes; then
8476 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8477 # instead of lib<name>.a to let people know that these are not
8478 # typical AIX shared libraries.
8479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8481 # We preserve .a as extension for shared libraries through AIX4.2
8482 # and later when we are not doing run time linking.
8483 library_names_spec='${libname}${release}.a $libname.a'
8484 soname_spec='${libname}${release}${shared_ext}$major'
8486 shlibpath_var=LIBPATH
8491 library_names_spec='$libname.ixlibrary $libname.a'
8492 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8493 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'
8497 library_names_spec='${libname}${shared_ext}'
8498 dynamic_linker="$host_os ld.so"
8499 shlibpath_var=LIBRARY_PATH
8505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8506 soname_spec='${libname}${release}${shared_ext}$major'
8507 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8508 shlibpath_var=LD_LIBRARY_PATH
8509 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8510 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8511 # the default ld.so.conf also contains /usr/contrib/lib and
8512 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8513 # libtool to hard-code these into programs
8516 cygwin* | mingw* | pw32*)
8517 version_type=windows
8522 case $GCC,$host_os in
8523 yes,cygwin* | yes,mingw* | yes,pw32*)
8524 library_names_spec='$libname.dll.a'
8525 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8526 postinstall_cmds='base_file=`basename \${file}`~
8527 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8528 dldir=$destdir/`dirname \$dlpath`~
8529 test -d \$dldir || mkdir -p \$dldir~
8530 $install_prog $dir/$dlname \$dldir/$dlname~
8531 chmod a+x \$dldir/$dlname'
8532 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8533 dlpath=$dir/\$dldll~
8535 shlibpath_overrides_runpath=yes
8539 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8540 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8541 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8544 # MinGW DLLs use traditional 'lib' prefix
8545 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8546 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8547 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8548 # It is most probably a Windows format PATH printed by
8549 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8550 # path with ; separators, and with drive letters. We can handle the
8551 # drive letters (cygwin fileutils understands them), so leave them,
8552 # especially as we might pass files found there to a mingw objdump,
8553 # which wouldn't understand a cygwinified path. Ahh.
8554 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8556 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8560 # pw32 DLLs use 'pw' prefix rather than 'lib'
8561 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8567 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8570 dynamic_linker='Win32 ld.exe'
8571 # FIXME: first we should search . and the directory the executable is in
8575 darwin* | rhapsody*)
8576 dynamic_linker="$host_os dyld"
8580 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8581 soname_spec='${libname}${release}${major}$shared_ext'
8582 shlibpath_overrides_runpath=yes
8583 shlibpath_var=DYLD_LIBRARY_PATH
8584 shrext_cmds='.dylib'
8585 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8586 if test "$GCC" = yes; then
8587 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"`
8589 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8591 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8599 soname_spec='${libname}${release}${shared_ext}$major'
8600 shlibpath_var=LD_LIBRARY_PATH
8611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8612 soname_spec='${libname}${release}${shared_ext}$major'
8613 shlibpath_var=LD_LIBRARY_PATH
8614 shlibpath_overrides_runpath=no
8615 hardcode_into_libs=yes
8616 dynamic_linker='GNU ld.so'
8619 freebsd* | dragonfly*)
8620 # DragonFly does not have aout. When/if they implement a new
8621 # versioning mechanism, adjust this.
8622 if test -x /usr/bin/objformat; then
8623 objformat=`/usr/bin/objformat`
8626 freebsd[123].*) objformat=aout ;;
8630 version_type=freebsd-$objformat
8631 case $version_type in
8633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8638 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8642 shlibpath_var=LD_LIBRARY_PATH
8645 shlibpath_overrides_runpath=yes
8647 freebsd3.[01]* | freebsdelf3.[01]*)
8648 shlibpath_overrides_runpath=yes
8649 hardcode_into_libs=yes
8651 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8652 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8653 shlibpath_overrides_runpath=no
8654 hardcode_into_libs=yes
8656 freebsd*) # from 4.6 on
8657 shlibpath_overrides_runpath=yes
8658 hardcode_into_libs=yes
8667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8668 soname_spec='${libname}${release}${shared_ext}$major'
8669 shlibpath_var=LD_LIBRARY_PATH
8670 hardcode_into_libs=yes
8673 hpux9* | hpux10* | hpux11*)
8674 # Give a soname corresponding to the major version so that dld.sl refuses to
8675 # link against other versions.
8682 hardcode_into_libs=yes
8683 dynamic_linker="$host_os dld.so"
8684 shlibpath_var=LD_LIBRARY_PATH
8685 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8687 soname_spec='${libname}${release}${shared_ext}$major'
8688 if test "X$HPUX_IA64_MODE" = X32; then
8689 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8691 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8693 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8697 hardcode_into_libs=yes
8698 dynamic_linker="$host_os dld.sl"
8699 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8700 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8702 soname_spec='${libname}${release}${shared_ext}$major'
8703 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8704 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8708 dynamic_linker="$host_os dld.sl"
8709 shlibpath_var=SHLIB_PATH
8710 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8712 soname_spec='${libname}${release}${shared_ext}$major'
8715 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8716 postinstall_cmds='chmod 555 $lib'
8723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8724 soname_spec='${libname}${release}${shared_ext}$major'
8725 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8726 shlibpath_var=LD_LIBRARY_PATH
8727 shlibpath_overrides_runpath=no
8728 hardcode_into_libs=yes
8731 irix5* | irix6* | nonstopux*)
8733 nonstopux*) version_type=nonstopux ;;
8735 if test "$lt_cv_prog_gnu_ld" = yes; then
8743 soname_spec='${libname}${release}${shared_ext}$major'
8744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8746 irix5* | nonstopux*)
8750 case $LD in # libtool.m4 will add one of these switches to LD
8751 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8752 libsuff= shlibsuff= libmagic=32-bit;;
8753 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8754 libsuff=32 shlibsuff=N32 libmagic=N32;;
8755 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8756 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8757 *) libsuff= shlibsuff= libmagic=never-match;;
8761 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8762 shlibpath_overrides_runpath=no
8763 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8764 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8765 hardcode_into_libs=yes
8768 # No shared lib support for Linux oldld, aout, or coff.
8769 linux*oldld* | linux*aout* | linux*coff*)
8773 # This must be Linux ELF.
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8781 shlibpath_var=LD_LIBRARY_PATH
8782 shlibpath_overrides_runpath=no
8783 # This implies no fast_install, which is unacceptable.
8784 # Some rework will be needed to allow for fast_install
8785 # before this can be enabled.
8786 hardcode_into_libs=yes
8788 # Append ld.so.conf contents to the search path
8789 if test -f /etc/ld.so.conf; then
8790 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' ' '`
8791 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8794 # We used to test for /lib/ld.so.1 and disable shared libraries on
8795 # powerpc, because MkLinux only supported shared libraries with the
8796 # GNU dynamic linker. Since this was broken with cross compilers,
8797 # most powerpc-linux boxes support dynamic linking these days and
8798 # people can always --disable-shared, the test was removed, and we
8799 # assume the GNU/Linux dynamic linker is in use.
8800 dynamic_linker='GNU/Linux ld.so'
8807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8808 soname_spec='${libname}${release}${shared_ext}$major'
8809 shlibpath_var=LD_LIBRARY_PATH
8810 shlibpath_overrides_runpath=no
8811 hardcode_into_libs=yes
8812 dynamic_linker='GNU ld.so'
8819 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8821 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8822 dynamic_linker='NetBSD (a.out) ld.so'
8824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8825 soname_spec='${libname}${release}${shared_ext}$major'
8826 dynamic_linker='NetBSD ld.elf_so'
8828 shlibpath_var=LD_LIBRARY_PATH
8829 shlibpath_overrides_runpath=yes
8830 hardcode_into_libs=yes
8835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8836 shlibpath_var=LD_LIBRARY_PATH
8837 shlibpath_overrides_runpath=yes
8844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8845 soname_spec='${libname}${release}${shared_ext}$major'
8846 shlibpath_var=LD_LIBRARY_PATH
8847 shlibpath_overrides_runpath=yes
8852 sys_lib_dlsearch_path_spec="/usr/lib"
8854 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8856 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8857 *) need_version=no ;;
8859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8860 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8861 shlibpath_var=LD_LIBRARY_PATH
8862 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8864 openbsd2.[89] | openbsd2.[89].*)
8865 shlibpath_overrides_runpath=no
8868 shlibpath_overrides_runpath=yes
8872 shlibpath_overrides_runpath=yes
8877 libname_spec='$name'
8880 library_names_spec='$libname${shared_ext} $libname.a'
8881 dynamic_linker='OS/2 ld.exe'
8882 shlibpath_var=LIBPATH
8885 osf3* | osf4* | osf5*)
8889 soname_spec='${libname}${release}${shared_ext}$major'
8890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8891 shlibpath_var=LD_LIBRARY_PATH
8892 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8893 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8901 soname_spec='${libname}${release}${shared_ext}$major'
8902 shlibpath_var=LD_LIBRARY_PATH
8903 shlibpath_overrides_runpath=yes
8904 hardcode_into_libs=yes
8905 # ldd complains unless libraries are executable
8906 postinstall_cmds='chmod +x $lib'
8911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8912 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8913 shlibpath_var=LD_LIBRARY_PATH
8914 shlibpath_overrides_runpath=yes
8915 if test "$with_gnu_ld" = yes; then
8923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8924 soname_spec='${libname}${release}${shared_ext}$major'
8925 shlibpath_var=LD_LIBRARY_PATH
8926 case $host_vendor in
8928 shlibpath_overrides_runpath=no
8930 export_dynamic_flag_spec='${wl}-Blargedynsym'
8931 runpath_var=LD_RUN_PATH
8939 shlibpath_overrides_runpath=no
8940 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8946 if test -d /usr/nec ;then
8948 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8949 soname_spec='$libname${shared_ext}.$major'
8950 shlibpath_var=LD_LIBRARY_PATH
8954 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8955 version_type=freebsd-elf
8958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8959 soname_spec='${libname}${release}${shared_ext}$major'
8960 shlibpath_var=LD_LIBRARY_PATH
8961 hardcode_into_libs=yes
8962 if test "$with_gnu_ld" = yes; then
8963 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8964 shlibpath_overrides_runpath=no
8966 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8967 shlibpath_overrides_runpath=yes
8970 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8974 sys_lib_dlsearch_path_spec='/usr/lib'
8979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8980 soname_spec='${libname}${release}${shared_ext}$major'
8981 shlibpath_var=LD_LIBRARY_PATH
8988 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8989 echo "${ECHO_T}$dynamic_linker" >&6; }
8990 test "$dynamic_linker" = no && can_build_shared=no
8992 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8993 if test "$GCC" = yes; then
8994 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8998 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
8999 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9000 if test "${libltdl_cv_shlibext+set}" = set; then
9001 echo $ECHO_N "(cached) $ECHO_C" >&6
9005 eval libltdl_cv_shlibext=$shrext_cmds
9008 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9009 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9010 if test -n "$libltdl_cv_shlibext"; then
9012 cat >>confdefs.h <<_ACEOF
9013 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9019 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9020 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9021 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9022 echo $ECHO_N "(cached) $ECHO_C" >&6
9024 libltdl_cv_shlibpath_var="$shlibpath_var"
9026 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9027 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9028 if test -n "$libltdl_cv_shlibpath_var"; then
9030 cat >>confdefs.h <<_ACEOF
9031 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9037 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9038 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9039 if test "${libltdl_cv_sys_search_path+set}" = set; then
9040 echo $ECHO_N "(cached) $ECHO_C" >&6
9042 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9044 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9045 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9046 if test -n "$libltdl_cv_sys_search_path"; then
9048 for dir in $libltdl_cv_sys_search_path; do
9049 if test -z "$sys_search_path"; then
9050 sys_search_path="$dir"
9052 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9056 cat >>confdefs.h <<_ACEOF
9057 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9062 { echo "$as_me:$LINENO: checking for objdir" >&5
9063 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9064 if test "${libltdl_cv_objdir+set}" = set; then
9065 echo $ECHO_N "(cached) $ECHO_C" >&6
9067 libltdl_cv_objdir="$objdir"
9068 if test -n "$objdir"; then
9071 rm -f .libs 2>/dev/null
9072 mkdir .libs 2>/dev/null
9073 if test -d .libs; then
9074 libltdl_cv_objdir=.libs
9076 # MS-DOS does not allow filenames that begin with a dot.
9077 libltdl_cv_objdir=_libs
9079 rmdir .libs 2>/dev/null
9083 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9084 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9086 cat >>confdefs.h <<_ACEOF
9087 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9095 # Check for command to grab the raw symbol name followed by C symbol from nm.
9096 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9097 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9098 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9099 echo $ECHO_N "(cached) $ECHO_C" >&6
9102 # These are sane defaults that work on at least a few old systems.
9103 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9105 # Character class describing NM global symbol codes.
9106 symcode='[BCDEGRST]'
9108 # Regexp to match symbols that can be accessed directly from C.
9109 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9111 # Transform an extracted symbol line into a proper C declaration
9112 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9114 # Transform an extracted symbol line into symbol name and symbol address
9115 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'"
9117 # Define system-specific variables.
9122 cygwin* | mingw* | pw32*)
9123 symcode='[ABCDGISTW]'
9125 hpux*) # Its linker distinguishes data from code symbols
9126 if test "$host_cpu" = ia64; then
9127 symcode='[ABCDEGRST]'
9129 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9130 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'"
9133 if test "$host_cpu" = ia64; then
9134 symcode='[ABCDGIRSTW]'
9135 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9136 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'"
9140 symcode='[BCDEGRST]'
9143 symcode='[BCDEGQRST]'
9154 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9162 # Handle CRLF in mingw tool chain
9166 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9170 # If we're using GNU nm, then use its standard symbol codes.
9171 case `$NM -V 2>&1` in
9172 *GNU* | *'with BFD'*)
9173 symcode='[ABCDGIRSTW]' ;;
9176 # Try without a prefix undercore, then with it.
9177 for ac_symprfx in "" "_"; do
9179 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9180 symxfrm="\\1 $ac_symprfx\\2 \\2"
9182 # Write the raw and C identifiers.
9183 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9185 # Check to see that the pipe works correctly.
9189 cat > conftest.$ac_ext <<EOF
9194 void nm_test_func(){}
9198 int main(){nm_test_var='a';nm_test_func();return(0);}
9201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9202 (eval $ac_compile) 2>&5
9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205 (exit $ac_status); }; then
9206 # Now try to grab the symbols.
9208 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9209 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212 (exit $ac_status); } && test -s "$nlist"; then
9213 # Try sorting and uniquifying the output.
9214 if sort "$nlist" | uniq > "$nlist"T; then
9215 mv -f "$nlist"T "$nlist"
9220 # Make sure that we snagged all the symbols we need.
9221 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9222 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9223 cat <<EOF > conftest.$ac_ext
9229 # Now generate the symbol file.
9230 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9232 cat <<EOF >> conftest.$ac_ext
9233 #if defined (__STDC__) && __STDC__
9234 # define lt_ptr_t void *
9236 # define lt_ptr_t char *
9240 /* The mapping between symbol names and symbols. */
9245 lt_preloaded_symbols[] =
9248 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9249 cat <<\EOF >> conftest.$ac_ext
9257 # Now try linking the two files.
9258 mv conftest.$ac_objext conftstm.$ac_objext
9259 lt_save_LIBS="$LIBS"
9260 lt_save_CFLAGS="$CFLAGS"
9261 LIBS="conftstm.$ac_objext"
9262 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9264 (eval $ac_link) 2>&5
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9270 LIBS="$lt_save_LIBS"
9271 CFLAGS="$lt_save_CFLAGS"
9273 echo "cannot find nm_test_func in $nlist" >&5
9276 echo "cannot find nm_test_var in $nlist" >&5
9279 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9282 echo "$progname: failed program was:" >&5
9283 cat conftest.$ac_ext >&5
9285 rm -f conftest* conftst*
9287 # Do not use the global_symbol_pipe unless it works.
9288 if test "$pipe_works" = yes; then
9291 lt_cv_sys_global_symbol_pipe=
9297 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9298 lt_cv_sys_global_symbol_to_cdecl=
9300 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9301 { echo "$as_me:$LINENO: result: failed" >&5
9302 echo "${ECHO_T}failed" >&6; }
9304 { echo "$as_me:$LINENO: result: ok" >&5
9305 echo "${ECHO_T}ok" >&6; }
9309 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9310 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9311 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9312 echo $ECHO_N "(cached) $ECHO_C" >&6
9314 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9315 libltdl_cv_preloaded_symbols=yes
9317 libltdl_cv_preloaded_symbols=no
9321 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9322 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9323 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9325 cat >>confdefs.h <<\_ACEOF
9326 #define HAVE_PRELOADED_SYMBOLS 1
9334 ac_cpp='$CPP $CPPFLAGS'
9335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9340 { echo "$as_me:$LINENO: checking for shl_load" >&5
9341 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9342 if test "${ac_cv_func_shl_load+set}" = set; then
9343 echo $ECHO_N "(cached) $ECHO_C" >&6
9345 cat >conftest.$ac_ext <<_ACEOF
9348 cat confdefs.h >>conftest.$ac_ext
9349 cat >>conftest.$ac_ext <<_ACEOF
9350 /* end confdefs.h. */
9351 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9352 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9353 #define shl_load innocuous_shl_load
9355 /* System header to define __stub macros and hopefully few prototypes,
9356 which can conflict with char shl_load (); below.
9357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9358 <limits.h> exists even on freestanding compilers. */
9361 # include <limits.h>
9363 # include <assert.h>
9368 /* Override any GCC internal prototype to avoid an error.
9369 Use char because int might match the return type of a GCC
9370 builtin and then its argument prototype would still apply. */
9375 /* The GNU C library defines this for functions which it implements
9376 to always fail with ENOSYS. Some functions are actually named
9377 something starting with __ and the normal name is an alias. */
9378 #if defined __stub_shl_load || defined __stub___shl_load
9390 rm -f conftest.$ac_objext conftest$ac_exeext
9391 if { (ac_try="$ac_link"
9393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9394 *) ac_try_echo=$ac_try;;
9396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9397 (eval "$ac_link") 2>conftest.er1
9399 grep -v '^ *+' conftest.er1 >conftest.err
9401 cat conftest.err >&5
9402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 (exit $ac_status); } &&
9404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9405 { (case "(($ac_try" in
9406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9407 *) ac_try_echo=$ac_try;;
9409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9410 (eval "$ac_try") 2>&5
9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413 (exit $ac_status); }; } &&
9414 { ac_try='test -s conftest$ac_exeext'
9415 { (case "(($ac_try" in
9416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9417 *) ac_try_echo=$ac_try;;
9419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9420 (eval "$ac_try") 2>&5
9422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423 (exit $ac_status); }; }; then
9424 ac_cv_func_shl_load=yes
9426 echo "$as_me: failed program was:" >&5
9427 sed 's/^/| /' conftest.$ac_ext >&5
9429 ac_cv_func_shl_load=no
9432 rm -f core conftest.err conftest.$ac_objext \
9433 conftest$ac_exeext conftest.$ac_ext
9435 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9436 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9437 if test $ac_cv_func_shl_load = yes; then
9439 cat >>confdefs.h <<\_ACEOF
9440 #define HAVE_SHL_LOAD 1
9444 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9445 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9446 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9447 echo $ECHO_N "(cached) $ECHO_C" >&6
9449 ac_check_lib_save_LIBS=$LIBS
9451 cat >conftest.$ac_ext <<_ACEOF
9454 cat confdefs.h >>conftest.$ac_ext
9455 cat >>conftest.$ac_ext <<_ACEOF
9456 /* end confdefs.h. */
9458 /* Override any GCC internal prototype to avoid an error.
9459 Use char because int might match the return type of a GCC
9460 builtin and then its argument prototype would still apply. */
9473 rm -f conftest.$ac_objext conftest$ac_exeext
9474 if { (ac_try="$ac_link"
9476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9477 *) ac_try_echo=$ac_try;;
9479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9480 (eval "$ac_link") 2>conftest.er1
9482 grep -v '^ *+' conftest.er1 >conftest.err
9484 cat conftest.err >&5
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); } &&
9487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9488 { (case "(($ac_try" in
9489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9490 *) ac_try_echo=$ac_try;;
9492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9493 (eval "$ac_try") 2>&5
9495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496 (exit $ac_status); }; } &&
9497 { ac_try='test -s conftest$ac_exeext'
9498 { (case "(($ac_try" in
9499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9500 *) ac_try_echo=$ac_try;;
9502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9503 (eval "$ac_try") 2>&5
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); }; }; then
9507 ac_cv_lib_dld_shl_load=yes
9509 echo "$as_me: failed program was:" >&5
9510 sed 's/^/| /' conftest.$ac_ext >&5
9512 ac_cv_lib_dld_shl_load=no
9515 rm -f core conftest.err conftest.$ac_objext \
9516 conftest$ac_exeext conftest.$ac_ext
9517 LIBS=$ac_check_lib_save_LIBS
9519 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9520 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9521 if test $ac_cv_lib_dld_shl_load = yes; then
9523 cat >>confdefs.h <<\_ACEOF
9524 #define HAVE_SHL_LOAD 1
9527 LIBADD_DL="$LIBADD_DL -ldld"
9529 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9530 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9531 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9532 echo $ECHO_N "(cached) $ECHO_C" >&6
9534 ac_check_lib_save_LIBS=$LIBS
9536 cat >conftest.$ac_ext <<_ACEOF
9539 cat confdefs.h >>conftest.$ac_ext
9540 cat >>conftest.$ac_ext <<_ACEOF
9541 /* end confdefs.h. */
9543 /* Override any GCC internal prototype to avoid an error.
9544 Use char because int might match the return type of a GCC
9545 builtin and then its argument prototype would still apply. */
9558 rm -f conftest.$ac_objext conftest$ac_exeext
9559 if { (ac_try="$ac_link"
9561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9562 *) ac_try_echo=$ac_try;;
9564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9565 (eval "$ac_link") 2>conftest.er1
9567 grep -v '^ *+' conftest.er1 >conftest.err
9569 cat conftest.err >&5
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); } &&
9572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9573 { (case "(($ac_try" in
9574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9575 *) ac_try_echo=$ac_try;;
9577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9578 (eval "$ac_try") 2>&5
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); }; } &&
9582 { ac_try='test -s conftest$ac_exeext'
9583 { (case "(($ac_try" in
9584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9585 *) ac_try_echo=$ac_try;;
9587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9588 (eval "$ac_try") 2>&5
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); }; }; then
9592 ac_cv_lib_dl_dlopen=yes
9594 echo "$as_me: failed program was:" >&5
9595 sed 's/^/| /' conftest.$ac_ext >&5
9597 ac_cv_lib_dl_dlopen=no
9600 rm -f core conftest.err conftest.$ac_objext \
9601 conftest$ac_exeext conftest.$ac_ext
9602 LIBS=$ac_check_lib_save_LIBS
9604 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9605 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9606 if test $ac_cv_lib_dl_dlopen = yes; then
9608 cat >>confdefs.h <<\_ACEOF
9609 #define HAVE_LIBDL 1
9612 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9614 cat >conftest.$ac_ext <<_ACEOF
9617 cat confdefs.h >>conftest.$ac_ext
9618 cat >>conftest.$ac_ext <<_ACEOF
9619 /* end confdefs.h. */
9632 rm -f conftest.$ac_objext conftest$ac_exeext
9633 if { (ac_try="$ac_link"
9635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9636 *) ac_try_echo=$ac_try;;
9638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9639 (eval "$ac_link") 2>conftest.er1
9641 grep -v '^ *+' conftest.er1 >conftest.err
9643 cat conftest.err >&5
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); } &&
9646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9647 { (case "(($ac_try" in
9648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9649 *) ac_try_echo=$ac_try;;
9651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9652 (eval "$ac_try") 2>&5
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); }; } &&
9656 { ac_try='test -s conftest$ac_exeext'
9657 { (case "(($ac_try" in
9658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9659 *) ac_try_echo=$ac_try;;
9661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9662 (eval "$ac_try") 2>&5
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); }; }; then
9667 cat >>confdefs.h <<\_ACEOF
9668 #define HAVE_LIBDL 1
9670 libltdl_cv_func_dlopen="yes"
9672 echo "$as_me: failed program was:" >&5
9673 sed 's/^/| /' conftest.$ac_ext >&5
9675 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9676 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9677 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9678 echo $ECHO_N "(cached) $ECHO_C" >&6
9680 ac_check_lib_save_LIBS=$LIBS
9682 cat >conftest.$ac_ext <<_ACEOF
9685 cat confdefs.h >>conftest.$ac_ext
9686 cat >>conftest.$ac_ext <<_ACEOF
9687 /* end confdefs.h. */
9689 /* Override any GCC internal prototype to avoid an error.
9690 Use char because int might match the return type of a GCC
9691 builtin and then its argument prototype would still apply. */
9704 rm -f conftest.$ac_objext conftest$ac_exeext
9705 if { (ac_try="$ac_link"
9707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9708 *) ac_try_echo=$ac_try;;
9710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9711 (eval "$ac_link") 2>conftest.er1
9713 grep -v '^ *+' conftest.er1 >conftest.err
9715 cat conftest.err >&5
9716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717 (exit $ac_status); } &&
9718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9719 { (case "(($ac_try" in
9720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9721 *) ac_try_echo=$ac_try;;
9723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9724 (eval "$ac_try") 2>&5
9726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727 (exit $ac_status); }; } &&
9728 { ac_try='test -s conftest$ac_exeext'
9729 { (case "(($ac_try" in
9730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9731 *) ac_try_echo=$ac_try;;
9733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9734 (eval "$ac_try") 2>&5
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); }; }; then
9738 ac_cv_lib_svld_dlopen=yes
9740 echo "$as_me: failed program was:" >&5
9741 sed 's/^/| /' conftest.$ac_ext >&5
9743 ac_cv_lib_svld_dlopen=no
9746 rm -f core conftest.err conftest.$ac_objext \
9747 conftest$ac_exeext conftest.$ac_ext
9748 LIBS=$ac_check_lib_save_LIBS
9750 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9751 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9752 if test $ac_cv_lib_svld_dlopen = yes; then
9754 cat >>confdefs.h <<\_ACEOF
9755 #define HAVE_LIBDL 1
9758 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9760 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9761 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9762 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9763 echo $ECHO_N "(cached) $ECHO_C" >&6
9765 ac_check_lib_save_LIBS=$LIBS
9767 cat >conftest.$ac_ext <<_ACEOF
9770 cat confdefs.h >>conftest.$ac_ext
9771 cat >>conftest.$ac_ext <<_ACEOF
9772 /* end confdefs.h. */
9774 /* Override any GCC internal prototype to avoid an error.
9775 Use char because int might match the return type of a GCC
9776 builtin and then its argument prototype would still apply. */
9789 rm -f conftest.$ac_objext conftest$ac_exeext
9790 if { (ac_try="$ac_link"
9792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9793 *) ac_try_echo=$ac_try;;
9795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9796 (eval "$ac_link") 2>conftest.er1
9798 grep -v '^ *+' conftest.er1 >conftest.err
9800 cat conftest.err >&5
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); } &&
9803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9804 { (case "(($ac_try" in
9805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9806 *) ac_try_echo=$ac_try;;
9808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9809 (eval "$ac_try") 2>&5
9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); }; } &&
9813 { ac_try='test -s conftest$ac_exeext'
9814 { (case "(($ac_try" in
9815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9816 *) ac_try_echo=$ac_try;;
9818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9819 (eval "$ac_try") 2>&5
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); }; }; then
9823 ac_cv_lib_dld_dld_link=yes
9825 echo "$as_me: failed program was:" >&5
9826 sed 's/^/| /' conftest.$ac_ext >&5
9828 ac_cv_lib_dld_dld_link=no
9831 rm -f core conftest.err conftest.$ac_objext \
9832 conftest$ac_exeext conftest.$ac_ext
9833 LIBS=$ac_check_lib_save_LIBS
9835 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9836 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9837 if test $ac_cv_lib_dld_dld_link = yes; then
9839 cat >>confdefs.h <<\_ACEOF
9843 LIBADD_DL="$LIBADD_DL -ldld"
9845 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9846 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9847 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9848 echo $ECHO_N "(cached) $ECHO_C" >&6
9850 cat >conftest.$ac_ext <<_ACEOF
9853 cat confdefs.h >>conftest.$ac_ext
9854 cat >>conftest.$ac_ext <<_ACEOF
9855 /* end confdefs.h. */
9856 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9858 #define _dyld_func_lookup innocuous__dyld_func_lookup
9860 /* System header to define __stub macros and hopefully few prototypes,
9861 which can conflict with char _dyld_func_lookup (); below.
9862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9863 <limits.h> exists even on freestanding compilers. */
9866 # include <limits.h>
9868 # include <assert.h>
9871 #undef _dyld_func_lookup
9873 /* Override any GCC internal prototype to avoid an error.
9874 Use char because int might match the return type of a GCC
9875 builtin and then its argument prototype would still apply. */
9879 char _dyld_func_lookup ();
9880 /* The GNU C library defines this for functions which it implements
9881 to always fail with ENOSYS. Some functions are actually named
9882 something starting with __ and the normal name is an alias. */
9883 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
9890 return _dyld_func_lookup ();
9895 rm -f conftest.$ac_objext conftest$ac_exeext
9896 if { (ac_try="$ac_link"
9898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9899 *) ac_try_echo=$ac_try;;
9901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9902 (eval "$ac_link") 2>conftest.er1
9904 grep -v '^ *+' conftest.er1 >conftest.err
9906 cat conftest.err >&5
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); } &&
9909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9910 { (case "(($ac_try" in
9911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9912 *) ac_try_echo=$ac_try;;
9914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9915 (eval "$ac_try") 2>&5
9917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918 (exit $ac_status); }; } &&
9919 { ac_try='test -s conftest$ac_exeext'
9920 { (case "(($ac_try" in
9921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9922 *) ac_try_echo=$ac_try;;
9924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9925 (eval "$ac_try") 2>&5
9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); }; }; then
9929 ac_cv_func__dyld_func_lookup=yes
9931 echo "$as_me: failed program was:" >&5
9932 sed 's/^/| /' conftest.$ac_ext >&5
9934 ac_cv_func__dyld_func_lookup=no
9937 rm -f core conftest.err conftest.$ac_objext \
9938 conftest$ac_exeext conftest.$ac_ext
9940 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
9941 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
9942 if test $ac_cv_func__dyld_func_lookup = yes; then
9944 cat >>confdefs.h <<\_ACEOF
9959 rm -f core conftest.err conftest.$ac_objext \
9960 conftest$ac_exeext conftest.$ac_ext
9971 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
9973 lt_save_LIBS="$LIBS"
9974 LIBS="$LIBS $LIBADD_DL"
9976 for ac_func in dlerror
9978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9979 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9981 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9982 echo $ECHO_N "(cached) $ECHO_C" >&6
9984 cat >conftest.$ac_ext <<_ACEOF
9987 cat confdefs.h >>conftest.$ac_ext
9988 cat >>conftest.$ac_ext <<_ACEOF
9989 /* end confdefs.h. */
9990 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9992 #define $ac_func innocuous_$ac_func
9994 /* System header to define __stub macros and hopefully few prototypes,
9995 which can conflict with char $ac_func (); below.
9996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9997 <limits.h> exists even on freestanding compilers. */
10000 # include <limits.h>
10002 # include <assert.h>
10007 /* Override any GCC internal prototype to avoid an error.
10008 Use char because int might match the return type of a GCC
10009 builtin and then its argument prototype would still apply. */
10014 /* The GNU C library defines this for functions which it implements
10015 to always fail with ENOSYS. Some functions are actually named
10016 something starting with __ and the normal name is an alias. */
10017 #if defined __stub_$ac_func || defined __stub___$ac_func
10024 return $ac_func ();
10029 rm -f conftest.$ac_objext conftest$ac_exeext
10030 if { (ac_try="$ac_link"
10031 case "(($ac_try" in
10032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10033 *) ac_try_echo=$ac_try;;
10035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10036 (eval "$ac_link") 2>conftest.er1
10038 grep -v '^ *+' conftest.er1 >conftest.err
10040 cat conftest.err >&5
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); } &&
10043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10044 { (case "(($ac_try" in
10045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10046 *) ac_try_echo=$ac_try;;
10048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10049 (eval "$ac_try") 2>&5
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); }; } &&
10053 { ac_try='test -s conftest$ac_exeext'
10054 { (case "(($ac_try" in
10055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10056 *) ac_try_echo=$ac_try;;
10058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10059 (eval "$ac_try") 2>&5
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); }; }; then
10063 eval "$as_ac_var=yes"
10065 echo "$as_me: failed program was:" >&5
10066 sed 's/^/| /' conftest.$ac_ext >&5
10068 eval "$as_ac_var=no"
10071 rm -f core conftest.err conftest.$ac_objext \
10072 conftest$ac_exeext conftest.$ac_ext
10074 ac_res=`eval echo '${'$as_ac_var'}'`
10075 { echo "$as_me:$LINENO: result: $ac_res" >&5
10076 echo "${ECHO_T}$ac_res" >&6; }
10077 if test `eval echo '${'$as_ac_var'}'` = yes; then
10078 cat >>confdefs.h <<_ACEOF
10079 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10085 LIBS="$lt_save_LIBS"
10088 ac_cpp='$CPP $CPPFLAGS'
10089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10095 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10096 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10097 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10098 echo $ECHO_N "(cached) $ECHO_C" >&6
10100 ac_cv_sys_symbol_underscore=no
10101 cat > conftest.$ac_ext <<EOF
10102 void nm_test_func(){}
10103 int main(){nm_test_func;return 0;}
10105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10106 (eval $ac_compile) 2>&5
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); }; then
10110 # Now try to grab the symbols.
10111 ac_nlist=conftest.nm
10112 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10113 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); } && test -s "$ac_nlist"; then
10117 # See whether the symbols have a leading underscore.
10118 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10119 ac_cv_sys_symbol_underscore=yes
10121 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10124 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10128 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10131 echo "configure: failed program was:" >&5
10137 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10138 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10141 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10142 if test x"$libltdl_cv_func_dlopen" = xyes ||
10143 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10144 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10145 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10146 if test "${libltdl_cv_need_uscore+set}" = set; then
10147 echo $ECHO_N "(cached) $ECHO_C" >&6
10149 libltdl_cv_need_uscore=unknown
10151 LIBS="$LIBS $LIBADD_DL"
10152 if test "$cross_compiling" = yes; then :
10153 libltdl_cv_need_uscore=cross
10155 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10156 lt_status=$lt_dlunknown
10157 cat > conftest.$ac_ext <<EOF
10158 #line 10158 "configure"
10159 #include "confdefs.h"
10168 # define LT_DLGLOBAL RTLD_GLOBAL
10171 # define LT_DLGLOBAL DL_GLOBAL
10173 # define LT_DLGLOBAL 0
10177 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10178 find out it does not work in some platform. */
10179 #ifndef LT_DLLAZY_OR_NOW
10181 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10184 # define LT_DLLAZY_OR_NOW DL_LAZY
10187 # define LT_DLLAZY_OR_NOW RTLD_NOW
10190 # define LT_DLLAZY_OR_NOW DL_NOW
10192 # define LT_DLLAZY_OR_NOW 0
10200 extern "C" void exit (int);
10203 void fnord() { int i=42;}
10206 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10207 int status = $lt_dlunknown;
10211 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10212 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10213 /* dlclose (self); */
10221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10222 (eval $ac_link) 2>&5
10224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10226 (./conftest; exit; ) >&5 2>/dev/null
10228 case x$lt_status in
10229 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10230 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10231 x$lt_dlunknown|x*) ;;
10234 # compilation failed
10243 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10244 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10248 if test x"$libltdl_cv_need_uscore" = xyes; then
10250 cat >>confdefs.h <<\_ACEOF
10251 #define NEED_USCORE 1
10257 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10258 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10259 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10260 echo $ECHO_N "(cached) $ECHO_C" >&6
10262 # PORTME does your system automatically load deplibs for dlopen?
10263 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10264 # For now, we just catch OSes we know something about -- in the
10265 # future, we'll try test this programmatically.
10266 libltdl_cv_sys_dlopen_deplibs=unknown
10268 aix3*|aix4.1.*|aix4.2.*)
10269 # Unknown whether this is true for these versions of AIX, but
10270 # we want this `case' here to explicitly catch those versions.
10271 libltdl_cv_sys_dlopen_deplibs=unknown
10274 libltdl_cv_sys_dlopen_deplibs=yes
10277 # Assuming the user has installed a libdl from somewhere, this is true
10278 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10279 libltdl_cv_sys_dlopen_deplibs=yes
10281 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10282 # GNU and its variants, using gnu ld.so (Glibc)
10283 libltdl_cv_sys_dlopen_deplibs=yes
10286 libltdl_cv_sys_dlopen_deplibs=yes
10289 libltdl_cv_sys_dlopen_deplibs=yes
10291 irix[12345]*|irix6.[01]*)
10292 # Catch all versions of IRIX before 6.2, and indicate that we don't
10293 # know how it worked for any of those versions.
10294 libltdl_cv_sys_dlopen_deplibs=unknown
10297 # The case above catches anything before 6.2, and it's known that
10298 # at 6.2 and later dlopen does load deplibs.
10299 libltdl_cv_sys_dlopen_deplibs=yes
10302 libltdl_cv_sys_dlopen_deplibs=yes
10305 libltdl_cv_sys_dlopen_deplibs=yes
10308 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10309 # it did *not* use an RPATH in a shared library to find objects the
10310 # library depends on, so we explicitly say `no'.
10311 libltdl_cv_sys_dlopen_deplibs=no
10313 osf5.0|osf5.0a|osf5.1)
10314 # dlopen *does* load deplibs and with the right loader patch applied
10315 # it even uses RPATH in a shared library to search for shared objects
10316 # that the library depends on, but there's no easy way to know if that
10317 # patch is installed. Since this is the case, all we can really
10318 # say is unknown -- it depends on the patch being installed. If
10319 # it is, this changes to `yes'. Without it, it would be `no'.
10320 libltdl_cv_sys_dlopen_deplibs=unknown
10323 # the two cases above should catch all versions of osf <= 5.1. Read
10324 # the comments above for what we know about them.
10325 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10326 # is used to find them so we can finally say `yes'.
10327 libltdl_cv_sys_dlopen_deplibs=yes
10330 libltdl_cv_sys_dlopen_deplibs=yes
10332 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10333 libltdl_cv_sys_dlopen_deplibs=yes
10338 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10339 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10340 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10342 cat >>confdefs.h <<\_ACEOF
10343 #define LTDL_DLOPEN_DEPLIBS 1
10349 for ac_header in argz.h
10351 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10353 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10356 echo $ECHO_N "(cached) $ECHO_C" >&6
10358 ac_res=`eval echo '${'$as_ac_Header'}'`
10359 { echo "$as_me:$LINENO: result: $ac_res" >&5
10360 echo "${ECHO_T}$ac_res" >&6; }
10362 # Is the header compilable?
10363 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10364 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10365 cat >conftest.$ac_ext <<_ACEOF
10368 cat confdefs.h >>conftest.$ac_ext
10369 cat >>conftest.$ac_ext <<_ACEOF
10370 /* end confdefs.h. */
10371 $ac_includes_default
10372 #include <$ac_header>
10374 rm -f conftest.$ac_objext
10375 if { (ac_try="$ac_compile"
10376 case "(($ac_try" in
10377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10378 *) ac_try_echo=$ac_try;;
10380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10381 (eval "$ac_compile") 2>conftest.er1
10383 grep -v '^ *+' conftest.er1 >conftest.err
10385 cat conftest.err >&5
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); } &&
10388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10389 { (case "(($ac_try" in
10390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10391 *) ac_try_echo=$ac_try;;
10393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10394 (eval "$ac_try") 2>&5
10396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397 (exit $ac_status); }; } &&
10398 { ac_try='test -s conftest.$ac_objext'
10399 { (case "(($ac_try" in
10400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10401 *) ac_try_echo=$ac_try;;
10403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10404 (eval "$ac_try") 2>&5
10406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407 (exit $ac_status); }; }; then
10408 ac_header_compiler=yes
10410 echo "$as_me: failed program was:" >&5
10411 sed 's/^/| /' conftest.$ac_ext >&5
10413 ac_header_compiler=no
10416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10417 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10418 echo "${ECHO_T}$ac_header_compiler" >&6; }
10420 # Is the header present?
10421 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10422 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10423 cat >conftest.$ac_ext <<_ACEOF
10426 cat confdefs.h >>conftest.$ac_ext
10427 cat >>conftest.$ac_ext <<_ACEOF
10428 /* end confdefs.h. */
10429 #include <$ac_header>
10431 if { (ac_try="$ac_cpp conftest.$ac_ext"
10432 case "(($ac_try" in
10433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10434 *) ac_try_echo=$ac_try;;
10436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10437 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10439 grep -v '^ *+' conftest.er1 >conftest.err
10441 cat conftest.err >&5
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); } >/dev/null; then
10444 if test -s conftest.err; then
10445 ac_cpp_err=$ac_c_preproc_warn_flag
10446 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10453 if test -z "$ac_cpp_err"; then
10454 ac_header_preproc=yes
10456 echo "$as_me: failed program was:" >&5
10457 sed 's/^/| /' conftest.$ac_ext >&5
10459 ac_header_preproc=no
10462 rm -f conftest.err conftest.$ac_ext
10463 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10464 echo "${ECHO_T}$ac_header_preproc" >&6; }
10466 # So? What about this header?
10467 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10469 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10470 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10472 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10473 ac_header_preproc=yes
10476 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10477 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10478 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10479 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10480 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10481 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10482 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10483 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10485 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10486 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10487 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10489 ## ------------------------------------ ##
10490 ## Report this to http://llvm.org/bugs/ ##
10491 ## ------------------------------------ ##
10493 ) | sed "s/^/$as_me: WARNING: /" >&2
10496 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10499 echo $ECHO_N "(cached) $ECHO_C" >&6
10501 eval "$as_ac_Header=\$ac_header_preproc"
10503 ac_res=`eval echo '${'$as_ac_Header'}'`
10504 { echo "$as_me:$LINENO: result: $ac_res" >&5
10505 echo "${ECHO_T}$ac_res" >&6; }
10508 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10509 cat >>confdefs.h <<_ACEOF
10510 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10518 { echo "$as_me:$LINENO: checking for error_t" >&5
10519 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10520 if test "${ac_cv_type_error_t+set}" = set; then
10521 echo $ECHO_N "(cached) $ECHO_C" >&6
10523 cat >conftest.$ac_ext <<_ACEOF
10526 cat confdefs.h >>conftest.$ac_ext
10527 cat >>conftest.$ac_ext <<_ACEOF
10528 /* end confdefs.h. */
10533 typedef error_t ac__type_new_;
10537 if ((ac__type_new_ *) 0)
10539 if (sizeof (ac__type_new_))
10545 rm -f conftest.$ac_objext
10546 if { (ac_try="$ac_compile"
10547 case "(($ac_try" in
10548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10549 *) ac_try_echo=$ac_try;;
10551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10552 (eval "$ac_compile") 2>conftest.er1
10554 grep -v '^ *+' conftest.er1 >conftest.err
10556 cat conftest.err >&5
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); } &&
10559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10560 { (case "(($ac_try" in
10561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10562 *) ac_try_echo=$ac_try;;
10564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10565 (eval "$ac_try") 2>&5
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); }; } &&
10569 { ac_try='test -s conftest.$ac_objext'
10570 { (case "(($ac_try" in
10571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10572 *) ac_try_echo=$ac_try;;
10574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10575 (eval "$ac_try") 2>&5
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); }; }; then
10579 ac_cv_type_error_t=yes
10581 echo "$as_me: failed program was:" >&5
10582 sed 's/^/| /' conftest.$ac_ext >&5
10584 ac_cv_type_error_t=no
10587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10589 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10590 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10591 if test $ac_cv_type_error_t = yes; then
10593 cat >>confdefs.h <<_ACEOF
10594 #define HAVE_ERROR_T 1
10600 cat >>confdefs.h <<\_ACEOF
10601 #define error_t int
10612 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10614 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10615 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10617 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10618 echo $ECHO_N "(cached) $ECHO_C" >&6
10620 cat >conftest.$ac_ext <<_ACEOF
10623 cat confdefs.h >>conftest.$ac_ext
10624 cat >>conftest.$ac_ext <<_ACEOF
10625 /* end confdefs.h. */
10626 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10628 #define $ac_func innocuous_$ac_func
10630 /* System header to define __stub macros and hopefully few prototypes,
10631 which can conflict with char $ac_func (); below.
10632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10633 <limits.h> exists even on freestanding compilers. */
10636 # include <limits.h>
10638 # include <assert.h>
10643 /* Override any GCC internal prototype to avoid an error.
10644 Use char because int might match the return type of a GCC
10645 builtin and then its argument prototype would still apply. */
10650 /* The GNU C library defines this for functions which it implements
10651 to always fail with ENOSYS. Some functions are actually named
10652 something starting with __ and the normal name is an alias. */
10653 #if defined __stub_$ac_func || defined __stub___$ac_func
10660 return $ac_func ();
10665 rm -f conftest.$ac_objext conftest$ac_exeext
10666 if { (ac_try="$ac_link"
10667 case "(($ac_try" in
10668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10669 *) ac_try_echo=$ac_try;;
10671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10672 (eval "$ac_link") 2>conftest.er1
10674 grep -v '^ *+' conftest.er1 >conftest.err
10676 cat conftest.err >&5
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); } &&
10679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10680 { (case "(($ac_try" in
10681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10682 *) ac_try_echo=$ac_try;;
10684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10685 (eval "$ac_try") 2>&5
10687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688 (exit $ac_status); }; } &&
10689 { ac_try='test -s conftest$ac_exeext'
10690 { (case "(($ac_try" in
10691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10692 *) ac_try_echo=$ac_try;;
10694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10695 (eval "$ac_try") 2>&5
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); }; }; then
10699 eval "$as_ac_var=yes"
10701 echo "$as_me: failed program was:" >&5
10702 sed 's/^/| /' conftest.$ac_ext >&5
10704 eval "$as_ac_var=no"
10707 rm -f core conftest.err conftest.$ac_objext \
10708 conftest$ac_exeext conftest.$ac_ext
10710 ac_res=`eval echo '${'$as_ac_var'}'`
10711 { echo "$as_me:$LINENO: result: $ac_res" >&5
10712 echo "${ECHO_T}$ac_res" >&6; }
10713 if test `eval echo '${'$as_ac_var'}'` = yes; then
10714 cat >>confdefs.h <<_ACEOF
10715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10748 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10751 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10753 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10756 echo $ECHO_N "(cached) $ECHO_C" >&6
10758 ac_res=`eval echo '${'$as_ac_Header'}'`
10759 { echo "$as_me:$LINENO: result: $ac_res" >&5
10760 echo "${ECHO_T}$ac_res" >&6; }
10762 # Is the header compilable?
10763 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10764 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10765 cat >conftest.$ac_ext <<_ACEOF
10768 cat confdefs.h >>conftest.$ac_ext
10769 cat >>conftest.$ac_ext <<_ACEOF
10770 /* end confdefs.h. */
10771 $ac_includes_default
10772 #include <$ac_header>
10774 rm -f conftest.$ac_objext
10775 if { (ac_try="$ac_compile"
10776 case "(($ac_try" in
10777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10778 *) ac_try_echo=$ac_try;;
10780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10781 (eval "$ac_compile") 2>conftest.er1
10783 grep -v '^ *+' conftest.er1 >conftest.err
10785 cat conftest.err >&5
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); } &&
10788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10789 { (case "(($ac_try" in
10790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10791 *) ac_try_echo=$ac_try;;
10793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10794 (eval "$ac_try") 2>&5
10796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797 (exit $ac_status); }; } &&
10798 { ac_try='test -s conftest.$ac_objext'
10799 { (case "(($ac_try" in
10800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10801 *) ac_try_echo=$ac_try;;
10803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10804 (eval "$ac_try") 2>&5
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); }; }; then
10808 ac_header_compiler=yes
10810 echo "$as_me: failed program was:" >&5
10811 sed 's/^/| /' conftest.$ac_ext >&5
10813 ac_header_compiler=no
10816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10817 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10818 echo "${ECHO_T}$ac_header_compiler" >&6; }
10820 # Is the header present?
10821 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10822 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10823 cat >conftest.$ac_ext <<_ACEOF
10826 cat confdefs.h >>conftest.$ac_ext
10827 cat >>conftest.$ac_ext <<_ACEOF
10828 /* end confdefs.h. */
10829 #include <$ac_header>
10831 if { (ac_try="$ac_cpp conftest.$ac_ext"
10832 case "(($ac_try" in
10833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10834 *) ac_try_echo=$ac_try;;
10836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10839 grep -v '^ *+' conftest.er1 >conftest.err
10841 cat conftest.err >&5
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); } >/dev/null; then
10844 if test -s conftest.err; then
10845 ac_cpp_err=$ac_c_preproc_warn_flag
10846 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10853 if test -z "$ac_cpp_err"; then
10854 ac_header_preproc=yes
10856 echo "$as_me: failed program was:" >&5
10857 sed 's/^/| /' conftest.$ac_ext >&5
10859 ac_header_preproc=no
10862 rm -f conftest.err conftest.$ac_ext
10863 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10864 echo "${ECHO_T}$ac_header_preproc" >&6; }
10866 # So? What about this header?
10867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10869 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10870 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10872 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10873 ac_header_preproc=yes
10876 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10877 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10878 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10879 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10880 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10881 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10882 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10883 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10885 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10886 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10887 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10889 ## ------------------------------------ ##
10890 ## Report this to http://llvm.org/bugs/ ##
10891 ## ------------------------------------ ##
10893 ) | sed "s/^/$as_me: WARNING: /" >&2
10896 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10898 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10899 echo $ECHO_N "(cached) $ECHO_C" >&6
10901 eval "$as_ac_Header=\$ac_header_preproc"
10903 ac_res=`eval echo '${'$as_ac_Header'}'`
10904 { echo "$as_me:$LINENO: result: $ac_res" >&5
10905 echo "${ECHO_T}$ac_res" >&6; }
10908 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10909 cat >>confdefs.h <<_ACEOF
10910 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10921 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
10923 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10925 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10928 echo $ECHO_N "(cached) $ECHO_C" >&6
10930 ac_res=`eval echo '${'$as_ac_Header'}'`
10931 { echo "$as_me:$LINENO: result: $ac_res" >&5
10932 echo "${ECHO_T}$ac_res" >&6; }
10934 # Is the header compilable?
10935 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10936 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10937 cat >conftest.$ac_ext <<_ACEOF
10940 cat confdefs.h >>conftest.$ac_ext
10941 cat >>conftest.$ac_ext <<_ACEOF
10942 /* end confdefs.h. */
10943 $ac_includes_default
10944 #include <$ac_header>
10946 rm -f conftest.$ac_objext
10947 if { (ac_try="$ac_compile"
10948 case "(($ac_try" in
10949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10950 *) ac_try_echo=$ac_try;;
10952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10953 (eval "$ac_compile") 2>conftest.er1
10955 grep -v '^ *+' conftest.er1 >conftest.err
10957 cat conftest.err >&5
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); } &&
10960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10961 { (case "(($ac_try" in
10962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10963 *) ac_try_echo=$ac_try;;
10965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10966 (eval "$ac_try") 2>&5
10968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969 (exit $ac_status); }; } &&
10970 { ac_try='test -s conftest.$ac_objext'
10971 { (case "(($ac_try" in
10972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10973 *) ac_try_echo=$ac_try;;
10975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10976 (eval "$ac_try") 2>&5
10978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); }; }; then
10980 ac_header_compiler=yes
10982 echo "$as_me: failed program was:" >&5
10983 sed 's/^/| /' conftest.$ac_ext >&5
10985 ac_header_compiler=no
10988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10989 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10990 echo "${ECHO_T}$ac_header_compiler" >&6; }
10992 # Is the header present?
10993 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10994 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10995 cat >conftest.$ac_ext <<_ACEOF
10998 cat confdefs.h >>conftest.$ac_ext
10999 cat >>conftest.$ac_ext <<_ACEOF
11000 /* end confdefs.h. */
11001 #include <$ac_header>
11003 if { (ac_try="$ac_cpp conftest.$ac_ext"
11004 case "(($ac_try" in
11005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11006 *) ac_try_echo=$ac_try;;
11008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11011 grep -v '^ *+' conftest.er1 >conftest.err
11013 cat conftest.err >&5
11014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); } >/dev/null; then
11016 if test -s conftest.err; then
11017 ac_cpp_err=$ac_c_preproc_warn_flag
11018 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11025 if test -z "$ac_cpp_err"; then
11026 ac_header_preproc=yes
11028 echo "$as_me: failed program was:" >&5
11029 sed 's/^/| /' conftest.$ac_ext >&5
11031 ac_header_preproc=no
11034 rm -f conftest.err conftest.$ac_ext
11035 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11036 echo "${ECHO_T}$ac_header_preproc" >&6; }
11038 # So? What about this header?
11039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11041 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11042 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11044 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11045 ac_header_preproc=yes
11048 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11049 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11050 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11051 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11052 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11053 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11054 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11055 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11057 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11058 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11059 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11061 ## ------------------------------------ ##
11062 ## Report this to http://llvm.org/bugs/ ##
11063 ## ------------------------------------ ##
11065 ) | sed "s/^/$as_me: WARNING: /" >&2
11068 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11071 echo $ECHO_N "(cached) $ECHO_C" >&6
11073 eval "$as_ac_Header=\$ac_header_preproc"
11075 ac_res=`eval echo '${'$as_ac_Header'}'`
11076 { echo "$as_me:$LINENO: result: $ac_res" >&5
11077 echo "${ECHO_T}$ac_res" >&6; }
11080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11081 cat >>confdefs.h <<_ACEOF
11082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11091 for ac_header in string.h strings.h
11093 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11095 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11098 echo $ECHO_N "(cached) $ECHO_C" >&6
11100 ac_res=`eval echo '${'$as_ac_Header'}'`
11101 { echo "$as_me:$LINENO: result: $ac_res" >&5
11102 echo "${ECHO_T}$ac_res" >&6; }
11104 # Is the header compilable?
11105 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11106 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11107 cat >conftest.$ac_ext <<_ACEOF
11110 cat confdefs.h >>conftest.$ac_ext
11111 cat >>conftest.$ac_ext <<_ACEOF
11112 /* end confdefs.h. */
11113 $ac_includes_default
11114 #include <$ac_header>
11116 rm -f conftest.$ac_objext
11117 if { (ac_try="$ac_compile"
11118 case "(($ac_try" in
11119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11120 *) ac_try_echo=$ac_try;;
11122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11123 (eval "$ac_compile") 2>conftest.er1
11125 grep -v '^ *+' conftest.er1 >conftest.err
11127 cat conftest.err >&5
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); } &&
11130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11131 { (case "(($ac_try" in
11132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11133 *) ac_try_echo=$ac_try;;
11135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11136 (eval "$ac_try") 2>&5
11138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139 (exit $ac_status); }; } &&
11140 { ac_try='test -s conftest.$ac_objext'
11141 { (case "(($ac_try" in
11142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11143 *) ac_try_echo=$ac_try;;
11145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11146 (eval "$ac_try") 2>&5
11148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149 (exit $ac_status); }; }; then
11150 ac_header_compiler=yes
11152 echo "$as_me: failed program was:" >&5
11153 sed 's/^/| /' conftest.$ac_ext >&5
11155 ac_header_compiler=no
11158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11159 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11160 echo "${ECHO_T}$ac_header_compiler" >&6; }
11162 # Is the header present?
11163 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11164 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11165 cat >conftest.$ac_ext <<_ACEOF
11168 cat confdefs.h >>conftest.$ac_ext
11169 cat >>conftest.$ac_ext <<_ACEOF
11170 /* end confdefs.h. */
11171 #include <$ac_header>
11173 if { (ac_try="$ac_cpp conftest.$ac_ext"
11174 case "(($ac_try" in
11175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11176 *) ac_try_echo=$ac_try;;
11178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11179 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11181 grep -v '^ *+' conftest.er1 >conftest.err
11183 cat conftest.err >&5
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); } >/dev/null; then
11186 if test -s conftest.err; then
11187 ac_cpp_err=$ac_c_preproc_warn_flag
11188 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11195 if test -z "$ac_cpp_err"; then
11196 ac_header_preproc=yes
11198 echo "$as_me: failed program was:" >&5
11199 sed 's/^/| /' conftest.$ac_ext >&5
11201 ac_header_preproc=no
11204 rm -f conftest.err conftest.$ac_ext
11205 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11206 echo "${ECHO_T}$ac_header_preproc" >&6; }
11208 # So? What about this header?
11209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11211 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11212 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11214 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11215 ac_header_preproc=yes
11218 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11219 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11220 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11221 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11222 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11223 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11224 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11225 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11227 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11228 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11229 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11231 ## ------------------------------------ ##
11232 ## Report this to http://llvm.org/bugs/ ##
11233 ## ------------------------------------ ##
11235 ) | sed "s/^/$as_me: WARNING: /" >&2
11238 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11241 echo $ECHO_N "(cached) $ECHO_C" >&6
11243 eval "$as_ac_Header=\$ac_header_preproc"
11245 ac_res=`eval echo '${'$as_ac_Header'}'`
11246 { echo "$as_me:$LINENO: result: $ac_res" >&5
11247 echo "${ECHO_T}$ac_res" >&6; }
11250 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11251 cat >>confdefs.h <<_ACEOF
11252 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11262 for ac_func in strchr index
11264 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11265 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11266 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11267 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11268 echo $ECHO_N "(cached) $ECHO_C" >&6
11270 cat >conftest.$ac_ext <<_ACEOF
11273 cat confdefs.h >>conftest.$ac_ext
11274 cat >>conftest.$ac_ext <<_ACEOF
11275 /* end confdefs.h. */
11276 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11277 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11278 #define $ac_func innocuous_$ac_func
11280 /* System header to define __stub macros and hopefully few prototypes,
11281 which can conflict with char $ac_func (); below.
11282 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11283 <limits.h> exists even on freestanding compilers. */
11286 # include <limits.h>
11288 # include <assert.h>
11293 /* Override any GCC internal prototype to avoid an error.
11294 Use char because int might match the return type of a GCC
11295 builtin and then its argument prototype would still apply. */
11300 /* The GNU C library defines this for functions which it implements
11301 to always fail with ENOSYS. Some functions are actually named
11302 something starting with __ and the normal name is an alias. */
11303 #if defined __stub_$ac_func || defined __stub___$ac_func
11310 return $ac_func ();
11315 rm -f conftest.$ac_objext conftest$ac_exeext
11316 if { (ac_try="$ac_link"
11317 case "(($ac_try" in
11318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11319 *) ac_try_echo=$ac_try;;
11321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11322 (eval "$ac_link") 2>conftest.er1
11324 grep -v '^ *+' conftest.er1 >conftest.err
11326 cat conftest.err >&5
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); } &&
11329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11330 { (case "(($ac_try" in
11331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11332 *) ac_try_echo=$ac_try;;
11334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11335 (eval "$ac_try") 2>&5
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); }; } &&
11339 { ac_try='test -s conftest$ac_exeext'
11340 { (case "(($ac_try" in
11341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11342 *) ac_try_echo=$ac_try;;
11344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11345 (eval "$ac_try") 2>&5
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); }; }; then
11349 eval "$as_ac_var=yes"
11351 echo "$as_me: failed program was:" >&5
11352 sed 's/^/| /' conftest.$ac_ext >&5
11354 eval "$as_ac_var=no"
11357 rm -f core conftest.err conftest.$ac_objext \
11358 conftest$ac_exeext conftest.$ac_ext
11360 ac_res=`eval echo '${'$as_ac_var'}'`
11361 { echo "$as_me:$LINENO: result: $ac_res" >&5
11362 echo "${ECHO_T}$ac_res" >&6; }
11363 if test `eval echo '${'$as_ac_var'}'` = yes; then
11364 cat >>confdefs.h <<_ACEOF
11365 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11373 for ac_func in strrchr rindex
11375 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11376 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11377 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11378 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11379 echo $ECHO_N "(cached) $ECHO_C" >&6
11381 cat >conftest.$ac_ext <<_ACEOF
11384 cat confdefs.h >>conftest.$ac_ext
11385 cat >>conftest.$ac_ext <<_ACEOF
11386 /* end confdefs.h. */
11387 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11388 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11389 #define $ac_func innocuous_$ac_func
11391 /* System header to define __stub macros and hopefully few prototypes,
11392 which can conflict with char $ac_func (); below.
11393 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11394 <limits.h> exists even on freestanding compilers. */
11397 # include <limits.h>
11399 # include <assert.h>
11404 /* Override any GCC internal prototype to avoid an error.
11405 Use char because int might match the return type of a GCC
11406 builtin and then its argument prototype would still apply. */
11411 /* The GNU C library defines this for functions which it implements
11412 to always fail with ENOSYS. Some functions are actually named
11413 something starting with __ and the normal name is an alias. */
11414 #if defined __stub_$ac_func || defined __stub___$ac_func
11421 return $ac_func ();
11426 rm -f conftest.$ac_objext conftest$ac_exeext
11427 if { (ac_try="$ac_link"
11428 case "(($ac_try" in
11429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11430 *) ac_try_echo=$ac_try;;
11432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11433 (eval "$ac_link") 2>conftest.er1
11435 grep -v '^ *+' conftest.er1 >conftest.err
11437 cat conftest.err >&5
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); } &&
11440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11441 { (case "(($ac_try" in
11442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11443 *) ac_try_echo=$ac_try;;
11445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11446 (eval "$ac_try") 2>&5
11448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449 (exit $ac_status); }; } &&
11450 { ac_try='test -s conftest$ac_exeext'
11451 { (case "(($ac_try" in
11452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11453 *) ac_try_echo=$ac_try;;
11455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11456 (eval "$ac_try") 2>&5
11458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459 (exit $ac_status); }; }; then
11460 eval "$as_ac_var=yes"
11462 echo "$as_me: failed program was:" >&5
11463 sed 's/^/| /' conftest.$ac_ext >&5
11465 eval "$as_ac_var=no"
11468 rm -f core conftest.err conftest.$ac_objext \
11469 conftest$ac_exeext conftest.$ac_ext
11471 ac_res=`eval echo '${'$as_ac_var'}'`
11472 { echo "$as_me:$LINENO: result: $ac_res" >&5
11473 echo "${ECHO_T}$ac_res" >&6; }
11474 if test `eval echo '${'$as_ac_var'}'` = yes; then
11475 cat >>confdefs.h <<_ACEOF
11476 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11484 for ac_func in memcpy bcopy
11486 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11487 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11489 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11490 echo $ECHO_N "(cached) $ECHO_C" >&6
11492 cat >conftest.$ac_ext <<_ACEOF
11495 cat confdefs.h >>conftest.$ac_ext
11496 cat >>conftest.$ac_ext <<_ACEOF
11497 /* end confdefs.h. */
11498 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11500 #define $ac_func innocuous_$ac_func
11502 /* System header to define __stub macros and hopefully few prototypes,
11503 which can conflict with char $ac_func (); below.
11504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11505 <limits.h> exists even on freestanding compilers. */
11508 # include <limits.h>
11510 # include <assert.h>
11515 /* Override any GCC internal prototype to avoid an error.
11516 Use char because int might match the return type of a GCC
11517 builtin and then its argument prototype would still apply. */
11522 /* The GNU C library defines this for functions which it implements
11523 to always fail with ENOSYS. Some functions are actually named
11524 something starting with __ and the normal name is an alias. */
11525 #if defined __stub_$ac_func || defined __stub___$ac_func
11532 return $ac_func ();
11537 rm -f conftest.$ac_objext conftest$ac_exeext
11538 if { (ac_try="$ac_link"
11539 case "(($ac_try" in
11540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11541 *) ac_try_echo=$ac_try;;
11543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11544 (eval "$ac_link") 2>conftest.er1
11546 grep -v '^ *+' conftest.er1 >conftest.err
11548 cat conftest.err >&5
11549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550 (exit $ac_status); } &&
11551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11552 { (case "(($ac_try" in
11553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11554 *) ac_try_echo=$ac_try;;
11556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11557 (eval "$ac_try") 2>&5
11559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560 (exit $ac_status); }; } &&
11561 { ac_try='test -s conftest$ac_exeext'
11562 { (case "(($ac_try" in
11563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11564 *) ac_try_echo=$ac_try;;
11566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11567 (eval "$ac_try") 2>&5
11569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570 (exit $ac_status); }; }; then
11571 eval "$as_ac_var=yes"
11573 echo "$as_me: failed program was:" >&5
11574 sed 's/^/| /' conftest.$ac_ext >&5
11576 eval "$as_ac_var=no"
11579 rm -f core conftest.err conftest.$ac_objext \
11580 conftest$ac_exeext conftest.$ac_ext
11582 ac_res=`eval echo '${'$as_ac_var'}'`
11583 { echo "$as_me:$LINENO: result: $ac_res" >&5
11584 echo "${ECHO_T}$ac_res" >&6; }
11585 if test `eval echo '${'$as_ac_var'}'` = yes; then
11586 cat >>confdefs.h <<_ACEOF
11587 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11595 for ac_func in memmove strcmp
11597 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11598 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11599 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11600 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11601 echo $ECHO_N "(cached) $ECHO_C" >&6
11603 cat >conftest.$ac_ext <<_ACEOF
11606 cat confdefs.h >>conftest.$ac_ext
11607 cat >>conftest.$ac_ext <<_ACEOF
11608 /* end confdefs.h. */
11609 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11611 #define $ac_func innocuous_$ac_func
11613 /* System header to define __stub macros and hopefully few prototypes,
11614 which can conflict with char $ac_func (); below.
11615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11616 <limits.h> exists even on freestanding compilers. */
11619 # include <limits.h>
11621 # include <assert.h>
11626 /* Override any GCC internal prototype to avoid an error.
11627 Use char because int might match the return type of a GCC
11628 builtin and then its argument prototype would still apply. */
11633 /* The GNU C library defines this for functions which it implements
11634 to always fail with ENOSYS. Some functions are actually named
11635 something starting with __ and the normal name is an alias. */
11636 #if defined __stub_$ac_func || defined __stub___$ac_func
11643 return $ac_func ();
11648 rm -f conftest.$ac_objext conftest$ac_exeext
11649 if { (ac_try="$ac_link"
11650 case "(($ac_try" in
11651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11652 *) ac_try_echo=$ac_try;;
11654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11655 (eval "$ac_link") 2>conftest.er1
11657 grep -v '^ *+' conftest.er1 >conftest.err
11659 cat conftest.err >&5
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); } &&
11662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11663 { (case "(($ac_try" in
11664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11665 *) ac_try_echo=$ac_try;;
11667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11668 (eval "$ac_try") 2>&5
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); }; } &&
11672 { ac_try='test -s conftest$ac_exeext'
11673 { (case "(($ac_try" in
11674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11675 *) ac_try_echo=$ac_try;;
11677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11678 (eval "$ac_try") 2>&5
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); }; }; then
11682 eval "$as_ac_var=yes"
11684 echo "$as_me: failed program was:" >&5
11685 sed 's/^/| /' conftest.$ac_ext >&5
11687 eval "$as_ac_var=no"
11690 rm -f core conftest.err conftest.$ac_objext \
11691 conftest$ac_exeext conftest.$ac_ext
11693 ac_res=`eval echo '${'$as_ac_var'}'`
11694 { echo "$as_me:$LINENO: result: $ac_res" >&5
11695 echo "${ECHO_T}$ac_res" >&6; }
11696 if test `eval echo '${'$as_ac_var'}'` = yes; then
11697 cat >>confdefs.h <<_ACEOF
11698 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11707 for ac_func in closedir opendir readdir
11709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11710 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11712 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11713 echo $ECHO_N "(cached) $ECHO_C" >&6
11715 cat >conftest.$ac_ext <<_ACEOF
11718 cat confdefs.h >>conftest.$ac_ext
11719 cat >>conftest.$ac_ext <<_ACEOF
11720 /* end confdefs.h. */
11721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11723 #define $ac_func innocuous_$ac_func
11725 /* System header to define __stub macros and hopefully few prototypes,
11726 which can conflict with char $ac_func (); below.
11727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11728 <limits.h> exists even on freestanding compilers. */
11731 # include <limits.h>
11733 # include <assert.h>
11738 /* Override any GCC internal prototype to avoid an error.
11739 Use char because int might match the return type of a GCC
11740 builtin and then its argument prototype would still apply. */
11745 /* The GNU C library defines this for functions which it implements
11746 to always fail with ENOSYS. Some functions are actually named
11747 something starting with __ and the normal name is an alias. */
11748 #if defined __stub_$ac_func || defined __stub___$ac_func
11755 return $ac_func ();
11760 rm -f conftest.$ac_objext conftest$ac_exeext
11761 if { (ac_try="$ac_link"
11762 case "(($ac_try" in
11763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11764 *) ac_try_echo=$ac_try;;
11766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11767 (eval "$ac_link") 2>conftest.er1
11769 grep -v '^ *+' conftest.er1 >conftest.err
11771 cat conftest.err >&5
11772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773 (exit $ac_status); } &&
11774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11775 { (case "(($ac_try" in
11776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11777 *) ac_try_echo=$ac_try;;
11779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11780 (eval "$ac_try") 2>&5
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); }; } &&
11784 { ac_try='test -s conftest$ac_exeext'
11785 { (case "(($ac_try" in
11786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11787 *) ac_try_echo=$ac_try;;
11789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11790 (eval "$ac_try") 2>&5
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); }; }; then
11794 eval "$as_ac_var=yes"
11796 echo "$as_me: failed program was:" >&5
11797 sed 's/^/| /' conftest.$ac_ext >&5
11799 eval "$as_ac_var=no"
11802 rm -f core conftest.err conftest.$ac_objext \
11803 conftest$ac_exeext conftest.$ac_ext
11805 ac_res=`eval echo '${'$as_ac_var'}'`
11806 { echo "$as_me:$LINENO: result: $ac_res" >&5
11807 echo "${ECHO_T}$ac_res" >&6; }
11808 if test `eval echo '${'$as_ac_var'}'` = yes; then
11809 cat >>confdefs.h <<_ACEOF
11810 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11818 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11819 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11832 if test "$GCC" != "yes" && test "$ICC" != "yes"
11834 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11835 echo "$as_me: error: gcc|icc required but not found" >&2;}
11836 { (exit 1); exit 1; }; }
11839 if test "$GXX" != "yes" && test "$IXX" != "yes"
11841 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11842 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11843 { (exit 1); exit 1; }; }
11846 if test "$GCC" = "yes"
11848 cat >conftest.$ac_ext <<_ACEOF
11849 #if !defined(__GNUC__) || __GNUC__ < 3
11850 #error Unsupported GCC version
11854 rm -f conftest.$ac_objext
11855 if { (ac_try="$ac_compile"
11856 case "(($ac_try" in
11857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11858 *) ac_try_echo=$ac_try;;
11860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11861 (eval "$ac_compile") 2>conftest.er1
11863 grep -v '^ *+' conftest.er1 >conftest.err
11865 cat conftest.err >&5
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); } &&
11868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11869 { (case "(($ac_try" in
11870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11871 *) ac_try_echo=$ac_try;;
11873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11874 (eval "$ac_try") 2>&5
11876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877 (exit $ac_status); }; } &&
11878 { ac_try='test -s conftest.$ac_objext'
11879 { (case "(($ac_try" in
11880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11881 *) ac_try_echo=$ac_try;;
11883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11884 (eval "$ac_try") 2>&5
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); }; }; then
11890 echo "$as_me: failed program was:" >&5
11891 sed 's/^/| /' conftest.$ac_ext >&5
11893 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
11894 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
11895 { (exit 1); exit 1; }; }
11898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11901 if test -z "$llvm_cv_gnu_make_command"
11903 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
11904 echo "$as_me: error: GNU Make required but not found" >&2;}
11905 { (exit 1); exit 1; }; }
11908 { echo "$as_me:$LINENO: result: ok" >&5
11909 echo "${ECHO_T}ok" >&6; }
11911 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
11912 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
11913 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
11915 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
11917 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
11919 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
11920 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
11924 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
11925 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
11926 if test "${ac_cv_lib_m_sin+set}" = set; then
11927 echo $ECHO_N "(cached) $ECHO_C" >&6
11929 ac_check_lib_save_LIBS=$LIBS
11931 cat >conftest.$ac_ext <<_ACEOF
11934 cat confdefs.h >>conftest.$ac_ext
11935 cat >>conftest.$ac_ext <<_ACEOF
11936 /* end confdefs.h. */
11938 /* Override any GCC internal prototype to avoid an error.
11939 Use char because int might match the return type of a GCC
11940 builtin and then its argument prototype would still apply. */
11953 rm -f conftest.$ac_objext conftest$ac_exeext
11954 if { (ac_try="$ac_link"
11955 case "(($ac_try" in
11956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11957 *) ac_try_echo=$ac_try;;
11959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11960 (eval "$ac_link") 2>conftest.er1
11962 grep -v '^ *+' conftest.er1 >conftest.err
11964 cat conftest.err >&5
11965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966 (exit $ac_status); } &&
11967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11968 { (case "(($ac_try" in
11969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11970 *) ac_try_echo=$ac_try;;
11972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11973 (eval "$ac_try") 2>&5
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); }; } &&
11977 { ac_try='test -s conftest$ac_exeext'
11978 { (case "(($ac_try" in
11979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11980 *) ac_try_echo=$ac_try;;
11982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11983 (eval "$ac_try") 2>&5
11985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); }; }; then
11987 ac_cv_lib_m_sin=yes
11989 echo "$as_me: failed program was:" >&5
11990 sed 's/^/| /' conftest.$ac_ext >&5
11995 rm -f core conftest.err conftest.$ac_objext \
11996 conftest$ac_exeext conftest.$ac_ext
11997 LIBS=$ac_check_lib_save_LIBS
11999 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12000 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12001 if test $ac_cv_lib_m_sin = yes; then
12002 cat >>confdefs.h <<_ACEOF
12003 #define HAVE_LIBM 1
12010 if test "$llvm_cv_os_type" = "MingW" ; then
12012 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12013 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12014 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12015 echo $ECHO_N "(cached) $ECHO_C" >&6
12017 ac_check_lib_save_LIBS=$LIBS
12018 LIBS="-limagehlp $LIBS"
12019 cat >conftest.$ac_ext <<_ACEOF
12022 cat confdefs.h >>conftest.$ac_ext
12023 cat >>conftest.$ac_ext <<_ACEOF
12024 /* end confdefs.h. */
12035 rm -f conftest.$ac_objext conftest$ac_exeext
12036 if { (ac_try="$ac_link"
12037 case "(($ac_try" in
12038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12039 *) ac_try_echo=$ac_try;;
12041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12042 (eval "$ac_link") 2>conftest.er1
12044 grep -v '^ *+' conftest.er1 >conftest.err
12046 cat conftest.err >&5
12047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048 (exit $ac_status); } &&
12049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12050 { (case "(($ac_try" in
12051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12052 *) ac_try_echo=$ac_try;;
12054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12055 (eval "$ac_try") 2>&5
12057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058 (exit $ac_status); }; } &&
12059 { ac_try='test -s conftest$ac_exeext'
12060 { (case "(($ac_try" in
12061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12062 *) ac_try_echo=$ac_try;;
12064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12065 (eval "$ac_try") 2>&5
12067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068 (exit $ac_status); }; }; then
12069 ac_cv_lib_imagehlp_main=yes
12071 echo "$as_me: failed program was:" >&5
12072 sed 's/^/| /' conftest.$ac_ext >&5
12074 ac_cv_lib_imagehlp_main=no
12077 rm -f core conftest.err conftest.$ac_objext \
12078 conftest$ac_exeext conftest.$ac_ext
12079 LIBS=$ac_check_lib_save_LIBS
12081 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12082 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12083 if test $ac_cv_lib_imagehlp_main = yes; then
12084 cat >>confdefs.h <<_ACEOF
12085 #define HAVE_LIBIMAGEHLP 1
12088 LIBS="-limagehlp $LIBS"
12093 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12094 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12095 if test "${ac_cv_lib_psapi_main+set}" = set; then
12096 echo $ECHO_N "(cached) $ECHO_C" >&6
12098 ac_check_lib_save_LIBS=$LIBS
12099 LIBS="-lpsapi $LIBS"
12100 cat >conftest.$ac_ext <<_ACEOF
12103 cat confdefs.h >>conftest.$ac_ext
12104 cat >>conftest.$ac_ext <<_ACEOF
12105 /* end confdefs.h. */
12116 rm -f conftest.$ac_objext conftest$ac_exeext
12117 if { (ac_try="$ac_link"
12118 case "(($ac_try" in
12119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12120 *) ac_try_echo=$ac_try;;
12122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12123 (eval "$ac_link") 2>conftest.er1
12125 grep -v '^ *+' conftest.er1 >conftest.err
12127 cat conftest.err >&5
12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 (exit $ac_status); } &&
12130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12131 { (case "(($ac_try" in
12132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12133 *) ac_try_echo=$ac_try;;
12135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12136 (eval "$ac_try") 2>&5
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); }; } &&
12140 { ac_try='test -s conftest$ac_exeext'
12141 { (case "(($ac_try" in
12142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12143 *) ac_try_echo=$ac_try;;
12145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12146 (eval "$ac_try") 2>&5
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); }; }; then
12150 ac_cv_lib_psapi_main=yes
12152 echo "$as_me: failed program was:" >&5
12153 sed 's/^/| /' conftest.$ac_ext >&5
12155 ac_cv_lib_psapi_main=no
12158 rm -f core conftest.err conftest.$ac_objext \
12159 conftest$ac_exeext conftest.$ac_ext
12160 LIBS=$ac_check_lib_save_LIBS
12162 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12163 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12164 if test $ac_cv_lib_psapi_main = yes; then
12165 cat >>confdefs.h <<_ACEOF
12166 #define HAVE_LIBPSAPI 1
12169 LIBS="-lpsapi $LIBS"
12175 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12176 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12177 if test "${ac_cv_search_dlopen+set}" = set; then
12178 echo $ECHO_N "(cached) $ECHO_C" >&6
12180 ac_func_search_save_LIBS=$LIBS
12181 cat >conftest.$ac_ext <<_ACEOF
12184 cat confdefs.h >>conftest.$ac_ext
12185 cat >>conftest.$ac_ext <<_ACEOF
12186 /* end confdefs.h. */
12188 /* Override any GCC internal prototype to avoid an error.
12189 Use char because int might match the return type of a GCC
12190 builtin and then its argument prototype would still apply. */
12203 for ac_lib in '' dl; do
12204 if test -z "$ac_lib"; then
12205 ac_res="none required"
12208 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12210 rm -f conftest.$ac_objext conftest$ac_exeext
12211 if { (ac_try="$ac_link"
12212 case "(($ac_try" in
12213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12214 *) ac_try_echo=$ac_try;;
12216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12217 (eval "$ac_link") 2>conftest.er1
12219 grep -v '^ *+' conftest.er1 >conftest.err
12221 cat conftest.err >&5
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); } &&
12224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12225 { (case "(($ac_try" in
12226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12227 *) ac_try_echo=$ac_try;;
12229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12230 (eval "$ac_try") 2>&5
12232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233 (exit $ac_status); }; } &&
12234 { ac_try='test -s conftest$ac_exeext'
12235 { (case "(($ac_try" in
12236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12237 *) ac_try_echo=$ac_try;;
12239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12240 (eval "$ac_try") 2>&5
12242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243 (exit $ac_status); }; }; then
12244 ac_cv_search_dlopen=$ac_res
12246 echo "$as_me: failed program was:" >&5
12247 sed 's/^/| /' conftest.$ac_ext >&5
12252 rm -f core conftest.err conftest.$ac_objext \
12254 if test "${ac_cv_search_dlopen+set}" = set; then
12258 if test "${ac_cv_search_dlopen+set}" = set; then
12261 ac_cv_search_dlopen=no
12263 rm conftest.$ac_ext
12264 LIBS=$ac_func_search_save_LIBS
12266 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12267 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12268 ac_res=$ac_cv_search_dlopen
12269 if test "$ac_res" != no; then
12270 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12272 cat >>confdefs.h <<\_ACEOF
12273 #define HAVE_DLOPEN 1
12277 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12278 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12282 if test "$llvm_cv_enable_libffi" = "yes" ; then
12283 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12284 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12285 if test "${ac_cv_search_ffi_call+set}" = set; then
12286 echo $ECHO_N "(cached) $ECHO_C" >&6
12288 ac_func_search_save_LIBS=$LIBS
12289 cat >conftest.$ac_ext <<_ACEOF
12292 cat confdefs.h >>conftest.$ac_ext
12293 cat >>conftest.$ac_ext <<_ACEOF
12294 /* end confdefs.h. */
12296 /* Override any GCC internal prototype to avoid an error.
12297 Use char because int might match the return type of a GCC
12298 builtin and then its argument prototype would still apply. */
12306 return ffi_call ();
12311 for ac_lib in '' ffi; do
12312 if test -z "$ac_lib"; then
12313 ac_res="none required"
12316 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12318 rm -f conftest.$ac_objext conftest$ac_exeext
12319 if { (ac_try="$ac_link"
12320 case "(($ac_try" in
12321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12322 *) ac_try_echo=$ac_try;;
12324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12325 (eval "$ac_link") 2>conftest.er1
12327 grep -v '^ *+' conftest.er1 >conftest.err
12329 cat conftest.err >&5
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); } &&
12332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12333 { (case "(($ac_try" in
12334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12335 *) ac_try_echo=$ac_try;;
12337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12338 (eval "$ac_try") 2>&5
12340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); }; } &&
12342 { ac_try='test -s conftest$ac_exeext'
12343 { (case "(($ac_try" in
12344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12345 *) ac_try_echo=$ac_try;;
12347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12348 (eval "$ac_try") 2>&5
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); }; }; then
12352 ac_cv_search_ffi_call=$ac_res
12354 echo "$as_me: failed program was:" >&5
12355 sed 's/^/| /' conftest.$ac_ext >&5
12360 rm -f core conftest.err conftest.$ac_objext \
12362 if test "${ac_cv_search_ffi_call+set}" = set; then
12366 if test "${ac_cv_search_ffi_call+set}" = set; then
12369 ac_cv_search_ffi_call=no
12371 rm conftest.$ac_ext
12372 LIBS=$ac_func_search_save_LIBS
12374 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12375 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12376 ac_res=$ac_cv_search_ffi_call
12377 if test "$ac_res" != no; then
12378 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12380 cat >>confdefs.h <<\_ACEOF
12381 #define HAVE_FFI_CALL 1
12385 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12386 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12387 { (exit 1); exit 1; }; }
12392 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12393 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12394 if test "${ac_cv_search_mallinfo+set}" = set; then
12395 echo $ECHO_N "(cached) $ECHO_C" >&6
12397 ac_func_search_save_LIBS=$LIBS
12398 cat >conftest.$ac_ext <<_ACEOF
12401 cat confdefs.h >>conftest.$ac_ext
12402 cat >>conftest.$ac_ext <<_ACEOF
12403 /* end confdefs.h. */
12405 /* Override any GCC internal prototype to avoid an error.
12406 Use char because int might match the return type of a GCC
12407 builtin and then its argument prototype would still apply. */
12415 return mallinfo ();
12420 for ac_lib in '' malloc; do
12421 if test -z "$ac_lib"; then
12422 ac_res="none required"
12425 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12427 rm -f conftest.$ac_objext conftest$ac_exeext
12428 if { (ac_try="$ac_link"
12429 case "(($ac_try" in
12430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12431 *) ac_try_echo=$ac_try;;
12433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12434 (eval "$ac_link") 2>conftest.er1
12436 grep -v '^ *+' conftest.er1 >conftest.err
12438 cat conftest.err >&5
12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); } &&
12441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12442 { (case "(($ac_try" in
12443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12444 *) ac_try_echo=$ac_try;;
12446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12447 (eval "$ac_try") 2>&5
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); }; } &&
12451 { ac_try='test -s conftest$ac_exeext'
12452 { (case "(($ac_try" in
12453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12454 *) ac_try_echo=$ac_try;;
12456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12457 (eval "$ac_try") 2>&5
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); }; }; then
12461 ac_cv_search_mallinfo=$ac_res
12463 echo "$as_me: failed program was:" >&5
12464 sed 's/^/| /' conftest.$ac_ext >&5
12469 rm -f core conftest.err conftest.$ac_objext \
12471 if test "${ac_cv_search_mallinfo+set}" = set; then
12475 if test "${ac_cv_search_mallinfo+set}" = set; then
12478 ac_cv_search_mallinfo=no
12480 rm conftest.$ac_ext
12481 LIBS=$ac_func_search_save_LIBS
12483 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12484 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12485 ac_res=$ac_cv_search_mallinfo
12486 if test "$ac_res" != no; then
12487 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12489 cat >>confdefs.h <<\_ACEOF
12490 #define HAVE_MALLINFO 1
12496 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12498 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12499 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12500 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12501 echo $ECHO_N "(cached) $ECHO_C" >&6
12503 ac_check_lib_save_LIBS=$LIBS
12504 LIBS="-lpthread $LIBS"
12505 cat >conftest.$ac_ext <<_ACEOF
12508 cat confdefs.h >>conftest.$ac_ext
12509 cat >>conftest.$ac_ext <<_ACEOF
12510 /* end confdefs.h. */
12512 /* Override any GCC internal prototype to avoid an error.
12513 Use char because int might match the return type of a GCC
12514 builtin and then its argument prototype would still apply. */
12518 char pthread_mutex_init ();
12522 return pthread_mutex_init ();
12527 rm -f conftest.$ac_objext conftest$ac_exeext
12528 if { (ac_try="$ac_link"
12529 case "(($ac_try" in
12530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12531 *) ac_try_echo=$ac_try;;
12533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12534 (eval "$ac_link") 2>conftest.er1
12536 grep -v '^ *+' conftest.er1 >conftest.err
12538 cat conftest.err >&5
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); } &&
12541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12542 { (case "(($ac_try" in
12543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12544 *) ac_try_echo=$ac_try;;
12546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12547 (eval "$ac_try") 2>&5
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); }; } &&
12551 { ac_try='test -s conftest$ac_exeext'
12552 { (case "(($ac_try" in
12553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12554 *) ac_try_echo=$ac_try;;
12556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12557 (eval "$ac_try") 2>&5
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); }; }; then
12561 ac_cv_lib_pthread_pthread_mutex_init=yes
12563 echo "$as_me: failed program was:" >&5
12564 sed 's/^/| /' conftest.$ac_ext >&5
12566 ac_cv_lib_pthread_pthread_mutex_init=no
12569 rm -f core conftest.err conftest.$ac_objext \
12570 conftest$ac_exeext conftest.$ac_ext
12571 LIBS=$ac_check_lib_save_LIBS
12573 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12574 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12575 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12576 cat >>confdefs.h <<_ACEOF
12577 #define HAVE_LIBPTHREAD 1
12580 LIBS="-lpthread $LIBS"
12584 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12585 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12586 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12587 echo $ECHO_N "(cached) $ECHO_C" >&6
12589 ac_func_search_save_LIBS=$LIBS
12590 cat >conftest.$ac_ext <<_ACEOF
12593 cat confdefs.h >>conftest.$ac_ext
12594 cat >>conftest.$ac_ext <<_ACEOF
12595 /* end confdefs.h. */
12597 /* Override any GCC internal prototype to avoid an error.
12598 Use char because int might match the return type of a GCC
12599 builtin and then its argument prototype would still apply. */
12603 char pthread_mutex_lock ();
12607 return pthread_mutex_lock ();
12612 for ac_lib in '' pthread; do
12613 if test -z "$ac_lib"; then
12614 ac_res="none required"
12617 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12619 rm -f conftest.$ac_objext conftest$ac_exeext
12620 if { (ac_try="$ac_link"
12621 case "(($ac_try" in
12622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12623 *) ac_try_echo=$ac_try;;
12625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12626 (eval "$ac_link") 2>conftest.er1
12628 grep -v '^ *+' conftest.er1 >conftest.err
12630 cat conftest.err >&5
12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 (exit $ac_status); } &&
12633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12634 { (case "(($ac_try" in
12635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12636 *) ac_try_echo=$ac_try;;
12638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12639 (eval "$ac_try") 2>&5
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); }; } &&
12643 { ac_try='test -s conftest$ac_exeext'
12644 { (case "(($ac_try" in
12645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12646 *) ac_try_echo=$ac_try;;
12648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12649 (eval "$ac_try") 2>&5
12651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); }; }; then
12653 ac_cv_search_pthread_mutex_lock=$ac_res
12655 echo "$as_me: failed program was:" >&5
12656 sed 's/^/| /' conftest.$ac_ext >&5
12661 rm -f core conftest.err conftest.$ac_objext \
12663 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12667 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12670 ac_cv_search_pthread_mutex_lock=no
12672 rm conftest.$ac_ext
12673 LIBS=$ac_func_search_save_LIBS
12675 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12676 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12677 ac_res=$ac_cv_search_pthread_mutex_lock
12678 if test "$ac_res" != no; then
12679 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12681 cat >>confdefs.h <<\_ACEOF
12682 #define HAVE_PTHREAD_MUTEX_LOCK 1
12687 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12688 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12689 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12690 echo $ECHO_N "(cached) $ECHO_C" >&6
12692 ac_func_search_save_LIBS=$LIBS
12693 cat >conftest.$ac_ext <<_ACEOF
12696 cat confdefs.h >>conftest.$ac_ext
12697 cat >>conftest.$ac_ext <<_ACEOF
12698 /* end confdefs.h. */
12700 /* Override any GCC internal prototype to avoid an error.
12701 Use char because int might match the return type of a GCC
12702 builtin and then its argument prototype would still apply. */
12706 char pthread_rwlock_init ();
12710 return pthread_rwlock_init ();
12715 for ac_lib in '' pthread; do
12716 if test -z "$ac_lib"; then
12717 ac_res="none required"
12720 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12722 rm -f conftest.$ac_objext conftest$ac_exeext
12723 if { (ac_try="$ac_link"
12724 case "(($ac_try" in
12725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12726 *) ac_try_echo=$ac_try;;
12728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12729 (eval "$ac_link") 2>conftest.er1
12731 grep -v '^ *+' conftest.er1 >conftest.err
12733 cat conftest.err >&5
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); } &&
12736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12737 { (case "(($ac_try" in
12738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12739 *) ac_try_echo=$ac_try;;
12741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12742 (eval "$ac_try") 2>&5
12744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); }; } &&
12746 { ac_try='test -s conftest$ac_exeext'
12747 { (case "(($ac_try" in
12748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12749 *) ac_try_echo=$ac_try;;
12751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12752 (eval "$ac_try") 2>&5
12754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755 (exit $ac_status); }; }; then
12756 ac_cv_search_pthread_rwlock_init=$ac_res
12758 echo "$as_me: failed program was:" >&5
12759 sed 's/^/| /' conftest.$ac_ext >&5
12764 rm -f core conftest.err conftest.$ac_objext \
12766 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12770 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12773 ac_cv_search_pthread_rwlock_init=no
12775 rm conftest.$ac_ext
12776 LIBS=$ac_func_search_save_LIBS
12778 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12779 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12780 ac_res=$ac_cv_search_pthread_rwlock_init
12781 if test "$ac_res" != no; then
12782 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12784 cat >>confdefs.h <<\_ACEOF
12785 #define HAVE_PTHREAD_RWLOCK_INIT 1
12790 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12791 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12792 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12793 echo $ECHO_N "(cached) $ECHO_C" >&6
12795 ac_func_search_save_LIBS=$LIBS
12796 cat >conftest.$ac_ext <<_ACEOF
12799 cat confdefs.h >>conftest.$ac_ext
12800 cat >>conftest.$ac_ext <<_ACEOF
12801 /* end confdefs.h. */
12803 /* Override any GCC internal prototype to avoid an error.
12804 Use char because int might match the return type of a GCC
12805 builtin and then its argument prototype would still apply. */
12809 char pthread_getspecific ();
12813 return pthread_getspecific ();
12818 for ac_lib in '' pthread; do
12819 if test -z "$ac_lib"; then
12820 ac_res="none required"
12823 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12825 rm -f conftest.$ac_objext conftest$ac_exeext
12826 if { (ac_try="$ac_link"
12827 case "(($ac_try" in
12828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12829 *) ac_try_echo=$ac_try;;
12831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12832 (eval "$ac_link") 2>conftest.er1
12834 grep -v '^ *+' conftest.er1 >conftest.err
12836 cat conftest.err >&5
12837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838 (exit $ac_status); } &&
12839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12840 { (case "(($ac_try" in
12841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12842 *) ac_try_echo=$ac_try;;
12844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12845 (eval "$ac_try") 2>&5
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); }; } &&
12849 { ac_try='test -s conftest$ac_exeext'
12850 { (case "(($ac_try" in
12851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12852 *) ac_try_echo=$ac_try;;
12854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12855 (eval "$ac_try") 2>&5
12857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858 (exit $ac_status); }; }; then
12859 ac_cv_search_pthread_getspecific=$ac_res
12861 echo "$as_me: failed program was:" >&5
12862 sed 's/^/| /' conftest.$ac_ext >&5
12867 rm -f core conftest.err conftest.$ac_objext \
12869 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12873 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12876 ac_cv_search_pthread_getspecific=no
12878 rm conftest.$ac_ext
12879 LIBS=$ac_func_search_save_LIBS
12881 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
12882 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
12883 ac_res=$ac_cv_search_pthread_getspecific
12884 if test "$ac_res" != no; then
12885 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12887 cat >>confdefs.h <<\_ACEOF
12888 #define HAVE_PTHREAD_GETSPECIFIC 1
12896 # Check whether --with-udis86 was given.
12897 if test "${with_udis86+set}" = set; then
12898 withval=$with_udis86;
12903 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
12906 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
12907 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
12908 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
12909 echo $ECHO_N "(cached) $ECHO_C" >&6
12911 ac_check_lib_save_LIBS=$LIBS
12912 LIBS="-ludis86 $LIBS"
12913 cat >conftest.$ac_ext <<_ACEOF
12916 cat confdefs.h >>conftest.$ac_ext
12917 cat >>conftest.$ac_ext <<_ACEOF
12918 /* end confdefs.h. */
12920 /* Override any GCC internal prototype to avoid an error.
12921 Use char because int might match the return type of a GCC
12922 builtin and then its argument prototype would still apply. */
12935 rm -f conftest.$ac_objext conftest$ac_exeext
12936 if { (ac_try="$ac_link"
12937 case "(($ac_try" in
12938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12939 *) ac_try_echo=$ac_try;;
12941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12942 (eval "$ac_link") 2>conftest.er1
12944 grep -v '^ *+' conftest.er1 >conftest.err
12946 cat conftest.err >&5
12947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948 (exit $ac_status); } &&
12949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12950 { (case "(($ac_try" in
12951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12952 *) ac_try_echo=$ac_try;;
12954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12955 (eval "$ac_try") 2>&5
12957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958 (exit $ac_status); }; } &&
12959 { ac_try='test -s conftest$ac_exeext'
12960 { (case "(($ac_try" in
12961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12962 *) ac_try_echo=$ac_try;;
12964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12965 (eval "$ac_try") 2>&5
12967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12968 (exit $ac_status); }; }; then
12969 ac_cv_lib_udis86_ud_init=yes
12971 echo "$as_me: failed program was:" >&5
12972 sed 's/^/| /' conftest.$ac_ext >&5
12974 ac_cv_lib_udis86_ud_init=no
12977 rm -f core conftest.err conftest.$ac_objext \
12978 conftest$ac_exeext conftest.$ac_ext
12979 LIBS=$ac_check_lib_save_LIBS
12981 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
12982 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
12983 if test $ac_cv_lib_udis86_ud_init = yes; then
12984 cat >>confdefs.h <<_ACEOF
12985 #define HAVE_LIBUDIS86 1
12988 LIBS="-ludis86 $LIBS"
12992 echo "Error! You need to have libudis86 around."
13004 cat >>confdefs.h <<_ACEOF
13005 #define USE_UDIS86 $USE_UDIS86
13010 # Check whether --with-oprofile was given.
13011 if test "${with_oprofile+set}" = set; then
13012 withval=$with_oprofile;
13016 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13017 no) llvm_cv_oppath=
13020 *) llvm_cv_oppath="${withval}/lib/oprofile"
13021 CPPFLAGS="-I${withval}/include";;
13023 case $llvm_cv_os_type in
13025 if test -n "$llvm_cv_oppath" ; then
13026 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13027 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13028 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13029 if test "${ac_cv_search_bfd_init+set}" = set; then
13030 echo $ECHO_N "(cached) $ECHO_C" >&6
13032 ac_func_search_save_LIBS=$LIBS
13033 cat >conftest.$ac_ext <<_ACEOF
13036 cat confdefs.h >>conftest.$ac_ext
13037 cat >>conftest.$ac_ext <<_ACEOF
13038 /* end confdefs.h. */
13040 /* Override any GCC internal prototype to avoid an error.
13041 Use char because int might match the return type of a GCC
13042 builtin and then its argument prototype would still apply. */
13050 return bfd_init ();
13055 for ac_lib in '' bfd; do
13056 if test -z "$ac_lib"; then
13057 ac_res="none required"
13060 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13062 rm -f conftest.$ac_objext conftest$ac_exeext
13063 if { (ac_try="$ac_link"
13064 case "(($ac_try" in
13065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13066 *) ac_try_echo=$ac_try;;
13068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13069 (eval "$ac_link") 2>conftest.er1
13071 grep -v '^ *+' conftest.er1 >conftest.err
13073 cat conftest.err >&5
13074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075 (exit $ac_status); } &&
13076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13077 { (case "(($ac_try" in
13078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13079 *) ac_try_echo=$ac_try;;
13081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13082 (eval "$ac_try") 2>&5
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); }; } &&
13086 { ac_try='test -s conftest$ac_exeext'
13087 { (case "(($ac_try" in
13088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13089 *) ac_try_echo=$ac_try;;
13091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13092 (eval "$ac_try") 2>&5
13094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095 (exit $ac_status); }; }; then
13096 ac_cv_search_bfd_init=$ac_res
13098 echo "$as_me: failed program was:" >&5
13099 sed 's/^/| /' conftest.$ac_ext >&5
13104 rm -f core conftest.err conftest.$ac_objext \
13106 if test "${ac_cv_search_bfd_init+set}" = set; then
13110 if test "${ac_cv_search_bfd_init+set}" = set; then
13113 ac_cv_search_bfd_init=no
13115 rm conftest.$ac_ext
13116 LIBS=$ac_func_search_save_LIBS
13118 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13119 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13120 ac_res=$ac_cv_search_bfd_init
13121 if test "$ac_res" != no; then
13122 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13126 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13127 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13128 if test "${ac_cv_search_op_open_agent+set}" = set; then
13129 echo $ECHO_N "(cached) $ECHO_C" >&6
13131 ac_func_search_save_LIBS=$LIBS
13132 cat >conftest.$ac_ext <<_ACEOF
13135 cat confdefs.h >>conftest.$ac_ext
13136 cat >>conftest.$ac_ext <<_ACEOF
13137 /* end confdefs.h. */
13139 /* Override any GCC internal prototype to avoid an error.
13140 Use char because int might match the return type of a GCC
13141 builtin and then its argument prototype would still apply. */
13145 char op_open_agent ();
13149 return op_open_agent ();
13154 for ac_lib in '' opagent; do
13155 if test -z "$ac_lib"; then
13156 ac_res="none required"
13159 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13161 rm -f conftest.$ac_objext conftest$ac_exeext
13162 if { (ac_try="$ac_link"
13163 case "(($ac_try" in
13164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13165 *) ac_try_echo=$ac_try;;
13167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13168 (eval "$ac_link") 2>conftest.er1
13170 grep -v '^ *+' conftest.er1 >conftest.err
13172 cat conftest.err >&5
13173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174 (exit $ac_status); } &&
13175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13176 { (case "(($ac_try" in
13177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13178 *) ac_try_echo=$ac_try;;
13180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13181 (eval "$ac_try") 2>&5
13183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184 (exit $ac_status); }; } &&
13185 { ac_try='test -s conftest$ac_exeext'
13186 { (case "(($ac_try" in
13187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13188 *) ac_try_echo=$ac_try;;
13190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13191 (eval "$ac_try") 2>&5
13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 (exit $ac_status); }; }; then
13195 ac_cv_search_op_open_agent=$ac_res
13197 echo "$as_me: failed program was:" >&5
13198 sed 's/^/| /' conftest.$ac_ext >&5
13203 rm -f core conftest.err conftest.$ac_objext \
13205 if test "${ac_cv_search_op_open_agent+set}" = set; then
13209 if test "${ac_cv_search_op_open_agent+set}" = set; then
13212 ac_cv_search_op_open_agent=no
13214 rm conftest.$ac_ext
13215 LIBS=$ac_func_search_save_LIBS
13217 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13218 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13219 ac_res=$ac_cv_search_op_open_agent
13220 if test "$ac_res" != no; then
13221 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13225 echo "Error! You need to have libopagent around."
13230 if test "${ac_cv_header_opagent_h+set}" = set; then
13231 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13232 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13233 if test "${ac_cv_header_opagent_h+set}" = set; then
13234 echo $ECHO_N "(cached) $ECHO_C" >&6
13236 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13237 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13239 # Is the header compilable?
13240 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13241 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13242 cat >conftest.$ac_ext <<_ACEOF
13245 cat confdefs.h >>conftest.$ac_ext
13246 cat >>conftest.$ac_ext <<_ACEOF
13247 /* end confdefs.h. */
13248 $ac_includes_default
13249 #include <opagent.h>
13251 rm -f conftest.$ac_objext
13252 if { (ac_try="$ac_compile"
13253 case "(($ac_try" in
13254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13255 *) ac_try_echo=$ac_try;;
13257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13258 (eval "$ac_compile") 2>conftest.er1
13260 grep -v '^ *+' conftest.er1 >conftest.err
13262 cat conftest.err >&5
13263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); } &&
13265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13266 { (case "(($ac_try" in
13267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13268 *) ac_try_echo=$ac_try;;
13270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13271 (eval "$ac_try") 2>&5
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); }; } &&
13275 { ac_try='test -s conftest.$ac_objext'
13276 { (case "(($ac_try" in
13277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13278 *) ac_try_echo=$ac_try;;
13280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13281 (eval "$ac_try") 2>&5
13283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13284 (exit $ac_status); }; }; then
13285 ac_header_compiler=yes
13287 echo "$as_me: failed program was:" >&5
13288 sed 's/^/| /' conftest.$ac_ext >&5
13290 ac_header_compiler=no
13293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13294 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13295 echo "${ECHO_T}$ac_header_compiler" >&6; }
13297 # Is the header present?
13298 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13299 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13300 cat >conftest.$ac_ext <<_ACEOF
13303 cat confdefs.h >>conftest.$ac_ext
13304 cat >>conftest.$ac_ext <<_ACEOF
13305 /* end confdefs.h. */
13306 #include <opagent.h>
13308 if { (ac_try="$ac_cpp conftest.$ac_ext"
13309 case "(($ac_try" in
13310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13311 *) ac_try_echo=$ac_try;;
13313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13314 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13316 grep -v '^ *+' conftest.er1 >conftest.err
13318 cat conftest.err >&5
13319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320 (exit $ac_status); } >/dev/null; then
13321 if test -s conftest.err; then
13322 ac_cpp_err=$ac_c_preproc_warn_flag
13323 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13330 if test -z "$ac_cpp_err"; then
13331 ac_header_preproc=yes
13333 echo "$as_me: failed program was:" >&5
13334 sed 's/^/| /' conftest.$ac_ext >&5
13336 ac_header_preproc=no
13339 rm -f conftest.err conftest.$ac_ext
13340 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13341 echo "${ECHO_T}$ac_header_preproc" >&6; }
13343 # So? What about this header?
13344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13346 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13347 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13348 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13349 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13350 ac_header_preproc=yes
13353 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13354 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13355 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13356 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13357 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13358 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13359 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13360 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13361 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13362 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13363 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13364 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13366 ## ------------------------------------ ##
13367 ## Report this to http://llvm.org/bugs/ ##
13368 ## ------------------------------------ ##
13370 ) | sed "s/^/$as_me: WARNING: /" >&2
13373 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13374 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13375 if test "${ac_cv_header_opagent_h+set}" = set; then
13376 echo $ECHO_N "(cached) $ECHO_C" >&6
13378 ac_cv_header_opagent_h=$ac_header_preproc
13380 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13381 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13384 if test $ac_cv_header_opagent_h = yes; then
13388 echo "Error! You need to have opagent.h around."
13396 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13397 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13398 { (exit 1); exit 1; }; } ;;
13409 cat >>confdefs.h <<_ACEOF
13410 #define LLVM_USE_OPROFILE $USE_OPROFILE
13415 # Check whether --with-intel-jitevents was given.
13416 if test "${with_intel_jitevents+set}" = set; then
13417 withval=$with_intel_jitevents;
13418 case $llvm_cv_os_type in
13419 Linux|Win32|Cygwin|MingW) ;;
13421 { { echo "$as_me:$LINENO: error:
13422 Intel JIT API support is available on Linux and Windows only.\"" >&5
13423 echo "$as_me: error:
13424 Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13425 { (exit 1); exit 1; }; } ;;
13428 USE_INTEL_JITEVENTS=1
13430 case "$llvm_cv_target_arch" in
13431 x86) llvm_intel_jitevents_archdir="lib32";;
13432 x86_64) llvm_intel_jitevents_archdir="lib64";;
13433 *) echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13436 INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13437 INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13439 /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13440 INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13447 LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
13448 CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
13450 { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13451 echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13452 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13453 echo $ECHO_N "(cached) $ECHO_C" >&6
13455 ac_func_search_save_LIBS=$LIBS
13456 cat >conftest.$ac_ext <<_ACEOF
13459 cat confdefs.h >>conftest.$ac_ext
13460 cat >>conftest.$ac_ext <<_ACEOF
13461 /* end confdefs.h. */
13463 /* Override any GCC internal prototype to avoid an error.
13464 Use char because int might match the return type of a GCC
13465 builtin and then its argument prototype would still apply. */
13469 char iJIT_IsProfilingActive ();
13473 return iJIT_IsProfilingActive ();
13478 for ac_lib in '' jitprofiling; do
13479 if test -z "$ac_lib"; then
13480 ac_res="none required"
13483 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13485 rm -f conftest.$ac_objext conftest$ac_exeext
13486 if { (ac_try="$ac_link"
13487 case "(($ac_try" in
13488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13489 *) ac_try_echo=$ac_try;;
13491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13492 (eval "$ac_link") 2>conftest.er1
13494 grep -v '^ *+' conftest.er1 >conftest.err
13496 cat conftest.err >&5
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); } &&
13499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13500 { (case "(($ac_try" in
13501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13502 *) ac_try_echo=$ac_try;;
13504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13505 (eval "$ac_try") 2>&5
13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508 (exit $ac_status); }; } &&
13509 { ac_try='test -s conftest$ac_exeext'
13510 { (case "(($ac_try" in
13511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13512 *) ac_try_echo=$ac_try;;
13514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13515 (eval "$ac_try") 2>&5
13517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518 (exit $ac_status); }; }; then
13519 ac_cv_search_iJIT_IsProfilingActive=$ac_res
13521 echo "$as_me: failed program was:" >&5
13522 sed 's/^/| /' conftest.$ac_ext >&5
13527 rm -f core conftest.err conftest.$ac_objext \
13529 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13533 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13536 ac_cv_search_iJIT_IsProfilingActive=no
13538 rm conftest.$ac_ext
13539 LIBS=$ac_func_search_save_LIBS
13541 { echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13542 echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13543 ac_res=$ac_cv_search_iJIT_IsProfilingActive
13544 if test "$ac_res" != no; then
13545 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13549 echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13554 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13555 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13556 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13557 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13558 echo $ECHO_N "(cached) $ECHO_C" >&6
13560 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13561 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13563 # Is the header compilable?
13564 { echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13565 echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13566 cat >conftest.$ac_ext <<_ACEOF
13569 cat confdefs.h >>conftest.$ac_ext
13570 cat >>conftest.$ac_ext <<_ACEOF
13571 /* end confdefs.h. */
13572 $ac_includes_default
13573 #include <jitprofiling.h>
13575 rm -f conftest.$ac_objext
13576 if { (ac_try="$ac_compile"
13577 case "(($ac_try" in
13578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13579 *) ac_try_echo=$ac_try;;
13581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13582 (eval "$ac_compile") 2>conftest.er1
13584 grep -v '^ *+' conftest.er1 >conftest.err
13586 cat conftest.err >&5
13587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588 (exit $ac_status); } &&
13589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13590 { (case "(($ac_try" in
13591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13592 *) ac_try_echo=$ac_try;;
13594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13595 (eval "$ac_try") 2>&5
13597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598 (exit $ac_status); }; } &&
13599 { ac_try='test -s conftest.$ac_objext'
13600 { (case "(($ac_try" in
13601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13602 *) ac_try_echo=$ac_try;;
13604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13605 (eval "$ac_try") 2>&5
13607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608 (exit $ac_status); }; }; then
13609 ac_header_compiler=yes
13611 echo "$as_me: failed program was:" >&5
13612 sed 's/^/| /' conftest.$ac_ext >&5
13614 ac_header_compiler=no
13617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13618 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13619 echo "${ECHO_T}$ac_header_compiler" >&6; }
13621 # Is the header present?
13622 { echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13623 echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13624 cat >conftest.$ac_ext <<_ACEOF
13627 cat confdefs.h >>conftest.$ac_ext
13628 cat >>conftest.$ac_ext <<_ACEOF
13629 /* end confdefs.h. */
13630 #include <jitprofiling.h>
13632 if { (ac_try="$ac_cpp conftest.$ac_ext"
13633 case "(($ac_try" in
13634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13635 *) ac_try_echo=$ac_try;;
13637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13640 grep -v '^ *+' conftest.er1 >conftest.err
13642 cat conftest.err >&5
13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644 (exit $ac_status); } >/dev/null; then
13645 if test -s conftest.err; then
13646 ac_cpp_err=$ac_c_preproc_warn_flag
13647 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13654 if test -z "$ac_cpp_err"; then
13655 ac_header_preproc=yes
13657 echo "$as_me: failed program was:" >&5
13658 sed 's/^/| /' conftest.$ac_ext >&5
13660 ac_header_preproc=no
13663 rm -f conftest.err conftest.$ac_ext
13664 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13665 echo "${ECHO_T}$ac_header_preproc" >&6; }
13667 # So? What about this header?
13668 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13670 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13671 echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13672 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13673 echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13674 ac_header_preproc=yes
13677 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13678 echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13679 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&5
13680 echo "$as_me: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&2;}
13681 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13682 echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13683 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&5
13684 echo "$as_me: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&2;}
13685 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13686 echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13687 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13688 echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13690 ## ------------------------------------ ##
13691 ## Report this to http://llvm.org/bugs/ ##
13692 ## ------------------------------------ ##
13694 ) | sed "s/^/$as_me: WARNING: /" >&2
13697 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13698 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13699 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13700 echo $ECHO_N "(cached) $ECHO_C" >&6
13702 ac_cv_header_jitprofiling_h=$ac_header_preproc
13704 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13705 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13708 if test $ac_cv_header_jitprofiling_h = yes; then
13712 echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13722 USE_INTEL_JITEVENTS=0
13728 cat >>confdefs.h <<_ACEOF
13729 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13739 ac_header_dirent=no
13740 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13741 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13742 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13743 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13745 echo $ECHO_N "(cached) $ECHO_C" >&6
13747 cat >conftest.$ac_ext <<_ACEOF
13750 cat confdefs.h >>conftest.$ac_ext
13751 cat >>conftest.$ac_ext <<_ACEOF
13752 /* end confdefs.h. */
13753 #include <sys/types.h>
13765 rm -f conftest.$ac_objext
13766 if { (ac_try="$ac_compile"
13767 case "(($ac_try" in
13768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13769 *) ac_try_echo=$ac_try;;
13771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13772 (eval "$ac_compile") 2>conftest.er1
13774 grep -v '^ *+' conftest.er1 >conftest.err
13776 cat conftest.err >&5
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); } &&
13779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13780 { (case "(($ac_try" in
13781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13782 *) ac_try_echo=$ac_try;;
13784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13785 (eval "$ac_try") 2>&5
13787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); }; } &&
13789 { ac_try='test -s conftest.$ac_objext'
13790 { (case "(($ac_try" in
13791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13792 *) ac_try_echo=$ac_try;;
13794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13795 (eval "$ac_try") 2>&5
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); }; }; then
13799 eval "$as_ac_Header=yes"
13801 echo "$as_me: failed program was:" >&5
13802 sed 's/^/| /' conftest.$ac_ext >&5
13804 eval "$as_ac_Header=no"
13807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13809 ac_res=`eval echo '${'$as_ac_Header'}'`
13810 { echo "$as_me:$LINENO: result: $ac_res" >&5
13811 echo "${ECHO_T}$ac_res" >&6; }
13812 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13813 cat >>confdefs.h <<_ACEOF
13814 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13817 ac_header_dirent=$ac_hdr; break
13821 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13822 if test $ac_header_dirent = dirent.h; then
13823 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13824 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13825 if test "${ac_cv_search_opendir+set}" = set; then
13826 echo $ECHO_N "(cached) $ECHO_C" >&6
13828 ac_func_search_save_LIBS=$LIBS
13829 cat >conftest.$ac_ext <<_ACEOF
13832 cat confdefs.h >>conftest.$ac_ext
13833 cat >>conftest.$ac_ext <<_ACEOF
13834 /* end confdefs.h. */
13836 /* Override any GCC internal prototype to avoid an error.
13837 Use char because int might match the return type of a GCC
13838 builtin and then its argument prototype would still apply. */
13851 for ac_lib in '' dir; do
13852 if test -z "$ac_lib"; then
13853 ac_res="none required"
13856 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13858 rm -f conftest.$ac_objext conftest$ac_exeext
13859 if { (ac_try="$ac_link"
13860 case "(($ac_try" in
13861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13862 *) ac_try_echo=$ac_try;;
13864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13865 (eval "$ac_link") 2>conftest.er1
13867 grep -v '^ *+' conftest.er1 >conftest.err
13869 cat conftest.err >&5
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); } &&
13872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13873 { (case "(($ac_try" in
13874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13875 *) ac_try_echo=$ac_try;;
13877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13878 (eval "$ac_try") 2>&5
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); }; } &&
13882 { ac_try='test -s conftest$ac_exeext'
13883 { (case "(($ac_try" in
13884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13885 *) ac_try_echo=$ac_try;;
13887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13888 (eval "$ac_try") 2>&5
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); }; }; then
13892 ac_cv_search_opendir=$ac_res
13894 echo "$as_me: failed program was:" >&5
13895 sed 's/^/| /' conftest.$ac_ext >&5
13900 rm -f core conftest.err conftest.$ac_objext \
13902 if test "${ac_cv_search_opendir+set}" = set; then
13906 if test "${ac_cv_search_opendir+set}" = set; then
13909 ac_cv_search_opendir=no
13911 rm conftest.$ac_ext
13912 LIBS=$ac_func_search_save_LIBS
13914 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13915 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13916 ac_res=$ac_cv_search_opendir
13917 if test "$ac_res" != no; then
13918 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13923 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13924 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13925 if test "${ac_cv_search_opendir+set}" = set; then
13926 echo $ECHO_N "(cached) $ECHO_C" >&6
13928 ac_func_search_save_LIBS=$LIBS
13929 cat >conftest.$ac_ext <<_ACEOF
13932 cat confdefs.h >>conftest.$ac_ext
13933 cat >>conftest.$ac_ext <<_ACEOF
13934 /* end confdefs.h. */
13936 /* Override any GCC internal prototype to avoid an error.
13937 Use char because int might match the return type of a GCC
13938 builtin and then its argument prototype would still apply. */
13951 for ac_lib in '' x; do
13952 if test -z "$ac_lib"; then
13953 ac_res="none required"
13956 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13958 rm -f conftest.$ac_objext conftest$ac_exeext
13959 if { (ac_try="$ac_link"
13960 case "(($ac_try" in
13961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13962 *) ac_try_echo=$ac_try;;
13964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13965 (eval "$ac_link") 2>conftest.er1
13967 grep -v '^ *+' conftest.er1 >conftest.err
13969 cat conftest.err >&5
13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); } &&
13972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13973 { (case "(($ac_try" in
13974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13975 *) ac_try_echo=$ac_try;;
13977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13978 (eval "$ac_try") 2>&5
13980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13981 (exit $ac_status); }; } &&
13982 { ac_try='test -s conftest$ac_exeext'
13983 { (case "(($ac_try" in
13984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13985 *) ac_try_echo=$ac_try;;
13987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13988 (eval "$ac_try") 2>&5
13990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991 (exit $ac_status); }; }; then
13992 ac_cv_search_opendir=$ac_res
13994 echo "$as_me: failed program was:" >&5
13995 sed 's/^/| /' conftest.$ac_ext >&5
14000 rm -f core conftest.err conftest.$ac_objext \
14002 if test "${ac_cv_search_opendir+set}" = set; then
14006 if test "${ac_cv_search_opendir+set}" = set; then
14009 ac_cv_search_opendir=no
14011 rm conftest.$ac_ext
14012 LIBS=$ac_func_search_save_LIBS
14014 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14015 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14016 ac_res=$ac_cv_search_opendir
14017 if test "$ac_res" != no; then
14018 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14024 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14025 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14026 if test "${ac_cv_header_mmap_anon+set}" = set; then
14027 echo $ECHO_N "(cached) $ECHO_C" >&6
14030 ac_cpp='$CPP $CPPFLAGS'
14031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14035 cat >conftest.$ac_ext <<_ACEOF
14038 cat confdefs.h >>conftest.$ac_ext
14039 cat >>conftest.$ac_ext <<_ACEOF
14040 /* end confdefs.h. */
14041 #include <sys/mman.h>
14042 #include <unistd.h>
14047 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14052 rm -f conftest.$ac_objext
14053 if { (ac_try="$ac_compile"
14054 case "(($ac_try" in
14055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14056 *) ac_try_echo=$ac_try;;
14058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14059 (eval "$ac_compile") 2>conftest.er1
14061 grep -v '^ *+' conftest.er1 >conftest.err
14063 cat conftest.err >&5
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); } &&
14066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14067 { (case "(($ac_try" in
14068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14069 *) ac_try_echo=$ac_try;;
14071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14072 (eval "$ac_try") 2>&5
14074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075 (exit $ac_status); }; } &&
14076 { ac_try='test -s conftest.$ac_objext'
14077 { (case "(($ac_try" in
14078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14079 *) ac_try_echo=$ac_try;;
14081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14082 (eval "$ac_try") 2>&5
14084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085 (exit $ac_status); }; }; then
14086 ac_cv_header_mmap_anon=yes
14088 echo "$as_me: failed program was:" >&5
14089 sed 's/^/| /' conftest.$ac_ext >&5
14091 ac_cv_header_mmap_anon=no
14094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14096 ac_cpp='$CPP $CPPFLAGS'
14097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14103 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14104 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14105 if test "$ac_cv_header_mmap_anon" = yes; then
14107 cat >>confdefs.h <<\_ACEOF
14108 #define HAVE_MMAP_ANONYMOUS 1
14113 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14114 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14115 if test "${ac_cv_header_stat_broken+set}" = set; then
14116 echo $ECHO_N "(cached) $ECHO_C" >&6
14118 cat >conftest.$ac_ext <<_ACEOF
14121 cat confdefs.h >>conftest.$ac_ext
14122 cat >>conftest.$ac_ext <<_ACEOF
14123 /* end confdefs.h. */
14124 #include <sys/types.h>
14125 #include <sys/stat.h>
14127 #if defined S_ISBLK && defined S_IFDIR
14128 # if S_ISBLK (S_IFDIR)
14133 #if defined S_ISBLK && defined S_IFCHR
14134 # if S_ISBLK (S_IFCHR)
14139 #if defined S_ISLNK && defined S_IFREG
14140 # if S_ISLNK (S_IFREG)
14145 #if defined S_ISSOCK && defined S_IFREG
14146 # if S_ISSOCK (S_IFREG)
14152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14153 $EGREP "You lose" >/dev/null 2>&1; then
14154 ac_cv_header_stat_broken=yes
14156 ac_cv_header_stat_broken=no
14161 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14162 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14163 if test $ac_cv_header_stat_broken = yes; then
14165 cat >>confdefs.h <<\_ACEOF
14166 #define STAT_MACROS_BROKEN 1
14171 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14172 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14173 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14174 echo $ECHO_N "(cached) $ECHO_C" >&6
14176 cat >conftest.$ac_ext <<_ACEOF
14179 cat confdefs.h >>conftest.$ac_ext
14180 cat >>conftest.$ac_ext <<_ACEOF
14181 /* end confdefs.h. */
14182 #include <sys/types.h>
14183 #include <sys/wait.h>
14184 #ifndef WEXITSTATUS
14185 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14188 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14196 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14201 rm -f conftest.$ac_objext
14202 if { (ac_try="$ac_compile"
14203 case "(($ac_try" in
14204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14205 *) ac_try_echo=$ac_try;;
14207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14208 (eval "$ac_compile") 2>conftest.er1
14210 grep -v '^ *+' conftest.er1 >conftest.err
14212 cat conftest.err >&5
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); } &&
14215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14216 { (case "(($ac_try" in
14217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14218 *) ac_try_echo=$ac_try;;
14220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14221 (eval "$ac_try") 2>&5
14223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224 (exit $ac_status); }; } &&
14225 { ac_try='test -s conftest.$ac_objext'
14226 { (case "(($ac_try" in
14227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14228 *) ac_try_echo=$ac_try;;
14230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14231 (eval "$ac_try") 2>&5
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); }; }; then
14235 ac_cv_header_sys_wait_h=yes
14237 echo "$as_me: failed program was:" >&5
14238 sed 's/^/| /' conftest.$ac_ext >&5
14240 ac_cv_header_sys_wait_h=no
14243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14245 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14246 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14247 if test $ac_cv_header_sys_wait_h = yes; then
14249 cat >>confdefs.h <<\_ACEOF
14250 #define HAVE_SYS_WAIT_H 1
14255 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14256 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14257 if test "${ac_cv_header_time+set}" = set; then
14258 echo $ECHO_N "(cached) $ECHO_C" >&6
14260 cat >conftest.$ac_ext <<_ACEOF
14263 cat confdefs.h >>conftest.$ac_ext
14264 cat >>conftest.$ac_ext <<_ACEOF
14265 /* end confdefs.h. */
14266 #include <sys/types.h>
14267 #include <sys/time.h>
14273 if ((struct tm *) 0)
14279 rm -f conftest.$ac_objext
14280 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
14288 grep -v '^ *+' conftest.er1 >conftest.err
14290 cat conftest.err >&5
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); } &&
14293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14294 { (case "(($ac_try" in
14295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14296 *) ac_try_echo=$ac_try;;
14298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14299 (eval "$ac_try") 2>&5
14301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302 (exit $ac_status); }; } &&
14303 { ac_try='test -s conftest.$ac_objext'
14304 { (case "(($ac_try" in
14305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14306 *) ac_try_echo=$ac_try;;
14308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14309 (eval "$ac_try") 2>&5
14311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312 (exit $ac_status); }; }; then
14313 ac_cv_header_time=yes
14315 echo "$as_me: failed program was:" >&5
14316 sed 's/^/| /' conftest.$ac_ext >&5
14318 ac_cv_header_time=no
14321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14323 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14324 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14325 if test $ac_cv_header_time = yes; then
14327 cat >>confdefs.h <<\_ACEOF
14328 #define TIME_WITH_SYS_TIME 1
14340 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14342 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14344 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14347 echo $ECHO_N "(cached) $ECHO_C" >&6
14349 ac_res=`eval echo '${'$as_ac_Header'}'`
14350 { echo "$as_me:$LINENO: result: $ac_res" >&5
14351 echo "${ECHO_T}$ac_res" >&6; }
14353 # Is the header compilable?
14354 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14355 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14356 cat >conftest.$ac_ext <<_ACEOF
14359 cat confdefs.h >>conftest.$ac_ext
14360 cat >>conftest.$ac_ext <<_ACEOF
14361 /* end confdefs.h. */
14362 $ac_includes_default
14363 #include <$ac_header>
14365 rm -f conftest.$ac_objext
14366 if { (ac_try="$ac_compile"
14367 case "(($ac_try" in
14368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14369 *) ac_try_echo=$ac_try;;
14371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14372 (eval "$ac_compile") 2>conftest.er1
14374 grep -v '^ *+' conftest.er1 >conftest.err
14376 cat conftest.err >&5
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); } &&
14379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14380 { (case "(($ac_try" in
14381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14382 *) ac_try_echo=$ac_try;;
14384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14385 (eval "$ac_try") 2>&5
14387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388 (exit $ac_status); }; } &&
14389 { ac_try='test -s conftest.$ac_objext'
14390 { (case "(($ac_try" in
14391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14392 *) ac_try_echo=$ac_try;;
14394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14395 (eval "$ac_try") 2>&5
14397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398 (exit $ac_status); }; }; then
14399 ac_header_compiler=yes
14401 echo "$as_me: failed program was:" >&5
14402 sed 's/^/| /' conftest.$ac_ext >&5
14404 ac_header_compiler=no
14407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14408 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14409 echo "${ECHO_T}$ac_header_compiler" >&6; }
14411 # Is the header present?
14412 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14413 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14414 cat >conftest.$ac_ext <<_ACEOF
14417 cat confdefs.h >>conftest.$ac_ext
14418 cat >>conftest.$ac_ext <<_ACEOF
14419 /* end confdefs.h. */
14420 #include <$ac_header>
14422 if { (ac_try="$ac_cpp conftest.$ac_ext"
14423 case "(($ac_try" in
14424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14425 *) ac_try_echo=$ac_try;;
14427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14428 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14430 grep -v '^ *+' conftest.er1 >conftest.err
14432 cat conftest.err >&5
14433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); } >/dev/null; then
14435 if test -s conftest.err; then
14436 ac_cpp_err=$ac_c_preproc_warn_flag
14437 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14444 if test -z "$ac_cpp_err"; then
14445 ac_header_preproc=yes
14447 echo "$as_me: failed program was:" >&5
14448 sed 's/^/| /' conftest.$ac_ext >&5
14450 ac_header_preproc=no
14453 rm -f conftest.err conftest.$ac_ext
14454 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14455 echo "${ECHO_T}$ac_header_preproc" >&6; }
14457 # So? What about this header?
14458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14460 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14461 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14463 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14464 ac_header_preproc=yes
14467 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14468 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14469 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14470 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14471 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14472 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14473 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14474 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14476 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14477 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14478 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14480 ## ------------------------------------ ##
14481 ## Report this to http://llvm.org/bugs/ ##
14482 ## ------------------------------------ ##
14484 ) | sed "s/^/$as_me: WARNING: /" >&2
14487 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14490 echo $ECHO_N "(cached) $ECHO_C" >&6
14492 eval "$as_ac_Header=\$ac_header_preproc"
14494 ac_res=`eval echo '${'$as_ac_Header'}'`
14495 { echo "$as_me:$LINENO: result: $ac_res" >&5
14496 echo "${ECHO_T}$ac_res" >&6; }
14499 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14500 cat >>confdefs.h <<_ACEOF
14501 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14514 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14516 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14518 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14521 echo $ECHO_N "(cached) $ECHO_C" >&6
14523 ac_res=`eval echo '${'$as_ac_Header'}'`
14524 { echo "$as_me:$LINENO: result: $ac_res" >&5
14525 echo "${ECHO_T}$ac_res" >&6; }
14527 # Is the header compilable?
14528 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14529 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14530 cat >conftest.$ac_ext <<_ACEOF
14533 cat confdefs.h >>conftest.$ac_ext
14534 cat >>conftest.$ac_ext <<_ACEOF
14535 /* end confdefs.h. */
14536 $ac_includes_default
14537 #include <$ac_header>
14539 rm -f conftest.$ac_objext
14540 if { (ac_try="$ac_compile"
14541 case "(($ac_try" in
14542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14543 *) ac_try_echo=$ac_try;;
14545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14546 (eval "$ac_compile") 2>conftest.er1
14548 grep -v '^ *+' conftest.er1 >conftest.err
14550 cat conftest.err >&5
14551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); } &&
14553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14554 { (case "(($ac_try" in
14555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14556 *) ac_try_echo=$ac_try;;
14558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14559 (eval "$ac_try") 2>&5
14561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); }; } &&
14563 { ac_try='test -s conftest.$ac_objext'
14564 { (case "(($ac_try" in
14565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14566 *) ac_try_echo=$ac_try;;
14568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14569 (eval "$ac_try") 2>&5
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); }; }; then
14573 ac_header_compiler=yes
14575 echo "$as_me: failed program was:" >&5
14576 sed 's/^/| /' conftest.$ac_ext >&5
14578 ac_header_compiler=no
14581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14582 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14583 echo "${ECHO_T}$ac_header_compiler" >&6; }
14585 # Is the header present?
14586 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14587 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14588 cat >conftest.$ac_ext <<_ACEOF
14591 cat confdefs.h >>conftest.$ac_ext
14592 cat >>conftest.$ac_ext <<_ACEOF
14593 /* end confdefs.h. */
14594 #include <$ac_header>
14596 if { (ac_try="$ac_cpp conftest.$ac_ext"
14597 case "(($ac_try" in
14598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14599 *) ac_try_echo=$ac_try;;
14601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14604 grep -v '^ *+' conftest.er1 >conftest.err
14606 cat conftest.err >&5
14607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608 (exit $ac_status); } >/dev/null; then
14609 if test -s conftest.err; then
14610 ac_cpp_err=$ac_c_preproc_warn_flag
14611 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14618 if test -z "$ac_cpp_err"; then
14619 ac_header_preproc=yes
14621 echo "$as_me: failed program was:" >&5
14622 sed 's/^/| /' conftest.$ac_ext >&5
14624 ac_header_preproc=no
14627 rm -f conftest.err conftest.$ac_ext
14628 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14629 echo "${ECHO_T}$ac_header_preproc" >&6; }
14631 # So? What about this header?
14632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14634 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14635 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14637 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14638 ac_header_preproc=yes
14641 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14642 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14643 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14644 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14645 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14646 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14647 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14648 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14650 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14651 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14652 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14654 ## ------------------------------------ ##
14655 ## Report this to http://llvm.org/bugs/ ##
14656 ## ------------------------------------ ##
14658 ) | sed "s/^/$as_me: WARNING: /" >&2
14661 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14664 echo $ECHO_N "(cached) $ECHO_C" >&6
14666 eval "$as_ac_Header=\$ac_header_preproc"
14668 ac_res=`eval echo '${'$as_ac_Header'}'`
14669 { echo "$as_me:$LINENO: result: $ac_res" >&5
14670 echo "${ECHO_T}$ac_res" >&6; }
14673 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14674 cat >>confdefs.h <<_ACEOF
14675 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14684 for ac_header in utime.h windows.h
14686 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14688 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14691 echo $ECHO_N "(cached) $ECHO_C" >&6
14693 ac_res=`eval echo '${'$as_ac_Header'}'`
14694 { echo "$as_me:$LINENO: result: $ac_res" >&5
14695 echo "${ECHO_T}$ac_res" >&6; }
14697 # Is the header compilable?
14698 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14699 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14700 cat >conftest.$ac_ext <<_ACEOF
14703 cat confdefs.h >>conftest.$ac_ext
14704 cat >>conftest.$ac_ext <<_ACEOF
14705 /* end confdefs.h. */
14706 $ac_includes_default
14707 #include <$ac_header>
14709 rm -f conftest.$ac_objext
14710 if { (ac_try="$ac_compile"
14711 case "(($ac_try" in
14712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14713 *) ac_try_echo=$ac_try;;
14715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14716 (eval "$ac_compile") 2>conftest.er1
14718 grep -v '^ *+' conftest.er1 >conftest.err
14720 cat conftest.err >&5
14721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722 (exit $ac_status); } &&
14723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14724 { (case "(($ac_try" in
14725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14726 *) ac_try_echo=$ac_try;;
14728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14729 (eval "$ac_try") 2>&5
14731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732 (exit $ac_status); }; } &&
14733 { ac_try='test -s conftest.$ac_objext'
14734 { (case "(($ac_try" in
14735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14736 *) ac_try_echo=$ac_try;;
14738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14739 (eval "$ac_try") 2>&5
14741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742 (exit $ac_status); }; }; then
14743 ac_header_compiler=yes
14745 echo "$as_me: failed program was:" >&5
14746 sed 's/^/| /' conftest.$ac_ext >&5
14748 ac_header_compiler=no
14751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14752 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14753 echo "${ECHO_T}$ac_header_compiler" >&6; }
14755 # Is the header present?
14756 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14757 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14758 cat >conftest.$ac_ext <<_ACEOF
14761 cat confdefs.h >>conftest.$ac_ext
14762 cat >>conftest.$ac_ext <<_ACEOF
14763 /* end confdefs.h. */
14764 #include <$ac_header>
14766 if { (ac_try="$ac_cpp conftest.$ac_ext"
14767 case "(($ac_try" in
14768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14769 *) ac_try_echo=$ac_try;;
14771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14772 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14774 grep -v '^ *+' conftest.er1 >conftest.err
14776 cat conftest.err >&5
14777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14778 (exit $ac_status); } >/dev/null; then
14779 if test -s conftest.err; then
14780 ac_cpp_err=$ac_c_preproc_warn_flag
14781 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14788 if test -z "$ac_cpp_err"; then
14789 ac_header_preproc=yes
14791 echo "$as_me: failed program was:" >&5
14792 sed 's/^/| /' conftest.$ac_ext >&5
14794 ac_header_preproc=no
14797 rm -f conftest.err conftest.$ac_ext
14798 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14799 echo "${ECHO_T}$ac_header_preproc" >&6; }
14801 # So? What about this header?
14802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14804 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14805 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14807 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14808 ac_header_preproc=yes
14811 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14812 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14813 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14814 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14815 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14816 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14817 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14818 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14820 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14821 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14822 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14824 ## ------------------------------------ ##
14825 ## Report this to http://llvm.org/bugs/ ##
14826 ## ------------------------------------ ##
14828 ) | sed "s/^/$as_me: WARNING: /" >&2
14831 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14834 echo $ECHO_N "(cached) $ECHO_C" >&6
14836 eval "$as_ac_Header=\$ac_header_preproc"
14838 ac_res=`eval echo '${'$as_ac_Header'}'`
14839 { echo "$as_me:$LINENO: result: $ac_res" >&5
14840 echo "${ECHO_T}$ac_res" >&6; }
14843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14844 cat >>confdefs.h <<_ACEOF
14845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14857 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14859 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14861 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14864 echo $ECHO_N "(cached) $ECHO_C" >&6
14866 ac_res=`eval echo '${'$as_ac_Header'}'`
14867 { echo "$as_me:$LINENO: result: $ac_res" >&5
14868 echo "${ECHO_T}$ac_res" >&6; }
14870 # Is the header compilable?
14871 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14872 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14873 cat >conftest.$ac_ext <<_ACEOF
14876 cat confdefs.h >>conftest.$ac_ext
14877 cat >>conftest.$ac_ext <<_ACEOF
14878 /* end confdefs.h. */
14879 $ac_includes_default
14880 #include <$ac_header>
14882 rm -f conftest.$ac_objext
14883 if { (ac_try="$ac_compile"
14884 case "(($ac_try" in
14885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14886 *) ac_try_echo=$ac_try;;
14888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14889 (eval "$ac_compile") 2>conftest.er1
14891 grep -v '^ *+' conftest.er1 >conftest.err
14893 cat conftest.err >&5
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); } &&
14896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14897 { (case "(($ac_try" in
14898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14899 *) ac_try_echo=$ac_try;;
14901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14902 (eval "$ac_try") 2>&5
14904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905 (exit $ac_status); }; } &&
14906 { ac_try='test -s conftest.$ac_objext'
14907 { (case "(($ac_try" in
14908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14909 *) ac_try_echo=$ac_try;;
14911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14912 (eval "$ac_try") 2>&5
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); }; }; then
14916 ac_header_compiler=yes
14918 echo "$as_me: failed program was:" >&5
14919 sed 's/^/| /' conftest.$ac_ext >&5
14921 ac_header_compiler=no
14924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14925 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14926 echo "${ECHO_T}$ac_header_compiler" >&6; }
14928 # Is the header present?
14929 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14930 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14931 cat >conftest.$ac_ext <<_ACEOF
14934 cat confdefs.h >>conftest.$ac_ext
14935 cat >>conftest.$ac_ext <<_ACEOF
14936 /* end confdefs.h. */
14937 #include <$ac_header>
14939 if { (ac_try="$ac_cpp conftest.$ac_ext"
14940 case "(($ac_try" in
14941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14942 *) ac_try_echo=$ac_try;;
14944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14945 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14947 grep -v '^ *+' conftest.er1 >conftest.err
14949 cat conftest.err >&5
14950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951 (exit $ac_status); } >/dev/null; then
14952 if test -s conftest.err; then
14953 ac_cpp_err=$ac_c_preproc_warn_flag
14954 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14961 if test -z "$ac_cpp_err"; then
14962 ac_header_preproc=yes
14964 echo "$as_me: failed program was:" >&5
14965 sed 's/^/| /' conftest.$ac_ext >&5
14967 ac_header_preproc=no
14970 rm -f conftest.err conftest.$ac_ext
14971 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14972 echo "${ECHO_T}$ac_header_preproc" >&6; }
14974 # So? What about this header?
14975 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14977 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14978 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14980 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14981 ac_header_preproc=yes
14984 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14985 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14986 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14987 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14988 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14989 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14990 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14991 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14992 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14993 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14994 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14995 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14997 ## ------------------------------------ ##
14998 ## Report this to http://llvm.org/bugs/ ##
14999 ## ------------------------------------ ##
15001 ) | sed "s/^/$as_me: WARNING: /" >&2
15004 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15007 echo $ECHO_N "(cached) $ECHO_C" >&6
15009 eval "$as_ac_Header=\$ac_header_preproc"
15011 ac_res=`eval echo '${'$as_ac_Header'}'`
15012 { echo "$as_me:$LINENO: result: $ac_res" >&5
15013 echo "${ECHO_T}$ac_res" >&6; }
15016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15017 cat >>confdefs.h <<_ACEOF
15018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15029 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15031 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15033 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15036 echo $ECHO_N "(cached) $ECHO_C" >&6
15038 ac_res=`eval echo '${'$as_ac_Header'}'`
15039 { echo "$as_me:$LINENO: result: $ac_res" >&5
15040 echo "${ECHO_T}$ac_res" >&6; }
15042 # Is the header compilable?
15043 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15044 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15045 cat >conftest.$ac_ext <<_ACEOF
15048 cat confdefs.h >>conftest.$ac_ext
15049 cat >>conftest.$ac_ext <<_ACEOF
15050 /* end confdefs.h. */
15051 $ac_includes_default
15052 #include <$ac_header>
15054 rm -f conftest.$ac_objext
15055 if { (ac_try="$ac_compile"
15056 case "(($ac_try" in
15057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15058 *) ac_try_echo=$ac_try;;
15060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15061 (eval "$ac_compile") 2>conftest.er1
15063 grep -v '^ *+' conftest.er1 >conftest.err
15065 cat conftest.err >&5
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); } &&
15068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15069 { (case "(($ac_try" in
15070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15071 *) ac_try_echo=$ac_try;;
15073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15074 (eval "$ac_try") 2>&5
15076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077 (exit $ac_status); }; } &&
15078 { ac_try='test -s conftest.$ac_objext'
15079 { (case "(($ac_try" in
15080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15081 *) ac_try_echo=$ac_try;;
15083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15084 (eval "$ac_try") 2>&5
15086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087 (exit $ac_status); }; }; then
15088 ac_header_compiler=yes
15090 echo "$as_me: failed program was:" >&5
15091 sed 's/^/| /' conftest.$ac_ext >&5
15093 ac_header_compiler=no
15096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15097 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15098 echo "${ECHO_T}$ac_header_compiler" >&6; }
15100 # Is the header present?
15101 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15102 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15103 cat >conftest.$ac_ext <<_ACEOF
15106 cat confdefs.h >>conftest.$ac_ext
15107 cat >>conftest.$ac_ext <<_ACEOF
15108 /* end confdefs.h. */
15109 #include <$ac_header>
15111 if { (ac_try="$ac_cpp conftest.$ac_ext"
15112 case "(($ac_try" in
15113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15114 *) ac_try_echo=$ac_try;;
15116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15117 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15119 grep -v '^ *+' conftest.er1 >conftest.err
15121 cat conftest.err >&5
15122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123 (exit $ac_status); } >/dev/null; then
15124 if test -s conftest.err; then
15125 ac_cpp_err=$ac_c_preproc_warn_flag
15126 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15133 if test -z "$ac_cpp_err"; then
15134 ac_header_preproc=yes
15136 echo "$as_me: failed program was:" >&5
15137 sed 's/^/| /' conftest.$ac_ext >&5
15139 ac_header_preproc=no
15142 rm -f conftest.err conftest.$ac_ext
15143 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15144 echo "${ECHO_T}$ac_header_preproc" >&6; }
15146 # So? What about this header?
15147 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15149 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15150 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15151 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15152 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15153 ac_header_preproc=yes
15156 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15157 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15158 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15159 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15160 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15161 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15162 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15163 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15165 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15166 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15167 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15169 ## ------------------------------------ ##
15170 ## Report this to http://llvm.org/bugs/ ##
15171 ## ------------------------------------ ##
15173 ) | sed "s/^/$as_me: WARNING: /" >&2
15176 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15179 echo $ECHO_N "(cached) $ECHO_C" >&6
15181 eval "$as_ac_Header=\$ac_header_preproc"
15183 ac_res=`eval echo '${'$as_ac_Header'}'`
15184 { echo "$as_me:$LINENO: result: $ac_res" >&5
15185 echo "${ECHO_T}$ac_res" >&6; }
15188 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15189 cat >>confdefs.h <<_ACEOF
15190 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15198 for ac_header in valgrind/valgrind.h
15200 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15202 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15205 echo $ECHO_N "(cached) $ECHO_C" >&6
15207 ac_res=`eval echo '${'$as_ac_Header'}'`
15208 { echo "$as_me:$LINENO: result: $ac_res" >&5
15209 echo "${ECHO_T}$ac_res" >&6; }
15211 # Is the header compilable?
15212 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15213 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15214 cat >conftest.$ac_ext <<_ACEOF
15217 cat confdefs.h >>conftest.$ac_ext
15218 cat >>conftest.$ac_ext <<_ACEOF
15219 /* end confdefs.h. */
15220 $ac_includes_default
15221 #include <$ac_header>
15223 rm -f conftest.$ac_objext
15224 if { (ac_try="$ac_compile"
15225 case "(($ac_try" in
15226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15227 *) ac_try_echo=$ac_try;;
15229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15230 (eval "$ac_compile") 2>conftest.er1
15232 grep -v '^ *+' conftest.er1 >conftest.err
15234 cat conftest.err >&5
15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); } &&
15237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15238 { (case "(($ac_try" in
15239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15240 *) ac_try_echo=$ac_try;;
15242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15243 (eval "$ac_try") 2>&5
15245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246 (exit $ac_status); }; } &&
15247 { ac_try='test -s conftest.$ac_objext'
15248 { (case "(($ac_try" in
15249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15250 *) ac_try_echo=$ac_try;;
15252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15253 (eval "$ac_try") 2>&5
15255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256 (exit $ac_status); }; }; then
15257 ac_header_compiler=yes
15259 echo "$as_me: failed program was:" >&5
15260 sed 's/^/| /' conftest.$ac_ext >&5
15262 ac_header_compiler=no
15265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15266 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15267 echo "${ECHO_T}$ac_header_compiler" >&6; }
15269 # Is the header present?
15270 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15271 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15272 cat >conftest.$ac_ext <<_ACEOF
15275 cat confdefs.h >>conftest.$ac_ext
15276 cat >>conftest.$ac_ext <<_ACEOF
15277 /* end confdefs.h. */
15278 #include <$ac_header>
15280 if { (ac_try="$ac_cpp conftest.$ac_ext"
15281 case "(($ac_try" in
15282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15283 *) ac_try_echo=$ac_try;;
15285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15286 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15288 grep -v '^ *+' conftest.er1 >conftest.err
15290 cat conftest.err >&5
15291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292 (exit $ac_status); } >/dev/null; then
15293 if test -s conftest.err; then
15294 ac_cpp_err=$ac_c_preproc_warn_flag
15295 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15302 if test -z "$ac_cpp_err"; then
15303 ac_header_preproc=yes
15305 echo "$as_me: failed program was:" >&5
15306 sed 's/^/| /' conftest.$ac_ext >&5
15308 ac_header_preproc=no
15311 rm -f conftest.err conftest.$ac_ext
15312 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15313 echo "${ECHO_T}$ac_header_preproc" >&6; }
15315 # So? What about this header?
15316 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15318 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15319 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15321 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15322 ac_header_preproc=yes
15325 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15326 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15327 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15328 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15329 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15330 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15331 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15332 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15334 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15335 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15336 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15338 ## ------------------------------------ ##
15339 ## Report this to http://llvm.org/bugs/ ##
15340 ## ------------------------------------ ##
15342 ) | sed "s/^/$as_me: WARNING: /" >&2
15345 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15348 echo $ECHO_N "(cached) $ECHO_C" >&6
15350 eval "$as_ac_Header=\$ac_header_preproc"
15352 ac_res=`eval echo '${'$as_ac_Header'}'`
15353 { echo "$as_me:$LINENO: result: $ac_res" >&5
15354 echo "${ECHO_T}$ac_res" >&6; }
15357 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15358 cat >>confdefs.h <<_ACEOF
15359 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15367 for ac_header in fenv.h
15369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15371 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15374 echo $ECHO_N "(cached) $ECHO_C" >&6
15376 ac_res=`eval echo '${'$as_ac_Header'}'`
15377 { echo "$as_me:$LINENO: result: $ac_res" >&5
15378 echo "${ECHO_T}$ac_res" >&6; }
15380 # Is the header compilable?
15381 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15382 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15383 cat >conftest.$ac_ext <<_ACEOF
15386 cat confdefs.h >>conftest.$ac_ext
15387 cat >>conftest.$ac_ext <<_ACEOF
15388 /* end confdefs.h. */
15389 $ac_includes_default
15390 #include <$ac_header>
15392 rm -f conftest.$ac_objext
15393 if { (ac_try="$ac_compile"
15394 case "(($ac_try" in
15395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15396 *) ac_try_echo=$ac_try;;
15398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15399 (eval "$ac_compile") 2>conftest.er1
15401 grep -v '^ *+' conftest.er1 >conftest.err
15403 cat conftest.err >&5
15404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405 (exit $ac_status); } &&
15406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15407 { (case "(($ac_try" in
15408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15409 *) ac_try_echo=$ac_try;;
15411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15412 (eval "$ac_try") 2>&5
15414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15415 (exit $ac_status); }; } &&
15416 { ac_try='test -s conftest.$ac_objext'
15417 { (case "(($ac_try" in
15418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15419 *) ac_try_echo=$ac_try;;
15421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15422 (eval "$ac_try") 2>&5
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); }; }; then
15426 ac_header_compiler=yes
15428 echo "$as_me: failed program was:" >&5
15429 sed 's/^/| /' conftest.$ac_ext >&5
15431 ac_header_compiler=no
15434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15435 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15436 echo "${ECHO_T}$ac_header_compiler" >&6; }
15438 # Is the header present?
15439 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15440 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15441 cat >conftest.$ac_ext <<_ACEOF
15444 cat confdefs.h >>conftest.$ac_ext
15445 cat >>conftest.$ac_ext <<_ACEOF
15446 /* end confdefs.h. */
15447 #include <$ac_header>
15449 if { (ac_try="$ac_cpp conftest.$ac_ext"
15450 case "(($ac_try" in
15451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15452 *) ac_try_echo=$ac_try;;
15454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15455 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15457 grep -v '^ *+' conftest.er1 >conftest.err
15459 cat conftest.err >&5
15460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461 (exit $ac_status); } >/dev/null; then
15462 if test -s conftest.err; then
15463 ac_cpp_err=$ac_c_preproc_warn_flag
15464 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15471 if test -z "$ac_cpp_err"; then
15472 ac_header_preproc=yes
15474 echo "$as_me: failed program was:" >&5
15475 sed 's/^/| /' conftest.$ac_ext >&5
15477 ac_header_preproc=no
15480 rm -f conftest.err conftest.$ac_ext
15481 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15482 echo "${ECHO_T}$ac_header_preproc" >&6; }
15484 # So? What about this header?
15485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15487 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15488 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15490 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15491 ac_header_preproc=yes
15494 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15495 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15496 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15497 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15498 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15499 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15500 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15501 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15503 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15504 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15505 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15507 ## ------------------------------------ ##
15508 ## Report this to http://llvm.org/bugs/ ##
15509 ## ------------------------------------ ##
15511 ) | sed "s/^/$as_me: WARNING: /" >&2
15514 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15517 echo $ECHO_N "(cached) $ECHO_C" >&6
15519 eval "$as_ac_Header=\$ac_header_preproc"
15521 ac_res=`eval echo '${'$as_ac_Header'}'`
15522 { echo "$as_me:$LINENO: result: $ac_res" >&5
15523 echo "${ECHO_T}$ac_res" >&6; }
15526 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15527 cat >>confdefs.h <<_ACEOF
15528 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15535 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15537 for ac_header in pthread.h
15539 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15541 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15544 echo $ECHO_N "(cached) $ECHO_C" >&6
15546 ac_res=`eval echo '${'$as_ac_Header'}'`
15547 { echo "$as_me:$LINENO: result: $ac_res" >&5
15548 echo "${ECHO_T}$ac_res" >&6; }
15550 # Is the header compilable?
15551 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15552 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15553 cat >conftest.$ac_ext <<_ACEOF
15556 cat confdefs.h >>conftest.$ac_ext
15557 cat >>conftest.$ac_ext <<_ACEOF
15558 /* end confdefs.h. */
15559 $ac_includes_default
15560 #include <$ac_header>
15562 rm -f conftest.$ac_objext
15563 if { (ac_try="$ac_compile"
15564 case "(($ac_try" in
15565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15566 *) ac_try_echo=$ac_try;;
15568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15569 (eval "$ac_compile") 2>conftest.er1
15571 grep -v '^ *+' conftest.er1 >conftest.err
15573 cat conftest.err >&5
15574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15575 (exit $ac_status); } &&
15576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15577 { (case "(($ac_try" in
15578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15579 *) ac_try_echo=$ac_try;;
15581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15582 (eval "$ac_try") 2>&5
15584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585 (exit $ac_status); }; } &&
15586 { ac_try='test -s conftest.$ac_objext'
15587 { (case "(($ac_try" in
15588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15589 *) ac_try_echo=$ac_try;;
15591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15592 (eval "$ac_try") 2>&5
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); }; }; then
15596 ac_header_compiler=yes
15598 echo "$as_me: failed program was:" >&5
15599 sed 's/^/| /' conftest.$ac_ext >&5
15601 ac_header_compiler=no
15604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15605 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15606 echo "${ECHO_T}$ac_header_compiler" >&6; }
15608 # Is the header present?
15609 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15610 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15611 cat >conftest.$ac_ext <<_ACEOF
15614 cat confdefs.h >>conftest.$ac_ext
15615 cat >>conftest.$ac_ext <<_ACEOF
15616 /* end confdefs.h. */
15617 #include <$ac_header>
15619 if { (ac_try="$ac_cpp conftest.$ac_ext"
15620 case "(($ac_try" in
15621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15622 *) ac_try_echo=$ac_try;;
15624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15625 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15627 grep -v '^ *+' conftest.er1 >conftest.err
15629 cat conftest.err >&5
15630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631 (exit $ac_status); } >/dev/null; then
15632 if test -s conftest.err; then
15633 ac_cpp_err=$ac_c_preproc_warn_flag
15634 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15641 if test -z "$ac_cpp_err"; then
15642 ac_header_preproc=yes
15644 echo "$as_me: failed program was:" >&5
15645 sed 's/^/| /' conftest.$ac_ext >&5
15647 ac_header_preproc=no
15650 rm -f conftest.err conftest.$ac_ext
15651 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15652 echo "${ECHO_T}$ac_header_preproc" >&6; }
15654 # So? What about this header?
15655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15657 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15658 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15660 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15661 ac_header_preproc=yes
15664 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15665 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15666 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15667 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15668 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15669 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15670 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15671 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15673 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15674 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15675 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15677 ## ------------------------------------ ##
15678 ## Report this to http://llvm.org/bugs/ ##
15679 ## ------------------------------------ ##
15681 ) | sed "s/^/$as_me: WARNING: /" >&2
15684 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15687 echo $ECHO_N "(cached) $ECHO_C" >&6
15689 eval "$as_ac_Header=\$ac_header_preproc"
15691 ac_res=`eval echo '${'$as_ac_Header'}'`
15692 { echo "$as_me:$LINENO: result: $ac_res" >&5
15693 echo "${ECHO_T}$ac_res" >&6; }
15696 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15697 cat >>confdefs.h <<_ACEOF
15698 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15714 if test "$llvm_cv_enable_libffi" = "yes" ; then
15717 for ac_header in ffi.h ffi/ffi.h
15719 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15720 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15721 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15724 echo $ECHO_N "(cached) $ECHO_C" >&6
15726 ac_res=`eval echo '${'$as_ac_Header'}'`
15727 { echo "$as_me:$LINENO: result: $ac_res" >&5
15728 echo "${ECHO_T}$ac_res" >&6; }
15730 # Is the header compilable?
15731 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15732 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15733 cat >conftest.$ac_ext <<_ACEOF
15736 cat confdefs.h >>conftest.$ac_ext
15737 cat >>conftest.$ac_ext <<_ACEOF
15738 /* end confdefs.h. */
15739 $ac_includes_default
15740 #include <$ac_header>
15742 rm -f conftest.$ac_objext
15743 if { (ac_try="$ac_compile"
15744 case "(($ac_try" in
15745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15746 *) ac_try_echo=$ac_try;;
15748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15749 (eval "$ac_compile") 2>conftest.er1
15751 grep -v '^ *+' conftest.er1 >conftest.err
15753 cat conftest.err >&5
15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); } &&
15756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15757 { (case "(($ac_try" in
15758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15759 *) ac_try_echo=$ac_try;;
15761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15762 (eval "$ac_try") 2>&5
15764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765 (exit $ac_status); }; } &&
15766 { ac_try='test -s conftest.$ac_objext'
15767 { (case "(($ac_try" in
15768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15769 *) ac_try_echo=$ac_try;;
15771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15772 (eval "$ac_try") 2>&5
15774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); }; }; then
15776 ac_header_compiler=yes
15778 echo "$as_me: failed program was:" >&5
15779 sed 's/^/| /' conftest.$ac_ext >&5
15781 ac_header_compiler=no
15784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15785 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15786 echo "${ECHO_T}$ac_header_compiler" >&6; }
15788 # Is the header present?
15789 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15790 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15791 cat >conftest.$ac_ext <<_ACEOF
15794 cat confdefs.h >>conftest.$ac_ext
15795 cat >>conftest.$ac_ext <<_ACEOF
15796 /* end confdefs.h. */
15797 #include <$ac_header>
15799 if { (ac_try="$ac_cpp conftest.$ac_ext"
15800 case "(($ac_try" in
15801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15802 *) ac_try_echo=$ac_try;;
15804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15807 grep -v '^ *+' conftest.er1 >conftest.err
15809 cat conftest.err >&5
15810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 (exit $ac_status); } >/dev/null; then
15812 if test -s conftest.err; then
15813 ac_cpp_err=$ac_c_preproc_warn_flag
15814 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15821 if test -z "$ac_cpp_err"; then
15822 ac_header_preproc=yes
15824 echo "$as_me: failed program was:" >&5
15825 sed 's/^/| /' conftest.$ac_ext >&5
15827 ac_header_preproc=no
15830 rm -f conftest.err conftest.$ac_ext
15831 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15832 echo "${ECHO_T}$ac_header_preproc" >&6; }
15834 # So? What about this header?
15835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15837 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15838 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15840 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15841 ac_header_preproc=yes
15844 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15845 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15846 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15847 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15848 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15849 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15850 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15851 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15853 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15854 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15855 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15857 ## ------------------------------------ ##
15858 ## Report this to http://llvm.org/bugs/ ##
15859 ## ------------------------------------ ##
15861 ) | sed "s/^/$as_me: WARNING: /" >&2
15864 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15867 echo $ECHO_N "(cached) $ECHO_C" >&6
15869 eval "$as_ac_Header=\$ac_header_preproc"
15871 ac_res=`eval echo '${'$as_ac_Header'}'`
15872 { echo "$as_me:$LINENO: result: $ac_res" >&5
15873 echo "${ECHO_T}$ac_res" >&6; }
15876 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15877 cat >>confdefs.h <<_ACEOF
15878 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15888 for ac_header in CrashReporterClient.h
15890 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15892 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15895 echo $ECHO_N "(cached) $ECHO_C" >&6
15897 ac_res=`eval echo '${'$as_ac_Header'}'`
15898 { echo "$as_me:$LINENO: result: $ac_res" >&5
15899 echo "${ECHO_T}$ac_res" >&6; }
15901 # Is the header compilable?
15902 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15903 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15904 cat >conftest.$ac_ext <<_ACEOF
15907 cat confdefs.h >>conftest.$ac_ext
15908 cat >>conftest.$ac_ext <<_ACEOF
15909 /* end confdefs.h. */
15910 $ac_includes_default
15911 #include <$ac_header>
15913 rm -f conftest.$ac_objext
15914 if { (ac_try="$ac_compile"
15915 case "(($ac_try" in
15916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15917 *) ac_try_echo=$ac_try;;
15919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15920 (eval "$ac_compile") 2>conftest.er1
15922 grep -v '^ *+' conftest.er1 >conftest.err
15924 cat conftest.err >&5
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); } &&
15927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15928 { (case "(($ac_try" in
15929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15930 *) ac_try_echo=$ac_try;;
15932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15933 (eval "$ac_try") 2>&5
15935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936 (exit $ac_status); }; } &&
15937 { ac_try='test -s conftest.$ac_objext'
15938 { (case "(($ac_try" in
15939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15940 *) ac_try_echo=$ac_try;;
15942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15943 (eval "$ac_try") 2>&5
15945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946 (exit $ac_status); }; }; then
15947 ac_header_compiler=yes
15949 echo "$as_me: failed program was:" >&5
15950 sed 's/^/| /' conftest.$ac_ext >&5
15952 ac_header_compiler=no
15955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15956 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15957 echo "${ECHO_T}$ac_header_compiler" >&6; }
15959 # Is the header present?
15960 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15961 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15962 cat >conftest.$ac_ext <<_ACEOF
15965 cat confdefs.h >>conftest.$ac_ext
15966 cat >>conftest.$ac_ext <<_ACEOF
15967 /* end confdefs.h. */
15968 #include <$ac_header>
15970 if { (ac_try="$ac_cpp conftest.$ac_ext"
15971 case "(($ac_try" in
15972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15973 *) ac_try_echo=$ac_try;;
15975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15978 grep -v '^ *+' conftest.er1 >conftest.err
15980 cat conftest.err >&5
15981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982 (exit $ac_status); } >/dev/null; then
15983 if test -s conftest.err; then
15984 ac_cpp_err=$ac_c_preproc_warn_flag
15985 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15992 if test -z "$ac_cpp_err"; then
15993 ac_header_preproc=yes
15995 echo "$as_me: failed program was:" >&5
15996 sed 's/^/| /' conftest.$ac_ext >&5
15998 ac_header_preproc=no
16001 rm -f conftest.err conftest.$ac_ext
16002 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16003 echo "${ECHO_T}$ac_header_preproc" >&6; }
16005 # So? What about this header?
16006 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16008 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16009 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16010 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16011 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16012 ac_header_preproc=yes
16015 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16016 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16017 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16018 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16019 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16020 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16021 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16022 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16023 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16024 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16025 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16026 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16028 ## ------------------------------------ ##
16029 ## Report this to http://llvm.org/bugs/ ##
16030 ## ------------------------------------ ##
16032 ) | sed "s/^/$as_me: WARNING: /" >&2
16035 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16037 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16038 echo $ECHO_N "(cached) $ECHO_C" >&6
16040 eval "$as_ac_Header=\$ac_header_preproc"
16042 ac_res=`eval echo '${'$as_ac_Header'}'`
16043 { echo "$as_me:$LINENO: result: $ac_res" >&5
16044 echo "${ECHO_T}$ac_res" >&6; }
16047 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16048 cat >>confdefs.h <<_ACEOF
16049 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16057 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16058 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16059 cat >conftest.$ac_ext <<_ACEOF
16062 cat confdefs.h >>conftest.$ac_ext
16063 cat >>conftest.$ac_ext <<_ACEOF
16064 /* end confdefs.h. */
16065 extern const char *__crashreporter_info__;
16067 __crashreporter_info__ = "test";
16072 rm -f conftest.$ac_objext conftest$ac_exeext
16073 if { (ac_try="$ac_link"
16074 case "(($ac_try" in
16075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16076 *) ac_try_echo=$ac_try;;
16078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16079 (eval "$ac_link") 2>conftest.er1
16081 grep -v '^ *+' conftest.er1 >conftest.err
16083 cat conftest.err >&5
16084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085 (exit $ac_status); } &&
16086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16087 { (case "(($ac_try" in
16088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16089 *) ac_try_echo=$ac_try;;
16091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16092 (eval "$ac_try") 2>&5
16094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095 (exit $ac_status); }; } &&
16096 { ac_try='test -s conftest$ac_exeext'
16097 { (case "(($ac_try" in
16098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16099 *) ac_try_echo=$ac_try;;
16101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16102 (eval "$ac_try") 2>&5
16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105 (exit $ac_status); }; }; then
16106 { echo "$as_me:$LINENO: result: yes" >&5
16107 echo "${ECHO_T}yes" >&6; }
16109 cat >>confdefs.h <<\_ACEOF
16110 #define HAVE_CRASHREPORTER_INFO 1
16114 echo "$as_me: failed program was:" >&5
16115 sed 's/^/| /' conftest.$ac_ext >&5
16117 { echo "$as_me:$LINENO: result: no" >&5
16118 echo "${ECHO_T}no" >&6; }
16120 cat >>confdefs.h <<\_ACEOF
16121 #define HAVE_CRASHREPORTER_INFO 0
16126 rm -f core conftest.err conftest.$ac_objext \
16127 conftest$ac_exeext conftest.$ac_ext
16132 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16133 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16134 if test "${ac_cv_huge_val_sanity+set}" = set; then
16135 echo $ECHO_N "(cached) $ECHO_C" >&6
16139 ac_cpp='$CXXCPP $CPPFLAGS'
16140 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16141 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16142 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16144 ac_save_CXXFLAGS=$CXXFLAGS
16145 CXXFLAGS="$CXXFLAGS -pedantic"
16146 if test "$cross_compiling" = yes; then
16147 ac_cv_huge_val_sanity=yes
16149 cat >conftest.$ac_ext <<_ACEOF
16152 cat confdefs.h >>conftest.$ac_ext
16153 cat >>conftest.$ac_ext <<_ACEOF
16154 /* end confdefs.h. */
16159 double x = HUGE_VAL; return x != x;
16164 rm -f conftest$ac_exeext
16165 if { (ac_try="$ac_link"
16166 case "(($ac_try" in
16167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16168 *) ac_try_echo=$ac_try;;
16170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16171 (eval "$ac_link") 2>&5
16173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16175 { (case "(($ac_try" in
16176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16177 *) ac_try_echo=$ac_try;;
16179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16180 (eval "$ac_try") 2>&5
16182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16183 (exit $ac_status); }; }; then
16184 ac_cv_huge_val_sanity=yes
16186 echo "$as_me: program exited with status $ac_status" >&5
16187 echo "$as_me: failed program was:" >&5
16188 sed 's/^/| /' conftest.$ac_ext >&5
16190 ( exit $ac_status )
16191 ac_cv_huge_val_sanity=no
16193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16197 CXXFLAGS=$ac_save_CXXFLAGS
16199 ac_cpp='$CPP $CPPFLAGS'
16200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16206 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16207 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16208 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16211 { echo "$as_me:$LINENO: checking for pid_t" >&5
16212 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16213 if test "${ac_cv_type_pid_t+set}" = set; then
16214 echo $ECHO_N "(cached) $ECHO_C" >&6
16216 cat >conftest.$ac_ext <<_ACEOF
16219 cat confdefs.h >>conftest.$ac_ext
16220 cat >>conftest.$ac_ext <<_ACEOF
16221 /* end confdefs.h. */
16222 $ac_includes_default
16223 typedef pid_t ac__type_new_;
16227 if ((ac__type_new_ *) 0)
16229 if (sizeof (ac__type_new_))
16235 rm -f conftest.$ac_objext
16236 if { (ac_try="$ac_compile"
16237 case "(($ac_try" in
16238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16239 *) ac_try_echo=$ac_try;;
16241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16242 (eval "$ac_compile") 2>conftest.er1
16244 grep -v '^ *+' conftest.er1 >conftest.err
16246 cat conftest.err >&5
16247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248 (exit $ac_status); } &&
16249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16250 { (case "(($ac_try" in
16251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16252 *) ac_try_echo=$ac_try;;
16254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16255 (eval "$ac_try") 2>&5
16257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258 (exit $ac_status); }; } &&
16259 { ac_try='test -s conftest.$ac_objext'
16260 { (case "(($ac_try" in
16261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16262 *) ac_try_echo=$ac_try;;
16264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16265 (eval "$ac_try") 2>&5
16267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268 (exit $ac_status); }; }; then
16269 ac_cv_type_pid_t=yes
16271 echo "$as_me: failed program was:" >&5
16272 sed 's/^/| /' conftest.$ac_ext >&5
16274 ac_cv_type_pid_t=no
16277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16279 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16280 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16281 if test $ac_cv_type_pid_t = yes; then
16285 cat >>confdefs.h <<_ACEOF
16291 { echo "$as_me:$LINENO: checking for size_t" >&5
16292 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16293 if test "${ac_cv_type_size_t+set}" = set; then
16294 echo $ECHO_N "(cached) $ECHO_C" >&6
16296 cat >conftest.$ac_ext <<_ACEOF
16299 cat confdefs.h >>conftest.$ac_ext
16300 cat >>conftest.$ac_ext <<_ACEOF
16301 /* end confdefs.h. */
16302 $ac_includes_default
16303 typedef size_t ac__type_new_;
16307 if ((ac__type_new_ *) 0)
16309 if (sizeof (ac__type_new_))
16315 rm -f conftest.$ac_objext
16316 if { (ac_try="$ac_compile"
16317 case "(($ac_try" in
16318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16319 *) ac_try_echo=$ac_try;;
16321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16322 (eval "$ac_compile") 2>conftest.er1
16324 grep -v '^ *+' conftest.er1 >conftest.err
16326 cat conftest.err >&5
16327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328 (exit $ac_status); } &&
16329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16330 { (case "(($ac_try" in
16331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16332 *) ac_try_echo=$ac_try;;
16334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16335 (eval "$ac_try") 2>&5
16337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16338 (exit $ac_status); }; } &&
16339 { ac_try='test -s conftest.$ac_objext'
16340 { (case "(($ac_try" in
16341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16342 *) ac_try_echo=$ac_try;;
16344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16345 (eval "$ac_try") 2>&5
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); }; }; then
16349 ac_cv_type_size_t=yes
16351 echo "$as_me: failed program was:" >&5
16352 sed 's/^/| /' conftest.$ac_ext >&5
16354 ac_cv_type_size_t=no
16357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16359 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16360 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16361 if test $ac_cv_type_size_t = yes; then
16365 cat >>confdefs.h <<_ACEOF
16366 #define size_t unsigned int
16372 cat >>confdefs.h <<_ACEOF
16373 #define RETSIGTYPE void
16376 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16377 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16378 if test "${ac_cv_struct_tm+set}" = set; then
16379 echo $ECHO_N "(cached) $ECHO_C" >&6
16381 cat >conftest.$ac_ext <<_ACEOF
16384 cat confdefs.h >>conftest.$ac_ext
16385 cat >>conftest.$ac_ext <<_ACEOF
16386 /* end confdefs.h. */
16387 #include <sys/types.h>
16393 struct tm *tp; tp->tm_sec;
16398 rm -f conftest.$ac_objext
16399 if { (ac_try="$ac_compile"
16400 case "(($ac_try" in
16401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16402 *) ac_try_echo=$ac_try;;
16404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16405 (eval "$ac_compile") 2>conftest.er1
16407 grep -v '^ *+' conftest.er1 >conftest.err
16409 cat conftest.err >&5
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); } &&
16412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16413 { (case "(($ac_try" in
16414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16415 *) ac_try_echo=$ac_try;;
16417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16418 (eval "$ac_try") 2>&5
16420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421 (exit $ac_status); }; } &&
16422 { ac_try='test -s conftest.$ac_objext'
16423 { (case "(($ac_try" in
16424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16425 *) ac_try_echo=$ac_try;;
16427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16428 (eval "$ac_try") 2>&5
16430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); }; }; then
16432 ac_cv_struct_tm=time.h
16434 echo "$as_me: failed program was:" >&5
16435 sed 's/^/| /' conftest.$ac_ext >&5
16437 ac_cv_struct_tm=sys/time.h
16440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16442 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16443 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16444 if test $ac_cv_struct_tm = sys/time.h; then
16446 cat >>confdefs.h <<\_ACEOF
16447 #define TM_IN_SYS_TIME 1
16452 { echo "$as_me:$LINENO: checking for int64_t" >&5
16453 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16454 if test "${ac_cv_type_int64_t+set}" = set; then
16455 echo $ECHO_N "(cached) $ECHO_C" >&6
16457 cat >conftest.$ac_ext <<_ACEOF
16460 cat confdefs.h >>conftest.$ac_ext
16461 cat >>conftest.$ac_ext <<_ACEOF
16462 /* end confdefs.h. */
16463 $ac_includes_default
16464 typedef int64_t ac__type_new_;
16468 if ((ac__type_new_ *) 0)
16470 if (sizeof (ac__type_new_))
16476 rm -f conftest.$ac_objext
16477 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
16485 grep -v '^ *+' conftest.er1 >conftest.err
16487 cat conftest.err >&5
16488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489 (exit $ac_status); } &&
16490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16491 { (case "(($ac_try" in
16492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16493 *) ac_try_echo=$ac_try;;
16495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16496 (eval "$ac_try") 2>&5
16498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499 (exit $ac_status); }; } &&
16500 { ac_try='test -s conftest.$ac_objext'
16501 { (case "(($ac_try" in
16502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16503 *) ac_try_echo=$ac_try;;
16505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16506 (eval "$ac_try") 2>&5
16508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509 (exit $ac_status); }; }; then
16510 ac_cv_type_int64_t=yes
16512 echo "$as_me: failed program was:" >&5
16513 sed 's/^/| /' conftest.$ac_ext >&5
16515 ac_cv_type_int64_t=no
16518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16520 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16521 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16522 if test $ac_cv_type_int64_t = yes; then
16524 cat >>confdefs.h <<_ACEOF
16525 #define HAVE_INT64_T 1
16530 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16531 echo "$as_me: error: Type int64_t required but not found" >&2;}
16532 { (exit 1); exit 1; }; }
16535 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16536 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16537 if test "${ac_cv_type_uint64_t+set}" = set; then
16538 echo $ECHO_N "(cached) $ECHO_C" >&6
16540 cat >conftest.$ac_ext <<_ACEOF
16543 cat confdefs.h >>conftest.$ac_ext
16544 cat >>conftest.$ac_ext <<_ACEOF
16545 /* end confdefs.h. */
16546 $ac_includes_default
16547 typedef uint64_t ac__type_new_;
16551 if ((ac__type_new_ *) 0)
16553 if (sizeof (ac__type_new_))
16559 rm -f conftest.$ac_objext
16560 if { (ac_try="$ac_compile"
16561 case "(($ac_try" in
16562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16563 *) ac_try_echo=$ac_try;;
16565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16566 (eval "$ac_compile") 2>conftest.er1
16568 grep -v '^ *+' conftest.er1 >conftest.err
16570 cat conftest.err >&5
16571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572 (exit $ac_status); } &&
16573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16574 { (case "(($ac_try" in
16575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16576 *) ac_try_echo=$ac_try;;
16578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16579 (eval "$ac_try") 2>&5
16581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582 (exit $ac_status); }; } &&
16583 { ac_try='test -s conftest.$ac_objext'
16584 { (case "(($ac_try" in
16585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16586 *) ac_try_echo=$ac_try;;
16588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16589 (eval "$ac_try") 2>&5
16591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592 (exit $ac_status); }; }; then
16593 ac_cv_type_uint64_t=yes
16595 echo "$as_me: failed program was:" >&5
16596 sed 's/^/| /' conftest.$ac_ext >&5
16598 ac_cv_type_uint64_t=no
16601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16603 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16604 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16605 if test $ac_cv_type_uint64_t = yes; then
16607 cat >>confdefs.h <<_ACEOF
16608 #define HAVE_UINT64_T 1
16613 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16614 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16615 if test "${ac_cv_type_u_int64_t+set}" = set; then
16616 echo $ECHO_N "(cached) $ECHO_C" >&6
16618 cat >conftest.$ac_ext <<_ACEOF
16621 cat confdefs.h >>conftest.$ac_ext
16622 cat >>conftest.$ac_ext <<_ACEOF
16623 /* end confdefs.h. */
16624 $ac_includes_default
16625 typedef u_int64_t ac__type_new_;
16629 if ((ac__type_new_ *) 0)
16631 if (sizeof (ac__type_new_))
16637 rm -f conftest.$ac_objext
16638 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
16646 grep -v '^ *+' conftest.er1 >conftest.err
16648 cat conftest.err >&5
16649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); } &&
16651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16652 { (case "(($ac_try" in
16653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16654 *) ac_try_echo=$ac_try;;
16656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16657 (eval "$ac_try") 2>&5
16659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660 (exit $ac_status); }; } &&
16661 { ac_try='test -s conftest.$ac_objext'
16662 { (case "(($ac_try" in
16663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16664 *) ac_try_echo=$ac_try;;
16666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16667 (eval "$ac_try") 2>&5
16669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670 (exit $ac_status); }; }; then
16671 ac_cv_type_u_int64_t=yes
16673 echo "$as_me: failed program was:" >&5
16674 sed 's/^/| /' conftest.$ac_ext >&5
16676 ac_cv_type_u_int64_t=no
16679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16681 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16682 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16683 if test $ac_cv_type_u_int64_t = yes; then
16685 cat >>confdefs.h <<_ACEOF
16686 #define HAVE_U_INT64_T 1
16691 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16692 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16693 { (exit 1); exit 1; }; }
16707 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16710 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16712 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16713 echo $ECHO_N "(cached) $ECHO_C" >&6
16715 cat >conftest.$ac_ext <<_ACEOF
16718 cat confdefs.h >>conftest.$ac_ext
16719 cat >>conftest.$ac_ext <<_ACEOF
16720 /* end confdefs.h. */
16721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16723 #define $ac_func innocuous_$ac_func
16725 /* System header to define __stub macros and hopefully few prototypes,
16726 which can conflict with char $ac_func (); below.
16727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16728 <limits.h> exists even on freestanding compilers. */
16731 # include <limits.h>
16733 # include <assert.h>
16738 /* Override any GCC internal prototype to avoid an error.
16739 Use char because int might match the return type of a GCC
16740 builtin and then its argument prototype would still apply. */
16745 /* The GNU C library defines this for functions which it implements
16746 to always fail with ENOSYS. Some functions are actually named
16747 something starting with __ and the normal name is an alias. */
16748 #if defined __stub_$ac_func || defined __stub___$ac_func
16755 return $ac_func ();
16760 rm -f conftest.$ac_objext conftest$ac_exeext
16761 if { (ac_try="$ac_link"
16762 case "(($ac_try" in
16763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16764 *) ac_try_echo=$ac_try;;
16766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16767 (eval "$ac_link") 2>conftest.er1
16769 grep -v '^ *+' conftest.er1 >conftest.err
16771 cat conftest.err >&5
16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773 (exit $ac_status); } &&
16774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16775 { (case "(($ac_try" in
16776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16777 *) ac_try_echo=$ac_try;;
16779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16780 (eval "$ac_try") 2>&5
16782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783 (exit $ac_status); }; } &&
16784 { ac_try='test -s conftest$ac_exeext'
16785 { (case "(($ac_try" in
16786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16787 *) ac_try_echo=$ac_try;;
16789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16790 (eval "$ac_try") 2>&5
16792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); }; }; then
16794 eval "$as_ac_var=yes"
16796 echo "$as_me: failed program was:" >&5
16797 sed 's/^/| /' conftest.$ac_ext >&5
16799 eval "$as_ac_var=no"
16802 rm -f core conftest.err conftest.$ac_objext \
16803 conftest$ac_exeext conftest.$ac_ext
16805 ac_res=`eval echo '${'$as_ac_var'}'`
16806 { echo "$as_me:$LINENO: result: $ac_res" >&5
16807 echo "${ECHO_T}$ac_res" >&6; }
16808 if test `eval echo '${'$as_ac_var'}'` = yes; then
16809 cat >>confdefs.h <<_ACEOF
16810 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16820 for ac_func in powf fmodf strtof round
16822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16823 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16825 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16826 echo $ECHO_N "(cached) $ECHO_C" >&6
16828 cat >conftest.$ac_ext <<_ACEOF
16831 cat confdefs.h >>conftest.$ac_ext
16832 cat >>conftest.$ac_ext <<_ACEOF
16833 /* end confdefs.h. */
16834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16836 #define $ac_func innocuous_$ac_func
16838 /* System header to define __stub macros and hopefully few prototypes,
16839 which can conflict with char $ac_func (); below.
16840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16841 <limits.h> exists even on freestanding compilers. */
16844 # include <limits.h>
16846 # include <assert.h>
16851 /* Override any GCC internal prototype to avoid an error.
16852 Use char because int might match the return type of a GCC
16853 builtin and then its argument prototype would still apply. */
16858 /* The GNU C library defines this for functions which it implements
16859 to always fail with ENOSYS. Some functions are actually named
16860 something starting with __ and the normal name is an alias. */
16861 #if defined __stub_$ac_func || defined __stub___$ac_func
16868 return $ac_func ();
16873 rm -f conftest.$ac_objext conftest$ac_exeext
16874 if { (ac_try="$ac_link"
16875 case "(($ac_try" in
16876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16877 *) ac_try_echo=$ac_try;;
16879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16880 (eval "$ac_link") 2>conftest.er1
16882 grep -v '^ *+' conftest.er1 >conftest.err
16884 cat conftest.err >&5
16885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886 (exit $ac_status); } &&
16887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16888 { (case "(($ac_try" in
16889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16890 *) ac_try_echo=$ac_try;;
16892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16893 (eval "$ac_try") 2>&5
16895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16896 (exit $ac_status); }; } &&
16897 { ac_try='test -s conftest$ac_exeext'
16898 { (case "(($ac_try" in
16899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16900 *) ac_try_echo=$ac_try;;
16902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16903 (eval "$ac_try") 2>&5
16905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906 (exit $ac_status); }; }; then
16907 eval "$as_ac_var=yes"
16909 echo "$as_me: failed program was:" >&5
16910 sed 's/^/| /' conftest.$ac_ext >&5
16912 eval "$as_ac_var=no"
16915 rm -f core conftest.err conftest.$ac_objext \
16916 conftest$ac_exeext conftest.$ac_ext
16918 ac_res=`eval echo '${'$as_ac_var'}'`
16919 { echo "$as_me:$LINENO: result: $ac_res" >&5
16920 echo "${ECHO_T}$ac_res" >&6; }
16921 if test `eval echo '${'$as_ac_var'}'` = yes; then
16922 cat >>confdefs.h <<_ACEOF
16923 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16934 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16937 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16939 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16940 echo $ECHO_N "(cached) $ECHO_C" >&6
16942 cat >conftest.$ac_ext <<_ACEOF
16945 cat confdefs.h >>conftest.$ac_ext
16946 cat >>conftest.$ac_ext <<_ACEOF
16947 /* end confdefs.h. */
16948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16950 #define $ac_func innocuous_$ac_func
16952 /* System header to define __stub macros and hopefully few prototypes,
16953 which can conflict with char $ac_func (); below.
16954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16955 <limits.h> exists even on freestanding compilers. */
16958 # include <limits.h>
16960 # include <assert.h>
16965 /* Override any GCC internal prototype to avoid an error.
16966 Use char because int might match the return type of a GCC
16967 builtin and then its argument prototype would still apply. */
16972 /* The GNU C library defines this for functions which it implements
16973 to always fail with ENOSYS. Some functions are actually named
16974 something starting with __ and the normal name is an alias. */
16975 #if defined __stub_$ac_func || defined __stub___$ac_func
16982 return $ac_func ();
16987 rm -f conftest.$ac_objext conftest$ac_exeext
16988 if { (ac_try="$ac_link"
16989 case "(($ac_try" in
16990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16991 *) ac_try_echo=$ac_try;;
16993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16994 (eval "$ac_link") 2>conftest.er1
16996 grep -v '^ *+' conftest.er1 >conftest.err
16998 cat conftest.err >&5
16999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000 (exit $ac_status); } &&
17001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17002 { (case "(($ac_try" in
17003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17004 *) ac_try_echo=$ac_try;;
17006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17007 (eval "$ac_try") 2>&5
17009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17010 (exit $ac_status); }; } &&
17011 { ac_try='test -s conftest$ac_exeext'
17012 { (case "(($ac_try" in
17013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17014 *) ac_try_echo=$ac_try;;
17016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17017 (eval "$ac_try") 2>&5
17019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020 (exit $ac_status); }; }; then
17021 eval "$as_ac_var=yes"
17023 echo "$as_me: failed program was:" >&5
17024 sed 's/^/| /' conftest.$ac_ext >&5
17026 eval "$as_ac_var=no"
17029 rm -f core conftest.err conftest.$ac_objext \
17030 conftest$ac_exeext conftest.$ac_ext
17032 ac_res=`eval echo '${'$as_ac_var'}'`
17033 { echo "$as_me:$LINENO: result: $ac_res" >&5
17034 echo "${ECHO_T}$ac_res" >&6; }
17035 if test `eval echo '${'$as_ac_var'}'` = yes; then
17036 cat >>confdefs.h <<_ACEOF
17037 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17046 for ac_func in isatty mkdtemp mkstemp
17048 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17049 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17050 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17051 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17052 echo $ECHO_N "(cached) $ECHO_C" >&6
17054 cat >conftest.$ac_ext <<_ACEOF
17057 cat confdefs.h >>conftest.$ac_ext
17058 cat >>conftest.$ac_ext <<_ACEOF
17059 /* end confdefs.h. */
17060 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17062 #define $ac_func innocuous_$ac_func
17064 /* System header to define __stub macros and hopefully few prototypes,
17065 which can conflict with char $ac_func (); below.
17066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17067 <limits.h> exists even on freestanding compilers. */
17070 # include <limits.h>
17072 # include <assert.h>
17077 /* Override any GCC internal prototype to avoid an error.
17078 Use char because int might match the return type of a GCC
17079 builtin and then its argument prototype would still apply. */
17084 /* The GNU C library defines this for functions which it implements
17085 to always fail with ENOSYS. Some functions are actually named
17086 something starting with __ and the normal name is an alias. */
17087 #if defined __stub_$ac_func || defined __stub___$ac_func
17094 return $ac_func ();
17099 rm -f conftest.$ac_objext conftest$ac_exeext
17100 if { (ac_try="$ac_link"
17101 case "(($ac_try" in
17102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17103 *) ac_try_echo=$ac_try;;
17105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17106 (eval "$ac_link") 2>conftest.er1
17108 grep -v '^ *+' conftest.er1 >conftest.err
17110 cat conftest.err >&5
17111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); } &&
17113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17114 { (case "(($ac_try" in
17115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17116 *) ac_try_echo=$ac_try;;
17118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17119 (eval "$ac_try") 2>&5
17121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122 (exit $ac_status); }; } &&
17123 { ac_try='test -s conftest$ac_exeext'
17124 { (case "(($ac_try" in
17125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17126 *) ac_try_echo=$ac_try;;
17128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17129 (eval "$ac_try") 2>&5
17131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132 (exit $ac_status); }; }; then
17133 eval "$as_ac_var=yes"
17135 echo "$as_me: failed program was:" >&5
17136 sed 's/^/| /' conftest.$ac_ext >&5
17138 eval "$as_ac_var=no"
17141 rm -f core conftest.err conftest.$ac_objext \
17142 conftest$ac_exeext conftest.$ac_ext
17144 ac_res=`eval echo '${'$as_ac_var'}'`
17145 { echo "$as_me:$LINENO: result: $ac_res" >&5
17146 echo "${ECHO_T}$ac_res" >&6; }
17147 if test `eval echo '${'$as_ac_var'}'` = yes; then
17148 cat >>confdefs.h <<_ACEOF
17149 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17162 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17164 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17165 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17166 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17167 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17168 echo $ECHO_N "(cached) $ECHO_C" >&6
17170 cat >conftest.$ac_ext <<_ACEOF
17173 cat confdefs.h >>conftest.$ac_ext
17174 cat >>conftest.$ac_ext <<_ACEOF
17175 /* end confdefs.h. */
17176 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17177 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17178 #define $ac_func innocuous_$ac_func
17180 /* System header to define __stub macros and hopefully few prototypes,
17181 which can conflict with char $ac_func (); below.
17182 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17183 <limits.h> exists even on freestanding compilers. */
17186 # include <limits.h>
17188 # include <assert.h>
17193 /* Override any GCC internal prototype to avoid an error.
17194 Use char because int might match the return type of a GCC
17195 builtin and then its argument prototype would still apply. */
17200 /* The GNU C library defines this for functions which it implements
17201 to always fail with ENOSYS. Some functions are actually named
17202 something starting with __ and the normal name is an alias. */
17203 #if defined __stub_$ac_func || defined __stub___$ac_func
17210 return $ac_func ();
17215 rm -f conftest.$ac_objext conftest$ac_exeext
17216 if { (ac_try="$ac_link"
17217 case "(($ac_try" in
17218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17219 *) ac_try_echo=$ac_try;;
17221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17222 (eval "$ac_link") 2>conftest.er1
17224 grep -v '^ *+' conftest.er1 >conftest.err
17226 cat conftest.err >&5
17227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228 (exit $ac_status); } &&
17229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17230 { (case "(($ac_try" in
17231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17232 *) ac_try_echo=$ac_try;;
17234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17235 (eval "$ac_try") 2>&5
17237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238 (exit $ac_status); }; } &&
17239 { ac_try='test -s conftest$ac_exeext'
17240 { (case "(($ac_try" in
17241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17242 *) ac_try_echo=$ac_try;;
17244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17245 (eval "$ac_try") 2>&5
17247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248 (exit $ac_status); }; }; then
17249 eval "$as_ac_var=yes"
17251 echo "$as_me: failed program was:" >&5
17252 sed 's/^/| /' conftest.$ac_ext >&5
17254 eval "$as_ac_var=no"
17257 rm -f core conftest.err conftest.$ac_objext \
17258 conftest$ac_exeext conftest.$ac_ext
17260 ac_res=`eval echo '${'$as_ac_var'}'`
17261 { echo "$as_me:$LINENO: result: $ac_res" >&5
17262 echo "${ECHO_T}$ac_res" >&6; }
17263 if test `eval echo '${'$as_ac_var'}'` = yes; then
17264 cat >>confdefs.h <<_ACEOF
17265 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17275 for ac_func in strerror strerror_r setenv arc4random
17277 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17278 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17279 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17280 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17281 echo $ECHO_N "(cached) $ECHO_C" >&6
17283 cat >conftest.$ac_ext <<_ACEOF
17286 cat confdefs.h >>conftest.$ac_ext
17287 cat >>conftest.$ac_ext <<_ACEOF
17288 /* end confdefs.h. */
17289 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17291 #define $ac_func innocuous_$ac_func
17293 /* System header to define __stub macros and hopefully few prototypes,
17294 which can conflict with char $ac_func (); below.
17295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17296 <limits.h> exists even on freestanding compilers. */
17299 # include <limits.h>
17301 # include <assert.h>
17306 /* Override any GCC internal prototype to avoid an error.
17307 Use char because int might match the return type of a GCC
17308 builtin and then its argument prototype would still apply. */
17313 /* The GNU C library defines this for functions which it implements
17314 to always fail with ENOSYS. Some functions are actually named
17315 something starting with __ and the normal name is an alias. */
17316 #if defined __stub_$ac_func || defined __stub___$ac_func
17323 return $ac_func ();
17328 rm -f conftest.$ac_objext conftest$ac_exeext
17329 if { (ac_try="$ac_link"
17330 case "(($ac_try" in
17331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17332 *) ac_try_echo=$ac_try;;
17334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17335 (eval "$ac_link") 2>conftest.er1
17337 grep -v '^ *+' conftest.er1 >conftest.err
17339 cat conftest.err >&5
17340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17341 (exit $ac_status); } &&
17342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17343 { (case "(($ac_try" in
17344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17345 *) ac_try_echo=$ac_try;;
17347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17348 (eval "$ac_try") 2>&5
17350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351 (exit $ac_status); }; } &&
17352 { ac_try='test -s conftest$ac_exeext'
17353 { (case "(($ac_try" in
17354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17355 *) ac_try_echo=$ac_try;;
17357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17358 (eval "$ac_try") 2>&5
17360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361 (exit $ac_status); }; }; then
17362 eval "$as_ac_var=yes"
17364 echo "$as_me: failed program was:" >&5
17365 sed 's/^/| /' conftest.$ac_ext >&5
17367 eval "$as_ac_var=no"
17370 rm -f core conftest.err conftest.$ac_objext \
17371 conftest$ac_exeext conftest.$ac_ext
17373 ac_res=`eval echo '${'$as_ac_var'}'`
17374 { echo "$as_me:$LINENO: result: $ac_res" >&5
17375 echo "${ECHO_T}$ac_res" >&6; }
17376 if test `eval echo '${'$as_ac_var'}'` = yes; then
17377 cat >>confdefs.h <<_ACEOF
17378 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17388 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17390 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17391 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17392 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17393 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17394 echo $ECHO_N "(cached) $ECHO_C" >&6
17396 cat >conftest.$ac_ext <<_ACEOF
17399 cat confdefs.h >>conftest.$ac_ext
17400 cat >>conftest.$ac_ext <<_ACEOF
17401 /* end confdefs.h. */
17402 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17404 #define $ac_func innocuous_$ac_func
17406 /* System header to define __stub macros and hopefully few prototypes,
17407 which can conflict with char $ac_func (); below.
17408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17409 <limits.h> exists even on freestanding compilers. */
17412 # include <limits.h>
17414 # include <assert.h>
17419 /* Override any GCC internal prototype to avoid an error.
17420 Use char because int might match the return type of a GCC
17421 builtin and then its argument prototype would still apply. */
17426 /* The GNU C library defines this for functions which it implements
17427 to always fail with ENOSYS. Some functions are actually named
17428 something starting with __ and the normal name is an alias. */
17429 #if defined __stub_$ac_func || defined __stub___$ac_func
17436 return $ac_func ();
17441 rm -f conftest.$ac_objext conftest$ac_exeext
17442 if { (ac_try="$ac_link"
17443 case "(($ac_try" in
17444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17445 *) ac_try_echo=$ac_try;;
17447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17448 (eval "$ac_link") 2>conftest.er1
17450 grep -v '^ *+' conftest.er1 >conftest.err
17452 cat conftest.err >&5
17453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454 (exit $ac_status); } &&
17455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17456 { (case "(($ac_try" in
17457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17458 *) ac_try_echo=$ac_try;;
17460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17461 (eval "$ac_try") 2>&5
17463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464 (exit $ac_status); }; } &&
17465 { ac_try='test -s conftest$ac_exeext'
17466 { (case "(($ac_try" in
17467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17468 *) ac_try_echo=$ac_try;;
17470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17471 (eval "$ac_try") 2>&5
17473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474 (exit $ac_status); }; }; then
17475 eval "$as_ac_var=yes"
17477 echo "$as_me: failed program was:" >&5
17478 sed 's/^/| /' conftest.$ac_ext >&5
17480 eval "$as_ac_var=no"
17483 rm -f core conftest.err conftest.$ac_objext \
17484 conftest$ac_exeext conftest.$ac_ext
17486 ac_res=`eval echo '${'$as_ac_var'}'`
17487 { echo "$as_me:$LINENO: result: $ac_res" >&5
17488 echo "${ECHO_T}$ac_res" >&6; }
17489 if test `eval echo '${'$as_ac_var'}'` = yes; then
17490 cat >>confdefs.h <<_ACEOF
17491 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17502 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17504 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17505 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17506 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17507 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17508 echo $ECHO_N "(cached) $ECHO_C" >&6
17510 cat >conftest.$ac_ext <<_ACEOF
17513 cat confdefs.h >>conftest.$ac_ext
17514 cat >>conftest.$ac_ext <<_ACEOF
17515 /* end confdefs.h. */
17516 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17518 #define $ac_func innocuous_$ac_func
17520 /* System header to define __stub macros and hopefully few prototypes,
17521 which can conflict with char $ac_func (); below.
17522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17523 <limits.h> exists even on freestanding compilers. */
17526 # include <limits.h>
17528 # include <assert.h>
17533 /* Override any GCC internal prototype to avoid an error.
17534 Use char because int might match the return type of a GCC
17535 builtin and then its argument prototype would still apply. */
17540 /* The GNU C library defines this for functions which it implements
17541 to always fail with ENOSYS. Some functions are actually named
17542 something starting with __ and the normal name is an alias. */
17543 #if defined __stub_$ac_func || defined __stub___$ac_func
17550 return $ac_func ();
17555 rm -f conftest.$ac_objext conftest$ac_exeext
17556 if { (ac_try="$ac_link"
17557 case "(($ac_try" in
17558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17559 *) ac_try_echo=$ac_try;;
17561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17562 (eval "$ac_link") 2>conftest.er1
17564 grep -v '^ *+' conftest.er1 >conftest.err
17566 cat conftest.err >&5
17567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17568 (exit $ac_status); } &&
17569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17570 { (case "(($ac_try" in
17571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17572 *) ac_try_echo=$ac_try;;
17574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17575 (eval "$ac_try") 2>&5
17577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578 (exit $ac_status); }; } &&
17579 { ac_try='test -s conftest$ac_exeext'
17580 { (case "(($ac_try" in
17581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17582 *) ac_try_echo=$ac_try;;
17584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17585 (eval "$ac_try") 2>&5
17587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588 (exit $ac_status); }; }; then
17589 eval "$as_ac_var=yes"
17591 echo "$as_me: failed program was:" >&5
17592 sed 's/^/| /' conftest.$ac_ext >&5
17594 eval "$as_ac_var=no"
17597 rm -f core conftest.err conftest.$ac_objext \
17598 conftest$ac_exeext conftest.$ac_ext
17600 ac_res=`eval echo '${'$as_ac_var'}'`
17601 { echo "$as_me:$LINENO: result: $ac_res" >&5
17602 echo "${ECHO_T}$ac_res" >&6; }
17603 if test `eval echo '${'$as_ac_var'}'` = yes; then
17604 cat >>confdefs.h <<_ACEOF
17605 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17611 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17612 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17613 if test "${llvm_cv_c_printf_a+set}" = set; then
17614 echo $ECHO_N "(cached) $ECHO_C" >&6
17617 ac_cpp='$CPP $CPPFLAGS'
17618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17622 if test "$cross_compiling" = yes; then
17623 llvmac_cv_c_printf_a=no
17625 cat >conftest.$ac_ext <<_ACEOF
17629 cat confdefs.h >>conftest.$ac_ext
17630 cat >>conftest.$ac_ext <<_ACEOF
17631 /* end confdefs.h. */
17634 #include <stdlib.h>
17640 volatile double A, B;
17644 sprintf(Buffer, "%a", A);
17648 if (A != 0x1.999999999999ap-4)
17655 rm -f conftest$ac_exeext
17656 if { (ac_try="$ac_link"
17657 case "(($ac_try" in
17658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17659 *) ac_try_echo=$ac_try;;
17661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17662 (eval "$ac_link") 2>&5
17664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17666 { (case "(($ac_try" in
17667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17668 *) ac_try_echo=$ac_try;;
17670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17671 (eval "$ac_try") 2>&5
17673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674 (exit $ac_status); }; }; then
17675 llvm_cv_c_printf_a=yes
17677 echo "$as_me: program exited with status $ac_status" >&5
17678 echo "$as_me: failed program was:" >&5
17679 sed 's/^/| /' conftest.$ac_ext >&5
17681 ( exit $ac_status )
17682 llvmac_cv_c_printf_a=no
17684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17689 ac_cpp='$CPP $CPPFLAGS'
17690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17695 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17696 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17697 if test "$llvm_cv_c_printf_a" = "yes"; then
17699 cat >>confdefs.h <<\_ACEOF
17700 #define HAVE_PRINTF_A 1
17706 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17707 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17708 if test "${ac_cv_func_rand48+set}" = set; then
17709 echo $ECHO_N "(cached) $ECHO_C" >&6
17712 ac_cpp='$CXXCPP $CPPFLAGS'
17713 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17714 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17715 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17717 cat >conftest.$ac_ext <<_ACEOF
17720 cat confdefs.h >>conftest.$ac_ext
17721 cat >>conftest.$ac_ext <<_ACEOF
17722 /* end confdefs.h. */
17723 #include <stdlib.h>
17727 srand48(0);lrand48();drand48();
17732 rm -f conftest.$ac_objext
17733 if { (ac_try="$ac_compile"
17734 case "(($ac_try" in
17735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17736 *) ac_try_echo=$ac_try;;
17738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17739 (eval "$ac_compile") 2>conftest.er1
17741 grep -v '^ *+' conftest.er1 >conftest.err
17743 cat conftest.err >&5
17744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745 (exit $ac_status); } &&
17746 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17747 { (case "(($ac_try" in
17748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17749 *) ac_try_echo=$ac_try;;
17751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17752 (eval "$ac_try") 2>&5
17754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755 (exit $ac_status); }; } &&
17756 { ac_try='test -s conftest.$ac_objext'
17757 { (case "(($ac_try" in
17758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17759 *) ac_try_echo=$ac_try;;
17761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17762 (eval "$ac_try") 2>&5
17764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 (exit $ac_status); }; }; then
17766 ac_cv_func_rand48=yes
17768 echo "$as_me: failed program was:" >&5
17769 sed 's/^/| /' conftest.$ac_ext >&5
17771 ac_cv_func_rand48=no
17774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17776 ac_cpp='$CPP $CPPFLAGS'
17777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17782 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17783 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17785 if test "$ac_cv_func_rand48" = "yes" ; then
17787 cat >>confdefs.h <<\_ACEOF
17788 #define HAVE_RAND48 1
17794 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17795 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17796 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17797 echo $ECHO_N "(cached) $ECHO_C" >&6
17799 cat >conftest.$ac_ext <<_ACEOF
17802 cat confdefs.h >>conftest.$ac_ext
17803 cat >>conftest.$ac_ext <<_ACEOF
17804 /* end confdefs.h. */
17805 $ac_includes_default
17810 char *p = (char *) strerror_s;
17818 rm -f conftest.$ac_objext
17819 if { (ac_try="$ac_compile"
17820 case "(($ac_try" in
17821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17822 *) ac_try_echo=$ac_try;;
17824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17825 (eval "$ac_compile") 2>conftest.er1
17827 grep -v '^ *+' conftest.er1 >conftest.err
17829 cat conftest.err >&5
17830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831 (exit $ac_status); } &&
17832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17833 { (case "(($ac_try" in
17834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17835 *) ac_try_echo=$ac_try;;
17837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17838 (eval "$ac_try") 2>&5
17840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841 (exit $ac_status); }; } &&
17842 { ac_try='test -s conftest.$ac_objext'
17843 { (case "(($ac_try" in
17844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17845 *) ac_try_echo=$ac_try;;
17847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17848 (eval "$ac_try") 2>&5
17850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851 (exit $ac_status); }; }; then
17852 ac_cv_have_decl_strerror_s=yes
17854 echo "$as_me: failed program was:" >&5
17855 sed 's/^/| /' conftest.$ac_ext >&5
17857 ac_cv_have_decl_strerror_s=no
17860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17862 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17863 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17864 if test $ac_cv_have_decl_strerror_s = yes; then
17866 cat >>confdefs.h <<_ACEOF
17867 #define HAVE_DECL_STRERROR_S 1
17872 cat >>confdefs.h <<_ACEOF
17873 #define HAVE_DECL_STRERROR_S 0
17881 if test "$llvm_cv_os_type" = "MingW" ; then
17882 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17883 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17884 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17885 echo $ECHO_N "(cached) $ECHO_C" >&6
17887 ac_check_lib_save_LIBS=$LIBS
17889 cat >conftest.$ac_ext <<_ACEOF
17892 cat confdefs.h >>conftest.$ac_ext
17893 cat >>conftest.$ac_ext <<_ACEOF
17894 /* end confdefs.h. */
17896 /* Override any GCC internal prototype to avoid an error.
17897 Use char because int might match the return type of a GCC
17898 builtin and then its argument prototype would still apply. */
17911 rm -f conftest.$ac_objext conftest$ac_exeext
17912 if { (ac_try="$ac_link"
17913 case "(($ac_try" in
17914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17915 *) ac_try_echo=$ac_try;;
17917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17918 (eval "$ac_link") 2>conftest.er1
17920 grep -v '^ *+' conftest.er1 >conftest.err
17922 cat conftest.err >&5
17923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924 (exit $ac_status); } &&
17925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17926 { (case "(($ac_try" in
17927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17928 *) ac_try_echo=$ac_try;;
17930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17931 (eval "$ac_try") 2>&5
17933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934 (exit $ac_status); }; } &&
17935 { ac_try='test -s conftest$ac_exeext'
17936 { (case "(($ac_try" in
17937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17938 *) ac_try_echo=$ac_try;;
17940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17941 (eval "$ac_try") 2>&5
17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 (exit $ac_status); }; }; then
17945 ac_cv_lib_gcc__alloca=yes
17947 echo "$as_me: failed program was:" >&5
17948 sed 's/^/| /' conftest.$ac_ext >&5
17950 ac_cv_lib_gcc__alloca=no
17953 rm -f core conftest.err conftest.$ac_objext \
17954 conftest$ac_exeext conftest.$ac_ext
17955 LIBS=$ac_check_lib_save_LIBS
17957 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17958 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17959 if test $ac_cv_lib_gcc__alloca = yes; then
17961 cat >>confdefs.h <<\_ACEOF
17962 #define HAVE__ALLOCA 1
17967 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17968 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17969 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17970 echo $ECHO_N "(cached) $ECHO_C" >&6
17972 ac_check_lib_save_LIBS=$LIBS
17974 cat >conftest.$ac_ext <<_ACEOF
17977 cat confdefs.h >>conftest.$ac_ext
17978 cat >>conftest.$ac_ext <<_ACEOF
17979 /* end confdefs.h. */
17981 /* Override any GCC internal prototype to avoid an error.
17982 Use char because int might match the return type of a GCC
17983 builtin and then its argument prototype would still apply. */
17991 return __alloca ();
17996 rm -f conftest.$ac_objext conftest$ac_exeext
17997 if { (ac_try="$ac_link"
17998 case "(($ac_try" in
17999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18000 *) ac_try_echo=$ac_try;;
18002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18003 (eval "$ac_link") 2>conftest.er1
18005 grep -v '^ *+' conftest.er1 >conftest.err
18007 cat conftest.err >&5
18008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009 (exit $ac_status); } &&
18010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18011 { (case "(($ac_try" in
18012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18013 *) ac_try_echo=$ac_try;;
18015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18016 (eval "$ac_try") 2>&5
18018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019 (exit $ac_status); }; } &&
18020 { ac_try='test -s conftest$ac_exeext'
18021 { (case "(($ac_try" in
18022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18023 *) ac_try_echo=$ac_try;;
18025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18026 (eval "$ac_try") 2>&5
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); }; }; then
18030 ac_cv_lib_gcc___alloca=yes
18032 echo "$as_me: failed program was:" >&5
18033 sed 's/^/| /' conftest.$ac_ext >&5
18035 ac_cv_lib_gcc___alloca=no
18038 rm -f core conftest.err conftest.$ac_objext \
18039 conftest$ac_exeext conftest.$ac_ext
18040 LIBS=$ac_check_lib_save_LIBS
18042 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18043 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18044 if test $ac_cv_lib_gcc___alloca = yes; then
18046 cat >>confdefs.h <<\_ACEOF
18047 #define HAVE___ALLOCA 1
18052 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18053 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18054 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18055 echo $ECHO_N "(cached) $ECHO_C" >&6
18057 ac_check_lib_save_LIBS=$LIBS
18059 cat >conftest.$ac_ext <<_ACEOF
18062 cat confdefs.h >>conftest.$ac_ext
18063 cat >>conftest.$ac_ext <<_ACEOF
18064 /* end confdefs.h. */
18066 /* Override any GCC internal prototype to avoid an error.
18067 Use char because int might match the return type of a GCC
18068 builtin and then its argument prototype would still apply. */
18076 return __chkstk ();
18081 rm -f conftest.$ac_objext conftest$ac_exeext
18082 if { (ac_try="$ac_link"
18083 case "(($ac_try" in
18084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18085 *) ac_try_echo=$ac_try;;
18087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18088 (eval "$ac_link") 2>conftest.er1
18090 grep -v '^ *+' conftest.er1 >conftest.err
18092 cat conftest.err >&5
18093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18094 (exit $ac_status); } &&
18095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18096 { (case "(($ac_try" in
18097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18098 *) ac_try_echo=$ac_try;;
18100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18101 (eval "$ac_try") 2>&5
18103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104 (exit $ac_status); }; } &&
18105 { ac_try='test -s conftest$ac_exeext'
18106 { (case "(($ac_try" in
18107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18108 *) ac_try_echo=$ac_try;;
18110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18111 (eval "$ac_try") 2>&5
18113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114 (exit $ac_status); }; }; then
18115 ac_cv_lib_gcc___chkstk=yes
18117 echo "$as_me: failed program was:" >&5
18118 sed 's/^/| /' conftest.$ac_ext >&5
18120 ac_cv_lib_gcc___chkstk=no
18123 rm -f core conftest.err conftest.$ac_objext \
18124 conftest$ac_exeext conftest.$ac_ext
18125 LIBS=$ac_check_lib_save_LIBS
18127 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18128 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18129 if test $ac_cv_lib_gcc___chkstk = yes; then
18131 cat >>confdefs.h <<\_ACEOF
18132 #define HAVE___CHKSTK 1
18137 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18138 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18139 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18140 echo $ECHO_N "(cached) $ECHO_C" >&6
18142 ac_check_lib_save_LIBS=$LIBS
18144 cat >conftest.$ac_ext <<_ACEOF
18147 cat confdefs.h >>conftest.$ac_ext
18148 cat >>conftest.$ac_ext <<_ACEOF
18149 /* end confdefs.h. */
18151 /* Override any GCC internal prototype to avoid an error.
18152 Use char because int might match the return type of a GCC
18153 builtin and then its argument prototype would still apply. */
18161 return ___chkstk ();
18166 rm -f conftest.$ac_objext conftest$ac_exeext
18167 if { (ac_try="$ac_link"
18168 case "(($ac_try" in
18169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18170 *) ac_try_echo=$ac_try;;
18172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18173 (eval "$ac_link") 2>conftest.er1
18175 grep -v '^ *+' conftest.er1 >conftest.err
18177 cat conftest.err >&5
18178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18179 (exit $ac_status); } &&
18180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18181 { (case "(($ac_try" in
18182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18183 *) ac_try_echo=$ac_try;;
18185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18186 (eval "$ac_try") 2>&5
18188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189 (exit $ac_status); }; } &&
18190 { ac_try='test -s conftest$ac_exeext'
18191 { (case "(($ac_try" in
18192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18193 *) ac_try_echo=$ac_try;;
18195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18196 (eval "$ac_try") 2>&5
18198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18199 (exit $ac_status); }; }; then
18200 ac_cv_lib_gcc____chkstk=yes
18202 echo "$as_me: failed program was:" >&5
18203 sed 's/^/| /' conftest.$ac_ext >&5
18205 ac_cv_lib_gcc____chkstk=no
18208 rm -f core conftest.err conftest.$ac_objext \
18209 conftest$ac_exeext conftest.$ac_ext
18210 LIBS=$ac_check_lib_save_LIBS
18212 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18213 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18214 if test $ac_cv_lib_gcc____chkstk = yes; then
18216 cat >>confdefs.h <<\_ACEOF
18217 #define HAVE____CHKSTK 1
18223 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18224 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18225 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18226 echo $ECHO_N "(cached) $ECHO_C" >&6
18228 ac_check_lib_save_LIBS=$LIBS
18230 cat >conftest.$ac_ext <<_ACEOF
18233 cat confdefs.h >>conftest.$ac_ext
18234 cat >>conftest.$ac_ext <<_ACEOF
18235 /* end confdefs.h. */
18237 /* Override any GCC internal prototype to avoid an error.
18238 Use char because int might match the return type of a GCC
18239 builtin and then its argument prototype would still apply. */
18247 return __ashldi3 ();
18252 rm -f conftest.$ac_objext conftest$ac_exeext
18253 if { (ac_try="$ac_link"
18254 case "(($ac_try" in
18255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18256 *) ac_try_echo=$ac_try;;
18258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18259 (eval "$ac_link") 2>conftest.er1
18261 grep -v '^ *+' conftest.er1 >conftest.err
18263 cat conftest.err >&5
18264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265 (exit $ac_status); } &&
18266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18267 { (case "(($ac_try" in
18268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18269 *) ac_try_echo=$ac_try;;
18271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18272 (eval "$ac_try") 2>&5
18274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275 (exit $ac_status); }; } &&
18276 { ac_try='test -s conftest$ac_exeext'
18277 { (case "(($ac_try" in
18278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18279 *) ac_try_echo=$ac_try;;
18281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18282 (eval "$ac_try") 2>&5
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); }; }; then
18286 ac_cv_lib_gcc___ashldi3=yes
18288 echo "$as_me: failed program was:" >&5
18289 sed 's/^/| /' conftest.$ac_ext >&5
18291 ac_cv_lib_gcc___ashldi3=no
18294 rm -f core conftest.err conftest.$ac_objext \
18295 conftest$ac_exeext conftest.$ac_ext
18296 LIBS=$ac_check_lib_save_LIBS
18298 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18299 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18300 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18302 cat >>confdefs.h <<\_ACEOF
18303 #define HAVE___ASHLDI3 1
18308 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18309 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18310 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18311 echo $ECHO_N "(cached) $ECHO_C" >&6
18313 ac_check_lib_save_LIBS=$LIBS
18315 cat >conftest.$ac_ext <<_ACEOF
18318 cat confdefs.h >>conftest.$ac_ext
18319 cat >>conftest.$ac_ext <<_ACEOF
18320 /* end confdefs.h. */
18322 /* Override any GCC internal prototype to avoid an error.
18323 Use char because int might match the return type of a GCC
18324 builtin and then its argument prototype would still apply. */
18332 return __ashrdi3 ();
18337 rm -f conftest.$ac_objext conftest$ac_exeext
18338 if { (ac_try="$ac_link"
18339 case "(($ac_try" in
18340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18341 *) ac_try_echo=$ac_try;;
18343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18344 (eval "$ac_link") 2>conftest.er1
18346 grep -v '^ *+' conftest.er1 >conftest.err
18348 cat conftest.err >&5
18349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18350 (exit $ac_status); } &&
18351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18352 { (case "(($ac_try" in
18353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18354 *) ac_try_echo=$ac_try;;
18356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18357 (eval "$ac_try") 2>&5
18359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360 (exit $ac_status); }; } &&
18361 { ac_try='test -s conftest$ac_exeext'
18362 { (case "(($ac_try" in
18363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18364 *) ac_try_echo=$ac_try;;
18366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18367 (eval "$ac_try") 2>&5
18369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370 (exit $ac_status); }; }; then
18371 ac_cv_lib_gcc___ashrdi3=yes
18373 echo "$as_me: failed program was:" >&5
18374 sed 's/^/| /' conftest.$ac_ext >&5
18376 ac_cv_lib_gcc___ashrdi3=no
18379 rm -f core conftest.err conftest.$ac_objext \
18380 conftest$ac_exeext conftest.$ac_ext
18381 LIBS=$ac_check_lib_save_LIBS
18383 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18384 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18385 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18387 cat >>confdefs.h <<\_ACEOF
18388 #define HAVE___ASHRDI3 1
18393 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18394 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18395 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18396 echo $ECHO_N "(cached) $ECHO_C" >&6
18398 ac_check_lib_save_LIBS=$LIBS
18400 cat >conftest.$ac_ext <<_ACEOF
18403 cat confdefs.h >>conftest.$ac_ext
18404 cat >>conftest.$ac_ext <<_ACEOF
18405 /* end confdefs.h. */
18407 /* Override any GCC internal prototype to avoid an error.
18408 Use char because int might match the return type of a GCC
18409 builtin and then its argument prototype would still apply. */
18417 return __divdi3 ();
18422 rm -f conftest.$ac_objext conftest$ac_exeext
18423 if { (ac_try="$ac_link"
18424 case "(($ac_try" in
18425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18426 *) ac_try_echo=$ac_try;;
18428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18429 (eval "$ac_link") 2>conftest.er1
18431 grep -v '^ *+' conftest.er1 >conftest.err
18433 cat conftest.err >&5
18434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435 (exit $ac_status); } &&
18436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18437 { (case "(($ac_try" in
18438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18439 *) ac_try_echo=$ac_try;;
18441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18442 (eval "$ac_try") 2>&5
18444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18445 (exit $ac_status); }; } &&
18446 { ac_try='test -s conftest$ac_exeext'
18447 { (case "(($ac_try" in
18448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18449 *) ac_try_echo=$ac_try;;
18451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18452 (eval "$ac_try") 2>&5
18454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18455 (exit $ac_status); }; }; then
18456 ac_cv_lib_gcc___divdi3=yes
18458 echo "$as_me: failed program was:" >&5
18459 sed 's/^/| /' conftest.$ac_ext >&5
18461 ac_cv_lib_gcc___divdi3=no
18464 rm -f core conftest.err conftest.$ac_objext \
18465 conftest$ac_exeext conftest.$ac_ext
18466 LIBS=$ac_check_lib_save_LIBS
18468 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18469 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18470 if test $ac_cv_lib_gcc___divdi3 = yes; then
18472 cat >>confdefs.h <<\_ACEOF
18473 #define HAVE___DIVDI3 1
18478 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18479 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18480 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18481 echo $ECHO_N "(cached) $ECHO_C" >&6
18483 ac_check_lib_save_LIBS=$LIBS
18485 cat >conftest.$ac_ext <<_ACEOF
18488 cat confdefs.h >>conftest.$ac_ext
18489 cat >>conftest.$ac_ext <<_ACEOF
18490 /* end confdefs.h. */
18492 /* Override any GCC internal prototype to avoid an error.
18493 Use char because int might match the return type of a GCC
18494 builtin and then its argument prototype would still apply. */
18502 return __fixdfdi ();
18507 rm -f conftest.$ac_objext conftest$ac_exeext
18508 if { (ac_try="$ac_link"
18509 case "(($ac_try" in
18510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18511 *) ac_try_echo=$ac_try;;
18513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18514 (eval "$ac_link") 2>conftest.er1
18516 grep -v '^ *+' conftest.er1 >conftest.err
18518 cat conftest.err >&5
18519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520 (exit $ac_status); } &&
18521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18522 { (case "(($ac_try" in
18523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18524 *) ac_try_echo=$ac_try;;
18526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18527 (eval "$ac_try") 2>&5
18529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18530 (exit $ac_status); }; } &&
18531 { ac_try='test -s conftest$ac_exeext'
18532 { (case "(($ac_try" in
18533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18534 *) ac_try_echo=$ac_try;;
18536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18537 (eval "$ac_try") 2>&5
18539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540 (exit $ac_status); }; }; then
18541 ac_cv_lib_gcc___fixdfdi=yes
18543 echo "$as_me: failed program was:" >&5
18544 sed 's/^/| /' conftest.$ac_ext >&5
18546 ac_cv_lib_gcc___fixdfdi=no
18549 rm -f core conftest.err conftest.$ac_objext \
18550 conftest$ac_exeext conftest.$ac_ext
18551 LIBS=$ac_check_lib_save_LIBS
18553 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18554 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18555 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18557 cat >>confdefs.h <<\_ACEOF
18558 #define HAVE___FIXDFDI 1
18563 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18564 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18565 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18566 echo $ECHO_N "(cached) $ECHO_C" >&6
18568 ac_check_lib_save_LIBS=$LIBS
18570 cat >conftest.$ac_ext <<_ACEOF
18573 cat confdefs.h >>conftest.$ac_ext
18574 cat >>conftest.$ac_ext <<_ACEOF
18575 /* end confdefs.h. */
18577 /* Override any GCC internal prototype to avoid an error.
18578 Use char because int might match the return type of a GCC
18579 builtin and then its argument prototype would still apply. */
18587 return __fixsfdi ();
18592 rm -f conftest.$ac_objext conftest$ac_exeext
18593 if { (ac_try="$ac_link"
18594 case "(($ac_try" in
18595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18596 *) ac_try_echo=$ac_try;;
18598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18599 (eval "$ac_link") 2>conftest.er1
18601 grep -v '^ *+' conftest.er1 >conftest.err
18603 cat conftest.err >&5
18604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18605 (exit $ac_status); } &&
18606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18607 { (case "(($ac_try" in
18608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18609 *) ac_try_echo=$ac_try;;
18611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18612 (eval "$ac_try") 2>&5
18614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18615 (exit $ac_status); }; } &&
18616 { ac_try='test -s conftest$ac_exeext'
18617 { (case "(($ac_try" in
18618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18619 *) ac_try_echo=$ac_try;;
18621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18622 (eval "$ac_try") 2>&5
18624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625 (exit $ac_status); }; }; then
18626 ac_cv_lib_gcc___fixsfdi=yes
18628 echo "$as_me: failed program was:" >&5
18629 sed 's/^/| /' conftest.$ac_ext >&5
18631 ac_cv_lib_gcc___fixsfdi=no
18634 rm -f core conftest.err conftest.$ac_objext \
18635 conftest$ac_exeext conftest.$ac_ext
18636 LIBS=$ac_check_lib_save_LIBS
18638 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18639 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18640 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18642 cat >>confdefs.h <<\_ACEOF
18643 #define HAVE___FIXSFDI 1
18648 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18649 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18650 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18651 echo $ECHO_N "(cached) $ECHO_C" >&6
18653 ac_check_lib_save_LIBS=$LIBS
18655 cat >conftest.$ac_ext <<_ACEOF
18658 cat confdefs.h >>conftest.$ac_ext
18659 cat >>conftest.$ac_ext <<_ACEOF
18660 /* end confdefs.h. */
18662 /* Override any GCC internal prototype to avoid an error.
18663 Use char because int might match the return type of a GCC
18664 builtin and then its argument prototype would still apply. */
18668 char __floatdidf ();
18672 return __floatdidf ();
18677 rm -f conftest.$ac_objext conftest$ac_exeext
18678 if { (ac_try="$ac_link"
18679 case "(($ac_try" in
18680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18681 *) ac_try_echo=$ac_try;;
18683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18684 (eval "$ac_link") 2>conftest.er1
18686 grep -v '^ *+' conftest.er1 >conftest.err
18688 cat conftest.err >&5
18689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690 (exit $ac_status); } &&
18691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18692 { (case "(($ac_try" in
18693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18694 *) ac_try_echo=$ac_try;;
18696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18697 (eval "$ac_try") 2>&5
18699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18700 (exit $ac_status); }; } &&
18701 { ac_try='test -s conftest$ac_exeext'
18702 { (case "(($ac_try" in
18703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18704 *) ac_try_echo=$ac_try;;
18706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18707 (eval "$ac_try") 2>&5
18709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18710 (exit $ac_status); }; }; then
18711 ac_cv_lib_gcc___floatdidf=yes
18713 echo "$as_me: failed program was:" >&5
18714 sed 's/^/| /' conftest.$ac_ext >&5
18716 ac_cv_lib_gcc___floatdidf=no
18719 rm -f core conftest.err conftest.$ac_objext \
18720 conftest$ac_exeext conftest.$ac_ext
18721 LIBS=$ac_check_lib_save_LIBS
18723 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18724 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18725 if test $ac_cv_lib_gcc___floatdidf = yes; then
18727 cat >>confdefs.h <<\_ACEOF
18728 #define HAVE___FLOATDIDF 1
18733 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18734 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18735 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18736 echo $ECHO_N "(cached) $ECHO_C" >&6
18738 ac_check_lib_save_LIBS=$LIBS
18740 cat >conftest.$ac_ext <<_ACEOF
18743 cat confdefs.h >>conftest.$ac_ext
18744 cat >>conftest.$ac_ext <<_ACEOF
18745 /* end confdefs.h. */
18747 /* Override any GCC internal prototype to avoid an error.
18748 Use char because int might match the return type of a GCC
18749 builtin and then its argument prototype would still apply. */
18757 return __lshrdi3 ();
18762 rm -f conftest.$ac_objext conftest$ac_exeext
18763 if { (ac_try="$ac_link"
18764 case "(($ac_try" in
18765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18766 *) ac_try_echo=$ac_try;;
18768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18769 (eval "$ac_link") 2>conftest.er1
18771 grep -v '^ *+' conftest.er1 >conftest.err
18773 cat conftest.err >&5
18774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18775 (exit $ac_status); } &&
18776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18777 { (case "(($ac_try" in
18778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18779 *) ac_try_echo=$ac_try;;
18781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18782 (eval "$ac_try") 2>&5
18784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785 (exit $ac_status); }; } &&
18786 { ac_try='test -s conftest$ac_exeext'
18787 { (case "(($ac_try" in
18788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18789 *) ac_try_echo=$ac_try;;
18791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18792 (eval "$ac_try") 2>&5
18794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795 (exit $ac_status); }; }; then
18796 ac_cv_lib_gcc___lshrdi3=yes
18798 echo "$as_me: failed program was:" >&5
18799 sed 's/^/| /' conftest.$ac_ext >&5
18801 ac_cv_lib_gcc___lshrdi3=no
18804 rm -f core conftest.err conftest.$ac_objext \
18805 conftest$ac_exeext conftest.$ac_ext
18806 LIBS=$ac_check_lib_save_LIBS
18808 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18809 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18810 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18812 cat >>confdefs.h <<\_ACEOF
18813 #define HAVE___LSHRDI3 1
18818 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18819 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18820 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18821 echo $ECHO_N "(cached) $ECHO_C" >&6
18823 ac_check_lib_save_LIBS=$LIBS
18825 cat >conftest.$ac_ext <<_ACEOF
18828 cat confdefs.h >>conftest.$ac_ext
18829 cat >>conftest.$ac_ext <<_ACEOF
18830 /* end confdefs.h. */
18832 /* Override any GCC internal prototype to avoid an error.
18833 Use char because int might match the return type of a GCC
18834 builtin and then its argument prototype would still apply. */
18842 return __moddi3 ();
18847 rm -f conftest.$ac_objext conftest$ac_exeext
18848 if { (ac_try="$ac_link"
18849 case "(($ac_try" in
18850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18851 *) ac_try_echo=$ac_try;;
18853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18854 (eval "$ac_link") 2>conftest.er1
18856 grep -v '^ *+' conftest.er1 >conftest.err
18858 cat conftest.err >&5
18859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18860 (exit $ac_status); } &&
18861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18862 { (case "(($ac_try" in
18863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18864 *) ac_try_echo=$ac_try;;
18866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18867 (eval "$ac_try") 2>&5
18869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870 (exit $ac_status); }; } &&
18871 { ac_try='test -s conftest$ac_exeext'
18872 { (case "(($ac_try" in
18873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18874 *) ac_try_echo=$ac_try;;
18876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18877 (eval "$ac_try") 2>&5
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); }; }; then
18881 ac_cv_lib_gcc___moddi3=yes
18883 echo "$as_me: failed program was:" >&5
18884 sed 's/^/| /' conftest.$ac_ext >&5
18886 ac_cv_lib_gcc___moddi3=no
18889 rm -f core conftest.err conftest.$ac_objext \
18890 conftest$ac_exeext conftest.$ac_ext
18891 LIBS=$ac_check_lib_save_LIBS
18893 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18894 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18895 if test $ac_cv_lib_gcc___moddi3 = yes; then
18897 cat >>confdefs.h <<\_ACEOF
18898 #define HAVE___MODDI3 1
18903 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18904 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18905 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18906 echo $ECHO_N "(cached) $ECHO_C" >&6
18908 ac_check_lib_save_LIBS=$LIBS
18910 cat >conftest.$ac_ext <<_ACEOF
18913 cat confdefs.h >>conftest.$ac_ext
18914 cat >>conftest.$ac_ext <<_ACEOF
18915 /* end confdefs.h. */
18917 /* Override any GCC internal prototype to avoid an error.
18918 Use char because int might match the return type of a GCC
18919 builtin and then its argument prototype would still apply. */
18927 return __udivdi3 ();
18932 rm -f conftest.$ac_objext conftest$ac_exeext
18933 if { (ac_try="$ac_link"
18934 case "(($ac_try" in
18935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18936 *) ac_try_echo=$ac_try;;
18938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18939 (eval "$ac_link") 2>conftest.er1
18941 grep -v '^ *+' conftest.er1 >conftest.err
18943 cat conftest.err >&5
18944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18945 (exit $ac_status); } &&
18946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18947 { (case "(($ac_try" in
18948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18949 *) ac_try_echo=$ac_try;;
18951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18952 (eval "$ac_try") 2>&5
18954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955 (exit $ac_status); }; } &&
18956 { ac_try='test -s conftest$ac_exeext'
18957 { (case "(($ac_try" in
18958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18959 *) ac_try_echo=$ac_try;;
18961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18962 (eval "$ac_try") 2>&5
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); }; }; then
18966 ac_cv_lib_gcc___udivdi3=yes
18968 echo "$as_me: failed program was:" >&5
18969 sed 's/^/| /' conftest.$ac_ext >&5
18971 ac_cv_lib_gcc___udivdi3=no
18974 rm -f core conftest.err conftest.$ac_objext \
18975 conftest$ac_exeext conftest.$ac_ext
18976 LIBS=$ac_check_lib_save_LIBS
18978 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18979 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18980 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18982 cat >>confdefs.h <<\_ACEOF
18983 #define HAVE___UDIVDI3 1
18988 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18989 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18990 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18991 echo $ECHO_N "(cached) $ECHO_C" >&6
18993 ac_check_lib_save_LIBS=$LIBS
18995 cat >conftest.$ac_ext <<_ACEOF
18998 cat confdefs.h >>conftest.$ac_ext
18999 cat >>conftest.$ac_ext <<_ACEOF
19000 /* end confdefs.h. */
19002 /* Override any GCC internal prototype to avoid an error.
19003 Use char because int might match the return type of a GCC
19004 builtin and then its argument prototype would still apply. */
19012 return __umoddi3 ();
19017 rm -f conftest.$ac_objext conftest$ac_exeext
19018 if { (ac_try="$ac_link"
19019 case "(($ac_try" in
19020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19021 *) ac_try_echo=$ac_try;;
19023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19024 (eval "$ac_link") 2>conftest.er1
19026 grep -v '^ *+' conftest.er1 >conftest.err
19028 cat conftest.err >&5
19029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19030 (exit $ac_status); } &&
19031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19032 { (case "(($ac_try" in
19033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19034 *) ac_try_echo=$ac_try;;
19036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19037 (eval "$ac_try") 2>&5
19039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040 (exit $ac_status); }; } &&
19041 { ac_try='test -s conftest$ac_exeext'
19042 { (case "(($ac_try" in
19043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19044 *) ac_try_echo=$ac_try;;
19046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19047 (eval "$ac_try") 2>&5
19049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050 (exit $ac_status); }; }; then
19051 ac_cv_lib_gcc___umoddi3=yes
19053 echo "$as_me: failed program was:" >&5
19054 sed 's/^/| /' conftest.$ac_ext >&5
19056 ac_cv_lib_gcc___umoddi3=no
19059 rm -f core conftest.err conftest.$ac_objext \
19060 conftest$ac_exeext conftest.$ac_ext
19061 LIBS=$ac_check_lib_save_LIBS
19063 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19064 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19065 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19067 cat >>confdefs.h <<\_ACEOF
19068 #define HAVE___UMODDI3 1
19074 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19075 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19076 if test "${ac_cv_lib_gcc___main+set}" = set; then
19077 echo $ECHO_N "(cached) $ECHO_C" >&6
19079 ac_check_lib_save_LIBS=$LIBS
19081 cat >conftest.$ac_ext <<_ACEOF
19084 cat confdefs.h >>conftest.$ac_ext
19085 cat >>conftest.$ac_ext <<_ACEOF
19086 /* end confdefs.h. */
19088 /* Override any GCC internal prototype to avoid an error.
19089 Use char because int might match the return type of a GCC
19090 builtin and then its argument prototype would still apply. */
19103 rm -f conftest.$ac_objext conftest$ac_exeext
19104 if { (ac_try="$ac_link"
19105 case "(($ac_try" in
19106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19107 *) ac_try_echo=$ac_try;;
19109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19110 (eval "$ac_link") 2>conftest.er1
19112 grep -v '^ *+' conftest.er1 >conftest.err
19114 cat conftest.err >&5
19115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116 (exit $ac_status); } &&
19117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19118 { (case "(($ac_try" in
19119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19120 *) ac_try_echo=$ac_try;;
19122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19123 (eval "$ac_try") 2>&5
19125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126 (exit $ac_status); }; } &&
19127 { ac_try='test -s conftest$ac_exeext'
19128 { (case "(($ac_try" in
19129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19130 *) ac_try_echo=$ac_try;;
19132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19133 (eval "$ac_try") 2>&5
19135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136 (exit $ac_status); }; }; then
19137 ac_cv_lib_gcc___main=yes
19139 echo "$as_me: failed program was:" >&5
19140 sed 's/^/| /' conftest.$ac_ext >&5
19142 ac_cv_lib_gcc___main=no
19145 rm -f core conftest.err conftest.$ac_objext \
19146 conftest$ac_exeext conftest.$ac_ext
19147 LIBS=$ac_check_lib_save_LIBS
19149 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19150 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19151 if test $ac_cv_lib_gcc___main = yes; then
19153 cat >>confdefs.h <<\_ACEOF
19154 #define HAVE___MAIN 1
19159 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19160 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19161 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19162 echo $ECHO_N "(cached) $ECHO_C" >&6
19164 ac_check_lib_save_LIBS=$LIBS
19166 cat >conftest.$ac_ext <<_ACEOF
19169 cat confdefs.h >>conftest.$ac_ext
19170 cat >>conftest.$ac_ext <<_ACEOF
19171 /* end confdefs.h. */
19173 /* Override any GCC internal prototype to avoid an error.
19174 Use char because int might match the return type of a GCC
19175 builtin and then its argument prototype would still apply. */
19183 return __cmpdi2 ();
19188 rm -f conftest.$ac_objext conftest$ac_exeext
19189 if { (ac_try="$ac_link"
19190 case "(($ac_try" in
19191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19192 *) ac_try_echo=$ac_try;;
19194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19195 (eval "$ac_link") 2>conftest.er1
19197 grep -v '^ *+' conftest.er1 >conftest.err
19199 cat conftest.err >&5
19200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19201 (exit $ac_status); } &&
19202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19203 { (case "(($ac_try" in
19204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19205 *) ac_try_echo=$ac_try;;
19207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19208 (eval "$ac_try") 2>&5
19210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19211 (exit $ac_status); }; } &&
19212 { ac_try='test -s conftest$ac_exeext'
19213 { (case "(($ac_try" in
19214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19215 *) ac_try_echo=$ac_try;;
19217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19218 (eval "$ac_try") 2>&5
19220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221 (exit $ac_status); }; }; then
19222 ac_cv_lib_gcc___cmpdi2=yes
19224 echo "$as_me: failed program was:" >&5
19225 sed 's/^/| /' conftest.$ac_ext >&5
19227 ac_cv_lib_gcc___cmpdi2=no
19230 rm -f core conftest.err conftest.$ac_objext \
19231 conftest$ac_exeext conftest.$ac_ext
19232 LIBS=$ac_check_lib_save_LIBS
19234 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19235 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19236 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19238 cat >>confdefs.h <<\_ACEOF
19239 #define HAVE___CMPDI2 1
19246 if test "$llvm_cv_os_type" = "MingW" ; then
19247 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19248 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19249 cat >conftest.$ac_ext <<_ACEOF
19250 #include <windows.h>
19251 #include <imagehlp.h>
19252 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19253 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19255 rm -f conftest.$ac_objext
19256 if { (ac_try="$ac_compile"
19257 case "(($ac_try" in
19258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19259 *) ac_try_echo=$ac_try;;
19261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19262 (eval "$ac_compile") 2>conftest.er1
19264 grep -v '^ *+' conftest.er1 >conftest.err
19266 cat conftest.err >&5
19267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 (exit $ac_status); } &&
19269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19270 { (case "(($ac_try" in
19271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19272 *) ac_try_echo=$ac_try;;
19274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19275 (eval "$ac_try") 2>&5
19277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); }; } &&
19279 { ac_try='test -s conftest.$ac_objext'
19280 { (case "(($ac_try" in
19281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19282 *) ac_try_echo=$ac_try;;
19284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19285 (eval "$ac_try") 2>&5
19287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288 (exit $ac_status); }; }; then
19290 { echo "$as_me:$LINENO: result: yes" >&5
19291 echo "${ECHO_T}yes" >&6; }
19292 llvm_cv_win32_elmcb_pcstr="PCSTR"
19295 echo "$as_me: failed program was:" >&5
19296 sed 's/^/| /' conftest.$ac_ext >&5
19299 { echo "$as_me:$LINENO: result: no" >&5
19300 echo "${ECHO_T}no" >&6; }
19301 llvm_cv_win32_elmcb_pcstr="PSTR"
19305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19307 cat >>confdefs.h <<_ACEOF
19308 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19314 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19315 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19316 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19317 echo $ECHO_N "(cached) $ECHO_C" >&6
19320 ac_cpp='$CXXCPP $CPPFLAGS'
19321 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19322 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19323 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19325 cat >conftest.$ac_ext <<_ACEOF
19328 cat confdefs.h >>conftest.$ac_ext
19329 cat >>conftest.$ac_ext <<_ACEOF
19330 /* end confdefs.h. */
19340 rm -f conftest.$ac_objext
19341 if { (ac_try="$ac_compile"
19342 case "(($ac_try" in
19343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19344 *) ac_try_echo=$ac_try;;
19346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19347 (eval "$ac_compile") 2>conftest.er1
19349 grep -v '^ *+' conftest.er1 >conftest.err
19351 cat conftest.err >&5
19352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353 (exit $ac_status); } &&
19354 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19355 { (case "(($ac_try" in
19356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19357 *) ac_try_echo=$ac_try;;
19359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19360 (eval "$ac_try") 2>&5
19362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363 (exit $ac_status); }; } &&
19364 { ac_try='test -s conftest.$ac_objext'
19365 { (case "(($ac_try" in
19366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19367 *) ac_try_echo=$ac_try;;
19369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19370 (eval "$ac_try") 2>&5
19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); }; }; then
19374 ac_cv_func_isnan_in_math_h=yes
19376 echo "$as_me: failed program was:" >&5
19377 sed 's/^/| /' conftest.$ac_ext >&5
19379 ac_cv_func_isnan_in_math_h=no
19382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19384 ac_cpp='$CPP $CPPFLAGS'
19385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19390 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19391 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19394 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19396 cat >>confdefs.h <<\_ACEOF
19397 #define HAVE_ISNAN_IN_MATH_H 1
19402 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19403 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19404 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19405 echo $ECHO_N "(cached) $ECHO_C" >&6
19408 ac_cpp='$CXXCPP $CPPFLAGS'
19409 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19410 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19411 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19413 cat >conftest.$ac_ext <<_ACEOF
19416 cat confdefs.h >>conftest.$ac_ext
19417 cat >>conftest.$ac_ext <<_ACEOF
19418 /* end confdefs.h. */
19428 rm -f conftest.$ac_objext
19429 if { (ac_try="$ac_compile"
19430 case "(($ac_try" in
19431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19432 *) ac_try_echo=$ac_try;;
19434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19435 (eval "$ac_compile") 2>conftest.er1
19437 grep -v '^ *+' conftest.er1 >conftest.err
19439 cat conftest.err >&5
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); } &&
19442 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19443 { (case "(($ac_try" in
19444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19445 *) ac_try_echo=$ac_try;;
19447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19448 (eval "$ac_try") 2>&5
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 (exit $ac_status); }; } &&
19452 { ac_try='test -s conftest.$ac_objext'
19453 { (case "(($ac_try" in
19454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19455 *) ac_try_echo=$ac_try;;
19457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19458 (eval "$ac_try") 2>&5
19460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19461 (exit $ac_status); }; }; then
19462 ac_cv_func_isnan_in_cmath=yes
19464 echo "$as_me: failed program was:" >&5
19465 sed 's/^/| /' conftest.$ac_ext >&5
19467 ac_cv_func_isnan_in_cmath=no
19470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19472 ac_cpp='$CPP $CPPFLAGS'
19473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19478 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19479 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19481 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19483 cat >>confdefs.h <<\_ACEOF
19484 #define HAVE_ISNAN_IN_CMATH 1
19489 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19490 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19491 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19492 echo $ECHO_N "(cached) $ECHO_C" >&6
19495 ac_cpp='$CXXCPP $CPPFLAGS'
19496 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19497 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19498 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19500 cat >conftest.$ac_ext <<_ACEOF
19503 cat confdefs.h >>conftest.$ac_ext
19504 cat >>conftest.$ac_ext <<_ACEOF
19505 /* end confdefs.h. */
19510 float f; std::isnan(f);
19515 rm -f conftest.$ac_objext
19516 if { (ac_try="$ac_compile"
19517 case "(($ac_try" in
19518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19519 *) ac_try_echo=$ac_try;;
19521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19522 (eval "$ac_compile") 2>conftest.er1
19524 grep -v '^ *+' conftest.er1 >conftest.err
19526 cat conftest.err >&5
19527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528 (exit $ac_status); } &&
19529 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19530 { (case "(($ac_try" in
19531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19532 *) ac_try_echo=$ac_try;;
19534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19535 (eval "$ac_try") 2>&5
19537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538 (exit $ac_status); }; } &&
19539 { ac_try='test -s conftest.$ac_objext'
19540 { (case "(($ac_try" in
19541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19542 *) ac_try_echo=$ac_try;;
19544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19545 (eval "$ac_try") 2>&5
19547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548 (exit $ac_status); }; }; then
19549 ac_cv_func_std_isnan_in_cmath=yes
19551 echo "$as_me: failed program was:" >&5
19552 sed 's/^/| /' conftest.$ac_ext >&5
19554 ac_cv_func_std_isnan_in_cmath=no
19557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19559 ac_cpp='$CPP $CPPFLAGS'
19560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19565 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19566 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19568 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19570 cat >>confdefs.h <<\_ACEOF
19571 #define HAVE_STD_ISNAN_IN_CMATH 1
19577 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19578 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19579 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19580 echo $ECHO_N "(cached) $ECHO_C" >&6
19583 ac_cpp='$CXXCPP $CPPFLAGS'
19584 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19585 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19586 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19588 cat >conftest.$ac_ext <<_ACEOF
19591 cat confdefs.h >>conftest.$ac_ext
19592 cat >>conftest.$ac_ext <<_ACEOF
19593 /* end confdefs.h. */
19603 rm -f conftest.$ac_objext
19604 if { (ac_try="$ac_compile"
19605 case "(($ac_try" in
19606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19607 *) ac_try_echo=$ac_try;;
19609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19610 (eval "$ac_compile") 2>conftest.er1
19612 grep -v '^ *+' conftest.er1 >conftest.err
19614 cat conftest.err >&5
19615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616 (exit $ac_status); } &&
19617 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19618 { (case "(($ac_try" in
19619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19620 *) ac_try_echo=$ac_try;;
19622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19623 (eval "$ac_try") 2>&5
19625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626 (exit $ac_status); }; } &&
19627 { ac_try='test -s conftest.$ac_objext'
19628 { (case "(($ac_try" in
19629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19630 *) ac_try_echo=$ac_try;;
19632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19633 (eval "$ac_try") 2>&5
19635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636 (exit $ac_status); }; }; then
19637 ac_cv_func_isinf_in_math_h=yes
19639 echo "$as_me: failed program was:" >&5
19640 sed 's/^/| /' conftest.$ac_ext >&5
19642 ac_cv_func_isinf_in_math_h=no
19645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19647 ac_cpp='$CPP $CPPFLAGS'
19648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19653 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19654 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19656 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19658 cat >>confdefs.h <<\_ACEOF
19659 #define HAVE_ISINF_IN_MATH_H 1
19664 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19665 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19666 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19667 echo $ECHO_N "(cached) $ECHO_C" >&6
19670 ac_cpp='$CXXCPP $CPPFLAGS'
19671 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19672 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19673 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19675 cat >conftest.$ac_ext <<_ACEOF
19678 cat confdefs.h >>conftest.$ac_ext
19679 cat >>conftest.$ac_ext <<_ACEOF
19680 /* end confdefs.h. */
19690 rm -f conftest.$ac_objext
19691 if { (ac_try="$ac_compile"
19692 case "(($ac_try" in
19693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19694 *) ac_try_echo=$ac_try;;
19696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19697 (eval "$ac_compile") 2>conftest.er1
19699 grep -v '^ *+' conftest.er1 >conftest.err
19701 cat conftest.err >&5
19702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703 (exit $ac_status); } &&
19704 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19705 { (case "(($ac_try" in
19706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19707 *) ac_try_echo=$ac_try;;
19709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19710 (eval "$ac_try") 2>&5
19712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713 (exit $ac_status); }; } &&
19714 { ac_try='test -s conftest.$ac_objext'
19715 { (case "(($ac_try" in
19716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19717 *) ac_try_echo=$ac_try;;
19719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19720 (eval "$ac_try") 2>&5
19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); }; }; then
19724 ac_cv_func_isinf_in_cmath=yes
19726 echo "$as_me: failed program was:" >&5
19727 sed 's/^/| /' conftest.$ac_ext >&5
19729 ac_cv_func_isinf_in_cmath=no
19732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19734 ac_cpp='$CPP $CPPFLAGS'
19735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19740 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19741 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19743 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19745 cat >>confdefs.h <<\_ACEOF
19746 #define HAVE_ISINF_IN_CMATH 1
19751 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19752 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19753 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19754 echo $ECHO_N "(cached) $ECHO_C" >&6
19757 ac_cpp='$CXXCPP $CPPFLAGS'
19758 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19759 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19760 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19762 cat >conftest.$ac_ext <<_ACEOF
19765 cat confdefs.h >>conftest.$ac_ext
19766 cat >>conftest.$ac_ext <<_ACEOF
19767 /* end confdefs.h. */
19772 float f; std::isinf(f);
19777 rm -f conftest.$ac_objext
19778 if { (ac_try="$ac_compile"
19779 case "(($ac_try" in
19780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19781 *) ac_try_echo=$ac_try;;
19783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19784 (eval "$ac_compile") 2>conftest.er1
19786 grep -v '^ *+' conftest.er1 >conftest.err
19788 cat conftest.err >&5
19789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790 (exit $ac_status); } &&
19791 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19792 { (case "(($ac_try" in
19793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19794 *) ac_try_echo=$ac_try;;
19796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19797 (eval "$ac_try") 2>&5
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); }; } &&
19801 { ac_try='test -s conftest.$ac_objext'
19802 { (case "(($ac_try" in
19803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19804 *) ac_try_echo=$ac_try;;
19806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19807 (eval "$ac_try") 2>&5
19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); }; }; then
19811 ac_cv_func_std_isinf_in_cmath=yes
19813 echo "$as_me: failed program was:" >&5
19814 sed 's/^/| /' conftest.$ac_ext >&5
19816 ac_cv_func_std_isinf_in_cmath=no
19819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19821 ac_cpp='$CPP $CPPFLAGS'
19822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19827 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19828 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19830 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19832 cat >>confdefs.h <<\_ACEOF
19833 #define HAVE_STD_ISINF_IN_CMATH 1
19838 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19839 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19840 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19841 echo $ECHO_N "(cached) $ECHO_C" >&6
19844 ac_cpp='$CXXCPP $CPPFLAGS'
19845 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19846 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19847 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19849 cat >conftest.$ac_ext <<_ACEOF
19852 cat confdefs.h >>conftest.$ac_ext
19853 cat >>conftest.$ac_ext <<_ACEOF
19854 /* end confdefs.h. */
19855 #include <ieeefp.h>
19859 float f; finite(f);
19864 rm -f conftest.$ac_objext
19865 if { (ac_try="$ac_compile"
19866 case "(($ac_try" in
19867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19868 *) ac_try_echo=$ac_try;;
19870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19871 (eval "$ac_compile") 2>conftest.er1
19873 grep -v '^ *+' conftest.er1 >conftest.err
19875 cat conftest.err >&5
19876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877 (exit $ac_status); } &&
19878 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19879 { (case "(($ac_try" in
19880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19881 *) ac_try_echo=$ac_try;;
19883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19884 (eval "$ac_try") 2>&5
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); }; } &&
19888 { ac_try='test -s conftest.$ac_objext'
19889 { (case "(($ac_try" in
19890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19891 *) ac_try_echo=$ac_try;;
19893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19894 (eval "$ac_try") 2>&5
19896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19897 (exit $ac_status); }; }; then
19898 ac_cv_func_finite_in_ieeefp_h=yes
19900 echo "$as_me: failed program was:" >&5
19901 sed 's/^/| /' conftest.$ac_ext >&5
19903 ac_cv_func_finite_in_ieeefp_h=no
19906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19908 ac_cpp='$CPP $CPPFLAGS'
19909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19914 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19915 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19917 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19919 cat >>confdefs.h <<\_ACEOF
19920 #define HAVE_FINITE_IN_IEEEFP_H 1
19927 if test "$llvm_cv_platform_type" = "Unix" ; then
19930 for ac_header in stdlib.h unistd.h
19932 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19934 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19937 echo $ECHO_N "(cached) $ECHO_C" >&6
19939 ac_res=`eval echo '${'$as_ac_Header'}'`
19940 { echo "$as_me:$LINENO: result: $ac_res" >&5
19941 echo "${ECHO_T}$ac_res" >&6; }
19943 # Is the header compilable?
19944 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19945 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19946 cat >conftest.$ac_ext <<_ACEOF
19949 cat confdefs.h >>conftest.$ac_ext
19950 cat >>conftest.$ac_ext <<_ACEOF
19951 /* end confdefs.h. */
19952 $ac_includes_default
19953 #include <$ac_header>
19955 rm -f conftest.$ac_objext
19956 if { (ac_try="$ac_compile"
19957 case "(($ac_try" in
19958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19959 *) ac_try_echo=$ac_try;;
19961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19962 (eval "$ac_compile") 2>conftest.er1
19964 grep -v '^ *+' conftest.er1 >conftest.err
19966 cat conftest.err >&5
19967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968 (exit $ac_status); } &&
19969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19970 { (case "(($ac_try" in
19971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19972 *) ac_try_echo=$ac_try;;
19974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19975 (eval "$ac_try") 2>&5
19977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978 (exit $ac_status); }; } &&
19979 { ac_try='test -s conftest.$ac_objext'
19980 { (case "(($ac_try" in
19981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19982 *) ac_try_echo=$ac_try;;
19984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19985 (eval "$ac_try") 2>&5
19987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19988 (exit $ac_status); }; }; then
19989 ac_header_compiler=yes
19991 echo "$as_me: failed program was:" >&5
19992 sed 's/^/| /' conftest.$ac_ext >&5
19994 ac_header_compiler=no
19997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19998 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19999 echo "${ECHO_T}$ac_header_compiler" >&6; }
20001 # Is the header present?
20002 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20003 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20004 cat >conftest.$ac_ext <<_ACEOF
20007 cat confdefs.h >>conftest.$ac_ext
20008 cat >>conftest.$ac_ext <<_ACEOF
20009 /* end confdefs.h. */
20010 #include <$ac_header>
20012 if { (ac_try="$ac_cpp conftest.$ac_ext"
20013 case "(($ac_try" in
20014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20015 *) ac_try_echo=$ac_try;;
20017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20018 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20020 grep -v '^ *+' conftest.er1 >conftest.err
20022 cat conftest.err >&5
20023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024 (exit $ac_status); } >/dev/null; then
20025 if test -s conftest.err; then
20026 ac_cpp_err=$ac_c_preproc_warn_flag
20027 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20034 if test -z "$ac_cpp_err"; then
20035 ac_header_preproc=yes
20037 echo "$as_me: failed program was:" >&5
20038 sed 's/^/| /' conftest.$ac_ext >&5
20040 ac_header_preproc=no
20043 rm -f conftest.err conftest.$ac_ext
20044 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20045 echo "${ECHO_T}$ac_header_preproc" >&6; }
20047 # So? What about this header?
20048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20050 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20051 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20053 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20054 ac_header_preproc=yes
20057 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20058 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20059 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20060 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20061 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20062 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20063 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20064 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20067 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20068 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20070 ## ------------------------------------ ##
20071 ## Report this to http://llvm.org/bugs/ ##
20072 ## ------------------------------------ ##
20074 ) | sed "s/^/$as_me: WARNING: /" >&2
20077 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20080 echo $ECHO_N "(cached) $ECHO_C" >&6
20082 eval "$as_ac_Header=\$ac_header_preproc"
20084 ac_res=`eval echo '${'$as_ac_Header'}'`
20085 { echo "$as_me:$LINENO: result: $ac_res" >&5
20086 echo "${ECHO_T}$ac_res" >&6; }
20089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20090 cat >>confdefs.h <<_ACEOF
20091 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20099 for ac_func in getpagesize
20101 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20102 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20103 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20104 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20105 echo $ECHO_N "(cached) $ECHO_C" >&6
20107 cat >conftest.$ac_ext <<_ACEOF
20110 cat confdefs.h >>conftest.$ac_ext
20111 cat >>conftest.$ac_ext <<_ACEOF
20112 /* end confdefs.h. */
20113 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20115 #define $ac_func innocuous_$ac_func
20117 /* System header to define __stub macros and hopefully few prototypes,
20118 which can conflict with char $ac_func (); below.
20119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20120 <limits.h> exists even on freestanding compilers. */
20123 # include <limits.h>
20125 # include <assert.h>
20130 /* Override any GCC internal prototype to avoid an error.
20131 Use char because int might match the return type of a GCC
20132 builtin and then its argument prototype would still apply. */
20137 /* The GNU C library defines this for functions which it implements
20138 to always fail with ENOSYS. Some functions are actually named
20139 something starting with __ and the normal name is an alias. */
20140 #if defined __stub_$ac_func || defined __stub___$ac_func
20147 return $ac_func ();
20152 rm -f conftest.$ac_objext conftest$ac_exeext
20153 if { (ac_try="$ac_link"
20154 case "(($ac_try" in
20155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20156 *) ac_try_echo=$ac_try;;
20158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20159 (eval "$ac_link") 2>conftest.er1
20161 grep -v '^ *+' conftest.er1 >conftest.err
20163 cat conftest.err >&5
20164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165 (exit $ac_status); } &&
20166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20167 { (case "(($ac_try" in
20168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20169 *) ac_try_echo=$ac_try;;
20171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20172 (eval "$ac_try") 2>&5
20174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175 (exit $ac_status); }; } &&
20176 { ac_try='test -s conftest$ac_exeext'
20177 { (case "(($ac_try" in
20178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20179 *) ac_try_echo=$ac_try;;
20181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20182 (eval "$ac_try") 2>&5
20184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185 (exit $ac_status); }; }; then
20186 eval "$as_ac_var=yes"
20188 echo "$as_me: failed program was:" >&5
20189 sed 's/^/| /' conftest.$ac_ext >&5
20191 eval "$as_ac_var=no"
20194 rm -f core conftest.err conftest.$ac_objext \
20195 conftest$ac_exeext conftest.$ac_ext
20197 ac_res=`eval echo '${'$as_ac_var'}'`
20198 { echo "$as_me:$LINENO: result: $ac_res" >&5
20199 echo "${ECHO_T}$ac_res" >&6; }
20200 if test `eval echo '${'$as_ac_var'}'` = yes; then
20201 cat >>confdefs.h <<_ACEOF
20202 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20208 { echo "$as_me:$LINENO: checking for working mmap" >&5
20209 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20210 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20211 echo $ECHO_N "(cached) $ECHO_C" >&6
20213 if test "$cross_compiling" = yes; then
20214 ac_cv_func_mmap_fixed_mapped=no
20216 cat >conftest.$ac_ext <<_ACEOF
20219 cat confdefs.h >>conftest.$ac_ext
20220 cat >>conftest.$ac_ext <<_ACEOF
20221 /* end confdefs.h. */
20222 $ac_includes_default
20223 /* malloc might have been renamed as rpl_malloc. */
20226 /* Thanks to Mike Haertel and Jim Avera for this test.
20227 Here is a matrix of mmap possibilities:
20228 mmap private not fixed
20229 mmap private fixed at somewhere currently unmapped
20230 mmap private fixed at somewhere already mapped
20231 mmap shared not fixed
20232 mmap shared fixed at somewhere currently unmapped
20233 mmap shared fixed at somewhere already mapped
20234 For private mappings, we should verify that changes cannot be read()
20235 back from the file, nor mmap's back from the file at a different
20236 address. (There have been systems where private was not correctly
20237 implemented like the infamous i386 svr4.0, and systems where the
20238 VM page cache was not coherent with the file system buffer cache
20239 like early versions of FreeBSD and possibly contemporary NetBSD.)
20240 For shared mappings, we should conversely verify that changes get
20241 propagated back to all the places they're supposed to be.
20243 Grep wants private fixed already mapped.
20244 The main things grep needs to know about mmap are:
20245 * does it exist and is it safe to write into the mmap'd area
20246 * how to use it (BSD variants) */
20249 #include <sys/mman.h>
20251 #if !STDC_HEADERS && !HAVE_STDLIB_H
20255 /* This mess was copied from the GNU getpagesize.h. */
20256 #if !HAVE_GETPAGESIZE
20257 /* Assume that all systems that can run configure have sys/param.h. */
20258 # if !HAVE_SYS_PARAM_H
20259 # define HAVE_SYS_PARAM_H 1
20262 # ifdef _SC_PAGESIZE
20263 # define getpagesize() sysconf(_SC_PAGESIZE)
20264 # else /* no _SC_PAGESIZE */
20265 # if HAVE_SYS_PARAM_H
20266 # include <sys/param.h>
20267 # ifdef EXEC_PAGESIZE
20268 # define getpagesize() EXEC_PAGESIZE
20269 # else /* no EXEC_PAGESIZE */
20271 # define getpagesize() NBPG * CLSIZE
20274 # endif /* no CLSIZE */
20275 # else /* no NBPG */
20277 # define getpagesize() NBPC
20278 # else /* no NBPC */
20280 # define getpagesize() PAGESIZE
20281 # endif /* PAGESIZE */
20282 # endif /* no NBPC */
20283 # endif /* no NBPG */
20284 # endif /* no EXEC_PAGESIZE */
20285 # else /* no HAVE_SYS_PARAM_H */
20286 # define getpagesize() 8192 /* punt totally */
20287 # endif /* no HAVE_SYS_PARAM_H */
20288 # endif /* no _SC_PAGESIZE */
20290 #endif /* no HAVE_GETPAGESIZE */
20295 char *data, *data2, *data3;
20299 pagesize = getpagesize ();
20301 /* First, make a file with some known garbage in it. */
20302 data = (char *) malloc (pagesize);
20305 for (i = 0; i < pagesize; ++i)
20306 *(data + i) = rand ();
20308 fd = creat ("conftest.mmap", 0600);
20311 if (write (fd, data, pagesize) != pagesize)
20315 /* Next, try to mmap the file at a fixed address which already has
20316 something else allocated at it. If we can, also make sure that
20317 we see the same garbage. */
20318 fd = open ("conftest.mmap", O_RDWR);
20321 data2 = (char *) malloc (2 * pagesize);
20324 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20325 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20326 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20328 for (i = 0; i < pagesize; ++i)
20329 if (*(data + i) != *(data2 + i))
20332 /* Finally, make sure that changes to the mapped area do not
20333 percolate back to the file as seen by read(). (This is a bug on
20334 some variants of i386 svr4.0.) */
20335 for (i = 0; i < pagesize; ++i)
20336 *(data2 + i) = *(data2 + i) + 1;
20337 data3 = (char *) malloc (pagesize);
20340 if (read (fd, data3, pagesize) != pagesize)
20342 for (i = 0; i < pagesize; ++i)
20343 if (*(data + i) != *(data3 + i))
20349 rm -f conftest$ac_exeext
20350 if { (ac_try="$ac_link"
20351 case "(($ac_try" in
20352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20353 *) ac_try_echo=$ac_try;;
20355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20356 (eval "$ac_link") 2>&5
20358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20360 { (case "(($ac_try" in
20361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20362 *) ac_try_echo=$ac_try;;
20364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20365 (eval "$ac_try") 2>&5
20367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368 (exit $ac_status); }; }; then
20369 ac_cv_func_mmap_fixed_mapped=yes
20371 echo "$as_me: program exited with status $ac_status" >&5
20372 echo "$as_me: failed program was:" >&5
20373 sed 's/^/| /' conftest.$ac_ext >&5
20375 ( exit $ac_status )
20376 ac_cv_func_mmap_fixed_mapped=no
20378 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20383 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20384 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20385 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20387 cat >>confdefs.h <<\_ACEOF
20388 #define HAVE_MMAP 1
20392 rm -f conftest.mmap
20394 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20395 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20396 if test "${ac_cv_func_mmap_file+set}" = set; then
20397 echo $ECHO_N "(cached) $ECHO_C" >&6
20400 ac_cpp='$CPP $CPPFLAGS'
20401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20405 if test "$cross_compiling" = yes; then
20406 ac_cv_func_mmap_file=no
20408 cat >conftest.$ac_ext <<_ACEOF
20412 cat confdefs.h >>conftest.$ac_ext
20413 cat >>conftest.$ac_ext <<_ACEOF
20414 /* end confdefs.h. */
20416 #include <sys/types.h>
20417 #include <sys/mman.h>
20425 fd = creat ("foo",0777);
20426 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20428 return (fd != (int) MAP_FAILED);
20433 rm -f conftest$ac_exeext
20434 if { (ac_try="$ac_link"
20435 case "(($ac_try" in
20436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20437 *) ac_try_echo=$ac_try;;
20439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20440 (eval "$ac_link") 2>&5
20442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20444 { (case "(($ac_try" in
20445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20446 *) ac_try_echo=$ac_try;;
20448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20449 (eval "$ac_try") 2>&5
20451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452 (exit $ac_status); }; }; then
20453 ac_cv_func_mmap_file=yes
20455 echo "$as_me: program exited with status $ac_status" >&5
20456 echo "$as_me: failed program was:" >&5
20457 sed 's/^/| /' conftest.$ac_ext >&5
20459 ( exit $ac_status )
20460 ac_cv_func_mmap_file=no
20462 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20467 ac_cpp='$CPP $CPPFLAGS'
20468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20474 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20475 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20476 if test "$ac_cv_func_mmap_file" = yes; then
20478 cat >>confdefs.h <<\_ACEOF
20479 #define HAVE_MMAP_FILE
20486 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20487 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20488 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20489 echo $ECHO_N "(cached) $ECHO_C" >&6
20491 if test "$llvm_cv_os_type" = "Interix" ; then
20492 ac_cv_need_dev_zero_for_mmap=yes
20494 ac_cv_need_dev_zero_for_mmap=no
20498 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20499 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20500 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20502 cat >>confdefs.h <<\_ACEOF
20503 #define NEED_DEV_ZERO_FOR_MMAP 1
20508 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20510 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20511 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20513 if test "$ac_cv_func_mmap_file" = "no"
20515 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20516 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20520 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20521 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20523 ac_cpp='$CXXCPP $CPPFLAGS'
20524 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20525 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20526 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20528 cat >conftest.$ac_ext <<_ACEOF
20531 cat confdefs.h >>conftest.$ac_ext
20532 cat >>conftest.$ac_ext <<_ACEOF
20533 /* end confdefs.h. */
20535 volatile unsigned long val = 1;
20536 __sync_synchronize();
20537 __sync_val_compare_and_swap(&val, 1, 0);
20538 __sync_add_and_fetch(&val, 1);
20539 __sync_sub_and_fetch(&val, 1);
20544 rm -f conftest.$ac_objext conftest$ac_exeext
20545 if { (ac_try="$ac_link"
20546 case "(($ac_try" in
20547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20548 *) ac_try_echo=$ac_try;;
20550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20551 (eval "$ac_link") 2>conftest.er1
20553 grep -v '^ *+' conftest.er1 >conftest.err
20555 cat conftest.err >&5
20556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557 (exit $ac_status); } &&
20558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20559 { (case "(($ac_try" in
20560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20561 *) ac_try_echo=$ac_try;;
20563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20564 (eval "$ac_try") 2>&5
20566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567 (exit $ac_status); }; } &&
20568 { ac_try='test -s conftest$ac_exeext'
20569 { (case "(($ac_try" in
20570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20571 *) ac_try_echo=$ac_try;;
20573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20574 (eval "$ac_try") 2>&5
20576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577 (exit $ac_status); }; }; then
20579 ac_cpp='$CPP $CPPFLAGS'
20580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20584 { echo "$as_me:$LINENO: result: yes" >&5
20585 echo "${ECHO_T}yes" >&6; }
20587 cat >>confdefs.h <<\_ACEOF
20588 #define LLVM_HAS_ATOMICS 1
20592 echo "$as_me: failed program was:" >&5
20593 sed 's/^/| /' conftest.$ac_ext >&5
20595 { echo "$as_me:$LINENO: result: no" >&5
20596 echo "${ECHO_T}no" >&6; }
20598 cat >>confdefs.h <<\_ACEOF
20599 #define LLVM_HAS_ATOMICS 0
20602 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20603 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20606 rm -f core conftest.err conftest.$ac_objext \
20607 conftest$ac_exeext conftest.$ac_ext
20610 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20611 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20612 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20613 if test "${llvm_cv_linux_mixed+set}" = set; then
20614 echo $ECHO_N "(cached) $ECHO_C" >&6
20617 ac_cpp='$CPP $CPPFLAGS'
20618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20622 cat >conftest.$ac_ext <<_ACEOF
20625 cat confdefs.h >>conftest.$ac_ext
20626 cat >>conftest.$ac_ext <<_ACEOF
20627 /* end confdefs.h. */
20629 error: Not x86-64 even if uname says so!
20640 rm -f conftest.$ac_objext
20641 if { (ac_try="$ac_compile"
20642 case "(($ac_try" in
20643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20644 *) ac_try_echo=$ac_try;;
20646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20647 (eval "$ac_compile") 2>conftest.er1
20649 grep -v '^ *+' conftest.er1 >conftest.err
20651 cat conftest.err >&5
20652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653 (exit $ac_status); } &&
20654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20655 { (case "(($ac_try" in
20656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20657 *) ac_try_echo=$ac_try;;
20659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20660 (eval "$ac_try") 2>&5
20662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20663 (exit $ac_status); }; } &&
20664 { ac_try='test -s conftest.$ac_objext'
20665 { (case "(($ac_try" in
20666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20667 *) ac_try_echo=$ac_try;;
20669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20670 (eval "$ac_try") 2>&5
20672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673 (exit $ac_status); }; }; then
20674 llvm_cv_linux_mixed=no
20676 echo "$as_me: failed program was:" >&5
20677 sed 's/^/| /' conftest.$ac_ext >&5
20679 llvm_cv_linux_mixed=yes
20682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20684 ac_cpp='$CPP $CPPFLAGS'
20685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20691 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20692 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20694 if test "$llvm_cv_linux_mixed" = "yes"; then
20695 llvm_cv_target_arch="x86"
20701 for ac_func in __dso_handle
20703 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20704 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20706 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20707 echo $ECHO_N "(cached) $ECHO_C" >&6
20709 cat >conftest.$ac_ext <<_ACEOF
20712 cat confdefs.h >>conftest.$ac_ext
20713 cat >>conftest.$ac_ext <<_ACEOF
20714 /* end confdefs.h. */
20715 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20717 #define $ac_func innocuous_$ac_func
20719 /* System header to define __stub macros and hopefully few prototypes,
20720 which can conflict with char $ac_func (); below.
20721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20722 <limits.h> exists even on freestanding compilers. */
20725 # include <limits.h>
20727 # include <assert.h>
20732 /* Override any GCC internal prototype to avoid an error.
20733 Use char because int might match the return type of a GCC
20734 builtin and then its argument prototype would still apply. */
20739 /* The GNU C library defines this for functions which it implements
20740 to always fail with ENOSYS. Some functions are actually named
20741 something starting with __ and the normal name is an alias. */
20742 #if defined __stub_$ac_func || defined __stub___$ac_func
20749 return $ac_func ();
20754 rm -f conftest.$ac_objext conftest$ac_exeext
20755 if { (ac_try="$ac_link"
20756 case "(($ac_try" in
20757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20758 *) ac_try_echo=$ac_try;;
20760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20761 (eval "$ac_link") 2>conftest.er1
20763 grep -v '^ *+' conftest.er1 >conftest.err
20765 cat conftest.err >&5
20766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767 (exit $ac_status); } &&
20768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20769 { (case "(($ac_try" in
20770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20771 *) ac_try_echo=$ac_try;;
20773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20774 (eval "$ac_try") 2>&5
20776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20777 (exit $ac_status); }; } &&
20778 { ac_try='test -s conftest$ac_exeext'
20779 { (case "(($ac_try" in
20780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20781 *) ac_try_echo=$ac_try;;
20783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20784 (eval "$ac_try") 2>&5
20786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787 (exit $ac_status); }; }; then
20788 eval "$as_ac_var=yes"
20790 echo "$as_me: failed program was:" >&5
20791 sed 's/^/| /' conftest.$ac_ext >&5
20793 eval "$as_ac_var=no"
20796 rm -f core conftest.err conftest.$ac_objext \
20797 conftest$ac_exeext conftest.$ac_ext
20799 ac_res=`eval echo '${'$as_ac_var'}'`
20800 { echo "$as_me:$LINENO: result: $ac_res" >&5
20801 echo "${ECHO_T}$ac_res" >&6; }
20802 if test `eval echo '${'$as_ac_var'}'` = yes; then
20803 cat >>confdefs.h <<_ACEOF
20804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20811 SHLIBEXT=$libltdl_cv_shlibext
20814 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20817 if test "${prefix}" = "NONE" ; then
20818 prefix="/usr/local"
20820 eval LLVM_PREFIX="${prefix}";
20821 eval LLVM_BINDIR="${prefix}/bin";
20822 eval LLVM_LIBDIR="${prefix}/lib";
20823 eval LLVM_DATADIR="${prefix}/share/llvm";
20824 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20825 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20826 eval LLVM_INCLUDEDIR="${prefix}/include";
20827 eval LLVM_INFODIR="${prefix}/info";
20828 eval LLVM_MANDIR="${prefix}/man";
20829 LLVM_CONFIGTIME=`date`
20841 if test "${ENABLE_TIMESTAMPS}" = "0"; then
20842 LLVM_CONFIGTIME="(timestamp not enabled)"
20846 cat >>confdefs.h <<_ACEOF
20847 #define LLVM_PREFIX "$LLVM_PREFIX"
20851 cat >>confdefs.h <<_ACEOF
20852 #define LLVM_BINDIR "$LLVM_BINDIR"
20856 cat >>confdefs.h <<_ACEOF
20857 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20861 cat >>confdefs.h <<_ACEOF
20862 #define LLVM_DATADIR "$LLVM_DATADIR"
20866 cat >>confdefs.h <<_ACEOF
20867 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20871 cat >>confdefs.h <<_ACEOF
20872 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20876 cat >>confdefs.h <<_ACEOF
20877 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20881 cat >>confdefs.h <<_ACEOF
20882 #define LLVM_INFODIR "$LLVM_INFODIR"
20886 cat >>confdefs.h <<_ACEOF
20887 #define LLVM_MANDIR "$LLVM_MANDIR"
20891 cat >>confdefs.h <<_ACEOF
20892 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20896 cat >>confdefs.h <<_ACEOF
20897 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20901 if test "$BINDINGS_TO_BUILD" = auto ; then
20902 BINDINGS_TO_BUILD=""
20903 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20904 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20907 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20913 binding_prereqs_failed=0
20914 for a_binding in $BINDINGS_TO_BUILD ; do
20915 case "$a_binding" in
20917 if test "x$OCAMLC" = x ; then
20918 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20919 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20920 binding_prereqs_failed=1
20922 if test "x$OCAMLDEP" = x ; then
20923 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20924 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20925 binding_prereqs_failed=1
20927 if test "x$OCAMLOPT" = x ; then
20928 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20929 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20931 if test "x$with_ocaml_libdir" != xauto ; then
20932 OCAML_LIBDIR=$with_ocaml_libdir
20935 ocaml_stdlib="`"$OCAMLC" -where`"
20936 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20938 # ocaml stdlib is beneath our prefix; use stdlib
20939 OCAML_LIBDIR=$ocaml_stdlib
20942 # ocaml stdlib is outside our prefix; use libdir/ocaml
20943 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20950 if test "$binding_prereqs_failed" = 1 ; then
20951 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20952 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20953 { (exit 1); exit 1; }; }
20956 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20957 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20958 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20959 echo $ECHO_N "(cached) $ECHO_C" >&6
20962 ac_cpp='$CXXCPP $CPPFLAGS'
20963 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20964 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20965 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20967 oldcxxflags="$CXXFLAGS"
20968 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
20969 cat >conftest.$ac_ext <<_ACEOF
20972 cat confdefs.h >>conftest.$ac_ext
20973 cat >>conftest.$ac_ext <<_ACEOF
20974 /* end confdefs.h. */
20975 template <typename T> struct X { void __attribute__((noinline)) f() {} };
20984 rm -f conftest.$ac_objext
20985 if { (ac_try="$ac_compile"
20986 case "(($ac_try" in
20987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20988 *) ac_try_echo=$ac_try;;
20990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20991 (eval "$ac_compile") 2>conftest.er1
20993 grep -v '^ *+' conftest.er1 >conftest.err
20995 cat conftest.err >&5
20996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997 (exit $ac_status); } &&
20998 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20999 { (case "(($ac_try" in
21000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21001 *) ac_try_echo=$ac_try;;
21003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21004 (eval "$ac_try") 2>&5
21006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007 (exit $ac_status); }; } &&
21008 { ac_try='test -s conftest.$ac_objext'
21009 { (case "(($ac_try" in
21010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21011 *) ac_try_echo=$ac_try;;
21013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21014 (eval "$ac_try") 2>&5
21016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017 (exit $ac_status); }; }; then
21018 llvm_cv_cxx_visibility_inlines_hidden=yes
21020 echo "$as_me: failed program was:" >&5
21021 sed 's/^/| /' conftest.$ac_ext >&5
21023 llvm_cv_cxx_visibility_inlines_hidden=no
21026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21027 CXXFLAGS="$oldcxxflags"
21029 ac_cpp='$CPP $CPPFLAGS'
21030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21036 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21037 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21038 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21039 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21042 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21047 if test "$llvm_cv_link_use_r" = "yes" ; then
21054 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21055 RDYNAMIC="-Wl,-export-dynamic"
21062 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21069 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21071 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21073 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21075 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21077 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21080 ac_config_files="$ac_config_files Makefile.config"
21083 ac_config_files="$ac_config_files llvm.spec"
21086 ac_config_files="$ac_config_files docs/doxygen.cfg"
21089 if test "${clang_src_root}" = ""; then
21090 clang_src_root="$srcdir/tools/clang"
21092 if test -f ${clang_src_root}/README.txt; then
21093 configh="include/clang/Config/config.h"
21094 doxy="docs/doxygen.cfg"
21095 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21097 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21101 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21104 ac_config_commands="$ac_config_commands setup"
21106 ac_config_commands="$ac_config_commands Makefile"
21109 ac_config_commands="$ac_config_commands Makefile.common"
21112 ac_config_commands="$ac_config_commands examples/Makefile"
21115 ac_config_commands="$ac_config_commands lib/Makefile"
21118 ac_config_commands="$ac_config_commands runtime/Makefile"
21121 ac_config_commands="$ac_config_commands test/Makefile"
21124 ac_config_commands="$ac_config_commands test/Makefile.tests"
21127 ac_config_commands="$ac_config_commands unittests/Makefile"
21130 ac_config_commands="$ac_config_commands tools/Makefile"
21133 ac_config_commands="$ac_config_commands utils/Makefile"
21136 ac_config_commands="$ac_config_commands projects/Makefile"
21139 ac_config_commands="$ac_config_commands bindings/Makefile"
21142 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21146 cat >confcache <<\_ACEOF
21147 # This file is a shell script that caches the results of configure
21148 # tests run on this system so they can be shared between configure
21149 # scripts and configure runs, see configure's option --config-cache.
21150 # It is not useful on other systems. If it contains results you don't
21151 # want to keep, you may remove or edit it.
21153 # config.status only pays attention to the cache file if you give it
21154 # the --recheck option to rerun configure.
21156 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21157 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21158 # following values.
21162 # The following way of writing the cache mishandles newlines in values,
21163 # but we know of no workaround that is simple, portable, and efficient.
21164 # So, we kill variables containing newlines.
21165 # Ultrix sh set writes to stderr and can't be redirected directly,
21166 # and sets the high bit in the cache file unless we assign to the vars.
21168 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21169 eval ac_val=\$$ac_var
21173 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21174 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21177 _ | IFS | as_nl) ;; #(
21178 *) $as_unset $ac_var ;;
21184 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21185 *${as_nl}ac_space=\ *)
21186 # `set' does not quote correctly, so add quotes (double-quote
21187 # substitution turns \\\\ into \\, and sed turns \\ into \).
21190 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21193 # `set' quotes correctly as required by POSIX, so do not add quotes.
21194 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21203 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21205 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21207 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21208 if test -w "$cache_file"; then
21209 test "x$cache_file" != "x/dev/null" &&
21210 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21211 echo "$as_me: updating cache $cache_file" >&6;}
21212 cat confcache >$cache_file
21214 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21215 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21220 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21221 # Let make expand exec_prefix.
21222 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21224 DEFS=-DHAVE_CONFIG_H
21228 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21229 # 1. Remove the extension, and $U if already installed.
21230 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21231 ac_i=`echo "$ac_i" | sed "$ac_script"`
21232 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21233 # will be set to the directory where LIBOBJS objects are built.
21234 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21235 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21237 LIBOBJS=$ac_libobjs
21239 LTLIBOBJS=$ac_ltlibobjs
21242 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21243 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21244 Usually this means the macro was only invoked conditionally." >&5
21245 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21246 Usually this means the macro was only invoked conditionally." >&2;}
21247 { (exit 1); exit 1; }; }
21249 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21250 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21251 Usually this means the macro was only invoked conditionally." >&5
21252 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21253 Usually this means the macro was only invoked conditionally." >&2;}
21254 { (exit 1); exit 1; }; }
21257 : ${CONFIG_STATUS=./config.status}
21258 ac_clean_files_save=$ac_clean_files
21259 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21260 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21261 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21262 cat >$CONFIG_STATUS <<_ACEOF
21264 # Generated by $as_me.
21265 # Run this file to recreate the current configuration.
21266 # Compiler output produced by configure, useful for debugging
21267 # configure, is in config.log if it exists.
21270 ac_cs_recheck=false
21272 SHELL=\${CONFIG_SHELL-$SHELL}
21275 cat >>$CONFIG_STATUS <<\_ACEOF
21276 ## --------------------- ##
21277 ## M4sh Initialization. ##
21278 ## --------------------- ##
21280 # Be Bourne compatible
21281 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21284 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21285 # is contrary to our usage. Disable this feature.
21286 alias -g '${1+"$@"}'='"$@"'
21287 setopt NO_GLOB_SUBST
21289 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21291 BIN_SH=xpg4; export BIN_SH # for Tru64
21292 DUALCASE=1; export DUALCASE # for MKS sh
21296 # Avoid depending upon Character Ranges.
21297 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21298 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21299 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21300 as_cr_digits='0123456789'
21301 as_cr_alnum=$as_cr_Letters$as_cr_digits
21303 # The user is always right.
21304 if test "${PATH_SEPARATOR+set}" != set; then
21305 echo "#! /bin/sh" >conf$$.sh
21306 echo "exit 0" >>conf$$.sh
21308 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21316 # Support unset when possible.
21317 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21325 # We need space, tab and new line, in precisely that order. Quoting is
21326 # there to prevent editors from complaining about space-tab.
21327 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21328 # splitting by setting IFS to empty value.)
21333 # Find who we are. Look in the path if we contain no directory separator.
21335 *[\\/]* ) as_myself=$0 ;;
21336 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21337 for as_dir in $PATH
21340 test -z "$as_dir" && as_dir=.
21341 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21347 # We did not find ourselves, most probably we were run as `sh COMMAND'
21348 # in which case we are not to be found in the path.
21349 if test "x$as_myself" = x; then
21352 if test ! -f "$as_myself"; then
21353 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21354 { (exit 1); exit 1; }
21357 # Work around bugs in pre-3.0 UWIN ksh.
21358 for as_var in ENV MAIL MAILPATH
21359 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21367 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21368 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21369 LC_TELEPHONE LC_TIME
21371 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21372 eval $as_var=C; export $as_var
21374 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21378 # Required to use basename.
21379 if expr a : '\(a\)' >/dev/null 2>&1 &&
21380 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21386 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21387 as_basename=basename
21393 # Name of the executable.
21394 as_me=`$as_basename -- "$0" ||
21395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21396 X"$0" : 'X\(//\)$' \| \
21397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21399 sed '/^.*\/\([^/][^/]*\)\/*$/{
21418 as_lineno_1=$LINENO
21419 as_lineno_2=$LINENO
21420 test "x$as_lineno_1" != "x$as_lineno_2" &&
21421 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21423 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21424 # uniformly replaced by the line number. The first 'sed' inserts a
21425 # line-number line after each line using $LINENO; the second 'sed'
21426 # does the real work. The second script uses 'N' to pair each
21427 # line-number line with the line containing $LINENO, and appends
21428 # trailing '-' during substitution so that $LINENO is not a special
21429 # case at line end.
21430 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21431 # scripts with optimization help from Paolo Bonzini. Blame Lee
21432 # E. McMahon (1931-1989) for sed's syntax. :-)
21444 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21447 ' >$as_me.lineno &&
21448 chmod +x "$as_me.lineno" ||
21449 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21450 { (exit 1); exit 1; }; }
21452 # Don't try to exec as it changes $[0], causing all sort of problems
21453 # (the dirname of $[0] is not the place where we might find the
21454 # original and so on. Autoconf is especially sensitive to this).
21455 . "./$as_me.lineno"
21456 # Exit status is that of the last command.
21461 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21467 ECHO_C= ECHO_N= ECHO_T=
21468 case `echo -n x` in
21470 case `echo 'x\c'` in
21471 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21478 if expr a : '\(a\)' >/dev/null 2>&1 &&
21479 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21485 rm -f conf$$ conf$$.exe conf$$.file
21486 if test -d conf$$.dir; then
21487 rm -f conf$$.dir/conf$$.file
21493 if ln -s conf$$.file conf$$ 2>/dev/null; then
21495 # ... but there are two gotchas:
21496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21498 # In both cases, we have to default to `cp -p'.
21499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21501 elif ln conf$$.file conf$$ 2>/dev/null; then
21506 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21507 rmdir conf$$.dir 2>/dev/null
21509 if mkdir -p . 2>/dev/null; then
21512 test -d ./-p && rmdir ./-p
21516 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21517 # systems may use methods other than mode bits to determine executability.
21518 cat >conf$$.file <<_ASEOF
21522 chmod +x conf$$.file
21523 if test -x conf$$.file >/dev/null 2>&1; then
21524 as_executable_p="test -x"
21530 # Sed expression to map a string onto a valid CPP name.
21531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21533 # Sed expression to map a string onto a valid variable name.
21534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21539 # Save the log message, to keep $[0] and so on meaningful, and to
21540 # report actual input values of CONFIG_FILES etc. instead of their
21541 # values after options handling.
21543 This file was extended by LLVM $as_me 3.2svn, which was
21544 generated by GNU Autoconf 2.60. Invocation command line was
21546 CONFIG_FILES = $CONFIG_FILES
21547 CONFIG_HEADERS = $CONFIG_HEADERS
21548 CONFIG_LINKS = $CONFIG_LINKS
21549 CONFIG_COMMANDS = $CONFIG_COMMANDS
21552 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21557 cat >>$CONFIG_STATUS <<_ACEOF
21558 # Files that config.status was made for.
21559 config_files="$ac_config_files"
21560 config_headers="$ac_config_headers"
21561 config_commands="$ac_config_commands"
21565 cat >>$CONFIG_STATUS <<\_ACEOF
21567 \`$as_me' instantiates files from templates according to the
21568 current configuration.
21570 Usage: $0 [OPTIONS] [FILE]...
21572 -h, --help print this help, then exit
21573 -V, --version print version number, then exit
21574 -q, --quiet do not print progress messages
21575 -d, --debug don't remove temporary files
21576 --recheck update $as_me by reconfiguring in the same conditions
21577 --file=FILE[:TEMPLATE]
21578 instantiate the configuration file FILE
21579 --header=FILE[:TEMPLATE]
21580 instantiate the configuration header FILE
21582 Configuration files:
21585 Configuration headers:
21588 Configuration commands:
21591 Report bugs to <bug-autoconf@gnu.org>."
21594 cat >>$CONFIG_STATUS <<_ACEOF
21596 LLVM config.status 3.2svn
21597 configured by $0, generated by GNU Autoconf 2.60,
21598 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21600 Copyright (C) 2006 Free Software Foundation, Inc.
21601 This config.status script is free software; the Free Software Foundation
21602 gives unlimited permission to copy, distribute and modify it."
21609 cat >>$CONFIG_STATUS <<\_ACEOF
21610 # If no file are specified by the user, then we need to provide default
21611 # value. By we need to know if files were specified by the user.
21617 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21618 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21629 # Handling of the options.
21630 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21632 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21633 echo "$ac_cs_version"; exit ;;
21634 --debug | --debu | --deb | --de | --d | -d )
21636 --file | --fil | --fi | --f )
21638 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21639 ac_need_defaults=false;;
21640 --header | --heade | --head | --hea )
21642 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21643 ac_need_defaults=false;;
21645 # Conflict between --help and --header
21646 { echo "$as_me: error: ambiguous option: $1
21647 Try \`$0 --help' for more information." >&2
21648 { (exit 1); exit 1; }; };;
21649 --help | --hel | -h )
21650 echo "$ac_cs_usage"; exit ;;
21651 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21652 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21655 # This is an error.
21656 -*) { echo "$as_me: error: unrecognized option: $1
21657 Try \`$0 --help' for more information." >&2
21658 { (exit 1); exit 1; }; } ;;
21660 *) ac_config_targets="$ac_config_targets $1"
21661 ac_need_defaults=false ;;
21667 ac_configure_extra_args=
21669 if $ac_cs_silent; then
21671 ac_configure_extra_args="$ac_configure_extra_args --silent"
21675 cat >>$CONFIG_STATUS <<_ACEOF
21676 if \$ac_cs_recheck; then
21677 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21678 CONFIG_SHELL=$SHELL
21679 export CONFIG_SHELL
21680 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21684 cat >>$CONFIG_STATUS <<\_ACEOF
21688 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21689 ## Running $as_me. ##
21695 cat >>$CONFIG_STATUS <<_ACEOF
21699 llvm_src="${srcdir}"
21703 cat >>$CONFIG_STATUS <<\_ACEOF
21705 # Handling of arguments.
21706 for ac_config_target in $ac_config_targets
21708 case $ac_config_target in
21709 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21710 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21711 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21712 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21713 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21714 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21715 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21716 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21717 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21718 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21719 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21720 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
21721 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21722 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21723 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21724 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21725 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21726 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21727 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21728 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21729 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21730 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21731 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21732 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21733 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21734 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21735 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21737 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21738 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21739 { (exit 1); exit 1; }; };;
21744 # If the user did not use the arguments to specify the items to instantiate,
21745 # then the envvar interface is used. Set only those that are not.
21746 # We use the long form for the default assignment because of an extremely
21747 # bizarre bug on SunOS 4.1.3.
21748 if $ac_need_defaults; then
21749 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21750 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21751 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21754 # Have a temporary directory for convenience. Make it in the build tree
21755 # simply because there is no reason against having it here, and in addition,
21756 # creating and moving files from /tmp can sometimes cause problems.
21757 # Hook for its removal unless debugging.
21758 # Note that there is a small window in which the directory will not be cleaned:
21759 # after its creation but before its name has been assigned to `$tmp'.
21763 trap 'exit_status=$?
21764 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21766 trap '{ (exit 1); exit 1; }' 1 2 13 15
21768 # Create a (secure) tmp directory for tmp files.
21771 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21772 test -n "$tmp" && test -d "$tmp"
21775 tmp=./conf$$-$RANDOM
21776 (umask 077 && mkdir "$tmp")
21779 echo "$me: cannot create a temporary directory in ." >&2
21780 { (exit 1); exit 1; }
21784 # Set up the sed scripts for CONFIG_FILES section.
21787 # No need to generate the scripts if there are no CONFIG_FILES.
21788 # This happens for instance when ./config.status config.h
21789 if test -n "$CONFIG_FILES"; then
21796 for ac_last_try in false false false false false :; do
21797 cat >conf$$subs.sed <<_ACEOF
21798 SHELL!$SHELL$ac_delim
21799 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21800 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21801 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21802 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21803 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21804 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21805 exec_prefix!$exec_prefix$ac_delim
21806 prefix!$prefix$ac_delim
21807 program_transform_name!$program_transform_name$ac_delim
21808 bindir!$bindir$ac_delim
21809 sbindir!$sbindir$ac_delim
21810 libexecdir!$libexecdir$ac_delim
21811 datarootdir!$datarootdir$ac_delim
21812 datadir!$datadir$ac_delim
21813 sysconfdir!$sysconfdir$ac_delim
21814 sharedstatedir!$sharedstatedir$ac_delim
21815 localstatedir!$localstatedir$ac_delim
21816 includedir!$includedir$ac_delim
21817 oldincludedir!$oldincludedir$ac_delim
21818 docdir!$docdir$ac_delim
21819 infodir!$infodir$ac_delim
21820 htmldir!$htmldir$ac_delim
21821 dvidir!$dvidir$ac_delim
21822 pdfdir!$pdfdir$ac_delim
21823 psdir!$psdir$ac_delim
21824 libdir!$libdir$ac_delim
21825 localedir!$localedir$ac_delim
21826 mandir!$mandir$ac_delim
21827 DEFS!$DEFS$ac_delim
21828 ECHO_C!$ECHO_C$ac_delim
21829 ECHO_N!$ECHO_N$ac_delim
21830 ECHO_T!$ECHO_T$ac_delim
21831 LIBS!$LIBS$ac_delim
21832 build_alias!$build_alias$ac_delim
21833 host_alias!$host_alias$ac_delim
21834 target_alias!$target_alias$ac_delim
21835 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21837 CFLAGS!$CFLAGS$ac_delim
21838 LDFLAGS!$LDFLAGS$ac_delim
21839 CPPFLAGS!$CPPFLAGS$ac_delim
21840 ac_ct_CC!$ac_ct_CC$ac_delim
21841 EXEEXT!$EXEEXT$ac_delim
21842 OBJEXT!$OBJEXT$ac_delim
21844 CXXFLAGS!$CXXFLAGS$ac_delim
21845 ac_ct_CXX!$ac_ct_CXX$ac_delim
21847 subdirs!$subdirs$ac_delim
21848 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21849 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21850 build!$build$ac_delim
21851 build_cpu!$build_cpu$ac_delim
21852 build_vendor!$build_vendor$ac_delim
21853 build_os!$build_os$ac_delim
21854 host!$host$ac_delim
21855 host_cpu!$host_cpu$ac_delim
21856 host_vendor!$host_vendor$ac_delim
21857 host_os!$host_os$ac_delim
21858 target!$target$ac_delim
21859 target_cpu!$target_cpu$ac_delim
21860 target_vendor!$target_vendor$ac_delim
21861 target_os!$target_os$ac_delim
21863 HOST_OS!$HOST_OS$ac_delim
21864 TARGET_OS!$TARGET_OS$ac_delim
21865 LINKALL!$LINKALL$ac_delim
21866 NOLINKALL!$NOLINKALL$ac_delim
21867 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21868 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21869 ARCH!$ARCH$ac_delim
21870 ENDIAN!$ENDIAN$ac_delim
21871 GREP!$GREP$ac_delim
21872 EGREP!$EGREP$ac_delim
21873 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21874 BUILD_CC!$BUILD_CC$ac_delim
21875 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21876 BUILD_CXX!$BUILD_CXX$ac_delim
21877 CVSBUILD!$CVSBUILD$ac_delim
21878 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21879 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21880 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21881 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21882 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21883 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21884 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21885 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21887 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21888 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21889 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21890 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
21891 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21892 ENABLE_PIC!$ENABLE_PIC$ac_delim
21893 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21894 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21897 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21899 elif $ac_last_try; then
21900 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21901 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21902 { (exit 1); exit 1; }; }
21904 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21908 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21909 if test -n "$ac_eof"; then
21910 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21911 ac_eof=`expr $ac_eof + 1`
21914 cat >>$CONFIG_STATUS <<_ACEOF
21915 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21916 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21919 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21920 s/^/s,@/; s/!/@,|#_!!_#|/
21923 s/'"$ac_delim"'$/,g/; t
21925 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21926 ' >>$CONFIG_STATUS <conf$$subs.sed
21927 rm -f conf$$subs.sed
21928 cat >>$CONFIG_STATUS <<_ACEOF
21934 for ac_last_try in false false false false false :; do
21935 cat >conf$$subs.sed <<_ACEOF
21936 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21937 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21938 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21939 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21940 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21941 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21942 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21943 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21944 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21945 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
21946 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21947 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
21949 ifGNUmake!$ifGNUmake$ac_delim
21950 LN_S!$LN_S$ac_delim
21953 DATE!$DATE$ac_delim
21954 FIND!$FIND$ac_delim
21955 MKDIR!$MKDIR$ac_delim
21957 RANLIB!$RANLIB$ac_delim
21962 BINPWD!$BINPWD$ac_delim
21963 GRAPHVIZ!$GRAPHVIZ$ac_delim
21966 NEATO!$NEATO$ac_delim
21967 TWOPI!$TWOPI$ac_delim
21968 CIRCO!$CIRCO$ac_delim
21970 DOTTY!$DOTTY$ac_delim
21971 XDOT_PY!$XDOT_PY$ac_delim
21972 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21973 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21974 INSTALL_DATA!$INSTALL_DATA$ac_delim
21975 BZIP2!$BZIP2$ac_delim
21977 DOXYGEN!$DOXYGEN$ac_delim
21978 GZIPBIN!$GZIPBIN$ac_delim
21979 TCLSH!$TCLSH$ac_delim
21981 OCAMLC!$OCAMLC$ac_delim
21982 OCAMLOPT!$OCAMLOPT$ac_delim
21983 OCAMLDEP!$OCAMLDEP$ac_delim
21984 OCAMLDOC!$OCAMLDOC$ac_delim
21985 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21986 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21987 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21988 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21989 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21990 LIBADD_DL!$LIBADD_DL$ac_delim
21991 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21992 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21993 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
21994 USE_UDIS86!$USE_UDIS86$ac_delim
21995 USE_OPROFILE!$USE_OPROFILE$ac_delim
21996 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
21997 INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
21998 INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
21999 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22000 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22001 MMAP_FILE!$MMAP_FILE$ac_delim
22002 SHLIBEXT!$SHLIBEXT$ac_delim
22003 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22004 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22005 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22006 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22007 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22008 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22009 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22010 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22011 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22012 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22013 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22014 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22015 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22016 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22017 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22018 RPATH!$RPATH$ac_delim
22019 RDYNAMIC!$RDYNAMIC$ac_delim
22020 LIBOBJS!$LIBOBJS$ac_delim
22021 LTLIBOBJS!$LTLIBOBJS$ac_delim
22024 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 86; then
22026 elif $ac_last_try; then
22027 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22028 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22029 { (exit 1); exit 1; }; }
22031 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22035 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22036 if test -n "$ac_eof"; then
22037 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22038 ac_eof=`expr $ac_eof + 1`
22041 cat >>$CONFIG_STATUS <<_ACEOF
22042 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22043 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22046 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22047 s/^/s,@/; s/!/@,|#_!!_#|/
22050 s/'"$ac_delim"'$/,g/; t
22052 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22053 ' >>$CONFIG_STATUS <conf$$subs.sed
22054 rm -f conf$$subs.sed
22055 cat >>$CONFIG_STATUS <<_ACEOF
22062 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22063 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22064 # trailing colons and then remove the whole line if VPATH becomes empty
22065 # (actually we leave an empty line to preserve line numbers).
22066 if test "x$srcdir" = x.; then
22067 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22068 s/:*\$(srcdir):*/:/
22069 s/:*\${srcdir}:*/:/
22071 s/^\([^=]*=[ ]*\):*/\1/
22077 cat >>$CONFIG_STATUS <<\_ACEOF
22078 fi # test -n "$CONFIG_FILES"
22081 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22084 :[FHLC]) ac_mode=$ac_tag; continue;;
22086 case $ac_mode$ac_tag in
22088 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22089 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22090 { (exit 1); exit 1; }; };;
22091 :[FH]-) ac_tag=-:-;;
22092 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22109 -) ac_f="$tmp/stdin";;
22110 *) # Look for the file first in the build tree, then in the source tree
22111 # (if the path is not absolute). The absolute path cannot be DOS-style,
22112 # because $ac_f cannot contain `:'.
22116 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22118 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22119 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22120 { (exit 1); exit 1; }; };;
22122 ac_file_inputs="$ac_file_inputs $ac_f"
22125 # Let's still pretend it is `configure' which instantiates (i.e., don't
22126 # use $as_me), people would be surprised to read:
22127 # /* config.h. Generated by config.status. */
22128 configure_input="Generated from "`IFS=:
22129 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22130 if test x"$ac_file" != x-; then
22131 configure_input="$ac_file. $configure_input"
22132 { echo "$as_me:$LINENO: creating $ac_file" >&5
22133 echo "$as_me: creating $ac_file" >&6;}
22137 *:-:* | *:-) cat >"$tmp/stdin";;
22142 ac_dir=`$as_dirname -- "$ac_file" ||
22143 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22144 X"$ac_file" : 'X\(//\)[^/]' \| \
22145 X"$ac_file" : 'X\(//\)$' \| \
22146 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22152 /^X\(\/\/\)[^/].*/{
22167 -*) as_dir=./$as_dir;;
22169 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22173 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22174 *) as_qdir=$as_dir;;
22176 as_dirs="'$as_qdir' $as_dirs"
22177 as_dir=`$as_dirname -- "$as_dir" ||
22178 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22179 X"$as_dir" : 'X\(//\)[^/]' \| \
22180 X"$as_dir" : 'X\(//\)$' \| \
22181 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22187 /^X\(\/\/\)[^/].*/{
22200 test -d "$as_dir" && break
22202 test -z "$as_dirs" || eval "mkdir $as_dirs"
22203 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22204 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22205 { (exit 1); exit 1; }; }; }
22209 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22211 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22212 # A ".." for each directory in $ac_dir_suffix.
22213 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22214 case $ac_top_builddir_sub in
22215 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22216 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22219 ac_abs_top_builddir=$ac_pwd
22220 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22221 # for backward compatibility:
22222 ac_top_builddir=$ac_top_build_prefix
22225 .) # We are building in place.
22227 ac_top_srcdir=$ac_top_builddir_sub
22228 ac_abs_top_srcdir=$ac_pwd ;;
22229 [\\/]* | ?:[\\/]* ) # Absolute name.
22230 ac_srcdir=$srcdir$ac_dir_suffix;
22231 ac_top_srcdir=$srcdir
22232 ac_abs_top_srcdir=$srcdir ;;
22233 *) # Relative name.
22234 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22235 ac_top_srcdir=$ac_top_build_prefix$srcdir
22236 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22238 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22248 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22249 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22253 cat >>$CONFIG_STATUS <<\_ACEOF
22254 # If the template does not know about datarootdir, expand it.
22255 # FIXME: This hack should be removed a few years after 2.60.
22256 ac_datarootdir_hack=; ac_datarootdir_seen=
22258 case `sed -n '/datarootdir/ {
22267 ' $ac_file_inputs` in
22268 *datarootdir*) ac_datarootdir_seen=yes;;
22269 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22270 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22271 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22273 cat >>$CONFIG_STATUS <<_ACEOF
22274 ac_datarootdir_hack='
22275 s&@datadir@&$datadir&g
22276 s&@docdir@&$docdir&g
22277 s&@infodir@&$infodir&g
22278 s&@localedir@&$localedir&g
22279 s&@mandir@&$mandir&g
22280 s&\\\${datarootdir}&$datarootdir&g' ;;
22284 # Neutralize VPATH when `$srcdir' = `.'.
22285 # Shell code in configure.ac might set extrasub.
22286 # FIXME: do we really want to maintain this feature?
22287 cat >>$CONFIG_STATUS <<_ACEOF
22291 cat >>$CONFIG_STATUS <<\_ACEOF
22293 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22294 s&@configure_input@&$configure_input&;t t
22295 s&@top_builddir@&$ac_top_builddir_sub&;t t
22296 s&@srcdir@&$ac_srcdir&;t t
22297 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22298 s&@top_srcdir@&$ac_top_srcdir&;t t
22299 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22300 s&@builddir@&$ac_builddir&;t t
22301 s&@abs_builddir@&$ac_abs_builddir&;t t
22302 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22303 s&@INSTALL@&$ac_INSTALL&;t t
22304 $ac_datarootdir_hack
22305 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22307 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22308 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22309 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22310 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22311 which seems to be undefined. Please make sure it is defined." >&5
22312 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22313 which seems to be undefined. Please make sure it is defined." >&2;}
22317 -) cat "$tmp/out"; rm -f "$tmp/out";;
22318 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22327 # Transform confdefs.h into a sed script `conftest.defines', that
22328 # substitutes the proper values into config.h.in to produce config.h.
22329 rm -f conftest.defines conftest.tail
22330 # First, append a space to every undef/define line, to ease matching.
22331 echo 's/$/ /' >conftest.defines
22332 # Then, protect against being on the right side of a sed subst, or in
22333 # an unquoted here document, in config.status. If some macros were
22334 # called several times there might be several #defines for the same
22335 # symbol, which is useless. But do not sort them, since the last
22336 # AC_DEFINE must be honored.
22337 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22338 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22339 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22340 # PARAMS is the parameter list in the macro definition--in most cases, it's
22341 # just an empty string.
22342 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22343 ac_dB='\\)[ (].*,\\1define\\2'
22351 s/^[ ]*#[ ]*define[ ][ ]*//
22356 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22357 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22358 ' >>conftest.defines
22360 # Remove the space that was appended to ease matching.
22361 # Then replace #undef with comments. This is necessary, for
22362 # example, in the case of _POSIX_SOURCE, which is predefined and required
22363 # on some systems where configure will not decide to define it.
22364 # (The regexp can be short, since the line contains either #define or #undef.)
22366 s,^[ #]*u.*,/* & */,' >>conftest.defines
22368 # Break up conftest.defines:
22369 ac_max_sed_lines=50
22371 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22372 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22373 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22375 ac_in='$ac_file_inputs'
22376 ac_out='"$tmp/out1"'
22377 ac_nxt='"$tmp/out2"'
22381 # Write a here document:
22382 cat >>$CONFIG_STATUS <<_ACEOF
22383 # First, check the format of the line:
22384 cat >"\$tmp/defines.sed" <<\\CEOF
22385 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22386 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22390 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22392 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22393 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22394 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22395 grep . conftest.tail >/dev/null || break
22396 rm -f conftest.defines
22397 mv conftest.tail conftest.defines
22399 rm -f conftest.defines conftest.tail
22401 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22402 cat >>$CONFIG_STATUS <<\_ACEOF
22403 if test x"$ac_file" != x-; then
22404 echo "/* $configure_input */" >"$tmp/config.h"
22405 cat "$ac_result" >>"$tmp/config.h"
22406 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22407 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22408 echo "$as_me: $ac_file is unchanged" >&6;}
22411 mv "$tmp/config.h" $ac_file
22414 echo "/* $configure_input */"
22420 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22421 echo "$as_me: executing $ac_file commands" >&6;}
22426 case $ac_file$ac_mode in
22427 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22428 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22429 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22430 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22431 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22432 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22433 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22434 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22435 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22436 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22437 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22438 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22439 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22440 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22441 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22442 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22443 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22444 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22445 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22446 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22447 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22448 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22449 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22450 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22451 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22452 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22458 { (exit 0); exit 0; }
22460 chmod +x $CONFIG_STATUS
22461 ac_clean_files=$ac_clean_files_save
22464 # configure is writing to config.log, and then calls config.status.
22465 # config.status does its own redirection, appending to config.log.
22466 # Unfortunately, on DOS this fails, as config.log is still kept open
22467 # by configure, so config.status won't be able to write to it; its
22468 # output is simply discarded. So we exec the FD to /dev/null,
22469 # effectively closing config.log, so it can be properly (re)opened and
22470 # appended to by config.status. When coming back to configure, we
22471 # need to make the FD available again.
22472 if test "$no_create" != yes; then
22474 ac_config_status_args=
22475 test "$silent" = yes &&
22476 ac_config_status_args="$ac_config_status_args --quiet"
22478 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22480 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22481 # would make configure fail if this is the last instruction.
22482 $ac_cs_success || { (exit 1); exit 1; }
22486 # CONFIG_SUBDIRS section.
22488 if test "$no_recursion" != yes; then
22490 # Remove --cache-file and --srcdir arguments so they do not pile up.
22491 ac_sub_configure_args=
22493 eval "set x $ac_configure_args"
22497 if test -n "$ac_prev"; then
22502 -cache-file | --cache-file | --cache-fil | --cache-fi \
22503 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22504 ac_prev=cache_file ;;
22505 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22506 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22509 --config-cache | -C)
22511 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22513 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22515 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22517 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22521 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22523 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22527 # Always prepend --prefix to ensure using the same prefix
22528 # in subdir configurations.
22529 ac_arg="--prefix=$prefix"
22531 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22533 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22536 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22538 # Do not complain, so a configure script can configure whichever
22539 # parts of a large source tree are present.
22540 test -d "$srcdir/$ac_dir" || continue
22542 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22543 echo "$as_me:$LINENO: $ac_msg" >&5
22547 -*) as_dir=./$as_dir;;
22549 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22553 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22554 *) as_qdir=$as_dir;;
22556 as_dirs="'$as_qdir' $as_dirs"
22557 as_dir=`$as_dirname -- "$as_dir" ||
22558 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22559 X"$as_dir" : 'X\(//\)[^/]' \| \
22560 X"$as_dir" : 'X\(//\)$' \| \
22561 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22567 /^X\(\/\/\)[^/].*/{
22580 test -d "$as_dir" && break
22582 test -z "$as_dirs" || eval "mkdir $as_dirs"
22583 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22584 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22585 { (exit 1); exit 1; }; }; }
22589 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22591 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22592 # A ".." for each directory in $ac_dir_suffix.
22593 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22594 case $ac_top_builddir_sub in
22595 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22596 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22599 ac_abs_top_builddir=$ac_pwd
22600 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22601 # for backward compatibility:
22602 ac_top_builddir=$ac_top_build_prefix
22605 .) # We are building in place.
22607 ac_top_srcdir=$ac_top_builddir_sub
22608 ac_abs_top_srcdir=$ac_pwd ;;
22609 [\\/]* | ?:[\\/]* ) # Absolute name.
22610 ac_srcdir=$srcdir$ac_dir_suffix;
22611 ac_top_srcdir=$srcdir
22612 ac_abs_top_srcdir=$srcdir ;;
22613 *) # Relative name.
22614 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22615 ac_top_srcdir=$ac_top_build_prefix$srcdir
22616 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22618 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22623 # Check for guested configure; otherwise get Cygnus style configure.
22624 if test -f "$ac_srcdir/configure.gnu"; then
22625 ac_sub_configure=$ac_srcdir/configure.gnu
22626 elif test -f "$ac_srcdir/configure"; then
22627 ac_sub_configure=$ac_srcdir/configure
22628 elif test -f "$ac_srcdir/configure.in"; then
22629 # This should be Cygnus configure.
22630 ac_sub_configure=$ac_aux_dir/configure
22632 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22633 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22637 # The recursion is here.
22638 if test -n "$ac_sub_configure"; then
22639 # Make the cache file name correct relative to the subdirectory.
22640 case $cache_file in
22641 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22642 *) # Relative name.
22643 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22646 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22647 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22648 # The eval makes quoting arguments work.
22649 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22650 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22651 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22652 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22653 { (exit 1); exit 1; }; }