2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.1svn.
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.1svn'
565 PACKAGE_STRING='LLVM 3.1svn'
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
760 HAVE_LINK_VERSION_SCRIPT
763 CONVENIENCE_LTDL_TRUE
764 CONVENIENCE_LTDL_FALSE
767 NO_MISSING_FIELD_INITIALIZERS
788 ENABLE_VISIBILITY_INLINES_HIDDEN
794 ac_precious_vars='build_alias
805 ac_subdirs_all='projects/llvm-gcc
809 projects/llvm-poolalloc
812 projects/llvm-stacker
820 # Initialize some variables set by options.
822 ac_init_version=false
823 # The variables have the same names as the options, with
824 # dashes changed to underlines.
832 program_transform_name=s,x,x,
840 # Installation directory options.
841 # These are left unexpanded so users can "make install exec_prefix=/foo"
842 # and all the variables that are supposed to be based on exec_prefix
843 # by default will actually change.
844 # Use braces instead of parens because sh, perl, etc. also accept them.
845 # (The list follows the same order as the GNU Coding Standards.)
846 bindir='${exec_prefix}/bin'
847 sbindir='${exec_prefix}/sbin'
848 libexecdir='${exec_prefix}/libexec'
849 datarootdir='${prefix}/share'
850 datadir='${datarootdir}'
851 sysconfdir='${prefix}/etc'
852 sharedstatedir='${prefix}/com'
853 localstatedir='${prefix}/var'
854 includedir='${prefix}/include'
855 oldincludedir='/usr/include'
856 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
857 infodir='${datarootdir}/info'
862 libdir='${exec_prefix}/lib'
863 localedir='${datarootdir}/locale'
864 mandir='${datarootdir}/man'
870 # If the previous option needs an argument, assign it.
871 if test -n "$ac_prev"; then
872 eval $ac_prev=\$ac_option
878 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882 # Accept the important Cygnus configure options, so we can diagnose typos.
884 case $ac_dashdash$ac_option in
888 -bindir | --bindir | --bindi | --bind | --bin | --bi)
890 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
893 -build | --build | --buil | --bui | --bu)
894 ac_prev=build_alias ;;
895 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
896 build_alias=$ac_optarg ;;
898 -cache-file | --cache-file | --cache-fil | --cache-fi \
899 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
900 ac_prev=cache_file ;;
901 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
902 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
903 cache_file=$ac_optarg ;;
906 cache_file=config.cache ;;
908 -datadir | --datadir | --datadi | --datad)
910 -datadir=* | --datadir=* | --datadi=* | --datad=*)
911 datadir=$ac_optarg ;;
913 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
914 | --dataroo | --dataro | --datar)
915 ac_prev=datarootdir ;;
916 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
917 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
918 datarootdir=$ac_optarg ;;
920 -disable-* | --disable-*)
921 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
922 # Reject names that are not valid shell variable names.
923 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
924 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
925 { (exit 1); exit 1; }; }
926 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
927 eval enable_$ac_feature=no ;;
929 -docdir | --docdir | --docdi | --doc | --do)
931 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
934 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
936 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
939 -enable-* | --enable-*)
940 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
941 # Reject names that are not valid shell variable names.
942 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
943 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
944 { (exit 1); exit 1; }; }
945 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
946 eval enable_$ac_feature=\$ac_optarg ;;
948 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
949 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
950 | --exec | --exe | --ex)
951 ac_prev=exec_prefix ;;
952 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
953 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
954 | --exec=* | --exe=* | --ex=*)
955 exec_prefix=$ac_optarg ;;
957 -gas | --gas | --ga | --g)
958 # Obsolete; use --with-gas.
961 -help | --help | --hel | --he | -h)
963 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
964 ac_init_help=recursive ;;
965 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
966 ac_init_help=short ;;
968 -host | --host | --hos | --ho)
969 ac_prev=host_alias ;;
970 -host=* | --host=* | --hos=* | --ho=*)
971 host_alias=$ac_optarg ;;
973 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
975 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
977 htmldir=$ac_optarg ;;
979 -includedir | --includedir | --includedi | --included | --include \
980 | --includ | --inclu | --incl | --inc)
981 ac_prev=includedir ;;
982 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
983 | --includ=* | --inclu=* | --incl=* | --inc=*)
984 includedir=$ac_optarg ;;
986 -infodir | --infodir | --infodi | --infod | --info | --inf)
988 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
989 infodir=$ac_optarg ;;
991 -libdir | --libdir | --libdi | --libd)
993 -libdir=* | --libdir=* | --libdi=* | --libd=*)
996 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
997 | --libexe | --libex | --libe)
998 ac_prev=libexecdir ;;
999 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1000 | --libexe=* | --libex=* | --libe=*)
1001 libexecdir=$ac_optarg ;;
1003 -localedir | --localedir | --localedi | --localed | --locale)
1004 ac_prev=localedir ;;
1005 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006 localedir=$ac_optarg ;;
1008 -localstatedir | --localstatedir | --localstatedi | --localstated \
1009 | --localstate | --localstat | --localsta | --localst | --locals)
1010 ac_prev=localstatedir ;;
1011 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1012 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1013 localstatedir=$ac_optarg ;;
1015 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1017 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1018 mandir=$ac_optarg ;;
1020 -nfp | --nfp | --nf)
1021 # Obsolete; use --without-fp.
1024 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1025 | --no-cr | --no-c | -n)
1028 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1033 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1034 | --oldin | --oldi | --old | --ol | --o)
1035 ac_prev=oldincludedir ;;
1036 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1037 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1038 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1039 oldincludedir=$ac_optarg ;;
1041 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1043 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1044 prefix=$ac_optarg ;;
1046 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1047 | --program-pre | --program-pr | --program-p)
1048 ac_prev=program_prefix ;;
1049 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1050 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1051 program_prefix=$ac_optarg ;;
1053 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1054 | --program-suf | --program-su | --program-s)
1055 ac_prev=program_suffix ;;
1056 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1057 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1058 program_suffix=$ac_optarg ;;
1060 -program-transform-name | --program-transform-name \
1061 | --program-transform-nam | --program-transform-na \
1062 | --program-transform-n | --program-transform- \
1063 | --program-transform | --program-transfor \
1064 | --program-transfo | --program-transf \
1065 | --program-trans | --program-tran \
1066 | --progr-tra | --program-tr | --program-t)
1067 ac_prev=program_transform_name ;;
1068 -program-transform-name=* | --program-transform-name=* \
1069 | --program-transform-nam=* | --program-transform-na=* \
1070 | --program-transform-n=* | --program-transform-=* \
1071 | --program-transform=* | --program-transfor=* \
1072 | --program-transfo=* | --program-transf=* \
1073 | --program-trans=* | --program-tran=* \
1074 | --progr-tra=* | --program-tr=* | --program-t=*)
1075 program_transform_name=$ac_optarg ;;
1077 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1079 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080 pdfdir=$ac_optarg ;;
1082 -psdir | --psdir | --psdi | --psd | --ps)
1084 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088 | -silent | --silent | --silen | --sile | --sil)
1091 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1093 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1095 sbindir=$ac_optarg ;;
1097 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1098 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1099 | --sharedst | --shareds | --shared | --share | --shar \
1101 ac_prev=sharedstatedir ;;
1102 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1103 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1104 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1106 sharedstatedir=$ac_optarg ;;
1108 -site | --site | --sit)
1110 -site=* | --site=* | --sit=*)
1113 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1115 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1116 srcdir=$ac_optarg ;;
1118 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1119 | --syscon | --sysco | --sysc | --sys | --sy)
1120 ac_prev=sysconfdir ;;
1121 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1122 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1123 sysconfdir=$ac_optarg ;;
1125 -target | --target | --targe | --targ | --tar | --ta | --t)
1126 ac_prev=target_alias ;;
1127 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1128 target_alias=$ac_optarg ;;
1130 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1133 -version | --version | --versio | --versi | --vers | -V)
1134 ac_init_version=: ;;
1137 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1138 # Reject names that are not valid shell variable names.
1139 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1140 { echo "$as_me: error: invalid package name: $ac_package" >&2
1141 { (exit 1); exit 1; }; }
1142 ac_package=`echo $ac_package| sed 's/-/_/g'`
1143 eval with_$ac_package=\$ac_optarg ;;
1145 -without-* | --without-*)
1146 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1149 { echo "$as_me: error: invalid package name: $ac_package" >&2
1150 { (exit 1); exit 1; }; }
1151 ac_package=`echo $ac_package | sed 's/-/_/g'`
1152 eval with_$ac_package=no ;;
1155 # Obsolete; use --with-x.
1158 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159 | --x-incl | --x-inc | --x-in | --x-i)
1160 ac_prev=x_includes ;;
1161 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163 x_includes=$ac_optarg ;;
1165 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167 ac_prev=x_libraries ;;
1168 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170 x_libraries=$ac_optarg ;;
1172 -*) { echo "$as_me: error: unrecognized option: $ac_option
1173 Try \`$0 --help' for more information." >&2
1174 { (exit 1); exit 1; }; }
1178 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1179 # Reject names that are not valid shell variable names.
1180 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1181 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1182 { (exit 1); exit 1; }; }
1183 eval $ac_envvar=\$ac_optarg
1184 export $ac_envvar ;;
1187 # FIXME: should be removed in autoconf 3.0.
1188 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1189 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1191 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1197 if test -n "$ac_prev"; then
1198 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1199 { echo "$as_me: error: missing argument to $ac_option" >&2
1200 { (exit 1); exit 1; }; }
1203 # Be sure to have absolute directory names.
1204 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205 datadir sysconfdir sharedstatedir localstatedir includedir \
1206 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207 libdir localedir mandir
1209 eval ac_val=\$$ac_var
1211 [\\/$]* | ?:[\\/]* ) continue;;
1212 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1214 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1215 { (exit 1); exit 1; }; }
1218 # There might be people who depend on the old broken behavior: `$host'
1219 # used to hold the argument of --host etc.
1220 # FIXME: To remove some day.
1223 target=$target_alias
1225 # FIXME: To remove some day.
1226 if test "x$host_alias" != x; then
1227 if test "x$build_alias" = x; then
1228 cross_compiling=maybe
1229 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1230 If a cross compiler is detected then cross compile mode will be used." >&2
1231 elif test "x$build_alias" != "x$host_alias"; then
1237 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1239 test "$silent" = yes && exec 6>/dev/null
1242 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1243 ac_ls_di=`ls -di .` &&
1244 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1245 { echo "$as_me: error: Working directory cannot be determined" >&2
1246 { (exit 1); exit 1; }; }
1247 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1248 { echo "$as_me: error: pwd does not report name of working directory" >&2
1249 { (exit 1); exit 1; }; }
1252 # Find the source files, if location was not specified.
1253 if test -z "$srcdir"; then
1254 ac_srcdir_defaulted=yes
1255 # Try the directory containing this script, then the parent directory.
1256 ac_confdir=`$as_dirname -- "$0" ||
1257 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1258 X"$0" : 'X\(//\)[^/]' \| \
1259 X"$0" : 'X\(//\)$' \| \
1260 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1280 if test ! -r "$srcdir/$ac_unique_file"; then
1284 ac_srcdir_defaulted=no
1286 if test ! -r "$srcdir/$ac_unique_file"; then
1287 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1288 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1289 { (exit 1); exit 1; }; }
1291 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1294 { (exit 1); exit 1; }; }
1296 # When building in place, set srcdir=.
1297 if test "$ac_abs_confdir" = "$ac_pwd"; then
1300 # Remove unnecessary trailing slashes from srcdir.
1301 # Double slashes in file names in object file debugging info
1302 # mess up M-x gdb in Emacs.
1304 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306 for ac_var in $ac_precious_vars; do
1307 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_env_${ac_var}_value=\$${ac_var}
1309 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1314 # Report the --help message.
1316 if test "$ac_init_help" = "long"; then
1317 # Omit some internal or obsolete options to make the list less imposing.
1318 # This message is too long to be a string in the A/UX 3.1 sh.
1320 \`configure' configures LLVM 3.1svn to adapt to many kinds of systems.
1322 Usage: $0 [OPTION]... [VAR=VALUE]...
1324 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325 VAR=VALUE. See below for descriptions of some of the useful variables.
1327 Defaults for the options are specified in brackets.
1330 -h, --help display this help and exit
1331 --help=short display options specific to this package
1332 --help=recursive display the short help of all the included packages
1333 -V, --version display version information and exit
1334 -q, --quiet, --silent do not print \`checking...' messages
1335 --cache-file=FILE cache test results in FILE [disabled]
1336 -C, --config-cache alias for \`--cache-file=config.cache'
1337 -n, --no-create do not create output files
1338 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1340 Installation directories:
1341 --prefix=PREFIX install architecture-independent files in PREFIX
1342 [$ac_default_prefix]
1343 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1346 By default, \`make install' will install all the files in
1347 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1348 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349 for instance \`--prefix=\$HOME'.
1351 For better control, use the options below.
1353 Fine tuning of the installation directories:
1354 --bindir=DIR user executables [EPREFIX/bin]
1355 --sbindir=DIR system admin executables [EPREFIX/sbin]
1356 --libexecdir=DIR program executables [EPREFIX/libexec]
1357 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1358 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1359 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1360 --libdir=DIR object code libraries [EPREFIX/lib]
1361 --includedir=DIR C header files [PREFIX/include]
1362 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1363 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1364 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1365 --infodir=DIR info documentation [DATAROOTDIR/info]
1366 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1367 --mandir=DIR man documentation [DATAROOTDIR/man]
1368 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1369 --htmldir=DIR html documentation [DOCDIR]
1370 --dvidir=DIR dvi documentation [DOCDIR]
1371 --pdfdir=DIR pdf documentation [DOCDIR]
1372 --psdir=DIR ps documentation [DOCDIR]
1378 --build=BUILD configure for building on BUILD [guessed]
1379 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1380 --target=TARGET configure for building compilers for TARGET [HOST]
1384 if test -n "$ac_init_help"; then
1385 case $ac_init_help in
1386 short | recursive ) echo "Configuration of LLVM 3.1svn:";;
1391 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1392 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1393 --enable-polly Use polly if available (default is YES)
1394 --enable-libcpp Use libc++ if available (default is NO)
1395 --enable-optimized Compile with optimizations enabled (default is NO)
1396 --enable-profiling Compile with profiling enabled (default is NO)
1397 --enable-assertions Compile with assertion checks enabled (default is
1399 --enable-expensive-checks
1400 Compile with expensive debug checks enabled (default
1402 --enable-debug-runtime Build runtime libs with debug symbols (default is
1404 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1405 optimization is on and YES if it's off)
1406 --enable-jit Enable Just In Time Compiling (default is YES)
1407 --enable-docs Build documents (default is YES)
1408 --enable-doxygen Build doxygen documentation (default is NO)
1409 --enable-threads Use threads if available (default is YES)
1410 --enable-pthreads Use pthreads if available (default is YES)
1411 --enable-pic Build LLVM with Position Independent Code (default
1413 --enable-shared Build a shared library and link tools against it
1415 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1416 Win32 DLL (default is NO)
1417 --enable-timestamps Enable embedding timestamp information in build
1419 --enable-targets Build specific host targets: all or
1420 target1,target2,... Valid targets are: host, x86,
1421 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1422 xcore, msp430, ptx, cbe, and cpp (default=all)
1423 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1425 --enable-bindings Build specific language bindings:
1426 all,auto,none,{binding-name} (default=auto)
1427 --enable-libffi Check for the presence of libffi (default is NO)
1428 --enable-ltdl-install install libltdl
1431 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1432 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1433 --with-optimize-option Select the compiler options to use for optimized
1435 --with-extra-options Specify additional options to compile LLVM with
1436 --with-extra-ld-options Specify additional options to link LLVM with
1437 --with-ocaml-libdir Specify install location for ocaml bindings (default
1439 --with-clang-srcdir Directory to the out-of-tree Clang source
1440 --with-clang-resource-dir
1441 Relative directory from the Clang binary for
1443 --with-c-include-dirs Colon separated list of directories clang will
1445 --with-gcc-toolchain Directory where gcc is installed.
1446 --with-binutils-include Specify path to binutils/include/ containing
1447 plugin-api.h file for gold plugin.
1448 --with-bug-report-url Specify the URL where bug reports should be
1449 submitted (default=http://llvm.org/bugs/)
1450 --with-internal-prefix Installation directory for internal files
1451 --with-tclinclude directory where tcl headers are
1452 --with-udis86=<path> Use udis86 external x86 disassembler library
1453 --with-oprofile=<prefix>
1454 Tell OProfile >= 0.9.4 how to symbolize JIT output
1456 Some influential environment variables:
1457 CC C compiler command
1458 CFLAGS C compiler flags
1459 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1460 nonstandard directory <lib dir>
1461 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1462 you have headers in a nonstandard directory <include dir>
1463 CXX C++ compiler command
1464 CXXFLAGS C++ compiler flags
1467 Use these variables to override the choices made by `configure' or to help
1468 it to find libraries and programs with nonstandard names/locations.
1470 Report bugs to <http://llvm.org/bugs/>.
1475 if test "$ac_init_help" = "recursive"; then
1476 # If there are subdirs, report their specific --help.
1477 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1478 test -d "$ac_dir" || continue
1482 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1485 # A ".." for each directory in $ac_dir_suffix.
1486 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1487 case $ac_top_builddir_sub in
1488 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1492 ac_abs_top_builddir=$ac_pwd
1493 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1494 # for backward compatibility:
1495 ac_top_builddir=$ac_top_build_prefix
1498 .) # We are building in place.
1500 ac_top_srcdir=$ac_top_builddir_sub
1501 ac_abs_top_srcdir=$ac_pwd ;;
1502 [\\/]* | ?:[\\/]* ) # Absolute name.
1503 ac_srcdir=$srcdir$ac_dir_suffix;
1504 ac_top_srcdir=$srcdir
1505 ac_abs_top_srcdir=$srcdir ;;
1507 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1508 ac_top_srcdir=$ac_top_build_prefix$srcdir
1509 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1511 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1513 cd "$ac_dir" || { ac_status=$?; continue; }
1514 # Check for guested configure.
1515 if test -f "$ac_srcdir/configure.gnu"; then
1517 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1518 elif test -f "$ac_srcdir/configure"; then
1520 $SHELL "$ac_srcdir/configure" --help=recursive
1522 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1524 cd "$ac_pwd" || { ac_status=$?; break; }
1528 test -n "$ac_init_help" && exit $ac_status
1529 if $ac_init_version; then
1531 LLVM configure 3.1svn
1532 generated by GNU Autoconf 2.60
1534 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1535 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1536 This configure script is free software; the Free Software Foundation
1537 gives unlimited permission to copy, distribute and modify it.
1539 Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
1543 cat >config.log <<_ACEOF
1544 This file contains any messages produced by compilers while
1545 running configure, to aid debugging if configure makes a mistake.
1547 It was created by LLVM $as_me 3.1svn, which was
1548 generated by GNU Autoconf 2.60. Invocation command line was
1560 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1561 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1562 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1563 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1564 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1566 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1567 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1569 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1570 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1571 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1572 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1573 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1574 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1575 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1583 test -z "$as_dir" && as_dir=.
1584 echo "PATH: $as_dir"
1600 # Keep a trace of the command line.
1601 # Strip out --no-create and --no-recursion so they do not pile up.
1602 # Strip out --silent because we don't want to record it for future runs.
1603 # Also quote any args containing shell meta-characters.
1604 # Make two passes to allow for proper duplicate-argument suppression.
1608 ac_must_keep_next=false
1614 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1615 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1616 | -silent | --silent | --silen | --sile | --sil)
1619 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1622 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1624 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1625 if test $ac_must_keep_next = true; then
1626 ac_must_keep_next=false # Got value, back to normal.
1629 *=* | --config-cache | -C | -disable-* | --disable-* \
1630 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1631 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1632 | -with-* | --with-* | -without-* | --without-* | --x)
1633 case "$ac_configure_args0 " in
1634 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1637 -* ) ac_must_keep_next=true ;;
1640 ac_configure_args="$ac_configure_args '$ac_arg'"
1645 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1646 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1648 # When interrupted or exit'd, cleanup temporary files, and complete
1649 # config.log. We remove comments because anyway the quotes in there
1650 # would cause problems or look ugly.
1651 # WARNING: Use '\'' to represent an apostrophe within the trap.
1652 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1653 trap 'exit_status=$?
1654 # Save into config.log some information that might help in debugging.
1659 ## ---------------- ##
1660 ## Cache variables. ##
1661 ## ---------------- ##
1664 # The following way of writing the cache mishandles newlines in values,
1666 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1667 eval ac_val=\$$ac_var
1671 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1672 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1675 _ | IFS | as_nl) ;; #(
1676 *) $as_unset $ac_var ;;
1681 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1682 *${as_nl}ac_space=\ *)
1684 "s/'\''/'\''\\\\'\'''\''/g;
1685 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1688 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1696 ## ----------------- ##
1697 ## Output variables. ##
1698 ## ----------------- ##
1701 for ac_var in $ac_subst_vars
1703 eval ac_val=\$$ac_var
1705 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1707 echo "$ac_var='\''$ac_val'\''"
1711 if test -n "$ac_subst_files"; then
1713 ## ------------------- ##
1714 ## File substitutions. ##
1715 ## ------------------- ##
1718 for ac_var in $ac_subst_files
1720 eval ac_val=\$$ac_var
1722 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1724 echo "$ac_var='\''$ac_val'\''"
1729 if test -s confdefs.h; then
1739 test "$ac_signal" != 0 &&
1740 echo "$as_me: caught signal $ac_signal"
1741 echo "$as_me: exit $exit_status"
1743 rm -f core *.core core.conftest.* &&
1744 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1747 for ac_signal in 1 2 13 15; do
1748 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1752 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1753 rm -f -r conftest* confdefs.h
1755 # Predefined preprocessor variables.
1757 cat >>confdefs.h <<_ACEOF
1758 #define PACKAGE_NAME "$PACKAGE_NAME"
1762 cat >>confdefs.h <<_ACEOF
1763 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1767 cat >>confdefs.h <<_ACEOF
1768 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1772 cat >>confdefs.h <<_ACEOF
1773 #define PACKAGE_STRING "$PACKAGE_STRING"
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1782 # Let the site file select an alternate cache file if it wants to.
1783 # Prefer explicitly selected file to automatically selected ones.
1784 if test -n "$CONFIG_SITE"; then
1785 set x "$CONFIG_SITE"
1786 elif test "x$prefix" != xNONE; then
1787 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1789 set x "$ac_default_prefix/share/config.site" \
1790 "$ac_default_prefix/etc/config.site"
1795 if test -r "$ac_site_file"; then
1796 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1797 echo "$as_me: loading site script $ac_site_file" >&6;}
1798 sed 's/^/| /' "$ac_site_file" >&5
1803 if test -r "$cache_file"; then
1804 # Some versions of bash will fail to source /dev/null (special
1805 # files actually), so we avoid doing that.
1806 if test -f "$cache_file"; then
1807 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1808 echo "$as_me: loading cache $cache_file" >&6;}
1810 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1811 *) . "./$cache_file";;
1815 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1816 echo "$as_me: creating cache $cache_file" >&6;}
1820 # Check that the precious variables saved in the cache have kept the same
1822 ac_cache_corrupted=false
1823 for ac_var in $ac_precious_vars; do
1824 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1825 eval ac_new_set=\$ac_env_${ac_var}_set
1826 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1827 eval ac_new_val=\$ac_env_${ac_var}_value
1828 case $ac_old_set,$ac_new_set in
1830 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1831 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1832 ac_cache_corrupted=: ;;
1834 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1835 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1836 ac_cache_corrupted=: ;;
1839 if test "x$ac_old_val" != "x$ac_new_val"; then
1840 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1841 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1842 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1843 echo "$as_me: former value: $ac_old_val" >&2;}
1844 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1845 echo "$as_me: current value: $ac_new_val" >&2;}
1846 ac_cache_corrupted=:
1849 # Pass precious variables to config.status.
1850 if test "$ac_new_set" = set; then
1852 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1853 *) ac_arg=$ac_var=$ac_new_val ;;
1855 case " $ac_configure_args " in
1856 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1857 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1861 if $ac_cache_corrupted; then
1862 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1863 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1864 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1865 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1866 { (exit 1); exit 1; }; }
1894 ac_cpp='$CPP $CPPFLAGS'
1895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1901 cat >>confdefs.h <<\_ACEOF
1902 #define LLVM_VERSION_MAJOR 3
1906 cat >>confdefs.h <<\_ACEOF
1907 #define LLVM_VERSION_MINOR 1
1911 LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
1920 for ac_dir in autoconf "$srcdir"/autoconf; do
1921 if test -f "$ac_dir/install-sh"; then
1923 ac_install_sh="$ac_aux_dir/install-sh -c"
1925 elif test -f "$ac_dir/install.sh"; then
1927 ac_install_sh="$ac_aux_dir/install.sh -c"
1929 elif test -f "$ac_dir/shtool"; then
1931 ac_install_sh="$ac_aux_dir/shtool install -c"
1935 if test -z "$ac_aux_dir"; then
1936 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1937 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1938 { (exit 1); exit 1; }; }
1941 # These three variables are undocumented and unsupported,
1942 # and are intended to be withdrawn in a future Autoconf release.
1943 # They can cause serious problems if a builder's source tree is in a directory
1944 # whose full name contains unusual characters.
1945 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1946 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1947 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1951 if test ${srcdir} != "." ; then
1952 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1953 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1954 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1955 { (exit 1); exit 1; }; }
1960 ac_cpp='$CPP $CPPFLAGS'
1961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1964 if test -n "$ac_tool_prefix"; then
1965 for ac_prog in clang llvm-gcc gcc
1967 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1968 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1971 if test "${ac_cv_prog_CC+set}" = set; then
1972 echo $ECHO_N "(cached) $ECHO_C" >&6
1974 if test -n "$CC"; then
1975 ac_cv_prog_CC="$CC" # Let the user override the test.
1977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981 test -z "$as_dir" && as_dir=.
1982 for ac_exec_ext in '' $ac_executable_extensions; do
1983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1984 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1995 if test -n "$CC"; then
1996 { echo "$as_me:$LINENO: result: $CC" >&5
1997 echo "${ECHO_T}$CC" >&6; }
1999 { echo "$as_me:$LINENO: result: no" >&5
2000 echo "${ECHO_T}no" >&6; }
2004 test -n "$CC" && break
2007 if test -z "$CC"; then
2009 for ac_prog in clang llvm-gcc gcc
2011 # Extract the first word of "$ac_prog", so it can be a program name with args.
2012 set dummy $ac_prog; ac_word=$2
2013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2015 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2016 echo $ECHO_N "(cached) $ECHO_C" >&6
2018 if test -n "$ac_ct_CC"; then
2019 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025 test -z "$as_dir" && as_dir=.
2026 for ac_exec_ext in '' $ac_executable_extensions; do
2027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2028 ac_cv_prog_ac_ct_CC="$ac_prog"
2029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2038 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2039 if test -n "$ac_ct_CC"; then
2040 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2041 echo "${ECHO_T}$ac_ct_CC" >&6; }
2043 { echo "$as_me:$LINENO: result: no" >&5
2044 echo "${ECHO_T}no" >&6; }
2048 test -n "$ac_ct_CC" && break
2051 if test "x$ac_ct_CC" = x; then
2054 case $cross_compiling:$ac_tool_warned in
2056 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2057 whose name does not start with the host triplet. If you think this
2058 configuration is useful to you, please write to autoconf@gnu.org." >&5
2059 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2060 whose name does not start with the host triplet. If you think this
2061 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2062 ac_tool_warned=yes ;;
2069 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2070 See \`config.log' for more details." >&5
2071 echo "$as_me: error: no acceptable C compiler found in \$PATH
2072 See \`config.log' for more details." >&2;}
2073 { (exit 1); exit 1; }; }
2075 # Provide some information about the compiler.
2076 echo "$as_me:$LINENO: checking for C compiler version" >&5
2077 ac_compiler=`set X $ac_compile; echo $2`
2078 { (ac_try="$ac_compiler --version >&5"
2080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2081 *) ac_try_echo=$ac_try;;
2083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2084 (eval "$ac_compiler --version >&5") 2>&5
2086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087 (exit $ac_status); }
2088 { (ac_try="$ac_compiler -v >&5"
2090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2091 *) ac_try_echo=$ac_try;;
2093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2094 (eval "$ac_compiler -v >&5") 2>&5
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }
2098 { (ac_try="$ac_compiler -V >&5"
2100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2101 *) ac_try_echo=$ac_try;;
2103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2104 (eval "$ac_compiler -V >&5") 2>&5
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); }
2109 cat >conftest.$ac_ext <<_ACEOF
2112 cat confdefs.h >>conftest.$ac_ext
2113 cat >>conftest.$ac_ext <<_ACEOF
2114 /* end confdefs.h. */
2124 ac_clean_files_save=$ac_clean_files
2125 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2126 # Try to create an executable without -o first, disregard a.out.
2127 # It will help us diagnose broken compilers, and finding out an intuition
2129 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2130 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2131 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2133 # List of possible output files, starting from the most likely.
2134 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2135 # only as a last resort. b.out is created by i960 compilers.
2136 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2138 # The IRIX 6 linker writes into existing files which may not be
2139 # executable, retaining their permissions. Remove them first so a
2140 # subsequent execution test works.
2142 for ac_file in $ac_files
2145 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2146 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2151 if { (ac_try="$ac_link_default"
2153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2154 *) ac_try_echo=$ac_try;;
2156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2157 (eval "$ac_link_default") 2>&5
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); }; then
2161 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2162 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2163 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2164 # so that the user can short-circuit this test for compilers unknown to
2166 for ac_file in $ac_files
2168 test -f "$ac_file" || continue
2170 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2173 # We found the default executable, but exeext='' is most
2177 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2179 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2181 # We set ac_cv_exeext here because the later test for it is not
2182 # safe: cross compilers may not add the suffix if given an `-o'
2183 # argument, so we may need to know it at that point already.
2184 # Even if this section looks crufty: it has the advantage of
2191 test "$ac_cv_exeext" = no && ac_cv_exeext=
2194 echo "$as_me: failed program was:" >&5
2195 sed 's/^/| /' conftest.$ac_ext >&5
2197 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2198 See \`config.log' for more details." >&5
2199 echo "$as_me: error: C compiler cannot create executables
2200 See \`config.log' for more details." >&2;}
2201 { (exit 77); exit 77; }; }
2204 ac_exeext=$ac_cv_exeext
2205 { echo "$as_me:$LINENO: result: $ac_file" >&5
2206 echo "${ECHO_T}$ac_file" >&6; }
2208 # Check that the compiler produces executables we can run. If not, either
2209 # the compiler is broken, or we cross compile.
2210 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2211 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2212 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2213 # If not cross compiling, check that we can run a simple program.
2214 if test "$cross_compiling" != yes; then
2215 if { ac_try='./$ac_file'
2216 { (case "(($ac_try" in
2217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2218 *) ac_try_echo=$ac_try;;
2220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2221 (eval "$ac_try") 2>&5
2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224 (exit $ac_status); }; }; then
2227 if test "$cross_compiling" = maybe; then
2230 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2231 If you meant to cross compile, use \`--host'.
2232 See \`config.log' for more details." >&5
2233 echo "$as_me: error: cannot run C compiled programs.
2234 If you meant to cross compile, use \`--host'.
2235 See \`config.log' for more details." >&2;}
2236 { (exit 1); exit 1; }; }
2240 { echo "$as_me:$LINENO: result: yes" >&5
2241 echo "${ECHO_T}yes" >&6; }
2243 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2244 ac_clean_files=$ac_clean_files_save
2245 # Check that the compiler produces executables we can run. If not, either
2246 # the compiler is broken, or we cross compile.
2247 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2248 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2249 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2250 echo "${ECHO_T}$cross_compiling" >&6; }
2252 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2253 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2254 if { (ac_try="$ac_link"
2256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2257 *) ac_try_echo=$ac_try;;
2259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2260 (eval "$ac_link") 2>&5
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }; then
2264 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2265 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2266 # work properly (i.e., refer to `conftest.exe'), while it won't with
2268 for ac_file in conftest.exe conftest conftest.*; do
2269 test -f "$ac_file" || continue
2271 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2272 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2278 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2279 See \`config.log' for more details." >&5
2280 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2281 See \`config.log' for more details." >&2;}
2282 { (exit 1); exit 1; }; }
2285 rm -f conftest$ac_cv_exeext
2286 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2287 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2289 rm -f conftest.$ac_ext
2290 EXEEXT=$ac_cv_exeext
2292 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2293 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2294 if test "${ac_cv_objext+set}" = set; then
2295 echo $ECHO_N "(cached) $ECHO_C" >&6
2297 cat >conftest.$ac_ext <<_ACEOF
2300 cat confdefs.h >>conftest.$ac_ext
2301 cat >>conftest.$ac_ext <<_ACEOF
2302 /* end confdefs.h. */
2312 rm -f conftest.o conftest.obj
2313 if { (ac_try="$ac_compile"
2315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2316 *) ac_try_echo=$ac_try;;
2318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2319 (eval "$ac_compile") 2>&5
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; then
2323 for ac_file in conftest.o conftest.obj conftest.*; do
2324 test -f "$ac_file" || continue;
2326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2327 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2332 echo "$as_me: failed program was:" >&5
2333 sed 's/^/| /' conftest.$ac_ext >&5
2335 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2336 See \`config.log' for more details." >&5
2337 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2338 See \`config.log' for more details." >&2;}
2339 { (exit 1); exit 1; }; }
2342 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2344 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2345 echo "${ECHO_T}$ac_cv_objext" >&6; }
2346 OBJEXT=$ac_cv_objext
2348 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2349 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2350 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2351 echo $ECHO_N "(cached) $ECHO_C" >&6
2353 cat >conftest.$ac_ext <<_ACEOF
2356 cat confdefs.h >>conftest.$ac_ext
2357 cat >>conftest.$ac_ext <<_ACEOF
2358 /* end confdefs.h. */
2371 rm -f conftest.$ac_objext
2372 if { (ac_try="$ac_compile"
2374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2375 *) ac_try_echo=$ac_try;;
2377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2378 (eval "$ac_compile") 2>conftest.er1
2380 grep -v '^ *+' conftest.er1 >conftest.err
2382 cat conftest.err >&5
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); } &&
2385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2386 { (case "(($ac_try" in
2387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2388 *) ac_try_echo=$ac_try;;
2390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2391 (eval "$ac_try") 2>&5
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); }; } &&
2395 { ac_try='test -s conftest.$ac_objext'
2396 { (case "(($ac_try" in
2397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2398 *) ac_try_echo=$ac_try;;
2400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2401 (eval "$ac_try") 2>&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; }; then
2407 echo "$as_me: failed program was:" >&5
2408 sed 's/^/| /' conftest.$ac_ext >&5
2413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2414 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2417 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2418 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2419 GCC=`test $ac_compiler_gnu = yes && echo yes`
2420 ac_test_CFLAGS=${CFLAGS+set}
2421 ac_save_CFLAGS=$CFLAGS
2422 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2423 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2424 if test "${ac_cv_prog_cc_g+set}" = set; then
2425 echo $ECHO_N "(cached) $ECHO_C" >&6
2427 ac_save_c_werror_flag=$ac_c_werror_flag
2428 ac_c_werror_flag=yes
2431 cat >conftest.$ac_ext <<_ACEOF
2434 cat confdefs.h >>conftest.$ac_ext
2435 cat >>conftest.$ac_ext <<_ACEOF
2436 /* end confdefs.h. */
2446 rm -f conftest.$ac_objext
2447 if { (ac_try="$ac_compile"
2449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2450 *) ac_try_echo=$ac_try;;
2452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2453 (eval "$ac_compile") 2>conftest.er1
2455 grep -v '^ *+' conftest.er1 >conftest.err
2457 cat conftest.err >&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); } &&
2460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2461 { (case "(($ac_try" in
2462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2463 *) ac_try_echo=$ac_try;;
2465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2466 (eval "$ac_try") 2>&5
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }; } &&
2470 { ac_try='test -s conftest.$ac_objext'
2471 { (case "(($ac_try" in
2472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2473 *) ac_try_echo=$ac_try;;
2475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2476 (eval "$ac_try") 2>&5
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); }; }; then
2482 echo "$as_me: failed program was:" >&5
2483 sed 's/^/| /' conftest.$ac_ext >&5
2486 cat >conftest.$ac_ext <<_ACEOF
2489 cat confdefs.h >>conftest.$ac_ext
2490 cat >>conftest.$ac_ext <<_ACEOF
2491 /* end confdefs.h. */
2501 rm -f conftest.$ac_objext
2502 if { (ac_try="$ac_compile"
2504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2505 *) ac_try_echo=$ac_try;;
2507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2508 (eval "$ac_compile") 2>conftest.er1
2510 grep -v '^ *+' conftest.er1 >conftest.err
2512 cat conftest.err >&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); } &&
2515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2516 { (case "(($ac_try" in
2517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2518 *) ac_try_echo=$ac_try;;
2520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2521 (eval "$ac_try") 2>&5
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); }; } &&
2525 { ac_try='test -s conftest.$ac_objext'
2526 { (case "(($ac_try" in
2527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2528 *) ac_try_echo=$ac_try;;
2530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2531 (eval "$ac_try") 2>&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); }; }; then
2537 echo "$as_me: failed program was:" >&5
2538 sed 's/^/| /' conftest.$ac_ext >&5
2540 ac_c_werror_flag=$ac_save_c_werror_flag
2542 cat >conftest.$ac_ext <<_ACEOF
2545 cat confdefs.h >>conftest.$ac_ext
2546 cat >>conftest.$ac_ext <<_ACEOF
2547 /* end confdefs.h. */
2557 rm -f conftest.$ac_objext
2558 if { (ac_try="$ac_compile"
2560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2561 *) ac_try_echo=$ac_try;;
2563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2564 (eval "$ac_compile") 2>conftest.er1
2566 grep -v '^ *+' conftest.er1 >conftest.err
2568 cat conftest.err >&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); } &&
2571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2572 { (case "(($ac_try" in
2573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2574 *) ac_try_echo=$ac_try;;
2576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2577 (eval "$ac_try") 2>&5
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; } &&
2581 { ac_try='test -s conftest.$ac_objext'
2582 { (case "(($ac_try" in
2583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2584 *) ac_try_echo=$ac_try;;
2586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2587 (eval "$ac_try") 2>&5
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; }; then
2593 echo "$as_me: failed program was:" >&5
2594 sed 's/^/| /' conftest.$ac_ext >&5
2599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2606 ac_c_werror_flag=$ac_save_c_werror_flag
2608 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2609 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2610 if test "$ac_test_CFLAGS" = set; then
2611 CFLAGS=$ac_save_CFLAGS
2612 elif test $ac_cv_prog_cc_g = yes; then
2613 if test "$GCC" = yes; then
2619 if test "$GCC" = yes; then
2625 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2626 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2627 if test "${ac_cv_prog_cc_c89+set}" = set; then
2628 echo $ECHO_N "(cached) $ECHO_C" >&6
2630 ac_cv_prog_cc_c89=no
2632 cat >conftest.$ac_ext <<_ACEOF
2635 cat confdefs.h >>conftest.$ac_ext
2636 cat >>conftest.$ac_ext <<_ACEOF
2637 /* end confdefs.h. */
2640 #include <sys/types.h>
2641 #include <sys/stat.h>
2642 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2643 struct buf { int x; };
2644 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2645 static char *e (p, i)
2651 static char *f (char * (*g) (char **, int), char **p, ...)
2656 s = g (p, va_arg (v,int));
2661 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2662 function prototypes and stuff, but not '\xHH' hex character constants.
2663 These don't provoke an error unfortunately, instead are silently treated
2664 as 'x'. The following induces an error, until -std is added to get
2665 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2666 array size at least. It's necessary to write '\x00'==0 to get something
2667 that's true only with -std. */
2668 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2670 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2671 inside strings and character constants. */
2673 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2675 int test (int i, double x);
2676 struct s1 {int (*f) (int a);};
2677 struct s2 {int (*f) (double a);};
2678 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2684 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2689 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2690 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2692 CC="$ac_save_CC $ac_arg"
2693 rm -f conftest.$ac_objext
2694 if { (ac_try="$ac_compile"
2696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697 *) ac_try_echo=$ac_try;;
2699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2700 (eval "$ac_compile") 2>conftest.er1
2702 grep -v '^ *+' conftest.er1 >conftest.err
2704 cat conftest.err >&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); } &&
2707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2708 { (case "(($ac_try" in
2709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710 *) ac_try_echo=$ac_try;;
2712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2713 (eval "$ac_try") 2>&5
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }; } &&
2717 { ac_try='test -s conftest.$ac_objext'
2718 { (case "(($ac_try" in
2719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720 *) ac_try_echo=$ac_try;;
2722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2723 (eval "$ac_try") 2>&5
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }; }; then
2727 ac_cv_prog_cc_c89=$ac_arg
2729 echo "$as_me: failed program was:" >&5
2730 sed 's/^/| /' conftest.$ac_ext >&5
2735 rm -f core conftest.err conftest.$ac_objext
2736 test "x$ac_cv_prog_cc_c89" != "xno" && break
2738 rm -f conftest.$ac_ext
2743 case "x$ac_cv_prog_cc_c89" in
2745 { echo "$as_me:$LINENO: result: none needed" >&5
2746 echo "${ECHO_T}none needed" >&6; } ;;
2748 { echo "$as_me:$LINENO: result: unsupported" >&5
2749 echo "${ECHO_T}unsupported" >&6; } ;;
2751 CC="$CC $ac_cv_prog_cc_c89"
2752 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2753 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2758 ac_cpp='$CPP $CPPFLAGS'
2759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2764 ac_cpp='$CXXCPP $CPPFLAGS'
2765 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2766 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2767 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2768 if test -z "$CXX"; then
2769 if test -n "$CCC"; then
2772 if test -n "$ac_tool_prefix"; then
2773 for ac_prog in clang++ llvm-g++ g++
2775 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2776 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2779 if test "${ac_cv_prog_CXX+set}" = set; then
2780 echo $ECHO_N "(cached) $ECHO_C" >&6
2782 if test -n "$CXX"; then
2783 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789 test -z "$as_dir" && as_dir=.
2790 for ac_exec_ext in '' $ac_executable_extensions; do
2791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2792 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2803 if test -n "$CXX"; then
2804 { echo "$as_me:$LINENO: result: $CXX" >&5
2805 echo "${ECHO_T}$CXX" >&6; }
2807 { echo "$as_me:$LINENO: result: no" >&5
2808 echo "${ECHO_T}no" >&6; }
2812 test -n "$CXX" && break
2815 if test -z "$CXX"; then
2817 for ac_prog in clang++ llvm-g++ g++
2819 # Extract the first word of "$ac_prog", so it can be a program name with args.
2820 set dummy $ac_prog; ac_word=$2
2821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2823 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2824 echo $ECHO_N "(cached) $ECHO_C" >&6
2826 if test -n "$ac_ct_CXX"; then
2827 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833 test -z "$as_dir" && as_dir=.
2834 for ac_exec_ext in '' $ac_executable_extensions; do
2835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2836 ac_cv_prog_ac_ct_CXX="$ac_prog"
2837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2846 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2847 if test -n "$ac_ct_CXX"; then
2848 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2849 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2851 { echo "$as_me:$LINENO: result: no" >&5
2852 echo "${ECHO_T}no" >&6; }
2856 test -n "$ac_ct_CXX" && break
2859 if test "x$ac_ct_CXX" = x; then
2862 case $cross_compiling:$ac_tool_warned in
2864 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2865 whose name does not start with the host triplet. If you think this
2866 configuration is useful to you, please write to autoconf@gnu.org." >&5
2867 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2868 whose name does not start with the host triplet. If you think this
2869 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2870 ac_tool_warned=yes ;;
2878 # Provide some information about the compiler.
2879 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2880 ac_compiler=`set X $ac_compile; echo $2`
2881 { (ac_try="$ac_compiler --version >&5"
2883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884 *) ac_try_echo=$ac_try;;
2886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2887 (eval "$ac_compiler --version >&5") 2>&5
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }
2891 { (ac_try="$ac_compiler -v >&5"
2893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894 *) ac_try_echo=$ac_try;;
2896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2897 (eval "$ac_compiler -v >&5") 2>&5
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); }
2901 { (ac_try="$ac_compiler -V >&5"
2903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904 *) ac_try_echo=$ac_try;;
2906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2907 (eval "$ac_compiler -V >&5") 2>&5
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); }
2912 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2913 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2914 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2915 echo $ECHO_N "(cached) $ECHO_C" >&6
2917 cat >conftest.$ac_ext <<_ACEOF
2920 cat confdefs.h >>conftest.$ac_ext
2921 cat >>conftest.$ac_ext <<_ACEOF
2922 /* end confdefs.h. */
2935 rm -f conftest.$ac_objext
2936 if { (ac_try="$ac_compile"
2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939 *) ac_try_echo=$ac_try;;
2941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2942 (eval "$ac_compile") 2>conftest.er1
2944 grep -v '^ *+' conftest.er1 >conftest.err
2946 cat conftest.err >&5
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); } &&
2949 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2950 { (case "(($ac_try" in
2951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2952 *) ac_try_echo=$ac_try;;
2954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2955 (eval "$ac_try") 2>&5
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); }; } &&
2959 { ac_try='test -s conftest.$ac_objext'
2960 { (case "(($ac_try" in
2961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962 *) ac_try_echo=$ac_try;;
2964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2965 (eval "$ac_try") 2>&5
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); }; }; then
2971 echo "$as_me: failed program was:" >&5
2972 sed 's/^/| /' conftest.$ac_ext >&5
2977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2978 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2981 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2982 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2983 GXX=`test $ac_compiler_gnu = yes && echo yes`
2984 ac_test_CXXFLAGS=${CXXFLAGS+set}
2985 ac_save_CXXFLAGS=$CXXFLAGS
2986 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2987 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2988 if test "${ac_cv_prog_cxx_g+set}" = set; then
2989 echo $ECHO_N "(cached) $ECHO_C" >&6
2991 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2992 ac_cxx_werror_flag=yes
2995 cat >conftest.$ac_ext <<_ACEOF
2998 cat confdefs.h >>conftest.$ac_ext
2999 cat >>conftest.$ac_ext <<_ACEOF
3000 /* end confdefs.h. */
3010 rm -f conftest.$ac_objext
3011 if { (ac_try="$ac_compile"
3013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014 *) ac_try_echo=$ac_try;;
3016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3017 (eval "$ac_compile") 2>conftest.er1
3019 grep -v '^ *+' conftest.er1 >conftest.err
3021 cat conftest.err >&5
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); } &&
3024 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3025 { (case "(($ac_try" in
3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3030 (eval "$ac_try") 2>&5
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); }; } &&
3034 { ac_try='test -s conftest.$ac_objext'
3035 { (case "(($ac_try" in
3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037 *) ac_try_echo=$ac_try;;
3039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040 (eval "$ac_try") 2>&5
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); }; }; then
3044 ac_cv_prog_cxx_g=yes
3046 echo "$as_me: failed program was:" >&5
3047 sed 's/^/| /' conftest.$ac_ext >&5
3050 cat >conftest.$ac_ext <<_ACEOF
3053 cat confdefs.h >>conftest.$ac_ext
3054 cat >>conftest.$ac_ext <<_ACEOF
3055 /* end confdefs.h. */
3065 rm -f conftest.$ac_objext
3066 if { (ac_try="$ac_compile"
3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069 *) ac_try_echo=$ac_try;;
3071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3072 (eval "$ac_compile") 2>conftest.er1
3074 grep -v '^ *+' conftest.er1 >conftest.err
3076 cat conftest.err >&5
3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); } &&
3079 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3080 { (case "(($ac_try" in
3081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082 *) ac_try_echo=$ac_try;;
3084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3085 (eval "$ac_try") 2>&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); }; } &&
3089 { ac_try='test -s conftest.$ac_objext'
3090 { (case "(($ac_try" in
3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092 *) ac_try_echo=$ac_try;;
3094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3095 (eval "$ac_try") 2>&5
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); }; }; then
3101 echo "$as_me: failed program was:" >&5
3102 sed 's/^/| /' conftest.$ac_ext >&5
3104 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3106 cat >conftest.$ac_ext <<_ACEOF
3109 cat confdefs.h >>conftest.$ac_ext
3110 cat >>conftest.$ac_ext <<_ACEOF
3111 /* end confdefs.h. */
3121 rm -f conftest.$ac_objext
3122 if { (ac_try="$ac_compile"
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128 (eval "$ac_compile") 2>conftest.er1
3130 grep -v '^ *+' conftest.er1 >conftest.err
3132 cat conftest.err >&5
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); } &&
3135 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3136 { (case "(($ac_try" in
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3141 (eval "$ac_try") 2>&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }; } &&
3145 { ac_try='test -s conftest.$ac_objext'
3146 { (case "(($ac_try" in
3147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148 *) ac_try_echo=$ac_try;;
3150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151 (eval "$ac_try") 2>&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }; }; then
3155 ac_cv_prog_cxx_g=yes
3157 echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.$ac_ext >&5
3163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3170 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3172 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3173 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3174 if test "$ac_test_CXXFLAGS" = set; then
3175 CXXFLAGS=$ac_save_CXXFLAGS
3176 elif test $ac_cv_prog_cxx_g = yes; then
3177 if test "$GXX" = yes; then
3183 if test "$GXX" = yes; then
3190 ac_cpp='$CPP $CPPFLAGS'
3191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3196 ac_cpp='$CPP $CPPFLAGS'
3197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3200 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3201 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3202 # On Suns, sometimes $CPP names a directory.
3203 if test -n "$CPP" && test -d "$CPP"; then
3206 if test -z "$CPP"; then
3207 if test "${ac_cv_prog_CPP+set}" = set; then
3208 echo $ECHO_N "(cached) $ECHO_C" >&6
3210 # Double quotes because CPP needs to be expanded
3211 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3214 for ac_c_preproc_warn_flag in '' yes
3216 # Use a header file that comes with gcc, so configuring glibc
3217 # with a fresh cross-compiler works.
3218 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3219 # <limits.h> exists even on freestanding compilers.
3220 # On the NeXT, cc -E runs the code through the compiler's parser,
3221 # not just through cpp. "Syntax error" is here to catch this case.
3222 cat >conftest.$ac_ext <<_ACEOF
3225 cat confdefs.h >>conftest.$ac_ext
3226 cat >>conftest.$ac_ext <<_ACEOF
3227 /* end confdefs.h. */
3229 # include <limits.h>
3231 # include <assert.h>
3235 if { (ac_try="$ac_cpp conftest.$ac_ext"
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3241 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3243 grep -v '^ *+' conftest.er1 >conftest.err
3245 cat conftest.err >&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); } >/dev/null; then
3248 if test -s conftest.err; then
3249 ac_cpp_err=$ac_c_preproc_warn_flag
3250 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3257 if test -z "$ac_cpp_err"; then
3260 echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3263 # Broken: fails on valid input.
3267 rm -f conftest.err conftest.$ac_ext
3269 # OK, works on sane cases. Now check whether nonexistent headers
3270 # can be detected and how.
3271 cat >conftest.$ac_ext <<_ACEOF
3274 cat confdefs.h >>conftest.$ac_ext
3275 cat >>conftest.$ac_ext <<_ACEOF
3276 /* end confdefs.h. */
3277 #include <ac_nonexistent.h>
3279 if { (ac_try="$ac_cpp conftest.$ac_ext"
3281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282 *) ac_try_echo=$ac_try;;
3284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3285 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3287 grep -v '^ *+' conftest.er1 >conftest.err
3289 cat conftest.err >&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); } >/dev/null; then
3292 if test -s conftest.err; then
3293 ac_cpp_err=$ac_c_preproc_warn_flag
3294 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3301 if test -z "$ac_cpp_err"; then
3302 # Broken: success on invalid input.
3305 echo "$as_me: failed program was:" >&5
3306 sed 's/^/| /' conftest.$ac_ext >&5
3308 # Passes both tests.
3313 rm -f conftest.err conftest.$ac_ext
3316 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3317 rm -f conftest.err conftest.$ac_ext
3318 if $ac_preproc_ok; then
3330 { echo "$as_me:$LINENO: result: $CPP" >&5
3331 echo "${ECHO_T}$CPP" >&6; }
3333 for ac_c_preproc_warn_flag in '' yes
3335 # Use a header file that comes with gcc, so configuring glibc
3336 # with a fresh cross-compiler works.
3337 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3338 # <limits.h> exists even on freestanding compilers.
3339 # On the NeXT, cc -E runs the code through the compiler's parser,
3340 # not just through cpp. "Syntax error" is here to catch this case.
3341 cat >conftest.$ac_ext <<_ACEOF
3344 cat confdefs.h >>conftest.$ac_ext
3345 cat >>conftest.$ac_ext <<_ACEOF
3346 /* end confdefs.h. */
3348 # include <limits.h>
3350 # include <assert.h>
3354 if { (ac_try="$ac_cpp conftest.$ac_ext"
3356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357 *) ac_try_echo=$ac_try;;
3359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3360 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3362 grep -v '^ *+' conftest.er1 >conftest.err
3364 cat conftest.err >&5
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); } >/dev/null; then
3367 if test -s conftest.err; then
3368 ac_cpp_err=$ac_c_preproc_warn_flag
3369 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3376 if test -z "$ac_cpp_err"; then
3379 echo "$as_me: failed program was:" >&5
3380 sed 's/^/| /' conftest.$ac_ext >&5
3382 # Broken: fails on valid input.
3386 rm -f conftest.err conftest.$ac_ext
3388 # OK, works on sane cases. Now check whether nonexistent headers
3389 # can be detected and how.
3390 cat >conftest.$ac_ext <<_ACEOF
3393 cat confdefs.h >>conftest.$ac_ext
3394 cat >>conftest.$ac_ext <<_ACEOF
3395 /* end confdefs.h. */
3396 #include <ac_nonexistent.h>
3398 if { (ac_try="$ac_cpp conftest.$ac_ext"
3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401 *) ac_try_echo=$ac_try;;
3403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3404 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3406 grep -v '^ *+' conftest.er1 >conftest.err
3408 cat conftest.err >&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); } >/dev/null; then
3411 if test -s conftest.err; then
3412 ac_cpp_err=$ac_c_preproc_warn_flag
3413 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3420 if test -z "$ac_cpp_err"; then
3421 # Broken: success on invalid input.
3424 echo "$as_me: failed program was:" >&5
3425 sed 's/^/| /' conftest.$ac_ext >&5
3427 # Passes both tests.
3432 rm -f conftest.err conftest.$ac_ext
3435 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3436 rm -f conftest.err conftest.$ac_ext
3437 if $ac_preproc_ok; then
3440 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3441 See \`config.log' for more details." >&5
3442 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3443 See \`config.log' for more details." >&2;}
3444 { (exit 1); exit 1; }; }
3448 ac_cpp='$CPP $CPPFLAGS'
3449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3456 if test -d ${srcdir}/projects/llvm-gcc ; then
3457 subdirs="$subdirs projects/llvm-gcc"
3461 if test -d ${srcdir}/projects/test-suite ; then
3462 subdirs="$subdirs projects/test-suite"
3466 if test -d ${srcdir}/projects/llvm-test ; then
3467 subdirs="$subdirs projects/llvm-test"
3471 if test -d ${srcdir}/projects/poolalloc ; then
3472 subdirs="$subdirs projects/poolalloc"
3476 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3477 subdirs="$subdirs projects/llvm-poolalloc"
3481 for i in `ls ${srcdir}/projects`
3483 if test -d ${srcdir}/projects/${i} ; then
3485 sample) subdirs="$subdirs projects/sample"
3487 privbracket) subdirs="$subdirs projects/privbracket"
3489 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3491 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3493 llvm-java) subdirs="$subdirs projects/llvm-java"
3495 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3497 safecode) subdirs="$subdirs projects/safecode"
3499 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3508 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3509 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3515 # Check whether --enable-polly was given.
3516 if test "${enable_polly+set}" = set; then
3517 enableval=$enable_polly;
3522 case "$enableval" in
3527 default) ENABLE_POLLY=1
3529 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3530 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3531 { (exit 1); exit 1; }; } ;;
3535 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3538 subdirs="$subdirs tools/polly"
3543 # Make sure we can run config.sub.
3544 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3545 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3546 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3547 { (exit 1); exit 1; }; }
3549 { echo "$as_me:$LINENO: checking build system type" >&5
3550 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3551 if test "${ac_cv_build+set}" = set; then
3552 echo $ECHO_N "(cached) $ECHO_C" >&6
3554 ac_build_alias=$build_alias
3555 test "x$ac_build_alias" = x &&
3556 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3557 test "x$ac_build_alias" = x &&
3558 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3559 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3560 { (exit 1); exit 1; }; }
3561 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3562 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3563 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3564 { (exit 1); exit 1; }; }
3567 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3568 echo "${ECHO_T}$ac_cv_build" >&6; }
3569 case $ac_cv_build in
3571 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3572 echo "$as_me: error: invalid value of canonical build" >&2;}
3573 { (exit 1); exit 1; }; };;
3576 ac_save_IFS=$IFS; IFS='-'
3582 # Remember, the first character of IFS is used to create $*,
3583 # except with old shells:
3586 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3589 { echo "$as_me:$LINENO: checking host system type" >&5
3590 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3591 if test "${ac_cv_host+set}" = set; then
3592 echo $ECHO_N "(cached) $ECHO_C" >&6
3594 if test "x$host_alias" = x; then
3595 ac_cv_host=$ac_cv_build
3597 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3598 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3599 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3600 { (exit 1); exit 1; }; }
3604 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3605 echo "${ECHO_T}$ac_cv_host" >&6; }
3608 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3609 echo "$as_me: error: invalid value of canonical host" >&2;}
3610 { (exit 1); exit 1; }; };;
3613 ac_save_IFS=$IFS; IFS='-'
3619 # Remember, the first character of IFS is used to create $*,
3620 # except with old shells:
3623 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3626 { echo "$as_me:$LINENO: checking target system type" >&5
3627 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3628 if test "${ac_cv_target+set}" = set; then
3629 echo $ECHO_N "(cached) $ECHO_C" >&6
3631 if test "x$target_alias" = x; then
3632 ac_cv_target=$ac_cv_host
3634 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3635 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3636 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3637 { (exit 1); exit 1; }; }
3641 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3642 echo "${ECHO_T}$ac_cv_target" >&6; }
3643 case $ac_cv_target in
3645 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3646 echo "$as_me: error: invalid value of canonical target" >&2;}
3647 { (exit 1); exit 1; }; };;
3649 target=$ac_cv_target
3650 ac_save_IFS=$IFS; IFS='-'
3656 # Remember, the first character of IFS is used to create $*,
3657 # except with old shells:
3660 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3663 # The aliases save the names the user supplied, while $host etc.
3664 # will get canonicalized.
3665 test -n "$target_alias" &&
3666 test "$program_prefix$program_suffix$program_transform_name" = \
3668 program_prefix=${target_alias}-
3670 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3671 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3672 if test "${llvm_cv_os_type+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3677 llvm_cv_link_all_option="-Wl,--whole-archive"
3678 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3679 llvm_cv_os_type="AIX"
3680 llvm_cv_platform_type="Unix" ;;
3682 llvm_cv_link_all_option="-Wl,--whole-archive"
3683 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3684 llvm_cv_os_type="IRIX"
3685 llvm_cv_platform_type="Unix" ;;
3687 llvm_cv_link_all_option="-Wl,--whole-archive"
3688 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3689 llvm_cv_os_type="Cygwin"
3690 llvm_cv_platform_type="Unix" ;;
3692 llvm_cv_link_all_option="-Wl,-all_load"
3693 llvm_cv_no_link_all_option="-Wl,-noall_load"
3694 llvm_cv_os_type="Darwin"
3695 llvm_cv_platform_type="Unix" ;;
3697 llvm_cv_link_all_option="-Wl,-all_load"
3698 llvm_cv_no_link_all_option="-Wl,-noall_load"
3699 llvm_cv_os_type="Minix"
3700 llvm_cv_platform_type="Unix" ;;
3701 *-*-freebsd* | *-*-kfreebsd-gnu)
3702 llvm_cv_link_all_option="-Wl,--whole-archive"
3703 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3704 llvm_cv_os_type="FreeBSD"
3705 llvm_cv_platform_type="Unix" ;;
3707 llvm_cv_link_all_option="-Wl,--whole-archive"
3708 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3709 llvm_cv_os_type="OpenBSD"
3710 llvm_cv_platform_type="Unix" ;;
3712 llvm_cv_link_all_option="-Wl,--whole-archive"
3713 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3714 llvm_cv_os_type="NetBSD"
3715 llvm_cv_platform_type="Unix" ;;
3717 llvm_cv_link_all_option="-Wl,--whole-archive"
3718 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3719 llvm_cv_os_type="DragonFly"
3720 llvm_cv_platform_type="Unix" ;;
3722 llvm_cv_link_all_option="-Wl,--whole-archive"
3723 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3724 llvm_cv_os_type="HP-UX"
3725 llvm_cv_platform_type="Unix" ;;
3727 llvm_cv_link_all_option="-Wl,--whole-archive"
3728 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3729 llvm_cv_os_type="Interix"
3730 llvm_cv_platform_type="Unix" ;;
3732 llvm_cv_link_all_option="-Wl,--whole-archive"
3733 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3734 llvm_cv_os_type="Linux"
3735 llvm_cv_platform_type="Unix" ;;
3737 llvm_cv_link_all_option="-Wl,--whole-archive"
3738 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3739 llvm_cv_os_type="GNU"
3740 llvm_cv_platform_type="Unix" ;;
3742 llvm_cv_link_all_option="-Wl,-z,allextract"
3743 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3744 llvm_cv_os_type="SunOS"
3745 llvm_cv_platform_type="Unix" ;;
3747 llvm_cv_link_all_option="-Wl,-z,allextract"
3748 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3749 llvm_cv_os_type="AuroraUX"
3750 llvm_cv_platform_type="Unix" ;;
3752 llvm_cv_link_all_option="-Wl,--whole-archive"
3753 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3754 llvm_cv_os_type="Win32"
3755 llvm_cv_platform_type="Win32" ;;
3757 llvm_cv_link_all_option="-Wl,--whole-archive"
3758 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3759 llvm_cv_os_type="MingW"
3760 llvm_cv_platform_type="Win32" ;;
3762 llvm_cv_link_all_option="-Wl,--whole-archive"
3763 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3764 llvm_cv_os_type="Haiku"
3765 llvm_cv_platform_type="Unix" ;;
3767 llvm_cv_link_all_option="-Wl,--whole-archive"
3768 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3769 llvm_cv_os_type="Freestanding"
3770 llvm_cv_platform_type="Unix" ;;
3772 llvm_cv_link_all_option="-Wl,--whole-archive"
3773 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3774 llvm_cv_os_type="Freestanding"
3775 llvm_cv_platform_type="Unix" ;;
3777 llvm_cv_link_all_option=""
3778 llvm_cv_no_link_all_option=""
3779 llvm_cv_os_type="Unknown"
3780 llvm_cv_platform_type="Unknown" ;;
3783 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3784 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3786 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3787 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3788 if test "${llvm_cv_target_os_type+set}" = set; then
3789 echo $ECHO_N "(cached) $ECHO_C" >&6
3793 llvm_cv_target_os_type="AIX" ;;
3795 llvm_cv_target_os_type="IRIX" ;;
3797 llvm_cv_target_os_type="Cygwin" ;;
3799 llvm_cv_target_os_type="Darwin" ;;
3801 llvm_cv_target_os_type="Minix" ;;
3803 llvm_cv_target_os_type="FreeBSD" ;;
3805 llvm_cv_target_os_type="OpenBSD" ;;
3807 llvm_cv_target_os_type="NetBSD" ;;
3809 llvm_cv_target_os_type="DragonFly" ;;
3811 llvm_cv_target_os_type="HP-UX" ;;
3813 llvm_cv_target_os_type="Interix" ;;
3815 llvm_cv_target_os_type="Linux" ;;
3817 llvm_cv_target_os_type="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 *) llvm_cv_target_arch="Unknown" ;;
3903 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3904 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3906 if test "$llvm_cv_target_arch" = "Unknown" ; then
3907 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3908 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3911 case "$llvm_cv_target_arch" in
3912 x86) LLVM_NATIVE_ARCH="X86" ;;
3913 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3914 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3917 ARCH=$llvm_cv_target_arch
3922 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3923 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3924 if test "${ac_cv_path_GREP+set}" = set; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3927 # Extract the first word of "grep ggrep" to use in msg output
3928 if test -z "$GREP"; then
3929 set dummy grep ggrep; ac_prog_name=$2
3930 if test "${ac_cv_path_GREP+set}" = set; then
3931 echo $ECHO_N "(cached) $ECHO_C" >&6
3933 ac_path_GREP_found=false
3934 # Loop through the user's path and test for each of PROGNAME-LIST
3935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3939 test -z "$as_dir" && as_dir=.
3940 for ac_prog in grep ggrep; do
3941 for ac_exec_ext in '' $ac_executable_extensions; do
3942 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3943 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3944 # Check for GNU ac_path_GREP and select it if it is found.
3945 # Check for GNU $ac_path_GREP
3946 case `"$ac_path_GREP" --version 2>&1` in
3948 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3951 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3954 cat "conftest.in" "conftest.in" >"conftest.tmp"
3955 mv "conftest.tmp" "conftest.in"
3956 cp "conftest.in" "conftest.nl"
3957 echo 'GREP' >> "conftest.nl"
3958 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3959 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3960 ac_count=`expr $ac_count + 1`
3961 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3962 # Best one so far, save it but keep looking for a better one
3963 ac_cv_path_GREP="$ac_path_GREP"
3964 ac_path_GREP_max=$ac_count
3966 # 10*(2^10) chars as input seems more than enough
3967 test $ac_count -gt 10 && break
3969 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3973 $ac_path_GREP_found && break 3
3983 GREP="$ac_cv_path_GREP"
3984 if test -z "$GREP"; then
3985 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3986 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3987 { (exit 1); exit 1; }; }
3991 ac_cv_path_GREP=$GREP
3996 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3997 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3998 GREP="$ac_cv_path_GREP"
4001 { echo "$as_me:$LINENO: checking for egrep" >&5
4002 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4003 if test "${ac_cv_path_EGREP+set}" = set; then
4004 echo $ECHO_N "(cached) $ECHO_C" >&6
4006 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4007 then ac_cv_path_EGREP="$GREP -E"
4009 # Extract the first word of "egrep" to use in msg output
4010 if test -z "$EGREP"; then
4011 set dummy egrep; ac_prog_name=$2
4012 if test "${ac_cv_path_EGREP+set}" = set; then
4013 echo $ECHO_N "(cached) $ECHO_C" >&6
4015 ac_path_EGREP_found=false
4016 # Loop through the user's path and test for each of PROGNAME-LIST
4017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4018 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4021 test -z "$as_dir" && as_dir=.
4022 for ac_prog in egrep; do
4023 for ac_exec_ext in '' $ac_executable_extensions; do
4024 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4025 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4026 # Check for GNU ac_path_EGREP and select it if it is found.
4027 # Check for GNU $ac_path_EGREP
4028 case `"$ac_path_EGREP" --version 2>&1` in
4030 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4033 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4036 cat "conftest.in" "conftest.in" >"conftest.tmp"
4037 mv "conftest.tmp" "conftest.in"
4038 cp "conftest.in" "conftest.nl"
4039 echo 'EGREP' >> "conftest.nl"
4040 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4041 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4042 ac_count=`expr $ac_count + 1`
4043 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4044 # Best one so far, save it but keep looking for a better one
4045 ac_cv_path_EGREP="$ac_path_EGREP"
4046 ac_path_EGREP_max=$ac_count
4048 # 10*(2^10) chars as input seems more than enough
4049 test $ac_count -gt 10 && break
4051 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4055 $ac_path_EGREP_found && break 3
4065 EGREP="$ac_cv_path_EGREP"
4066 if test -z "$EGREP"; then
4067 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4068 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4069 { (exit 1); exit 1; }; }
4073 ac_cv_path_EGREP=$EGREP
4079 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4080 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4081 EGREP="$ac_cv_path_EGREP"
4084 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4085 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4086 if test "${ac_cv_header_stdc+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4089 cat >conftest.$ac_ext <<_ACEOF
4092 cat confdefs.h >>conftest.$ac_ext
4093 cat >>conftest.$ac_ext <<_ACEOF
4094 /* end confdefs.h. */
4108 rm -f conftest.$ac_objext
4109 if { (ac_try="$ac_compile"
4111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4112 *) ac_try_echo=$ac_try;;
4114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4115 (eval "$ac_compile") 2>conftest.er1
4117 grep -v '^ *+' conftest.er1 >conftest.err
4119 cat conftest.err >&5
4120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); } &&
4122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4123 { (case "(($ac_try" in
4124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4125 *) ac_try_echo=$ac_try;;
4127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4128 (eval "$ac_try") 2>&5
4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 (exit $ac_status); }; } &&
4132 { ac_try='test -s conftest.$ac_objext'
4133 { (case "(($ac_try" in
4134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4135 *) ac_try_echo=$ac_try;;
4137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4138 (eval "$ac_try") 2>&5
4140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141 (exit $ac_status); }; }; then
4142 ac_cv_header_stdc=yes
4144 echo "$as_me: failed program was:" >&5
4145 sed 's/^/| /' conftest.$ac_ext >&5
4147 ac_cv_header_stdc=no
4150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4152 if test $ac_cv_header_stdc = yes; then
4153 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4154 cat >conftest.$ac_ext <<_ACEOF
4157 cat confdefs.h >>conftest.$ac_ext
4158 cat >>conftest.$ac_ext <<_ACEOF
4159 /* end confdefs.h. */
4163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4164 $EGREP "memchr" >/dev/null 2>&1; then
4167 ac_cv_header_stdc=no
4173 if test $ac_cv_header_stdc = yes; then
4174 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4175 cat >conftest.$ac_ext <<_ACEOF
4178 cat confdefs.h >>conftest.$ac_ext
4179 cat >>conftest.$ac_ext <<_ACEOF
4180 /* end confdefs.h. */
4184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4185 $EGREP "free" >/dev/null 2>&1; then
4188 ac_cv_header_stdc=no
4194 if test $ac_cv_header_stdc = yes; then
4195 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4196 if test "$cross_compiling" = yes; then
4199 cat >conftest.$ac_ext <<_ACEOF
4202 cat confdefs.h >>conftest.$ac_ext
4203 cat >>conftest.$ac_ext <<_ACEOF
4204 /* end confdefs.h. */
4207 #if ((' ' & 0x0FF) == 0x020)
4208 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4209 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4211 # define ISLOWER(c) \
4212 (('a' <= (c) && (c) <= 'i') \
4213 || ('j' <= (c) && (c) <= 'r') \
4214 || ('s' <= (c) && (c) <= 'z'))
4215 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4218 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4223 for (i = 0; i < 256; i++)
4224 if (XOR (islower (i), ISLOWER (i))
4225 || toupper (i) != TOUPPER (i))
4230 rm -f conftest$ac_exeext
4231 if { (ac_try="$ac_link"
4233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4234 *) ac_try_echo=$ac_try;;
4236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4237 (eval "$ac_link") 2>&5
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4241 { (case "(($ac_try" in
4242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4243 *) ac_try_echo=$ac_try;;
4245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4246 (eval "$ac_try") 2>&5
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); }; }; then
4252 echo "$as_me: program exited with status $ac_status" >&5
4253 echo "$as_me: failed program was:" >&5
4254 sed 's/^/| /' conftest.$ac_ext >&5
4257 ac_cv_header_stdc=no
4259 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4265 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4266 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4267 if test $ac_cv_header_stdc = yes; then
4269 cat >>confdefs.h <<\_ACEOF
4270 #define STDC_HEADERS 1
4275 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4285 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4286 inttypes.h stdint.h unistd.h
4288 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4289 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4291 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4292 echo $ECHO_N "(cached) $ECHO_C" >&6
4294 cat >conftest.$ac_ext <<_ACEOF
4297 cat confdefs.h >>conftest.$ac_ext
4298 cat >>conftest.$ac_ext <<_ACEOF
4299 /* end confdefs.h. */
4300 $ac_includes_default
4302 #include <$ac_header>
4304 rm -f conftest.$ac_objext
4305 if { (ac_try="$ac_compile"
4307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308 *) ac_try_echo=$ac_try;;
4310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4311 (eval "$ac_compile") 2>conftest.er1
4313 grep -v '^ *+' conftest.er1 >conftest.err
4315 cat conftest.err >&5
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); } &&
4318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4319 { (case "(($ac_try" in
4320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321 *) ac_try_echo=$ac_try;;
4323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4324 (eval "$ac_try") 2>&5
4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327 (exit $ac_status); }; } &&
4328 { ac_try='test -s conftest.$ac_objext'
4329 { (case "(($ac_try" in
4330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331 *) ac_try_echo=$ac_try;;
4333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4334 (eval "$ac_try") 2>&5
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); }; }; then
4338 eval "$as_ac_Header=yes"
4340 echo "$as_me: failed program was:" >&5
4341 sed 's/^/| /' conftest.$ac_ext >&5
4343 eval "$as_ac_Header=no"
4346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4348 ac_res=`eval echo '${'$as_ac_Header'}'`
4349 { echo "$as_me:$LINENO: result: $ac_res" >&5
4350 echo "${ECHO_T}$ac_res" >&6; }
4351 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4352 cat >>confdefs.h <<_ACEOF
4353 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4361 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4362 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4363 if test "${ac_cv_c_bigendian+set}" = set; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4366 # See if sys/param.h defines the BYTE_ORDER macro.
4367 cat >conftest.$ac_ext <<_ACEOF
4370 cat confdefs.h >>conftest.$ac_ext
4371 cat >>conftest.$ac_ext <<_ACEOF
4372 /* end confdefs.h. */
4373 #include <sys/types.h>
4374 #include <sys/param.h>
4379 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4387 rm -f conftest.$ac_objext
4388 if { (ac_try="$ac_compile"
4390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4391 *) ac_try_echo=$ac_try;;
4393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4394 (eval "$ac_compile") 2>conftest.er1
4396 grep -v '^ *+' conftest.er1 >conftest.err
4398 cat conftest.err >&5
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); } &&
4401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4402 { (case "(($ac_try" in
4403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4404 *) ac_try_echo=$ac_try;;
4406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4407 (eval "$ac_try") 2>&5
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); }; } &&
4411 { ac_try='test -s conftest.$ac_objext'
4412 { (case "(($ac_try" in
4413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4414 *) ac_try_echo=$ac_try;;
4416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4417 (eval "$ac_try") 2>&5
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); }; }; then
4421 # It does; now see whether it defined to BIG_ENDIAN or not.
4422 cat >conftest.$ac_ext <<_ACEOF
4425 cat confdefs.h >>conftest.$ac_ext
4426 cat >>conftest.$ac_ext <<_ACEOF
4427 /* end confdefs.h. */
4428 #include <sys/types.h>
4429 #include <sys/param.h>
4434 #if BYTE_ORDER != BIG_ENDIAN
4442 rm -f conftest.$ac_objext
4443 if { (ac_try="$ac_compile"
4445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4446 *) ac_try_echo=$ac_try;;
4448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4449 (eval "$ac_compile") 2>conftest.er1
4451 grep -v '^ *+' conftest.er1 >conftest.err
4453 cat conftest.err >&5
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); } &&
4456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4457 { (case "(($ac_try" in
4458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4459 *) ac_try_echo=$ac_try;;
4461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4462 (eval "$ac_try") 2>&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); }; } &&
4466 { ac_try='test -s conftest.$ac_objext'
4467 { (case "(($ac_try" in
4468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4469 *) ac_try_echo=$ac_try;;
4471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4472 (eval "$ac_try") 2>&5
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); }; }; then
4476 ac_cv_c_bigendian=yes
4478 echo "$as_me: failed program was:" >&5
4479 sed 's/^/| /' conftest.$ac_ext >&5
4481 ac_cv_c_bigendian=no
4484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4486 echo "$as_me: failed program was:" >&5
4487 sed 's/^/| /' conftest.$ac_ext >&5
4489 # It does not; compile a test program.
4490 if test "$cross_compiling" = yes; then
4491 # try to guess the endianness by grepping values into an object file
4492 ac_cv_c_bigendian=unknown
4493 cat >conftest.$ac_ext <<_ACEOF
4496 cat confdefs.h >>conftest.$ac_ext
4497 cat >>conftest.$ac_ext <<_ACEOF
4498 /* end confdefs.h. */
4499 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4500 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4501 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4502 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4503 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4504 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4508 _ascii (); _ebcdic ();
4513 rm -f conftest.$ac_objext
4514 if { (ac_try="$ac_compile"
4516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4517 *) ac_try_echo=$ac_try;;
4519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4520 (eval "$ac_compile") 2>conftest.er1
4522 grep -v '^ *+' conftest.er1 >conftest.err
4524 cat conftest.err >&5
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); } &&
4527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4528 { (case "(($ac_try" in
4529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4530 *) ac_try_echo=$ac_try;;
4532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4533 (eval "$ac_try") 2>&5
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); }; } &&
4537 { ac_try='test -s conftest.$ac_objext'
4538 { (case "(($ac_try" in
4539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4540 *) ac_try_echo=$ac_try;;
4542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4543 (eval "$ac_try") 2>&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); }; }; then
4547 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4548 ac_cv_c_bigendian=yes
4550 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4551 if test "$ac_cv_c_bigendian" = unknown; then
4552 ac_cv_c_bigendian=no
4554 # finding both strings is unlikely to happen, but who knows?
4555 ac_cv_c_bigendian=unknown
4559 echo "$as_me: failed program was:" >&5
4560 sed 's/^/| /' conftest.$ac_ext >&5
4565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4567 cat >conftest.$ac_ext <<_ACEOF
4570 cat confdefs.h >>conftest.$ac_ext
4571 cat >>conftest.$ac_ext <<_ACEOF
4572 /* end confdefs.h. */
4573 $ac_includes_default
4578 /* Are we little or big endian? From Harbison&Steele. */
4582 char c[sizeof (long int)];
4585 return u.c[sizeof (long int) - 1] == 1;
4591 rm -f conftest$ac_exeext
4592 if { (ac_try="$ac_link"
4594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4595 *) ac_try_echo=$ac_try;;
4597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4598 (eval "$ac_link") 2>&5
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4602 { (case "(($ac_try" in
4603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4604 *) ac_try_echo=$ac_try;;
4606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4607 (eval "$ac_try") 2>&5
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); }; }; then
4611 ac_cv_c_bigendian=no
4613 echo "$as_me: program exited with status $ac_status" >&5
4614 echo "$as_me: failed program was:" >&5
4615 sed 's/^/| /' conftest.$ac_ext >&5
4618 ac_cv_c_bigendian=yes
4620 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4628 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4629 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4630 case $ac_cv_c_bigendian in
4638 { { echo "$as_me:$LINENO: error: unknown endianness
4639 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4640 echo "$as_me: error: unknown endianness
4641 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4642 { (exit 1); exit 1; }; } ;;
4646 if test "$cross_compiling" = yes; then
4647 LLVM_CROSS_COMPILING=1
4650 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4651 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4652 if test "${ac_cv_build_exeext+set}" = set; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
4655 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4656 ac_cv_build_exeext=.exe
4658 ac_build_prefix=${build_alias}-
4660 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4661 set dummy ${ac_build_prefix}gcc; ac_word=$2
4662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4664 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4665 echo $ECHO_N "(cached) $ECHO_C" >&6
4667 if test -n "$BUILD_CC"; then
4668 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674 test -z "$as_dir" && as_dir=.
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4677 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4687 BUILD_CC=$ac_cv_prog_BUILD_CC
4688 if test -n "$BUILD_CC"; then
4689 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4690 echo "${ECHO_T}$BUILD_CC" >&6; }
4692 { echo "$as_me:$LINENO: result: no" >&5
4693 echo "${ECHO_T}no" >&6; }
4697 if test -z "$BUILD_CC"; then
4698 # Extract the first word of "gcc", so it can be a program name with args.
4699 set dummy gcc; ac_word=$2
4700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4702 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4703 echo $ECHO_N "(cached) $ECHO_C" >&6
4705 if test -n "$BUILD_CC"; then
4706 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712 test -z "$as_dir" && as_dir=.
4713 for ac_exec_ext in '' $ac_executable_extensions; do
4714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4715 ac_cv_prog_BUILD_CC="gcc"
4716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4725 BUILD_CC=$ac_cv_prog_BUILD_CC
4726 if test -n "$BUILD_CC"; then
4727 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4728 echo "${ECHO_T}$BUILD_CC" >&6; }
4730 { echo "$as_me:$LINENO: result: no" >&5
4731 echo "${ECHO_T}no" >&6; }
4735 if test -z "$BUILD_CC"; then
4736 # Extract the first word of "cc", so it can be a program name with args.
4737 set dummy cc; ac_word=$2
4738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4740 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
4743 if test -n "$BUILD_CC"; then
4744 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 test -z "$as_dir" && as_dir=.
4752 for ac_exec_ext in '' $ac_executable_extensions; do
4753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4754 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4755 ac_prog_rejected=yes
4758 ac_cv_prog_BUILD_CC="cc"
4759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4766 if test $ac_prog_rejected = yes; then
4767 # We found a bogon in the path, so make sure we never use it.
4768 set dummy $ac_cv_prog_BUILD_CC
4770 if test $# != 0; then
4771 # We chose a different compiler from the bogus one.
4772 # However, it has the same basename, so the bogon will be chosen
4773 # first if we set BUILD_CC to just the basename; use the full file name.
4775 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4780 BUILD_CC=$ac_cv_prog_BUILD_CC
4781 if test -n "$BUILD_CC"; then
4782 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4783 echo "${ECHO_T}$BUILD_CC" >&6; }
4785 { echo "$as_me:$LINENO: result: no" >&5
4786 echo "${ECHO_T}no" >&6; }
4792 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4793 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4794 { (exit 1); exit 1; }; }
4795 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4797 echo 'int main () { return 0; }' > conftest.$ac_ext
4799 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4800 (eval $ac_build_link) 2>&5
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); }; then
4804 for file in conftest.*; do
4806 *.c | *.o | *.obj | *.dSYM) ;;
4807 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4811 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4812 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4813 { (exit 1); exit 1; }; }
4816 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4821 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4822 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4823 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4824 ac_build_exeext=$BUILD_EXEEXT
4826 ac_build_prefix=${build_alias}-
4827 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4828 set dummy ${ac_build_prefix}g++; ac_word=$2
4829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4831 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4832 echo $ECHO_N "(cached) $ECHO_C" >&6
4834 if test -n "$BUILD_CXX"; then
4835 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4841 test -z "$as_dir" && as_dir=.
4842 for ac_exec_ext in '' $ac_executable_extensions; do
4843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4844 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4854 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4855 if test -n "$BUILD_CXX"; then
4856 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4857 echo "${ECHO_T}$BUILD_CXX" >&6; }
4859 { echo "$as_me:$LINENO: result: no" >&5
4860 echo "${ECHO_T}no" >&6; }
4864 if test -z "$BUILD_CXX"; then
4865 # Extract the first word of "g++", so it can be a program name with args.
4866 set dummy g++; ac_word=$2
4867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4869 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4870 echo $ECHO_N "(cached) $ECHO_C" >&6
4872 if test -n "$BUILD_CXX"; then
4873 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4879 test -z "$as_dir" && as_dir=.
4880 for ac_exec_ext in '' $ac_executable_extensions; do
4881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4882 ac_cv_prog_BUILD_CXX="g++"
4883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4892 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4893 if test -n "$BUILD_CXX"; then
4894 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4895 echo "${ECHO_T}$BUILD_CXX" >&6; }
4897 { echo "$as_me:$LINENO: result: no" >&5
4898 echo "${ECHO_T}no" >&6; }
4902 if test -z "$BUILD_CXX"; then
4903 # Extract the first word of "c++", so it can be a program name with args.
4904 set dummy c++; ac_word=$2
4905 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4907 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4908 echo $ECHO_N "(cached) $ECHO_C" >&6
4910 if test -n "$BUILD_CXX"; then
4911 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918 test -z "$as_dir" && as_dir=.
4919 for ac_exec_ext in '' $ac_executable_extensions; do
4920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4921 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4922 ac_prog_rejected=yes
4925 ac_cv_prog_BUILD_CXX="c++"
4926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4933 if test $ac_prog_rejected = yes; then
4934 # We found a bogon in the path, so make sure we never use it.
4935 set dummy $ac_cv_prog_BUILD_CXX
4937 if test $# != 0; then
4938 # We chose a different compiler from the bogus one.
4939 # However, it has the same basename, so the bogon will be chosen
4940 # first if we set BUILD_CXX to just the basename; use the full file name.
4942 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4947 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4948 if test -n "$BUILD_CXX"; then
4949 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4950 echo "${ECHO_T}$BUILD_CXX" >&6; }
4952 { echo "$as_me:$LINENO: result: no" >&5
4953 echo "${ECHO_T}no" >&6; }
4960 LLVM_CROSS_COMPILING=0
4964 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4975 # Check whether --enable-libcpp was given.
4976 if test "${enable_libcpp+set}" = set; then
4977 enableval=$enable_libcpp;
4982 case "$enableval" in
4983 yes) ENABLE_LIBCPP=1
4987 default) ENABLE_LIBCPP=0
4989 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4990 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4991 { (exit 1); exit 1; }; } ;;
4994 # Check whether --enable-optimized was given.
4995 if test "${enable_optimized+set}" = set; then
4996 enableval=$enable_optimized;
5001 if test ${enableval} = "no" ; then
5005 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5009 # Check whether --enable-profiling was given.
5010 if test "${enable_profiling+set}" = set; then
5011 enableval=$enable_profiling;
5016 if test ${enableval} = "no" ; then
5020 ENABLE_PROFILING=ENABLE_PROFILING=1
5024 # Check whether --enable-assertions was given.
5025 if test "${enable_assertions+set}" = set; then
5026 enableval=$enable_assertions;
5031 if test ${enableval} = "yes" ; then
5035 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5039 # Check whether --enable-expensive-checks was given.
5040 if test "${enable_expensive_checks+set}" = set; then
5041 enableval=$enable_expensive_checks;
5046 if test ${enableval} = "yes" ; then
5047 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5049 EXPENSIVE_CHECKS=yes
5052 ENABLE_EXPENSIVE_CHECKS=
5058 # Check whether --enable-debug-runtime was given.
5059 if test "${enable_debug_runtime+set}" = set; then
5060 enableval=$enable_debug_runtime;
5065 if test ${enableval} = "no" ; then
5069 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5073 # Check whether --enable-debug-symbols was given.
5074 if test "${enable_debug_symbols+set}" = set; then
5075 enableval=$enable_debug_symbols;
5080 if test ${enableval} = "no" ; then
5084 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5088 # Check whether --enable-jit was given.
5089 if test "${enable_jit+set}" = set; then
5090 enableval=$enable_jit;
5095 if test ${enableval} = "no"
5100 case "$llvm_cv_target_arch" in
5101 x86) TARGET_HAS_JIT=1
5103 Sparc) TARGET_HAS_JIT=0
5105 PowerPC) TARGET_HAS_JIT=1
5107 x86_64) TARGET_HAS_JIT=1
5109 ARM) TARGET_HAS_JIT=1
5111 Mips) TARGET_HAS_JIT=1
5113 XCore) TARGET_HAS_JIT=0
5115 MSP430) TARGET_HAS_JIT=0
5117 Hexagon) TARGET_HAS_JIT=0
5119 MBlaze) TARGET_HAS_JIT=0
5121 PTX) TARGET_HAS_JIT=0
5128 # Check whether --enable-docs was given.
5129 if test "${enable_docs+set}" = set; then
5130 enableval=$enable_docs;
5135 case "$enableval" in
5140 default) ENABLE_DOCS=1
5142 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5143 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5144 { (exit 1); exit 1; }; } ;;
5147 # Check whether --enable-doxygen was given.
5148 if test "${enable_doxygen+set}" = set; then
5149 enableval=$enable_doxygen;
5154 case "$enableval" in
5155 yes) ENABLE_DOXYGEN=1
5157 no) ENABLE_DOXYGEN=0
5159 default) ENABLE_DOXYGEN=0
5161 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5162 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5163 { (exit 1); exit 1; }; } ;;
5166 # Check whether --enable-threads was given.
5167 if test "${enable_threads+set}" = set; then
5168 enableval=$enable_threads;
5173 case "$enableval" in
5174 yes) LLVM_ENABLE_THREADS=1
5176 no) LLVM_ENABLE_THREADS=0
5178 default) LLVM_ENABLE_THREADS=1
5180 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5181 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5182 { (exit 1); exit 1; }; } ;;
5185 cat >>confdefs.h <<_ACEOF
5186 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5190 # Check whether --enable-pthreads was given.
5191 if test "${enable_pthreads+set}" = set; then
5192 enableval=$enable_pthreads;
5197 case "$enableval" in
5198 yes) ENABLE_PTHREADS=1
5200 no) ENABLE_PTHREADS=0
5202 default) ENABLE_PTHREADS=1
5204 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5205 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5206 { (exit 1); exit 1; }; } ;;
5209 # Check whether --enable-pic was given.
5210 if test "${enable_pic+set}" = set; then
5211 enableval=$enable_pic;
5216 case "$enableval" in
5221 default) ENABLE_PIC=1
5223 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5224 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5225 { (exit 1); exit 1; }; } ;;
5228 cat >>confdefs.h <<_ACEOF
5229 #define ENABLE_PIC $ENABLE_PIC
5233 # Check whether --enable-shared was given.
5234 if test "${enable_shared+set}" = set; then
5235 enableval=$enable_shared;
5240 case "$enableval" in
5241 yes) ENABLE_SHARED=1
5245 default) ENABLE_SHARED=0
5247 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5248 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5249 { (exit 1); exit 1; }; } ;;
5252 # Check whether --enable-embed-stdcxx was given.
5253 if test "${enable_embed_stdcxx+set}" = set; then
5254 enableval=$enable_embed_stdcxx;
5259 case "$enableval" in
5260 yes) ENABLE_EMBED_STDCXX=1
5262 no) ENABLE_EMBED_STDCXX=0
5264 default) ENABLE_EMBED_STDCXX=0
5266 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5267 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5268 { (exit 1); exit 1; }; } ;;
5271 # Check whether --enable-timestamps was given.
5272 if test "${enable_timestamps+set}" = set; then
5273 enableval=$enable_timestamps;
5278 case "$enableval" in
5279 yes) ENABLE_TIMESTAMPS=1
5281 no) ENABLE_TIMESTAMPS=0
5283 default) ENABLE_TIMESTAMPS=1
5285 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5286 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5287 { (exit 1); exit 1; }; } ;;
5290 cat >>confdefs.h <<_ACEOF
5291 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5296 # Check whether --enable-targets was given.
5297 if test "${enable_targets+set}" = set; then
5298 enableval=$enable_targets;
5303 if test "$enableval" = host-only ; then
5306 case "$enableval" in
5307 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CBackend CppBackend MBlaze PTX Hexagon" ;;
5308 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5310 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5311 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5312 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5313 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5314 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5315 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5316 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5317 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5318 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5319 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5320 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5321 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5322 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5323 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5324 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5325 host) case "$llvm_cv_target_arch" in
5326 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5327 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5328 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5329 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5330 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5331 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5332 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5333 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5334 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5335 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5336 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5337 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5338 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5339 echo "$as_me: error: Can not set target to build" >&2;}
5340 { (exit 1); exit 1; }; } ;;
5342 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5343 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5344 { (exit 1); exit 1; }; } ;;
5349 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5352 for a_target in $TARGETS_TO_BUILD; do
5353 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5355 cat >>confdefs.h <<_ACEOF
5356 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5359 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5360 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5361 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5362 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5363 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5364 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5367 cat >>confdefs.h <<_ACEOF
5368 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5372 cat >>confdefs.h <<_ACEOF
5373 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5377 cat >>confdefs.h <<_ACEOF
5378 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5382 cat >>confdefs.h <<_ACEOF
5383 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5386 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5388 cat >>confdefs.h <<_ACEOF
5389 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5396 LLVM_ENUM_TARGETS=""
5397 LLVM_ENUM_ASM_PRINTERS=""
5398 LLVM_ENUM_ASM_PARSERS=""
5399 LLVM_ENUM_DISASSEMBLERS=""
5400 for target_to_build in $TARGETS_TO_BUILD; do
5401 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5402 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5403 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5405 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5406 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5408 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5409 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5417 # Check whether --enable-cbe-printf-a was given.
5418 if test "${enable_cbe_printf_a+set}" = set; then
5419 enableval=$enable_cbe_printf_a;
5424 case "$enableval" in
5425 yes) ENABLE_CBE_PRINTF_A=1
5427 no) ENABLE_CBE_PRINTF_A=0
5429 default) ENABLE_CBE_PRINTF_A=1
5431 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5432 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5433 { (exit 1); exit 1; }; } ;;
5436 cat >>confdefs.h <<_ACEOF
5437 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5442 # Check whether --with-optimize-option was given.
5443 if test "${with_optimize_option+set}" = set; then
5444 withval=$with_optimize_option;
5449 { echo "$as_me:$LINENO: checking optimization flags" >&5
5450 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5453 case "$llvm_cv_os_type" in
5454 FreeBSD) optimize_option=-O2 ;;
5455 MingW) optimize_option=-O2 ;;
5456 *) optimize_option=-O3 ;;
5458 *) optimize_option="$withval" ;;
5460 OPTIMIZE_OPTION=$optimize_option
5462 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5463 echo "${ECHO_T}$optimize_option" >&6; }
5466 # Check whether --with-extra-options was given.
5467 if test "${with_extra_options+set}" = set; then
5468 withval=$with_extra_options;
5474 default) EXTRA_OPTIONS= ;;
5475 *) EXTRA_OPTIONS=$withval ;;
5477 EXTRA_OPTIONS=$EXTRA_OPTIONS
5481 # Check whether --with-extra-ld-options was given.
5482 if test "${with_extra_ld_options+set}" = set; then
5483 withval=$with_extra_ld_options;
5489 default) EXTRA_LD_OPTIONS= ;;
5490 *) EXTRA_LD_OPTIONS=$withval ;;
5492 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5495 # Check whether --enable-bindings was given.
5496 if test "${enable_bindings+set}" = set; then
5497 enableval=$enable_bindings;
5502 BINDINGS_TO_BUILD=""
5503 case "$enableval" in
5504 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5505 all ) BINDINGS_TO_BUILD="ocaml" ;;
5506 none | no) BINDINGS_TO_BUILD="" ;;
5507 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5508 case "$a_binding" in
5509 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5510 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5511 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5512 { (exit 1); exit 1; }; } ;;
5519 # Check whether --with-ocaml-libdir was given.
5520 if test "${with_ocaml_libdir+set}" = set; then
5521 withval=$with_ocaml_libdir;
5527 auto) with_ocaml_libdir="$withval" ;;
5528 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5529 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5530 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5531 { (exit 1); exit 1; }; } ;;
5535 # Check whether --with-clang-srcdir was given.
5536 if test "${with_clang_srcdir+set}" = set; then
5537 withval=$with_clang_srcdir;
5543 -) clang_src_root="" ;;
5544 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5545 *) clang_src_root="$ac_pwd/$withval" ;;
5547 CLANG_SRC_ROOT=$clang_src_root
5551 # Check whether --with-clang-resource-dir was given.
5552 if test "${with_clang_resource_dir+set}" = set; then
5553 withval=$with_clang_resource_dir;
5559 cat >>confdefs.h <<_ACEOF
5560 #define CLANG_RESOURCE_DIR "$withval"
5565 # Check whether --with-c-include-dirs was given.
5566 if test "${with_c_include_dirs+set}" = set; then
5567 withval=$with_c_include_dirs;
5573 cat >>confdefs.h <<_ACEOF
5574 #define C_INCLUDE_DIRS "$withval"
5578 # Clang normally uses the system c++ headers and libraries. With this option,
5579 # clang will use the ones provided by a gcc installation instead. This option should
5580 # be passed the same value that was used with --prefix when configuring gcc.
5582 # Check whether --with-gcc-toolchain was given.
5583 if test "${with_gcc_toolchain+set}" = set; then
5584 withval=$with_gcc_toolchain;
5590 cat >>confdefs.h <<_ACEOF
5591 #define GCC_INSTALL_PREFIX "$withval"
5596 # Check whether --with-binutils-include was given.
5597 if test "${with_binutils_include+set}" = set; then
5598 withval=$with_binutils_include;
5604 default) WITH_BINUTILS_INCDIR=default ;;
5605 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5606 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5607 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5608 { (exit 1); exit 1; }; } ;;
5610 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5611 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5613 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5614 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5615 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5616 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5617 { (exit 1); exit 1; }; };
5622 # Check whether --with-bug-report-url was given.
5623 if test "${with_bug_report_url+set}" = set; then
5624 withval=$with_bug_report_url;
5626 withval="http://llvm.org/bugs/"
5630 cat >>confdefs.h <<_ACEOF
5631 #define BUG_REPORT_URL "$withval"
5635 # Check whether --enable-libffi was given.
5636 if test "${enable_libffi+set}" = set; then
5637 enableval=$enable_libffi; case "$enableval" in
5638 yes) llvm_cv_enable_libffi="yes" ;;
5639 no) llvm_cv_enable_libffi="no" ;;
5640 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5641 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5642 { (exit 1); exit 1; }; } ;;
5645 llvm_cv_enable_libffi=no
5650 # Check whether --with-internal-prefix was given.
5651 if test "${with_internal_prefix+set}" = set; then
5652 withval=$with_internal_prefix;
5657 INTERNAL_PREFIX=$withval
5661 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5662 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5663 if test "${lt_cv_path_NM+set}" = set; then
5664 echo $ECHO_N "(cached) $ECHO_C" >&6
5666 if test -n "$NM"; then
5667 # Let the user override the test.
5670 lt_nm_to_check="${ac_tool_prefix}nm"
5671 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5672 lt_nm_to_check="$lt_nm_to_check nm"
5674 for lt_tmp_nm in $lt_nm_to_check; do
5675 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5676 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5678 test -z "$ac_dir" && ac_dir=.
5679 tmp_nm="$ac_dir/$lt_tmp_nm"
5680 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5681 # Check to see if the nm accepts a BSD-compat flag.
5682 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5683 # nm: unknown option "B" ignored
5684 # Tru64's nm complains that /dev/null is an invalid object file
5685 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5686 */dev/null* | *'Invalid file or object type'*)
5687 lt_cv_path_NM="$tmp_nm -B"
5691 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5693 lt_cv_path_NM="$tmp_nm -p"
5697 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5698 continue # so that we can try to find one that supports BSD flags
5707 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5710 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5711 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5716 { echo "$as_me:$LINENO: checking for GNU make" >&5
5717 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5718 if test "${llvm_cv_gnu_make_command+set}" = set; then
5719 echo $ECHO_N "(cached) $ECHO_C" >&6
5721 llvm_cv_gnu_make_command=''
5722 for a in "$MAKE" make gmake gnumake ; do
5723 if test -z "$a" ; then continue ; fi ;
5724 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5726 llvm_cv_gnu_make_command=$a ;
5731 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5732 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5733 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5737 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5738 echo "${ECHO_T}\"Not found\"" >&6; };
5742 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5743 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5745 if test "$LN_S" = "ln -s"; then
5746 { echo "$as_me:$LINENO: result: yes" >&5
5747 echo "${ECHO_T}yes" >&6; }
5749 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5750 echo "${ECHO_T}no, using $LN_S" >&6; }
5753 # Extract the first word of "cmp", so it can be a program name with args.
5754 set dummy cmp; ac_word=$2
5755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5757 if test "${ac_cv_path_CMP+set}" = set; then
5758 echo $ECHO_N "(cached) $ECHO_C" >&6
5762 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5769 test -z "$as_dir" && as_dir=.
5770 for ac_exec_ext in '' $ac_executable_extensions; do
5771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5772 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5780 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5785 if test -n "$CMP"; then
5786 { echo "$as_me:$LINENO: result: $CMP" >&5
5787 echo "${ECHO_T}$CMP" >&6; }
5789 { echo "$as_me:$LINENO: result: no" >&5
5790 echo "${ECHO_T}no" >&6; }
5794 # Extract the first word of "cp", so it can be a program name with args.
5795 set dummy cp; ac_word=$2
5796 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5798 if test "${ac_cv_path_CP+set}" = set; then
5799 echo $ECHO_N "(cached) $ECHO_C" >&6
5803 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810 test -z "$as_dir" && as_dir=.
5811 for ac_exec_ext in '' $ac_executable_extensions; do
5812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5813 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5821 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5826 if test -n "$CP"; then
5827 { echo "$as_me:$LINENO: result: $CP" >&5
5828 echo "${ECHO_T}$CP" >&6; }
5830 { echo "$as_me:$LINENO: result: no" >&5
5831 echo "${ECHO_T}no" >&6; }
5835 # Extract the first word of "date", so it can be a program name with args.
5836 set dummy date; ac_word=$2
5837 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5839 if test "${ac_cv_path_DATE+set}" = set; then
5840 echo $ECHO_N "(cached) $ECHO_C" >&6
5844 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851 test -z "$as_dir" && as_dir=.
5852 for ac_exec_ext in '' $ac_executable_extensions; do
5853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5854 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5862 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5866 DATE=$ac_cv_path_DATE
5867 if test -n "$DATE"; then
5868 { echo "$as_me:$LINENO: result: $DATE" >&5
5869 echo "${ECHO_T}$DATE" >&6; }
5871 { echo "$as_me:$LINENO: result: no" >&5
5872 echo "${ECHO_T}no" >&6; }
5876 # Extract the first word of "find", so it can be a program name with args.
5877 set dummy find; ac_word=$2
5878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5880 if test "${ac_cv_path_FIND+set}" = set; then
5881 echo $ECHO_N "(cached) $ECHO_C" >&6
5885 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5892 test -z "$as_dir" && as_dir=.
5893 for ac_exec_ext in '' $ac_executable_extensions; do
5894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5895 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5903 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5907 FIND=$ac_cv_path_FIND
5908 if test -n "$FIND"; then
5909 { echo "$as_me:$LINENO: result: $FIND" >&5
5910 echo "${ECHO_T}$FIND" >&6; }
5912 { echo "$as_me:$LINENO: result: no" >&5
5913 echo "${ECHO_T}no" >&6; }
5917 # Extract the first word of "grep", so it can be a program name with args.
5918 set dummy grep; ac_word=$2
5919 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5921 if test "${ac_cv_path_GREP+set}" = set; then
5922 echo $ECHO_N "(cached) $ECHO_C" >&6
5926 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933 test -z "$as_dir" && as_dir=.
5934 for ac_exec_ext in '' $ac_executable_extensions; do
5935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5936 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5944 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5948 GREP=$ac_cv_path_GREP
5949 if test -n "$GREP"; then
5950 { echo "$as_me:$LINENO: result: $GREP" >&5
5951 echo "${ECHO_T}$GREP" >&6; }
5953 { echo "$as_me:$LINENO: result: no" >&5
5954 echo "${ECHO_T}no" >&6; }
5958 # Extract the first word of "mkdir", so it can be a program name with args.
5959 set dummy mkdir; ac_word=$2
5960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5962 if test "${ac_cv_path_MKDIR+set}" = set; then
5963 echo $ECHO_N "(cached) $ECHO_C" >&6
5967 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5974 test -z "$as_dir" && as_dir=.
5975 for ac_exec_ext in '' $ac_executable_extensions; do
5976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5977 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5985 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5989 MKDIR=$ac_cv_path_MKDIR
5990 if test -n "$MKDIR"; then
5991 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5992 echo "${ECHO_T}$MKDIR" >&6; }
5994 { echo "$as_me:$LINENO: result: no" >&5
5995 echo "${ECHO_T}no" >&6; }
5999 # Extract the first word of "mv", so it can be a program name with args.
6000 set dummy mv; ac_word=$2
6001 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6003 if test "${ac_cv_path_MV+set}" = set; then
6004 echo $ECHO_N "(cached) $ECHO_C" >&6
6008 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6015 test -z "$as_dir" && as_dir=.
6016 for ac_exec_ext in '' $ac_executable_extensions; do
6017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6018 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6026 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6031 if test -n "$MV"; then
6032 { echo "$as_me:$LINENO: result: $MV" >&5
6033 echo "${ECHO_T}$MV" >&6; }
6035 { echo "$as_me:$LINENO: result: no" >&5
6036 echo "${ECHO_T}no" >&6; }
6040 if test -n "$ac_tool_prefix"; then
6041 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6042 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6045 if test "${ac_cv_prog_RANLIB+set}" = set; then
6046 echo $ECHO_N "(cached) $ECHO_C" >&6
6048 if test -n "$RANLIB"; then
6049 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6055 test -z "$as_dir" && as_dir=.
6056 for ac_exec_ext in '' $ac_executable_extensions; do
6057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6058 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6068 RANLIB=$ac_cv_prog_RANLIB
6069 if test -n "$RANLIB"; then
6070 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6071 echo "${ECHO_T}$RANLIB" >&6; }
6073 { echo "$as_me:$LINENO: result: no" >&5
6074 echo "${ECHO_T}no" >&6; }
6079 if test -z "$ac_cv_prog_RANLIB"; then
6080 ac_ct_RANLIB=$RANLIB
6081 # Extract the first word of "ranlib", so it can be a program name with args.
6082 set dummy ranlib; ac_word=$2
6083 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6085 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6086 echo $ECHO_N "(cached) $ECHO_C" >&6
6088 if test -n "$ac_ct_RANLIB"; then
6089 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6095 test -z "$as_dir" && as_dir=.
6096 for ac_exec_ext in '' $ac_executable_extensions; do
6097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6098 ac_cv_prog_ac_ct_RANLIB="ranlib"
6099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6108 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6109 if test -n "$ac_ct_RANLIB"; then
6110 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6111 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6113 { echo "$as_me:$LINENO: result: no" >&5
6114 echo "${ECHO_T}no" >&6; }
6117 if test "x$ac_ct_RANLIB" = x; then
6120 case $cross_compiling:$ac_tool_warned in
6122 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6123 whose name does not start with the host triplet. If you think this
6124 configuration is useful to you, please write to autoconf@gnu.org." >&5
6125 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6126 whose name does not start with the host triplet. If you think this
6127 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6128 ac_tool_warned=yes ;;
6130 RANLIB=$ac_ct_RANLIB
6133 RANLIB="$ac_cv_prog_RANLIB"
6136 if test -n "$ac_tool_prefix"; then
6137 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6138 set dummy ${ac_tool_prefix}ar; ac_word=$2
6139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6141 if test "${ac_cv_prog_AR+set}" = set; then
6142 echo $ECHO_N "(cached) $ECHO_C" >&6
6144 if test -n "$AR"; then
6145 ac_cv_prog_AR="$AR" # Let the user override the test.
6147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6151 test -z "$as_dir" && as_dir=.
6152 for ac_exec_ext in '' $ac_executable_extensions; do
6153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6154 ac_cv_prog_AR="${ac_tool_prefix}ar"
6155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6165 if test -n "$AR"; then
6166 { echo "$as_me:$LINENO: result: $AR" >&5
6167 echo "${ECHO_T}$AR" >&6; }
6169 { echo "$as_me:$LINENO: result: no" >&5
6170 echo "${ECHO_T}no" >&6; }
6175 if test -z "$ac_cv_prog_AR"; then
6177 # Extract the first word of "ar", so it can be a program name with args.
6178 set dummy ar; ac_word=$2
6179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6181 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6182 echo $ECHO_N "(cached) $ECHO_C" >&6
6184 if test -n "$ac_ct_AR"; then
6185 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191 test -z "$as_dir" && as_dir=.
6192 for ac_exec_ext in '' $ac_executable_extensions; do
6193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6194 ac_cv_prog_ac_ct_AR="ar"
6195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6204 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6205 if test -n "$ac_ct_AR"; then
6206 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6207 echo "${ECHO_T}$ac_ct_AR" >&6; }
6209 { echo "$as_me:$LINENO: result: no" >&5
6210 echo "${ECHO_T}no" >&6; }
6213 if test "x$ac_ct_AR" = x; then
6216 case $cross_compiling:$ac_tool_warned in
6218 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6219 whose name does not start with the host triplet. If you think this
6220 configuration is useful to you, please write to autoconf@gnu.org." >&5
6221 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6222 whose name does not start with the host triplet. If you think this
6223 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6224 ac_tool_warned=yes ;;
6232 # Extract the first word of "rm", so it can be a program name with args.
6233 set dummy rm; ac_word=$2
6234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6236 if test "${ac_cv_path_RM+set}" = set; then
6237 echo $ECHO_N "(cached) $ECHO_C" >&6
6241 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6248 test -z "$as_dir" && as_dir=.
6249 for ac_exec_ext in '' $ac_executable_extensions; do
6250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6251 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6259 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6264 if test -n "$RM"; then
6265 { echo "$as_me:$LINENO: result: $RM" >&5
6266 echo "${ECHO_T}$RM" >&6; }
6268 { echo "$as_me:$LINENO: result: no" >&5
6269 echo "${ECHO_T}no" >&6; }
6273 # Extract the first word of "sed", so it can be a program name with args.
6274 set dummy sed; ac_word=$2
6275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6277 if test "${ac_cv_path_SED+set}" = set; then
6278 echo $ECHO_N "(cached) $ECHO_C" >&6
6282 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6289 test -z "$as_dir" && as_dir=.
6290 for ac_exec_ext in '' $ac_executable_extensions; do
6291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6292 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6300 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6305 if test -n "$SED"; then
6306 { echo "$as_me:$LINENO: result: $SED" >&5
6307 echo "${ECHO_T}$SED" >&6; }
6309 { echo "$as_me:$LINENO: result: no" >&5
6310 echo "${ECHO_T}no" >&6; }
6314 # Extract the first word of "tar", so it can be a program name with args.
6315 set dummy tar; ac_word=$2
6316 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6318 if test "${ac_cv_path_TAR+set}" = set; then
6319 echo $ECHO_N "(cached) $ECHO_C" >&6
6323 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6330 test -z "$as_dir" && as_dir=.
6331 for ac_exec_ext in '' $ac_executable_extensions; do
6332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6333 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6341 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6346 if test -n "$TAR"; then
6347 { echo "$as_me:$LINENO: result: $TAR" >&5
6348 echo "${ECHO_T}$TAR" >&6; }
6350 { echo "$as_me:$LINENO: result: no" >&5
6351 echo "${ECHO_T}no" >&6; }
6355 # Extract the first word of "pwd", so it can be a program name with args.
6356 set dummy pwd; ac_word=$2
6357 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6359 if test "${ac_cv_path_BINPWD+set}" = set; then
6360 echo $ECHO_N "(cached) $ECHO_C" >&6
6364 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6371 test -z "$as_dir" && as_dir=.
6372 for ac_exec_ext in '' $ac_executable_extensions; do
6373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6374 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6382 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6386 BINPWD=$ac_cv_path_BINPWD
6387 if test -n "$BINPWD"; then
6388 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6389 echo "${ECHO_T}$BINPWD" >&6; }
6391 { echo "$as_me:$LINENO: result: no" >&5
6392 echo "${ECHO_T}no" >&6; }
6397 # Extract the first word of "Graphviz", so it can be a program name with args.
6398 set dummy Graphviz; ac_word=$2
6399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6401 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6402 echo $ECHO_N "(cached) $ECHO_C" >&6
6406 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6413 test -z "$as_dir" && as_dir=.
6414 for ac_exec_ext in '' $ac_executable_extensions; do
6415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6416 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6424 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6428 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6429 if test -n "$GRAPHVIZ"; then
6430 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6431 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6433 { echo "$as_me:$LINENO: result: no" >&5
6434 echo "${ECHO_T}no" >&6; }
6438 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6440 cat >>confdefs.h <<\_ACEOF
6441 #define HAVE_GRAPHVIZ 1
6444 if test "$llvm_cv_os_type" = "MingW" ; then
6445 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6448 cat >>confdefs.h <<_ACEOF
6449 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6453 # Extract the first word of "dot", so it can be a program name with args.
6454 set dummy dot; ac_word=$2
6455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6457 if test "${ac_cv_path_DOT+set}" = set; then
6458 echo $ECHO_N "(cached) $ECHO_C" >&6
6462 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6469 test -z "$as_dir" && as_dir=.
6470 for ac_exec_ext in '' $ac_executable_extensions; do
6471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6472 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6480 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6485 if test -n "$DOT"; then
6486 { echo "$as_me:$LINENO: result: $DOT" >&5
6487 echo "${ECHO_T}$DOT" >&6; }
6489 { echo "$as_me:$LINENO: result: no" >&5
6490 echo "${ECHO_T}no" >&6; }
6494 if test "$DOT" != "echo dot" ; then
6496 cat >>confdefs.h <<\_ACEOF
6500 if test "$llvm_cv_os_type" = "MingW" ; then
6501 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6504 cat >>confdefs.h <<_ACEOF
6505 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6509 # Extract the first word of "fdp", so it can be a program name with args.
6510 set dummy fdp; ac_word=$2
6511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6513 if test "${ac_cv_path_FDP+set}" = set; then
6514 echo $ECHO_N "(cached) $ECHO_C" >&6
6518 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525 test -z "$as_dir" && as_dir=.
6526 for ac_exec_ext in '' $ac_executable_extensions; do
6527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6528 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6536 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6541 if test -n "$FDP"; then
6542 { echo "$as_me:$LINENO: result: $FDP" >&5
6543 echo "${ECHO_T}$FDP" >&6; }
6545 { echo "$as_me:$LINENO: result: no" >&5
6546 echo "${ECHO_T}no" >&6; }
6550 if test "$FDP" != "echo fdp" ; then
6552 cat >>confdefs.h <<\_ACEOF
6556 if test "$llvm_cv_os_type" = "MingW" ; then
6557 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6560 cat >>confdefs.h <<_ACEOF
6561 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6565 # Extract the first word of "neato", so it can be a program name with args.
6566 set dummy neato; ac_word=$2
6567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6569 if test "${ac_cv_path_NEATO+set}" = set; then
6570 echo $ECHO_N "(cached) $ECHO_C" >&6
6574 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581 test -z "$as_dir" && as_dir=.
6582 for ac_exec_ext in '' $ac_executable_extensions; do
6583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6584 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6592 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6596 NEATO=$ac_cv_path_NEATO
6597 if test -n "$NEATO"; then
6598 { echo "$as_me:$LINENO: result: $NEATO" >&5
6599 echo "${ECHO_T}$NEATO" >&6; }
6601 { echo "$as_me:$LINENO: result: no" >&5
6602 echo "${ECHO_T}no" >&6; }
6606 if test "$NEATO" != "echo neato" ; then
6608 cat >>confdefs.h <<\_ACEOF
6609 #define HAVE_NEATO 1
6612 if test "$llvm_cv_os_type" = "MingW" ; then
6613 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6616 cat >>confdefs.h <<_ACEOF
6617 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6621 # Extract the first word of "twopi", so it can be a program name with args.
6622 set dummy twopi; ac_word=$2
6623 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6625 if test "${ac_cv_path_TWOPI+set}" = set; then
6626 echo $ECHO_N "(cached) $ECHO_C" >&6
6630 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6637 test -z "$as_dir" && as_dir=.
6638 for ac_exec_ext in '' $ac_executable_extensions; do
6639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6640 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6648 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6652 TWOPI=$ac_cv_path_TWOPI
6653 if test -n "$TWOPI"; then
6654 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6655 echo "${ECHO_T}$TWOPI" >&6; }
6657 { echo "$as_me:$LINENO: result: no" >&5
6658 echo "${ECHO_T}no" >&6; }
6662 if test "$TWOPI" != "echo twopi" ; then
6664 cat >>confdefs.h <<\_ACEOF
6665 #define HAVE_TWOPI 1
6668 if test "$llvm_cv_os_type" = "MingW" ; then
6669 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6672 cat >>confdefs.h <<_ACEOF
6673 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6677 # Extract the first word of "circo", so it can be a program name with args.
6678 set dummy circo; ac_word=$2
6679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6681 if test "${ac_cv_path_CIRCO+set}" = set; then
6682 echo $ECHO_N "(cached) $ECHO_C" >&6
6686 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6693 test -z "$as_dir" && as_dir=.
6694 for ac_exec_ext in '' $ac_executable_extensions; do
6695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6696 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6704 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6708 CIRCO=$ac_cv_path_CIRCO
6709 if test -n "$CIRCO"; then
6710 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6711 echo "${ECHO_T}$CIRCO" >&6; }
6713 { echo "$as_me:$LINENO: result: no" >&5
6714 echo "${ECHO_T}no" >&6; }
6718 if test "$CIRCO" != "echo circo" ; then
6720 cat >>confdefs.h <<\_ACEOF
6721 #define HAVE_CIRCO 1
6724 if test "$llvm_cv_os_type" = "MingW" ; then
6725 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6728 cat >>confdefs.h <<_ACEOF
6729 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6733 for ac_prog in gv gsview32
6735 # Extract the first word of "$ac_prog", so it can be a program name with args.
6736 set dummy $ac_prog; ac_word=$2
6737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6739 if test "${ac_cv_path_GV+set}" = set; then
6740 echo $ECHO_N "(cached) $ECHO_C" >&6
6744 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6751 test -z "$as_dir" && as_dir=.
6752 for ac_exec_ext in '' $ac_executable_extensions; do
6753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6754 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6766 if test -n "$GV"; then
6767 { echo "$as_me:$LINENO: result: $GV" >&5
6768 echo "${ECHO_T}$GV" >&6; }
6770 { echo "$as_me:$LINENO: result: no" >&5
6771 echo "${ECHO_T}no" >&6; }
6775 test -n "$GV" && break
6777 test -n "$GV" || GV="echo gv"
6779 if test "$GV" != "echo gv" ; then
6781 cat >>confdefs.h <<\_ACEOF
6785 if test "$llvm_cv_os_type" = "MingW" ; then
6786 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6789 cat >>confdefs.h <<_ACEOF
6790 #define LLVM_PATH_GV "$GV${EXEEXT}"
6794 # Extract the first word of "dotty", so it can be a program name with args.
6795 set dummy dotty; ac_word=$2
6796 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6798 if test "${ac_cv_path_DOTTY+set}" = set; then
6799 echo $ECHO_N "(cached) $ECHO_C" >&6
6803 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6810 test -z "$as_dir" && as_dir=.
6811 for ac_exec_ext in '' $ac_executable_extensions; do
6812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6813 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6821 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6825 DOTTY=$ac_cv_path_DOTTY
6826 if test -n "$DOTTY"; then
6827 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6828 echo "${ECHO_T}$DOTTY" >&6; }
6830 { echo "$as_me:$LINENO: result: no" >&5
6831 echo "${ECHO_T}no" >&6; }
6835 if test "$DOTTY" != "echo dotty" ; then
6837 cat >>confdefs.h <<\_ACEOF
6838 #define HAVE_DOTTY 1
6841 if test "$llvm_cv_os_type" = "MingW" ; then
6842 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6845 cat >>confdefs.h <<_ACEOF
6846 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6850 # Extract the first word of "xdot.py", so it can be a program name with args.
6851 set dummy xdot.py; ac_word=$2
6852 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6854 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6855 echo $ECHO_N "(cached) $ECHO_C" >&6
6859 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866 test -z "$as_dir" && as_dir=.
6867 for ac_exec_ext in '' $ac_executable_extensions; do
6868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6869 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6877 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6881 XDOT_PY=$ac_cv_path_XDOT_PY
6882 if test -n "$XDOT_PY"; then
6883 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6884 echo "${ECHO_T}$XDOT_PY" >&6; }
6886 { echo "$as_me:$LINENO: result: no" >&5
6887 echo "${ECHO_T}no" >&6; }
6891 if test "$XDOT_PY" != "echo xdot.py" ; then
6893 cat >>confdefs.h <<\_ACEOF
6894 #define HAVE_XDOT_PY 1
6897 if test "$llvm_cv_os_type" = "MingW" ; then
6898 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6901 cat >>confdefs.h <<_ACEOF
6902 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6908 # Extract the first word of "perl", so it can be a program name with args.
6909 set dummy perl; ac_word=$2
6910 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6912 if test "${ac_cv_path_PERL+set}" = set; then
6913 echo $ECHO_N "(cached) $ECHO_C" >&6
6917 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924 test -z "$as_dir" && as_dir=.
6925 for ac_exec_ext in '' $ac_executable_extensions; do
6926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6927 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6935 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6939 PERL=$ac_cv_path_PERL
6940 if test -n "$PERL"; then
6941 { echo "$as_me:$LINENO: result: $PERL" >&5
6942 echo "${ECHO_T}$PERL" >&6; }
6944 { echo "$as_me:$LINENO: result: no" >&5
6945 echo "${ECHO_T}no" >&6; }
6949 if test "$PERL" != "none"; then
6950 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6951 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
6952 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
6953 { echo "$as_me:$LINENO: result: yes" >&5
6954 echo "${ECHO_T}yes" >&6; }
6957 { echo "$as_me:$LINENO: result: not found" >&5
6958 echo "${ECHO_T}not found" >&6; }
6963 if test x"$PERL" = xnone; then
6966 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6967 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6968 { (exit 1); exit 1; }; }
6974 # Find a good install program. We prefer a C program (faster),
6975 # so one script is as good as another. But avoid the broken or
6976 # incompatible versions:
6977 # SysV /etc/install, /usr/sbin/install
6978 # SunOS /usr/etc/install
6979 # IRIX /sbin/install
6981 # AmigaOS /C/install, which installs bootblocks on floppy discs
6982 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6983 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6984 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6985 # OS/2's system install, which has a completely different semantic
6986 # ./install, which can be erroneously created by make from ./install.sh.
6987 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6988 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6989 if test -z "$INSTALL"; then
6990 if test "${ac_cv_path_install+set}" = set; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
6993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997 test -z "$as_dir" && as_dir=.
6998 # Account for people who put trailing slashes in PATH elements.
7000 ./ | .// | /cC/* | \
7001 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7002 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7005 # OSF1 and SCO ODT 3.0 have their own names for install.
7006 # Don't use installbsd from OSF since it installs stuff as root
7008 for ac_prog in ginstall scoinst install; do
7009 for ac_exec_ext in '' $ac_executable_extensions; do
7010 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7011 if test $ac_prog = install &&
7012 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7013 # AIX install. It has an incompatible calling convention.
7015 elif test $ac_prog = install &&
7016 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7017 # program-specific install script used by HP pwplus--don't use.
7020 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7033 if test "${ac_cv_path_install+set}" = set; then
7034 INSTALL=$ac_cv_path_install
7036 # As a last resort, use the slow shell script. Don't cache a
7037 # value for INSTALL within a source directory, because that will
7038 # break other packages using the cache if that directory is
7039 # removed, or if the value is a relative name.
7040 INSTALL=$ac_install_sh
7043 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7044 echo "${ECHO_T}$INSTALL" >&6; }
7046 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7047 # It thinks the first close brace ends the variable substitution.
7048 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7050 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7052 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7055 [\\/$]* | ?:[\\/]* ) ;;
7056 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7059 # Extract the first word of "bzip2", so it can be a program name with args.
7060 set dummy bzip2; ac_word=$2
7061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7063 if test "${ac_cv_path_BZIP2+set}" = set; then
7064 echo $ECHO_N "(cached) $ECHO_C" >&6
7068 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075 test -z "$as_dir" && as_dir=.
7076 for ac_exec_ext in '' $ac_executable_extensions; do
7077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7078 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7089 BZIP2=$ac_cv_path_BZIP2
7090 if test -n "$BZIP2"; then
7091 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7092 echo "${ECHO_T}$BZIP2" >&6; }
7094 { echo "$as_me:$LINENO: result: no" >&5
7095 echo "${ECHO_T}no" >&6; }
7099 # Extract the first word of "cat", so it can be a program name with args.
7100 set dummy cat; ac_word=$2
7101 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7103 if test "${ac_cv_path_CAT+set}" = set; then
7104 echo $ECHO_N "(cached) $ECHO_C" >&6
7108 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115 test -z "$as_dir" && as_dir=.
7116 for ac_exec_ext in '' $ac_executable_extensions; do
7117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7118 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7130 if test -n "$CAT"; then
7131 { echo "$as_me:$LINENO: result: $CAT" >&5
7132 echo "${ECHO_T}$CAT" >&6; }
7134 { echo "$as_me:$LINENO: result: no" >&5
7135 echo "${ECHO_T}no" >&6; }
7139 # Extract the first word of "doxygen", so it can be a program name with args.
7140 set dummy doxygen; ac_word=$2
7141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7143 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7144 echo $ECHO_N "(cached) $ECHO_C" >&6
7148 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7155 test -z "$as_dir" && as_dir=.
7156 for ac_exec_ext in '' $ac_executable_extensions; do
7157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7158 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7169 DOXYGEN=$ac_cv_path_DOXYGEN
7170 if test -n "$DOXYGEN"; then
7171 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7172 echo "${ECHO_T}$DOXYGEN" >&6; }
7174 { echo "$as_me:$LINENO: result: no" >&5
7175 echo "${ECHO_T}no" >&6; }
7179 # Extract the first word of "groff", so it can be a program name with args.
7180 set dummy groff; ac_word=$2
7181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7183 if test "${ac_cv_path_GROFF+set}" = set; then
7184 echo $ECHO_N "(cached) $ECHO_C" >&6
7188 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195 test -z "$as_dir" && as_dir=.
7196 for ac_exec_ext in '' $ac_executable_extensions; do
7197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7198 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7209 GROFF=$ac_cv_path_GROFF
7210 if test -n "$GROFF"; then
7211 { echo "$as_me:$LINENO: result: $GROFF" >&5
7212 echo "${ECHO_T}$GROFF" >&6; }
7214 { echo "$as_me:$LINENO: result: no" >&5
7215 echo "${ECHO_T}no" >&6; }
7219 # Extract the first word of "gzip", so it can be a program name with args.
7220 set dummy gzip; ac_word=$2
7221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7223 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7224 echo $ECHO_N "(cached) $ECHO_C" >&6
7228 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235 test -z "$as_dir" && as_dir=.
7236 for ac_exec_ext in '' $ac_executable_extensions; do
7237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7238 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7249 GZIPBIN=$ac_cv_path_GZIPBIN
7250 if test -n "$GZIPBIN"; then
7251 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7252 echo "${ECHO_T}$GZIPBIN" >&6; }
7254 { echo "$as_me:$LINENO: result: no" >&5
7255 echo "${ECHO_T}no" >&6; }
7259 # Extract the first word of "pod2html", so it can be a program name with args.
7260 set dummy pod2html; ac_word=$2
7261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7263 if test "${ac_cv_path_POD2HTML+set}" = set; then
7264 echo $ECHO_N "(cached) $ECHO_C" >&6
7268 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7275 test -z "$as_dir" && as_dir=.
7276 for ac_exec_ext in '' $ac_executable_extensions; do
7277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7278 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7289 POD2HTML=$ac_cv_path_POD2HTML
7290 if test -n "$POD2HTML"; then
7291 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7292 echo "${ECHO_T}$POD2HTML" >&6; }
7294 { echo "$as_me:$LINENO: result: no" >&5
7295 echo "${ECHO_T}no" >&6; }
7299 # Extract the first word of "pod2man", so it can be a program name with args.
7300 set dummy pod2man; ac_word=$2
7301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7303 if test "${ac_cv_path_POD2MAN+set}" = set; then
7304 echo $ECHO_N "(cached) $ECHO_C" >&6
7308 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315 test -z "$as_dir" && as_dir=.
7316 for ac_exec_ext in '' $ac_executable_extensions; do
7317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7318 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7329 POD2MAN=$ac_cv_path_POD2MAN
7330 if test -n "$POD2MAN"; then
7331 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7332 echo "${ECHO_T}$POD2MAN" >&6; }
7334 { echo "$as_me:$LINENO: result: no" >&5
7335 echo "${ECHO_T}no" >&6; }
7339 # Extract the first word of "pdfroff", so it can be a program name with args.
7340 set dummy pdfroff; ac_word=$2
7341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7343 if test "${ac_cv_path_PDFROFF+set}" = set; then
7344 echo $ECHO_N "(cached) $ECHO_C" >&6
7348 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355 test -z "$as_dir" && as_dir=.
7356 for ac_exec_ext in '' $ac_executable_extensions; do
7357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7358 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7369 PDFROFF=$ac_cv_path_PDFROFF
7370 if test -n "$PDFROFF"; then
7371 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7372 echo "${ECHO_T}$PDFROFF" >&6; }
7374 { echo "$as_me:$LINENO: result: no" >&5
7375 echo "${ECHO_T}no" >&6; }
7379 # Extract the first word of "runtest", so it can be a program name with args.
7380 set dummy runtest; ac_word=$2
7381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7383 if test "${ac_cv_path_RUNTEST+set}" = set; then
7384 echo $ECHO_N "(cached) $ECHO_C" >&6
7388 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395 test -z "$as_dir" && as_dir=.
7396 for ac_exec_ext in '' $ac_executable_extensions; do
7397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7398 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7409 RUNTEST=$ac_cv_path_RUNTEST
7410 if test -n "$RUNTEST"; then
7411 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7412 echo "${ECHO_T}$RUNTEST" >&6; }
7414 { echo "$as_me:$LINENO: result: no" >&5
7415 echo "${ECHO_T}no" >&6; }
7421 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7422 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7424 # Check whether --with-tclinclude was given.
7425 if test "${with_tclinclude+set}" = set; then
7426 withval=$with_tclinclude; with_tclinclude=${withval}
7431 if test "${ac_cv_path_tclsh+set}" = set; then
7432 echo $ECHO_N "(cached) $ECHO_C" >&6
7435 if test x"${with_tclinclude}" != x ; then
7436 if test -f ${with_tclinclude}/tclsh ; then
7437 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7438 elif test -f ${with_tclinclude}/src/tclsh ; then
7439 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7441 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7442 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7443 { (exit 1); exit 1; }; }
7449 if test x"${ac_cv_path_tclsh}" = x ; then
7450 { echo "$as_me:$LINENO: result: none" >&5
7451 echo "${ECHO_T}none" >&6; }
7452 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
7454 # Extract the first word of "$ac_prog", so it can be a program name with args.
7455 set dummy $ac_prog; ac_word=$2
7456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7458 if test "${ac_cv_path_TCLSH+set}" = set; then
7459 echo $ECHO_N "(cached) $ECHO_C" >&6
7463 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470 test -z "$as_dir" && as_dir=.
7471 for ac_exec_ext in '' $ac_executable_extensions; do
7472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7473 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7484 TCLSH=$ac_cv_path_TCLSH
7485 if test -n "$TCLSH"; then
7486 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7487 echo "${ECHO_T}$TCLSH" >&6; }
7489 { echo "$as_me:$LINENO: result: no" >&5
7490 echo "${ECHO_T}no" >&6; }
7494 test -n "$TCLSH" && break
7497 if test x"${TCLSH}" = x ; then
7498 ac_cv_path_tclsh='';
7500 ac_cv_path_tclsh="${TCLSH}";
7503 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7504 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7505 TCLSH="${ac_cv_path_tclsh}"
7509 # Extract the first word of "zip", so it can be a program name with args.
7510 set dummy zip; ac_word=$2
7511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7513 if test "${ac_cv_path_ZIP+set}" = set; then
7514 echo $ECHO_N "(cached) $ECHO_C" >&6
7518 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525 test -z "$as_dir" && as_dir=.
7526 for ac_exec_ext in '' $ac_executable_extensions; do
7527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7528 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7540 if test -n "$ZIP"; then
7541 { echo "$as_me:$LINENO: result: $ZIP" >&5
7542 echo "${ECHO_T}$ZIP" >&6; }
7544 { echo "$as_me:$LINENO: result: no" >&5
7545 echo "${ECHO_T}no" >&6; }
7549 for ac_prog in ocamlc
7551 # Extract the first word of "$ac_prog", so it can be a program name with args.
7552 set dummy $ac_prog; ac_word=$2
7553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7555 if test "${ac_cv_path_OCAMLC+set}" = set; then
7556 echo $ECHO_N "(cached) $ECHO_C" >&6
7560 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7567 test -z "$as_dir" && as_dir=.
7568 for ac_exec_ext in '' $ac_executable_extensions; do
7569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7570 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7581 OCAMLC=$ac_cv_path_OCAMLC
7582 if test -n "$OCAMLC"; then
7583 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7584 echo "${ECHO_T}$OCAMLC" >&6; }
7586 { echo "$as_me:$LINENO: result: no" >&5
7587 echo "${ECHO_T}no" >&6; }
7591 test -n "$OCAMLC" && break
7594 for ac_prog in ocamlopt
7596 # Extract the first word of "$ac_prog", so it can be a program name with args.
7597 set dummy $ac_prog; ac_word=$2
7598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7600 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7601 echo $ECHO_N "(cached) $ECHO_C" >&6
7605 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7612 test -z "$as_dir" && as_dir=.
7613 for ac_exec_ext in '' $ac_executable_extensions; do
7614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7615 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7626 OCAMLOPT=$ac_cv_path_OCAMLOPT
7627 if test -n "$OCAMLOPT"; then
7628 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7629 echo "${ECHO_T}$OCAMLOPT" >&6; }
7631 { echo "$as_me:$LINENO: result: no" >&5
7632 echo "${ECHO_T}no" >&6; }
7636 test -n "$OCAMLOPT" && break
7639 for ac_prog in ocamldep
7641 # Extract the first word of "$ac_prog", so it can be a program name with args.
7642 set dummy $ac_prog; ac_word=$2
7643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7645 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7646 echo $ECHO_N "(cached) $ECHO_C" >&6
7650 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7657 test -z "$as_dir" && as_dir=.
7658 for ac_exec_ext in '' $ac_executable_extensions; do
7659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7660 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7671 OCAMLDEP=$ac_cv_path_OCAMLDEP
7672 if test -n "$OCAMLDEP"; then
7673 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7674 echo "${ECHO_T}$OCAMLDEP" >&6; }
7676 { echo "$as_me:$LINENO: result: no" >&5
7677 echo "${ECHO_T}no" >&6; }
7681 test -n "$OCAMLDEP" && break
7684 for ac_prog in ocamldoc
7686 # Extract the first word of "$ac_prog", so it can be a program name with args.
7687 set dummy $ac_prog; ac_word=$2
7688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7690 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7691 echo $ECHO_N "(cached) $ECHO_C" >&6
7695 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7702 test -z "$as_dir" && as_dir=.
7703 for ac_exec_ext in '' $ac_executable_extensions; do
7704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7705 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7716 OCAMLDOC=$ac_cv_path_OCAMLDOC
7717 if test -n "$OCAMLDOC"; then
7718 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7719 echo "${ECHO_T}$OCAMLDOC" >&6; }
7721 { echo "$as_me:$LINENO: result: no" >&5
7722 echo "${ECHO_T}no" >&6; }
7726 test -n "$OCAMLDOC" && break
7729 for ac_prog in gas as
7731 # Extract the first word of "$ac_prog", so it can be a program name with args.
7732 set dummy $ac_prog; ac_word=$2
7733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7735 if test "${ac_cv_path_GAS+set}" = set; then
7736 echo $ECHO_N "(cached) $ECHO_C" >&6
7740 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7747 test -z "$as_dir" && as_dir=.
7748 for ac_exec_ext in '' $ac_executable_extensions; do
7749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7750 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7762 if test -n "$GAS"; then
7763 { echo "$as_me:$LINENO: result: $GAS" >&5
7764 echo "${ECHO_T}$GAS" >&6; }
7766 { echo "$as_me:$LINENO: result: no" >&5
7767 echo "${ECHO_T}no" >&6; }
7771 test -n "$GAS" && break
7775 { echo "$as_me:$LINENO: checking for linker version" >&5
7776 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7777 if test "${llvm_cv_link_version+set}" = set; then
7778 echo $ECHO_N "(cached) $ECHO_C" >&6
7781 version_string="$(ld -v 2>&1 | head -1)"
7784 if (echo "$version_string" | grep -q "ld64"); then
7785 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7787 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7791 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7792 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7794 cat >>confdefs.h <<_ACEOF
7795 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7800 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7801 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7802 if test "${llvm_cv_link_use_r+set}" = set; then
7803 echo $ECHO_N "(cached) $ECHO_C" >&6
7806 ac_cpp='$CPP $CPPFLAGS'
7807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7812 CFLAGS="$CFLAGS -Wl,-R."
7813 cat >conftest.$ac_ext <<_ACEOF
7816 cat confdefs.h >>conftest.$ac_ext
7817 cat >>conftest.$ac_ext <<_ACEOF
7818 /* end confdefs.h. */
7828 rm -f conftest.$ac_objext conftest$ac_exeext
7829 if { (ac_try="$ac_link"
7831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7832 *) ac_try_echo=$ac_try;;
7834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7835 (eval "$ac_link") 2>conftest.er1
7837 grep -v '^ *+' conftest.er1 >conftest.err
7839 cat conftest.err >&5
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); } &&
7842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7843 { (case "(($ac_try" in
7844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7845 *) ac_try_echo=$ac_try;;
7847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7848 (eval "$ac_try") 2>&5
7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); }; } &&
7852 { ac_try='test -s conftest$ac_exeext'
7853 { (case "(($ac_try" in
7854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7855 *) ac_try_echo=$ac_try;;
7857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7858 (eval "$ac_try") 2>&5
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); }; }; then
7862 llvm_cv_link_use_r=yes
7864 echo "$as_me: failed program was:" >&5
7865 sed 's/^/| /' conftest.$ac_ext >&5
7867 llvm_cv_link_use_r=no
7870 rm -f core conftest.err conftest.$ac_objext \
7871 conftest$ac_exeext conftest.$ac_ext
7874 ac_cpp='$CPP $CPPFLAGS'
7875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7881 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7882 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7883 if test "$llvm_cv_link_use_r" = yes ; then
7885 cat >>confdefs.h <<\_ACEOF
7886 #define HAVE_LINK_R 1
7892 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7893 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7894 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7895 echo $ECHO_N "(cached) $ECHO_C" >&6
7898 ac_cpp='$CPP $CPPFLAGS'
7899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7904 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7905 cat >conftest.$ac_ext <<_ACEOF
7908 cat confdefs.h >>conftest.$ac_ext
7909 cat >>conftest.$ac_ext <<_ACEOF
7910 /* end confdefs.h. */
7920 rm -f conftest.$ac_objext conftest$ac_exeext
7921 if { (ac_try="$ac_link"
7923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7924 *) ac_try_echo=$ac_try;;
7926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7927 (eval "$ac_link") 2>conftest.er1
7929 grep -v '^ *+' conftest.er1 >conftest.err
7931 cat conftest.err >&5
7932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933 (exit $ac_status); } &&
7934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7935 { (case "(($ac_try" in
7936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7937 *) ac_try_echo=$ac_try;;
7939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7940 (eval "$ac_try") 2>&5
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); }; } &&
7944 { ac_try='test -s conftest$ac_exeext'
7945 { (case "(($ac_try" in
7946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7947 *) ac_try_echo=$ac_try;;
7949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7950 (eval "$ac_try") 2>&5
7952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); }; }; then
7954 llvm_cv_link_use_export_dynamic=yes
7956 echo "$as_me: failed program was:" >&5
7957 sed 's/^/| /' conftest.$ac_ext >&5
7959 llvm_cv_link_use_export_dynamic=no
7962 rm -f core conftest.err conftest.$ac_objext \
7963 conftest$ac_exeext conftest.$ac_ext
7966 ac_cpp='$CPP $CPPFLAGS'
7967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7973 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7974 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7975 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7977 cat >>confdefs.h <<\_ACEOF
7978 #define HAVE_LINK_EXPORT_DYNAMIC 1
7984 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7985 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7986 if test "${llvm_cv_link_use_version_script+set}" = set; then
7987 echo $ECHO_N "(cached) $ECHO_C" >&6
7990 ac_cpp='$CPP $CPPFLAGS'
7991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7997 # The following code is from the autoconf manual,
7998 # "11.13: Limitations of Usual Tools".
7999 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8000 # Use mktemp if possible; otherwise fall back on mkdir,
8001 # with $RANDOM to make collisions less likely.
8005 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8007 test -n "$tmp" && test -d "$tmp"
8009 tmp=$TMPDIR/foo$$-$RANDOM
8010 (umask 077 && mkdir "$tmp")
8013 echo "{" > "$tmp/export.map"
8014 echo " global: main;" >> "$tmp/export.map"
8015 echo " local: *;" >> "$tmp/export.map"
8016 echo "};" >> "$tmp/export.map"
8018 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8019 cat >conftest.$ac_ext <<_ACEOF
8022 cat confdefs.h >>conftest.$ac_ext
8023 cat >>conftest.$ac_ext <<_ACEOF
8024 /* end confdefs.h. */
8034 rm -f conftest.$ac_objext conftest$ac_exeext
8035 if { (ac_try="$ac_link"
8037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8038 *) ac_try_echo=$ac_try;;
8040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8041 (eval "$ac_link") 2>conftest.er1
8043 grep -v '^ *+' conftest.er1 >conftest.err
8045 cat conftest.err >&5
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); } &&
8048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8049 { (case "(($ac_try" in
8050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8051 *) ac_try_echo=$ac_try;;
8053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8054 (eval "$ac_try") 2>&5
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); }; } &&
8058 { ac_try='test -s conftest$ac_exeext'
8059 { (case "(($ac_try" in
8060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8061 *) ac_try_echo=$ac_try;;
8063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8064 (eval "$ac_try") 2>&5
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); }; }; then
8068 llvm_cv_link_use_version_script=yes
8070 echo "$as_me: failed program was:" >&5
8071 sed 's/^/| /' conftest.$ac_ext >&5
8073 llvm_cv_link_use_version_script=no
8076 rm -f core conftest.err conftest.$ac_objext \
8077 conftest$ac_exeext conftest.$ac_ext
8078 rm "$tmp/export.map"
8082 ac_cpp='$CPP $CPPFLAGS'
8083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8089 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8090 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8091 if test "$llvm_cv_link_use_version_script" = yes ; then
8092 HAVE_LINK_VERSION_SCRIPT=1
8099 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8100 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8101 if test "${ac_cv_c_const+set}" = set; then
8102 echo $ECHO_N "(cached) $ECHO_C" >&6
8104 cat >conftest.$ac_ext <<_ACEOF
8107 cat confdefs.h >>conftest.$ac_ext
8108 cat >>conftest.$ac_ext <<_ACEOF
8109 /* end confdefs.h. */
8114 /* FIXME: Include the comments suggested by Paul. */
8116 /* Ultrix mips cc rejects this. */
8117 typedef int charset[2];
8119 /* SunOS 4.1.1 cc rejects this. */
8120 char const *const *ccp;
8122 /* NEC SVR4.0.2 mips cc rejects this. */
8123 struct point {int x, y;};
8124 static struct point const zero = {0,0};
8125 /* AIX XL C 1.02.0.0 rejects this.
8126 It does not let you subtract one const X* pointer from another in
8127 an arm of an if-expression whose if-part is not a constant
8129 const char *g = "string";
8130 ccp = &g + (g ? g-g : 0);
8131 /* HPUX 7.0 cc rejects these. */
8134 ccp = (char const *const *) p;
8135 { /* SCO 3.2v4 cc rejects this. */
8137 char const *s = 0 ? (char *) 0 : (char const *) 0;
8142 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8144 const int *foo = &x[0];
8147 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8148 typedef const int *iptr;
8152 { /* AIX XL C 1.02.0.0 rejects this saying
8153 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8154 struct s { int j; const int *ap[3]; };
8155 struct s *b; b->j = 5;
8157 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8161 return !x[0] && !zero.x;
8168 rm -f conftest.$ac_objext
8169 if { (ac_try="$ac_compile"
8171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8172 *) ac_try_echo=$ac_try;;
8174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8175 (eval "$ac_compile") 2>conftest.er1
8177 grep -v '^ *+' conftest.er1 >conftest.err
8179 cat conftest.err >&5
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); } &&
8182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8183 { (case "(($ac_try" in
8184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8185 *) ac_try_echo=$ac_try;;
8187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8188 (eval "$ac_try") 2>&5
8190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191 (exit $ac_status); }; } &&
8192 { ac_try='test -s conftest.$ac_objext'
8193 { (case "(($ac_try" in
8194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8195 *) ac_try_echo=$ac_try;;
8197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8198 (eval "$ac_try") 2>&5
8200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201 (exit $ac_status); }; }; then
8204 echo "$as_me: failed program was:" >&5
8205 sed 's/^/| /' conftest.$ac_ext >&5
8210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8212 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8213 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8214 if test $ac_cv_c_const = no; then
8216 cat >>confdefs.h <<\_ACEOF
8228 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8229 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8230 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8231 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8233 echo $ECHO_N "(cached) $ECHO_C" >&6
8235 cat >conftest.$ac_ext <<_ACEOF
8238 cat confdefs.h >>conftest.$ac_ext
8239 cat >>conftest.$ac_ext <<_ACEOF
8240 /* end confdefs.h. */
8241 #include <sys/types.h>
8253 rm -f conftest.$ac_objext
8254 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
8262 grep -v '^ *+' conftest.er1 >conftest.err
8264 cat conftest.err >&5
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); } &&
8267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8268 { (case "(($ac_try" in
8269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8270 *) ac_try_echo=$ac_try;;
8272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8273 (eval "$ac_try") 2>&5
8275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276 (exit $ac_status); }; } &&
8277 { ac_try='test -s conftest.$ac_objext'
8278 { (case "(($ac_try" in
8279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8280 *) ac_try_echo=$ac_try;;
8282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8283 (eval "$ac_try") 2>&5
8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286 (exit $ac_status); }; }; then
8287 eval "$as_ac_Header=yes"
8289 echo "$as_me: failed program was:" >&5
8290 sed 's/^/| /' conftest.$ac_ext >&5
8292 eval "$as_ac_Header=no"
8295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8297 ac_res=`eval echo '${'$as_ac_Header'}'`
8298 { echo "$as_me:$LINENO: result: $ac_res" >&5
8299 echo "${ECHO_T}$ac_res" >&6; }
8300 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8301 cat >>confdefs.h <<_ACEOF
8302 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8305 ac_header_dirent=$ac_hdr; break
8309 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8310 if test $ac_header_dirent = dirent.h; then
8311 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8312 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8313 if test "${ac_cv_search_opendir+set}" = set; then
8314 echo $ECHO_N "(cached) $ECHO_C" >&6
8316 ac_func_search_save_LIBS=$LIBS
8317 cat >conftest.$ac_ext <<_ACEOF
8320 cat confdefs.h >>conftest.$ac_ext
8321 cat >>conftest.$ac_ext <<_ACEOF
8322 /* end confdefs.h. */
8324 /* Override any GCC internal prototype to avoid an error.
8325 Use char because int might match the return type of a GCC
8326 builtin and then its argument prototype would still apply. */
8339 for ac_lib in '' dir; do
8340 if test -z "$ac_lib"; then
8341 ac_res="none required"
8344 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8346 rm -f conftest.$ac_objext conftest$ac_exeext
8347 if { (ac_try="$ac_link"
8349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8350 *) ac_try_echo=$ac_try;;
8352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8353 (eval "$ac_link") 2>conftest.er1
8355 grep -v '^ *+' conftest.er1 >conftest.err
8357 cat conftest.err >&5
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); } &&
8360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8361 { (case "(($ac_try" in
8362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8363 *) ac_try_echo=$ac_try;;
8365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8366 (eval "$ac_try") 2>&5
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); }; } &&
8370 { ac_try='test -s conftest$ac_exeext'
8371 { (case "(($ac_try" in
8372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8373 *) ac_try_echo=$ac_try;;
8375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8376 (eval "$ac_try") 2>&5
8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 (exit $ac_status); }; }; then
8380 ac_cv_search_opendir=$ac_res
8382 echo "$as_me: failed program was:" >&5
8383 sed 's/^/| /' conftest.$ac_ext >&5
8388 rm -f core conftest.err conftest.$ac_objext \
8390 if test "${ac_cv_search_opendir+set}" = set; then
8394 if test "${ac_cv_search_opendir+set}" = set; then
8397 ac_cv_search_opendir=no
8400 LIBS=$ac_func_search_save_LIBS
8402 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8403 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8404 ac_res=$ac_cv_search_opendir
8405 if test "$ac_res" != no; then
8406 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8411 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8412 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8413 if test "${ac_cv_search_opendir+set}" = set; then
8414 echo $ECHO_N "(cached) $ECHO_C" >&6
8416 ac_func_search_save_LIBS=$LIBS
8417 cat >conftest.$ac_ext <<_ACEOF
8420 cat confdefs.h >>conftest.$ac_ext
8421 cat >>conftest.$ac_ext <<_ACEOF
8422 /* end confdefs.h. */
8424 /* Override any GCC internal prototype to avoid an error.
8425 Use char because int might match the return type of a GCC
8426 builtin and then its argument prototype would still apply. */
8439 for ac_lib in '' x; do
8440 if test -z "$ac_lib"; then
8441 ac_res="none required"
8444 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8446 rm -f conftest.$ac_objext conftest$ac_exeext
8447 if { (ac_try="$ac_link"
8449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8450 *) ac_try_echo=$ac_try;;
8452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8453 (eval "$ac_link") 2>conftest.er1
8455 grep -v '^ *+' conftest.er1 >conftest.err
8457 cat conftest.err >&5
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); } &&
8460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8461 { (case "(($ac_try" in
8462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8463 *) ac_try_echo=$ac_try;;
8465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8466 (eval "$ac_try") 2>&5
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); }; } &&
8470 { ac_try='test -s conftest$ac_exeext'
8471 { (case "(($ac_try" in
8472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8473 *) ac_try_echo=$ac_try;;
8475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8476 (eval "$ac_try") 2>&5
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); }; }; then
8480 ac_cv_search_opendir=$ac_res
8482 echo "$as_me: failed program was:" >&5
8483 sed 's/^/| /' conftest.$ac_ext >&5
8488 rm -f core conftest.err conftest.$ac_objext \
8490 if test "${ac_cv_search_opendir+set}" = set; then
8494 if test "${ac_cv_search_opendir+set}" = set; then
8497 ac_cv_search_opendir=no
8500 LIBS=$ac_func_search_save_LIBS
8502 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8503 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8504 ac_res=$ac_cv_search_opendir
8505 if test "$ac_res" != no; then
8506 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8513 for ac_header in dlfcn.h
8515 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8517 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8520 echo $ECHO_N "(cached) $ECHO_C" >&6
8522 ac_res=`eval echo '${'$as_ac_Header'}'`
8523 { echo "$as_me:$LINENO: result: $ac_res" >&5
8524 echo "${ECHO_T}$ac_res" >&6; }
8526 # Is the header compilable?
8527 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8528 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8529 cat >conftest.$ac_ext <<_ACEOF
8532 cat confdefs.h >>conftest.$ac_ext
8533 cat >>conftest.$ac_ext <<_ACEOF
8534 /* end confdefs.h. */
8535 $ac_includes_default
8536 #include <$ac_header>
8538 rm -f conftest.$ac_objext
8539 if { (ac_try="$ac_compile"
8541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8542 *) ac_try_echo=$ac_try;;
8544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8545 (eval "$ac_compile") 2>conftest.er1
8547 grep -v '^ *+' conftest.er1 >conftest.err
8549 cat conftest.err >&5
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); } &&
8552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8553 { (case "(($ac_try" in
8554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8555 *) ac_try_echo=$ac_try;;
8557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8558 (eval "$ac_try") 2>&5
8560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561 (exit $ac_status); }; } &&
8562 { ac_try='test -s conftest.$ac_objext'
8563 { (case "(($ac_try" in
8564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8565 *) ac_try_echo=$ac_try;;
8567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8568 (eval "$ac_try") 2>&5
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); }; }; then
8572 ac_header_compiler=yes
8574 echo "$as_me: failed program was:" >&5
8575 sed 's/^/| /' conftest.$ac_ext >&5
8577 ac_header_compiler=no
8580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8581 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8582 echo "${ECHO_T}$ac_header_compiler" >&6; }
8584 # Is the header present?
8585 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8586 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8587 cat >conftest.$ac_ext <<_ACEOF
8590 cat confdefs.h >>conftest.$ac_ext
8591 cat >>conftest.$ac_ext <<_ACEOF
8592 /* end confdefs.h. */
8593 #include <$ac_header>
8595 if { (ac_try="$ac_cpp conftest.$ac_ext"
8597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8598 *) ac_try_echo=$ac_try;;
8600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8603 grep -v '^ *+' conftest.er1 >conftest.err
8605 cat conftest.err >&5
8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607 (exit $ac_status); } >/dev/null; then
8608 if test -s conftest.err; then
8609 ac_cpp_err=$ac_c_preproc_warn_flag
8610 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8617 if test -z "$ac_cpp_err"; then
8618 ac_header_preproc=yes
8620 echo "$as_me: failed program was:" >&5
8621 sed 's/^/| /' conftest.$ac_ext >&5
8623 ac_header_preproc=no
8626 rm -f conftest.err conftest.$ac_ext
8627 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8628 echo "${ECHO_T}$ac_header_preproc" >&6; }
8630 # So? What about this header?
8631 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8633 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8634 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8636 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8637 ac_header_preproc=yes
8640 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8641 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8642 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8643 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8644 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8645 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8646 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8647 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8649 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8650 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8651 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8653 ## ------------------------------------ ##
8654 ## Report this to http://llvm.org/bugs/ ##
8655 ## ------------------------------------ ##
8657 ) | sed "s/^/$as_me: WARNING: /" >&2
8660 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8663 echo $ECHO_N "(cached) $ECHO_C" >&6
8665 eval "$as_ac_Header=\$ac_header_preproc"
8667 ac_res=`eval echo '${'$as_ac_Header'}'`
8668 { echo "$as_me:$LINENO: result: $ac_res" >&5
8669 echo "${ECHO_T}$ac_res" >&6; }
8672 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8673 cat >>confdefs.h <<_ACEOF
8674 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8681 # Check whether --enable-ltdl-install was given.
8682 if test "${enable_ltdl_install+set}" = set; then
8683 enableval=$enable_ltdl_install;
8689 if test x"${enable_ltdl_install-no}" != xno; then
8691 INSTALL_LTDL_FALSE='#'
8693 INSTALL_LTDL_TRUE='#'
8699 if test x"${enable_ltdl_convenience-no}" != xno; then
8700 CONVENIENCE_LTDL_TRUE=
8701 CONVENIENCE_LTDL_FALSE='#'
8703 CONVENIENCE_LTDL_TRUE='#'
8704 CONVENIENCE_LTDL_FALSE=
8708 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8709 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8711 libname_spec='lib$name'
8719 shlibpath_overrides_runpath=unknown
8721 dynamic_linker="$host_os ld.so"
8722 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8723 if test "$GCC" = yes; then
8724 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8725 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8726 # if the path contains ";" then we assume it to be the separator
8727 # otherwise default to the standard path separator (i.e. ":") - it is
8728 # assumed that no part of a normal pathname contains ";" but that should
8729 # okay in the real world where ";" in dirpaths is itself problematic.
8730 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8732 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8735 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8737 need_lib_prefix=unknown
8738 hardcode_into_libs=no
8740 # when you set need_version to no, make sure it does not cause -set_version
8741 # flags to be left without arguments
8742 need_version=unknown
8747 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8748 shlibpath_var=LIBPATH
8750 # AIX 3 has no versioning support, so we append a major version to the name.
8751 soname_spec='${libname}${release}${shared_ext}$major'
8758 hardcode_into_libs=yes
8759 if test "$host_cpu" = ia64; then
8760 # AIX 5 supports IA64
8761 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8762 shlibpath_var=LD_LIBRARY_PATH
8764 # With GCC up to 2.95.x, collect2 would create an import file
8765 # for dependence libraries. The import file would start with
8766 # the line `#! .'. This would cause the generated library to
8767 # depend on `.', always an invalid library. This was fixed in
8768 # development snapshots of GCC prior to 3.0.
8770 aix4 | aix4.[01] | aix4.[01].*)
8771 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8773 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8780 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8781 # soname into executable. Probably we can add versioning support to
8782 # collect2, so additional links can be useful in future.
8783 if test "$aix_use_runtimelinking" = yes; then
8784 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8785 # instead of lib<name>.a to let people know that these are not
8786 # typical AIX shared libraries.
8787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8789 # We preserve .a as extension for shared libraries through AIX4.2
8790 # and later when we are not doing run time linking.
8791 library_names_spec='${libname}${release}.a $libname.a'
8792 soname_spec='${libname}${release}${shared_ext}$major'
8794 shlibpath_var=LIBPATH
8799 library_names_spec='$libname.ixlibrary $libname.a'
8800 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8801 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'
8805 library_names_spec='${libname}${shared_ext}'
8806 dynamic_linker="$host_os ld.so"
8807 shlibpath_var=LIBRARY_PATH
8813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8814 soname_spec='${libname}${release}${shared_ext}$major'
8815 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8816 shlibpath_var=LD_LIBRARY_PATH
8817 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8818 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8819 # the default ld.so.conf also contains /usr/contrib/lib and
8820 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8821 # libtool to hard-code these into programs
8824 cygwin* | mingw* | pw32*)
8825 version_type=windows
8830 case $GCC,$host_os in
8831 yes,cygwin* | yes,mingw* | yes,pw32*)
8832 library_names_spec='$libname.dll.a'
8833 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8834 postinstall_cmds='base_file=`basename \${file}`~
8835 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8836 dldir=$destdir/`dirname \$dlpath`~
8837 test -d \$dldir || mkdir -p \$dldir~
8838 $install_prog $dir/$dlname \$dldir/$dlname~
8839 chmod a+x \$dldir/$dlname'
8840 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8841 dlpath=$dir/\$dldll~
8843 shlibpath_overrides_runpath=yes
8847 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8848 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8849 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8852 # MinGW DLLs use traditional 'lib' prefix
8853 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8854 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8855 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8856 # It is most probably a Windows format PATH printed by
8857 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8858 # path with ; separators, and with drive letters. We can handle the
8859 # drive letters (cygwin fileutils understands them), so leave them,
8860 # especially as we might pass files found there to a mingw objdump,
8861 # which wouldn't understand a cygwinified path. Ahh.
8862 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8864 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8868 # pw32 DLLs use 'pw' prefix rather than 'lib'
8869 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8875 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8878 dynamic_linker='Win32 ld.exe'
8879 # FIXME: first we should search . and the directory the executable is in
8883 darwin* | rhapsody*)
8884 dynamic_linker="$host_os dyld"
8888 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8889 soname_spec='${libname}${release}${major}$shared_ext'
8890 shlibpath_overrides_runpath=yes
8891 shlibpath_var=DYLD_LIBRARY_PATH
8892 shrext_cmds='.dylib'
8893 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8894 if test "$GCC" = yes; then
8895 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"`
8897 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8899 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8907 soname_spec='${libname}${release}${shared_ext}$major'
8908 shlibpath_var=LD_LIBRARY_PATH
8919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8920 soname_spec='${libname}${release}${shared_ext}$major'
8921 shlibpath_var=LD_LIBRARY_PATH
8922 shlibpath_overrides_runpath=no
8923 hardcode_into_libs=yes
8924 dynamic_linker='GNU ld.so'
8927 freebsd* | dragonfly*)
8928 # DragonFly does not have aout. When/if they implement a new
8929 # versioning mechanism, adjust this.
8930 if test -x /usr/bin/objformat; then
8931 objformat=`/usr/bin/objformat`
8934 freebsd[123].*) objformat=aout ;;
8938 version_type=freebsd-$objformat
8939 case $version_type in
8941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8946 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8950 shlibpath_var=LD_LIBRARY_PATH
8953 shlibpath_overrides_runpath=yes
8955 freebsd3.[01]* | freebsdelf3.[01]*)
8956 shlibpath_overrides_runpath=yes
8957 hardcode_into_libs=yes
8959 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8960 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8961 shlibpath_overrides_runpath=no
8962 hardcode_into_libs=yes
8964 freebsd*) # from 4.6 on
8965 shlibpath_overrides_runpath=yes
8966 hardcode_into_libs=yes
8975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8976 soname_spec='${libname}${release}${shared_ext}$major'
8977 shlibpath_var=LD_LIBRARY_PATH
8978 hardcode_into_libs=yes
8981 hpux9* | hpux10* | hpux11*)
8982 # Give a soname corresponding to the major version so that dld.sl refuses to
8983 # link against other versions.
8990 hardcode_into_libs=yes
8991 dynamic_linker="$host_os dld.so"
8992 shlibpath_var=LD_LIBRARY_PATH
8993 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8995 soname_spec='${libname}${release}${shared_ext}$major'
8996 if test "X$HPUX_IA64_MODE" = X32; then
8997 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8999 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9001 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9005 hardcode_into_libs=yes
9006 dynamic_linker="$host_os dld.sl"
9007 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9008 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9010 soname_spec='${libname}${release}${shared_ext}$major'
9011 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9012 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9016 dynamic_linker="$host_os dld.sl"
9017 shlibpath_var=SHLIB_PATH
9018 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9020 soname_spec='${libname}${release}${shared_ext}$major'
9023 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9024 postinstall_cmds='chmod 555 $lib'
9031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9032 soname_spec='${libname}${release}${shared_ext}$major'
9033 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9034 shlibpath_var=LD_LIBRARY_PATH
9035 shlibpath_overrides_runpath=no
9036 hardcode_into_libs=yes
9039 irix5* | irix6* | nonstopux*)
9041 nonstopux*) version_type=nonstopux ;;
9043 if test "$lt_cv_prog_gnu_ld" = yes; then
9051 soname_spec='${libname}${release}${shared_ext}$major'
9052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9054 irix5* | nonstopux*)
9058 case $LD in # libtool.m4 will add one of these switches to LD
9059 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9060 libsuff= shlibsuff= libmagic=32-bit;;
9061 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9062 libsuff=32 shlibsuff=N32 libmagic=N32;;
9063 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9064 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9065 *) libsuff= shlibsuff= libmagic=never-match;;
9069 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9070 shlibpath_overrides_runpath=no
9071 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9072 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9073 hardcode_into_libs=yes
9076 # No shared lib support for Linux oldld, aout, or coff.
9077 linux*oldld* | linux*aout* | linux*coff*)
9081 # This must be Linux ELF.
9086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9087 soname_spec='${libname}${release}${shared_ext}$major'
9088 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9089 shlibpath_var=LD_LIBRARY_PATH
9090 shlibpath_overrides_runpath=no
9091 # This implies no fast_install, which is unacceptable.
9092 # Some rework will be needed to allow for fast_install
9093 # before this can be enabled.
9094 hardcode_into_libs=yes
9096 # Append ld.so.conf contents to the search path
9097 if test -f /etc/ld.so.conf; then
9098 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' ' '`
9099 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9102 # We used to test for /lib/ld.so.1 and disable shared libraries on
9103 # powerpc, because MkLinux only supported shared libraries with the
9104 # GNU dynamic linker. Since this was broken with cross compilers,
9105 # most powerpc-linux boxes support dynamic linking these days and
9106 # people can always --disable-shared, the test was removed, and we
9107 # assume the GNU/Linux dynamic linker is in use.
9108 dynamic_linker='GNU/Linux ld.so'
9115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9116 soname_spec='${libname}${release}${shared_ext}$major'
9117 shlibpath_var=LD_LIBRARY_PATH
9118 shlibpath_overrides_runpath=no
9119 hardcode_into_libs=yes
9120 dynamic_linker='GNU ld.so'
9127 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9129 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9130 dynamic_linker='NetBSD (a.out) ld.so'
9132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9133 soname_spec='${libname}${release}${shared_ext}$major'
9134 dynamic_linker='NetBSD ld.elf_so'
9136 shlibpath_var=LD_LIBRARY_PATH
9137 shlibpath_overrides_runpath=yes
9138 hardcode_into_libs=yes
9143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9144 shlibpath_var=LD_LIBRARY_PATH
9145 shlibpath_overrides_runpath=yes
9152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9153 soname_spec='${libname}${release}${shared_ext}$major'
9154 shlibpath_var=LD_LIBRARY_PATH
9155 shlibpath_overrides_runpath=yes
9160 sys_lib_dlsearch_path_spec="/usr/lib"
9162 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9164 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9165 *) need_version=no ;;
9167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9168 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9169 shlibpath_var=LD_LIBRARY_PATH
9170 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9172 openbsd2.[89] | openbsd2.[89].*)
9173 shlibpath_overrides_runpath=no
9176 shlibpath_overrides_runpath=yes
9180 shlibpath_overrides_runpath=yes
9185 libname_spec='$name'
9188 library_names_spec='$libname${shared_ext} $libname.a'
9189 dynamic_linker='OS/2 ld.exe'
9190 shlibpath_var=LIBPATH
9193 osf3* | osf4* | osf5*)
9197 soname_spec='${libname}${release}${shared_ext}$major'
9198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9199 shlibpath_var=LD_LIBRARY_PATH
9200 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9201 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9209 soname_spec='${libname}${release}${shared_ext}$major'
9210 shlibpath_var=LD_LIBRARY_PATH
9211 shlibpath_overrides_runpath=yes
9212 hardcode_into_libs=yes
9213 # ldd complains unless libraries are executable
9214 postinstall_cmds='chmod +x $lib'
9219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9220 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9221 shlibpath_var=LD_LIBRARY_PATH
9222 shlibpath_overrides_runpath=yes
9223 if test "$with_gnu_ld" = yes; then
9231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9232 soname_spec='${libname}${release}${shared_ext}$major'
9233 shlibpath_var=LD_LIBRARY_PATH
9234 case $host_vendor in
9236 shlibpath_overrides_runpath=no
9238 export_dynamic_flag_spec='${wl}-Blargedynsym'
9239 runpath_var=LD_RUN_PATH
9247 shlibpath_overrides_runpath=no
9248 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9254 if test -d /usr/nec ;then
9256 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9257 soname_spec='$libname${shared_ext}.$major'
9258 shlibpath_var=LD_LIBRARY_PATH
9262 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9263 version_type=freebsd-elf
9266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9267 soname_spec='${libname}${release}${shared_ext}$major'
9268 shlibpath_var=LD_LIBRARY_PATH
9269 hardcode_into_libs=yes
9270 if test "$with_gnu_ld" = yes; then
9271 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9272 shlibpath_overrides_runpath=no
9274 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9275 shlibpath_overrides_runpath=yes
9278 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9282 sys_lib_dlsearch_path_spec='/usr/lib'
9287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9288 soname_spec='${libname}${release}${shared_ext}$major'
9289 shlibpath_var=LD_LIBRARY_PATH
9296 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9297 echo "${ECHO_T}$dynamic_linker" >&6; }
9298 test "$dynamic_linker" = no && can_build_shared=no
9300 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9301 if test "$GCC" = yes; then
9302 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9306 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9307 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9308 if test "${libltdl_cv_shlibext+set}" = set; then
9309 echo $ECHO_N "(cached) $ECHO_C" >&6
9313 eval libltdl_cv_shlibext=$shrext_cmds
9316 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9317 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9318 if test -n "$libltdl_cv_shlibext"; then
9320 cat >>confdefs.h <<_ACEOF
9321 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9327 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9328 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9329 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9330 echo $ECHO_N "(cached) $ECHO_C" >&6
9332 libltdl_cv_shlibpath_var="$shlibpath_var"
9334 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9335 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9336 if test -n "$libltdl_cv_shlibpath_var"; then
9338 cat >>confdefs.h <<_ACEOF
9339 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9345 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9346 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9347 if test "${libltdl_cv_sys_search_path+set}" = set; then
9348 echo $ECHO_N "(cached) $ECHO_C" >&6
9350 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9352 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9353 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9354 if test -n "$libltdl_cv_sys_search_path"; then
9356 for dir in $libltdl_cv_sys_search_path; do
9357 if test -z "$sys_search_path"; then
9358 sys_search_path="$dir"
9360 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9364 cat >>confdefs.h <<_ACEOF
9365 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9370 { echo "$as_me:$LINENO: checking for objdir" >&5
9371 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9372 if test "${libltdl_cv_objdir+set}" = set; then
9373 echo $ECHO_N "(cached) $ECHO_C" >&6
9375 libltdl_cv_objdir="$objdir"
9376 if test -n "$objdir"; then
9379 rm -f .libs 2>/dev/null
9380 mkdir .libs 2>/dev/null
9381 if test -d .libs; then
9382 libltdl_cv_objdir=.libs
9384 # MS-DOS does not allow filenames that begin with a dot.
9385 libltdl_cv_objdir=_libs
9387 rmdir .libs 2>/dev/null
9391 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9392 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9394 cat >>confdefs.h <<_ACEOF
9395 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9403 # Check for command to grab the raw symbol name followed by C symbol from nm.
9404 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9405 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9406 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9407 echo $ECHO_N "(cached) $ECHO_C" >&6
9410 # These are sane defaults that work on at least a few old systems.
9411 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9413 # Character class describing NM global symbol codes.
9414 symcode='[BCDEGRST]'
9416 # Regexp to match symbols that can be accessed directly from C.
9417 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9419 # Transform an extracted symbol line into a proper C declaration
9420 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9422 # Transform an extracted symbol line into symbol name and symbol address
9423 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'"
9425 # Define system-specific variables.
9430 cygwin* | mingw* | pw32*)
9431 symcode='[ABCDGISTW]'
9433 hpux*) # Its linker distinguishes data from code symbols
9434 if test "$host_cpu" = ia64; then
9435 symcode='[ABCDEGRST]'
9437 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9438 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'"
9441 if test "$host_cpu" = ia64; then
9442 symcode='[ABCDGIRSTW]'
9443 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9444 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'"
9448 symcode='[BCDEGRST]'
9451 symcode='[BCDEGQRST]'
9462 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9470 # Handle CRLF in mingw tool chain
9474 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9478 # If we're using GNU nm, then use its standard symbol codes.
9479 case `$NM -V 2>&1` in
9480 *GNU* | *'with BFD'*)
9481 symcode='[ABCDGIRSTW]' ;;
9484 # Try without a prefix undercore, then with it.
9485 for ac_symprfx in "" "_"; do
9487 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9488 symxfrm="\\1 $ac_symprfx\\2 \\2"
9490 # Write the raw and C identifiers.
9491 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9493 # Check to see that the pipe works correctly.
9497 cat > conftest.$ac_ext <<EOF
9502 void nm_test_func(){}
9506 int main(){nm_test_var='a';nm_test_func();return(0);}
9509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9510 (eval $ac_compile) 2>&5
9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513 (exit $ac_status); }; then
9514 # Now try to grab the symbols.
9516 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9517 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); } && test -s "$nlist"; then
9521 # Try sorting and uniquifying the output.
9522 if sort "$nlist" | uniq > "$nlist"T; then
9523 mv -f "$nlist"T "$nlist"
9528 # Make sure that we snagged all the symbols we need.
9529 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9530 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9531 cat <<EOF > conftest.$ac_ext
9537 # Now generate the symbol file.
9538 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9540 cat <<EOF >> conftest.$ac_ext
9541 #if defined (__STDC__) && __STDC__
9542 # define lt_ptr_t void *
9544 # define lt_ptr_t char *
9548 /* The mapping between symbol names and symbols. */
9553 lt_preloaded_symbols[] =
9556 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9557 cat <<\EOF >> conftest.$ac_ext
9565 # Now try linking the two files.
9566 mv conftest.$ac_objext conftstm.$ac_objext
9567 lt_save_LIBS="$LIBS"
9568 lt_save_CFLAGS="$CFLAGS"
9569 LIBS="conftstm.$ac_objext"
9570 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9572 (eval $ac_link) 2>&5
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9578 LIBS="$lt_save_LIBS"
9579 CFLAGS="$lt_save_CFLAGS"
9581 echo "cannot find nm_test_func in $nlist" >&5
9584 echo "cannot find nm_test_var in $nlist" >&5
9587 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9590 echo "$progname: failed program was:" >&5
9591 cat conftest.$ac_ext >&5
9593 rm -f conftest* conftst*
9595 # Do not use the global_symbol_pipe unless it works.
9596 if test "$pipe_works" = yes; then
9599 lt_cv_sys_global_symbol_pipe=
9605 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9606 lt_cv_sys_global_symbol_to_cdecl=
9608 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9609 { echo "$as_me:$LINENO: result: failed" >&5
9610 echo "${ECHO_T}failed" >&6; }
9612 { echo "$as_me:$LINENO: result: ok" >&5
9613 echo "${ECHO_T}ok" >&6; }
9617 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9618 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9619 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9620 echo $ECHO_N "(cached) $ECHO_C" >&6
9622 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9623 libltdl_cv_preloaded_symbols=yes
9625 libltdl_cv_preloaded_symbols=no
9629 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9630 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9631 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9633 cat >>confdefs.h <<\_ACEOF
9634 #define HAVE_PRELOADED_SYMBOLS 1
9642 ac_cpp='$CPP $CPPFLAGS'
9643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9648 { echo "$as_me:$LINENO: checking for shl_load" >&5
9649 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9650 if test "${ac_cv_func_shl_load+set}" = set; then
9651 echo $ECHO_N "(cached) $ECHO_C" >&6
9653 cat >conftest.$ac_ext <<_ACEOF
9656 cat confdefs.h >>conftest.$ac_ext
9657 cat >>conftest.$ac_ext <<_ACEOF
9658 /* end confdefs.h. */
9659 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9661 #define shl_load innocuous_shl_load
9663 /* System header to define __stub macros and hopefully few prototypes,
9664 which can conflict with char shl_load (); below.
9665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9666 <limits.h> exists even on freestanding compilers. */
9669 # include <limits.h>
9671 # include <assert.h>
9676 /* Override any GCC internal prototype to avoid an error.
9677 Use char because int might match the return type of a GCC
9678 builtin and then its argument prototype would still apply. */
9683 /* The GNU C library defines this for functions which it implements
9684 to always fail with ENOSYS. Some functions are actually named
9685 something starting with __ and the normal name is an alias. */
9686 #if defined __stub_shl_load || defined __stub___shl_load
9698 rm -f conftest.$ac_objext conftest$ac_exeext
9699 if { (ac_try="$ac_link"
9701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9702 *) ac_try_echo=$ac_try;;
9704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9705 (eval "$ac_link") 2>conftest.er1
9707 grep -v '^ *+' conftest.er1 >conftest.err
9709 cat conftest.err >&5
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); } &&
9712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9713 { (case "(($ac_try" in
9714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9715 *) ac_try_echo=$ac_try;;
9717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9718 (eval "$ac_try") 2>&5
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); }; } &&
9722 { ac_try='test -s conftest$ac_exeext'
9723 { (case "(($ac_try" in
9724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9725 *) ac_try_echo=$ac_try;;
9727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9728 (eval "$ac_try") 2>&5
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); }; }; then
9732 ac_cv_func_shl_load=yes
9734 echo "$as_me: failed program was:" >&5
9735 sed 's/^/| /' conftest.$ac_ext >&5
9737 ac_cv_func_shl_load=no
9740 rm -f core conftest.err conftest.$ac_objext \
9741 conftest$ac_exeext conftest.$ac_ext
9743 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9744 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9745 if test $ac_cv_func_shl_load = yes; then
9747 cat >>confdefs.h <<\_ACEOF
9748 #define HAVE_SHL_LOAD 1
9752 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9753 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9754 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9755 echo $ECHO_N "(cached) $ECHO_C" >&6
9757 ac_check_lib_save_LIBS=$LIBS
9759 cat >conftest.$ac_ext <<_ACEOF
9762 cat confdefs.h >>conftest.$ac_ext
9763 cat >>conftest.$ac_ext <<_ACEOF
9764 /* end confdefs.h. */
9766 /* Override any GCC internal prototype to avoid an error.
9767 Use char because int might match the return type of a GCC
9768 builtin and then its argument prototype would still apply. */
9781 rm -f conftest.$ac_objext conftest$ac_exeext
9782 if { (ac_try="$ac_link"
9784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9785 *) ac_try_echo=$ac_try;;
9787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9788 (eval "$ac_link") 2>conftest.er1
9790 grep -v '^ *+' conftest.er1 >conftest.err
9792 cat conftest.err >&5
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); } &&
9795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9796 { (case "(($ac_try" in
9797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9798 *) ac_try_echo=$ac_try;;
9800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9801 (eval "$ac_try") 2>&5
9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); }; } &&
9805 { ac_try='test -s conftest$ac_exeext'
9806 { (case "(($ac_try" in
9807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9808 *) ac_try_echo=$ac_try;;
9810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9811 (eval "$ac_try") 2>&5
9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814 (exit $ac_status); }; }; then
9815 ac_cv_lib_dld_shl_load=yes
9817 echo "$as_me: failed program was:" >&5
9818 sed 's/^/| /' conftest.$ac_ext >&5
9820 ac_cv_lib_dld_shl_load=no
9823 rm -f core conftest.err conftest.$ac_objext \
9824 conftest$ac_exeext conftest.$ac_ext
9825 LIBS=$ac_check_lib_save_LIBS
9827 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9828 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9829 if test $ac_cv_lib_dld_shl_load = yes; then
9831 cat >>confdefs.h <<\_ACEOF
9832 #define HAVE_SHL_LOAD 1
9835 LIBADD_DL="$LIBADD_DL -ldld"
9837 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9838 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9839 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9840 echo $ECHO_N "(cached) $ECHO_C" >&6
9842 ac_check_lib_save_LIBS=$LIBS
9844 cat >conftest.$ac_ext <<_ACEOF
9847 cat confdefs.h >>conftest.$ac_ext
9848 cat >>conftest.$ac_ext <<_ACEOF
9849 /* end confdefs.h. */
9851 /* Override any GCC internal prototype to avoid an error.
9852 Use char because int might match the return type of a GCC
9853 builtin and then its argument prototype would still apply. */
9866 rm -f conftest.$ac_objext conftest$ac_exeext
9867 if { (ac_try="$ac_link"
9869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9870 *) ac_try_echo=$ac_try;;
9872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9873 (eval "$ac_link") 2>conftest.er1
9875 grep -v '^ *+' conftest.er1 >conftest.err
9877 cat conftest.err >&5
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); } &&
9880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9881 { (case "(($ac_try" in
9882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9883 *) ac_try_echo=$ac_try;;
9885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9886 (eval "$ac_try") 2>&5
9888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889 (exit $ac_status); }; } &&
9890 { ac_try='test -s conftest$ac_exeext'
9891 { (case "(($ac_try" in
9892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9893 *) ac_try_echo=$ac_try;;
9895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9896 (eval "$ac_try") 2>&5
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); }; }; then
9900 ac_cv_lib_dl_dlopen=yes
9902 echo "$as_me: failed program was:" >&5
9903 sed 's/^/| /' conftest.$ac_ext >&5
9905 ac_cv_lib_dl_dlopen=no
9908 rm -f core conftest.err conftest.$ac_objext \
9909 conftest$ac_exeext conftest.$ac_ext
9910 LIBS=$ac_check_lib_save_LIBS
9912 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9913 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9914 if test $ac_cv_lib_dl_dlopen = yes; then
9916 cat >>confdefs.h <<\_ACEOF
9917 #define HAVE_LIBDL 1
9920 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9922 cat >conftest.$ac_ext <<_ACEOF
9925 cat confdefs.h >>conftest.$ac_ext
9926 cat >>conftest.$ac_ext <<_ACEOF
9927 /* end confdefs.h. */
9940 rm -f conftest.$ac_objext conftest$ac_exeext
9941 if { (ac_try="$ac_link"
9943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9944 *) ac_try_echo=$ac_try;;
9946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9947 (eval "$ac_link") 2>conftest.er1
9949 grep -v '^ *+' conftest.er1 >conftest.err
9951 cat conftest.err >&5
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); } &&
9954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9955 { (case "(($ac_try" in
9956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9957 *) ac_try_echo=$ac_try;;
9959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9960 (eval "$ac_try") 2>&5
9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963 (exit $ac_status); }; } &&
9964 { ac_try='test -s conftest$ac_exeext'
9965 { (case "(($ac_try" in
9966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9967 *) ac_try_echo=$ac_try;;
9969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9970 (eval "$ac_try") 2>&5
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); }; }; then
9975 cat >>confdefs.h <<\_ACEOF
9976 #define HAVE_LIBDL 1
9978 libltdl_cv_func_dlopen="yes"
9980 echo "$as_me: failed program was:" >&5
9981 sed 's/^/| /' conftest.$ac_ext >&5
9983 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9984 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9985 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9986 echo $ECHO_N "(cached) $ECHO_C" >&6
9988 ac_check_lib_save_LIBS=$LIBS
9990 cat >conftest.$ac_ext <<_ACEOF
9993 cat confdefs.h >>conftest.$ac_ext
9994 cat >>conftest.$ac_ext <<_ACEOF
9995 /* end confdefs.h. */
9997 /* Override any GCC internal prototype to avoid an error.
9998 Use char because int might match the return type of a GCC
9999 builtin and then its argument prototype would still apply. */
10012 rm -f conftest.$ac_objext conftest$ac_exeext
10013 if { (ac_try="$ac_link"
10014 case "(($ac_try" in
10015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10016 *) ac_try_echo=$ac_try;;
10018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10019 (eval "$ac_link") 2>conftest.er1
10021 grep -v '^ *+' conftest.er1 >conftest.err
10023 cat conftest.err >&5
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); } &&
10026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10027 { (case "(($ac_try" in
10028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10029 *) ac_try_echo=$ac_try;;
10031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10032 (eval "$ac_try") 2>&5
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); }; } &&
10036 { ac_try='test -s conftest$ac_exeext'
10037 { (case "(($ac_try" in
10038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10039 *) ac_try_echo=$ac_try;;
10041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10042 (eval "$ac_try") 2>&5
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); }; }; then
10046 ac_cv_lib_svld_dlopen=yes
10048 echo "$as_me: failed program was:" >&5
10049 sed 's/^/| /' conftest.$ac_ext >&5
10051 ac_cv_lib_svld_dlopen=no
10054 rm -f core conftest.err conftest.$ac_objext \
10055 conftest$ac_exeext conftest.$ac_ext
10056 LIBS=$ac_check_lib_save_LIBS
10058 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10059 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10060 if test $ac_cv_lib_svld_dlopen = yes; then
10062 cat >>confdefs.h <<\_ACEOF
10063 #define HAVE_LIBDL 1
10066 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10068 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10069 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10070 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10071 echo $ECHO_N "(cached) $ECHO_C" >&6
10073 ac_check_lib_save_LIBS=$LIBS
10075 cat >conftest.$ac_ext <<_ACEOF
10078 cat confdefs.h >>conftest.$ac_ext
10079 cat >>conftest.$ac_ext <<_ACEOF
10080 /* end confdefs.h. */
10082 /* Override any GCC internal prototype to avoid an error.
10083 Use char because int might match the return type of a GCC
10084 builtin and then its argument prototype would still apply. */
10092 return dld_link ();
10097 rm -f conftest.$ac_objext conftest$ac_exeext
10098 if { (ac_try="$ac_link"
10099 case "(($ac_try" in
10100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10101 *) ac_try_echo=$ac_try;;
10103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10104 (eval "$ac_link") 2>conftest.er1
10106 grep -v '^ *+' conftest.er1 >conftest.err
10108 cat conftest.err >&5
10109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110 (exit $ac_status); } &&
10111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10112 { (case "(($ac_try" in
10113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10114 *) ac_try_echo=$ac_try;;
10116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10117 (eval "$ac_try") 2>&5
10119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120 (exit $ac_status); }; } &&
10121 { ac_try='test -s conftest$ac_exeext'
10122 { (case "(($ac_try" in
10123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10124 *) ac_try_echo=$ac_try;;
10126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10127 (eval "$ac_try") 2>&5
10129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130 (exit $ac_status); }; }; then
10131 ac_cv_lib_dld_dld_link=yes
10133 echo "$as_me: failed program was:" >&5
10134 sed 's/^/| /' conftest.$ac_ext >&5
10136 ac_cv_lib_dld_dld_link=no
10139 rm -f core conftest.err conftest.$ac_objext \
10140 conftest$ac_exeext conftest.$ac_ext
10141 LIBS=$ac_check_lib_save_LIBS
10143 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10144 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10145 if test $ac_cv_lib_dld_dld_link = yes; then
10147 cat >>confdefs.h <<\_ACEOF
10151 LIBADD_DL="$LIBADD_DL -ldld"
10153 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10154 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10155 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10156 echo $ECHO_N "(cached) $ECHO_C" >&6
10158 cat >conftest.$ac_ext <<_ACEOF
10161 cat confdefs.h >>conftest.$ac_ext
10162 cat >>conftest.$ac_ext <<_ACEOF
10163 /* end confdefs.h. */
10164 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10166 #define _dyld_func_lookup innocuous__dyld_func_lookup
10168 /* System header to define __stub macros and hopefully few prototypes,
10169 which can conflict with char _dyld_func_lookup (); below.
10170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10171 <limits.h> exists even on freestanding compilers. */
10174 # include <limits.h>
10176 # include <assert.h>
10179 #undef _dyld_func_lookup
10181 /* Override any GCC internal prototype to avoid an error.
10182 Use char because int might match the return type of a GCC
10183 builtin and then its argument prototype would still apply. */
10187 char _dyld_func_lookup ();
10188 /* The GNU C library defines this for functions which it implements
10189 to always fail with ENOSYS. Some functions are actually named
10190 something starting with __ and the normal name is an alias. */
10191 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10198 return _dyld_func_lookup ();
10203 rm -f conftest.$ac_objext conftest$ac_exeext
10204 if { (ac_try="$ac_link"
10205 case "(($ac_try" in
10206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10207 *) ac_try_echo=$ac_try;;
10209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10210 (eval "$ac_link") 2>conftest.er1
10212 grep -v '^ *+' conftest.er1 >conftest.err
10214 cat conftest.err >&5
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); } &&
10217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10218 { (case "(($ac_try" in
10219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10220 *) ac_try_echo=$ac_try;;
10222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10223 (eval "$ac_try") 2>&5
10225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226 (exit $ac_status); }; } &&
10227 { ac_try='test -s conftest$ac_exeext'
10228 { (case "(($ac_try" in
10229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10230 *) ac_try_echo=$ac_try;;
10232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10233 (eval "$ac_try") 2>&5
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); }; }; then
10237 ac_cv_func__dyld_func_lookup=yes
10239 echo "$as_me: failed program was:" >&5
10240 sed 's/^/| /' conftest.$ac_ext >&5
10242 ac_cv_func__dyld_func_lookup=no
10245 rm -f core conftest.err conftest.$ac_objext \
10246 conftest$ac_exeext conftest.$ac_ext
10248 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10249 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10250 if test $ac_cv_func__dyld_func_lookup = yes; then
10252 cat >>confdefs.h <<\_ACEOF
10253 #define HAVE_DYLD 1
10267 rm -f core conftest.err conftest.$ac_objext \
10268 conftest$ac_exeext conftest.$ac_ext
10279 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10281 lt_save_LIBS="$LIBS"
10282 LIBS="$LIBS $LIBADD_DL"
10284 for ac_func in dlerror
10286 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10287 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10288 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10289 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10290 echo $ECHO_N "(cached) $ECHO_C" >&6
10292 cat >conftest.$ac_ext <<_ACEOF
10295 cat confdefs.h >>conftest.$ac_ext
10296 cat >>conftest.$ac_ext <<_ACEOF
10297 /* end confdefs.h. */
10298 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10299 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10300 #define $ac_func innocuous_$ac_func
10302 /* System header to define __stub macros and hopefully few prototypes,
10303 which can conflict with char $ac_func (); below.
10304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10305 <limits.h> exists even on freestanding compilers. */
10308 # include <limits.h>
10310 # include <assert.h>
10315 /* Override any GCC internal prototype to avoid an error.
10316 Use char because int might match the return type of a GCC
10317 builtin and then its argument prototype would still apply. */
10322 /* The GNU C library defines this for functions which it implements
10323 to always fail with ENOSYS. Some functions are actually named
10324 something starting with __ and the normal name is an alias. */
10325 #if defined __stub_$ac_func || defined __stub___$ac_func
10332 return $ac_func ();
10337 rm -f conftest.$ac_objext conftest$ac_exeext
10338 if { (ac_try="$ac_link"
10339 case "(($ac_try" in
10340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10341 *) ac_try_echo=$ac_try;;
10343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10344 (eval "$ac_link") 2>conftest.er1
10346 grep -v '^ *+' conftest.er1 >conftest.err
10348 cat conftest.err >&5
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); } &&
10351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10352 { (case "(($ac_try" in
10353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10354 *) ac_try_echo=$ac_try;;
10356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10357 (eval "$ac_try") 2>&5
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); }; } &&
10361 { ac_try='test -s conftest$ac_exeext'
10362 { (case "(($ac_try" in
10363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10364 *) ac_try_echo=$ac_try;;
10366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10367 (eval "$ac_try") 2>&5
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); }; }; then
10371 eval "$as_ac_var=yes"
10373 echo "$as_me: failed program was:" >&5
10374 sed 's/^/| /' conftest.$ac_ext >&5
10376 eval "$as_ac_var=no"
10379 rm -f core conftest.err conftest.$ac_objext \
10380 conftest$ac_exeext conftest.$ac_ext
10382 ac_res=`eval echo '${'$as_ac_var'}'`
10383 { echo "$as_me:$LINENO: result: $ac_res" >&5
10384 echo "${ECHO_T}$ac_res" >&6; }
10385 if test `eval echo '${'$as_ac_var'}'` = yes; then
10386 cat >>confdefs.h <<_ACEOF
10387 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10393 LIBS="$lt_save_LIBS"
10396 ac_cpp='$CPP $CPPFLAGS'
10397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10403 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10404 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10405 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10406 echo $ECHO_N "(cached) $ECHO_C" >&6
10408 ac_cv_sys_symbol_underscore=no
10409 cat > conftest.$ac_ext <<EOF
10410 void nm_test_func(){}
10411 int main(){nm_test_func;return 0;}
10413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10414 (eval $ac_compile) 2>&5
10416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417 (exit $ac_status); }; then
10418 # Now try to grab the symbols.
10419 ac_nlist=conftest.nm
10420 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10421 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); } && test -s "$ac_nlist"; then
10425 # See whether the symbols have a leading underscore.
10426 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10427 ac_cv_sys_symbol_underscore=yes
10429 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10432 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10436 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10439 echo "configure: failed program was:" >&5
10445 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10446 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10449 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10450 if test x"$libltdl_cv_func_dlopen" = xyes ||
10451 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10452 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10453 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10454 if test "${libltdl_cv_need_uscore+set}" = set; then
10455 echo $ECHO_N "(cached) $ECHO_C" >&6
10457 libltdl_cv_need_uscore=unknown
10459 LIBS="$LIBS $LIBADD_DL"
10460 if test "$cross_compiling" = yes; then :
10461 libltdl_cv_need_uscore=cross
10463 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10464 lt_status=$lt_dlunknown
10465 cat > conftest.$ac_ext <<EOF
10466 #line 10466 "configure"
10467 #include "confdefs.h"
10476 # define LT_DLGLOBAL RTLD_GLOBAL
10479 # define LT_DLGLOBAL DL_GLOBAL
10481 # define LT_DLGLOBAL 0
10485 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10486 find out it does not work in some platform. */
10487 #ifndef LT_DLLAZY_OR_NOW
10489 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10492 # define LT_DLLAZY_OR_NOW DL_LAZY
10495 # define LT_DLLAZY_OR_NOW RTLD_NOW
10498 # define LT_DLLAZY_OR_NOW DL_NOW
10500 # define LT_DLLAZY_OR_NOW 0
10508 extern "C" void exit (int);
10511 void fnord() { int i=42;}
10514 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10515 int status = $lt_dlunknown;
10519 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10520 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10521 /* dlclose (self); */
10529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10530 (eval $ac_link) 2>&5
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10534 (./conftest; exit; ) >&5 2>/dev/null
10536 case x$lt_status in
10537 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10538 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10539 x$lt_dlunknown|x*) ;;
10542 # compilation failed
10551 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10552 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10556 if test x"$libltdl_cv_need_uscore" = xyes; then
10558 cat >>confdefs.h <<\_ACEOF
10559 #define NEED_USCORE 1
10565 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10566 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10567 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10568 echo $ECHO_N "(cached) $ECHO_C" >&6
10570 # PORTME does your system automatically load deplibs for dlopen?
10571 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10572 # For now, we just catch OSes we know something about -- in the
10573 # future, we'll try test this programmatically.
10574 libltdl_cv_sys_dlopen_deplibs=unknown
10576 aix3*|aix4.1.*|aix4.2.*)
10577 # Unknown whether this is true for these versions of AIX, but
10578 # we want this `case' here to explicitly catch those versions.
10579 libltdl_cv_sys_dlopen_deplibs=unknown
10582 libltdl_cv_sys_dlopen_deplibs=yes
10585 # Assuming the user has installed a libdl from somewhere, this is true
10586 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10587 libltdl_cv_sys_dlopen_deplibs=yes
10589 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10590 # GNU and its variants, using gnu ld.so (Glibc)
10591 libltdl_cv_sys_dlopen_deplibs=yes
10594 libltdl_cv_sys_dlopen_deplibs=yes
10597 libltdl_cv_sys_dlopen_deplibs=yes
10599 irix[12345]*|irix6.[01]*)
10600 # Catch all versions of IRIX before 6.2, and indicate that we don't
10601 # know how it worked for any of those versions.
10602 libltdl_cv_sys_dlopen_deplibs=unknown
10605 # The case above catches anything before 6.2, and it's known that
10606 # at 6.2 and later dlopen does load deplibs.
10607 libltdl_cv_sys_dlopen_deplibs=yes
10610 libltdl_cv_sys_dlopen_deplibs=yes
10613 libltdl_cv_sys_dlopen_deplibs=yes
10616 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10617 # it did *not* use an RPATH in a shared library to find objects the
10618 # library depends on, so we explicitly say `no'.
10619 libltdl_cv_sys_dlopen_deplibs=no
10621 osf5.0|osf5.0a|osf5.1)
10622 # dlopen *does* load deplibs and with the right loader patch applied
10623 # it even uses RPATH in a shared library to search for shared objects
10624 # that the library depends on, but there's no easy way to know if that
10625 # patch is installed. Since this is the case, all we can really
10626 # say is unknown -- it depends on the patch being installed. If
10627 # it is, this changes to `yes'. Without it, it would be `no'.
10628 libltdl_cv_sys_dlopen_deplibs=unknown
10631 # the two cases above should catch all versions of osf <= 5.1. Read
10632 # the comments above for what we know about them.
10633 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10634 # is used to find them so we can finally say `yes'.
10635 libltdl_cv_sys_dlopen_deplibs=yes
10638 libltdl_cv_sys_dlopen_deplibs=yes
10640 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10641 libltdl_cv_sys_dlopen_deplibs=yes
10646 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10647 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10648 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10650 cat >>confdefs.h <<\_ACEOF
10651 #define LTDL_DLOPEN_DEPLIBS 1
10657 for ac_header in argz.h
10659 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10661 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10664 echo $ECHO_N "(cached) $ECHO_C" >&6
10666 ac_res=`eval echo '${'$as_ac_Header'}'`
10667 { echo "$as_me:$LINENO: result: $ac_res" >&5
10668 echo "${ECHO_T}$ac_res" >&6; }
10670 # Is the header compilable?
10671 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10672 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10673 cat >conftest.$ac_ext <<_ACEOF
10676 cat confdefs.h >>conftest.$ac_ext
10677 cat >>conftest.$ac_ext <<_ACEOF
10678 /* end confdefs.h. */
10679 $ac_includes_default
10680 #include <$ac_header>
10682 rm -f conftest.$ac_objext
10683 if { (ac_try="$ac_compile"
10684 case "(($ac_try" in
10685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10686 *) ac_try_echo=$ac_try;;
10688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10689 (eval "$ac_compile") 2>conftest.er1
10691 grep -v '^ *+' conftest.er1 >conftest.err
10693 cat conftest.err >&5
10694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695 (exit $ac_status); } &&
10696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10697 { (case "(($ac_try" in
10698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10699 *) ac_try_echo=$ac_try;;
10701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10702 (eval "$ac_try") 2>&5
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); }; } &&
10706 { ac_try='test -s conftest.$ac_objext'
10707 { (case "(($ac_try" in
10708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10709 *) ac_try_echo=$ac_try;;
10711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10712 (eval "$ac_try") 2>&5
10714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715 (exit $ac_status); }; }; then
10716 ac_header_compiler=yes
10718 echo "$as_me: failed program was:" >&5
10719 sed 's/^/| /' conftest.$ac_ext >&5
10721 ac_header_compiler=no
10724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10725 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10726 echo "${ECHO_T}$ac_header_compiler" >&6; }
10728 # Is the header present?
10729 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10730 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10731 cat >conftest.$ac_ext <<_ACEOF
10734 cat confdefs.h >>conftest.$ac_ext
10735 cat >>conftest.$ac_ext <<_ACEOF
10736 /* end confdefs.h. */
10737 #include <$ac_header>
10739 if { (ac_try="$ac_cpp conftest.$ac_ext"
10740 case "(($ac_try" in
10741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10742 *) ac_try_echo=$ac_try;;
10744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10745 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10747 grep -v '^ *+' conftest.er1 >conftest.err
10749 cat conftest.err >&5
10750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751 (exit $ac_status); } >/dev/null; then
10752 if test -s conftest.err; then
10753 ac_cpp_err=$ac_c_preproc_warn_flag
10754 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10761 if test -z "$ac_cpp_err"; then
10762 ac_header_preproc=yes
10764 echo "$as_me: failed program was:" >&5
10765 sed 's/^/| /' conftest.$ac_ext >&5
10767 ac_header_preproc=no
10770 rm -f conftest.err conftest.$ac_ext
10771 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10772 echo "${ECHO_T}$ac_header_preproc" >&6; }
10774 # So? What about this header?
10775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10777 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10778 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10780 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10781 ac_header_preproc=yes
10784 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10785 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10786 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10787 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10788 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10789 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10790 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10791 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10793 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10794 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10795 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10797 ## ------------------------------------ ##
10798 ## Report this to http://llvm.org/bugs/ ##
10799 ## ------------------------------------ ##
10801 ) | sed "s/^/$as_me: WARNING: /" >&2
10804 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10807 echo $ECHO_N "(cached) $ECHO_C" >&6
10809 eval "$as_ac_Header=\$ac_header_preproc"
10811 ac_res=`eval echo '${'$as_ac_Header'}'`
10812 { echo "$as_me:$LINENO: result: $ac_res" >&5
10813 echo "${ECHO_T}$ac_res" >&6; }
10816 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10817 cat >>confdefs.h <<_ACEOF
10818 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10826 { echo "$as_me:$LINENO: checking for error_t" >&5
10827 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10828 if test "${ac_cv_type_error_t+set}" = set; then
10829 echo $ECHO_N "(cached) $ECHO_C" >&6
10831 cat >conftest.$ac_ext <<_ACEOF
10834 cat confdefs.h >>conftest.$ac_ext
10835 cat >>conftest.$ac_ext <<_ACEOF
10836 /* end confdefs.h. */
10841 typedef error_t ac__type_new_;
10845 if ((ac__type_new_ *) 0)
10847 if (sizeof (ac__type_new_))
10853 rm -f conftest.$ac_objext
10854 if { (ac_try="$ac_compile"
10855 case "(($ac_try" in
10856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10857 *) ac_try_echo=$ac_try;;
10859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10860 (eval "$ac_compile") 2>conftest.er1
10862 grep -v '^ *+' conftest.er1 >conftest.err
10864 cat conftest.err >&5
10865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866 (exit $ac_status); } &&
10867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10868 { (case "(($ac_try" in
10869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10870 *) ac_try_echo=$ac_try;;
10872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10873 (eval "$ac_try") 2>&5
10875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876 (exit $ac_status); }; } &&
10877 { ac_try='test -s conftest.$ac_objext'
10878 { (case "(($ac_try" in
10879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10880 *) ac_try_echo=$ac_try;;
10882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10883 (eval "$ac_try") 2>&5
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); }; }; then
10887 ac_cv_type_error_t=yes
10889 echo "$as_me: failed program was:" >&5
10890 sed 's/^/| /' conftest.$ac_ext >&5
10892 ac_cv_type_error_t=no
10895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10897 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10898 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10899 if test $ac_cv_type_error_t = yes; then
10901 cat >>confdefs.h <<_ACEOF
10902 #define HAVE_ERROR_T 1
10908 cat >>confdefs.h <<\_ACEOF
10909 #define error_t int
10920 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10922 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10923 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10924 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10925 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10926 echo $ECHO_N "(cached) $ECHO_C" >&6
10928 cat >conftest.$ac_ext <<_ACEOF
10931 cat confdefs.h >>conftest.$ac_ext
10932 cat >>conftest.$ac_ext <<_ACEOF
10933 /* end confdefs.h. */
10934 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10935 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10936 #define $ac_func innocuous_$ac_func
10938 /* System header to define __stub macros and hopefully few prototypes,
10939 which can conflict with char $ac_func (); below.
10940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10941 <limits.h> exists even on freestanding compilers. */
10944 # include <limits.h>
10946 # include <assert.h>
10951 /* Override any GCC internal prototype to avoid an error.
10952 Use char because int might match the return type of a GCC
10953 builtin and then its argument prototype would still apply. */
10958 /* The GNU C library defines this for functions which it implements
10959 to always fail with ENOSYS. Some functions are actually named
10960 something starting with __ and the normal name is an alias. */
10961 #if defined __stub_$ac_func || defined __stub___$ac_func
10968 return $ac_func ();
10973 rm -f conftest.$ac_objext conftest$ac_exeext
10974 if { (ac_try="$ac_link"
10975 case "(($ac_try" in
10976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10977 *) ac_try_echo=$ac_try;;
10979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10980 (eval "$ac_link") 2>conftest.er1
10982 grep -v '^ *+' conftest.er1 >conftest.err
10984 cat conftest.err >&5
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); } &&
10987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10988 { (case "(($ac_try" in
10989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10990 *) ac_try_echo=$ac_try;;
10992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10993 (eval "$ac_try") 2>&5
10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); }; } &&
10997 { ac_try='test -s conftest$ac_exeext'
10998 { (case "(($ac_try" in
10999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11000 *) ac_try_echo=$ac_try;;
11002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11003 (eval "$ac_try") 2>&5
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); }; }; then
11007 eval "$as_ac_var=yes"
11009 echo "$as_me: failed program was:" >&5
11010 sed 's/^/| /' conftest.$ac_ext >&5
11012 eval "$as_ac_var=no"
11015 rm -f core conftest.err conftest.$ac_objext \
11016 conftest$ac_exeext conftest.$ac_ext
11018 ac_res=`eval echo '${'$as_ac_var'}'`
11019 { echo "$as_me:$LINENO: result: $ac_res" >&5
11020 echo "${ECHO_T}$ac_res" >&6; }
11021 if test `eval echo '${'$as_ac_var'}'` = yes; then
11022 cat >>confdefs.h <<_ACEOF
11023 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11056 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11059 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11061 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11064 echo $ECHO_N "(cached) $ECHO_C" >&6
11066 ac_res=`eval echo '${'$as_ac_Header'}'`
11067 { echo "$as_me:$LINENO: result: $ac_res" >&5
11068 echo "${ECHO_T}$ac_res" >&6; }
11070 # Is the header compilable?
11071 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11072 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11073 cat >conftest.$ac_ext <<_ACEOF
11076 cat confdefs.h >>conftest.$ac_ext
11077 cat >>conftest.$ac_ext <<_ACEOF
11078 /* end confdefs.h. */
11079 $ac_includes_default
11080 #include <$ac_header>
11082 rm -f conftest.$ac_objext
11083 if { (ac_try="$ac_compile"
11084 case "(($ac_try" in
11085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11086 *) ac_try_echo=$ac_try;;
11088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11089 (eval "$ac_compile") 2>conftest.er1
11091 grep -v '^ *+' conftest.er1 >conftest.err
11093 cat conftest.err >&5
11094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095 (exit $ac_status); } &&
11096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11097 { (case "(($ac_try" in
11098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11099 *) ac_try_echo=$ac_try;;
11101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11102 (eval "$ac_try") 2>&5
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); }; } &&
11106 { ac_try='test -s conftest.$ac_objext'
11107 { (case "(($ac_try" in
11108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11109 *) ac_try_echo=$ac_try;;
11111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11112 (eval "$ac_try") 2>&5
11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115 (exit $ac_status); }; }; then
11116 ac_header_compiler=yes
11118 echo "$as_me: failed program was:" >&5
11119 sed 's/^/| /' conftest.$ac_ext >&5
11121 ac_header_compiler=no
11124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11125 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11126 echo "${ECHO_T}$ac_header_compiler" >&6; }
11128 # Is the header present?
11129 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11130 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11131 cat >conftest.$ac_ext <<_ACEOF
11134 cat confdefs.h >>conftest.$ac_ext
11135 cat >>conftest.$ac_ext <<_ACEOF
11136 /* end confdefs.h. */
11137 #include <$ac_header>
11139 if { (ac_try="$ac_cpp conftest.$ac_ext"
11140 case "(($ac_try" in
11141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11142 *) ac_try_echo=$ac_try;;
11144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11145 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11147 grep -v '^ *+' conftest.er1 >conftest.err
11149 cat conftest.err >&5
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); } >/dev/null; then
11152 if test -s conftest.err; then
11153 ac_cpp_err=$ac_c_preproc_warn_flag
11154 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11161 if test -z "$ac_cpp_err"; then
11162 ac_header_preproc=yes
11164 echo "$as_me: failed program was:" >&5
11165 sed 's/^/| /' conftest.$ac_ext >&5
11167 ac_header_preproc=no
11170 rm -f conftest.err conftest.$ac_ext
11171 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11172 echo "${ECHO_T}$ac_header_preproc" >&6; }
11174 # So? What about this header?
11175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11177 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11178 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11180 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11181 ac_header_preproc=yes
11184 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11185 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11186 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11187 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11188 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11189 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11190 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11191 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11193 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11194 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11195 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11197 ## ------------------------------------ ##
11198 ## Report this to http://llvm.org/bugs/ ##
11199 ## ------------------------------------ ##
11201 ) | sed "s/^/$as_me: WARNING: /" >&2
11204 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11206 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11207 echo $ECHO_N "(cached) $ECHO_C" >&6
11209 eval "$as_ac_Header=\$ac_header_preproc"
11211 ac_res=`eval echo '${'$as_ac_Header'}'`
11212 { echo "$as_me:$LINENO: result: $ac_res" >&5
11213 echo "${ECHO_T}$ac_res" >&6; }
11216 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11217 cat >>confdefs.h <<_ACEOF
11218 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11229 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11231 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11233 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11236 echo $ECHO_N "(cached) $ECHO_C" >&6
11238 ac_res=`eval echo '${'$as_ac_Header'}'`
11239 { echo "$as_me:$LINENO: result: $ac_res" >&5
11240 echo "${ECHO_T}$ac_res" >&6; }
11242 # Is the header compilable?
11243 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11244 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11245 cat >conftest.$ac_ext <<_ACEOF
11248 cat confdefs.h >>conftest.$ac_ext
11249 cat >>conftest.$ac_ext <<_ACEOF
11250 /* end confdefs.h. */
11251 $ac_includes_default
11252 #include <$ac_header>
11254 rm -f conftest.$ac_objext
11255 if { (ac_try="$ac_compile"
11256 case "(($ac_try" in
11257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11258 *) ac_try_echo=$ac_try;;
11260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11261 (eval "$ac_compile") 2>conftest.er1
11263 grep -v '^ *+' conftest.er1 >conftest.err
11265 cat conftest.err >&5
11266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267 (exit $ac_status); } &&
11268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11269 { (case "(($ac_try" in
11270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11271 *) ac_try_echo=$ac_try;;
11273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11274 (eval "$ac_try") 2>&5
11276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277 (exit $ac_status); }; } &&
11278 { ac_try='test -s conftest.$ac_objext'
11279 { (case "(($ac_try" in
11280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11281 *) ac_try_echo=$ac_try;;
11283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11284 (eval "$ac_try") 2>&5
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); }; }; then
11288 ac_header_compiler=yes
11290 echo "$as_me: failed program was:" >&5
11291 sed 's/^/| /' conftest.$ac_ext >&5
11293 ac_header_compiler=no
11296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11297 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11298 echo "${ECHO_T}$ac_header_compiler" >&6; }
11300 # Is the header present?
11301 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11302 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11303 cat >conftest.$ac_ext <<_ACEOF
11306 cat confdefs.h >>conftest.$ac_ext
11307 cat >>conftest.$ac_ext <<_ACEOF
11308 /* end confdefs.h. */
11309 #include <$ac_header>
11311 if { (ac_try="$ac_cpp conftest.$ac_ext"
11312 case "(($ac_try" in
11313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11314 *) ac_try_echo=$ac_try;;
11316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11319 grep -v '^ *+' conftest.er1 >conftest.err
11321 cat conftest.err >&5
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); } >/dev/null; then
11324 if test -s conftest.err; then
11325 ac_cpp_err=$ac_c_preproc_warn_flag
11326 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11333 if test -z "$ac_cpp_err"; then
11334 ac_header_preproc=yes
11336 echo "$as_me: failed program was:" >&5
11337 sed 's/^/| /' conftest.$ac_ext >&5
11339 ac_header_preproc=no
11342 rm -f conftest.err conftest.$ac_ext
11343 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11344 echo "${ECHO_T}$ac_header_preproc" >&6; }
11346 # So? What about this header?
11347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11349 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11350 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11352 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11353 ac_header_preproc=yes
11356 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11357 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11358 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11359 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11360 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11361 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11362 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11363 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11365 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11366 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11367 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11369 ## ------------------------------------ ##
11370 ## Report this to http://llvm.org/bugs/ ##
11371 ## ------------------------------------ ##
11373 ) | sed "s/^/$as_me: WARNING: /" >&2
11376 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11379 echo $ECHO_N "(cached) $ECHO_C" >&6
11381 eval "$as_ac_Header=\$ac_header_preproc"
11383 ac_res=`eval echo '${'$as_ac_Header'}'`
11384 { echo "$as_me:$LINENO: result: $ac_res" >&5
11385 echo "${ECHO_T}$ac_res" >&6; }
11388 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11389 cat >>confdefs.h <<_ACEOF
11390 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11399 for ac_header in string.h strings.h
11401 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11403 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11406 echo $ECHO_N "(cached) $ECHO_C" >&6
11408 ac_res=`eval echo '${'$as_ac_Header'}'`
11409 { echo "$as_me:$LINENO: result: $ac_res" >&5
11410 echo "${ECHO_T}$ac_res" >&6; }
11412 # Is the header compilable?
11413 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11414 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11415 cat >conftest.$ac_ext <<_ACEOF
11418 cat confdefs.h >>conftest.$ac_ext
11419 cat >>conftest.$ac_ext <<_ACEOF
11420 /* end confdefs.h. */
11421 $ac_includes_default
11422 #include <$ac_header>
11424 rm -f conftest.$ac_objext
11425 if { (ac_try="$ac_compile"
11426 case "(($ac_try" in
11427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11428 *) ac_try_echo=$ac_try;;
11430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11431 (eval "$ac_compile") 2>conftest.er1
11433 grep -v '^ *+' conftest.er1 >conftest.err
11435 cat conftest.err >&5
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); } &&
11438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11439 { (case "(($ac_try" in
11440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11441 *) ac_try_echo=$ac_try;;
11443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11444 (eval "$ac_try") 2>&5
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); }; } &&
11448 { ac_try='test -s conftest.$ac_objext'
11449 { (case "(($ac_try" in
11450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11451 *) ac_try_echo=$ac_try;;
11453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11454 (eval "$ac_try") 2>&5
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); }; }; then
11458 ac_header_compiler=yes
11460 echo "$as_me: failed program was:" >&5
11461 sed 's/^/| /' conftest.$ac_ext >&5
11463 ac_header_compiler=no
11466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11467 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11468 echo "${ECHO_T}$ac_header_compiler" >&6; }
11470 # Is the header present?
11471 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11472 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11473 cat >conftest.$ac_ext <<_ACEOF
11476 cat confdefs.h >>conftest.$ac_ext
11477 cat >>conftest.$ac_ext <<_ACEOF
11478 /* end confdefs.h. */
11479 #include <$ac_header>
11481 if { (ac_try="$ac_cpp conftest.$ac_ext"
11482 case "(($ac_try" in
11483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11484 *) ac_try_echo=$ac_try;;
11486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11489 grep -v '^ *+' conftest.er1 >conftest.err
11491 cat conftest.err >&5
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493 (exit $ac_status); } >/dev/null; then
11494 if test -s conftest.err; then
11495 ac_cpp_err=$ac_c_preproc_warn_flag
11496 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11503 if test -z "$ac_cpp_err"; then
11504 ac_header_preproc=yes
11506 echo "$as_me: failed program was:" >&5
11507 sed 's/^/| /' conftest.$ac_ext >&5
11509 ac_header_preproc=no
11512 rm -f conftest.err conftest.$ac_ext
11513 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11514 echo "${ECHO_T}$ac_header_preproc" >&6; }
11516 # So? What about this header?
11517 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11519 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11520 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11522 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11523 ac_header_preproc=yes
11526 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11527 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11528 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11529 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11530 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11531 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11532 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11533 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11535 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11536 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11537 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11539 ## ------------------------------------ ##
11540 ## Report this to http://llvm.org/bugs/ ##
11541 ## ------------------------------------ ##
11543 ) | sed "s/^/$as_me: WARNING: /" >&2
11546 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11549 echo $ECHO_N "(cached) $ECHO_C" >&6
11551 eval "$as_ac_Header=\$ac_header_preproc"
11553 ac_res=`eval echo '${'$as_ac_Header'}'`
11554 { echo "$as_me:$LINENO: result: $ac_res" >&5
11555 echo "${ECHO_T}$ac_res" >&6; }
11558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11559 cat >>confdefs.h <<_ACEOF
11560 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11570 for ac_func in strchr index
11572 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11573 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11574 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11575 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11576 echo $ECHO_N "(cached) $ECHO_C" >&6
11578 cat >conftest.$ac_ext <<_ACEOF
11581 cat confdefs.h >>conftest.$ac_ext
11582 cat >>conftest.$ac_ext <<_ACEOF
11583 /* end confdefs.h. */
11584 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11586 #define $ac_func innocuous_$ac_func
11588 /* System header to define __stub macros and hopefully few prototypes,
11589 which can conflict with char $ac_func (); below.
11590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11591 <limits.h> exists even on freestanding compilers. */
11594 # include <limits.h>
11596 # include <assert.h>
11601 /* Override any GCC internal prototype to avoid an error.
11602 Use char because int might match the return type of a GCC
11603 builtin and then its argument prototype would still apply. */
11608 /* The GNU C library defines this for functions which it implements
11609 to always fail with ENOSYS. Some functions are actually named
11610 something starting with __ and the normal name is an alias. */
11611 #if defined __stub_$ac_func || defined __stub___$ac_func
11618 return $ac_func ();
11623 rm -f conftest.$ac_objext conftest$ac_exeext
11624 if { (ac_try="$ac_link"
11625 case "(($ac_try" in
11626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11627 *) ac_try_echo=$ac_try;;
11629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11630 (eval "$ac_link") 2>conftest.er1
11632 grep -v '^ *+' conftest.er1 >conftest.err
11634 cat conftest.err >&5
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); } &&
11637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11638 { (case "(($ac_try" in
11639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11640 *) ac_try_echo=$ac_try;;
11642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11643 (eval "$ac_try") 2>&5
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); }; } &&
11647 { ac_try='test -s conftest$ac_exeext'
11648 { (case "(($ac_try" in
11649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11650 *) ac_try_echo=$ac_try;;
11652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11653 (eval "$ac_try") 2>&5
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); }; }; then
11657 eval "$as_ac_var=yes"
11659 echo "$as_me: failed program was:" >&5
11660 sed 's/^/| /' conftest.$ac_ext >&5
11662 eval "$as_ac_var=no"
11665 rm -f core conftest.err conftest.$ac_objext \
11666 conftest$ac_exeext conftest.$ac_ext
11668 ac_res=`eval echo '${'$as_ac_var'}'`
11669 { echo "$as_me:$LINENO: result: $ac_res" >&5
11670 echo "${ECHO_T}$ac_res" >&6; }
11671 if test `eval echo '${'$as_ac_var'}'` = yes; then
11672 cat >>confdefs.h <<_ACEOF
11673 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11681 for ac_func in strrchr rindex
11683 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11684 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11685 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11686 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11687 echo $ECHO_N "(cached) $ECHO_C" >&6
11689 cat >conftest.$ac_ext <<_ACEOF
11692 cat confdefs.h >>conftest.$ac_ext
11693 cat >>conftest.$ac_ext <<_ACEOF
11694 /* end confdefs.h. */
11695 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11697 #define $ac_func innocuous_$ac_func
11699 /* System header to define __stub macros and hopefully few prototypes,
11700 which can conflict with char $ac_func (); below.
11701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11702 <limits.h> exists even on freestanding compilers. */
11705 # include <limits.h>
11707 # include <assert.h>
11712 /* Override any GCC internal prototype to avoid an error.
11713 Use char because int might match the return type of a GCC
11714 builtin and then its argument prototype would still apply. */
11719 /* The GNU C library defines this for functions which it implements
11720 to always fail with ENOSYS. Some functions are actually named
11721 something starting with __ and the normal name is an alias. */
11722 #if defined __stub_$ac_func || defined __stub___$ac_func
11729 return $ac_func ();
11734 rm -f conftest.$ac_objext conftest$ac_exeext
11735 if { (ac_try="$ac_link"
11736 case "(($ac_try" in
11737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11738 *) ac_try_echo=$ac_try;;
11740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11741 (eval "$ac_link") 2>conftest.er1
11743 grep -v '^ *+' conftest.er1 >conftest.err
11745 cat conftest.err >&5
11746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747 (exit $ac_status); } &&
11748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11749 { (case "(($ac_try" in
11750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11751 *) ac_try_echo=$ac_try;;
11753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11754 (eval "$ac_try") 2>&5
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); }; } &&
11758 { ac_try='test -s conftest$ac_exeext'
11759 { (case "(($ac_try" in
11760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11761 *) ac_try_echo=$ac_try;;
11763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11764 (eval "$ac_try") 2>&5
11766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767 (exit $ac_status); }; }; then
11768 eval "$as_ac_var=yes"
11770 echo "$as_me: failed program was:" >&5
11771 sed 's/^/| /' conftest.$ac_ext >&5
11773 eval "$as_ac_var=no"
11776 rm -f core conftest.err conftest.$ac_objext \
11777 conftest$ac_exeext conftest.$ac_ext
11779 ac_res=`eval echo '${'$as_ac_var'}'`
11780 { echo "$as_me:$LINENO: result: $ac_res" >&5
11781 echo "${ECHO_T}$ac_res" >&6; }
11782 if test `eval echo '${'$as_ac_var'}'` = yes; then
11783 cat >>confdefs.h <<_ACEOF
11784 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11792 for ac_func in memcpy bcopy
11794 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11795 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11796 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11797 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11798 echo $ECHO_N "(cached) $ECHO_C" >&6
11800 cat >conftest.$ac_ext <<_ACEOF
11803 cat confdefs.h >>conftest.$ac_ext
11804 cat >>conftest.$ac_ext <<_ACEOF
11805 /* end confdefs.h. */
11806 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11808 #define $ac_func innocuous_$ac_func
11810 /* System header to define __stub macros and hopefully few prototypes,
11811 which can conflict with char $ac_func (); below.
11812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11813 <limits.h> exists even on freestanding compilers. */
11816 # include <limits.h>
11818 # include <assert.h>
11823 /* Override any GCC internal prototype to avoid an error.
11824 Use char because int might match the return type of a GCC
11825 builtin and then its argument prototype would still apply. */
11830 /* The GNU C library defines this for functions which it implements
11831 to always fail with ENOSYS. Some functions are actually named
11832 something starting with __ and the normal name is an alias. */
11833 #if defined __stub_$ac_func || defined __stub___$ac_func
11840 return $ac_func ();
11845 rm -f conftest.$ac_objext conftest$ac_exeext
11846 if { (ac_try="$ac_link"
11847 case "(($ac_try" in
11848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11849 *) ac_try_echo=$ac_try;;
11851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11852 (eval "$ac_link") 2>conftest.er1
11854 grep -v '^ *+' conftest.er1 >conftest.err
11856 cat conftest.err >&5
11857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858 (exit $ac_status); } &&
11859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11860 { (case "(($ac_try" in
11861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11862 *) ac_try_echo=$ac_try;;
11864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11865 (eval "$ac_try") 2>&5
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); }; } &&
11869 { ac_try='test -s conftest$ac_exeext'
11870 { (case "(($ac_try" in
11871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11872 *) ac_try_echo=$ac_try;;
11874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11875 (eval "$ac_try") 2>&5
11877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878 (exit $ac_status); }; }; then
11879 eval "$as_ac_var=yes"
11881 echo "$as_me: failed program was:" >&5
11882 sed 's/^/| /' conftest.$ac_ext >&5
11884 eval "$as_ac_var=no"
11887 rm -f core conftest.err conftest.$ac_objext \
11888 conftest$ac_exeext conftest.$ac_ext
11890 ac_res=`eval echo '${'$as_ac_var'}'`
11891 { echo "$as_me:$LINENO: result: $ac_res" >&5
11892 echo "${ECHO_T}$ac_res" >&6; }
11893 if test `eval echo '${'$as_ac_var'}'` = yes; then
11894 cat >>confdefs.h <<_ACEOF
11895 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11903 for ac_func in memmove strcmp
11905 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11906 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11907 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11908 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11909 echo $ECHO_N "(cached) $ECHO_C" >&6
11911 cat >conftest.$ac_ext <<_ACEOF
11914 cat confdefs.h >>conftest.$ac_ext
11915 cat >>conftest.$ac_ext <<_ACEOF
11916 /* end confdefs.h. */
11917 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11919 #define $ac_func innocuous_$ac_func
11921 /* System header to define __stub macros and hopefully few prototypes,
11922 which can conflict with char $ac_func (); below.
11923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11924 <limits.h> exists even on freestanding compilers. */
11927 # include <limits.h>
11929 # include <assert.h>
11934 /* Override any GCC internal prototype to avoid an error.
11935 Use char because int might match the return type of a GCC
11936 builtin and then its argument prototype would still apply. */
11941 /* The GNU C library defines this for functions which it implements
11942 to always fail with ENOSYS. Some functions are actually named
11943 something starting with __ and the normal name is an alias. */
11944 #if defined __stub_$ac_func || defined __stub___$ac_func
11951 return $ac_func ();
11956 rm -f conftest.$ac_objext conftest$ac_exeext
11957 if { (ac_try="$ac_link"
11958 case "(($ac_try" in
11959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11960 *) ac_try_echo=$ac_try;;
11962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11963 (eval "$ac_link") 2>conftest.er1
11965 grep -v '^ *+' conftest.er1 >conftest.err
11967 cat conftest.err >&5
11968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); } &&
11970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11971 { (case "(($ac_try" in
11972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11973 *) ac_try_echo=$ac_try;;
11975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11976 (eval "$ac_try") 2>&5
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); }; } &&
11980 { ac_try='test -s conftest$ac_exeext'
11981 { (case "(($ac_try" in
11982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11983 *) ac_try_echo=$ac_try;;
11985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11986 (eval "$ac_try") 2>&5
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 (exit $ac_status); }; }; then
11990 eval "$as_ac_var=yes"
11992 echo "$as_me: failed program was:" >&5
11993 sed 's/^/| /' conftest.$ac_ext >&5
11995 eval "$as_ac_var=no"
11998 rm -f core conftest.err conftest.$ac_objext \
11999 conftest$ac_exeext conftest.$ac_ext
12001 ac_res=`eval echo '${'$as_ac_var'}'`
12002 { echo "$as_me:$LINENO: result: $ac_res" >&5
12003 echo "${ECHO_T}$ac_res" >&6; }
12004 if test `eval echo '${'$as_ac_var'}'` = yes; then
12005 cat >>confdefs.h <<_ACEOF
12006 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12015 for ac_func in closedir opendir readdir
12017 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12018 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12019 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12020 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12021 echo $ECHO_N "(cached) $ECHO_C" >&6
12023 cat >conftest.$ac_ext <<_ACEOF
12026 cat confdefs.h >>conftest.$ac_ext
12027 cat >>conftest.$ac_ext <<_ACEOF
12028 /* end confdefs.h. */
12029 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12030 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12031 #define $ac_func innocuous_$ac_func
12033 /* System header to define __stub macros and hopefully few prototypes,
12034 which can conflict with char $ac_func (); below.
12035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12036 <limits.h> exists even on freestanding compilers. */
12039 # include <limits.h>
12041 # include <assert.h>
12046 /* Override any GCC internal prototype to avoid an error.
12047 Use char because int might match the return type of a GCC
12048 builtin and then its argument prototype would still apply. */
12053 /* The GNU C library defines this for functions which it implements
12054 to always fail with ENOSYS. Some functions are actually named
12055 something starting with __ and the normal name is an alias. */
12056 #if defined __stub_$ac_func || defined __stub___$ac_func
12063 return $ac_func ();
12068 rm -f conftest.$ac_objext conftest$ac_exeext
12069 if { (ac_try="$ac_link"
12070 case "(($ac_try" in
12071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12072 *) ac_try_echo=$ac_try;;
12074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12075 (eval "$ac_link") 2>conftest.er1
12077 grep -v '^ *+' conftest.er1 >conftest.err
12079 cat conftest.err >&5
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); } &&
12082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12083 { (case "(($ac_try" in
12084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12085 *) ac_try_echo=$ac_try;;
12087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12088 (eval "$ac_try") 2>&5
12090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091 (exit $ac_status); }; } &&
12092 { ac_try='test -s conftest$ac_exeext'
12093 { (case "(($ac_try" in
12094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12095 *) ac_try_echo=$ac_try;;
12097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12098 (eval "$ac_try") 2>&5
12100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101 (exit $ac_status); }; }; then
12102 eval "$as_ac_var=yes"
12104 echo "$as_me: failed program was:" >&5
12105 sed 's/^/| /' conftest.$ac_ext >&5
12107 eval "$as_ac_var=no"
12110 rm -f core conftest.err conftest.$ac_objext \
12111 conftest$ac_exeext conftest.$ac_ext
12113 ac_res=`eval echo '${'$as_ac_var'}'`
12114 { echo "$as_me:$LINENO: result: $ac_res" >&5
12115 echo "${ECHO_T}$ac_res" >&6; }
12116 if test `eval echo '${'$as_ac_var'}'` = yes; then
12117 cat >>confdefs.h <<_ACEOF
12118 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12126 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12127 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12140 if test "$GCC" != "yes" && test "$ICC" != "yes"
12142 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12143 echo "$as_me: error: gcc|icc required but not found" >&2;}
12144 { (exit 1); exit 1; }; }
12147 if test "$GXX" != "yes" && test "$IXX" != "yes"
12149 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12150 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12151 { (exit 1); exit 1; }; }
12154 if test "$GCC" = "yes"
12156 cat >conftest.$ac_ext <<_ACEOF
12157 #if !defined(__GNUC__) || __GNUC__ < 3
12158 #error Unsupported GCC version
12162 rm -f conftest.$ac_objext
12163 if { (ac_try="$ac_compile"
12164 case "(($ac_try" in
12165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12166 *) ac_try_echo=$ac_try;;
12168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12169 (eval "$ac_compile") 2>conftest.er1
12171 grep -v '^ *+' conftest.er1 >conftest.err
12173 cat conftest.err >&5
12174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175 (exit $ac_status); } &&
12176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12177 { (case "(($ac_try" in
12178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12179 *) ac_try_echo=$ac_try;;
12181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12182 (eval "$ac_try") 2>&5
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); }; } &&
12186 { ac_try='test -s conftest.$ac_objext'
12187 { (case "(($ac_try" in
12188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12189 *) ac_try_echo=$ac_try;;
12191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12192 (eval "$ac_try") 2>&5
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); }; }; then
12198 echo "$as_me: failed program was:" >&5
12199 sed 's/^/| /' conftest.$ac_ext >&5
12201 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12202 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12203 { (exit 1); exit 1; }; }
12206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12209 if test -z "$llvm_cv_gnu_make_command"
12211 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12212 echo "$as_me: error: GNU Make required but not found" >&2;}
12213 { (exit 1); exit 1; }; }
12216 { echo "$as_me:$LINENO: result: ok" >&5
12217 echo "${ECHO_T}ok" >&6; }
12219 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12220 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12221 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12223 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12225 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12226 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12230 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12231 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12232 if test "${ac_cv_lib_m_sin+set}" = set; then
12233 echo $ECHO_N "(cached) $ECHO_C" >&6
12235 ac_check_lib_save_LIBS=$LIBS
12237 cat >conftest.$ac_ext <<_ACEOF
12240 cat confdefs.h >>conftest.$ac_ext
12241 cat >>conftest.$ac_ext <<_ACEOF
12242 /* end confdefs.h. */
12244 /* Override any GCC internal prototype to avoid an error.
12245 Use char because int might match the return type of a GCC
12246 builtin and then its argument prototype would still apply. */
12259 rm -f conftest.$ac_objext conftest$ac_exeext
12260 if { (ac_try="$ac_link"
12261 case "(($ac_try" in
12262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12263 *) ac_try_echo=$ac_try;;
12265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12266 (eval "$ac_link") 2>conftest.er1
12268 grep -v '^ *+' conftest.er1 >conftest.err
12270 cat conftest.err >&5
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); } &&
12273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12274 { (case "(($ac_try" in
12275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12276 *) ac_try_echo=$ac_try;;
12278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12279 (eval "$ac_try") 2>&5
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); }; } &&
12283 { ac_try='test -s conftest$ac_exeext'
12284 { (case "(($ac_try" in
12285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12286 *) ac_try_echo=$ac_try;;
12288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12289 (eval "$ac_try") 2>&5
12291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292 (exit $ac_status); }; }; then
12293 ac_cv_lib_m_sin=yes
12295 echo "$as_me: failed program was:" >&5
12296 sed 's/^/| /' conftest.$ac_ext >&5
12301 rm -f core conftest.err conftest.$ac_objext \
12302 conftest$ac_exeext conftest.$ac_ext
12303 LIBS=$ac_check_lib_save_LIBS
12305 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12306 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12307 if test $ac_cv_lib_m_sin = yes; then
12308 cat >>confdefs.h <<_ACEOF
12309 #define HAVE_LIBM 1
12316 if test "$llvm_cv_os_type" = "MingW" ; then
12318 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12319 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12320 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12321 echo $ECHO_N "(cached) $ECHO_C" >&6
12323 ac_check_lib_save_LIBS=$LIBS
12324 LIBS="-limagehlp $LIBS"
12325 cat >conftest.$ac_ext <<_ACEOF
12328 cat confdefs.h >>conftest.$ac_ext
12329 cat >>conftest.$ac_ext <<_ACEOF
12330 /* end confdefs.h. */
12341 rm -f conftest.$ac_objext conftest$ac_exeext
12342 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
12350 grep -v '^ *+' conftest.er1 >conftest.err
12352 cat conftest.err >&5
12353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354 (exit $ac_status); } &&
12355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12356 { (case "(($ac_try" in
12357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12358 *) ac_try_echo=$ac_try;;
12360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12361 (eval "$ac_try") 2>&5
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); }; } &&
12365 { ac_try='test -s conftest$ac_exeext'
12366 { (case "(($ac_try" in
12367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12368 *) ac_try_echo=$ac_try;;
12370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12371 (eval "$ac_try") 2>&5
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); }; }; then
12375 ac_cv_lib_imagehlp_main=yes
12377 echo "$as_me: failed program was:" >&5
12378 sed 's/^/| /' conftest.$ac_ext >&5
12380 ac_cv_lib_imagehlp_main=no
12383 rm -f core conftest.err conftest.$ac_objext \
12384 conftest$ac_exeext conftest.$ac_ext
12385 LIBS=$ac_check_lib_save_LIBS
12387 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12388 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12389 if test $ac_cv_lib_imagehlp_main = yes; then
12390 cat >>confdefs.h <<_ACEOF
12391 #define HAVE_LIBIMAGEHLP 1
12394 LIBS="-limagehlp $LIBS"
12399 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12400 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12401 if test "${ac_cv_lib_psapi_main+set}" = set; then
12402 echo $ECHO_N "(cached) $ECHO_C" >&6
12404 ac_check_lib_save_LIBS=$LIBS
12405 LIBS="-lpsapi $LIBS"
12406 cat >conftest.$ac_ext <<_ACEOF
12409 cat confdefs.h >>conftest.$ac_ext
12410 cat >>conftest.$ac_ext <<_ACEOF
12411 /* end confdefs.h. */
12422 rm -f conftest.$ac_objext conftest$ac_exeext
12423 if { (ac_try="$ac_link"
12424 case "(($ac_try" in
12425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12426 *) ac_try_echo=$ac_try;;
12428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12429 (eval "$ac_link") 2>conftest.er1
12431 grep -v '^ *+' conftest.er1 >conftest.err
12433 cat conftest.err >&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); } &&
12436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12437 { (case "(($ac_try" in
12438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12439 *) ac_try_echo=$ac_try;;
12441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12442 (eval "$ac_try") 2>&5
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); }; } &&
12446 { ac_try='test -s conftest$ac_exeext'
12447 { (case "(($ac_try" in
12448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12449 *) ac_try_echo=$ac_try;;
12451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12452 (eval "$ac_try") 2>&5
12454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455 (exit $ac_status); }; }; then
12456 ac_cv_lib_psapi_main=yes
12458 echo "$as_me: failed program was:" >&5
12459 sed 's/^/| /' conftest.$ac_ext >&5
12461 ac_cv_lib_psapi_main=no
12464 rm -f core conftest.err conftest.$ac_objext \
12465 conftest$ac_exeext conftest.$ac_ext
12466 LIBS=$ac_check_lib_save_LIBS
12468 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12469 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12470 if test $ac_cv_lib_psapi_main = yes; then
12471 cat >>confdefs.h <<_ACEOF
12472 #define HAVE_LIBPSAPI 1
12475 LIBS="-lpsapi $LIBS"
12481 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12482 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12483 if test "${ac_cv_search_dlopen+set}" = set; then
12484 echo $ECHO_N "(cached) $ECHO_C" >&6
12486 ac_func_search_save_LIBS=$LIBS
12487 cat >conftest.$ac_ext <<_ACEOF
12490 cat confdefs.h >>conftest.$ac_ext
12491 cat >>conftest.$ac_ext <<_ACEOF
12492 /* end confdefs.h. */
12494 /* Override any GCC internal prototype to avoid an error.
12495 Use char because int might match the return type of a GCC
12496 builtin and then its argument prototype would still apply. */
12509 for ac_lib in '' dl; do
12510 if test -z "$ac_lib"; then
12511 ac_res="none required"
12514 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12516 rm -f conftest.$ac_objext conftest$ac_exeext
12517 if { (ac_try="$ac_link"
12518 case "(($ac_try" in
12519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12520 *) ac_try_echo=$ac_try;;
12522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12523 (eval "$ac_link") 2>conftest.er1
12525 grep -v '^ *+' conftest.er1 >conftest.err
12527 cat conftest.err >&5
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); } &&
12530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12531 { (case "(($ac_try" in
12532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12533 *) ac_try_echo=$ac_try;;
12535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12536 (eval "$ac_try") 2>&5
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); }; } &&
12540 { ac_try='test -s conftest$ac_exeext'
12541 { (case "(($ac_try" in
12542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12543 *) ac_try_echo=$ac_try;;
12545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12546 (eval "$ac_try") 2>&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); }; }; then
12550 ac_cv_search_dlopen=$ac_res
12552 echo "$as_me: failed program was:" >&5
12553 sed 's/^/| /' conftest.$ac_ext >&5
12558 rm -f core conftest.err conftest.$ac_objext \
12560 if test "${ac_cv_search_dlopen+set}" = set; then
12564 if test "${ac_cv_search_dlopen+set}" = set; then
12567 ac_cv_search_dlopen=no
12569 rm conftest.$ac_ext
12570 LIBS=$ac_func_search_save_LIBS
12572 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12573 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12574 ac_res=$ac_cv_search_dlopen
12575 if test "$ac_res" != no; then
12576 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12578 cat >>confdefs.h <<\_ACEOF
12579 #define HAVE_DLOPEN 1
12583 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12584 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12588 if test "$llvm_cv_enable_libffi" = "yes" ; then
12589 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12590 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12591 if test "${ac_cv_search_ffi_call+set}" = set; then
12592 echo $ECHO_N "(cached) $ECHO_C" >&6
12594 ac_func_search_save_LIBS=$LIBS
12595 cat >conftest.$ac_ext <<_ACEOF
12598 cat confdefs.h >>conftest.$ac_ext
12599 cat >>conftest.$ac_ext <<_ACEOF
12600 /* end confdefs.h. */
12602 /* Override any GCC internal prototype to avoid an error.
12603 Use char because int might match the return type of a GCC
12604 builtin and then its argument prototype would still apply. */
12612 return ffi_call ();
12617 for ac_lib in '' ffi; do
12618 if test -z "$ac_lib"; then
12619 ac_res="none required"
12622 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12624 rm -f conftest.$ac_objext conftest$ac_exeext
12625 if { (ac_try="$ac_link"
12626 case "(($ac_try" in
12627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12628 *) ac_try_echo=$ac_try;;
12630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12631 (eval "$ac_link") 2>conftest.er1
12633 grep -v '^ *+' conftest.er1 >conftest.err
12635 cat conftest.err >&5
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); } &&
12638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12639 { (case "(($ac_try" in
12640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12641 *) ac_try_echo=$ac_try;;
12643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12644 (eval "$ac_try") 2>&5
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); }; } &&
12648 { ac_try='test -s conftest$ac_exeext'
12649 { (case "(($ac_try" in
12650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12651 *) ac_try_echo=$ac_try;;
12653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12654 (eval "$ac_try") 2>&5
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); }; }; then
12658 ac_cv_search_ffi_call=$ac_res
12660 echo "$as_me: failed program was:" >&5
12661 sed 's/^/| /' conftest.$ac_ext >&5
12666 rm -f core conftest.err conftest.$ac_objext \
12668 if test "${ac_cv_search_ffi_call+set}" = set; then
12672 if test "${ac_cv_search_ffi_call+set}" = set; then
12675 ac_cv_search_ffi_call=no
12677 rm conftest.$ac_ext
12678 LIBS=$ac_func_search_save_LIBS
12680 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12681 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12682 ac_res=$ac_cv_search_ffi_call
12683 if test "$ac_res" != no; then
12684 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12686 cat >>confdefs.h <<\_ACEOF
12687 #define HAVE_FFI_CALL 1
12691 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12692 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12693 { (exit 1); exit 1; }; }
12698 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12699 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12700 if test "${ac_cv_search_mallinfo+set}" = set; then
12701 echo $ECHO_N "(cached) $ECHO_C" >&6
12703 ac_func_search_save_LIBS=$LIBS
12704 cat >conftest.$ac_ext <<_ACEOF
12707 cat confdefs.h >>conftest.$ac_ext
12708 cat >>conftest.$ac_ext <<_ACEOF
12709 /* end confdefs.h. */
12711 /* Override any GCC internal prototype to avoid an error.
12712 Use char because int might match the return type of a GCC
12713 builtin and then its argument prototype would still apply. */
12721 return mallinfo ();
12726 for ac_lib in '' malloc; do
12727 if test -z "$ac_lib"; then
12728 ac_res="none required"
12731 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12733 rm -f conftest.$ac_objext conftest$ac_exeext
12734 if { (ac_try="$ac_link"
12735 case "(($ac_try" in
12736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12737 *) ac_try_echo=$ac_try;;
12739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12740 (eval "$ac_link") 2>conftest.er1
12742 grep -v '^ *+' conftest.er1 >conftest.err
12744 cat conftest.err >&5
12745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746 (exit $ac_status); } &&
12747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12748 { (case "(($ac_try" in
12749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12750 *) ac_try_echo=$ac_try;;
12752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12753 (eval "$ac_try") 2>&5
12755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756 (exit $ac_status); }; } &&
12757 { ac_try='test -s conftest$ac_exeext'
12758 { (case "(($ac_try" in
12759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12760 *) ac_try_echo=$ac_try;;
12762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12763 (eval "$ac_try") 2>&5
12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766 (exit $ac_status); }; }; then
12767 ac_cv_search_mallinfo=$ac_res
12769 echo "$as_me: failed program was:" >&5
12770 sed 's/^/| /' conftest.$ac_ext >&5
12775 rm -f core conftest.err conftest.$ac_objext \
12777 if test "${ac_cv_search_mallinfo+set}" = set; then
12781 if test "${ac_cv_search_mallinfo+set}" = set; then
12784 ac_cv_search_mallinfo=no
12786 rm conftest.$ac_ext
12787 LIBS=$ac_func_search_save_LIBS
12789 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12790 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12791 ac_res=$ac_cv_search_mallinfo
12792 if test "$ac_res" != no; then
12793 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12795 cat >>confdefs.h <<\_ACEOF
12796 #define HAVE_MALLINFO 1
12802 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12804 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12805 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12806 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12807 echo $ECHO_N "(cached) $ECHO_C" >&6
12809 ac_check_lib_save_LIBS=$LIBS
12810 LIBS="-lpthread $LIBS"
12811 cat >conftest.$ac_ext <<_ACEOF
12814 cat confdefs.h >>conftest.$ac_ext
12815 cat >>conftest.$ac_ext <<_ACEOF
12816 /* end confdefs.h. */
12818 /* Override any GCC internal prototype to avoid an error.
12819 Use char because int might match the return type of a GCC
12820 builtin and then its argument prototype would still apply. */
12824 char pthread_mutex_init ();
12828 return pthread_mutex_init ();
12833 rm -f conftest.$ac_objext conftest$ac_exeext
12834 if { (ac_try="$ac_link"
12835 case "(($ac_try" in
12836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12837 *) ac_try_echo=$ac_try;;
12839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12840 (eval "$ac_link") 2>conftest.er1
12842 grep -v '^ *+' conftest.er1 >conftest.err
12844 cat conftest.err >&5
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); } &&
12847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12848 { (case "(($ac_try" in
12849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12850 *) ac_try_echo=$ac_try;;
12852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12853 (eval "$ac_try") 2>&5
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); }; } &&
12857 { ac_try='test -s conftest$ac_exeext'
12858 { (case "(($ac_try" in
12859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12860 *) ac_try_echo=$ac_try;;
12862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12863 (eval "$ac_try") 2>&5
12865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866 (exit $ac_status); }; }; then
12867 ac_cv_lib_pthread_pthread_mutex_init=yes
12869 echo "$as_me: failed program was:" >&5
12870 sed 's/^/| /' conftest.$ac_ext >&5
12872 ac_cv_lib_pthread_pthread_mutex_init=no
12875 rm -f core conftest.err conftest.$ac_objext \
12876 conftest$ac_exeext conftest.$ac_ext
12877 LIBS=$ac_check_lib_save_LIBS
12879 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12880 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12881 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12882 cat >>confdefs.h <<_ACEOF
12883 #define HAVE_LIBPTHREAD 1
12886 LIBS="-lpthread $LIBS"
12890 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12891 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12892 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12893 echo $ECHO_N "(cached) $ECHO_C" >&6
12895 ac_func_search_save_LIBS=$LIBS
12896 cat >conftest.$ac_ext <<_ACEOF
12899 cat confdefs.h >>conftest.$ac_ext
12900 cat >>conftest.$ac_ext <<_ACEOF
12901 /* end confdefs.h. */
12903 /* Override any GCC internal prototype to avoid an error.
12904 Use char because int might match the return type of a GCC
12905 builtin and then its argument prototype would still apply. */
12909 char pthread_mutex_lock ();
12913 return pthread_mutex_lock ();
12918 for ac_lib in '' pthread; do
12919 if test -z "$ac_lib"; then
12920 ac_res="none required"
12923 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12925 rm -f conftest.$ac_objext conftest$ac_exeext
12926 if { (ac_try="$ac_link"
12927 case "(($ac_try" in
12928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12929 *) ac_try_echo=$ac_try;;
12931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12932 (eval "$ac_link") 2>conftest.er1
12934 grep -v '^ *+' conftest.er1 >conftest.err
12936 cat conftest.err >&5
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); } &&
12939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12940 { (case "(($ac_try" in
12941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12942 *) ac_try_echo=$ac_try;;
12944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12945 (eval "$ac_try") 2>&5
12947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948 (exit $ac_status); }; } &&
12949 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12959 ac_cv_search_pthread_mutex_lock=$ac_res
12961 echo "$as_me: failed program was:" >&5
12962 sed 's/^/| /' conftest.$ac_ext >&5
12967 rm -f core conftest.err conftest.$ac_objext \
12969 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12973 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12976 ac_cv_search_pthread_mutex_lock=no
12978 rm conftest.$ac_ext
12979 LIBS=$ac_func_search_save_LIBS
12981 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12982 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12983 ac_res=$ac_cv_search_pthread_mutex_lock
12984 if test "$ac_res" != no; then
12985 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12987 cat >>confdefs.h <<\_ACEOF
12988 #define HAVE_PTHREAD_MUTEX_LOCK 1
12993 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12994 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12995 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12996 echo $ECHO_N "(cached) $ECHO_C" >&6
12998 ac_func_search_save_LIBS=$LIBS
12999 cat >conftest.$ac_ext <<_ACEOF
13002 cat confdefs.h >>conftest.$ac_ext
13003 cat >>conftest.$ac_ext <<_ACEOF
13004 /* end confdefs.h. */
13006 /* Override any GCC internal prototype to avoid an error.
13007 Use char because int might match the return type of a GCC
13008 builtin and then its argument prototype would still apply. */
13012 char pthread_rwlock_init ();
13016 return pthread_rwlock_init ();
13021 for ac_lib in '' pthread; do
13022 if test -z "$ac_lib"; then
13023 ac_res="none required"
13026 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13028 rm -f conftest.$ac_objext conftest$ac_exeext
13029 if { (ac_try="$ac_link"
13030 case "(($ac_try" in
13031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13032 *) ac_try_echo=$ac_try;;
13034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13035 (eval "$ac_link") 2>conftest.er1
13037 grep -v '^ *+' conftest.er1 >conftest.err
13039 cat conftest.err >&5
13040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041 (exit $ac_status); } &&
13042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13043 { (case "(($ac_try" in
13044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13045 *) ac_try_echo=$ac_try;;
13047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13048 (eval "$ac_try") 2>&5
13050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051 (exit $ac_status); }; } &&
13052 { ac_try='test -s conftest$ac_exeext'
13053 { (case "(($ac_try" in
13054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13055 *) ac_try_echo=$ac_try;;
13057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13058 (eval "$ac_try") 2>&5
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); }; }; then
13062 ac_cv_search_pthread_rwlock_init=$ac_res
13064 echo "$as_me: failed program was:" >&5
13065 sed 's/^/| /' conftest.$ac_ext >&5
13070 rm -f core conftest.err conftest.$ac_objext \
13072 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13076 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13079 ac_cv_search_pthread_rwlock_init=no
13081 rm conftest.$ac_ext
13082 LIBS=$ac_func_search_save_LIBS
13084 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13085 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13086 ac_res=$ac_cv_search_pthread_rwlock_init
13087 if test "$ac_res" != no; then
13088 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13090 cat >>confdefs.h <<\_ACEOF
13091 #define HAVE_PTHREAD_RWLOCK_INIT 1
13096 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13097 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13098 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13099 echo $ECHO_N "(cached) $ECHO_C" >&6
13101 ac_func_search_save_LIBS=$LIBS
13102 cat >conftest.$ac_ext <<_ACEOF
13105 cat confdefs.h >>conftest.$ac_ext
13106 cat >>conftest.$ac_ext <<_ACEOF
13107 /* end confdefs.h. */
13109 /* Override any GCC internal prototype to avoid an error.
13110 Use char because int might match the return type of a GCC
13111 builtin and then its argument prototype would still apply. */
13115 char pthread_getspecific ();
13119 return pthread_getspecific ();
13124 for ac_lib in '' pthread; do
13125 if test -z "$ac_lib"; then
13126 ac_res="none required"
13129 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13131 rm -f conftest.$ac_objext conftest$ac_exeext
13132 if { (ac_try="$ac_link"
13133 case "(($ac_try" in
13134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13135 *) ac_try_echo=$ac_try;;
13137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13138 (eval "$ac_link") 2>conftest.er1
13140 grep -v '^ *+' conftest.er1 >conftest.err
13142 cat conftest.err >&5
13143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144 (exit $ac_status); } &&
13145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13146 { (case "(($ac_try" in
13147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13148 *) ac_try_echo=$ac_try;;
13150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13151 (eval "$ac_try") 2>&5
13153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); }; } &&
13155 { ac_try='test -s conftest$ac_exeext'
13156 { (case "(($ac_try" in
13157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13158 *) ac_try_echo=$ac_try;;
13160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13161 (eval "$ac_try") 2>&5
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); }; }; then
13165 ac_cv_search_pthread_getspecific=$ac_res
13167 echo "$as_me: failed program was:" >&5
13168 sed 's/^/| /' conftest.$ac_ext >&5
13173 rm -f core conftest.err conftest.$ac_objext \
13175 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13179 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13182 ac_cv_search_pthread_getspecific=no
13184 rm conftest.$ac_ext
13185 LIBS=$ac_func_search_save_LIBS
13187 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13188 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13189 ac_res=$ac_cv_search_pthread_getspecific
13190 if test "$ac_res" != no; then
13191 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13193 cat >>confdefs.h <<\_ACEOF
13194 #define HAVE_PTHREAD_GETSPECIFIC 1
13202 # Check whether --with-udis86 was given.
13203 if test "${with_udis86+set}" = set; then
13204 withval=$with_udis86;
13209 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13212 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13213 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13214 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13215 echo $ECHO_N "(cached) $ECHO_C" >&6
13217 ac_check_lib_save_LIBS=$LIBS
13218 LIBS="-ludis86 $LIBS"
13219 cat >conftest.$ac_ext <<_ACEOF
13222 cat confdefs.h >>conftest.$ac_ext
13223 cat >>conftest.$ac_ext <<_ACEOF
13224 /* end confdefs.h. */
13226 /* Override any GCC internal prototype to avoid an error.
13227 Use char because int might match the return type of a GCC
13228 builtin and then its argument prototype would still apply. */
13241 rm -f conftest.$ac_objext conftest$ac_exeext
13242 if { (ac_try="$ac_link"
13243 case "(($ac_try" in
13244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13245 *) ac_try_echo=$ac_try;;
13247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13248 (eval "$ac_link") 2>conftest.er1
13250 grep -v '^ *+' conftest.er1 >conftest.err
13252 cat conftest.err >&5
13253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254 (exit $ac_status); } &&
13255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13256 { (case "(($ac_try" in
13257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13258 *) ac_try_echo=$ac_try;;
13260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13261 (eval "$ac_try") 2>&5
13263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); }; } &&
13265 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13275 ac_cv_lib_udis86_ud_init=yes
13277 echo "$as_me: failed program was:" >&5
13278 sed 's/^/| /' conftest.$ac_ext >&5
13280 ac_cv_lib_udis86_ud_init=no
13283 rm -f core conftest.err conftest.$ac_objext \
13284 conftest$ac_exeext conftest.$ac_ext
13285 LIBS=$ac_check_lib_save_LIBS
13287 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13288 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13289 if test $ac_cv_lib_udis86_ud_init = yes; then
13290 cat >>confdefs.h <<_ACEOF
13291 #define HAVE_LIBUDIS86 1
13294 LIBS="-ludis86 $LIBS"
13298 echo "Error! You need to have libudis86 around."
13310 cat >>confdefs.h <<_ACEOF
13311 #define USE_UDIS86 $USE_UDIS86
13316 # Check whether --with-oprofile was given.
13317 if test "${with_oprofile+set}" = set; then
13318 withval=$with_oprofile;
13322 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13323 no) llvm_cv_oppath=
13326 *) llvm_cv_oppath="${withval}/lib/oprofile"
13327 CPPFLAGS="-I${withval}/include";;
13329 if test -n "$llvm_cv_oppath" ; then
13330 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13331 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13332 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13333 if test "${ac_cv_search_bfd_init+set}" = set; then
13334 echo $ECHO_N "(cached) $ECHO_C" >&6
13336 ac_func_search_save_LIBS=$LIBS
13337 cat >conftest.$ac_ext <<_ACEOF
13340 cat confdefs.h >>conftest.$ac_ext
13341 cat >>conftest.$ac_ext <<_ACEOF
13342 /* end confdefs.h. */
13344 /* Override any GCC internal prototype to avoid an error.
13345 Use char because int might match the return type of a GCC
13346 builtin and then its argument prototype would still apply. */
13354 return bfd_init ();
13359 for ac_lib in '' bfd; do
13360 if test -z "$ac_lib"; then
13361 ac_res="none required"
13364 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13366 rm -f conftest.$ac_objext conftest$ac_exeext
13367 if { (ac_try="$ac_link"
13368 case "(($ac_try" in
13369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13370 *) ac_try_echo=$ac_try;;
13372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13373 (eval "$ac_link") 2>conftest.er1
13375 grep -v '^ *+' conftest.er1 >conftest.err
13377 cat conftest.err >&5
13378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379 (exit $ac_status); } &&
13380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13381 { (case "(($ac_try" in
13382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13383 *) ac_try_echo=$ac_try;;
13385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13386 (eval "$ac_try") 2>&5
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); }; } &&
13390 { ac_try='test -s conftest$ac_exeext'
13391 { (case "(($ac_try" in
13392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13393 *) ac_try_echo=$ac_try;;
13395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13396 (eval "$ac_try") 2>&5
13398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399 (exit $ac_status); }; }; then
13400 ac_cv_search_bfd_init=$ac_res
13402 echo "$as_me: failed program was:" >&5
13403 sed 's/^/| /' conftest.$ac_ext >&5
13408 rm -f core conftest.err conftest.$ac_objext \
13410 if test "${ac_cv_search_bfd_init+set}" = set; then
13414 if test "${ac_cv_search_bfd_init+set}" = set; then
13417 ac_cv_search_bfd_init=no
13419 rm conftest.$ac_ext
13420 LIBS=$ac_func_search_save_LIBS
13422 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13423 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13424 ac_res=$ac_cv_search_bfd_init
13425 if test "$ac_res" != no; then
13426 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13430 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13431 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13432 if test "${ac_cv_search_op_open_agent+set}" = set; then
13433 echo $ECHO_N "(cached) $ECHO_C" >&6
13435 ac_func_search_save_LIBS=$LIBS
13436 cat >conftest.$ac_ext <<_ACEOF
13439 cat confdefs.h >>conftest.$ac_ext
13440 cat >>conftest.$ac_ext <<_ACEOF
13441 /* end confdefs.h. */
13443 /* Override any GCC internal prototype to avoid an error.
13444 Use char because int might match the return type of a GCC
13445 builtin and then its argument prototype would still apply. */
13449 char op_open_agent ();
13453 return op_open_agent ();
13458 for ac_lib in '' opagent; do
13459 if test -z "$ac_lib"; then
13460 ac_res="none required"
13463 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13465 rm -f conftest.$ac_objext conftest$ac_exeext
13466 if { (ac_try="$ac_link"
13467 case "(($ac_try" in
13468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13469 *) ac_try_echo=$ac_try;;
13471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13472 (eval "$ac_link") 2>conftest.er1
13474 grep -v '^ *+' conftest.er1 >conftest.err
13476 cat conftest.err >&5
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); } &&
13479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13480 { (case "(($ac_try" in
13481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13482 *) ac_try_echo=$ac_try;;
13484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13485 (eval "$ac_try") 2>&5
13487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488 (exit $ac_status); }; } &&
13489 { ac_try='test -s conftest$ac_exeext'
13490 { (case "(($ac_try" in
13491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13492 *) ac_try_echo=$ac_try;;
13494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13495 (eval "$ac_try") 2>&5
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); }; }; then
13499 ac_cv_search_op_open_agent=$ac_res
13501 echo "$as_me: failed program was:" >&5
13502 sed 's/^/| /' conftest.$ac_ext >&5
13507 rm -f core conftest.err conftest.$ac_objext \
13509 if test "${ac_cv_search_op_open_agent+set}" = set; then
13513 if test "${ac_cv_search_op_open_agent+set}" = set; then
13516 ac_cv_search_op_open_agent=no
13518 rm conftest.$ac_ext
13519 LIBS=$ac_func_search_save_LIBS
13521 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13522 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13523 ac_res=$ac_cv_search_op_open_agent
13524 if test "$ac_res" != no; then
13525 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13529 echo "Error! You need to have libopagent around."
13534 if test "${ac_cv_header_opagent_h+set}" = set; then
13535 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13536 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13537 if test "${ac_cv_header_opagent_h+set}" = set; then
13538 echo $ECHO_N "(cached) $ECHO_C" >&6
13540 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13541 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13543 # Is the header compilable?
13544 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13545 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13546 cat >conftest.$ac_ext <<_ACEOF
13549 cat confdefs.h >>conftest.$ac_ext
13550 cat >>conftest.$ac_ext <<_ACEOF
13551 /* end confdefs.h. */
13552 $ac_includes_default
13553 #include <opagent.h>
13555 rm -f conftest.$ac_objext
13556 if { (ac_try="$ac_compile"
13557 case "(($ac_try" in
13558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13559 *) ac_try_echo=$ac_try;;
13561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13562 (eval "$ac_compile") 2>conftest.er1
13564 grep -v '^ *+' conftest.er1 >conftest.err
13566 cat conftest.err >&5
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); } &&
13569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13570 { (case "(($ac_try" in
13571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13572 *) ac_try_echo=$ac_try;;
13574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13575 (eval "$ac_try") 2>&5
13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); }; } &&
13579 { ac_try='test -s conftest.$ac_objext'
13580 { (case "(($ac_try" in
13581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13582 *) ac_try_echo=$ac_try;;
13584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13585 (eval "$ac_try") 2>&5
13587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588 (exit $ac_status); }; }; then
13589 ac_header_compiler=yes
13591 echo "$as_me: failed program was:" >&5
13592 sed 's/^/| /' conftest.$ac_ext >&5
13594 ac_header_compiler=no
13597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13598 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13599 echo "${ECHO_T}$ac_header_compiler" >&6; }
13601 # Is the header present?
13602 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13603 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13604 cat >conftest.$ac_ext <<_ACEOF
13607 cat confdefs.h >>conftest.$ac_ext
13608 cat >>conftest.$ac_ext <<_ACEOF
13609 /* end confdefs.h. */
13610 #include <opagent.h>
13612 if { (ac_try="$ac_cpp conftest.$ac_ext"
13613 case "(($ac_try" in
13614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13615 *) ac_try_echo=$ac_try;;
13617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13618 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13620 grep -v '^ *+' conftest.er1 >conftest.err
13622 cat conftest.err >&5
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); } >/dev/null; then
13625 if test -s conftest.err; then
13626 ac_cpp_err=$ac_c_preproc_warn_flag
13627 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13634 if test -z "$ac_cpp_err"; then
13635 ac_header_preproc=yes
13637 echo "$as_me: failed program was:" >&5
13638 sed 's/^/| /' conftest.$ac_ext >&5
13640 ac_header_preproc=no
13643 rm -f conftest.err conftest.$ac_ext
13644 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13645 echo "${ECHO_T}$ac_header_preproc" >&6; }
13647 # So? What about this header?
13648 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13650 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13651 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13652 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13653 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13654 ac_header_preproc=yes
13657 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13658 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13659 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13660 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13661 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13662 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13663 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13664 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13665 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13666 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13667 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13668 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13670 ## ------------------------------------ ##
13671 ## Report this to http://llvm.org/bugs/ ##
13672 ## ------------------------------------ ##
13674 ) | sed "s/^/$as_me: WARNING: /" >&2
13677 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13678 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13679 if test "${ac_cv_header_opagent_h+set}" = set; then
13680 echo $ECHO_N "(cached) $ECHO_C" >&6
13682 ac_cv_header_opagent_h=$ac_header_preproc
13684 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13685 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13688 if test $ac_cv_header_opagent_h = yes; then
13692 echo "Error! You need to have opagent.h around."
13708 cat >>confdefs.h <<_ACEOF
13709 #define USE_OPROFILE $USE_OPROFILE
13719 ac_header_dirent=no
13720 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13721 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13722 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13723 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13724 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13725 echo $ECHO_N "(cached) $ECHO_C" >&6
13727 cat >conftest.$ac_ext <<_ACEOF
13730 cat confdefs.h >>conftest.$ac_ext
13731 cat >>conftest.$ac_ext <<_ACEOF
13732 /* end confdefs.h. */
13733 #include <sys/types.h>
13745 rm -f conftest.$ac_objext
13746 if { (ac_try="$ac_compile"
13747 case "(($ac_try" in
13748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13749 *) ac_try_echo=$ac_try;;
13751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13752 (eval "$ac_compile") 2>conftest.er1
13754 grep -v '^ *+' conftest.er1 >conftest.err
13756 cat conftest.err >&5
13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758 (exit $ac_status); } &&
13759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13760 { (case "(($ac_try" in
13761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13762 *) ac_try_echo=$ac_try;;
13764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13765 (eval "$ac_try") 2>&5
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); }; } &&
13769 { ac_try='test -s conftest.$ac_objext'
13770 { (case "(($ac_try" in
13771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13772 *) ac_try_echo=$ac_try;;
13774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13775 (eval "$ac_try") 2>&5
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); }; }; then
13779 eval "$as_ac_Header=yes"
13781 echo "$as_me: failed program was:" >&5
13782 sed 's/^/| /' conftest.$ac_ext >&5
13784 eval "$as_ac_Header=no"
13787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13789 ac_res=`eval echo '${'$as_ac_Header'}'`
13790 { echo "$as_me:$LINENO: result: $ac_res" >&5
13791 echo "${ECHO_T}$ac_res" >&6; }
13792 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13793 cat >>confdefs.h <<_ACEOF
13794 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13797 ac_header_dirent=$ac_hdr; break
13801 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13802 if test $ac_header_dirent = dirent.h; then
13803 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13804 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13805 if test "${ac_cv_search_opendir+set}" = set; then
13806 echo $ECHO_N "(cached) $ECHO_C" >&6
13808 ac_func_search_save_LIBS=$LIBS
13809 cat >conftest.$ac_ext <<_ACEOF
13812 cat confdefs.h >>conftest.$ac_ext
13813 cat >>conftest.$ac_ext <<_ACEOF
13814 /* end confdefs.h. */
13816 /* Override any GCC internal prototype to avoid an error.
13817 Use char because int might match the return type of a GCC
13818 builtin and then its argument prototype would still apply. */
13831 for ac_lib in '' dir; do
13832 if test -z "$ac_lib"; then
13833 ac_res="none required"
13836 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13838 rm -f conftest.$ac_objext conftest$ac_exeext
13839 if { (ac_try="$ac_link"
13840 case "(($ac_try" in
13841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13842 *) ac_try_echo=$ac_try;;
13844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13845 (eval "$ac_link") 2>conftest.er1
13847 grep -v '^ *+' conftest.er1 >conftest.err
13849 cat conftest.err >&5
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); } &&
13852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13853 { (case "(($ac_try" in
13854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13855 *) ac_try_echo=$ac_try;;
13857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13858 (eval "$ac_try") 2>&5
13860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 (exit $ac_status); }; } &&
13862 { ac_try='test -s conftest$ac_exeext'
13863 { (case "(($ac_try" in
13864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13865 *) ac_try_echo=$ac_try;;
13867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13868 (eval "$ac_try") 2>&5
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); }; }; then
13872 ac_cv_search_opendir=$ac_res
13874 echo "$as_me: failed program was:" >&5
13875 sed 's/^/| /' conftest.$ac_ext >&5
13880 rm -f core conftest.err conftest.$ac_objext \
13882 if test "${ac_cv_search_opendir+set}" = set; then
13886 if test "${ac_cv_search_opendir+set}" = set; then
13889 ac_cv_search_opendir=no
13891 rm conftest.$ac_ext
13892 LIBS=$ac_func_search_save_LIBS
13894 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13895 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13896 ac_res=$ac_cv_search_opendir
13897 if test "$ac_res" != no; then
13898 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13903 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13904 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13905 if test "${ac_cv_search_opendir+set}" = set; then
13906 echo $ECHO_N "(cached) $ECHO_C" >&6
13908 ac_func_search_save_LIBS=$LIBS
13909 cat >conftest.$ac_ext <<_ACEOF
13912 cat confdefs.h >>conftest.$ac_ext
13913 cat >>conftest.$ac_ext <<_ACEOF
13914 /* end confdefs.h. */
13916 /* Override any GCC internal prototype to avoid an error.
13917 Use char because int might match the return type of a GCC
13918 builtin and then its argument prototype would still apply. */
13931 for ac_lib in '' x; do
13932 if test -z "$ac_lib"; then
13933 ac_res="none required"
13936 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13938 rm -f conftest.$ac_objext conftest$ac_exeext
13939 if { (ac_try="$ac_link"
13940 case "(($ac_try" in
13941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13942 *) ac_try_echo=$ac_try;;
13944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13945 (eval "$ac_link") 2>conftest.er1
13947 grep -v '^ *+' conftest.er1 >conftest.err
13949 cat conftest.err >&5
13950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951 (exit $ac_status); } &&
13952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13953 { (case "(($ac_try" in
13954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13955 *) ac_try_echo=$ac_try;;
13957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13958 (eval "$ac_try") 2>&5
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); }; } &&
13962 { ac_try='test -s conftest$ac_exeext'
13963 { (case "(($ac_try" in
13964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13965 *) ac_try_echo=$ac_try;;
13967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13968 (eval "$ac_try") 2>&5
13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); }; }; then
13972 ac_cv_search_opendir=$ac_res
13974 echo "$as_me: failed program was:" >&5
13975 sed 's/^/| /' conftest.$ac_ext >&5
13980 rm -f core conftest.err conftest.$ac_objext \
13982 if test "${ac_cv_search_opendir+set}" = set; then
13986 if test "${ac_cv_search_opendir+set}" = set; then
13989 ac_cv_search_opendir=no
13991 rm conftest.$ac_ext
13992 LIBS=$ac_func_search_save_LIBS
13994 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13995 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13996 ac_res=$ac_cv_search_opendir
13997 if test "$ac_res" != no; then
13998 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14004 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14005 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14006 if test "${ac_cv_header_mmap_anon+set}" = set; then
14007 echo $ECHO_N "(cached) $ECHO_C" >&6
14010 ac_cpp='$CPP $CPPFLAGS'
14011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14015 cat >conftest.$ac_ext <<_ACEOF
14018 cat confdefs.h >>conftest.$ac_ext
14019 cat >>conftest.$ac_ext <<_ACEOF
14020 /* end confdefs.h. */
14021 #include <sys/mman.h>
14022 #include <unistd.h>
14027 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14032 rm -f conftest.$ac_objext
14033 if { (ac_try="$ac_compile"
14034 case "(($ac_try" in
14035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14036 *) ac_try_echo=$ac_try;;
14038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14039 (eval "$ac_compile") 2>conftest.er1
14041 grep -v '^ *+' conftest.er1 >conftest.err
14043 cat conftest.err >&5
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); } &&
14046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14047 { (case "(($ac_try" in
14048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14049 *) ac_try_echo=$ac_try;;
14051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14052 (eval "$ac_try") 2>&5
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); }; } &&
14056 { ac_try='test -s conftest.$ac_objext'
14057 { (case "(($ac_try" in
14058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14059 *) ac_try_echo=$ac_try;;
14061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14062 (eval "$ac_try") 2>&5
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); }; }; then
14066 ac_cv_header_mmap_anon=yes
14068 echo "$as_me: failed program was:" >&5
14069 sed 's/^/| /' conftest.$ac_ext >&5
14071 ac_cv_header_mmap_anon=no
14074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14076 ac_cpp='$CPP $CPPFLAGS'
14077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14083 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14084 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14085 if test "$ac_cv_header_mmap_anon" = yes; then
14087 cat >>confdefs.h <<\_ACEOF
14088 #define HAVE_MMAP_ANONYMOUS 1
14093 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14094 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14095 if test "${ac_cv_header_stat_broken+set}" = set; then
14096 echo $ECHO_N "(cached) $ECHO_C" >&6
14098 cat >conftest.$ac_ext <<_ACEOF
14101 cat confdefs.h >>conftest.$ac_ext
14102 cat >>conftest.$ac_ext <<_ACEOF
14103 /* end confdefs.h. */
14104 #include <sys/types.h>
14105 #include <sys/stat.h>
14107 #if defined S_ISBLK && defined S_IFDIR
14108 # if S_ISBLK (S_IFDIR)
14113 #if defined S_ISBLK && defined S_IFCHR
14114 # if S_ISBLK (S_IFCHR)
14119 #if defined S_ISLNK && defined S_IFREG
14120 # if S_ISLNK (S_IFREG)
14125 #if defined S_ISSOCK && defined S_IFREG
14126 # if S_ISSOCK (S_IFREG)
14132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14133 $EGREP "You lose" >/dev/null 2>&1; then
14134 ac_cv_header_stat_broken=yes
14136 ac_cv_header_stat_broken=no
14141 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14142 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14143 if test $ac_cv_header_stat_broken = yes; then
14145 cat >>confdefs.h <<\_ACEOF
14146 #define STAT_MACROS_BROKEN 1
14151 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14152 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14153 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14154 echo $ECHO_N "(cached) $ECHO_C" >&6
14156 cat >conftest.$ac_ext <<_ACEOF
14159 cat confdefs.h >>conftest.$ac_ext
14160 cat >>conftest.$ac_ext <<_ACEOF
14161 /* end confdefs.h. */
14162 #include <sys/types.h>
14163 #include <sys/wait.h>
14164 #ifndef WEXITSTATUS
14165 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14168 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14176 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14181 rm -f conftest.$ac_objext
14182 if { (ac_try="$ac_compile"
14183 case "(($ac_try" in
14184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14185 *) ac_try_echo=$ac_try;;
14187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14188 (eval "$ac_compile") 2>conftest.er1
14190 grep -v '^ *+' conftest.er1 >conftest.err
14192 cat conftest.err >&5
14193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194 (exit $ac_status); } &&
14195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14196 { (case "(($ac_try" in
14197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14198 *) ac_try_echo=$ac_try;;
14200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14201 (eval "$ac_try") 2>&5
14203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); }; } &&
14205 { ac_try='test -s conftest.$ac_objext'
14206 { (case "(($ac_try" in
14207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14208 *) ac_try_echo=$ac_try;;
14210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14211 (eval "$ac_try") 2>&5
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); }; }; then
14215 ac_cv_header_sys_wait_h=yes
14217 echo "$as_me: failed program was:" >&5
14218 sed 's/^/| /' conftest.$ac_ext >&5
14220 ac_cv_header_sys_wait_h=no
14223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14225 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14226 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14227 if test $ac_cv_header_sys_wait_h = yes; then
14229 cat >>confdefs.h <<\_ACEOF
14230 #define HAVE_SYS_WAIT_H 1
14235 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14236 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14237 if test "${ac_cv_header_time+set}" = set; then
14238 echo $ECHO_N "(cached) $ECHO_C" >&6
14240 cat >conftest.$ac_ext <<_ACEOF
14243 cat confdefs.h >>conftest.$ac_ext
14244 cat >>conftest.$ac_ext <<_ACEOF
14245 /* end confdefs.h. */
14246 #include <sys/types.h>
14247 #include <sys/time.h>
14253 if ((struct tm *) 0)
14259 rm -f conftest.$ac_objext
14260 if { (ac_try="$ac_compile"
14261 case "(($ac_try" in
14262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14263 *) ac_try_echo=$ac_try;;
14265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14266 (eval "$ac_compile") 2>conftest.er1
14268 grep -v '^ *+' conftest.er1 >conftest.err
14270 cat conftest.err >&5
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); } &&
14273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14274 { (case "(($ac_try" in
14275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14276 *) ac_try_echo=$ac_try;;
14278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14279 (eval "$ac_try") 2>&5
14281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282 (exit $ac_status); }; } &&
14283 { ac_try='test -s conftest.$ac_objext'
14284 { (case "(($ac_try" in
14285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14286 *) ac_try_echo=$ac_try;;
14288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14289 (eval "$ac_try") 2>&5
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); }; }; then
14293 ac_cv_header_time=yes
14295 echo "$as_me: failed program was:" >&5
14296 sed 's/^/| /' conftest.$ac_ext >&5
14298 ac_cv_header_time=no
14301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14303 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14304 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14305 if test $ac_cv_header_time = yes; then
14307 cat >>confdefs.h <<\_ACEOF
14308 #define TIME_WITH_SYS_TIME 1
14320 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14324 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14327 echo $ECHO_N "(cached) $ECHO_C" >&6
14329 ac_res=`eval echo '${'$as_ac_Header'}'`
14330 { echo "$as_me:$LINENO: result: $ac_res" >&5
14331 echo "${ECHO_T}$ac_res" >&6; }
14333 # Is the header compilable?
14334 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14335 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14336 cat >conftest.$ac_ext <<_ACEOF
14339 cat confdefs.h >>conftest.$ac_ext
14340 cat >>conftest.$ac_ext <<_ACEOF
14341 /* end confdefs.h. */
14342 $ac_includes_default
14343 #include <$ac_header>
14345 rm -f conftest.$ac_objext
14346 if { (ac_try="$ac_compile"
14347 case "(($ac_try" in
14348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14349 *) ac_try_echo=$ac_try;;
14351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14352 (eval "$ac_compile") 2>conftest.er1
14354 grep -v '^ *+' conftest.er1 >conftest.err
14356 cat conftest.err >&5
14357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358 (exit $ac_status); } &&
14359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14360 { (case "(($ac_try" in
14361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14362 *) ac_try_echo=$ac_try;;
14364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14365 (eval "$ac_try") 2>&5
14367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368 (exit $ac_status); }; } &&
14369 { ac_try='test -s conftest.$ac_objext'
14370 { (case "(($ac_try" in
14371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14372 *) ac_try_echo=$ac_try;;
14374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14375 (eval "$ac_try") 2>&5
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); }; }; then
14379 ac_header_compiler=yes
14381 echo "$as_me: failed program was:" >&5
14382 sed 's/^/| /' conftest.$ac_ext >&5
14384 ac_header_compiler=no
14387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14388 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14389 echo "${ECHO_T}$ac_header_compiler" >&6; }
14391 # Is the header present?
14392 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14393 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14394 cat >conftest.$ac_ext <<_ACEOF
14397 cat confdefs.h >>conftest.$ac_ext
14398 cat >>conftest.$ac_ext <<_ACEOF
14399 /* end confdefs.h. */
14400 #include <$ac_header>
14402 if { (ac_try="$ac_cpp conftest.$ac_ext"
14403 case "(($ac_try" in
14404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14405 *) ac_try_echo=$ac_try;;
14407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14408 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14410 grep -v '^ *+' conftest.er1 >conftest.err
14412 cat conftest.err >&5
14413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414 (exit $ac_status); } >/dev/null; then
14415 if test -s conftest.err; then
14416 ac_cpp_err=$ac_c_preproc_warn_flag
14417 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14424 if test -z "$ac_cpp_err"; then
14425 ac_header_preproc=yes
14427 echo "$as_me: failed program was:" >&5
14428 sed 's/^/| /' conftest.$ac_ext >&5
14430 ac_header_preproc=no
14433 rm -f conftest.err conftest.$ac_ext
14434 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14435 echo "${ECHO_T}$ac_header_preproc" >&6; }
14437 # So? What about this header?
14438 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14440 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14441 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14443 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14444 ac_header_preproc=yes
14447 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14448 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14449 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14450 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14451 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14452 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14453 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14454 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14456 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14457 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14458 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14460 ## ------------------------------------ ##
14461 ## Report this to http://llvm.org/bugs/ ##
14462 ## ------------------------------------ ##
14464 ) | sed "s/^/$as_me: WARNING: /" >&2
14467 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14470 echo $ECHO_N "(cached) $ECHO_C" >&6
14472 eval "$as_ac_Header=\$ac_header_preproc"
14474 ac_res=`eval echo '${'$as_ac_Header'}'`
14475 { echo "$as_me:$LINENO: result: $ac_res" >&5
14476 echo "${ECHO_T}$ac_res" >&6; }
14479 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14480 cat >>confdefs.h <<_ACEOF
14481 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14494 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14496 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14498 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14501 echo $ECHO_N "(cached) $ECHO_C" >&6
14503 ac_res=`eval echo '${'$as_ac_Header'}'`
14504 { echo "$as_me:$LINENO: result: $ac_res" >&5
14505 echo "${ECHO_T}$ac_res" >&6; }
14507 # Is the header compilable?
14508 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14509 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14510 cat >conftest.$ac_ext <<_ACEOF
14513 cat confdefs.h >>conftest.$ac_ext
14514 cat >>conftest.$ac_ext <<_ACEOF
14515 /* end confdefs.h. */
14516 $ac_includes_default
14517 #include <$ac_header>
14519 rm -f conftest.$ac_objext
14520 if { (ac_try="$ac_compile"
14521 case "(($ac_try" in
14522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14523 *) ac_try_echo=$ac_try;;
14525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14526 (eval "$ac_compile") 2>conftest.er1
14528 grep -v '^ *+' conftest.er1 >conftest.err
14530 cat conftest.err >&5
14531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 (exit $ac_status); } &&
14533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14534 { (case "(($ac_try" in
14535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14536 *) ac_try_echo=$ac_try;;
14538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14539 (eval "$ac_try") 2>&5
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); }; } &&
14543 { ac_try='test -s conftest.$ac_objext'
14544 { (case "(($ac_try" in
14545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14546 *) ac_try_echo=$ac_try;;
14548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14549 (eval "$ac_try") 2>&5
14551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); }; }; then
14553 ac_header_compiler=yes
14555 echo "$as_me: failed program was:" >&5
14556 sed 's/^/| /' conftest.$ac_ext >&5
14558 ac_header_compiler=no
14561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14562 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14563 echo "${ECHO_T}$ac_header_compiler" >&6; }
14565 # Is the header present?
14566 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14567 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14568 cat >conftest.$ac_ext <<_ACEOF
14571 cat confdefs.h >>conftest.$ac_ext
14572 cat >>conftest.$ac_ext <<_ACEOF
14573 /* end confdefs.h. */
14574 #include <$ac_header>
14576 if { (ac_try="$ac_cpp conftest.$ac_ext"
14577 case "(($ac_try" in
14578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14579 *) ac_try_echo=$ac_try;;
14581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14584 grep -v '^ *+' conftest.er1 >conftest.err
14586 cat conftest.err >&5
14587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588 (exit $ac_status); } >/dev/null; then
14589 if test -s conftest.err; then
14590 ac_cpp_err=$ac_c_preproc_warn_flag
14591 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14598 if test -z "$ac_cpp_err"; then
14599 ac_header_preproc=yes
14601 echo "$as_me: failed program was:" >&5
14602 sed 's/^/| /' conftest.$ac_ext >&5
14604 ac_header_preproc=no
14607 rm -f conftest.err conftest.$ac_ext
14608 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14609 echo "${ECHO_T}$ac_header_preproc" >&6; }
14611 # So? What about this header?
14612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14614 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14615 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14617 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14618 ac_header_preproc=yes
14621 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14622 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14623 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14624 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14625 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14626 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14627 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14628 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14630 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14631 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14632 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14634 ## ------------------------------------ ##
14635 ## Report this to http://llvm.org/bugs/ ##
14636 ## ------------------------------------ ##
14638 ) | sed "s/^/$as_me: WARNING: /" >&2
14641 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14644 echo $ECHO_N "(cached) $ECHO_C" >&6
14646 eval "$as_ac_Header=\$ac_header_preproc"
14648 ac_res=`eval echo '${'$as_ac_Header'}'`
14649 { echo "$as_me:$LINENO: result: $ac_res" >&5
14650 echo "${ECHO_T}$ac_res" >&6; }
14653 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14654 cat >>confdefs.h <<_ACEOF
14655 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14664 for ac_header in utime.h windows.h
14666 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14668 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14671 echo $ECHO_N "(cached) $ECHO_C" >&6
14673 ac_res=`eval echo '${'$as_ac_Header'}'`
14674 { echo "$as_me:$LINENO: result: $ac_res" >&5
14675 echo "${ECHO_T}$ac_res" >&6; }
14677 # Is the header compilable?
14678 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14679 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14680 cat >conftest.$ac_ext <<_ACEOF
14683 cat confdefs.h >>conftest.$ac_ext
14684 cat >>conftest.$ac_ext <<_ACEOF
14685 /* end confdefs.h. */
14686 $ac_includes_default
14687 #include <$ac_header>
14689 rm -f conftest.$ac_objext
14690 if { (ac_try="$ac_compile"
14691 case "(($ac_try" in
14692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14693 *) ac_try_echo=$ac_try;;
14695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14696 (eval "$ac_compile") 2>conftest.er1
14698 grep -v '^ *+' conftest.er1 >conftest.err
14700 cat conftest.err >&5
14701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702 (exit $ac_status); } &&
14703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14704 { (case "(($ac_try" in
14705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14706 *) ac_try_echo=$ac_try;;
14708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14709 (eval "$ac_try") 2>&5
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); }; } &&
14713 { ac_try='test -s conftest.$ac_objext'
14714 { (case "(($ac_try" in
14715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14716 *) ac_try_echo=$ac_try;;
14718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14719 (eval "$ac_try") 2>&5
14721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722 (exit $ac_status); }; }; then
14723 ac_header_compiler=yes
14725 echo "$as_me: failed program was:" >&5
14726 sed 's/^/| /' conftest.$ac_ext >&5
14728 ac_header_compiler=no
14731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14732 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14733 echo "${ECHO_T}$ac_header_compiler" >&6; }
14735 # Is the header present?
14736 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14737 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14738 cat >conftest.$ac_ext <<_ACEOF
14741 cat confdefs.h >>conftest.$ac_ext
14742 cat >>conftest.$ac_ext <<_ACEOF
14743 /* end confdefs.h. */
14744 #include <$ac_header>
14746 if { (ac_try="$ac_cpp conftest.$ac_ext"
14747 case "(($ac_try" in
14748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14749 *) ac_try_echo=$ac_try;;
14751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14754 grep -v '^ *+' conftest.er1 >conftest.err
14756 cat conftest.err >&5
14757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758 (exit $ac_status); } >/dev/null; then
14759 if test -s conftest.err; then
14760 ac_cpp_err=$ac_c_preproc_warn_flag
14761 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14768 if test -z "$ac_cpp_err"; then
14769 ac_header_preproc=yes
14771 echo "$as_me: failed program was:" >&5
14772 sed 's/^/| /' conftest.$ac_ext >&5
14774 ac_header_preproc=no
14777 rm -f conftest.err conftest.$ac_ext
14778 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14779 echo "${ECHO_T}$ac_header_preproc" >&6; }
14781 # So? What about this header?
14782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14787 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14788 ac_header_preproc=yes
14791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14794 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14795 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14796 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14797 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14798 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14802 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14804 ## ------------------------------------ ##
14805 ## Report this to http://llvm.org/bugs/ ##
14806 ## ------------------------------------ ##
14808 ) | sed "s/^/$as_me: WARNING: /" >&2
14811 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14814 echo $ECHO_N "(cached) $ECHO_C" >&6
14816 eval "$as_ac_Header=\$ac_header_preproc"
14818 ac_res=`eval echo '${'$as_ac_Header'}'`
14819 { echo "$as_me:$LINENO: result: $ac_res" >&5
14820 echo "${ECHO_T}$ac_res" >&6; }
14823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14824 cat >>confdefs.h <<_ACEOF
14825 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14837 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14839 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14841 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14844 echo $ECHO_N "(cached) $ECHO_C" >&6
14846 ac_res=`eval echo '${'$as_ac_Header'}'`
14847 { echo "$as_me:$LINENO: result: $ac_res" >&5
14848 echo "${ECHO_T}$ac_res" >&6; }
14850 # Is the header compilable?
14851 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14852 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14853 cat >conftest.$ac_ext <<_ACEOF
14856 cat confdefs.h >>conftest.$ac_ext
14857 cat >>conftest.$ac_ext <<_ACEOF
14858 /* end confdefs.h. */
14859 $ac_includes_default
14860 #include <$ac_header>
14862 rm -f conftest.$ac_objext
14863 if { (ac_try="$ac_compile"
14864 case "(($ac_try" in
14865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14866 *) ac_try_echo=$ac_try;;
14868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14869 (eval "$ac_compile") 2>conftest.er1
14871 grep -v '^ *+' conftest.er1 >conftest.err
14873 cat conftest.err >&5
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); } &&
14876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14877 { (case "(($ac_try" in
14878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14879 *) ac_try_echo=$ac_try;;
14881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14882 (eval "$ac_try") 2>&5
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); }; } &&
14886 { ac_try='test -s conftest.$ac_objext'
14887 { (case "(($ac_try" in
14888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14889 *) ac_try_echo=$ac_try;;
14891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14892 (eval "$ac_try") 2>&5
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); }; }; then
14896 ac_header_compiler=yes
14898 echo "$as_me: failed program was:" >&5
14899 sed 's/^/| /' conftest.$ac_ext >&5
14901 ac_header_compiler=no
14904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14905 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14906 echo "${ECHO_T}$ac_header_compiler" >&6; }
14908 # Is the header present?
14909 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14910 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14911 cat >conftest.$ac_ext <<_ACEOF
14914 cat confdefs.h >>conftest.$ac_ext
14915 cat >>conftest.$ac_ext <<_ACEOF
14916 /* end confdefs.h. */
14917 #include <$ac_header>
14919 if { (ac_try="$ac_cpp conftest.$ac_ext"
14920 case "(($ac_try" in
14921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14922 *) ac_try_echo=$ac_try;;
14924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14925 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14927 grep -v '^ *+' conftest.er1 >conftest.err
14929 cat conftest.err >&5
14930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14931 (exit $ac_status); } >/dev/null; then
14932 if test -s conftest.err; then
14933 ac_cpp_err=$ac_c_preproc_warn_flag
14934 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14941 if test -z "$ac_cpp_err"; then
14942 ac_header_preproc=yes
14944 echo "$as_me: failed program was:" >&5
14945 sed 's/^/| /' conftest.$ac_ext >&5
14947 ac_header_preproc=no
14950 rm -f conftest.err conftest.$ac_ext
14951 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14952 echo "${ECHO_T}$ac_header_preproc" >&6; }
14954 # So? What about this header?
14955 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14957 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14958 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14959 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14960 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14961 ac_header_preproc=yes
14964 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14965 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14966 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14967 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14968 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14969 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14970 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14971 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14973 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14974 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14975 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14977 ## ------------------------------------ ##
14978 ## Report this to http://llvm.org/bugs/ ##
14979 ## ------------------------------------ ##
14981 ) | sed "s/^/$as_me: WARNING: /" >&2
14984 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14987 echo $ECHO_N "(cached) $ECHO_C" >&6
14989 eval "$as_ac_Header=\$ac_header_preproc"
14991 ac_res=`eval echo '${'$as_ac_Header'}'`
14992 { echo "$as_me:$LINENO: result: $ac_res" >&5
14993 echo "${ECHO_T}$ac_res" >&6; }
14996 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14997 cat >>confdefs.h <<_ACEOF
14998 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15009 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15011 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15013 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15016 echo $ECHO_N "(cached) $ECHO_C" >&6
15018 ac_res=`eval echo '${'$as_ac_Header'}'`
15019 { echo "$as_me:$LINENO: result: $ac_res" >&5
15020 echo "${ECHO_T}$ac_res" >&6; }
15022 # Is the header compilable?
15023 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15024 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15025 cat >conftest.$ac_ext <<_ACEOF
15028 cat confdefs.h >>conftest.$ac_ext
15029 cat >>conftest.$ac_ext <<_ACEOF
15030 /* end confdefs.h. */
15031 $ac_includes_default
15032 #include <$ac_header>
15034 rm -f conftest.$ac_objext
15035 if { (ac_try="$ac_compile"
15036 case "(($ac_try" in
15037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15038 *) ac_try_echo=$ac_try;;
15040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15041 (eval "$ac_compile") 2>conftest.er1
15043 grep -v '^ *+' conftest.er1 >conftest.err
15045 cat conftest.err >&5
15046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047 (exit $ac_status); } &&
15048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15049 { (case "(($ac_try" in
15050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15051 *) ac_try_echo=$ac_try;;
15053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15054 (eval "$ac_try") 2>&5
15056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); }; } &&
15058 { ac_try='test -s conftest.$ac_objext'
15059 { (case "(($ac_try" in
15060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15061 *) ac_try_echo=$ac_try;;
15063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15064 (eval "$ac_try") 2>&5
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); }; }; then
15068 ac_header_compiler=yes
15070 echo "$as_me: failed program was:" >&5
15071 sed 's/^/| /' conftest.$ac_ext >&5
15073 ac_header_compiler=no
15076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15077 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15078 echo "${ECHO_T}$ac_header_compiler" >&6; }
15080 # Is the header present?
15081 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15082 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15083 cat >conftest.$ac_ext <<_ACEOF
15086 cat confdefs.h >>conftest.$ac_ext
15087 cat >>conftest.$ac_ext <<_ACEOF
15088 /* end confdefs.h. */
15089 #include <$ac_header>
15091 if { (ac_try="$ac_cpp conftest.$ac_ext"
15092 case "(($ac_try" in
15093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15094 *) ac_try_echo=$ac_try;;
15096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15099 grep -v '^ *+' conftest.er1 >conftest.err
15101 cat conftest.err >&5
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); } >/dev/null; then
15104 if test -s conftest.err; then
15105 ac_cpp_err=$ac_c_preproc_warn_flag
15106 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15113 if test -z "$ac_cpp_err"; then
15114 ac_header_preproc=yes
15116 echo "$as_me: failed program was:" >&5
15117 sed 's/^/| /' conftest.$ac_ext >&5
15119 ac_header_preproc=no
15122 rm -f conftest.err conftest.$ac_ext
15123 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15124 echo "${ECHO_T}$ac_header_preproc" >&6; }
15126 # So? What about this header?
15127 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15129 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15130 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15132 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15133 ac_header_preproc=yes
15136 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15137 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15138 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15139 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15140 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15141 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15142 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15143 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15145 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15146 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15147 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15149 ## ------------------------------------ ##
15150 ## Report this to http://llvm.org/bugs/ ##
15151 ## ------------------------------------ ##
15153 ) | sed "s/^/$as_me: WARNING: /" >&2
15156 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15159 echo $ECHO_N "(cached) $ECHO_C" >&6
15161 eval "$as_ac_Header=\$ac_header_preproc"
15163 ac_res=`eval echo '${'$as_ac_Header'}'`
15164 { echo "$as_me:$LINENO: result: $ac_res" >&5
15165 echo "${ECHO_T}$ac_res" >&6; }
15168 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15169 cat >>confdefs.h <<_ACEOF
15170 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15178 for ac_header in valgrind/valgrind.h
15180 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15182 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15185 echo $ECHO_N "(cached) $ECHO_C" >&6
15187 ac_res=`eval echo '${'$as_ac_Header'}'`
15188 { echo "$as_me:$LINENO: result: $ac_res" >&5
15189 echo "${ECHO_T}$ac_res" >&6; }
15191 # Is the header compilable?
15192 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15193 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15194 cat >conftest.$ac_ext <<_ACEOF
15197 cat confdefs.h >>conftest.$ac_ext
15198 cat >>conftest.$ac_ext <<_ACEOF
15199 /* end confdefs.h. */
15200 $ac_includes_default
15201 #include <$ac_header>
15203 rm -f conftest.$ac_objext
15204 if { (ac_try="$ac_compile"
15205 case "(($ac_try" in
15206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15207 *) ac_try_echo=$ac_try;;
15209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15210 (eval "$ac_compile") 2>conftest.er1
15212 grep -v '^ *+' conftest.er1 >conftest.err
15214 cat conftest.err >&5
15215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216 (exit $ac_status); } &&
15217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15218 { (case "(($ac_try" in
15219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15220 *) ac_try_echo=$ac_try;;
15222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15223 (eval "$ac_try") 2>&5
15225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226 (exit $ac_status); }; } &&
15227 { ac_try='test -s conftest.$ac_objext'
15228 { (case "(($ac_try" in
15229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15230 *) ac_try_echo=$ac_try;;
15232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15233 (eval "$ac_try") 2>&5
15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); }; }; then
15237 ac_header_compiler=yes
15239 echo "$as_me: failed program was:" >&5
15240 sed 's/^/| /' conftest.$ac_ext >&5
15242 ac_header_compiler=no
15245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15246 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15247 echo "${ECHO_T}$ac_header_compiler" >&6; }
15249 # Is the header present?
15250 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15251 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15252 cat >conftest.$ac_ext <<_ACEOF
15255 cat confdefs.h >>conftest.$ac_ext
15256 cat >>conftest.$ac_ext <<_ACEOF
15257 /* end confdefs.h. */
15258 #include <$ac_header>
15260 if { (ac_try="$ac_cpp conftest.$ac_ext"
15261 case "(($ac_try" in
15262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15263 *) ac_try_echo=$ac_try;;
15265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15266 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15268 grep -v '^ *+' conftest.er1 >conftest.err
15270 cat conftest.err >&5
15271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272 (exit $ac_status); } >/dev/null; then
15273 if test -s conftest.err; then
15274 ac_cpp_err=$ac_c_preproc_warn_flag
15275 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15282 if test -z "$ac_cpp_err"; then
15283 ac_header_preproc=yes
15285 echo "$as_me: failed program was:" >&5
15286 sed 's/^/| /' conftest.$ac_ext >&5
15288 ac_header_preproc=no
15291 rm -f conftest.err conftest.$ac_ext
15292 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15293 echo "${ECHO_T}$ac_header_preproc" >&6; }
15295 # So? What about this header?
15296 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15298 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15299 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15300 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15301 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15302 ac_header_preproc=yes
15305 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15306 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15307 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15308 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15309 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15310 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15311 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15312 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15314 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15315 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15316 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15318 ## ------------------------------------ ##
15319 ## Report this to http://llvm.org/bugs/ ##
15320 ## ------------------------------------ ##
15322 ) | sed "s/^/$as_me: WARNING: /" >&2
15325 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15328 echo $ECHO_N "(cached) $ECHO_C" >&6
15330 eval "$as_ac_Header=\$ac_header_preproc"
15332 ac_res=`eval echo '${'$as_ac_Header'}'`
15333 { echo "$as_me:$LINENO: result: $ac_res" >&5
15334 echo "${ECHO_T}$ac_res" >&6; }
15337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15338 cat >>confdefs.h <<_ACEOF
15339 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15347 for ac_header in fenv.h
15349 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15351 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15354 echo $ECHO_N "(cached) $ECHO_C" >&6
15356 ac_res=`eval echo '${'$as_ac_Header'}'`
15357 { echo "$as_me:$LINENO: result: $ac_res" >&5
15358 echo "${ECHO_T}$ac_res" >&6; }
15360 # Is the header compilable?
15361 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15362 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15363 cat >conftest.$ac_ext <<_ACEOF
15366 cat confdefs.h >>conftest.$ac_ext
15367 cat >>conftest.$ac_ext <<_ACEOF
15368 /* end confdefs.h. */
15369 $ac_includes_default
15370 #include <$ac_header>
15372 rm -f conftest.$ac_objext
15373 if { (ac_try="$ac_compile"
15374 case "(($ac_try" in
15375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15376 *) ac_try_echo=$ac_try;;
15378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15379 (eval "$ac_compile") 2>conftest.er1
15381 grep -v '^ *+' conftest.er1 >conftest.err
15383 cat conftest.err >&5
15384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385 (exit $ac_status); } &&
15386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15387 { (case "(($ac_try" in
15388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15389 *) ac_try_echo=$ac_try;;
15391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15392 (eval "$ac_try") 2>&5
15394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395 (exit $ac_status); }; } &&
15396 { ac_try='test -s conftest.$ac_objext'
15397 { (case "(($ac_try" in
15398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15399 *) ac_try_echo=$ac_try;;
15401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15402 (eval "$ac_try") 2>&5
15404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405 (exit $ac_status); }; }; then
15406 ac_header_compiler=yes
15408 echo "$as_me: failed program was:" >&5
15409 sed 's/^/| /' conftest.$ac_ext >&5
15411 ac_header_compiler=no
15414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15415 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15416 echo "${ECHO_T}$ac_header_compiler" >&6; }
15418 # Is the header present?
15419 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15420 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15421 cat >conftest.$ac_ext <<_ACEOF
15424 cat confdefs.h >>conftest.$ac_ext
15425 cat >>conftest.$ac_ext <<_ACEOF
15426 /* end confdefs.h. */
15427 #include <$ac_header>
15429 if { (ac_try="$ac_cpp conftest.$ac_ext"
15430 case "(($ac_try" in
15431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15432 *) ac_try_echo=$ac_try;;
15434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15435 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15437 grep -v '^ *+' conftest.er1 >conftest.err
15439 cat conftest.err >&5
15440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441 (exit $ac_status); } >/dev/null; then
15442 if test -s conftest.err; then
15443 ac_cpp_err=$ac_c_preproc_warn_flag
15444 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15451 if test -z "$ac_cpp_err"; then
15452 ac_header_preproc=yes
15454 echo "$as_me: failed program was:" >&5
15455 sed 's/^/| /' conftest.$ac_ext >&5
15457 ac_header_preproc=no
15460 rm -f conftest.err conftest.$ac_ext
15461 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15462 echo "${ECHO_T}$ac_header_preproc" >&6; }
15464 # So? What about this header?
15465 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15467 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15468 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15470 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15471 ac_header_preproc=yes
15474 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15475 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15476 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15477 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15478 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15479 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15480 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15481 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15483 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15484 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15485 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15487 ## ------------------------------------ ##
15488 ## Report this to http://llvm.org/bugs/ ##
15489 ## ------------------------------------ ##
15491 ) | sed "s/^/$as_me: WARNING: /" >&2
15494 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15497 echo $ECHO_N "(cached) $ECHO_C" >&6
15499 eval "$as_ac_Header=\$ac_header_preproc"
15501 ac_res=`eval echo '${'$as_ac_Header'}'`
15502 { echo "$as_me:$LINENO: result: $ac_res" >&5
15503 echo "${ECHO_T}$ac_res" >&6; }
15506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15507 cat >>confdefs.h <<_ACEOF
15508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15515 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15517 for ac_header in pthread.h
15519 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15521 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15524 echo $ECHO_N "(cached) $ECHO_C" >&6
15526 ac_res=`eval echo '${'$as_ac_Header'}'`
15527 { echo "$as_me:$LINENO: result: $ac_res" >&5
15528 echo "${ECHO_T}$ac_res" >&6; }
15530 # Is the header compilable?
15531 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15532 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15533 cat >conftest.$ac_ext <<_ACEOF
15536 cat confdefs.h >>conftest.$ac_ext
15537 cat >>conftest.$ac_ext <<_ACEOF
15538 /* end confdefs.h. */
15539 $ac_includes_default
15540 #include <$ac_header>
15542 rm -f conftest.$ac_objext
15543 if { (ac_try="$ac_compile"
15544 case "(($ac_try" in
15545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15546 *) ac_try_echo=$ac_try;;
15548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15549 (eval "$ac_compile") 2>conftest.er1
15551 grep -v '^ *+' conftest.er1 >conftest.err
15553 cat conftest.err >&5
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); } &&
15556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15557 { (case "(($ac_try" in
15558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15559 *) ac_try_echo=$ac_try;;
15561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15562 (eval "$ac_try") 2>&5
15564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565 (exit $ac_status); }; } &&
15566 { ac_try='test -s conftest.$ac_objext'
15567 { (case "(($ac_try" in
15568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15569 *) ac_try_echo=$ac_try;;
15571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15572 (eval "$ac_try") 2>&5
15574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15575 (exit $ac_status); }; }; then
15576 ac_header_compiler=yes
15578 echo "$as_me: failed program was:" >&5
15579 sed 's/^/| /' conftest.$ac_ext >&5
15581 ac_header_compiler=no
15584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15585 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15586 echo "${ECHO_T}$ac_header_compiler" >&6; }
15588 # Is the header present?
15589 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15590 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15591 cat >conftest.$ac_ext <<_ACEOF
15594 cat confdefs.h >>conftest.$ac_ext
15595 cat >>conftest.$ac_ext <<_ACEOF
15596 /* end confdefs.h. */
15597 #include <$ac_header>
15599 if { (ac_try="$ac_cpp conftest.$ac_ext"
15600 case "(($ac_try" in
15601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15602 *) ac_try_echo=$ac_try;;
15604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15607 grep -v '^ *+' conftest.er1 >conftest.err
15609 cat conftest.err >&5
15610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611 (exit $ac_status); } >/dev/null; then
15612 if test -s conftest.err; then
15613 ac_cpp_err=$ac_c_preproc_warn_flag
15614 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15621 if test -z "$ac_cpp_err"; then
15622 ac_header_preproc=yes
15624 echo "$as_me: failed program was:" >&5
15625 sed 's/^/| /' conftest.$ac_ext >&5
15627 ac_header_preproc=no
15630 rm -f conftest.err conftest.$ac_ext
15631 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15632 echo "${ECHO_T}$ac_header_preproc" >&6; }
15634 # So? What about this header?
15635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15637 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15638 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15640 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15641 ac_header_preproc=yes
15644 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15645 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15646 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15647 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15648 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15649 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15650 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15651 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15653 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15654 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15655 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15657 ## ------------------------------------ ##
15658 ## Report this to http://llvm.org/bugs/ ##
15659 ## ------------------------------------ ##
15661 ) | sed "s/^/$as_me: WARNING: /" >&2
15664 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15667 echo $ECHO_N "(cached) $ECHO_C" >&6
15669 eval "$as_ac_Header=\$ac_header_preproc"
15671 ac_res=`eval echo '${'$as_ac_Header'}'`
15672 { echo "$as_me:$LINENO: result: $ac_res" >&5
15673 echo "${ECHO_T}$ac_res" >&6; }
15676 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15677 cat >>confdefs.h <<_ACEOF
15678 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15694 if test "$llvm_cv_enable_libffi" = "yes" ; then
15697 for ac_header in ffi.h ffi/ffi.h
15699 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15701 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15704 echo $ECHO_N "(cached) $ECHO_C" >&6
15706 ac_res=`eval echo '${'$as_ac_Header'}'`
15707 { echo "$as_me:$LINENO: result: $ac_res" >&5
15708 echo "${ECHO_T}$ac_res" >&6; }
15710 # Is the header compilable?
15711 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15712 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15713 cat >conftest.$ac_ext <<_ACEOF
15716 cat confdefs.h >>conftest.$ac_ext
15717 cat >>conftest.$ac_ext <<_ACEOF
15718 /* end confdefs.h. */
15719 $ac_includes_default
15720 #include <$ac_header>
15722 rm -f conftest.$ac_objext
15723 if { (ac_try="$ac_compile"
15724 case "(($ac_try" in
15725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15726 *) ac_try_echo=$ac_try;;
15728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15729 (eval "$ac_compile") 2>conftest.er1
15731 grep -v '^ *+' conftest.er1 >conftest.err
15733 cat conftest.err >&5
15734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); } &&
15736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15737 { (case "(($ac_try" in
15738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15739 *) ac_try_echo=$ac_try;;
15741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15742 (eval "$ac_try") 2>&5
15744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745 (exit $ac_status); }; } &&
15746 { ac_try='test -s conftest.$ac_objext'
15747 { (case "(($ac_try" in
15748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15749 *) ac_try_echo=$ac_try;;
15751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15752 (eval "$ac_try") 2>&5
15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); }; }; then
15756 ac_header_compiler=yes
15758 echo "$as_me: failed program was:" >&5
15759 sed 's/^/| /' conftest.$ac_ext >&5
15761 ac_header_compiler=no
15764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15765 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15766 echo "${ECHO_T}$ac_header_compiler" >&6; }
15768 # Is the header present?
15769 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15770 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15771 cat >conftest.$ac_ext <<_ACEOF
15774 cat confdefs.h >>conftest.$ac_ext
15775 cat >>conftest.$ac_ext <<_ACEOF
15776 /* end confdefs.h. */
15777 #include <$ac_header>
15779 if { (ac_try="$ac_cpp conftest.$ac_ext"
15780 case "(($ac_try" in
15781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15782 *) ac_try_echo=$ac_try;;
15784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15785 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15787 grep -v '^ *+' conftest.er1 >conftest.err
15789 cat conftest.err >&5
15790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791 (exit $ac_status); } >/dev/null; then
15792 if test -s conftest.err; then
15793 ac_cpp_err=$ac_c_preproc_warn_flag
15794 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15801 if test -z "$ac_cpp_err"; then
15802 ac_header_preproc=yes
15804 echo "$as_me: failed program was:" >&5
15805 sed 's/^/| /' conftest.$ac_ext >&5
15807 ac_header_preproc=no
15810 rm -f conftest.err conftest.$ac_ext
15811 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15812 echo "${ECHO_T}$ac_header_preproc" >&6; }
15814 # So? What about this header?
15815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15817 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15818 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15820 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15821 ac_header_preproc=yes
15824 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15825 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15826 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15827 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15828 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15829 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15830 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15831 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15833 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15834 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15835 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15837 ## ------------------------------------ ##
15838 ## Report this to http://llvm.org/bugs/ ##
15839 ## ------------------------------------ ##
15841 ) | sed "s/^/$as_me: WARNING: /" >&2
15844 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15847 echo $ECHO_N "(cached) $ECHO_C" >&6
15849 eval "$as_ac_Header=\$ac_header_preproc"
15851 ac_res=`eval echo '${'$as_ac_Header'}'`
15852 { echo "$as_me:$LINENO: result: $ac_res" >&5
15853 echo "${ECHO_T}$ac_res" >&6; }
15856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15857 cat >>confdefs.h <<_ACEOF
15858 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15868 for ac_header in CrashReporterClient.h
15870 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15872 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15875 echo $ECHO_N "(cached) $ECHO_C" >&6
15877 ac_res=`eval echo '${'$as_ac_Header'}'`
15878 { echo "$as_me:$LINENO: result: $ac_res" >&5
15879 echo "${ECHO_T}$ac_res" >&6; }
15881 # Is the header compilable?
15882 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15883 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15884 cat >conftest.$ac_ext <<_ACEOF
15887 cat confdefs.h >>conftest.$ac_ext
15888 cat >>conftest.$ac_ext <<_ACEOF
15889 /* end confdefs.h. */
15890 $ac_includes_default
15891 #include <$ac_header>
15893 rm -f conftest.$ac_objext
15894 if { (ac_try="$ac_compile"
15895 case "(($ac_try" in
15896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15897 *) ac_try_echo=$ac_try;;
15899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15900 (eval "$ac_compile") 2>conftest.er1
15902 grep -v '^ *+' conftest.er1 >conftest.err
15904 cat conftest.err >&5
15905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906 (exit $ac_status); } &&
15907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15908 { (case "(($ac_try" in
15909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15910 *) ac_try_echo=$ac_try;;
15912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15913 (eval "$ac_try") 2>&5
15915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916 (exit $ac_status); }; } &&
15917 { ac_try='test -s conftest.$ac_objext'
15918 { (case "(($ac_try" in
15919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15920 *) ac_try_echo=$ac_try;;
15922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15923 (eval "$ac_try") 2>&5
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); }; }; then
15927 ac_header_compiler=yes
15929 echo "$as_me: failed program was:" >&5
15930 sed 's/^/| /' conftest.$ac_ext >&5
15932 ac_header_compiler=no
15935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15936 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15937 echo "${ECHO_T}$ac_header_compiler" >&6; }
15939 # Is the header present?
15940 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15941 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15942 cat >conftest.$ac_ext <<_ACEOF
15945 cat confdefs.h >>conftest.$ac_ext
15946 cat >>conftest.$ac_ext <<_ACEOF
15947 /* end confdefs.h. */
15948 #include <$ac_header>
15950 if { (ac_try="$ac_cpp conftest.$ac_ext"
15951 case "(($ac_try" in
15952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15953 *) ac_try_echo=$ac_try;;
15955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15958 grep -v '^ *+' conftest.er1 >conftest.err
15960 cat conftest.err >&5
15961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962 (exit $ac_status); } >/dev/null; then
15963 if test -s conftest.err; then
15964 ac_cpp_err=$ac_c_preproc_warn_flag
15965 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15972 if test -z "$ac_cpp_err"; then
15973 ac_header_preproc=yes
15975 echo "$as_me: failed program was:" >&5
15976 sed 's/^/| /' conftest.$ac_ext >&5
15978 ac_header_preproc=no
15981 rm -f conftest.err conftest.$ac_ext
15982 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15983 echo "${ECHO_T}$ac_header_preproc" >&6; }
15985 # So? What about this header?
15986 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15988 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15989 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15991 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15992 ac_header_preproc=yes
15995 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15996 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15997 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15998 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15999 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16000 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16001 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16002 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16004 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16005 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16006 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16008 ## ------------------------------------ ##
16009 ## Report this to http://llvm.org/bugs/ ##
16010 ## ------------------------------------ ##
16012 ) | sed "s/^/$as_me: WARNING: /" >&2
16015 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16018 echo $ECHO_N "(cached) $ECHO_C" >&6
16020 eval "$as_ac_Header=\$ac_header_preproc"
16022 ac_res=`eval echo '${'$as_ac_Header'}'`
16023 { echo "$as_me:$LINENO: result: $ac_res" >&5
16024 echo "${ECHO_T}$ac_res" >&6; }
16027 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16028 cat >>confdefs.h <<_ACEOF
16029 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16037 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16038 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16039 cat >conftest.$ac_ext <<_ACEOF
16042 cat confdefs.h >>conftest.$ac_ext
16043 cat >>conftest.$ac_ext <<_ACEOF
16044 /* end confdefs.h. */
16045 extern const char *__crashreporter_info__;
16047 __crashreporter_info__ = "test";
16052 rm -f conftest.$ac_objext conftest$ac_exeext
16053 if { (ac_try="$ac_link"
16054 case "(($ac_try" in
16055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16056 *) ac_try_echo=$ac_try;;
16058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16059 (eval "$ac_link") 2>conftest.er1
16061 grep -v '^ *+' conftest.er1 >conftest.err
16063 cat conftest.err >&5
16064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065 (exit $ac_status); } &&
16066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16067 { (case "(($ac_try" in
16068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16069 *) ac_try_echo=$ac_try;;
16071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16072 (eval "$ac_try") 2>&5
16074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075 (exit $ac_status); }; } &&
16076 { ac_try='test -s conftest$ac_exeext'
16077 { (case "(($ac_try" in
16078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16079 *) ac_try_echo=$ac_try;;
16081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16082 (eval "$ac_try") 2>&5
16084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085 (exit $ac_status); }; }; then
16086 { echo "$as_me:$LINENO: result: yes" >&5
16087 echo "${ECHO_T}yes" >&6; }
16089 cat >>confdefs.h <<\_ACEOF
16090 #define HAVE_CRASHREPORTER_INFO 1
16094 echo "$as_me: failed program was:" >&5
16095 sed 's/^/| /' conftest.$ac_ext >&5
16097 { echo "$as_me:$LINENO: result: no" >&5
16098 echo "${ECHO_T}no" >&6; }
16100 cat >>confdefs.h <<\_ACEOF
16101 #define HAVE_CRASHREPORTER_INFO 0
16106 rm -f core conftest.err conftest.$ac_objext \
16107 conftest$ac_exeext conftest.$ac_ext
16112 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16113 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16114 if test "${ac_cv_huge_val_sanity+set}" = set; then
16115 echo $ECHO_N "(cached) $ECHO_C" >&6
16119 ac_cpp='$CXXCPP $CPPFLAGS'
16120 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16121 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16122 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16124 ac_save_CXXFLAGS=$CXXFLAGS
16126 if test "$cross_compiling" = yes; then
16127 ac_cv_huge_val_sanity=yes
16129 cat >conftest.$ac_ext <<_ACEOF
16132 cat confdefs.h >>conftest.$ac_ext
16133 cat >>conftest.$ac_ext <<_ACEOF
16134 /* end confdefs.h. */
16139 double x = HUGE_VAL; return x != x;
16144 rm -f conftest$ac_exeext
16145 if { (ac_try="$ac_link"
16146 case "(($ac_try" in
16147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16148 *) ac_try_echo=$ac_try;;
16150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16151 (eval "$ac_link") 2>&5
16153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16155 { (case "(($ac_try" in
16156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16157 *) ac_try_echo=$ac_try;;
16159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16160 (eval "$ac_try") 2>&5
16162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163 (exit $ac_status); }; }; then
16164 ac_cv_huge_val_sanity=yes
16166 echo "$as_me: program exited with status $ac_status" >&5
16167 echo "$as_me: failed program was:" >&5
16168 sed 's/^/| /' conftest.$ac_ext >&5
16170 ( exit $ac_status )
16171 ac_cv_huge_val_sanity=no
16173 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16177 CXXFLAGS=$ac_save_CXXFLAGS
16179 ac_cpp='$CPP $CPPFLAGS'
16180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16186 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16187 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16188 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16191 { echo "$as_me:$LINENO: checking for pid_t" >&5
16192 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16193 if test "${ac_cv_type_pid_t+set}" = set; then
16194 echo $ECHO_N "(cached) $ECHO_C" >&6
16196 cat >conftest.$ac_ext <<_ACEOF
16199 cat confdefs.h >>conftest.$ac_ext
16200 cat >>conftest.$ac_ext <<_ACEOF
16201 /* end confdefs.h. */
16202 $ac_includes_default
16203 typedef pid_t ac__type_new_;
16207 if ((ac__type_new_ *) 0)
16209 if (sizeof (ac__type_new_))
16215 rm -f conftest.$ac_objext
16216 if { (ac_try="$ac_compile"
16217 case "(($ac_try" in
16218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16219 *) ac_try_echo=$ac_try;;
16221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16222 (eval "$ac_compile") 2>conftest.er1
16224 grep -v '^ *+' conftest.er1 >conftest.err
16226 cat conftest.err >&5
16227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228 (exit $ac_status); } &&
16229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16230 { (case "(($ac_try" in
16231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16232 *) ac_try_echo=$ac_try;;
16234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16235 (eval "$ac_try") 2>&5
16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238 (exit $ac_status); }; } &&
16239 { ac_try='test -s conftest.$ac_objext'
16240 { (case "(($ac_try" in
16241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16242 *) ac_try_echo=$ac_try;;
16244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16245 (eval "$ac_try") 2>&5
16247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248 (exit $ac_status); }; }; then
16249 ac_cv_type_pid_t=yes
16251 echo "$as_me: failed program was:" >&5
16252 sed 's/^/| /' conftest.$ac_ext >&5
16254 ac_cv_type_pid_t=no
16257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16259 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16260 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16261 if test $ac_cv_type_pid_t = yes; then
16265 cat >>confdefs.h <<_ACEOF
16271 { echo "$as_me:$LINENO: checking for size_t" >&5
16272 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16273 if test "${ac_cv_type_size_t+set}" = set; then
16274 echo $ECHO_N "(cached) $ECHO_C" >&6
16276 cat >conftest.$ac_ext <<_ACEOF
16279 cat confdefs.h >>conftest.$ac_ext
16280 cat >>conftest.$ac_ext <<_ACEOF
16281 /* end confdefs.h. */
16282 $ac_includes_default
16283 typedef size_t ac__type_new_;
16287 if ((ac__type_new_ *) 0)
16289 if (sizeof (ac__type_new_))
16295 rm -f conftest.$ac_objext
16296 if { (ac_try="$ac_compile"
16297 case "(($ac_try" in
16298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16299 *) ac_try_echo=$ac_try;;
16301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16302 (eval "$ac_compile") 2>conftest.er1
16304 grep -v '^ *+' conftest.er1 >conftest.err
16306 cat conftest.err >&5
16307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308 (exit $ac_status); } &&
16309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16310 { (case "(($ac_try" in
16311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16312 *) ac_try_echo=$ac_try;;
16314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16315 (eval "$ac_try") 2>&5
16317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318 (exit $ac_status); }; } &&
16319 { ac_try='test -s conftest.$ac_objext'
16320 { (case "(($ac_try" in
16321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16322 *) ac_try_echo=$ac_try;;
16324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16325 (eval "$ac_try") 2>&5
16327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328 (exit $ac_status); }; }; then
16329 ac_cv_type_size_t=yes
16331 echo "$as_me: failed program was:" >&5
16332 sed 's/^/| /' conftest.$ac_ext >&5
16334 ac_cv_type_size_t=no
16337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16339 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16340 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16341 if test $ac_cv_type_size_t = yes; then
16345 cat >>confdefs.h <<_ACEOF
16346 #define size_t unsigned int
16352 cat >>confdefs.h <<_ACEOF
16353 #define RETSIGTYPE void
16356 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16357 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16358 if test "${ac_cv_struct_tm+set}" = set; then
16359 echo $ECHO_N "(cached) $ECHO_C" >&6
16361 cat >conftest.$ac_ext <<_ACEOF
16364 cat confdefs.h >>conftest.$ac_ext
16365 cat >>conftest.$ac_ext <<_ACEOF
16366 /* end confdefs.h. */
16367 #include <sys/types.h>
16373 struct tm *tp; tp->tm_sec;
16378 rm -f conftest.$ac_objext
16379 if { (ac_try="$ac_compile"
16380 case "(($ac_try" in
16381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16382 *) ac_try_echo=$ac_try;;
16384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16385 (eval "$ac_compile") 2>conftest.er1
16387 grep -v '^ *+' conftest.er1 >conftest.err
16389 cat conftest.err >&5
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); } &&
16392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16393 { (case "(($ac_try" in
16394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16395 *) ac_try_echo=$ac_try;;
16397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16398 (eval "$ac_try") 2>&5
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); }; } &&
16402 { ac_try='test -s conftest.$ac_objext'
16403 { (case "(($ac_try" in
16404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16405 *) ac_try_echo=$ac_try;;
16407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16408 (eval "$ac_try") 2>&5
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); }; }; then
16412 ac_cv_struct_tm=time.h
16414 echo "$as_me: failed program was:" >&5
16415 sed 's/^/| /' conftest.$ac_ext >&5
16417 ac_cv_struct_tm=sys/time.h
16420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16422 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16423 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16424 if test $ac_cv_struct_tm = sys/time.h; then
16426 cat >>confdefs.h <<\_ACEOF
16427 #define TM_IN_SYS_TIME 1
16432 { echo "$as_me:$LINENO: checking for int64_t" >&5
16433 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16434 if test "${ac_cv_type_int64_t+set}" = set; then
16435 echo $ECHO_N "(cached) $ECHO_C" >&6
16437 cat >conftest.$ac_ext <<_ACEOF
16440 cat confdefs.h >>conftest.$ac_ext
16441 cat >>conftest.$ac_ext <<_ACEOF
16442 /* end confdefs.h. */
16443 $ac_includes_default
16444 typedef int64_t ac__type_new_;
16448 if ((ac__type_new_ *) 0)
16450 if (sizeof (ac__type_new_))
16456 rm -f conftest.$ac_objext
16457 if { (ac_try="$ac_compile"
16458 case "(($ac_try" in
16459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16460 *) ac_try_echo=$ac_try;;
16462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16463 (eval "$ac_compile") 2>conftest.er1
16465 grep -v '^ *+' conftest.er1 >conftest.err
16467 cat conftest.err >&5
16468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469 (exit $ac_status); } &&
16470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16471 { (case "(($ac_try" in
16472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16473 *) ac_try_echo=$ac_try;;
16475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16476 (eval "$ac_try") 2>&5
16478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479 (exit $ac_status); }; } &&
16480 { ac_try='test -s conftest.$ac_objext'
16481 { (case "(($ac_try" in
16482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16483 *) ac_try_echo=$ac_try;;
16485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16486 (eval "$ac_try") 2>&5
16488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489 (exit $ac_status); }; }; then
16490 ac_cv_type_int64_t=yes
16492 echo "$as_me: failed program was:" >&5
16493 sed 's/^/| /' conftest.$ac_ext >&5
16495 ac_cv_type_int64_t=no
16498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16500 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16501 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16502 if test $ac_cv_type_int64_t = yes; then
16504 cat >>confdefs.h <<_ACEOF
16505 #define HAVE_INT64_T 1
16510 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16511 echo "$as_me: error: Type int64_t required but not found" >&2;}
16512 { (exit 1); exit 1; }; }
16515 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16516 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16517 if test "${ac_cv_type_uint64_t+set}" = set; then
16518 echo $ECHO_N "(cached) $ECHO_C" >&6
16520 cat >conftest.$ac_ext <<_ACEOF
16523 cat confdefs.h >>conftest.$ac_ext
16524 cat >>conftest.$ac_ext <<_ACEOF
16525 /* end confdefs.h. */
16526 $ac_includes_default
16527 typedef uint64_t ac__type_new_;
16531 if ((ac__type_new_ *) 0)
16533 if (sizeof (ac__type_new_))
16539 rm -f conftest.$ac_objext
16540 if { (ac_try="$ac_compile"
16541 case "(($ac_try" in
16542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16543 *) ac_try_echo=$ac_try;;
16545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16546 (eval "$ac_compile") 2>conftest.er1
16548 grep -v '^ *+' conftest.er1 >conftest.err
16550 cat conftest.err >&5
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); } &&
16553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16554 { (case "(($ac_try" in
16555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16556 *) ac_try_echo=$ac_try;;
16558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16559 (eval "$ac_try") 2>&5
16561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562 (exit $ac_status); }; } &&
16563 { ac_try='test -s conftest.$ac_objext'
16564 { (case "(($ac_try" in
16565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16566 *) ac_try_echo=$ac_try;;
16568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16569 (eval "$ac_try") 2>&5
16571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572 (exit $ac_status); }; }; then
16573 ac_cv_type_uint64_t=yes
16575 echo "$as_me: failed program was:" >&5
16576 sed 's/^/| /' conftest.$ac_ext >&5
16578 ac_cv_type_uint64_t=no
16581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16583 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16584 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16585 if test $ac_cv_type_uint64_t = yes; then
16587 cat >>confdefs.h <<_ACEOF
16588 #define HAVE_UINT64_T 1
16593 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16594 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16595 if test "${ac_cv_type_u_int64_t+set}" = set; then
16596 echo $ECHO_N "(cached) $ECHO_C" >&6
16598 cat >conftest.$ac_ext <<_ACEOF
16601 cat confdefs.h >>conftest.$ac_ext
16602 cat >>conftest.$ac_ext <<_ACEOF
16603 /* end confdefs.h. */
16604 $ac_includes_default
16605 typedef u_int64_t ac__type_new_;
16609 if ((ac__type_new_ *) 0)
16611 if (sizeof (ac__type_new_))
16617 rm -f conftest.$ac_objext
16618 if { (ac_try="$ac_compile"
16619 case "(($ac_try" in
16620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16621 *) ac_try_echo=$ac_try;;
16623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16624 (eval "$ac_compile") 2>conftest.er1
16626 grep -v '^ *+' conftest.er1 >conftest.err
16628 cat conftest.err >&5
16629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630 (exit $ac_status); } &&
16631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16632 { (case "(($ac_try" in
16633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16634 *) ac_try_echo=$ac_try;;
16636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16637 (eval "$ac_try") 2>&5
16639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640 (exit $ac_status); }; } &&
16641 { ac_try='test -s conftest.$ac_objext'
16642 { (case "(($ac_try" in
16643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16644 *) ac_try_echo=$ac_try;;
16646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16647 (eval "$ac_try") 2>&5
16649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); }; }; then
16651 ac_cv_type_u_int64_t=yes
16653 echo "$as_me: failed program was:" >&5
16654 sed 's/^/| /' conftest.$ac_ext >&5
16656 ac_cv_type_u_int64_t=no
16659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16661 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16662 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16663 if test $ac_cv_type_u_int64_t = yes; then
16665 cat >>confdefs.h <<_ACEOF
16666 #define HAVE_U_INT64_T 1
16671 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16672 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16673 { (exit 1); exit 1; }; }
16687 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16689 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16690 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16691 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16692 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16693 echo $ECHO_N "(cached) $ECHO_C" >&6
16695 cat >conftest.$ac_ext <<_ACEOF
16698 cat confdefs.h >>conftest.$ac_ext
16699 cat >>conftest.$ac_ext <<_ACEOF
16700 /* end confdefs.h. */
16701 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16703 #define $ac_func innocuous_$ac_func
16705 /* System header to define __stub macros and hopefully few prototypes,
16706 which can conflict with char $ac_func (); below.
16707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16708 <limits.h> exists even on freestanding compilers. */
16711 # include <limits.h>
16713 # include <assert.h>
16718 /* Override any GCC internal prototype to avoid an error.
16719 Use char because int might match the return type of a GCC
16720 builtin and then its argument prototype would still apply. */
16725 /* The GNU C library defines this for functions which it implements
16726 to always fail with ENOSYS. Some functions are actually named
16727 something starting with __ and the normal name is an alias. */
16728 #if defined __stub_$ac_func || defined __stub___$ac_func
16735 return $ac_func ();
16740 rm -f conftest.$ac_objext conftest$ac_exeext
16741 if { (ac_try="$ac_link"
16742 case "(($ac_try" in
16743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16744 *) ac_try_echo=$ac_try;;
16746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16747 (eval "$ac_link") 2>conftest.er1
16749 grep -v '^ *+' conftest.er1 >conftest.err
16751 cat conftest.err >&5
16752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753 (exit $ac_status); } &&
16754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16755 { (case "(($ac_try" in
16756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16757 *) ac_try_echo=$ac_try;;
16759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16760 (eval "$ac_try") 2>&5
16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); }; } &&
16764 { ac_try='test -s conftest$ac_exeext'
16765 { (case "(($ac_try" in
16766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16767 *) ac_try_echo=$ac_try;;
16769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16770 (eval "$ac_try") 2>&5
16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773 (exit $ac_status); }; }; then
16774 eval "$as_ac_var=yes"
16776 echo "$as_me: failed program was:" >&5
16777 sed 's/^/| /' conftest.$ac_ext >&5
16779 eval "$as_ac_var=no"
16782 rm -f core conftest.err conftest.$ac_objext \
16783 conftest$ac_exeext conftest.$ac_ext
16785 ac_res=`eval echo '${'$as_ac_var'}'`
16786 { echo "$as_me:$LINENO: result: $ac_res" >&5
16787 echo "${ECHO_T}$ac_res" >&6; }
16788 if test `eval echo '${'$as_ac_var'}'` = yes; then
16789 cat >>confdefs.h <<_ACEOF
16790 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16800 for ac_func in powf fmodf strtof round
16802 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16803 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16804 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16805 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16806 echo $ECHO_N "(cached) $ECHO_C" >&6
16808 cat >conftest.$ac_ext <<_ACEOF
16811 cat confdefs.h >>conftest.$ac_ext
16812 cat >>conftest.$ac_ext <<_ACEOF
16813 /* end confdefs.h. */
16814 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16816 #define $ac_func innocuous_$ac_func
16818 /* System header to define __stub macros and hopefully few prototypes,
16819 which can conflict with char $ac_func (); below.
16820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16821 <limits.h> exists even on freestanding compilers. */
16824 # include <limits.h>
16826 # include <assert.h>
16831 /* Override any GCC internal prototype to avoid an error.
16832 Use char because int might match the return type of a GCC
16833 builtin and then its argument prototype would still apply. */
16838 /* The GNU C library defines this for functions which it implements
16839 to always fail with ENOSYS. Some functions are actually named
16840 something starting with __ and the normal name is an alias. */
16841 #if defined __stub_$ac_func || defined __stub___$ac_func
16848 return $ac_func ();
16853 rm -f conftest.$ac_objext conftest$ac_exeext
16854 if { (ac_try="$ac_link"
16855 case "(($ac_try" in
16856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16857 *) ac_try_echo=$ac_try;;
16859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16860 (eval "$ac_link") 2>conftest.er1
16862 grep -v '^ *+' conftest.er1 >conftest.err
16864 cat conftest.err >&5
16865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866 (exit $ac_status); } &&
16867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16868 { (case "(($ac_try" in
16869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16870 *) ac_try_echo=$ac_try;;
16872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16873 (eval "$ac_try") 2>&5
16875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876 (exit $ac_status); }; } &&
16877 { ac_try='test -s conftest$ac_exeext'
16878 { (case "(($ac_try" in
16879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16880 *) ac_try_echo=$ac_try;;
16882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16883 (eval "$ac_try") 2>&5
16885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886 (exit $ac_status); }; }; then
16887 eval "$as_ac_var=yes"
16889 echo "$as_me: failed program was:" >&5
16890 sed 's/^/| /' conftest.$ac_ext >&5
16892 eval "$as_ac_var=no"
16895 rm -f core conftest.err conftest.$ac_objext \
16896 conftest$ac_exeext conftest.$ac_ext
16898 ac_res=`eval echo '${'$as_ac_var'}'`
16899 { echo "$as_me:$LINENO: result: $ac_res" >&5
16900 echo "${ECHO_T}$ac_res" >&6; }
16901 if test `eval echo '${'$as_ac_var'}'` = yes; then
16902 cat >>confdefs.h <<_ACEOF
16903 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16914 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16916 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16917 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16918 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16919 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16920 echo $ECHO_N "(cached) $ECHO_C" >&6
16922 cat >conftest.$ac_ext <<_ACEOF
16925 cat confdefs.h >>conftest.$ac_ext
16926 cat >>conftest.$ac_ext <<_ACEOF
16927 /* end confdefs.h. */
16928 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16929 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16930 #define $ac_func innocuous_$ac_func
16932 /* System header to define __stub macros and hopefully few prototypes,
16933 which can conflict with char $ac_func (); below.
16934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16935 <limits.h> exists even on freestanding compilers. */
16938 # include <limits.h>
16940 # include <assert.h>
16945 /* Override any GCC internal prototype to avoid an error.
16946 Use char because int might match the return type of a GCC
16947 builtin and then its argument prototype would still apply. */
16952 /* The GNU C library defines this for functions which it implements
16953 to always fail with ENOSYS. Some functions are actually named
16954 something starting with __ and the normal name is an alias. */
16955 #if defined __stub_$ac_func || defined __stub___$ac_func
16962 return $ac_func ();
16967 rm -f conftest.$ac_objext conftest$ac_exeext
16968 if { (ac_try="$ac_link"
16969 case "(($ac_try" in
16970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16971 *) ac_try_echo=$ac_try;;
16973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16974 (eval "$ac_link") 2>conftest.er1
16976 grep -v '^ *+' conftest.er1 >conftest.err
16978 cat conftest.err >&5
16979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); } &&
16981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16982 { (case "(($ac_try" in
16983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16984 *) ac_try_echo=$ac_try;;
16986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16987 (eval "$ac_try") 2>&5
16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); }; } &&
16991 { ac_try='test -s conftest$ac_exeext'
16992 { (case "(($ac_try" in
16993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16994 *) ac_try_echo=$ac_try;;
16996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16997 (eval "$ac_try") 2>&5
16999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000 (exit $ac_status); }; }; then
17001 eval "$as_ac_var=yes"
17003 echo "$as_me: failed program was:" >&5
17004 sed 's/^/| /' conftest.$ac_ext >&5
17006 eval "$as_ac_var=no"
17009 rm -f core conftest.err conftest.$ac_objext \
17010 conftest$ac_exeext conftest.$ac_ext
17012 ac_res=`eval echo '${'$as_ac_var'}'`
17013 { echo "$as_me:$LINENO: result: $ac_res" >&5
17014 echo "${ECHO_T}$ac_res" >&6; }
17015 if test `eval echo '${'$as_ac_var'}'` = yes; then
17016 cat >>confdefs.h <<_ACEOF
17017 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17026 for ac_func in isatty mkdtemp mkstemp
17028 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17029 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17030 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17031 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17032 echo $ECHO_N "(cached) $ECHO_C" >&6
17034 cat >conftest.$ac_ext <<_ACEOF
17037 cat confdefs.h >>conftest.$ac_ext
17038 cat >>conftest.$ac_ext <<_ACEOF
17039 /* end confdefs.h. */
17040 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17041 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17042 #define $ac_func innocuous_$ac_func
17044 /* System header to define __stub macros and hopefully few prototypes,
17045 which can conflict with char $ac_func (); below.
17046 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17047 <limits.h> exists even on freestanding compilers. */
17050 # include <limits.h>
17052 # include <assert.h>
17057 /* Override any GCC internal prototype to avoid an error.
17058 Use char because int might match the return type of a GCC
17059 builtin and then its argument prototype would still apply. */
17064 /* The GNU C library defines this for functions which it implements
17065 to always fail with ENOSYS. Some functions are actually named
17066 something starting with __ and the normal name is an alias. */
17067 #if defined __stub_$ac_func || defined __stub___$ac_func
17074 return $ac_func ();
17079 rm -f conftest.$ac_objext conftest$ac_exeext
17080 if { (ac_try="$ac_link"
17081 case "(($ac_try" in
17082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17083 *) ac_try_echo=$ac_try;;
17085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17086 (eval "$ac_link") 2>conftest.er1
17088 grep -v '^ *+' conftest.er1 >conftest.err
17090 cat conftest.err >&5
17091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092 (exit $ac_status); } &&
17093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17094 { (case "(($ac_try" in
17095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17096 *) ac_try_echo=$ac_try;;
17098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17099 (eval "$ac_try") 2>&5
17101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102 (exit $ac_status); }; } &&
17103 { ac_try='test -s conftest$ac_exeext'
17104 { (case "(($ac_try" in
17105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17106 *) ac_try_echo=$ac_try;;
17108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17109 (eval "$ac_try") 2>&5
17111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); }; }; then
17113 eval "$as_ac_var=yes"
17115 echo "$as_me: failed program was:" >&5
17116 sed 's/^/| /' conftest.$ac_ext >&5
17118 eval "$as_ac_var=no"
17121 rm -f core conftest.err conftest.$ac_objext \
17122 conftest$ac_exeext conftest.$ac_ext
17124 ac_res=`eval echo '${'$as_ac_var'}'`
17125 { echo "$as_me:$LINENO: result: $ac_res" >&5
17126 echo "${ECHO_T}$ac_res" >&6; }
17127 if test `eval echo '${'$as_ac_var'}'` = yes; then
17128 cat >>confdefs.h <<_ACEOF
17129 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17142 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17144 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17145 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17147 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17148 echo $ECHO_N "(cached) $ECHO_C" >&6
17150 cat >conftest.$ac_ext <<_ACEOF
17153 cat confdefs.h >>conftest.$ac_ext
17154 cat >>conftest.$ac_ext <<_ACEOF
17155 /* end confdefs.h. */
17156 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17158 #define $ac_func innocuous_$ac_func
17160 /* System header to define __stub macros and hopefully few prototypes,
17161 which can conflict with char $ac_func (); below.
17162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17163 <limits.h> exists even on freestanding compilers. */
17166 # include <limits.h>
17168 # include <assert.h>
17173 /* Override any GCC internal prototype to avoid an error.
17174 Use char because int might match the return type of a GCC
17175 builtin and then its argument prototype would still apply. */
17180 /* The GNU C library defines this for functions which it implements
17181 to always fail with ENOSYS. Some functions are actually named
17182 something starting with __ and the normal name is an alias. */
17183 #if defined __stub_$ac_func || defined __stub___$ac_func
17190 return $ac_func ();
17195 rm -f conftest.$ac_objext conftest$ac_exeext
17196 if { (ac_try="$ac_link"
17197 case "(($ac_try" in
17198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17199 *) ac_try_echo=$ac_try;;
17201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17202 (eval "$ac_link") 2>conftest.er1
17204 grep -v '^ *+' conftest.er1 >conftest.err
17206 cat conftest.err >&5
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); } &&
17209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17210 { (case "(($ac_try" in
17211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17212 *) ac_try_echo=$ac_try;;
17214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17215 (eval "$ac_try") 2>&5
17217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218 (exit $ac_status); }; } &&
17219 { ac_try='test -s conftest$ac_exeext'
17220 { (case "(($ac_try" in
17221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17222 *) ac_try_echo=$ac_try;;
17224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17225 (eval "$ac_try") 2>&5
17227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228 (exit $ac_status); }; }; then
17229 eval "$as_ac_var=yes"
17231 echo "$as_me: failed program was:" >&5
17232 sed 's/^/| /' conftest.$ac_ext >&5
17234 eval "$as_ac_var=no"
17237 rm -f core conftest.err conftest.$ac_objext \
17238 conftest$ac_exeext conftest.$ac_ext
17240 ac_res=`eval echo '${'$as_ac_var'}'`
17241 { echo "$as_me:$LINENO: result: $ac_res" >&5
17242 echo "${ECHO_T}$ac_res" >&6; }
17243 if test `eval echo '${'$as_ac_var'}'` = yes; then
17244 cat >>confdefs.h <<_ACEOF
17245 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17254 for ac_func in strerror strerror_r setenv
17256 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17257 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17258 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17259 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17260 echo $ECHO_N "(cached) $ECHO_C" >&6
17262 cat >conftest.$ac_ext <<_ACEOF
17265 cat confdefs.h >>conftest.$ac_ext
17266 cat >>conftest.$ac_ext <<_ACEOF
17267 /* end confdefs.h. */
17268 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17269 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17270 #define $ac_func innocuous_$ac_func
17272 /* System header to define __stub macros and hopefully few prototypes,
17273 which can conflict with char $ac_func (); below.
17274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17275 <limits.h> exists even on freestanding compilers. */
17278 # include <limits.h>
17280 # include <assert.h>
17285 /* Override any GCC internal prototype to avoid an error.
17286 Use char because int might match the return type of a GCC
17287 builtin and then its argument prototype would still apply. */
17292 /* The GNU C library defines this for functions which it implements
17293 to always fail with ENOSYS. Some functions are actually named
17294 something starting with __ and the normal name is an alias. */
17295 #if defined __stub_$ac_func || defined __stub___$ac_func
17302 return $ac_func ();
17307 rm -f conftest.$ac_objext conftest$ac_exeext
17308 if { (ac_try="$ac_link"
17309 case "(($ac_try" in
17310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17311 *) ac_try_echo=$ac_try;;
17313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17314 (eval "$ac_link") 2>conftest.er1
17316 grep -v '^ *+' conftest.er1 >conftest.err
17318 cat conftest.err >&5
17319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17320 (exit $ac_status); } &&
17321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17322 { (case "(($ac_try" in
17323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17324 *) ac_try_echo=$ac_try;;
17326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17327 (eval "$ac_try") 2>&5
17329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330 (exit $ac_status); }; } &&
17331 { ac_try='test -s conftest$ac_exeext'
17332 { (case "(($ac_try" in
17333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17334 *) ac_try_echo=$ac_try;;
17336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17337 (eval "$ac_try") 2>&5
17339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340 (exit $ac_status); }; }; then
17341 eval "$as_ac_var=yes"
17343 echo "$as_me: failed program was:" >&5
17344 sed 's/^/| /' conftest.$ac_ext >&5
17346 eval "$as_ac_var=no"
17349 rm -f core conftest.err conftest.$ac_objext \
17350 conftest$ac_exeext conftest.$ac_ext
17352 ac_res=`eval echo '${'$as_ac_var'}'`
17353 { echo "$as_me:$LINENO: result: $ac_res" >&5
17354 echo "${ECHO_T}$ac_res" >&6; }
17355 if test `eval echo '${'$as_ac_var'}'` = yes; then
17356 cat >>confdefs.h <<_ACEOF
17357 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17367 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17369 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17370 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17372 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17373 echo $ECHO_N "(cached) $ECHO_C" >&6
17375 cat >conftest.$ac_ext <<_ACEOF
17378 cat confdefs.h >>conftest.$ac_ext
17379 cat >>conftest.$ac_ext <<_ACEOF
17380 /* end confdefs.h. */
17381 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17383 #define $ac_func innocuous_$ac_func
17385 /* System header to define __stub macros and hopefully few prototypes,
17386 which can conflict with char $ac_func (); below.
17387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17388 <limits.h> exists even on freestanding compilers. */
17391 # include <limits.h>
17393 # include <assert.h>
17398 /* Override any GCC internal prototype to avoid an error.
17399 Use char because int might match the return type of a GCC
17400 builtin and then its argument prototype would still apply. */
17405 /* The GNU C library defines this for functions which it implements
17406 to always fail with ENOSYS. Some functions are actually named
17407 something starting with __ and the normal name is an alias. */
17408 #if defined __stub_$ac_func || defined __stub___$ac_func
17415 return $ac_func ();
17420 rm -f conftest.$ac_objext conftest$ac_exeext
17421 if { (ac_try="$ac_link"
17422 case "(($ac_try" in
17423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17424 *) ac_try_echo=$ac_try;;
17426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17427 (eval "$ac_link") 2>conftest.er1
17429 grep -v '^ *+' conftest.er1 >conftest.err
17431 cat conftest.err >&5
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); } &&
17434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17435 { (case "(($ac_try" in
17436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17437 *) ac_try_echo=$ac_try;;
17439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17440 (eval "$ac_try") 2>&5
17442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443 (exit $ac_status); }; } &&
17444 { ac_try='test -s conftest$ac_exeext'
17445 { (case "(($ac_try" in
17446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17447 *) ac_try_echo=$ac_try;;
17449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17450 (eval "$ac_try") 2>&5
17452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453 (exit $ac_status); }; }; then
17454 eval "$as_ac_var=yes"
17456 echo "$as_me: failed program was:" >&5
17457 sed 's/^/| /' conftest.$ac_ext >&5
17459 eval "$as_ac_var=no"
17462 rm -f core conftest.err conftest.$ac_objext \
17463 conftest$ac_exeext conftest.$ac_ext
17465 ac_res=`eval echo '${'$as_ac_var'}'`
17466 { echo "$as_me:$LINENO: result: $ac_res" >&5
17467 echo "${ECHO_T}$ac_res" >&6; }
17468 if test `eval echo '${'$as_ac_var'}'` = yes; then
17469 cat >>confdefs.h <<_ACEOF
17470 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17481 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17483 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17484 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17485 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17486 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17487 echo $ECHO_N "(cached) $ECHO_C" >&6
17489 cat >conftest.$ac_ext <<_ACEOF
17492 cat confdefs.h >>conftest.$ac_ext
17493 cat >>conftest.$ac_ext <<_ACEOF
17494 /* end confdefs.h. */
17495 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17497 #define $ac_func innocuous_$ac_func
17499 /* System header to define __stub macros and hopefully few prototypes,
17500 which can conflict with char $ac_func (); below.
17501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17502 <limits.h> exists even on freestanding compilers. */
17505 # include <limits.h>
17507 # include <assert.h>
17512 /* Override any GCC internal prototype to avoid an error.
17513 Use char because int might match the return type of a GCC
17514 builtin and then its argument prototype would still apply. */
17519 /* The GNU C library defines this for functions which it implements
17520 to always fail with ENOSYS. Some functions are actually named
17521 something starting with __ and the normal name is an alias. */
17522 #if defined __stub_$ac_func || defined __stub___$ac_func
17529 return $ac_func ();
17534 rm -f conftest.$ac_objext conftest$ac_exeext
17535 if { (ac_try="$ac_link"
17536 case "(($ac_try" in
17537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17538 *) ac_try_echo=$ac_try;;
17540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17541 (eval "$ac_link") 2>conftest.er1
17543 grep -v '^ *+' conftest.er1 >conftest.err
17545 cat conftest.err >&5
17546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547 (exit $ac_status); } &&
17548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17549 { (case "(($ac_try" in
17550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17551 *) ac_try_echo=$ac_try;;
17553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17554 (eval "$ac_try") 2>&5
17556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557 (exit $ac_status); }; } &&
17558 { ac_try='test -s conftest$ac_exeext'
17559 { (case "(($ac_try" in
17560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17561 *) ac_try_echo=$ac_try;;
17563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17564 (eval "$ac_try") 2>&5
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); }; }; then
17568 eval "$as_ac_var=yes"
17570 echo "$as_me: failed program was:" >&5
17571 sed 's/^/| /' conftest.$ac_ext >&5
17573 eval "$as_ac_var=no"
17576 rm -f core conftest.err conftest.$ac_objext \
17577 conftest$ac_exeext conftest.$ac_ext
17579 ac_res=`eval echo '${'$as_ac_var'}'`
17580 { echo "$as_me:$LINENO: result: $ac_res" >&5
17581 echo "${ECHO_T}$ac_res" >&6; }
17582 if test `eval echo '${'$as_ac_var'}'` = yes; then
17583 cat >>confdefs.h <<_ACEOF
17584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17590 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17591 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17592 if test "${llvm_cv_c_printf_a+set}" = set; then
17593 echo $ECHO_N "(cached) $ECHO_C" >&6
17596 ac_cpp='$CPP $CPPFLAGS'
17597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17601 if test "$cross_compiling" = yes; then
17602 llvmac_cv_c_printf_a=no
17604 cat >conftest.$ac_ext <<_ACEOF
17608 cat confdefs.h >>conftest.$ac_ext
17609 cat >>conftest.$ac_ext <<_ACEOF
17610 /* end confdefs.h. */
17613 #include <stdlib.h>
17619 volatile double A, B;
17623 sprintf(Buffer, "%a", A);
17627 if (A != 0x1.999999999999ap-4)
17634 rm -f conftest$ac_exeext
17635 if { (ac_try="$ac_link"
17636 case "(($ac_try" in
17637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17638 *) ac_try_echo=$ac_try;;
17640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17641 (eval "$ac_link") 2>&5
17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17645 { (case "(($ac_try" in
17646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17647 *) ac_try_echo=$ac_try;;
17649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17650 (eval "$ac_try") 2>&5
17652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653 (exit $ac_status); }; }; then
17654 llvm_cv_c_printf_a=yes
17656 echo "$as_me: program exited with status $ac_status" >&5
17657 echo "$as_me: failed program was:" >&5
17658 sed 's/^/| /' conftest.$ac_ext >&5
17660 ( exit $ac_status )
17661 llvmac_cv_c_printf_a=no
17663 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17668 ac_cpp='$CPP $CPPFLAGS'
17669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17674 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17675 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17676 if test "$llvm_cv_c_printf_a" = "yes"; then
17678 cat >>confdefs.h <<\_ACEOF
17679 #define HAVE_PRINTF_A 1
17685 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17686 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17687 if test "${ac_cv_func_rand48+set}" = set; then
17688 echo $ECHO_N "(cached) $ECHO_C" >&6
17691 ac_cpp='$CXXCPP $CPPFLAGS'
17692 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17693 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17694 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17696 cat >conftest.$ac_ext <<_ACEOF
17699 cat confdefs.h >>conftest.$ac_ext
17700 cat >>conftest.$ac_ext <<_ACEOF
17701 /* end confdefs.h. */
17702 #include <stdlib.h>
17706 srand48(0);lrand48();drand48();
17711 rm -f conftest.$ac_objext
17712 if { (ac_try="$ac_compile"
17713 case "(($ac_try" in
17714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17715 *) ac_try_echo=$ac_try;;
17717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17718 (eval "$ac_compile") 2>conftest.er1
17720 grep -v '^ *+' conftest.er1 >conftest.err
17722 cat conftest.err >&5
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); } &&
17725 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17726 { (case "(($ac_try" in
17727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17728 *) ac_try_echo=$ac_try;;
17730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17731 (eval "$ac_try") 2>&5
17733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734 (exit $ac_status); }; } &&
17735 { ac_try='test -s conftest.$ac_objext'
17736 { (case "(($ac_try" in
17737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17738 *) ac_try_echo=$ac_try;;
17740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17741 (eval "$ac_try") 2>&5
17743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744 (exit $ac_status); }; }; then
17745 ac_cv_func_rand48=yes
17747 echo "$as_me: failed program was:" >&5
17748 sed 's/^/| /' conftest.$ac_ext >&5
17750 ac_cv_func_rand48=no
17753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17755 ac_cpp='$CPP $CPPFLAGS'
17756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17761 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17762 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17764 if test "$ac_cv_func_rand48" = "yes" ; then
17766 cat >>confdefs.h <<\_ACEOF
17767 #define HAVE_RAND48 1
17773 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17774 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17775 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17776 echo $ECHO_N "(cached) $ECHO_C" >&6
17778 cat >conftest.$ac_ext <<_ACEOF
17781 cat confdefs.h >>conftest.$ac_ext
17782 cat >>conftest.$ac_ext <<_ACEOF
17783 /* end confdefs.h. */
17784 $ac_includes_default
17789 char *p = (char *) strerror_s;
17797 rm -f conftest.$ac_objext
17798 if { (ac_try="$ac_compile"
17799 case "(($ac_try" in
17800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17801 *) ac_try_echo=$ac_try;;
17803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17804 (eval "$ac_compile") 2>conftest.er1
17806 grep -v '^ *+' conftest.er1 >conftest.err
17808 cat conftest.err >&5
17809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810 (exit $ac_status); } &&
17811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17812 { (case "(($ac_try" in
17813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17814 *) ac_try_echo=$ac_try;;
17816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17817 (eval "$ac_try") 2>&5
17819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820 (exit $ac_status); }; } &&
17821 { ac_try='test -s conftest.$ac_objext'
17822 { (case "(($ac_try" in
17823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17824 *) ac_try_echo=$ac_try;;
17826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17827 (eval "$ac_try") 2>&5
17829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830 (exit $ac_status); }; }; then
17831 ac_cv_have_decl_strerror_s=yes
17833 echo "$as_me: failed program was:" >&5
17834 sed 's/^/| /' conftest.$ac_ext >&5
17836 ac_cv_have_decl_strerror_s=no
17839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17841 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17842 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17843 if test $ac_cv_have_decl_strerror_s = yes; then
17845 cat >>confdefs.h <<_ACEOF
17846 #define HAVE_DECL_STRERROR_S 1
17851 cat >>confdefs.h <<_ACEOF
17852 #define HAVE_DECL_STRERROR_S 0
17860 if test "$llvm_cv_os_type" = "MingW" ; then
17861 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17862 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17863 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17864 echo $ECHO_N "(cached) $ECHO_C" >&6
17866 ac_check_lib_save_LIBS=$LIBS
17868 cat >conftest.$ac_ext <<_ACEOF
17871 cat confdefs.h >>conftest.$ac_ext
17872 cat >>conftest.$ac_ext <<_ACEOF
17873 /* end confdefs.h. */
17875 /* Override any GCC internal prototype to avoid an error.
17876 Use char because int might match the return type of a GCC
17877 builtin and then its argument prototype would still apply. */
17890 rm -f conftest.$ac_objext conftest$ac_exeext
17891 if { (ac_try="$ac_link"
17892 case "(($ac_try" in
17893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17894 *) ac_try_echo=$ac_try;;
17896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17897 (eval "$ac_link") 2>conftest.er1
17899 grep -v '^ *+' conftest.er1 >conftest.err
17901 cat conftest.err >&5
17902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17903 (exit $ac_status); } &&
17904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17905 { (case "(($ac_try" in
17906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17907 *) ac_try_echo=$ac_try;;
17909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17910 (eval "$ac_try") 2>&5
17912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913 (exit $ac_status); }; } &&
17914 { ac_try='test -s conftest$ac_exeext'
17915 { (case "(($ac_try" in
17916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17917 *) ac_try_echo=$ac_try;;
17919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17920 (eval "$ac_try") 2>&5
17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); }; }; then
17924 ac_cv_lib_gcc__alloca=yes
17926 echo "$as_me: failed program was:" >&5
17927 sed 's/^/| /' conftest.$ac_ext >&5
17929 ac_cv_lib_gcc__alloca=no
17932 rm -f core conftest.err conftest.$ac_objext \
17933 conftest$ac_exeext conftest.$ac_ext
17934 LIBS=$ac_check_lib_save_LIBS
17936 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17937 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17938 if test $ac_cv_lib_gcc__alloca = yes; then
17940 cat >>confdefs.h <<\_ACEOF
17941 #define HAVE__ALLOCA 1
17946 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17947 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17948 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17949 echo $ECHO_N "(cached) $ECHO_C" >&6
17951 ac_check_lib_save_LIBS=$LIBS
17953 cat >conftest.$ac_ext <<_ACEOF
17956 cat confdefs.h >>conftest.$ac_ext
17957 cat >>conftest.$ac_ext <<_ACEOF
17958 /* end confdefs.h. */
17960 /* Override any GCC internal prototype to avoid an error.
17961 Use char because int might match the return type of a GCC
17962 builtin and then its argument prototype would still apply. */
17970 return __alloca ();
17975 rm -f conftest.$ac_objext conftest$ac_exeext
17976 if { (ac_try="$ac_link"
17977 case "(($ac_try" in
17978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17979 *) ac_try_echo=$ac_try;;
17981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17982 (eval "$ac_link") 2>conftest.er1
17984 grep -v '^ *+' conftest.er1 >conftest.err
17986 cat conftest.err >&5
17987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17988 (exit $ac_status); } &&
17989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17990 { (case "(($ac_try" in
17991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17992 *) ac_try_echo=$ac_try;;
17994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17995 (eval "$ac_try") 2>&5
17997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17998 (exit $ac_status); }; } &&
17999 { ac_try='test -s conftest$ac_exeext'
18000 { (case "(($ac_try" in
18001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18002 *) ac_try_echo=$ac_try;;
18004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18005 (eval "$ac_try") 2>&5
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); }; }; then
18009 ac_cv_lib_gcc___alloca=yes
18011 echo "$as_me: failed program was:" >&5
18012 sed 's/^/| /' conftest.$ac_ext >&5
18014 ac_cv_lib_gcc___alloca=no
18017 rm -f core conftest.err conftest.$ac_objext \
18018 conftest$ac_exeext conftest.$ac_ext
18019 LIBS=$ac_check_lib_save_LIBS
18021 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18022 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18023 if test $ac_cv_lib_gcc___alloca = yes; then
18025 cat >>confdefs.h <<\_ACEOF
18026 #define HAVE___ALLOCA 1
18031 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18032 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18033 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18034 echo $ECHO_N "(cached) $ECHO_C" >&6
18036 ac_check_lib_save_LIBS=$LIBS
18038 cat >conftest.$ac_ext <<_ACEOF
18041 cat confdefs.h >>conftest.$ac_ext
18042 cat >>conftest.$ac_ext <<_ACEOF
18043 /* end confdefs.h. */
18045 /* Override any GCC internal prototype to avoid an error.
18046 Use char because int might match the return type of a GCC
18047 builtin and then its argument prototype would still apply. */
18055 return __chkstk ();
18060 rm -f conftest.$ac_objext conftest$ac_exeext
18061 if { (ac_try="$ac_link"
18062 case "(($ac_try" in
18063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18064 *) ac_try_echo=$ac_try;;
18066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18067 (eval "$ac_link") 2>conftest.er1
18069 grep -v '^ *+' conftest.er1 >conftest.err
18071 cat conftest.err >&5
18072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073 (exit $ac_status); } &&
18074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18075 { (case "(($ac_try" in
18076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18077 *) ac_try_echo=$ac_try;;
18079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18080 (eval "$ac_try") 2>&5
18082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083 (exit $ac_status); }; } &&
18084 { ac_try='test -s conftest$ac_exeext'
18085 { (case "(($ac_try" in
18086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18087 *) ac_try_echo=$ac_try;;
18089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18090 (eval "$ac_try") 2>&5
18092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093 (exit $ac_status); }; }; then
18094 ac_cv_lib_gcc___chkstk=yes
18096 echo "$as_me: failed program was:" >&5
18097 sed 's/^/| /' conftest.$ac_ext >&5
18099 ac_cv_lib_gcc___chkstk=no
18102 rm -f core conftest.err conftest.$ac_objext \
18103 conftest$ac_exeext conftest.$ac_ext
18104 LIBS=$ac_check_lib_save_LIBS
18106 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18107 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18108 if test $ac_cv_lib_gcc___chkstk = yes; then
18110 cat >>confdefs.h <<\_ACEOF
18111 #define HAVE___CHKSTK 1
18116 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18117 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18118 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18119 echo $ECHO_N "(cached) $ECHO_C" >&6
18121 ac_check_lib_save_LIBS=$LIBS
18123 cat >conftest.$ac_ext <<_ACEOF
18126 cat confdefs.h >>conftest.$ac_ext
18127 cat >>conftest.$ac_ext <<_ACEOF
18128 /* end confdefs.h. */
18130 /* Override any GCC internal prototype to avoid an error.
18131 Use char because int might match the return type of a GCC
18132 builtin and then its argument prototype would still apply. */
18140 return ___chkstk ();
18145 rm -f conftest.$ac_objext conftest$ac_exeext
18146 if { (ac_try="$ac_link"
18147 case "(($ac_try" in
18148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18149 *) ac_try_echo=$ac_try;;
18151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18152 (eval "$ac_link") 2>conftest.er1
18154 grep -v '^ *+' conftest.er1 >conftest.err
18156 cat conftest.err >&5
18157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158 (exit $ac_status); } &&
18159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18160 { (case "(($ac_try" in
18161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18162 *) ac_try_echo=$ac_try;;
18164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18165 (eval "$ac_try") 2>&5
18167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168 (exit $ac_status); }; } &&
18169 { ac_try='test -s conftest$ac_exeext'
18170 { (case "(($ac_try" in
18171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18172 *) ac_try_echo=$ac_try;;
18174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18175 (eval "$ac_try") 2>&5
18177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178 (exit $ac_status); }; }; then
18179 ac_cv_lib_gcc____chkstk=yes
18181 echo "$as_me: failed program was:" >&5
18182 sed 's/^/| /' conftest.$ac_ext >&5
18184 ac_cv_lib_gcc____chkstk=no
18187 rm -f core conftest.err conftest.$ac_objext \
18188 conftest$ac_exeext conftest.$ac_ext
18189 LIBS=$ac_check_lib_save_LIBS
18191 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18192 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18193 if test $ac_cv_lib_gcc____chkstk = yes; then
18195 cat >>confdefs.h <<\_ACEOF
18196 #define HAVE____CHKSTK 1
18202 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18203 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18204 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18205 echo $ECHO_N "(cached) $ECHO_C" >&6
18207 ac_check_lib_save_LIBS=$LIBS
18209 cat >conftest.$ac_ext <<_ACEOF
18212 cat confdefs.h >>conftest.$ac_ext
18213 cat >>conftest.$ac_ext <<_ACEOF
18214 /* end confdefs.h. */
18216 /* Override any GCC internal prototype to avoid an error.
18217 Use char because int might match the return type of a GCC
18218 builtin and then its argument prototype would still apply. */
18226 return __ashldi3 ();
18231 rm -f conftest.$ac_objext conftest$ac_exeext
18232 if { (ac_try="$ac_link"
18233 case "(($ac_try" in
18234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18235 *) ac_try_echo=$ac_try;;
18237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18238 (eval "$ac_link") 2>conftest.er1
18240 grep -v '^ *+' conftest.er1 >conftest.err
18242 cat conftest.err >&5
18243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244 (exit $ac_status); } &&
18245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18246 { (case "(($ac_try" in
18247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18248 *) ac_try_echo=$ac_try;;
18250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18251 (eval "$ac_try") 2>&5
18253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18254 (exit $ac_status); }; } &&
18255 { ac_try='test -s conftest$ac_exeext'
18256 { (case "(($ac_try" in
18257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18258 *) ac_try_echo=$ac_try;;
18260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18261 (eval "$ac_try") 2>&5
18263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18264 (exit $ac_status); }; }; then
18265 ac_cv_lib_gcc___ashldi3=yes
18267 echo "$as_me: failed program was:" >&5
18268 sed 's/^/| /' conftest.$ac_ext >&5
18270 ac_cv_lib_gcc___ashldi3=no
18273 rm -f core conftest.err conftest.$ac_objext \
18274 conftest$ac_exeext conftest.$ac_ext
18275 LIBS=$ac_check_lib_save_LIBS
18277 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18278 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18279 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18281 cat >>confdefs.h <<\_ACEOF
18282 #define HAVE___ASHLDI3 1
18287 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18288 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18289 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18290 echo $ECHO_N "(cached) $ECHO_C" >&6
18292 ac_check_lib_save_LIBS=$LIBS
18294 cat >conftest.$ac_ext <<_ACEOF
18297 cat confdefs.h >>conftest.$ac_ext
18298 cat >>conftest.$ac_ext <<_ACEOF
18299 /* end confdefs.h. */
18301 /* Override any GCC internal prototype to avoid an error.
18302 Use char because int might match the return type of a GCC
18303 builtin and then its argument prototype would still apply. */
18311 return __ashrdi3 ();
18316 rm -f conftest.$ac_objext conftest$ac_exeext
18317 if { (ac_try="$ac_link"
18318 case "(($ac_try" in
18319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18320 *) ac_try_echo=$ac_try;;
18322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18323 (eval "$ac_link") 2>conftest.er1
18325 grep -v '^ *+' conftest.er1 >conftest.err
18327 cat conftest.err >&5
18328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329 (exit $ac_status); } &&
18330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18331 { (case "(($ac_try" in
18332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18333 *) ac_try_echo=$ac_try;;
18335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18336 (eval "$ac_try") 2>&5
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); }; } &&
18340 { ac_try='test -s conftest$ac_exeext'
18341 { (case "(($ac_try" in
18342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18343 *) ac_try_echo=$ac_try;;
18345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18346 (eval "$ac_try") 2>&5
18348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18349 (exit $ac_status); }; }; then
18350 ac_cv_lib_gcc___ashrdi3=yes
18352 echo "$as_me: failed program was:" >&5
18353 sed 's/^/| /' conftest.$ac_ext >&5
18355 ac_cv_lib_gcc___ashrdi3=no
18358 rm -f core conftest.err conftest.$ac_objext \
18359 conftest$ac_exeext conftest.$ac_ext
18360 LIBS=$ac_check_lib_save_LIBS
18362 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18363 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18364 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18366 cat >>confdefs.h <<\_ACEOF
18367 #define HAVE___ASHRDI3 1
18372 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18373 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18374 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18375 echo $ECHO_N "(cached) $ECHO_C" >&6
18377 ac_check_lib_save_LIBS=$LIBS
18379 cat >conftest.$ac_ext <<_ACEOF
18382 cat confdefs.h >>conftest.$ac_ext
18383 cat >>conftest.$ac_ext <<_ACEOF
18384 /* end confdefs.h. */
18386 /* Override any GCC internal prototype to avoid an error.
18387 Use char because int might match the return type of a GCC
18388 builtin and then its argument prototype would still apply. */
18396 return __divdi3 ();
18401 rm -f conftest.$ac_objext conftest$ac_exeext
18402 if { (ac_try="$ac_link"
18403 case "(($ac_try" in
18404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18405 *) ac_try_echo=$ac_try;;
18407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18408 (eval "$ac_link") 2>conftest.er1
18410 grep -v '^ *+' conftest.er1 >conftest.err
18412 cat conftest.err >&5
18413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18414 (exit $ac_status); } &&
18415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18416 { (case "(($ac_try" in
18417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18418 *) ac_try_echo=$ac_try;;
18420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18421 (eval "$ac_try") 2>&5
18423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18424 (exit $ac_status); }; } &&
18425 { ac_try='test -s conftest$ac_exeext'
18426 { (case "(($ac_try" in
18427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18428 *) ac_try_echo=$ac_try;;
18430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18431 (eval "$ac_try") 2>&5
18433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434 (exit $ac_status); }; }; then
18435 ac_cv_lib_gcc___divdi3=yes
18437 echo "$as_me: failed program was:" >&5
18438 sed 's/^/| /' conftest.$ac_ext >&5
18440 ac_cv_lib_gcc___divdi3=no
18443 rm -f core conftest.err conftest.$ac_objext \
18444 conftest$ac_exeext conftest.$ac_ext
18445 LIBS=$ac_check_lib_save_LIBS
18447 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18448 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18449 if test $ac_cv_lib_gcc___divdi3 = yes; then
18451 cat >>confdefs.h <<\_ACEOF
18452 #define HAVE___DIVDI3 1
18457 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18458 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18459 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18460 echo $ECHO_N "(cached) $ECHO_C" >&6
18462 ac_check_lib_save_LIBS=$LIBS
18464 cat >conftest.$ac_ext <<_ACEOF
18467 cat confdefs.h >>conftest.$ac_ext
18468 cat >>conftest.$ac_ext <<_ACEOF
18469 /* end confdefs.h. */
18471 /* Override any GCC internal prototype to avoid an error.
18472 Use char because int might match the return type of a GCC
18473 builtin and then its argument prototype would still apply. */
18481 return __fixdfdi ();
18486 rm -f conftest.$ac_objext conftest$ac_exeext
18487 if { (ac_try="$ac_link"
18488 case "(($ac_try" in
18489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18490 *) ac_try_echo=$ac_try;;
18492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18493 (eval "$ac_link") 2>conftest.er1
18495 grep -v '^ *+' conftest.er1 >conftest.err
18497 cat conftest.err >&5
18498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18499 (exit $ac_status); } &&
18500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18501 { (case "(($ac_try" in
18502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18503 *) ac_try_echo=$ac_try;;
18505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18506 (eval "$ac_try") 2>&5
18508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18509 (exit $ac_status); }; } &&
18510 { ac_try='test -s conftest$ac_exeext'
18511 { (case "(($ac_try" in
18512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18513 *) ac_try_echo=$ac_try;;
18515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18516 (eval "$ac_try") 2>&5
18518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519 (exit $ac_status); }; }; then
18520 ac_cv_lib_gcc___fixdfdi=yes
18522 echo "$as_me: failed program was:" >&5
18523 sed 's/^/| /' conftest.$ac_ext >&5
18525 ac_cv_lib_gcc___fixdfdi=no
18528 rm -f core conftest.err conftest.$ac_objext \
18529 conftest$ac_exeext conftest.$ac_ext
18530 LIBS=$ac_check_lib_save_LIBS
18532 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18533 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18534 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18536 cat >>confdefs.h <<\_ACEOF
18537 #define HAVE___FIXDFDI 1
18542 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18543 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18544 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18545 echo $ECHO_N "(cached) $ECHO_C" >&6
18547 ac_check_lib_save_LIBS=$LIBS
18549 cat >conftest.$ac_ext <<_ACEOF
18552 cat confdefs.h >>conftest.$ac_ext
18553 cat >>conftest.$ac_ext <<_ACEOF
18554 /* end confdefs.h. */
18556 /* Override any GCC internal prototype to avoid an error.
18557 Use char because int might match the return type of a GCC
18558 builtin and then its argument prototype would still apply. */
18566 return __fixsfdi ();
18571 rm -f conftest.$ac_objext conftest$ac_exeext
18572 if { (ac_try="$ac_link"
18573 case "(($ac_try" in
18574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18575 *) ac_try_echo=$ac_try;;
18577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18578 (eval "$ac_link") 2>conftest.er1
18580 grep -v '^ *+' conftest.er1 >conftest.err
18582 cat conftest.err >&5
18583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18584 (exit $ac_status); } &&
18585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18586 { (case "(($ac_try" in
18587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18588 *) ac_try_echo=$ac_try;;
18590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18591 (eval "$ac_try") 2>&5
18593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18594 (exit $ac_status); }; } &&
18595 { ac_try='test -s conftest$ac_exeext'
18596 { (case "(($ac_try" in
18597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18598 *) ac_try_echo=$ac_try;;
18600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18601 (eval "$ac_try") 2>&5
18603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604 (exit $ac_status); }; }; then
18605 ac_cv_lib_gcc___fixsfdi=yes
18607 echo "$as_me: failed program was:" >&5
18608 sed 's/^/| /' conftest.$ac_ext >&5
18610 ac_cv_lib_gcc___fixsfdi=no
18613 rm -f core conftest.err conftest.$ac_objext \
18614 conftest$ac_exeext conftest.$ac_ext
18615 LIBS=$ac_check_lib_save_LIBS
18617 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18618 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18619 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18621 cat >>confdefs.h <<\_ACEOF
18622 #define HAVE___FIXSFDI 1
18627 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18628 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18629 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18630 echo $ECHO_N "(cached) $ECHO_C" >&6
18632 ac_check_lib_save_LIBS=$LIBS
18634 cat >conftest.$ac_ext <<_ACEOF
18637 cat confdefs.h >>conftest.$ac_ext
18638 cat >>conftest.$ac_ext <<_ACEOF
18639 /* end confdefs.h. */
18641 /* Override any GCC internal prototype to avoid an error.
18642 Use char because int might match the return type of a GCC
18643 builtin and then its argument prototype would still apply. */
18647 char __floatdidf ();
18651 return __floatdidf ();
18656 rm -f conftest.$ac_objext conftest$ac_exeext
18657 if { (ac_try="$ac_link"
18658 case "(($ac_try" in
18659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18660 *) ac_try_echo=$ac_try;;
18662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18663 (eval "$ac_link") 2>conftest.er1
18665 grep -v '^ *+' conftest.er1 >conftest.err
18667 cat conftest.err >&5
18668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669 (exit $ac_status); } &&
18670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18671 { (case "(($ac_try" in
18672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18673 *) ac_try_echo=$ac_try;;
18675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18676 (eval "$ac_try") 2>&5
18678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679 (exit $ac_status); }; } &&
18680 { ac_try='test -s conftest$ac_exeext'
18681 { (case "(($ac_try" in
18682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18683 *) ac_try_echo=$ac_try;;
18685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18686 (eval "$ac_try") 2>&5
18688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689 (exit $ac_status); }; }; then
18690 ac_cv_lib_gcc___floatdidf=yes
18692 echo "$as_me: failed program was:" >&5
18693 sed 's/^/| /' conftest.$ac_ext >&5
18695 ac_cv_lib_gcc___floatdidf=no
18698 rm -f core conftest.err conftest.$ac_objext \
18699 conftest$ac_exeext conftest.$ac_ext
18700 LIBS=$ac_check_lib_save_LIBS
18702 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18703 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18704 if test $ac_cv_lib_gcc___floatdidf = yes; then
18706 cat >>confdefs.h <<\_ACEOF
18707 #define HAVE___FLOATDIDF 1
18712 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18713 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18714 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18715 echo $ECHO_N "(cached) $ECHO_C" >&6
18717 ac_check_lib_save_LIBS=$LIBS
18719 cat >conftest.$ac_ext <<_ACEOF
18722 cat confdefs.h >>conftest.$ac_ext
18723 cat >>conftest.$ac_ext <<_ACEOF
18724 /* end confdefs.h. */
18726 /* Override any GCC internal prototype to avoid an error.
18727 Use char because int might match the return type of a GCC
18728 builtin and then its argument prototype would still apply. */
18736 return __lshrdi3 ();
18741 rm -f conftest.$ac_objext conftest$ac_exeext
18742 if { (ac_try="$ac_link"
18743 case "(($ac_try" in
18744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18745 *) ac_try_echo=$ac_try;;
18747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18748 (eval "$ac_link") 2>conftest.er1
18750 grep -v '^ *+' conftest.er1 >conftest.err
18752 cat conftest.err >&5
18753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754 (exit $ac_status); } &&
18755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18756 { (case "(($ac_try" in
18757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18758 *) ac_try_echo=$ac_try;;
18760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18761 (eval "$ac_try") 2>&5
18763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764 (exit $ac_status); }; } &&
18765 { ac_try='test -s conftest$ac_exeext'
18766 { (case "(($ac_try" in
18767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18768 *) ac_try_echo=$ac_try;;
18770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18771 (eval "$ac_try") 2>&5
18773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774 (exit $ac_status); }; }; then
18775 ac_cv_lib_gcc___lshrdi3=yes
18777 echo "$as_me: failed program was:" >&5
18778 sed 's/^/| /' conftest.$ac_ext >&5
18780 ac_cv_lib_gcc___lshrdi3=no
18783 rm -f core conftest.err conftest.$ac_objext \
18784 conftest$ac_exeext conftest.$ac_ext
18785 LIBS=$ac_check_lib_save_LIBS
18787 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18788 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18789 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18791 cat >>confdefs.h <<\_ACEOF
18792 #define HAVE___LSHRDI3 1
18797 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18798 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18799 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18800 echo $ECHO_N "(cached) $ECHO_C" >&6
18802 ac_check_lib_save_LIBS=$LIBS
18804 cat >conftest.$ac_ext <<_ACEOF
18807 cat confdefs.h >>conftest.$ac_ext
18808 cat >>conftest.$ac_ext <<_ACEOF
18809 /* end confdefs.h. */
18811 /* Override any GCC internal prototype to avoid an error.
18812 Use char because int might match the return type of a GCC
18813 builtin and then its argument prototype would still apply. */
18821 return __moddi3 ();
18826 rm -f conftest.$ac_objext conftest$ac_exeext
18827 if { (ac_try="$ac_link"
18828 case "(($ac_try" in
18829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18830 *) ac_try_echo=$ac_try;;
18832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18833 (eval "$ac_link") 2>conftest.er1
18835 grep -v '^ *+' conftest.er1 >conftest.err
18837 cat conftest.err >&5
18838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839 (exit $ac_status); } &&
18840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18841 { (case "(($ac_try" in
18842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18843 *) ac_try_echo=$ac_try;;
18845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18846 (eval "$ac_try") 2>&5
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); }; } &&
18850 { ac_try='test -s conftest$ac_exeext'
18851 { (case "(($ac_try" in
18852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18853 *) ac_try_echo=$ac_try;;
18855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18856 (eval "$ac_try") 2>&5
18858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859 (exit $ac_status); }; }; then
18860 ac_cv_lib_gcc___moddi3=yes
18862 echo "$as_me: failed program was:" >&5
18863 sed 's/^/| /' conftest.$ac_ext >&5
18865 ac_cv_lib_gcc___moddi3=no
18868 rm -f core conftest.err conftest.$ac_objext \
18869 conftest$ac_exeext conftest.$ac_ext
18870 LIBS=$ac_check_lib_save_LIBS
18872 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18873 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18874 if test $ac_cv_lib_gcc___moddi3 = yes; then
18876 cat >>confdefs.h <<\_ACEOF
18877 #define HAVE___MODDI3 1
18882 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18883 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18884 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18885 echo $ECHO_N "(cached) $ECHO_C" >&6
18887 ac_check_lib_save_LIBS=$LIBS
18889 cat >conftest.$ac_ext <<_ACEOF
18892 cat confdefs.h >>conftest.$ac_ext
18893 cat >>conftest.$ac_ext <<_ACEOF
18894 /* end confdefs.h. */
18896 /* Override any GCC internal prototype to avoid an error.
18897 Use char because int might match the return type of a GCC
18898 builtin and then its argument prototype would still apply. */
18906 return __udivdi3 ();
18911 rm -f conftest.$ac_objext conftest$ac_exeext
18912 if { (ac_try="$ac_link"
18913 case "(($ac_try" in
18914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18915 *) ac_try_echo=$ac_try;;
18917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18918 (eval "$ac_link") 2>conftest.er1
18920 grep -v '^ *+' conftest.er1 >conftest.err
18922 cat conftest.err >&5
18923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18924 (exit $ac_status); } &&
18925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18926 { (case "(($ac_try" in
18927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18928 *) ac_try_echo=$ac_try;;
18930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18931 (eval "$ac_try") 2>&5
18933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934 (exit $ac_status); }; } &&
18935 { ac_try='test -s conftest$ac_exeext'
18936 { (case "(($ac_try" in
18937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18938 *) ac_try_echo=$ac_try;;
18940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18941 (eval "$ac_try") 2>&5
18943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944 (exit $ac_status); }; }; then
18945 ac_cv_lib_gcc___udivdi3=yes
18947 echo "$as_me: failed program was:" >&5
18948 sed 's/^/| /' conftest.$ac_ext >&5
18950 ac_cv_lib_gcc___udivdi3=no
18953 rm -f core conftest.err conftest.$ac_objext \
18954 conftest$ac_exeext conftest.$ac_ext
18955 LIBS=$ac_check_lib_save_LIBS
18957 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18958 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18959 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18961 cat >>confdefs.h <<\_ACEOF
18962 #define HAVE___UDIVDI3 1
18967 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18968 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18969 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18970 echo $ECHO_N "(cached) $ECHO_C" >&6
18972 ac_check_lib_save_LIBS=$LIBS
18974 cat >conftest.$ac_ext <<_ACEOF
18977 cat confdefs.h >>conftest.$ac_ext
18978 cat >>conftest.$ac_ext <<_ACEOF
18979 /* end confdefs.h. */
18981 /* Override any GCC internal prototype to avoid an error.
18982 Use char because int might match the return type of a GCC
18983 builtin and then its argument prototype would still apply. */
18991 return __umoddi3 ();
18996 rm -f conftest.$ac_objext conftest$ac_exeext
18997 if { (ac_try="$ac_link"
18998 case "(($ac_try" in
18999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19000 *) ac_try_echo=$ac_try;;
19002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19003 (eval "$ac_link") 2>conftest.er1
19005 grep -v '^ *+' conftest.er1 >conftest.err
19007 cat conftest.err >&5
19008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009 (exit $ac_status); } &&
19010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19011 { (case "(($ac_try" in
19012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19013 *) ac_try_echo=$ac_try;;
19015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19016 (eval "$ac_try") 2>&5
19018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019 (exit $ac_status); }; } &&
19020 { ac_try='test -s conftest$ac_exeext'
19021 { (case "(($ac_try" in
19022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19023 *) ac_try_echo=$ac_try;;
19025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19026 (eval "$ac_try") 2>&5
19028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029 (exit $ac_status); }; }; then
19030 ac_cv_lib_gcc___umoddi3=yes
19032 echo "$as_me: failed program was:" >&5
19033 sed 's/^/| /' conftest.$ac_ext >&5
19035 ac_cv_lib_gcc___umoddi3=no
19038 rm -f core conftest.err conftest.$ac_objext \
19039 conftest$ac_exeext conftest.$ac_ext
19040 LIBS=$ac_check_lib_save_LIBS
19042 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19043 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19044 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19046 cat >>confdefs.h <<\_ACEOF
19047 #define HAVE___UMODDI3 1
19053 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19054 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19055 if test "${ac_cv_lib_gcc___main+set}" = set; then
19056 echo $ECHO_N "(cached) $ECHO_C" >&6
19058 ac_check_lib_save_LIBS=$LIBS
19060 cat >conftest.$ac_ext <<_ACEOF
19063 cat confdefs.h >>conftest.$ac_ext
19064 cat >>conftest.$ac_ext <<_ACEOF
19065 /* end confdefs.h. */
19067 /* Override any GCC internal prototype to avoid an error.
19068 Use char because int might match the return type of a GCC
19069 builtin and then its argument prototype would still apply. */
19082 rm -f conftest.$ac_objext conftest$ac_exeext
19083 if { (ac_try="$ac_link"
19084 case "(($ac_try" in
19085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19086 *) ac_try_echo=$ac_try;;
19088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19089 (eval "$ac_link") 2>conftest.er1
19091 grep -v '^ *+' conftest.er1 >conftest.err
19093 cat conftest.err >&5
19094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095 (exit $ac_status); } &&
19096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19097 { (case "(($ac_try" in
19098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19099 *) ac_try_echo=$ac_try;;
19101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19102 (eval "$ac_try") 2>&5
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); }; } &&
19106 { ac_try='test -s conftest$ac_exeext'
19107 { (case "(($ac_try" in
19108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19109 *) ac_try_echo=$ac_try;;
19111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19112 (eval "$ac_try") 2>&5
19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); }; }; then
19116 ac_cv_lib_gcc___main=yes
19118 echo "$as_me: failed program was:" >&5
19119 sed 's/^/| /' conftest.$ac_ext >&5
19121 ac_cv_lib_gcc___main=no
19124 rm -f core conftest.err conftest.$ac_objext \
19125 conftest$ac_exeext conftest.$ac_ext
19126 LIBS=$ac_check_lib_save_LIBS
19128 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19129 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19130 if test $ac_cv_lib_gcc___main = yes; then
19132 cat >>confdefs.h <<\_ACEOF
19133 #define HAVE___MAIN 1
19138 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19139 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19140 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19141 echo $ECHO_N "(cached) $ECHO_C" >&6
19143 ac_check_lib_save_LIBS=$LIBS
19145 cat >conftest.$ac_ext <<_ACEOF
19148 cat confdefs.h >>conftest.$ac_ext
19149 cat >>conftest.$ac_ext <<_ACEOF
19150 /* end confdefs.h. */
19152 /* Override any GCC internal prototype to avoid an error.
19153 Use char because int might match the return type of a GCC
19154 builtin and then its argument prototype would still apply. */
19162 return __cmpdi2 ();
19167 rm -f conftest.$ac_objext conftest$ac_exeext
19168 if { (ac_try="$ac_link"
19169 case "(($ac_try" in
19170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19171 *) ac_try_echo=$ac_try;;
19173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19174 (eval "$ac_link") 2>conftest.er1
19176 grep -v '^ *+' conftest.er1 >conftest.err
19178 cat conftest.err >&5
19179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180 (exit $ac_status); } &&
19181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19182 { (case "(($ac_try" in
19183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19184 *) ac_try_echo=$ac_try;;
19186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19187 (eval "$ac_try") 2>&5
19189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); }; } &&
19191 { ac_try='test -s conftest$ac_exeext'
19192 { (case "(($ac_try" in
19193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19194 *) ac_try_echo=$ac_try;;
19196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19197 (eval "$ac_try") 2>&5
19199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19200 (exit $ac_status); }; }; then
19201 ac_cv_lib_gcc___cmpdi2=yes
19203 echo "$as_me: failed program was:" >&5
19204 sed 's/^/| /' conftest.$ac_ext >&5
19206 ac_cv_lib_gcc___cmpdi2=no
19209 rm -f core conftest.err conftest.$ac_objext \
19210 conftest$ac_exeext conftest.$ac_ext
19211 LIBS=$ac_check_lib_save_LIBS
19213 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19214 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19215 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19217 cat >>confdefs.h <<\_ACEOF
19218 #define HAVE___CMPDI2 1
19225 if test "$llvm_cv_os_type" = "MingW" ; then
19226 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19227 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19228 cat >conftest.$ac_ext <<_ACEOF
19229 #include <windows.h>
19230 #include <imagehlp.h>
19231 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19232 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19234 rm -f conftest.$ac_objext
19235 if { (ac_try="$ac_compile"
19236 case "(($ac_try" in
19237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19238 *) ac_try_echo=$ac_try;;
19240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19241 (eval "$ac_compile") 2>conftest.er1
19243 grep -v '^ *+' conftest.er1 >conftest.err
19245 cat conftest.err >&5
19246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247 (exit $ac_status); } &&
19248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19249 { (case "(($ac_try" in
19250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19251 *) ac_try_echo=$ac_try;;
19253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19254 (eval "$ac_try") 2>&5
19256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19257 (exit $ac_status); }; } &&
19258 { ac_try='test -s conftest.$ac_objext'
19259 { (case "(($ac_try" in
19260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19261 *) ac_try_echo=$ac_try;;
19263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19264 (eval "$ac_try") 2>&5
19266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267 (exit $ac_status); }; }; then
19269 { echo "$as_me:$LINENO: result: yes" >&5
19270 echo "${ECHO_T}yes" >&6; }
19271 llvm_cv_win32_elmcb_pcstr="PCSTR"
19274 echo "$as_me: failed program was:" >&5
19275 sed 's/^/| /' conftest.$ac_ext >&5
19278 { echo "$as_me:$LINENO: result: no" >&5
19279 echo "${ECHO_T}no" >&6; }
19280 llvm_cv_win32_elmcb_pcstr="PSTR"
19284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19286 cat >>confdefs.h <<_ACEOF
19287 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19293 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19294 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19295 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19296 echo $ECHO_N "(cached) $ECHO_C" >&6
19299 ac_cpp='$CXXCPP $CPPFLAGS'
19300 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19301 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19302 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19304 cat >conftest.$ac_ext <<_ACEOF
19307 cat confdefs.h >>conftest.$ac_ext
19308 cat >>conftest.$ac_ext <<_ACEOF
19309 /* end confdefs.h. */
19319 rm -f conftest.$ac_objext
19320 if { (ac_try="$ac_compile"
19321 case "(($ac_try" in
19322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19323 *) ac_try_echo=$ac_try;;
19325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19326 (eval "$ac_compile") 2>conftest.er1
19328 grep -v '^ *+' conftest.er1 >conftest.err
19330 cat conftest.err >&5
19331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332 (exit $ac_status); } &&
19333 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19334 { (case "(($ac_try" in
19335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19336 *) ac_try_echo=$ac_try;;
19338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19339 (eval "$ac_try") 2>&5
19341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342 (exit $ac_status); }; } &&
19343 { ac_try='test -s conftest.$ac_objext'
19344 { (case "(($ac_try" in
19345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19346 *) ac_try_echo=$ac_try;;
19348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19349 (eval "$ac_try") 2>&5
19351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352 (exit $ac_status); }; }; then
19353 ac_cv_func_isnan_in_math_h=yes
19355 echo "$as_me: failed program was:" >&5
19356 sed 's/^/| /' conftest.$ac_ext >&5
19358 ac_cv_func_isnan_in_math_h=no
19361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19363 ac_cpp='$CPP $CPPFLAGS'
19364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19369 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19370 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19373 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19375 cat >>confdefs.h <<\_ACEOF
19376 #define HAVE_ISNAN_IN_MATH_H 1
19381 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19382 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19383 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19384 echo $ECHO_N "(cached) $ECHO_C" >&6
19387 ac_cpp='$CXXCPP $CPPFLAGS'
19388 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19389 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19390 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19392 cat >conftest.$ac_ext <<_ACEOF
19395 cat confdefs.h >>conftest.$ac_ext
19396 cat >>conftest.$ac_ext <<_ACEOF
19397 /* end confdefs.h. */
19407 rm -f conftest.$ac_objext
19408 if { (ac_try="$ac_compile"
19409 case "(($ac_try" in
19410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19411 *) ac_try_echo=$ac_try;;
19413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19414 (eval "$ac_compile") 2>conftest.er1
19416 grep -v '^ *+' conftest.er1 >conftest.err
19418 cat conftest.err >&5
19419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420 (exit $ac_status); } &&
19421 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19422 { (case "(($ac_try" in
19423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19424 *) ac_try_echo=$ac_try;;
19426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19427 (eval "$ac_try") 2>&5
19429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430 (exit $ac_status); }; } &&
19431 { ac_try='test -s conftest.$ac_objext'
19432 { (case "(($ac_try" in
19433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19434 *) ac_try_echo=$ac_try;;
19436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19437 (eval "$ac_try") 2>&5
19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440 (exit $ac_status); }; }; then
19441 ac_cv_func_isnan_in_cmath=yes
19443 echo "$as_me: failed program was:" >&5
19444 sed 's/^/| /' conftest.$ac_ext >&5
19446 ac_cv_func_isnan_in_cmath=no
19449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19451 ac_cpp='$CPP $CPPFLAGS'
19452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19457 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19458 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19460 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19462 cat >>confdefs.h <<\_ACEOF
19463 #define HAVE_ISNAN_IN_CMATH 1
19468 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19469 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19470 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19471 echo $ECHO_N "(cached) $ECHO_C" >&6
19474 ac_cpp='$CXXCPP $CPPFLAGS'
19475 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19476 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19477 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19479 cat >conftest.$ac_ext <<_ACEOF
19482 cat confdefs.h >>conftest.$ac_ext
19483 cat >>conftest.$ac_ext <<_ACEOF
19484 /* end confdefs.h. */
19489 float f; std::isnan(f);
19494 rm -f conftest.$ac_objext
19495 if { (ac_try="$ac_compile"
19496 case "(($ac_try" in
19497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19498 *) ac_try_echo=$ac_try;;
19500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19501 (eval "$ac_compile") 2>conftest.er1
19503 grep -v '^ *+' conftest.er1 >conftest.err
19505 cat conftest.err >&5
19506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507 (exit $ac_status); } &&
19508 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19509 { (case "(($ac_try" in
19510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19511 *) ac_try_echo=$ac_try;;
19513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19514 (eval "$ac_try") 2>&5
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); }; } &&
19518 { ac_try='test -s conftest.$ac_objext'
19519 { (case "(($ac_try" in
19520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19521 *) ac_try_echo=$ac_try;;
19523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19524 (eval "$ac_try") 2>&5
19526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527 (exit $ac_status); }; }; then
19528 ac_cv_func_std_isnan_in_cmath=yes
19530 echo "$as_me: failed program was:" >&5
19531 sed 's/^/| /' conftest.$ac_ext >&5
19533 ac_cv_func_std_isnan_in_cmath=no
19536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19538 ac_cpp='$CPP $CPPFLAGS'
19539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19544 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19545 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19547 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19549 cat >>confdefs.h <<\_ACEOF
19550 #define HAVE_STD_ISNAN_IN_CMATH 1
19556 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19557 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19558 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19559 echo $ECHO_N "(cached) $ECHO_C" >&6
19562 ac_cpp='$CXXCPP $CPPFLAGS'
19563 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19564 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19565 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19567 cat >conftest.$ac_ext <<_ACEOF
19570 cat confdefs.h >>conftest.$ac_ext
19571 cat >>conftest.$ac_ext <<_ACEOF
19572 /* end confdefs.h. */
19582 rm -f conftest.$ac_objext
19583 if { (ac_try="$ac_compile"
19584 case "(($ac_try" in
19585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19586 *) ac_try_echo=$ac_try;;
19588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19589 (eval "$ac_compile") 2>conftest.er1
19591 grep -v '^ *+' conftest.er1 >conftest.err
19593 cat conftest.err >&5
19594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); } &&
19596 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19597 { (case "(($ac_try" in
19598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19599 *) ac_try_echo=$ac_try;;
19601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19602 (eval "$ac_try") 2>&5
19604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605 (exit $ac_status); }; } &&
19606 { ac_try='test -s conftest.$ac_objext'
19607 { (case "(($ac_try" in
19608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19609 *) ac_try_echo=$ac_try;;
19611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19612 (eval "$ac_try") 2>&5
19614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615 (exit $ac_status); }; }; then
19616 ac_cv_func_isinf_in_math_h=yes
19618 echo "$as_me: failed program was:" >&5
19619 sed 's/^/| /' conftest.$ac_ext >&5
19621 ac_cv_func_isinf_in_math_h=no
19624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19626 ac_cpp='$CPP $CPPFLAGS'
19627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19632 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19633 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19635 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19637 cat >>confdefs.h <<\_ACEOF
19638 #define HAVE_ISINF_IN_MATH_H 1
19643 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19644 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19645 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19646 echo $ECHO_N "(cached) $ECHO_C" >&6
19649 ac_cpp='$CXXCPP $CPPFLAGS'
19650 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19651 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19652 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19654 cat >conftest.$ac_ext <<_ACEOF
19657 cat confdefs.h >>conftest.$ac_ext
19658 cat >>conftest.$ac_ext <<_ACEOF
19659 /* end confdefs.h. */
19669 rm -f conftest.$ac_objext
19670 if { (ac_try="$ac_compile"
19671 case "(($ac_try" in
19672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19673 *) ac_try_echo=$ac_try;;
19675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19676 (eval "$ac_compile") 2>conftest.er1
19678 grep -v '^ *+' conftest.er1 >conftest.err
19680 cat conftest.err >&5
19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); } &&
19683 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19684 { (case "(($ac_try" in
19685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19686 *) ac_try_echo=$ac_try;;
19688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19689 (eval "$ac_try") 2>&5
19691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692 (exit $ac_status); }; } &&
19693 { ac_try='test -s conftest.$ac_objext'
19694 { (case "(($ac_try" in
19695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19696 *) ac_try_echo=$ac_try;;
19698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19699 (eval "$ac_try") 2>&5
19701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702 (exit $ac_status); }; }; then
19703 ac_cv_func_isinf_in_cmath=yes
19705 echo "$as_me: failed program was:" >&5
19706 sed 's/^/| /' conftest.$ac_ext >&5
19708 ac_cv_func_isinf_in_cmath=no
19711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19713 ac_cpp='$CPP $CPPFLAGS'
19714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19719 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19720 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19722 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19724 cat >>confdefs.h <<\_ACEOF
19725 #define HAVE_ISINF_IN_CMATH 1
19730 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19731 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19732 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19733 echo $ECHO_N "(cached) $ECHO_C" >&6
19736 ac_cpp='$CXXCPP $CPPFLAGS'
19737 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19738 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19739 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19741 cat >conftest.$ac_ext <<_ACEOF
19744 cat confdefs.h >>conftest.$ac_ext
19745 cat >>conftest.$ac_ext <<_ACEOF
19746 /* end confdefs.h. */
19751 float f; std::isinf(f)}
19756 rm -f conftest.$ac_objext
19757 if { (ac_try="$ac_compile"
19758 case "(($ac_try" in
19759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19760 *) ac_try_echo=$ac_try;;
19762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19763 (eval "$ac_compile") 2>conftest.er1
19765 grep -v '^ *+' conftest.er1 >conftest.err
19767 cat conftest.err >&5
19768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769 (exit $ac_status); } &&
19770 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19771 { (case "(($ac_try" in
19772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19773 *) ac_try_echo=$ac_try;;
19775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19776 (eval "$ac_try") 2>&5
19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779 (exit $ac_status); }; } &&
19780 { ac_try='test -s conftest.$ac_objext'
19781 { (case "(($ac_try" in
19782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19783 *) ac_try_echo=$ac_try;;
19785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19786 (eval "$ac_try") 2>&5
19788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); }; }; then
19790 ac_cv_func_std_isinf_in_cmath=yes
19792 echo "$as_me: failed program was:" >&5
19793 sed 's/^/| /' conftest.$ac_ext >&5
19795 ac_cv_func_std_isinf_in_cmath=no
19798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19800 ac_cpp='$CPP $CPPFLAGS'
19801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19806 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19807 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19809 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19811 cat >>confdefs.h <<\_ACEOF
19812 #define HAVE_STD_ISINF_IN_CMATH 1
19817 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19818 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19819 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19820 echo $ECHO_N "(cached) $ECHO_C" >&6
19823 ac_cpp='$CXXCPP $CPPFLAGS'
19824 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19825 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19826 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19828 cat >conftest.$ac_ext <<_ACEOF
19831 cat confdefs.h >>conftest.$ac_ext
19832 cat >>conftest.$ac_ext <<_ACEOF
19833 /* end confdefs.h. */
19834 #include <ieeefp.h>
19838 float f; finite(f);
19843 rm -f conftest.$ac_objext
19844 if { (ac_try="$ac_compile"
19845 case "(($ac_try" in
19846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19847 *) ac_try_echo=$ac_try;;
19849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19850 (eval "$ac_compile") 2>conftest.er1
19852 grep -v '^ *+' conftest.er1 >conftest.err
19854 cat conftest.err >&5
19855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856 (exit $ac_status); } &&
19857 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19858 { (case "(($ac_try" in
19859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19860 *) ac_try_echo=$ac_try;;
19862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19863 (eval "$ac_try") 2>&5
19865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866 (exit $ac_status); }; } &&
19867 { ac_try='test -s conftest.$ac_objext'
19868 { (case "(($ac_try" in
19869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19870 *) ac_try_echo=$ac_try;;
19872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19873 (eval "$ac_try") 2>&5
19875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876 (exit $ac_status); }; }; then
19877 ac_cv_func_finite_in_ieeefp_h=yes
19879 echo "$as_me: failed program was:" >&5
19880 sed 's/^/| /' conftest.$ac_ext >&5
19882 ac_cv_func_finite_in_ieeefp_h=no
19885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19887 ac_cpp='$CPP $CPPFLAGS'
19888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19893 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19894 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19896 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19898 cat >>confdefs.h <<\_ACEOF
19899 #define HAVE_FINITE_IN_IEEEFP_H 1
19906 if test "$llvm_cv_platform_type" = "Unix" ; then
19909 for ac_header in stdlib.h unistd.h
19911 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19913 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19916 echo $ECHO_N "(cached) $ECHO_C" >&6
19918 ac_res=`eval echo '${'$as_ac_Header'}'`
19919 { echo "$as_me:$LINENO: result: $ac_res" >&5
19920 echo "${ECHO_T}$ac_res" >&6; }
19922 # Is the header compilable?
19923 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19924 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19925 cat >conftest.$ac_ext <<_ACEOF
19928 cat confdefs.h >>conftest.$ac_ext
19929 cat >>conftest.$ac_ext <<_ACEOF
19930 /* end confdefs.h. */
19931 $ac_includes_default
19932 #include <$ac_header>
19934 rm -f conftest.$ac_objext
19935 if { (ac_try="$ac_compile"
19936 case "(($ac_try" in
19937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19938 *) ac_try_echo=$ac_try;;
19940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19941 (eval "$ac_compile") 2>conftest.er1
19943 grep -v '^ *+' conftest.er1 >conftest.err
19945 cat conftest.err >&5
19946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947 (exit $ac_status); } &&
19948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19949 { (case "(($ac_try" in
19950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19951 *) ac_try_echo=$ac_try;;
19953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19954 (eval "$ac_try") 2>&5
19956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19957 (exit $ac_status); }; } &&
19958 { ac_try='test -s conftest.$ac_objext'
19959 { (case "(($ac_try" in
19960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19961 *) ac_try_echo=$ac_try;;
19963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19964 (eval "$ac_try") 2>&5
19966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19967 (exit $ac_status); }; }; then
19968 ac_header_compiler=yes
19970 echo "$as_me: failed program was:" >&5
19971 sed 's/^/| /' conftest.$ac_ext >&5
19973 ac_header_compiler=no
19976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19977 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19978 echo "${ECHO_T}$ac_header_compiler" >&6; }
19980 # Is the header present?
19981 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19982 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19983 cat >conftest.$ac_ext <<_ACEOF
19986 cat confdefs.h >>conftest.$ac_ext
19987 cat >>conftest.$ac_ext <<_ACEOF
19988 /* end confdefs.h. */
19989 #include <$ac_header>
19991 if { (ac_try="$ac_cpp conftest.$ac_ext"
19992 case "(($ac_try" in
19993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19994 *) ac_try_echo=$ac_try;;
19996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19997 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19999 grep -v '^ *+' conftest.er1 >conftest.err
20001 cat conftest.err >&5
20002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003 (exit $ac_status); } >/dev/null; then
20004 if test -s conftest.err; then
20005 ac_cpp_err=$ac_c_preproc_warn_flag
20006 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20013 if test -z "$ac_cpp_err"; then
20014 ac_header_preproc=yes
20016 echo "$as_me: failed program was:" >&5
20017 sed 's/^/| /' conftest.$ac_ext >&5
20019 ac_header_preproc=no
20022 rm -f conftest.err conftest.$ac_ext
20023 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20024 echo "${ECHO_T}$ac_header_preproc" >&6; }
20026 # So? What about this header?
20027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20029 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20030 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20032 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20033 ac_header_preproc=yes
20036 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20037 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20038 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20039 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20040 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20041 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20042 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20043 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20045 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20046 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20047 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20049 ## ------------------------------------ ##
20050 ## Report this to http://llvm.org/bugs/ ##
20051 ## ------------------------------------ ##
20053 ) | sed "s/^/$as_me: WARNING: /" >&2
20056 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20059 echo $ECHO_N "(cached) $ECHO_C" >&6
20061 eval "$as_ac_Header=\$ac_header_preproc"
20063 ac_res=`eval echo '${'$as_ac_Header'}'`
20064 { echo "$as_me:$LINENO: result: $ac_res" >&5
20065 echo "${ECHO_T}$ac_res" >&6; }
20068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20069 cat >>confdefs.h <<_ACEOF
20070 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20078 for ac_func in getpagesize
20080 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20081 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20082 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20083 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20084 echo $ECHO_N "(cached) $ECHO_C" >&6
20086 cat >conftest.$ac_ext <<_ACEOF
20089 cat confdefs.h >>conftest.$ac_ext
20090 cat >>conftest.$ac_ext <<_ACEOF
20091 /* end confdefs.h. */
20092 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20094 #define $ac_func innocuous_$ac_func
20096 /* System header to define __stub macros and hopefully few prototypes,
20097 which can conflict with char $ac_func (); below.
20098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20099 <limits.h> exists even on freestanding compilers. */
20102 # include <limits.h>
20104 # include <assert.h>
20109 /* Override any GCC internal prototype to avoid an error.
20110 Use char because int might match the return type of a GCC
20111 builtin and then its argument prototype would still apply. */
20116 /* The GNU C library defines this for functions which it implements
20117 to always fail with ENOSYS. Some functions are actually named
20118 something starting with __ and the normal name is an alias. */
20119 #if defined __stub_$ac_func || defined __stub___$ac_func
20126 return $ac_func ();
20131 rm -f conftest.$ac_objext conftest$ac_exeext
20132 if { (ac_try="$ac_link"
20133 case "(($ac_try" in
20134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20135 *) ac_try_echo=$ac_try;;
20137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20138 (eval "$ac_link") 2>conftest.er1
20140 grep -v '^ *+' conftest.er1 >conftest.err
20142 cat conftest.err >&5
20143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144 (exit $ac_status); } &&
20145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20146 { (case "(($ac_try" in
20147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20148 *) ac_try_echo=$ac_try;;
20150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20151 (eval "$ac_try") 2>&5
20153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); }; } &&
20155 { ac_try='test -s conftest$ac_exeext'
20156 { (case "(($ac_try" in
20157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20158 *) ac_try_echo=$ac_try;;
20160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20161 (eval "$ac_try") 2>&5
20163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164 (exit $ac_status); }; }; then
20165 eval "$as_ac_var=yes"
20167 echo "$as_me: failed program was:" >&5
20168 sed 's/^/| /' conftest.$ac_ext >&5
20170 eval "$as_ac_var=no"
20173 rm -f core conftest.err conftest.$ac_objext \
20174 conftest$ac_exeext conftest.$ac_ext
20176 ac_res=`eval echo '${'$as_ac_var'}'`
20177 { echo "$as_me:$LINENO: result: $ac_res" >&5
20178 echo "${ECHO_T}$ac_res" >&6; }
20179 if test `eval echo '${'$as_ac_var'}'` = yes; then
20180 cat >>confdefs.h <<_ACEOF
20181 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20187 { echo "$as_me:$LINENO: checking for working mmap" >&5
20188 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20189 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20190 echo $ECHO_N "(cached) $ECHO_C" >&6
20192 if test "$cross_compiling" = yes; then
20193 ac_cv_func_mmap_fixed_mapped=no
20195 cat >conftest.$ac_ext <<_ACEOF
20198 cat confdefs.h >>conftest.$ac_ext
20199 cat >>conftest.$ac_ext <<_ACEOF
20200 /* end confdefs.h. */
20201 $ac_includes_default
20202 /* malloc might have been renamed as rpl_malloc. */
20205 /* Thanks to Mike Haertel and Jim Avera for this test.
20206 Here is a matrix of mmap possibilities:
20207 mmap private not fixed
20208 mmap private fixed at somewhere currently unmapped
20209 mmap private fixed at somewhere already mapped
20210 mmap shared not fixed
20211 mmap shared fixed at somewhere currently unmapped
20212 mmap shared fixed at somewhere already mapped
20213 For private mappings, we should verify that changes cannot be read()
20214 back from the file, nor mmap's back from the file at a different
20215 address. (There have been systems where private was not correctly
20216 implemented like the infamous i386 svr4.0, and systems where the
20217 VM page cache was not coherent with the file system buffer cache
20218 like early versions of FreeBSD and possibly contemporary NetBSD.)
20219 For shared mappings, we should conversely verify that changes get
20220 propagated back to all the places they're supposed to be.
20222 Grep wants private fixed already mapped.
20223 The main things grep needs to know about mmap are:
20224 * does it exist and is it safe to write into the mmap'd area
20225 * how to use it (BSD variants) */
20228 #include <sys/mman.h>
20230 #if !STDC_HEADERS && !HAVE_STDLIB_H
20234 /* This mess was copied from the GNU getpagesize.h. */
20235 #if !HAVE_GETPAGESIZE
20236 /* Assume that all systems that can run configure have sys/param.h. */
20237 # if !HAVE_SYS_PARAM_H
20238 # define HAVE_SYS_PARAM_H 1
20241 # ifdef _SC_PAGESIZE
20242 # define getpagesize() sysconf(_SC_PAGESIZE)
20243 # else /* no _SC_PAGESIZE */
20244 # if HAVE_SYS_PARAM_H
20245 # include <sys/param.h>
20246 # ifdef EXEC_PAGESIZE
20247 # define getpagesize() EXEC_PAGESIZE
20248 # else /* no EXEC_PAGESIZE */
20250 # define getpagesize() NBPG * CLSIZE
20253 # endif /* no CLSIZE */
20254 # else /* no NBPG */
20256 # define getpagesize() NBPC
20257 # else /* no NBPC */
20259 # define getpagesize() PAGESIZE
20260 # endif /* PAGESIZE */
20261 # endif /* no NBPC */
20262 # endif /* no NBPG */
20263 # endif /* no EXEC_PAGESIZE */
20264 # else /* no HAVE_SYS_PARAM_H */
20265 # define getpagesize() 8192 /* punt totally */
20266 # endif /* no HAVE_SYS_PARAM_H */
20267 # endif /* no _SC_PAGESIZE */
20269 #endif /* no HAVE_GETPAGESIZE */
20274 char *data, *data2, *data3;
20278 pagesize = getpagesize ();
20280 /* First, make a file with some known garbage in it. */
20281 data = (char *) malloc (pagesize);
20284 for (i = 0; i < pagesize; ++i)
20285 *(data + i) = rand ();
20287 fd = creat ("conftest.mmap", 0600);
20290 if (write (fd, data, pagesize) != pagesize)
20294 /* Next, try to mmap the file at a fixed address which already has
20295 something else allocated at it. If we can, also make sure that
20296 we see the same garbage. */
20297 fd = open ("conftest.mmap", O_RDWR);
20300 data2 = (char *) malloc (2 * pagesize);
20303 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20304 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20305 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20307 for (i = 0; i < pagesize; ++i)
20308 if (*(data + i) != *(data2 + i))
20311 /* Finally, make sure that changes to the mapped area do not
20312 percolate back to the file as seen by read(). (This is a bug on
20313 some variants of i386 svr4.0.) */
20314 for (i = 0; i < pagesize; ++i)
20315 *(data2 + i) = *(data2 + i) + 1;
20316 data3 = (char *) malloc (pagesize);
20319 if (read (fd, data3, pagesize) != pagesize)
20321 for (i = 0; i < pagesize; ++i)
20322 if (*(data + i) != *(data3 + i))
20328 rm -f conftest$ac_exeext
20329 if { (ac_try="$ac_link"
20330 case "(($ac_try" in
20331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20332 *) ac_try_echo=$ac_try;;
20334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20335 (eval "$ac_link") 2>&5
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20339 { (case "(($ac_try" in
20340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20341 *) ac_try_echo=$ac_try;;
20343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20344 (eval "$ac_try") 2>&5
20346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347 (exit $ac_status); }; }; then
20348 ac_cv_func_mmap_fixed_mapped=yes
20350 echo "$as_me: program exited with status $ac_status" >&5
20351 echo "$as_me: failed program was:" >&5
20352 sed 's/^/| /' conftest.$ac_ext >&5
20354 ( exit $ac_status )
20355 ac_cv_func_mmap_fixed_mapped=no
20357 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20362 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20363 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20364 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20366 cat >>confdefs.h <<\_ACEOF
20367 #define HAVE_MMAP 1
20371 rm -f conftest.mmap
20373 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20374 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20375 if test "${ac_cv_func_mmap_file+set}" = set; then
20376 echo $ECHO_N "(cached) $ECHO_C" >&6
20379 ac_cpp='$CPP $CPPFLAGS'
20380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20384 if test "$cross_compiling" = yes; then
20385 ac_cv_func_mmap_file=no
20387 cat >conftest.$ac_ext <<_ACEOF
20391 cat confdefs.h >>conftest.$ac_ext
20392 cat >>conftest.$ac_ext <<_ACEOF
20393 /* end confdefs.h. */
20395 #include <sys/types.h>
20396 #include <sys/mman.h>
20404 fd = creat ("foo",0777);
20405 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20407 return (fd != (int) MAP_FAILED);
20412 rm -f conftest$ac_exeext
20413 if { (ac_try="$ac_link"
20414 case "(($ac_try" in
20415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20416 *) ac_try_echo=$ac_try;;
20418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20419 (eval "$ac_link") 2>&5
20421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20423 { (case "(($ac_try" in
20424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20425 *) ac_try_echo=$ac_try;;
20427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20428 (eval "$ac_try") 2>&5
20430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431 (exit $ac_status); }; }; then
20432 ac_cv_func_mmap_file=yes
20434 echo "$as_me: program exited with status $ac_status" >&5
20435 echo "$as_me: failed program was:" >&5
20436 sed 's/^/| /' conftest.$ac_ext >&5
20438 ( exit $ac_status )
20439 ac_cv_func_mmap_file=no
20441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20446 ac_cpp='$CPP $CPPFLAGS'
20447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20453 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20454 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20455 if test "$ac_cv_func_mmap_file" = yes; then
20457 cat >>confdefs.h <<\_ACEOF
20458 #define HAVE_MMAP_FILE
20465 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20466 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20467 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20468 echo $ECHO_N "(cached) $ECHO_C" >&6
20470 if test "$llvm_cv_os_type" = "Interix" ; then
20471 ac_cv_need_dev_zero_for_mmap=yes
20473 ac_cv_need_dev_zero_for_mmap=no
20477 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20478 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20479 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20481 cat >>confdefs.h <<\_ACEOF
20482 #define NEED_DEV_ZERO_FOR_MMAP 1
20487 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20489 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20490 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20492 if test "$ac_cv_func_mmap_file" = "no"
20494 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20495 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20499 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20500 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20502 ac_cpp='$CXXCPP $CPPFLAGS'
20503 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20504 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20505 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20507 cat >conftest.$ac_ext <<_ACEOF
20510 cat confdefs.h >>conftest.$ac_ext
20511 cat >>conftest.$ac_ext <<_ACEOF
20512 /* end confdefs.h. */
20514 volatile unsigned long val = 1;
20515 __sync_synchronize();
20516 __sync_val_compare_and_swap(&val, 1, 0);
20517 __sync_add_and_fetch(&val, 1);
20518 __sync_sub_and_fetch(&val, 1);
20523 rm -f conftest.$ac_objext conftest$ac_exeext
20524 if { (ac_try="$ac_link"
20525 case "(($ac_try" in
20526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20527 *) ac_try_echo=$ac_try;;
20529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20530 (eval "$ac_link") 2>conftest.er1
20532 grep -v '^ *+' conftest.er1 >conftest.err
20534 cat conftest.err >&5
20535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536 (exit $ac_status); } &&
20537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20538 { (case "(($ac_try" in
20539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20540 *) ac_try_echo=$ac_try;;
20542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20543 (eval "$ac_try") 2>&5
20545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20546 (exit $ac_status); }; } &&
20547 { ac_try='test -s conftest$ac_exeext'
20548 { (case "(($ac_try" in
20549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20550 *) ac_try_echo=$ac_try;;
20552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20553 (eval "$ac_try") 2>&5
20555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556 (exit $ac_status); }; }; then
20558 ac_cpp='$CPP $CPPFLAGS'
20559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20563 { echo "$as_me:$LINENO: result: yes" >&5
20564 echo "${ECHO_T}yes" >&6; }
20566 cat >>confdefs.h <<\_ACEOF
20567 #define LLVM_HAS_ATOMICS 1
20571 echo "$as_me: failed program was:" >&5
20572 sed 's/^/| /' conftest.$ac_ext >&5
20574 { echo "$as_me:$LINENO: result: no" >&5
20575 echo "${ECHO_T}no" >&6; }
20577 cat >>confdefs.h <<\_ACEOF
20578 #define LLVM_HAS_ATOMICS 0
20581 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20582 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20585 rm -f core conftest.err conftest.$ac_objext \
20586 conftest$ac_exeext conftest.$ac_ext
20589 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20590 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20591 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20592 if test "${llvm_cv_linux_mixed+set}" = set; then
20593 echo $ECHO_N "(cached) $ECHO_C" >&6
20596 ac_cpp='$CPP $CPPFLAGS'
20597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20601 cat >conftest.$ac_ext <<_ACEOF
20604 cat confdefs.h >>conftest.$ac_ext
20605 cat >>conftest.$ac_ext <<_ACEOF
20606 /* end confdefs.h. */
20608 error: Not x86-64 even if uname says so!
20619 rm -f conftest.$ac_objext
20620 if { (ac_try="$ac_compile"
20621 case "(($ac_try" in
20622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20623 *) ac_try_echo=$ac_try;;
20625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20626 (eval "$ac_compile") 2>conftest.er1
20628 grep -v '^ *+' conftest.er1 >conftest.err
20630 cat conftest.err >&5
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 (exit $ac_status); } &&
20633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20634 { (case "(($ac_try" in
20635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20636 *) ac_try_echo=$ac_try;;
20638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20639 (eval "$ac_try") 2>&5
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); }; } &&
20643 { ac_try='test -s conftest.$ac_objext'
20644 { (case "(($ac_try" in
20645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20646 *) ac_try_echo=$ac_try;;
20648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20649 (eval "$ac_try") 2>&5
20651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652 (exit $ac_status); }; }; then
20653 llvm_cv_linux_mixed=no
20655 echo "$as_me: failed program was:" >&5
20656 sed 's/^/| /' conftest.$ac_ext >&5
20658 llvm_cv_linux_mixed=yes
20661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20663 ac_cpp='$CPP $CPPFLAGS'
20664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20670 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20671 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20673 if test "$llvm_cv_linux_mixed" = "yes"; then
20674 llvm_cv_target_arch="x86"
20680 for ac_func in __dso_handle
20682 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20683 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20684 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20685 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20686 echo $ECHO_N "(cached) $ECHO_C" >&6
20688 cat >conftest.$ac_ext <<_ACEOF
20691 cat confdefs.h >>conftest.$ac_ext
20692 cat >>conftest.$ac_ext <<_ACEOF
20693 /* end confdefs.h. */
20694 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20696 #define $ac_func innocuous_$ac_func
20698 /* System header to define __stub macros and hopefully few prototypes,
20699 which can conflict with char $ac_func (); below.
20700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20701 <limits.h> exists even on freestanding compilers. */
20704 # include <limits.h>
20706 # include <assert.h>
20711 /* Override any GCC internal prototype to avoid an error.
20712 Use char because int might match the return type of a GCC
20713 builtin and then its argument prototype would still apply. */
20718 /* The GNU C library defines this for functions which it implements
20719 to always fail with ENOSYS. Some functions are actually named
20720 something starting with __ and the normal name is an alias. */
20721 #if defined __stub_$ac_func || defined __stub___$ac_func
20728 return $ac_func ();
20733 rm -f conftest.$ac_objext conftest$ac_exeext
20734 if { (ac_try="$ac_link"
20735 case "(($ac_try" in
20736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20737 *) ac_try_echo=$ac_try;;
20739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20740 (eval "$ac_link") 2>conftest.er1
20742 grep -v '^ *+' conftest.er1 >conftest.err
20744 cat conftest.err >&5
20745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746 (exit $ac_status); } &&
20747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20748 { (case "(($ac_try" in
20749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20750 *) ac_try_echo=$ac_try;;
20752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20753 (eval "$ac_try") 2>&5
20755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756 (exit $ac_status); }; } &&
20757 { ac_try='test -s conftest$ac_exeext'
20758 { (case "(($ac_try" in
20759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20760 *) ac_try_echo=$ac_try;;
20762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20763 (eval "$ac_try") 2>&5
20765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766 (exit $ac_status); }; }; then
20767 eval "$as_ac_var=yes"
20769 echo "$as_me: failed program was:" >&5
20770 sed 's/^/| /' conftest.$ac_ext >&5
20772 eval "$as_ac_var=no"
20775 rm -f core conftest.err conftest.$ac_objext \
20776 conftest$ac_exeext conftest.$ac_ext
20778 ac_res=`eval echo '${'$as_ac_var'}'`
20779 { echo "$as_me:$LINENO: result: $ac_res" >&5
20780 echo "${ECHO_T}$ac_res" >&6; }
20781 if test `eval echo '${'$as_ac_var'}'` = yes; then
20782 cat >>confdefs.h <<_ACEOF
20783 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20790 SHLIBEXT=$libltdl_cv_shlibext
20793 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20796 if test "${prefix}" = "NONE" ; then
20797 prefix="/usr/local"
20799 eval LLVM_PREFIX="${prefix}";
20800 eval LLVM_BINDIR="${prefix}/bin";
20801 eval LLVM_LIBDIR="${prefix}/lib";
20802 eval LLVM_DATADIR="${prefix}/share/llvm";
20803 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20804 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20805 eval LLVM_INCLUDEDIR="${prefix}/include";
20806 eval LLVM_INFODIR="${prefix}/info";
20807 eval LLVM_MANDIR="${prefix}/man";
20808 LLVM_CONFIGTIME=`date`
20821 cat >>confdefs.h <<_ACEOF
20822 #define LLVM_PREFIX "$LLVM_PREFIX"
20826 cat >>confdefs.h <<_ACEOF
20827 #define LLVM_BINDIR "$LLVM_BINDIR"
20831 cat >>confdefs.h <<_ACEOF
20832 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20836 cat >>confdefs.h <<_ACEOF
20837 #define LLVM_DATADIR "$LLVM_DATADIR"
20841 cat >>confdefs.h <<_ACEOF
20842 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20846 cat >>confdefs.h <<_ACEOF
20847 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20851 cat >>confdefs.h <<_ACEOF
20852 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20856 cat >>confdefs.h <<_ACEOF
20857 #define LLVM_INFODIR "$LLVM_INFODIR"
20861 cat >>confdefs.h <<_ACEOF
20862 #define LLVM_MANDIR "$LLVM_MANDIR"
20866 cat >>confdefs.h <<_ACEOF
20867 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20871 cat >>confdefs.h <<_ACEOF
20872 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20876 if test "$BINDINGS_TO_BUILD" = auto ; then
20877 BINDINGS_TO_BUILD=""
20878 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20879 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20882 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20888 binding_prereqs_failed=0
20889 for a_binding in $BINDINGS_TO_BUILD ; do
20890 case "$a_binding" in
20892 if test "x$OCAMLC" = x ; then
20893 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20894 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20895 binding_prereqs_failed=1
20897 if test "x$OCAMLDEP" = x ; then
20898 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20899 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20900 binding_prereqs_failed=1
20902 if test "x$OCAMLOPT" = x ; then
20903 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20904 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20906 if test "x$with_ocaml_libdir" != xauto ; then
20907 OCAML_LIBDIR=$with_ocaml_libdir
20910 ocaml_stdlib="`"$OCAMLC" -where`"
20911 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20913 # ocaml stdlib is beneath our prefix; use stdlib
20914 OCAML_LIBDIR=$ocaml_stdlib
20917 # ocaml stdlib is outside our prefix; use libdir/ocaml
20918 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20925 if test "$binding_prereqs_failed" = 1 ; then
20926 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20927 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20928 { (exit 1); exit 1; }; }
20931 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20932 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20933 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20934 echo $ECHO_N "(cached) $ECHO_C" >&6
20937 ac_cpp='$CXXCPP $CPPFLAGS'
20938 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20939 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20940 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20942 oldcxxflags="$CXXFLAGS"
20943 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
20944 cat >conftest.$ac_ext <<_ACEOF
20947 cat confdefs.h >>conftest.$ac_ext
20948 cat >>conftest.$ac_ext <<_ACEOF
20949 /* end confdefs.h. */
20950 template <typename T> struct X { void __attribute__((noinline)) f() {} };
20959 rm -f conftest.$ac_objext
20960 if { (ac_try="$ac_compile"
20961 case "(($ac_try" in
20962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20963 *) ac_try_echo=$ac_try;;
20965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20966 (eval "$ac_compile") 2>conftest.er1
20968 grep -v '^ *+' conftest.er1 >conftest.err
20970 cat conftest.err >&5
20971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20972 (exit $ac_status); } &&
20973 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20974 { (case "(($ac_try" in
20975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20976 *) ac_try_echo=$ac_try;;
20978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20979 (eval "$ac_try") 2>&5
20981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982 (exit $ac_status); }; } &&
20983 { ac_try='test -s conftest.$ac_objext'
20984 { (case "(($ac_try" in
20985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20986 *) ac_try_echo=$ac_try;;
20988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20989 (eval "$ac_try") 2>&5
20991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992 (exit $ac_status); }; }; then
20993 llvm_cv_cxx_visibility_inlines_hidden=yes
20995 echo "$as_me: failed program was:" >&5
20996 sed 's/^/| /' conftest.$ac_ext >&5
20998 llvm_cv_cxx_visibility_inlines_hidden=no
21001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21002 CXXFLAGS="$oldcxxflags"
21004 ac_cpp='$CPP $CPPFLAGS'
21005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21011 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21012 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21013 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21014 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21017 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21022 if test "$llvm_cv_link_use_r" = "yes" ; then
21029 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21030 RDYNAMIC="-Wl,-export-dynamic"
21037 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21044 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21046 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21048 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21050 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21052 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21055 ac_config_files="$ac_config_files Makefile.config"
21058 ac_config_files="$ac_config_files llvm.spec"
21061 ac_config_files="$ac_config_files docs/doxygen.cfg"
21064 if test "${clang_src_root}" = ""; then
21065 clang_src_root="$srcdir/tools/clang"
21067 if test -f ${clang_src_root}/README.txt; then
21068 configh="include/clang/Config/config.h"
21069 doxy="docs/doxygen.cfg"
21070 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21072 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21076 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21079 ac_config_commands="$ac_config_commands setup"
21081 ac_config_commands="$ac_config_commands Makefile"
21084 ac_config_commands="$ac_config_commands Makefile.common"
21087 ac_config_commands="$ac_config_commands examples/Makefile"
21090 ac_config_commands="$ac_config_commands lib/Makefile"
21093 ac_config_commands="$ac_config_commands runtime/Makefile"
21096 ac_config_commands="$ac_config_commands test/Makefile"
21099 ac_config_commands="$ac_config_commands test/Makefile.tests"
21102 ac_config_commands="$ac_config_commands unittests/Makefile"
21105 ac_config_commands="$ac_config_commands tools/Makefile"
21108 ac_config_commands="$ac_config_commands utils/Makefile"
21111 ac_config_commands="$ac_config_commands projects/Makefile"
21114 ac_config_commands="$ac_config_commands bindings/Makefile"
21117 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21121 cat >confcache <<\_ACEOF
21122 # This file is a shell script that caches the results of configure
21123 # tests run on this system so they can be shared between configure
21124 # scripts and configure runs, see configure's option --config-cache.
21125 # It is not useful on other systems. If it contains results you don't
21126 # want to keep, you may remove or edit it.
21128 # config.status only pays attention to the cache file if you give it
21129 # the --recheck option to rerun configure.
21131 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21132 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21133 # following values.
21137 # The following way of writing the cache mishandles newlines in values,
21138 # but we know of no workaround that is simple, portable, and efficient.
21139 # So, we kill variables containing newlines.
21140 # Ultrix sh set writes to stderr and can't be redirected directly,
21141 # and sets the high bit in the cache file unless we assign to the vars.
21143 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21144 eval ac_val=\$$ac_var
21148 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21149 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21152 _ | IFS | as_nl) ;; #(
21153 *) $as_unset $ac_var ;;
21159 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21160 *${as_nl}ac_space=\ *)
21161 # `set' does not quote correctly, so add quotes (double-quote
21162 # substitution turns \\\\ into \\, and sed turns \\ into \).
21165 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21168 # `set' quotes correctly as required by POSIX, so do not add quotes.
21169 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21178 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21180 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21182 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21183 if test -w "$cache_file"; then
21184 test "x$cache_file" != "x/dev/null" &&
21185 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21186 echo "$as_me: updating cache $cache_file" >&6;}
21187 cat confcache >$cache_file
21189 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21190 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21195 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21196 # Let make expand exec_prefix.
21197 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21199 DEFS=-DHAVE_CONFIG_H
21203 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21204 # 1. Remove the extension, and $U if already installed.
21205 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21206 ac_i=`echo "$ac_i" | sed "$ac_script"`
21207 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21208 # will be set to the directory where LIBOBJS objects are built.
21209 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21210 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21212 LIBOBJS=$ac_libobjs
21214 LTLIBOBJS=$ac_ltlibobjs
21217 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21218 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21219 Usually this means the macro was only invoked conditionally." >&5
21220 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21221 Usually this means the macro was only invoked conditionally." >&2;}
21222 { (exit 1); exit 1; }; }
21224 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21225 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21226 Usually this means the macro was only invoked conditionally." >&5
21227 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21228 Usually this means the macro was only invoked conditionally." >&2;}
21229 { (exit 1); exit 1; }; }
21232 : ${CONFIG_STATUS=./config.status}
21233 ac_clean_files_save=$ac_clean_files
21234 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21235 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21236 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21237 cat >$CONFIG_STATUS <<_ACEOF
21239 # Generated by $as_me.
21240 # Run this file to recreate the current configuration.
21241 # Compiler output produced by configure, useful for debugging
21242 # configure, is in config.log if it exists.
21245 ac_cs_recheck=false
21247 SHELL=\${CONFIG_SHELL-$SHELL}
21250 cat >>$CONFIG_STATUS <<\_ACEOF
21251 ## --------------------- ##
21252 ## M4sh Initialization. ##
21253 ## --------------------- ##
21255 # Be Bourne compatible
21256 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21259 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21260 # is contrary to our usage. Disable this feature.
21261 alias -g '${1+"$@"}'='"$@"'
21262 setopt NO_GLOB_SUBST
21264 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21266 BIN_SH=xpg4; export BIN_SH # for Tru64
21267 DUALCASE=1; export DUALCASE # for MKS sh
21271 # Avoid depending upon Character Ranges.
21272 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21273 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21274 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21275 as_cr_digits='0123456789'
21276 as_cr_alnum=$as_cr_Letters$as_cr_digits
21278 # The user is always right.
21279 if test "${PATH_SEPARATOR+set}" != set; then
21280 echo "#! /bin/sh" >conf$$.sh
21281 echo "exit 0" >>conf$$.sh
21283 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21291 # Support unset when possible.
21292 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21300 # We need space, tab and new line, in precisely that order. Quoting is
21301 # there to prevent editors from complaining about space-tab.
21302 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21303 # splitting by setting IFS to empty value.)
21308 # Find who we are. Look in the path if we contain no directory separator.
21310 *[\\/]* ) as_myself=$0 ;;
21311 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21312 for as_dir in $PATH
21315 test -z "$as_dir" && as_dir=.
21316 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21322 # We did not find ourselves, most probably we were run as `sh COMMAND'
21323 # in which case we are not to be found in the path.
21324 if test "x$as_myself" = x; then
21327 if test ! -f "$as_myself"; then
21328 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21329 { (exit 1); exit 1; }
21332 # Work around bugs in pre-3.0 UWIN ksh.
21333 for as_var in ENV MAIL MAILPATH
21334 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21342 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21343 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21344 LC_TELEPHONE LC_TIME
21346 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21347 eval $as_var=C; export $as_var
21349 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21353 # Required to use basename.
21354 if expr a : '\(a\)' >/dev/null 2>&1 &&
21355 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21361 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21362 as_basename=basename
21368 # Name of the executable.
21369 as_me=`$as_basename -- "$0" ||
21370 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21371 X"$0" : 'X\(//\)$' \| \
21372 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21374 sed '/^.*\/\([^/][^/]*\)\/*$/{
21393 as_lineno_1=$LINENO
21394 as_lineno_2=$LINENO
21395 test "x$as_lineno_1" != "x$as_lineno_2" &&
21396 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21398 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21399 # uniformly replaced by the line number. The first 'sed' inserts a
21400 # line-number line after each line using $LINENO; the second 'sed'
21401 # does the real work. The second script uses 'N' to pair each
21402 # line-number line with the line containing $LINENO, and appends
21403 # trailing '-' during substitution so that $LINENO is not a special
21404 # case at line end.
21405 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21406 # scripts with optimization help from Paolo Bonzini. Blame Lee
21407 # E. McMahon (1931-1989) for sed's syntax. :-)
21419 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21422 ' >$as_me.lineno &&
21423 chmod +x "$as_me.lineno" ||
21424 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21425 { (exit 1); exit 1; }; }
21427 # Don't try to exec as it changes $[0], causing all sort of problems
21428 # (the dirname of $[0] is not the place where we might find the
21429 # original and so on. Autoconf is especially sensitive to this).
21430 . "./$as_me.lineno"
21431 # Exit status is that of the last command.
21436 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21442 ECHO_C= ECHO_N= ECHO_T=
21443 case `echo -n x` in
21445 case `echo 'x\c'` in
21446 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21453 if expr a : '\(a\)' >/dev/null 2>&1 &&
21454 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21460 rm -f conf$$ conf$$.exe conf$$.file
21461 if test -d conf$$.dir; then
21462 rm -f conf$$.dir/conf$$.file
21468 if ln -s conf$$.file conf$$ 2>/dev/null; then
21470 # ... but there are two gotchas:
21471 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21472 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21473 # In both cases, we have to default to `cp -p'.
21474 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21476 elif ln conf$$.file conf$$ 2>/dev/null; then
21481 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21482 rmdir conf$$.dir 2>/dev/null
21484 if mkdir -p . 2>/dev/null; then
21487 test -d ./-p && rmdir ./-p
21491 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21492 # systems may use methods other than mode bits to determine executability.
21493 cat >conf$$.file <<_ASEOF
21497 chmod +x conf$$.file
21498 if test -x conf$$.file >/dev/null 2>&1; then
21499 as_executable_p="test -x"
21505 # Sed expression to map a string onto a valid CPP name.
21506 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21508 # Sed expression to map a string onto a valid variable name.
21509 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21514 # Save the log message, to keep $[0] and so on meaningful, and to
21515 # report actual input values of CONFIG_FILES etc. instead of their
21516 # values after options handling.
21518 This file was extended by LLVM $as_me 3.1svn, which was
21519 generated by GNU Autoconf 2.60. Invocation command line was
21521 CONFIG_FILES = $CONFIG_FILES
21522 CONFIG_HEADERS = $CONFIG_HEADERS
21523 CONFIG_LINKS = $CONFIG_LINKS
21524 CONFIG_COMMANDS = $CONFIG_COMMANDS
21527 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21532 cat >>$CONFIG_STATUS <<_ACEOF
21533 # Files that config.status was made for.
21534 config_files="$ac_config_files"
21535 config_headers="$ac_config_headers"
21536 config_commands="$ac_config_commands"
21540 cat >>$CONFIG_STATUS <<\_ACEOF
21542 \`$as_me' instantiates files from templates according to the
21543 current configuration.
21545 Usage: $0 [OPTIONS] [FILE]...
21547 -h, --help print this help, then exit
21548 -V, --version print version number, then exit
21549 -q, --quiet do not print progress messages
21550 -d, --debug don't remove temporary files
21551 --recheck update $as_me by reconfiguring in the same conditions
21552 --file=FILE[:TEMPLATE]
21553 instantiate the configuration file FILE
21554 --header=FILE[:TEMPLATE]
21555 instantiate the configuration header FILE
21557 Configuration files:
21560 Configuration headers:
21563 Configuration commands:
21566 Report bugs to <bug-autoconf@gnu.org>."
21569 cat >>$CONFIG_STATUS <<_ACEOF
21571 LLVM config.status 3.1svn
21572 configured by $0, generated by GNU Autoconf 2.60,
21573 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21575 Copyright (C) 2006 Free Software Foundation, Inc.
21576 This config.status script is free software; the Free Software Foundation
21577 gives unlimited permission to copy, distribute and modify it."
21584 cat >>$CONFIG_STATUS <<\_ACEOF
21585 # If no file are specified by the user, then we need to provide default
21586 # value. By we need to know if files were specified by the user.
21592 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21593 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21604 # Handling of the options.
21605 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21607 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21608 echo "$ac_cs_version"; exit ;;
21609 --debug | --debu | --deb | --de | --d | -d )
21611 --file | --fil | --fi | --f )
21613 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21614 ac_need_defaults=false;;
21615 --header | --heade | --head | --hea )
21617 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21618 ac_need_defaults=false;;
21620 # Conflict between --help and --header
21621 { echo "$as_me: error: ambiguous option: $1
21622 Try \`$0 --help' for more information." >&2
21623 { (exit 1); exit 1; }; };;
21624 --help | --hel | -h )
21625 echo "$ac_cs_usage"; exit ;;
21626 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21627 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21630 # This is an error.
21631 -*) { echo "$as_me: error: unrecognized option: $1
21632 Try \`$0 --help' for more information." >&2
21633 { (exit 1); exit 1; }; } ;;
21635 *) ac_config_targets="$ac_config_targets $1"
21636 ac_need_defaults=false ;;
21642 ac_configure_extra_args=
21644 if $ac_cs_silent; then
21646 ac_configure_extra_args="$ac_configure_extra_args --silent"
21650 cat >>$CONFIG_STATUS <<_ACEOF
21651 if \$ac_cs_recheck; then
21652 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21653 CONFIG_SHELL=$SHELL
21654 export CONFIG_SHELL
21655 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21659 cat >>$CONFIG_STATUS <<\_ACEOF
21663 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21664 ## Running $as_me. ##
21670 cat >>$CONFIG_STATUS <<_ACEOF
21674 llvm_src="${srcdir}"
21678 cat >>$CONFIG_STATUS <<\_ACEOF
21680 # Handling of arguments.
21681 for ac_config_target in $ac_config_targets
21683 case $ac_config_target in
21684 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21685 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21686 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21687 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21688 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21689 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21690 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21691 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21692 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21693 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21694 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21695 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
21696 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21697 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21698 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21699 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21700 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21701 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21702 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21703 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21704 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21705 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21706 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21707 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21708 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21709 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21710 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21712 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21713 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21714 { (exit 1); exit 1; }; };;
21719 # If the user did not use the arguments to specify the items to instantiate,
21720 # then the envvar interface is used. Set only those that are not.
21721 # We use the long form for the default assignment because of an extremely
21722 # bizarre bug on SunOS 4.1.3.
21723 if $ac_need_defaults; then
21724 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21725 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21726 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21729 # Have a temporary directory for convenience. Make it in the build tree
21730 # simply because there is no reason against having it here, and in addition,
21731 # creating and moving files from /tmp can sometimes cause problems.
21732 # Hook for its removal unless debugging.
21733 # Note that there is a small window in which the directory will not be cleaned:
21734 # after its creation but before its name has been assigned to `$tmp'.
21738 trap 'exit_status=$?
21739 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21741 trap '{ (exit 1); exit 1; }' 1 2 13 15
21743 # Create a (secure) tmp directory for tmp files.
21746 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21747 test -n "$tmp" && test -d "$tmp"
21750 tmp=./conf$$-$RANDOM
21751 (umask 077 && mkdir "$tmp")
21754 echo "$me: cannot create a temporary directory in ." >&2
21755 { (exit 1); exit 1; }
21759 # Set up the sed scripts for CONFIG_FILES section.
21762 # No need to generate the scripts if there are no CONFIG_FILES.
21763 # This happens for instance when ./config.status config.h
21764 if test -n "$CONFIG_FILES"; then
21771 for ac_last_try in false false false false false :; do
21772 cat >conf$$subs.sed <<_ACEOF
21773 SHELL!$SHELL$ac_delim
21774 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21775 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21776 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21777 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21778 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21779 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21780 exec_prefix!$exec_prefix$ac_delim
21781 prefix!$prefix$ac_delim
21782 program_transform_name!$program_transform_name$ac_delim
21783 bindir!$bindir$ac_delim
21784 sbindir!$sbindir$ac_delim
21785 libexecdir!$libexecdir$ac_delim
21786 datarootdir!$datarootdir$ac_delim
21787 datadir!$datadir$ac_delim
21788 sysconfdir!$sysconfdir$ac_delim
21789 sharedstatedir!$sharedstatedir$ac_delim
21790 localstatedir!$localstatedir$ac_delim
21791 includedir!$includedir$ac_delim
21792 oldincludedir!$oldincludedir$ac_delim
21793 docdir!$docdir$ac_delim
21794 infodir!$infodir$ac_delim
21795 htmldir!$htmldir$ac_delim
21796 dvidir!$dvidir$ac_delim
21797 pdfdir!$pdfdir$ac_delim
21798 psdir!$psdir$ac_delim
21799 libdir!$libdir$ac_delim
21800 localedir!$localedir$ac_delim
21801 mandir!$mandir$ac_delim
21802 DEFS!$DEFS$ac_delim
21803 ECHO_C!$ECHO_C$ac_delim
21804 ECHO_N!$ECHO_N$ac_delim
21805 ECHO_T!$ECHO_T$ac_delim
21806 LIBS!$LIBS$ac_delim
21807 build_alias!$build_alias$ac_delim
21808 host_alias!$host_alias$ac_delim
21809 target_alias!$target_alias$ac_delim
21810 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21812 CFLAGS!$CFLAGS$ac_delim
21813 LDFLAGS!$LDFLAGS$ac_delim
21814 CPPFLAGS!$CPPFLAGS$ac_delim
21815 ac_ct_CC!$ac_ct_CC$ac_delim
21816 EXEEXT!$EXEEXT$ac_delim
21817 OBJEXT!$OBJEXT$ac_delim
21819 CXXFLAGS!$CXXFLAGS$ac_delim
21820 ac_ct_CXX!$ac_ct_CXX$ac_delim
21822 subdirs!$subdirs$ac_delim
21823 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21824 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21825 build!$build$ac_delim
21826 build_cpu!$build_cpu$ac_delim
21827 build_vendor!$build_vendor$ac_delim
21828 build_os!$build_os$ac_delim
21829 host!$host$ac_delim
21830 host_cpu!$host_cpu$ac_delim
21831 host_vendor!$host_vendor$ac_delim
21832 host_os!$host_os$ac_delim
21833 target!$target$ac_delim
21834 target_cpu!$target_cpu$ac_delim
21835 target_vendor!$target_vendor$ac_delim
21836 target_os!$target_os$ac_delim
21838 HOST_OS!$HOST_OS$ac_delim
21839 TARGET_OS!$TARGET_OS$ac_delim
21840 LINKALL!$LINKALL$ac_delim
21841 NOLINKALL!$NOLINKALL$ac_delim
21842 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21843 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21844 ARCH!$ARCH$ac_delim
21845 ENDIAN!$ENDIAN$ac_delim
21846 GREP!$GREP$ac_delim
21847 EGREP!$EGREP$ac_delim
21848 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21849 BUILD_CC!$BUILD_CC$ac_delim
21850 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21851 BUILD_CXX!$BUILD_CXX$ac_delim
21852 CVSBUILD!$CVSBUILD$ac_delim
21853 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21854 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21855 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21856 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21857 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21858 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21859 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21860 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21862 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21863 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21864 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21865 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
21866 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21867 ENABLE_PIC!$ENABLE_PIC$ac_delim
21868 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21869 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21872 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21874 elif $ac_last_try; then
21875 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21876 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21877 { (exit 1); exit 1; }; }
21879 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21883 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21884 if test -n "$ac_eof"; then
21885 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21886 ac_eof=`expr $ac_eof + 1`
21889 cat >>$CONFIG_STATUS <<_ACEOF
21890 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21891 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21894 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21895 s/^/s,@/; s/!/@,|#_!!_#|/
21898 s/'"$ac_delim"'$/,g/; t
21900 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21901 ' >>$CONFIG_STATUS <conf$$subs.sed
21902 rm -f conf$$subs.sed
21903 cat >>$CONFIG_STATUS <<_ACEOF
21909 for ac_last_try in false false false false false :; do
21910 cat >conf$$subs.sed <<_ACEOF
21911 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21912 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21913 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21914 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21915 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21916 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21917 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21918 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21919 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21920 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21921 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
21922 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21923 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
21925 ifGNUmake!$ifGNUmake$ac_delim
21926 LN_S!$LN_S$ac_delim
21929 DATE!$DATE$ac_delim
21930 FIND!$FIND$ac_delim
21931 MKDIR!$MKDIR$ac_delim
21933 RANLIB!$RANLIB$ac_delim
21938 BINPWD!$BINPWD$ac_delim
21939 GRAPHVIZ!$GRAPHVIZ$ac_delim
21942 NEATO!$NEATO$ac_delim
21943 TWOPI!$TWOPI$ac_delim
21944 CIRCO!$CIRCO$ac_delim
21946 DOTTY!$DOTTY$ac_delim
21947 XDOT_PY!$XDOT_PY$ac_delim
21948 PERL!$PERL$ac_delim
21949 HAVE_PERL!$HAVE_PERL$ac_delim
21950 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21951 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21952 INSTALL_DATA!$INSTALL_DATA$ac_delim
21953 BZIP2!$BZIP2$ac_delim
21955 DOXYGEN!$DOXYGEN$ac_delim
21956 GROFF!$GROFF$ac_delim
21957 GZIPBIN!$GZIPBIN$ac_delim
21958 POD2HTML!$POD2HTML$ac_delim
21959 POD2MAN!$POD2MAN$ac_delim
21960 PDFROFF!$PDFROFF$ac_delim
21961 RUNTEST!$RUNTEST$ac_delim
21962 TCLSH!$TCLSH$ac_delim
21964 OCAMLC!$OCAMLC$ac_delim
21965 OCAMLOPT!$OCAMLOPT$ac_delim
21966 OCAMLDEP!$OCAMLDEP$ac_delim
21967 OCAMLDOC!$OCAMLDOC$ac_delim
21969 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21970 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21971 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21972 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21973 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21974 LIBADD_DL!$LIBADD_DL$ac_delim
21975 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21976 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21977 USE_UDIS86!$USE_UDIS86$ac_delim
21978 USE_OPROFILE!$USE_OPROFILE$ac_delim
21979 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21980 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21981 MMAP_FILE!$MMAP_FILE$ac_delim
21982 SHLIBEXT!$SHLIBEXT$ac_delim
21983 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21984 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21985 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21986 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21987 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21988 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21989 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21990 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21991 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21992 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21993 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21994 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21995 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21996 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21997 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21998 RPATH!$RPATH$ac_delim
21999 RDYNAMIC!$RDYNAMIC$ac_delim
22000 LIBOBJS!$LIBOBJS$ac_delim
22001 LTLIBOBJS!$LTLIBOBJS$ac_delim
22004 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
22006 elif $ac_last_try; then
22007 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22008 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22009 { (exit 1); exit 1; }; }
22011 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22015 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22016 if test -n "$ac_eof"; then
22017 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22018 ac_eof=`expr $ac_eof + 1`
22021 cat >>$CONFIG_STATUS <<_ACEOF
22022 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22023 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22026 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22027 s/^/s,@/; s/!/@,|#_!!_#|/
22030 s/'"$ac_delim"'$/,g/; t
22032 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22033 ' >>$CONFIG_STATUS <conf$$subs.sed
22034 rm -f conf$$subs.sed
22035 cat >>$CONFIG_STATUS <<_ACEOF
22042 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22043 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22044 # trailing colons and then remove the whole line if VPATH becomes empty
22045 # (actually we leave an empty line to preserve line numbers).
22046 if test "x$srcdir" = x.; then
22047 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22048 s/:*\$(srcdir):*/:/
22049 s/:*\${srcdir}:*/:/
22051 s/^\([^=]*=[ ]*\):*/\1/
22057 cat >>$CONFIG_STATUS <<\_ACEOF
22058 fi # test -n "$CONFIG_FILES"
22061 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22064 :[FHLC]) ac_mode=$ac_tag; continue;;
22066 case $ac_mode$ac_tag in
22068 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22069 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22070 { (exit 1); exit 1; }; };;
22071 :[FH]-) ac_tag=-:-;;
22072 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22089 -) ac_f="$tmp/stdin";;
22090 *) # Look for the file first in the build tree, then in the source tree
22091 # (if the path is not absolute). The absolute path cannot be DOS-style,
22092 # because $ac_f cannot contain `:'.
22096 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22098 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22099 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22100 { (exit 1); exit 1; }; };;
22102 ac_file_inputs="$ac_file_inputs $ac_f"
22105 # Let's still pretend it is `configure' which instantiates (i.e., don't
22106 # use $as_me), people would be surprised to read:
22107 # /* config.h. Generated by config.status. */
22108 configure_input="Generated from "`IFS=:
22109 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22110 if test x"$ac_file" != x-; then
22111 configure_input="$ac_file. $configure_input"
22112 { echo "$as_me:$LINENO: creating $ac_file" >&5
22113 echo "$as_me: creating $ac_file" >&6;}
22117 *:-:* | *:-) cat >"$tmp/stdin";;
22122 ac_dir=`$as_dirname -- "$ac_file" ||
22123 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22124 X"$ac_file" : 'X\(//\)[^/]' \| \
22125 X"$ac_file" : 'X\(//\)$' \| \
22126 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22128 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22132 /^X\(\/\/\)[^/].*/{
22147 -*) as_dir=./$as_dir;;
22149 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22153 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22154 *) as_qdir=$as_dir;;
22156 as_dirs="'$as_qdir' $as_dirs"
22157 as_dir=`$as_dirname -- "$as_dir" ||
22158 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22159 X"$as_dir" : 'X\(//\)[^/]' \| \
22160 X"$as_dir" : 'X\(//\)$' \| \
22161 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22167 /^X\(\/\/\)[^/].*/{
22180 test -d "$as_dir" && break
22182 test -z "$as_dirs" || eval "mkdir $as_dirs"
22183 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22184 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22185 { (exit 1); exit 1; }; }; }
22189 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22191 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22192 # A ".." for each directory in $ac_dir_suffix.
22193 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22194 case $ac_top_builddir_sub in
22195 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22196 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22199 ac_abs_top_builddir=$ac_pwd
22200 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22201 # for backward compatibility:
22202 ac_top_builddir=$ac_top_build_prefix
22205 .) # We are building in place.
22207 ac_top_srcdir=$ac_top_builddir_sub
22208 ac_abs_top_srcdir=$ac_pwd ;;
22209 [\\/]* | ?:[\\/]* ) # Absolute name.
22210 ac_srcdir=$srcdir$ac_dir_suffix;
22211 ac_top_srcdir=$srcdir
22212 ac_abs_top_srcdir=$srcdir ;;
22213 *) # Relative name.
22214 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22215 ac_top_srcdir=$ac_top_build_prefix$srcdir
22216 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22218 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22228 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22229 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22233 cat >>$CONFIG_STATUS <<\_ACEOF
22234 # If the template does not know about datarootdir, expand it.
22235 # FIXME: This hack should be removed a few years after 2.60.
22236 ac_datarootdir_hack=; ac_datarootdir_seen=
22238 case `sed -n '/datarootdir/ {
22247 ' $ac_file_inputs` in
22248 *datarootdir*) ac_datarootdir_seen=yes;;
22249 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22250 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22251 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22253 cat >>$CONFIG_STATUS <<_ACEOF
22254 ac_datarootdir_hack='
22255 s&@datadir@&$datadir&g
22256 s&@docdir@&$docdir&g
22257 s&@infodir@&$infodir&g
22258 s&@localedir@&$localedir&g
22259 s&@mandir@&$mandir&g
22260 s&\\\${datarootdir}&$datarootdir&g' ;;
22264 # Neutralize VPATH when `$srcdir' = `.'.
22265 # Shell code in configure.ac might set extrasub.
22266 # FIXME: do we really want to maintain this feature?
22267 cat >>$CONFIG_STATUS <<_ACEOF
22271 cat >>$CONFIG_STATUS <<\_ACEOF
22273 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22274 s&@configure_input@&$configure_input&;t t
22275 s&@top_builddir@&$ac_top_builddir_sub&;t t
22276 s&@srcdir@&$ac_srcdir&;t t
22277 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22278 s&@top_srcdir@&$ac_top_srcdir&;t t
22279 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22280 s&@builddir@&$ac_builddir&;t t
22281 s&@abs_builddir@&$ac_abs_builddir&;t t
22282 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22283 s&@INSTALL@&$ac_INSTALL&;t t
22284 $ac_datarootdir_hack
22285 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22287 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22288 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22289 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22290 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22291 which seems to be undefined. Please make sure it is defined." >&5
22292 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22293 which seems to be undefined. Please make sure it is defined." >&2;}
22297 -) cat "$tmp/out"; rm -f "$tmp/out";;
22298 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22307 # Transform confdefs.h into a sed script `conftest.defines', that
22308 # substitutes the proper values into config.h.in to produce config.h.
22309 rm -f conftest.defines conftest.tail
22310 # First, append a space to every undef/define line, to ease matching.
22311 echo 's/$/ /' >conftest.defines
22312 # Then, protect against being on the right side of a sed subst, or in
22313 # an unquoted here document, in config.status. If some macros were
22314 # called several times there might be several #defines for the same
22315 # symbol, which is useless. But do not sort them, since the last
22316 # AC_DEFINE must be honored.
22317 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22318 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22319 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22320 # PARAMS is the parameter list in the macro definition--in most cases, it's
22321 # just an empty string.
22322 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22323 ac_dB='\\)[ (].*,\\1define\\2'
22331 s/^[ ]*#[ ]*define[ ][ ]*//
22336 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22337 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22338 ' >>conftest.defines
22340 # Remove the space that was appended to ease matching.
22341 # Then replace #undef with comments. This is necessary, for
22342 # example, in the case of _POSIX_SOURCE, which is predefined and required
22343 # on some systems where configure will not decide to define it.
22344 # (The regexp can be short, since the line contains either #define or #undef.)
22346 s,^[ #]*u.*,/* & */,' >>conftest.defines
22348 # Break up conftest.defines:
22349 ac_max_sed_lines=50
22351 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22352 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22353 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22355 ac_in='$ac_file_inputs'
22356 ac_out='"$tmp/out1"'
22357 ac_nxt='"$tmp/out2"'
22361 # Write a here document:
22362 cat >>$CONFIG_STATUS <<_ACEOF
22363 # First, check the format of the line:
22364 cat >"\$tmp/defines.sed" <<\\CEOF
22365 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22366 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22370 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22372 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22373 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22374 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22375 grep . conftest.tail >/dev/null || break
22376 rm -f conftest.defines
22377 mv conftest.tail conftest.defines
22379 rm -f conftest.defines conftest.tail
22381 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22382 cat >>$CONFIG_STATUS <<\_ACEOF
22383 if test x"$ac_file" != x-; then
22384 echo "/* $configure_input */" >"$tmp/config.h"
22385 cat "$ac_result" >>"$tmp/config.h"
22386 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22387 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22388 echo "$as_me: $ac_file is unchanged" >&6;}
22391 mv "$tmp/config.h" $ac_file
22394 echo "/* $configure_input */"
22400 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22401 echo "$as_me: executing $ac_file commands" >&6;}
22406 case $ac_file$ac_mode in
22407 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22408 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22409 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22410 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22411 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22412 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22413 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22414 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22415 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22416 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22417 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22418 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22419 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22420 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22421 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22422 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22423 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22424 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22425 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22426 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22427 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22428 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22429 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22430 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22431 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22432 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22438 { (exit 0); exit 0; }
22440 chmod +x $CONFIG_STATUS
22441 ac_clean_files=$ac_clean_files_save
22444 # configure is writing to config.log, and then calls config.status.
22445 # config.status does its own redirection, appending to config.log.
22446 # Unfortunately, on DOS this fails, as config.log is still kept open
22447 # by configure, so config.status won't be able to write to it; its
22448 # output is simply discarded. So we exec the FD to /dev/null,
22449 # effectively closing config.log, so it can be properly (re)opened and
22450 # appended to by config.status. When coming back to configure, we
22451 # need to make the FD available again.
22452 if test "$no_create" != yes; then
22454 ac_config_status_args=
22455 test "$silent" = yes &&
22456 ac_config_status_args="$ac_config_status_args --quiet"
22458 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22460 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22461 # would make configure fail if this is the last instruction.
22462 $ac_cs_success || { (exit 1); exit 1; }
22466 # CONFIG_SUBDIRS section.
22468 if test "$no_recursion" != yes; then
22470 # Remove --cache-file and --srcdir arguments so they do not pile up.
22471 ac_sub_configure_args=
22473 eval "set x $ac_configure_args"
22477 if test -n "$ac_prev"; then
22482 -cache-file | --cache-file | --cache-fil | --cache-fi \
22483 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22484 ac_prev=cache_file ;;
22485 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22486 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22489 --config-cache | -C)
22491 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22493 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22495 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22497 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22501 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22503 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22507 # Always prepend --prefix to ensure using the same prefix
22508 # in subdir configurations.
22509 ac_arg="--prefix=$prefix"
22511 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22513 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22516 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22518 # Do not complain, so a configure script can configure whichever
22519 # parts of a large source tree are present.
22520 test -d "$srcdir/$ac_dir" || continue
22522 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22523 echo "$as_me:$LINENO: $ac_msg" >&5
22527 -*) as_dir=./$as_dir;;
22529 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22533 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22534 *) as_qdir=$as_dir;;
22536 as_dirs="'$as_qdir' $as_dirs"
22537 as_dir=`$as_dirname -- "$as_dir" ||
22538 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22539 X"$as_dir" : 'X\(//\)[^/]' \| \
22540 X"$as_dir" : 'X\(//\)$' \| \
22541 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22543 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22547 /^X\(\/\/\)[^/].*/{
22560 test -d "$as_dir" && break
22562 test -z "$as_dirs" || eval "mkdir $as_dirs"
22563 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22564 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22565 { (exit 1); exit 1; }; }; }
22569 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22571 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22572 # A ".." for each directory in $ac_dir_suffix.
22573 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22574 case $ac_top_builddir_sub in
22575 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22576 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22579 ac_abs_top_builddir=$ac_pwd
22580 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22581 # for backward compatibility:
22582 ac_top_builddir=$ac_top_build_prefix
22585 .) # We are building in place.
22587 ac_top_srcdir=$ac_top_builddir_sub
22588 ac_abs_top_srcdir=$ac_pwd ;;
22589 [\\/]* | ?:[\\/]* ) # Absolute name.
22590 ac_srcdir=$srcdir$ac_dir_suffix;
22591 ac_top_srcdir=$srcdir
22592 ac_abs_top_srcdir=$srcdir ;;
22593 *) # Relative name.
22594 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22595 ac_top_srcdir=$ac_top_build_prefix$srcdir
22596 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22598 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22603 # Check for guested configure; otherwise get Cygnus style configure.
22604 if test -f "$ac_srcdir/configure.gnu"; then
22605 ac_sub_configure=$ac_srcdir/configure.gnu
22606 elif test -f "$ac_srcdir/configure"; then
22607 ac_sub_configure=$ac_srcdir/configure
22608 elif test -f "$ac_srcdir/configure.in"; then
22609 # This should be Cygnus configure.
22610 ac_sub_configure=$ac_aux_dir/configure
22612 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22613 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22617 # The recursion is here.
22618 if test -n "$ac_sub_configure"; then
22619 # Make the cache file name correct relative to the subdirectory.
22620 case $cache_file in
22621 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22622 *) # Relative name.
22623 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22626 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22627 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22628 # The eval makes quoting arguments work.
22629 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22630 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22631 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22632 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22633 { (exit 1); exit 1; }; }