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 <llvmbugs@cs.uiuc.edu>.
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-2011 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='llvmbugs@cs.uiuc.edu'
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, xcore,
1422 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-cxx-include-root Directory with the libstdc++ headers.
1446 --with-cxx-include-arch Architecture of the libstdc++ headers.
1447 --with-cxx-include-32bit-dir
1448 32 bit multilib dir.
1449 --with-cxx-include-64bit-dir
1450 64 bit multilib directory.
1451 --with-binutils-include Specify path to binutils/include/ containing
1452 plugin-api.h file for gold plugin.
1453 --with-bug-report-url Specify the URL where bug reports should be
1454 submitted (default=http://llvm.org/bugs/)
1455 --with-internal-prefix Installation directory for internal files
1456 --with-tclinclude directory where tcl headers are
1457 --with-udis86=<path> Use udis86 external x86 disassembler library
1458 --with-oprofile=<prefix>
1459 Tell OProfile >= 0.9.4 how to symbolize JIT output
1461 Some influential environment variables:
1462 CC C compiler command
1463 CFLAGS C compiler flags
1464 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1465 nonstandard directory <lib dir>
1466 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1467 you have headers in a nonstandard directory <include dir>
1468 CXX C++ compiler command
1469 CXXFLAGS C++ compiler flags
1472 Use these variables to override the choices made by `configure' or to help
1473 it to find libraries and programs with nonstandard names/locations.
1475 Report bugs to <llvmbugs@cs.uiuc.edu>.
1480 if test "$ac_init_help" = "recursive"; then
1481 # If there are subdirs, report their specific --help.
1482 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483 test -d "$ac_dir" || continue
1487 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1490 # A ".." for each directory in $ac_dir_suffix.
1491 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1492 case $ac_top_builddir_sub in
1493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1497 ac_abs_top_builddir=$ac_pwd
1498 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499 # for backward compatibility:
1500 ac_top_builddir=$ac_top_build_prefix
1503 .) # We are building in place.
1505 ac_top_srcdir=$ac_top_builddir_sub
1506 ac_abs_top_srcdir=$ac_pwd ;;
1507 [\\/]* | ?:[\\/]* ) # Absolute name.
1508 ac_srcdir=$srcdir$ac_dir_suffix;
1509 ac_top_srcdir=$srcdir
1510 ac_abs_top_srcdir=$srcdir ;;
1512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513 ac_top_srcdir=$ac_top_build_prefix$srcdir
1514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1516 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1518 cd "$ac_dir" || { ac_status=$?; continue; }
1519 # Check for guested configure.
1520 if test -f "$ac_srcdir/configure.gnu"; then
1522 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523 elif test -f "$ac_srcdir/configure"; then
1525 $SHELL "$ac_srcdir/configure" --help=recursive
1527 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1529 cd "$ac_pwd" || { ac_status=$?; break; }
1533 test -n "$ac_init_help" && exit $ac_status
1534 if $ac_init_version; then
1536 llvm configure 3.1svn
1537 generated by GNU Autoconf 2.60
1539 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1540 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1541 This configure script is free software; the Free Software Foundation
1542 gives unlimited permission to copy, distribute and modify it.
1544 Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
1548 cat >config.log <<_ACEOF
1549 This file contains any messages produced by compilers while
1550 running configure, to aid debugging if configure makes a mistake.
1552 It was created by llvm $as_me 3.1svn, which was
1553 generated by GNU Autoconf 2.60. Invocation command line was
1565 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1566 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1567 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1568 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1569 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1571 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1572 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1574 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1575 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1576 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1577 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1578 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1579 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1580 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1588 test -z "$as_dir" && as_dir=.
1589 echo "PATH: $as_dir"
1605 # Keep a trace of the command line.
1606 # Strip out --no-create and --no-recursion so they do not pile up.
1607 # Strip out --silent because we don't want to record it for future runs.
1608 # Also quote any args containing shell meta-characters.
1609 # Make two passes to allow for proper duplicate-argument suppression.
1613 ac_must_keep_next=false
1619 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1620 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1621 | -silent | --silent | --silen | --sile | --sil)
1624 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1627 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1629 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1630 if test $ac_must_keep_next = true; then
1631 ac_must_keep_next=false # Got value, back to normal.
1634 *=* | --config-cache | -C | -disable-* | --disable-* \
1635 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1636 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1637 | -with-* | --with-* | -without-* | --without-* | --x)
1638 case "$ac_configure_args0 " in
1639 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1642 -* ) ac_must_keep_next=true ;;
1645 ac_configure_args="$ac_configure_args '$ac_arg'"
1650 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1651 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1653 # When interrupted or exit'd, cleanup temporary files, and complete
1654 # config.log. We remove comments because anyway the quotes in there
1655 # would cause problems or look ugly.
1656 # WARNING: Use '\'' to represent an apostrophe within the trap.
1657 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1658 trap 'exit_status=$?
1659 # Save into config.log some information that might help in debugging.
1664 ## ---------------- ##
1665 ## Cache variables. ##
1666 ## ---------------- ##
1669 # The following way of writing the cache mishandles newlines in values,
1671 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1672 eval ac_val=\$$ac_var
1676 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1677 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1680 _ | IFS | as_nl) ;; #(
1681 *) $as_unset $ac_var ;;
1686 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1687 *${as_nl}ac_space=\ *)
1689 "s/'\''/'\''\\\\'\'''\''/g;
1690 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1693 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1701 ## ----------------- ##
1702 ## Output variables. ##
1703 ## ----------------- ##
1706 for ac_var in $ac_subst_vars
1708 eval ac_val=\$$ac_var
1710 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1712 echo "$ac_var='\''$ac_val'\''"
1716 if test -n "$ac_subst_files"; then
1718 ## ------------------- ##
1719 ## File substitutions. ##
1720 ## ------------------- ##
1723 for ac_var in $ac_subst_files
1725 eval ac_val=\$$ac_var
1727 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1729 echo "$ac_var='\''$ac_val'\''"
1734 if test -s confdefs.h; then
1744 test "$ac_signal" != 0 &&
1745 echo "$as_me: caught signal $ac_signal"
1746 echo "$as_me: exit $exit_status"
1748 rm -f core *.core core.conftest.* &&
1749 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1752 for ac_signal in 1 2 13 15; do
1753 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1757 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1758 rm -f -r conftest* confdefs.h
1760 # Predefined preprocessor variables.
1762 cat >>confdefs.h <<_ACEOF
1763 #define PACKAGE_NAME "$PACKAGE_NAME"
1767 cat >>confdefs.h <<_ACEOF
1768 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1772 cat >>confdefs.h <<_ACEOF
1773 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_STRING "$PACKAGE_STRING"
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1787 # Let the site file select an alternate cache file if it wants to.
1788 # Prefer explicitly selected file to automatically selected ones.
1789 if test -n "$CONFIG_SITE"; then
1790 set x "$CONFIG_SITE"
1791 elif test "x$prefix" != xNONE; then
1792 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1794 set x "$ac_default_prefix/share/config.site" \
1795 "$ac_default_prefix/etc/config.site"
1800 if test -r "$ac_site_file"; then
1801 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1802 echo "$as_me: loading site script $ac_site_file" >&6;}
1803 sed 's/^/| /' "$ac_site_file" >&5
1808 if test -r "$cache_file"; then
1809 # Some versions of bash will fail to source /dev/null (special
1810 # files actually), so we avoid doing that.
1811 if test -f "$cache_file"; then
1812 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1813 echo "$as_me: loading cache $cache_file" >&6;}
1815 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1816 *) . "./$cache_file";;
1820 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1821 echo "$as_me: creating cache $cache_file" >&6;}
1825 # Check that the precious variables saved in the cache have kept the same
1827 ac_cache_corrupted=false
1828 for ac_var in $ac_precious_vars; do
1829 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1830 eval ac_new_set=\$ac_env_${ac_var}_set
1831 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1832 eval ac_new_val=\$ac_env_${ac_var}_value
1833 case $ac_old_set,$ac_new_set in
1835 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1836 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1837 ac_cache_corrupted=: ;;
1839 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1840 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1841 ac_cache_corrupted=: ;;
1844 if test "x$ac_old_val" != "x$ac_new_val"; then
1845 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1846 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1847 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1848 echo "$as_me: former value: $ac_old_val" >&2;}
1849 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1850 echo "$as_me: current value: $ac_new_val" >&2;}
1851 ac_cache_corrupted=:
1854 # Pass precious variables to config.status.
1855 if test "$ac_new_set" = set; then
1857 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1858 *) ac_arg=$ac_var=$ac_new_val ;;
1860 case " $ac_configure_args " in
1861 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1862 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1866 if $ac_cache_corrupted; then
1867 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1868 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1869 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1870 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1871 { (exit 1); exit 1; }; }
1899 ac_cpp='$CPP $CPPFLAGS'
1900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1906 LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
1915 for ac_dir in autoconf "$srcdir"/autoconf; do
1916 if test -f "$ac_dir/install-sh"; then
1918 ac_install_sh="$ac_aux_dir/install-sh -c"
1920 elif test -f "$ac_dir/install.sh"; then
1922 ac_install_sh="$ac_aux_dir/install.sh -c"
1924 elif test -f "$ac_dir/shtool"; then
1926 ac_install_sh="$ac_aux_dir/shtool install -c"
1930 if test -z "$ac_aux_dir"; then
1931 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1932 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1933 { (exit 1); exit 1; }; }
1936 # These three variables are undocumented and unsupported,
1937 # and are intended to be withdrawn in a future Autoconf release.
1938 # They can cause serious problems if a builder's source tree is in a directory
1939 # whose full name contains unusual characters.
1940 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1941 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1942 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1946 if test ${srcdir} != "." ; then
1947 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1948 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1949 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1950 { (exit 1); exit 1; }; }
1955 ac_cpp='$CPP $CPPFLAGS'
1956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1959 if test -n "$ac_tool_prefix"; then
1960 for ac_prog in clang llvm-gcc gcc
1962 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1963 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1966 if test "${ac_cv_prog_CC+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
1969 if test -n "$CC"; then
1970 ac_cv_prog_CC="$CC" # Let the user override the test.
1972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1976 test -z "$as_dir" && as_dir=.
1977 for ac_exec_ext in '' $ac_executable_extensions; do
1978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1979 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1990 if test -n "$CC"; then
1991 { echo "$as_me:$LINENO: result: $CC" >&5
1992 echo "${ECHO_T}$CC" >&6; }
1994 { echo "$as_me:$LINENO: result: no" >&5
1995 echo "${ECHO_T}no" >&6; }
1999 test -n "$CC" && break
2002 if test -z "$CC"; then
2004 for ac_prog in clang llvm-gcc gcc
2006 # Extract the first word of "$ac_prog", so it can be a program name with args.
2007 set dummy $ac_prog; ac_word=$2
2008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2010 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2011 echo $ECHO_N "(cached) $ECHO_C" >&6
2013 if test -n "$ac_ct_CC"; then
2014 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2020 test -z "$as_dir" && as_dir=.
2021 for ac_exec_ext in '' $ac_executable_extensions; do
2022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2023 ac_cv_prog_ac_ct_CC="$ac_prog"
2024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2033 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2034 if test -n "$ac_ct_CC"; then
2035 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2036 echo "${ECHO_T}$ac_ct_CC" >&6; }
2038 { echo "$as_me:$LINENO: result: no" >&5
2039 echo "${ECHO_T}no" >&6; }
2043 test -n "$ac_ct_CC" && break
2046 if test "x$ac_ct_CC" = x; then
2049 case $cross_compiling:$ac_tool_warned in
2051 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2052 whose name does not start with the host triplet. If you think this
2053 configuration is useful to you, please write to autoconf@gnu.org." >&5
2054 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2055 whose name does not start with the host triplet. If you think this
2056 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2057 ac_tool_warned=yes ;;
2064 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2065 See \`config.log' for more details." >&5
2066 echo "$as_me: error: no acceptable C compiler found in \$PATH
2067 See \`config.log' for more details." >&2;}
2068 { (exit 1); exit 1; }; }
2070 # Provide some information about the compiler.
2071 echo "$as_me:$LINENO: checking for C compiler version" >&5
2072 ac_compiler=`set X $ac_compile; echo $2`
2073 { (ac_try="$ac_compiler --version >&5"
2075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2076 *) ac_try_echo=$ac_try;;
2078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2079 (eval "$ac_compiler --version >&5") 2>&5
2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082 (exit $ac_status); }
2083 { (ac_try="$ac_compiler -v >&5"
2085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2086 *) ac_try_echo=$ac_try;;
2088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2089 (eval "$ac_compiler -v >&5") 2>&5
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); }
2093 { (ac_try="$ac_compiler -V >&5"
2095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2096 *) ac_try_echo=$ac_try;;
2098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2099 (eval "$ac_compiler -V >&5") 2>&5
2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); }
2104 cat >conftest.$ac_ext <<_ACEOF
2107 cat confdefs.h >>conftest.$ac_ext
2108 cat >>conftest.$ac_ext <<_ACEOF
2109 /* end confdefs.h. */
2119 ac_clean_files_save=$ac_clean_files
2120 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2121 # Try to create an executable without -o first, disregard a.out.
2122 # It will help us diagnose broken compilers, and finding out an intuition
2124 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2125 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2126 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2128 # List of possible output files, starting from the most likely.
2129 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2130 # only as a last resort. b.out is created by i960 compilers.
2131 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2133 # The IRIX 6 linker writes into existing files which may not be
2134 # executable, retaining their permissions. Remove them first so a
2135 # subsequent execution test works.
2137 for ac_file in $ac_files
2140 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2141 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2146 if { (ac_try="$ac_link_default"
2148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2149 *) ac_try_echo=$ac_try;;
2151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2152 (eval "$ac_link_default") 2>&5
2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); }; then
2156 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2157 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2158 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2159 # so that the user can short-circuit this test for compilers unknown to
2161 for ac_file in $ac_files
2163 test -f "$ac_file" || continue
2165 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2168 # We found the default executable, but exeext='' is most
2172 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2174 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2176 # We set ac_cv_exeext here because the later test for it is not
2177 # safe: cross compilers may not add the suffix if given an `-o'
2178 # argument, so we may need to know it at that point already.
2179 # Even if this section looks crufty: it has the advantage of
2186 test "$ac_cv_exeext" = no && ac_cv_exeext=
2189 echo "$as_me: failed program was:" >&5
2190 sed 's/^/| /' conftest.$ac_ext >&5
2192 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2193 See \`config.log' for more details." >&5
2194 echo "$as_me: error: C compiler cannot create executables
2195 See \`config.log' for more details." >&2;}
2196 { (exit 77); exit 77; }; }
2199 ac_exeext=$ac_cv_exeext
2200 { echo "$as_me:$LINENO: result: $ac_file" >&5
2201 echo "${ECHO_T}$ac_file" >&6; }
2203 # Check that the compiler produces executables we can run. If not, either
2204 # the compiler is broken, or we cross compile.
2205 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2206 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2207 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2208 # If not cross compiling, check that we can run a simple program.
2209 if test "$cross_compiling" != yes; then
2210 if { ac_try='./$ac_file'
2211 { (case "(($ac_try" in
2212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2213 *) ac_try_echo=$ac_try;;
2215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2216 (eval "$ac_try") 2>&5
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; }; then
2222 if test "$cross_compiling" = maybe; then
2225 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2226 If you meant to cross compile, use \`--host'.
2227 See \`config.log' for more details." >&5
2228 echo "$as_me: error: cannot run C compiled programs.
2229 If you meant to cross compile, use \`--host'.
2230 See \`config.log' for more details." >&2;}
2231 { (exit 1); exit 1; }; }
2235 { echo "$as_me:$LINENO: result: yes" >&5
2236 echo "${ECHO_T}yes" >&6; }
2238 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2239 ac_clean_files=$ac_clean_files_save
2240 # Check that the compiler produces executables we can run. If not, either
2241 # the compiler is broken, or we cross compile.
2242 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2243 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2244 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2245 echo "${ECHO_T}$cross_compiling" >&6; }
2247 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2248 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2249 if { (ac_try="$ac_link"
2251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2252 *) ac_try_echo=$ac_try;;
2254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2255 (eval "$ac_link") 2>&5
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; then
2259 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2260 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2261 # work properly (i.e., refer to `conftest.exe'), while it won't with
2263 for ac_file in conftest.exe conftest conftest.*; do
2264 test -f "$ac_file" || continue
2266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2267 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2273 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2274 See \`config.log' for more details." >&5
2275 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2276 See \`config.log' for more details." >&2;}
2277 { (exit 1); exit 1; }; }
2280 rm -f conftest$ac_cv_exeext
2281 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2282 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2284 rm -f conftest.$ac_ext
2285 EXEEXT=$ac_cv_exeext
2287 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2288 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2289 if test "${ac_cv_objext+set}" = set; then
2290 echo $ECHO_N "(cached) $ECHO_C" >&6
2292 cat >conftest.$ac_ext <<_ACEOF
2295 cat confdefs.h >>conftest.$ac_ext
2296 cat >>conftest.$ac_ext <<_ACEOF
2297 /* end confdefs.h. */
2307 rm -f conftest.o conftest.obj
2308 if { (ac_try="$ac_compile"
2310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2311 *) ac_try_echo=$ac_try;;
2313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2314 (eval "$ac_compile") 2>&5
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); }; then
2318 for ac_file in conftest.o conftest.obj conftest.*; do
2319 test -f "$ac_file" || continue;
2321 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2322 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2327 echo "$as_me: failed program was:" >&5
2328 sed 's/^/| /' conftest.$ac_ext >&5
2330 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2331 See \`config.log' for more details." >&5
2332 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2333 See \`config.log' for more details." >&2;}
2334 { (exit 1); exit 1; }; }
2337 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2339 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2340 echo "${ECHO_T}$ac_cv_objext" >&6; }
2341 OBJEXT=$ac_cv_objext
2343 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2344 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2345 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2346 echo $ECHO_N "(cached) $ECHO_C" >&6
2348 cat >conftest.$ac_ext <<_ACEOF
2351 cat confdefs.h >>conftest.$ac_ext
2352 cat >>conftest.$ac_ext <<_ACEOF
2353 /* end confdefs.h. */
2366 rm -f conftest.$ac_objext
2367 if { (ac_try="$ac_compile"
2369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2370 *) ac_try_echo=$ac_try;;
2372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2373 (eval "$ac_compile") 2>conftest.er1
2375 grep -v '^ *+' conftest.er1 >conftest.err
2377 cat conftest.err >&5
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); } &&
2380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2381 { (case "(($ac_try" in
2382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2383 *) ac_try_echo=$ac_try;;
2385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2386 (eval "$ac_try") 2>&5
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); }; } &&
2390 { ac_try='test -s conftest.$ac_objext'
2391 { (case "(($ac_try" in
2392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2393 *) ac_try_echo=$ac_try;;
2395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2396 (eval "$ac_try") 2>&5
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; }; then
2402 echo "$as_me: failed program was:" >&5
2403 sed 's/^/| /' conftest.$ac_ext >&5
2408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2409 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2412 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2413 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2414 GCC=`test $ac_compiler_gnu = yes && echo yes`
2415 ac_test_CFLAGS=${CFLAGS+set}
2416 ac_save_CFLAGS=$CFLAGS
2417 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2418 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2419 if test "${ac_cv_prog_cc_g+set}" = set; then
2420 echo $ECHO_N "(cached) $ECHO_C" >&6
2422 ac_save_c_werror_flag=$ac_c_werror_flag
2423 ac_c_werror_flag=yes
2426 cat >conftest.$ac_ext <<_ACEOF
2429 cat confdefs.h >>conftest.$ac_ext
2430 cat >>conftest.$ac_ext <<_ACEOF
2431 /* end confdefs.h. */
2441 rm -f conftest.$ac_objext
2442 if { (ac_try="$ac_compile"
2444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2445 *) ac_try_echo=$ac_try;;
2447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2448 (eval "$ac_compile") 2>conftest.er1
2450 grep -v '^ *+' conftest.er1 >conftest.err
2452 cat conftest.err >&5
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); } &&
2455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2456 { (case "(($ac_try" in
2457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2458 *) ac_try_echo=$ac_try;;
2460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2461 (eval "$ac_try") 2>&5
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }; } &&
2465 { ac_try='test -s conftest.$ac_objext'
2466 { (case "(($ac_try" in
2467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2468 *) ac_try_echo=$ac_try;;
2470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2471 (eval "$ac_try") 2>&5
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }; }; then
2477 echo "$as_me: failed program was:" >&5
2478 sed 's/^/| /' conftest.$ac_ext >&5
2481 cat >conftest.$ac_ext <<_ACEOF
2484 cat confdefs.h >>conftest.$ac_ext
2485 cat >>conftest.$ac_ext <<_ACEOF
2486 /* end confdefs.h. */
2496 rm -f conftest.$ac_objext
2497 if { (ac_try="$ac_compile"
2499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2500 *) ac_try_echo=$ac_try;;
2502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2503 (eval "$ac_compile") 2>conftest.er1
2505 grep -v '^ *+' conftest.er1 >conftest.err
2507 cat conftest.err >&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); } &&
2510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2511 { (case "(($ac_try" in
2512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2513 *) ac_try_echo=$ac_try;;
2515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2516 (eval "$ac_try") 2>&5
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); }; } &&
2520 { ac_try='test -s conftest.$ac_objext'
2521 { (case "(($ac_try" in
2522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2523 *) ac_try_echo=$ac_try;;
2525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2526 (eval "$ac_try") 2>&5
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }; }; then
2532 echo "$as_me: failed program was:" >&5
2533 sed 's/^/| /' conftest.$ac_ext >&5
2535 ac_c_werror_flag=$ac_save_c_werror_flag
2537 cat >conftest.$ac_ext <<_ACEOF
2540 cat confdefs.h >>conftest.$ac_ext
2541 cat >>conftest.$ac_ext <<_ACEOF
2542 /* end confdefs.h. */
2552 rm -f conftest.$ac_objext
2553 if { (ac_try="$ac_compile"
2555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2556 *) ac_try_echo=$ac_try;;
2558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2559 (eval "$ac_compile") 2>conftest.er1
2561 grep -v '^ *+' conftest.er1 >conftest.err
2563 cat conftest.err >&5
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); } &&
2566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2567 { (case "(($ac_try" in
2568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2569 *) ac_try_echo=$ac_try;;
2571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2572 (eval "$ac_try") 2>&5
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }; } &&
2576 { ac_try='test -s conftest.$ac_objext'
2577 { (case "(($ac_try" in
2578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2579 *) ac_try_echo=$ac_try;;
2581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2582 (eval "$ac_try") 2>&5
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); }; }; then
2588 echo "$as_me: failed program was:" >&5
2589 sed 's/^/| /' conftest.$ac_ext >&5
2594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2601 ac_c_werror_flag=$ac_save_c_werror_flag
2603 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2604 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2605 if test "$ac_test_CFLAGS" = set; then
2606 CFLAGS=$ac_save_CFLAGS
2607 elif test $ac_cv_prog_cc_g = yes; then
2608 if test "$GCC" = yes; then
2614 if test "$GCC" = yes; then
2620 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2621 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2622 if test "${ac_cv_prog_cc_c89+set}" = set; then
2623 echo $ECHO_N "(cached) $ECHO_C" >&6
2625 ac_cv_prog_cc_c89=no
2627 cat >conftest.$ac_ext <<_ACEOF
2630 cat confdefs.h >>conftest.$ac_ext
2631 cat >>conftest.$ac_ext <<_ACEOF
2632 /* end confdefs.h. */
2635 #include <sys/types.h>
2636 #include <sys/stat.h>
2637 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2638 struct buf { int x; };
2639 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2640 static char *e (p, i)
2646 static char *f (char * (*g) (char **, int), char **p, ...)
2651 s = g (p, va_arg (v,int));
2656 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2657 function prototypes and stuff, but not '\xHH' hex character constants.
2658 These don't provoke an error unfortunately, instead are silently treated
2659 as 'x'. The following induces an error, until -std is added to get
2660 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2661 array size at least. It's necessary to write '\x00'==0 to get something
2662 that's true only with -std. */
2663 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2665 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2666 inside strings and character constants. */
2668 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2670 int test (int i, double x);
2671 struct s1 {int (*f) (int a);};
2672 struct s2 {int (*f) (double a);};
2673 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2679 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2684 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2685 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2687 CC="$ac_save_CC $ac_arg"
2688 rm -f conftest.$ac_objext
2689 if { (ac_try="$ac_compile"
2691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2692 *) ac_try_echo=$ac_try;;
2694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2695 (eval "$ac_compile") 2>conftest.er1
2697 grep -v '^ *+' conftest.er1 >conftest.err
2699 cat conftest.err >&5
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); } &&
2702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2703 { (case "(($ac_try" in
2704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705 *) ac_try_echo=$ac_try;;
2707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2708 (eval "$ac_try") 2>&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }; } &&
2712 { ac_try='test -s conftest.$ac_objext'
2713 { (case "(($ac_try" in
2714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715 *) ac_try_echo=$ac_try;;
2717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718 (eval "$ac_try") 2>&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }; }; then
2722 ac_cv_prog_cc_c89=$ac_arg
2724 echo "$as_me: failed program was:" >&5
2725 sed 's/^/| /' conftest.$ac_ext >&5
2730 rm -f core conftest.err conftest.$ac_objext
2731 test "x$ac_cv_prog_cc_c89" != "xno" && break
2733 rm -f conftest.$ac_ext
2738 case "x$ac_cv_prog_cc_c89" in
2740 { echo "$as_me:$LINENO: result: none needed" >&5
2741 echo "${ECHO_T}none needed" >&6; } ;;
2743 { echo "$as_me:$LINENO: result: unsupported" >&5
2744 echo "${ECHO_T}unsupported" >&6; } ;;
2746 CC="$CC $ac_cv_prog_cc_c89"
2747 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2748 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2753 ac_cpp='$CPP $CPPFLAGS'
2754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2759 ac_cpp='$CXXCPP $CPPFLAGS'
2760 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2761 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2762 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2763 if test -z "$CXX"; then
2764 if test -n "$CCC"; then
2767 if test -n "$ac_tool_prefix"; then
2768 for ac_prog in clang++ llvm-g++ g++
2770 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2771 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2772 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2774 if test "${ac_cv_prog_CXX+set}" = set; then
2775 echo $ECHO_N "(cached) $ECHO_C" >&6
2777 if test -n "$CXX"; then
2778 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784 test -z "$as_dir" && as_dir=.
2785 for ac_exec_ext in '' $ac_executable_extensions; do
2786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2787 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 if test -n "$CXX"; then
2799 { echo "$as_me:$LINENO: result: $CXX" >&5
2800 echo "${ECHO_T}$CXX" >&6; }
2802 { echo "$as_me:$LINENO: result: no" >&5
2803 echo "${ECHO_T}no" >&6; }
2807 test -n "$CXX" && break
2810 if test -z "$CXX"; then
2812 for ac_prog in clang++ llvm-g++ g++
2814 # Extract the first word of "$ac_prog", so it can be a program name with args.
2815 set dummy $ac_prog; ac_word=$2
2816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2818 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2819 echo $ECHO_N "(cached) $ECHO_C" >&6
2821 if test -n "$ac_ct_CXX"; then
2822 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828 test -z "$as_dir" && as_dir=.
2829 for ac_exec_ext in '' $ac_executable_extensions; do
2830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2831 ac_cv_prog_ac_ct_CXX="$ac_prog"
2832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2841 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2842 if test -n "$ac_ct_CXX"; then
2843 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2844 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2846 { echo "$as_me:$LINENO: result: no" >&5
2847 echo "${ECHO_T}no" >&6; }
2851 test -n "$ac_ct_CXX" && break
2854 if test "x$ac_ct_CXX" = x; then
2857 case $cross_compiling:$ac_tool_warned in
2859 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2860 whose name does not start with the host triplet. If you think this
2861 configuration is useful to you, please write to autoconf@gnu.org." >&5
2862 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2863 whose name does not start with the host triplet. If you think this
2864 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2865 ac_tool_warned=yes ;;
2873 # Provide some information about the compiler.
2874 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2875 ac_compiler=`set X $ac_compile; echo $2`
2876 { (ac_try="$ac_compiler --version >&5"
2878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879 *) ac_try_echo=$ac_try;;
2881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2882 (eval "$ac_compiler --version >&5") 2>&5
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); }
2886 { (ac_try="$ac_compiler -v >&5"
2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889 *) ac_try_echo=$ac_try;;
2891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2892 (eval "$ac_compiler -v >&5") 2>&5
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }
2896 { (ac_try="$ac_compiler -V >&5"
2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2902 (eval "$ac_compiler -V >&5") 2>&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }
2907 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2908 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2909 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2910 echo $ECHO_N "(cached) $ECHO_C" >&6
2912 cat >conftest.$ac_ext <<_ACEOF
2915 cat confdefs.h >>conftest.$ac_ext
2916 cat >>conftest.$ac_ext <<_ACEOF
2917 /* end confdefs.h. */
2930 rm -f conftest.$ac_objext
2931 if { (ac_try="$ac_compile"
2933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2934 *) ac_try_echo=$ac_try;;
2936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2937 (eval "$ac_compile") 2>conftest.er1
2939 grep -v '^ *+' conftest.er1 >conftest.err
2941 cat conftest.err >&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); } &&
2944 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2945 { (case "(($ac_try" in
2946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947 *) ac_try_echo=$ac_try;;
2949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2950 (eval "$ac_try") 2>&5
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); }; } &&
2954 { ac_try='test -s conftest.$ac_objext'
2955 { (case "(($ac_try" in
2956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2957 *) ac_try_echo=$ac_try;;
2959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2960 (eval "$ac_try") 2>&5
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); }; }; then
2966 echo "$as_me: failed program was:" >&5
2967 sed 's/^/| /' conftest.$ac_ext >&5
2972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2973 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2976 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2977 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2978 GXX=`test $ac_compiler_gnu = yes && echo yes`
2979 ac_test_CXXFLAGS=${CXXFLAGS+set}
2980 ac_save_CXXFLAGS=$CXXFLAGS
2981 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2982 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2983 if test "${ac_cv_prog_cxx_g+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2986 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2987 ac_cxx_werror_flag=yes
2990 cat >conftest.$ac_ext <<_ACEOF
2993 cat confdefs.h >>conftest.$ac_ext
2994 cat >>conftest.$ac_ext <<_ACEOF
2995 /* end confdefs.h. */
3005 rm -f conftest.$ac_objext
3006 if { (ac_try="$ac_compile"
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012 (eval "$ac_compile") 2>conftest.er1
3014 grep -v '^ *+' conftest.er1 >conftest.err
3016 cat conftest.err >&5
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); } &&
3019 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3020 { (case "(($ac_try" in
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025 (eval "$ac_try") 2>&5
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }; } &&
3029 { ac_try='test -s conftest.$ac_objext'
3030 { (case "(($ac_try" in
3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032 *) ac_try_echo=$ac_try;;
3034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3035 (eval "$ac_try") 2>&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }; }; then
3039 ac_cv_prog_cxx_g=yes
3041 echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.$ac_ext >&5
3045 cat >conftest.$ac_ext <<_ACEOF
3048 cat confdefs.h >>conftest.$ac_ext
3049 cat >>conftest.$ac_ext <<_ACEOF
3050 /* end confdefs.h. */
3060 rm -f conftest.$ac_objext
3061 if { (ac_try="$ac_compile"
3063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064 *) ac_try_echo=$ac_try;;
3066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3067 (eval "$ac_compile") 2>conftest.er1
3069 grep -v '^ *+' conftest.er1 >conftest.err
3071 cat conftest.err >&5
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); } &&
3074 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3075 { (case "(($ac_try" in
3076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077 *) ac_try_echo=$ac_try;;
3079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3080 (eval "$ac_try") 2>&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); }; } &&
3084 { ac_try='test -s conftest.$ac_objext'
3085 { (case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090 (eval "$ac_try") 2>&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }; }; then
3096 echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.$ac_ext >&5
3099 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3101 cat >conftest.$ac_ext <<_ACEOF
3104 cat confdefs.h >>conftest.$ac_ext
3105 cat >>conftest.$ac_ext <<_ACEOF
3106 /* end confdefs.h. */
3116 rm -f conftest.$ac_objext
3117 if { (ac_try="$ac_compile"
3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3123 (eval "$ac_compile") 2>conftest.er1
3125 grep -v '^ *+' conftest.er1 >conftest.err
3127 cat conftest.err >&5
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); } &&
3130 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3131 { (case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136 (eval "$ac_try") 2>&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); }; } &&
3140 { ac_try='test -s conftest.$ac_objext'
3141 { (case "(($ac_try" in
3142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143 *) ac_try_echo=$ac_try;;
3145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3146 (eval "$ac_try") 2>&5
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); }; }; then
3150 ac_cv_prog_cxx_g=yes
3152 echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.$ac_ext >&5
3158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3165 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3167 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3168 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3169 if test "$ac_test_CXXFLAGS" = set; then
3170 CXXFLAGS=$ac_save_CXXFLAGS
3171 elif test $ac_cv_prog_cxx_g = yes; then
3172 if test "$GXX" = yes; then
3178 if test "$GXX" = yes; then
3185 ac_cpp='$CPP $CPPFLAGS'
3186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3191 ac_cpp='$CPP $CPPFLAGS'
3192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3195 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3196 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3197 # On Suns, sometimes $CPP names a directory.
3198 if test -n "$CPP" && test -d "$CPP"; then
3201 if test -z "$CPP"; then
3202 if test "${ac_cv_prog_CPP+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 # Double quotes because CPP needs to be expanded
3206 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3209 for ac_c_preproc_warn_flag in '' yes
3211 # Use a header file that comes with gcc, so configuring glibc
3212 # with a fresh cross-compiler works.
3213 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3214 # <limits.h> exists even on freestanding compilers.
3215 # On the NeXT, cc -E runs the code through the compiler's parser,
3216 # not just through cpp. "Syntax error" is here to catch this case.
3217 cat >conftest.$ac_ext <<_ACEOF
3220 cat confdefs.h >>conftest.$ac_ext
3221 cat >>conftest.$ac_ext <<_ACEOF
3222 /* end confdefs.h. */
3224 # include <limits.h>
3226 # include <assert.h>
3230 if { (ac_try="$ac_cpp conftest.$ac_ext"
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3236 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3238 grep -v '^ *+' conftest.er1 >conftest.err
3240 cat conftest.err >&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); } >/dev/null; then
3243 if test -s conftest.err; then
3244 ac_cpp_err=$ac_c_preproc_warn_flag
3245 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3252 if test -z "$ac_cpp_err"; then
3255 echo "$as_me: failed program was:" >&5
3256 sed 's/^/| /' conftest.$ac_ext >&5
3258 # Broken: fails on valid input.
3262 rm -f conftest.err conftest.$ac_ext
3264 # OK, works on sane cases. Now check whether nonexistent headers
3265 # can be detected and how.
3266 cat >conftest.$ac_ext <<_ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h. */
3272 #include <ac_nonexistent.h>
3274 if { (ac_try="$ac_cpp conftest.$ac_ext"
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3282 grep -v '^ *+' conftest.er1 >conftest.err
3284 cat conftest.err >&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); } >/dev/null; then
3287 if test -s conftest.err; then
3288 ac_cpp_err=$ac_c_preproc_warn_flag
3289 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3296 if test -z "$ac_cpp_err"; then
3297 # Broken: success on invalid input.
3300 echo "$as_me: failed program was:" >&5
3301 sed 's/^/| /' conftest.$ac_ext >&5
3303 # Passes both tests.
3308 rm -f conftest.err conftest.$ac_ext
3311 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3312 rm -f conftest.err conftest.$ac_ext
3313 if $ac_preproc_ok; then
3325 { echo "$as_me:$LINENO: result: $CPP" >&5
3326 echo "${ECHO_T}$CPP" >&6; }
3328 for ac_c_preproc_warn_flag in '' yes
3330 # Use a header file that comes with gcc, so configuring glibc
3331 # with a fresh cross-compiler works.
3332 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3333 # <limits.h> exists even on freestanding compilers.
3334 # On the NeXT, cc -E runs the code through the compiler's parser,
3335 # not just through cpp. "Syntax error" is here to catch this case.
3336 cat >conftest.$ac_ext <<_ACEOF
3339 cat confdefs.h >>conftest.$ac_ext
3340 cat >>conftest.$ac_ext <<_ACEOF
3341 /* end confdefs.h. */
3343 # include <limits.h>
3345 # include <assert.h>
3349 if { (ac_try="$ac_cpp conftest.$ac_ext"
3351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352 *) ac_try_echo=$ac_try;;
3354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3355 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3357 grep -v '^ *+' conftest.er1 >conftest.err
3359 cat conftest.err >&5
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); } >/dev/null; then
3362 if test -s conftest.err; then
3363 ac_cpp_err=$ac_c_preproc_warn_flag
3364 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3371 if test -z "$ac_cpp_err"; then
3374 echo "$as_me: failed program was:" >&5
3375 sed 's/^/| /' conftest.$ac_ext >&5
3377 # Broken: fails on valid input.
3381 rm -f conftest.err conftest.$ac_ext
3383 # OK, works on sane cases. Now check whether nonexistent headers
3384 # can be detected and how.
3385 cat >conftest.$ac_ext <<_ACEOF
3388 cat confdefs.h >>conftest.$ac_ext
3389 cat >>conftest.$ac_ext <<_ACEOF
3390 /* end confdefs.h. */
3391 #include <ac_nonexistent.h>
3393 if { (ac_try="$ac_cpp conftest.$ac_ext"
3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396 *) ac_try_echo=$ac_try;;
3398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3401 grep -v '^ *+' conftest.er1 >conftest.err
3403 cat conftest.err >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); } >/dev/null; then
3406 if test -s conftest.err; then
3407 ac_cpp_err=$ac_c_preproc_warn_flag
3408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3415 if test -z "$ac_cpp_err"; then
3416 # Broken: success on invalid input.
3419 echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3422 # Passes both tests.
3427 rm -f conftest.err conftest.$ac_ext
3430 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3431 rm -f conftest.err conftest.$ac_ext
3432 if $ac_preproc_ok; then
3435 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3436 See \`config.log' for more details." >&5
3437 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3438 See \`config.log' for more details." >&2;}
3439 { (exit 1); exit 1; }; }
3443 ac_cpp='$CPP $CPPFLAGS'
3444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3451 if test -d ${srcdir}/projects/llvm-gcc ; then
3452 subdirs="$subdirs projects/llvm-gcc"
3456 if test -d ${srcdir}/projects/test-suite ; then
3457 subdirs="$subdirs projects/test-suite"
3461 if test -d ${srcdir}/projects/llvm-test ; then
3462 subdirs="$subdirs projects/llvm-test"
3466 if test -d ${srcdir}/projects/poolalloc ; then
3467 subdirs="$subdirs projects/poolalloc"
3471 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3472 subdirs="$subdirs projects/llvm-poolalloc"
3476 for i in `ls ${srcdir}/projects`
3478 if test -d ${srcdir}/projects/${i} ; then
3480 sample) subdirs="$subdirs projects/sample"
3482 privbracket) subdirs="$subdirs projects/privbracket"
3484 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3486 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3488 llvm-java) subdirs="$subdirs projects/llvm-java"
3490 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3492 safecode) subdirs="$subdirs projects/safecode"
3494 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3502 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3503 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3509 # Check whether --enable-polly was given.
3510 if test "${enable_polly+set}" = set; then
3511 enableval=$enable_polly;
3516 case "$enableval" in
3521 default) ENABLE_POLLY=1
3523 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3524 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3525 { (exit 1); exit 1; }; } ;;
3529 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3532 subdirs="$subdirs tools/polly"
3537 # Make sure we can run config.sub.
3538 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3539 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3540 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3541 { (exit 1); exit 1; }; }
3543 { echo "$as_me:$LINENO: checking build system type" >&5
3544 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3545 if test "${ac_cv_build+set}" = set; then
3546 echo $ECHO_N "(cached) $ECHO_C" >&6
3548 ac_build_alias=$build_alias
3549 test "x$ac_build_alias" = x &&
3550 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3551 test "x$ac_build_alias" = x &&
3552 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3553 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3554 { (exit 1); exit 1; }; }
3555 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3556 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3557 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3558 { (exit 1); exit 1; }; }
3561 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3562 echo "${ECHO_T}$ac_cv_build" >&6; }
3563 case $ac_cv_build in
3565 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3566 echo "$as_me: error: invalid value of canonical build" >&2;}
3567 { (exit 1); exit 1; }; };;
3570 ac_save_IFS=$IFS; IFS='-'
3576 # Remember, the first character of IFS is used to create $*,
3577 # except with old shells:
3580 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3583 { echo "$as_me:$LINENO: checking host system type" >&5
3584 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3585 if test "${ac_cv_host+set}" = set; then
3586 echo $ECHO_N "(cached) $ECHO_C" >&6
3588 if test "x$host_alias" = x; then
3589 ac_cv_host=$ac_cv_build
3591 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3592 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3593 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3594 { (exit 1); exit 1; }; }
3598 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3599 echo "${ECHO_T}$ac_cv_host" >&6; }
3602 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3603 echo "$as_me: error: invalid value of canonical host" >&2;}
3604 { (exit 1); exit 1; }; };;
3607 ac_save_IFS=$IFS; IFS='-'
3613 # Remember, the first character of IFS is used to create $*,
3614 # except with old shells:
3617 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3620 { echo "$as_me:$LINENO: checking target system type" >&5
3621 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3622 if test "${ac_cv_target+set}" = set; then
3623 echo $ECHO_N "(cached) $ECHO_C" >&6
3625 if test "x$target_alias" = x; then
3626 ac_cv_target=$ac_cv_host
3628 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3629 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3630 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3631 { (exit 1); exit 1; }; }
3635 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3636 echo "${ECHO_T}$ac_cv_target" >&6; }
3637 case $ac_cv_target in
3639 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3640 echo "$as_me: error: invalid value of canonical target" >&2;}
3641 { (exit 1); exit 1; }; };;
3643 target=$ac_cv_target
3644 ac_save_IFS=$IFS; IFS='-'
3650 # Remember, the first character of IFS is used to create $*,
3651 # except with old shells:
3654 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3657 # The aliases save the names the user supplied, while $host etc.
3658 # will get canonicalized.
3659 test -n "$target_alias" &&
3660 test "$program_prefix$program_suffix$program_transform_name" = \
3662 program_prefix=${target_alias}-
3664 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3665 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3666 if test "${llvm_cv_os_type+set}" = set; then
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
3671 llvm_cv_link_all_option="-Wl,--whole-archive"
3672 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3673 llvm_cv_os_type="AIX"
3674 llvm_cv_platform_type="Unix" ;;
3676 llvm_cv_link_all_option="-Wl,--whole-archive"
3677 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3678 llvm_cv_os_type="IRIX"
3679 llvm_cv_platform_type="Unix" ;;
3681 llvm_cv_link_all_option="-Wl,--whole-archive"
3682 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3683 llvm_cv_os_type="Cygwin"
3684 llvm_cv_platform_type="Unix" ;;
3686 llvm_cv_link_all_option="-Wl,-all_load"
3687 llvm_cv_no_link_all_option="-Wl,-noall_load"
3688 llvm_cv_os_type="Darwin"
3689 llvm_cv_platform_type="Unix" ;;
3691 llvm_cv_link_all_option="-Wl,-all_load"
3692 llvm_cv_no_link_all_option="-Wl,-noall_load"
3693 llvm_cv_os_type="Minix"
3694 llvm_cv_platform_type="Unix" ;;
3696 llvm_cv_link_all_option="-Wl,--whole-archive"
3697 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3698 llvm_cv_os_type="FreeBSD"
3699 llvm_cv_platform_type="Unix" ;;
3701 llvm_cv_link_all_option="-Wl,--whole-archive"
3702 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3703 llvm_cv_os_type="OpenBSD"
3704 llvm_cv_platform_type="Unix" ;;
3706 llvm_cv_link_all_option="-Wl,--whole-archive"
3707 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3708 llvm_cv_os_type="NetBSD"
3709 llvm_cv_platform_type="Unix" ;;
3711 llvm_cv_link_all_option="-Wl,--whole-archive"
3712 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3713 llvm_cv_os_type="DragonFly"
3714 llvm_cv_platform_type="Unix" ;;
3716 llvm_cv_link_all_option="-Wl,--whole-archive"
3717 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3718 llvm_cv_os_type="HP-UX"
3719 llvm_cv_platform_type="Unix" ;;
3721 llvm_cv_link_all_option="-Wl,--whole-archive"
3722 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3723 llvm_cv_os_type="Interix"
3724 llvm_cv_platform_type="Unix" ;;
3726 llvm_cv_link_all_option="-Wl,--whole-archive"
3727 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3728 llvm_cv_os_type="Linux"
3729 llvm_cv_platform_type="Unix" ;;
3731 llvm_cv_link_all_option="-Wl,-z,allextract"
3732 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3733 llvm_cv_os_type="SunOS"
3734 llvm_cv_platform_type="Unix" ;;
3736 llvm_cv_link_all_option="-Wl,-z,allextract"
3737 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3738 llvm_cv_os_type="AuroraUX"
3739 llvm_cv_platform_type="Unix" ;;
3741 llvm_cv_link_all_option="-Wl,--whole-archive"
3742 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3743 llvm_cv_os_type="Win32"
3744 llvm_cv_platform_type="Win32" ;;
3746 llvm_cv_link_all_option="-Wl,--whole-archive"
3747 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3748 llvm_cv_os_type="MingW"
3749 llvm_cv_platform_type="Win32" ;;
3751 llvm_cv_link_all_option="-Wl,--whole-archive"
3752 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3753 llvm_cv_os_type="Haiku"
3754 llvm_cv_platform_type="Unix" ;;
3756 llvm_cv_link_all_option="-Wl,--whole-archive"
3757 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3758 llvm_cv_os_type="Freestanding"
3759 llvm_cv_platform_type="Unix" ;;
3761 llvm_cv_link_all_option="-Wl,--whole-archive"
3762 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3763 llvm_cv_os_type="Freestanding"
3764 llvm_cv_platform_type="Unix" ;;
3766 llvm_cv_link_all_option=""
3767 llvm_cv_no_link_all_option=""
3768 llvm_cv_os_type="Unknown"
3769 llvm_cv_platform_type="Unknown" ;;
3772 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3773 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3775 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3776 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3777 if test "${llvm_cv_target_os_type+set}" = set; then
3778 echo $ECHO_N "(cached) $ECHO_C" >&6
3782 llvm_cv_target_os_type="AIX" ;;
3784 llvm_cv_target_os_type="IRIX" ;;
3786 llvm_cv_target_os_type="Cygwin" ;;
3788 llvm_cv_target_os_type="Darwin" ;;
3790 llvm_cv_target_os_type="Minix" ;;
3792 llvm_cv_target_os_type="FreeBSD" ;;
3794 llvm_cv_target_os_type="OpenBSD" ;;
3796 llvm_cv_target_os_type="NetBSD" ;;
3798 llvm_cv_target_os_type="DragonFly" ;;
3800 llvm_cv_target_os_type="HP-UX" ;;
3802 llvm_cv_target_os_type="Interix" ;;
3804 llvm_cv_target_os_type="Linux" ;;
3806 llvm_cv_target_os_type="SunOS" ;;
3808 llvm_cv_target_os_type="AuroraUX" ;;
3810 llvm_cv_target_os_type="Win32" ;;
3812 llvm_cv_target_os_type="MingW" ;;
3814 llvm_cv_target_os_type="Haiku" ;;
3816 llvm_cv_target_os_type="RTEMS" ;;
3818 llvm_cv_target_os_type="NativeClient" ;;
3820 llvm_cv_target_os_type="Freestanding" ;;
3822 llvm_cv_target_os_type="Unknown" ;;
3825 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3826 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3828 if test "$llvm_cv_os_type" = "Unknown" ; then
3829 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3830 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3831 { (exit 1); exit 1; }; }
3836 HOST_OS=$llvm_cv_os_type
3838 TARGET_OS=$llvm_cv_target_os_type
3841 LINKALL=$llvm_cv_link_all_option
3843 NOLINKALL=$llvm_cv_no_link_all_option
3846 case $llvm_cv_platform_type in
3849 cat >>confdefs.h <<\_ACEOF
3850 #define LLVM_ON_UNIX 1
3860 cat >>confdefs.h <<\_ACEOF
3861 #define LLVM_ON_WIN32 1
3871 { echo "$as_me:$LINENO: checking target architecture" >&5
3872 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3873 if test "${llvm_cv_target_arch+set}" = set; then
3874 echo $ECHO_N "(cached) $ECHO_C" >&6
3877 i?86-*) llvm_cv_target_arch="x86" ;;
3878 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3879 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3880 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3881 arm*-*) llvm_cv_target_arch="ARM" ;;
3882 mips-*) llvm_cv_target_arch="Mips" ;;
3883 xcore-*) llvm_cv_target_arch="XCore" ;;
3884 msp430-*) llvm_cv_target_arch="MSP430" ;;
3885 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3886 ptx-*) llvm_cv_target_arch="PTX" ;;
3887 *) llvm_cv_target_arch="Unknown" ;;
3890 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3891 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3893 if test "$llvm_cv_target_arch" = "Unknown" ; then
3894 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3895 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3898 # Determine the LLVM native architecture for the target
3899 case "$llvm_cv_target_arch" in
3900 x86) LLVM_NATIVE_ARCH="X86" ;;
3901 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3902 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3905 ARCH=$llvm_cv_target_arch
3910 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3911 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3912 if test "${ac_cv_path_GREP+set}" = set; then
3913 echo $ECHO_N "(cached) $ECHO_C" >&6
3915 # Extract the first word of "grep ggrep" to use in msg output
3916 if test -z "$GREP"; then
3917 set dummy grep ggrep; ac_prog_name=$2
3918 if test "${ac_cv_path_GREP+set}" = set; then
3919 echo $ECHO_N "(cached) $ECHO_C" >&6
3921 ac_path_GREP_found=false
3922 # Loop through the user's path and test for each of PROGNAME-LIST
3923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3927 test -z "$as_dir" && as_dir=.
3928 for ac_prog in grep ggrep; do
3929 for ac_exec_ext in '' $ac_executable_extensions; do
3930 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3931 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3932 # Check for GNU ac_path_GREP and select it if it is found.
3933 # Check for GNU $ac_path_GREP
3934 case `"$ac_path_GREP" --version 2>&1` in
3936 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3939 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3942 cat "conftest.in" "conftest.in" >"conftest.tmp"
3943 mv "conftest.tmp" "conftest.in"
3944 cp "conftest.in" "conftest.nl"
3945 echo 'GREP' >> "conftest.nl"
3946 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3947 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3948 ac_count=`expr $ac_count + 1`
3949 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3950 # Best one so far, save it but keep looking for a better one
3951 ac_cv_path_GREP="$ac_path_GREP"
3952 ac_path_GREP_max=$ac_count
3954 # 10*(2^10) chars as input seems more than enough
3955 test $ac_count -gt 10 && break
3957 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3961 $ac_path_GREP_found && break 3
3971 GREP="$ac_cv_path_GREP"
3972 if test -z "$GREP"; then
3973 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3974 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3975 { (exit 1); exit 1; }; }
3979 ac_cv_path_GREP=$GREP
3984 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3985 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3986 GREP="$ac_cv_path_GREP"
3989 { echo "$as_me:$LINENO: checking for egrep" >&5
3990 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3991 if test "${ac_cv_path_EGREP+set}" = set; then
3992 echo $ECHO_N "(cached) $ECHO_C" >&6
3994 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3995 then ac_cv_path_EGREP="$GREP -E"
3997 # Extract the first word of "egrep" to use in msg output
3998 if test -z "$EGREP"; then
3999 set dummy egrep; ac_prog_name=$2
4000 if test "${ac_cv_path_EGREP+set}" = set; then
4001 echo $ECHO_N "(cached) $ECHO_C" >&6
4003 ac_path_EGREP_found=false
4004 # Loop through the user's path and test for each of PROGNAME-LIST
4005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4009 test -z "$as_dir" && as_dir=.
4010 for ac_prog in egrep; do
4011 for ac_exec_ext in '' $ac_executable_extensions; do
4012 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4013 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4014 # Check for GNU ac_path_EGREP and select it if it is found.
4015 # Check for GNU $ac_path_EGREP
4016 case `"$ac_path_EGREP" --version 2>&1` in
4018 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4021 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4024 cat "conftest.in" "conftest.in" >"conftest.tmp"
4025 mv "conftest.tmp" "conftest.in"
4026 cp "conftest.in" "conftest.nl"
4027 echo 'EGREP' >> "conftest.nl"
4028 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4029 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4030 ac_count=`expr $ac_count + 1`
4031 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4032 # Best one so far, save it but keep looking for a better one
4033 ac_cv_path_EGREP="$ac_path_EGREP"
4034 ac_path_EGREP_max=$ac_count
4036 # 10*(2^10) chars as input seems more than enough
4037 test $ac_count -gt 10 && break
4039 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4043 $ac_path_EGREP_found && break 3
4053 EGREP="$ac_cv_path_EGREP"
4054 if test -z "$EGREP"; then
4055 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4056 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4057 { (exit 1); exit 1; }; }
4061 ac_cv_path_EGREP=$EGREP
4067 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4068 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4069 EGREP="$ac_cv_path_EGREP"
4072 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4073 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4074 if test "${ac_cv_header_stdc+set}" = set; then
4075 echo $ECHO_N "(cached) $ECHO_C" >&6
4077 cat >conftest.$ac_ext <<_ACEOF
4080 cat confdefs.h >>conftest.$ac_ext
4081 cat >>conftest.$ac_ext <<_ACEOF
4082 /* end confdefs.h. */
4096 rm -f conftest.$ac_objext
4097 if { (ac_try="$ac_compile"
4099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4100 *) ac_try_echo=$ac_try;;
4102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4103 (eval "$ac_compile") 2>conftest.er1
4105 grep -v '^ *+' conftest.er1 >conftest.err
4107 cat conftest.err >&5
4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109 (exit $ac_status); } &&
4110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4111 { (case "(($ac_try" in
4112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113 *) ac_try_echo=$ac_try;;
4115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4116 (eval "$ac_try") 2>&5
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); }; } &&
4120 { ac_try='test -s conftest.$ac_objext'
4121 { (case "(($ac_try" in
4122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4123 *) ac_try_echo=$ac_try;;
4125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4126 (eval "$ac_try") 2>&5
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); }; }; then
4130 ac_cv_header_stdc=yes
4132 echo "$as_me: failed program was:" >&5
4133 sed 's/^/| /' conftest.$ac_ext >&5
4135 ac_cv_header_stdc=no
4138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4140 if test $ac_cv_header_stdc = yes; then
4141 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4142 cat >conftest.$ac_ext <<_ACEOF
4145 cat confdefs.h >>conftest.$ac_ext
4146 cat >>conftest.$ac_ext <<_ACEOF
4147 /* end confdefs.h. */
4151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4152 $EGREP "memchr" >/dev/null 2>&1; then
4155 ac_cv_header_stdc=no
4161 if test $ac_cv_header_stdc = yes; then
4162 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4163 cat >conftest.$ac_ext <<_ACEOF
4166 cat confdefs.h >>conftest.$ac_ext
4167 cat >>conftest.$ac_ext <<_ACEOF
4168 /* end confdefs.h. */
4172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4173 $EGREP "free" >/dev/null 2>&1; then
4176 ac_cv_header_stdc=no
4182 if test $ac_cv_header_stdc = yes; then
4183 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4184 if test "$cross_compiling" = yes; then
4187 cat >conftest.$ac_ext <<_ACEOF
4190 cat confdefs.h >>conftest.$ac_ext
4191 cat >>conftest.$ac_ext <<_ACEOF
4192 /* end confdefs.h. */
4195 #if ((' ' & 0x0FF) == 0x020)
4196 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4197 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4199 # define ISLOWER(c) \
4200 (('a' <= (c) && (c) <= 'i') \
4201 || ('j' <= (c) && (c) <= 'r') \
4202 || ('s' <= (c) && (c) <= 'z'))
4203 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4206 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4211 for (i = 0; i < 256; i++)
4212 if (XOR (islower (i), ISLOWER (i))
4213 || toupper (i) != TOUPPER (i))
4218 rm -f conftest$ac_exeext
4219 if { (ac_try="$ac_link"
4221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4222 *) ac_try_echo=$ac_try;;
4224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4225 (eval "$ac_link") 2>&5
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4229 { (case "(($ac_try" in
4230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4231 *) ac_try_echo=$ac_try;;
4233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4234 (eval "$ac_try") 2>&5
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); }; }; then
4240 echo "$as_me: program exited with status $ac_status" >&5
4241 echo "$as_me: failed program was:" >&5
4242 sed 's/^/| /' conftest.$ac_ext >&5
4245 ac_cv_header_stdc=no
4247 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4253 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4254 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4255 if test $ac_cv_header_stdc = yes; then
4257 cat >>confdefs.h <<\_ACEOF
4258 #define STDC_HEADERS 1
4263 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4273 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4274 inttypes.h stdint.h unistd.h
4276 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4277 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4280 echo $ECHO_N "(cached) $ECHO_C" >&6
4282 cat >conftest.$ac_ext <<_ACEOF
4285 cat confdefs.h >>conftest.$ac_ext
4286 cat >>conftest.$ac_ext <<_ACEOF
4287 /* end confdefs.h. */
4288 $ac_includes_default
4290 #include <$ac_header>
4292 rm -f conftest.$ac_objext
4293 if { (ac_try="$ac_compile"
4295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4296 *) ac_try_echo=$ac_try;;
4298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4299 (eval "$ac_compile") 2>conftest.er1
4301 grep -v '^ *+' conftest.er1 >conftest.err
4303 cat conftest.err >&5
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); } &&
4306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4307 { (case "(($ac_try" in
4308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309 *) ac_try_echo=$ac_try;;
4311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4312 (eval "$ac_try") 2>&5
4314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315 (exit $ac_status); }; } &&
4316 { ac_try='test -s conftest.$ac_objext'
4317 { (case "(($ac_try" in
4318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4319 *) ac_try_echo=$ac_try;;
4321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4322 (eval "$ac_try") 2>&5
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); }; }; then
4326 eval "$as_ac_Header=yes"
4328 echo "$as_me: failed program was:" >&5
4329 sed 's/^/| /' conftest.$ac_ext >&5
4331 eval "$as_ac_Header=no"
4334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4336 ac_res=`eval echo '${'$as_ac_Header'}'`
4337 { echo "$as_me:$LINENO: result: $ac_res" >&5
4338 echo "${ECHO_T}$ac_res" >&6; }
4339 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4340 cat >>confdefs.h <<_ACEOF
4341 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4349 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4350 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4351 if test "${ac_cv_c_bigendian+set}" = set; then
4352 echo $ECHO_N "(cached) $ECHO_C" >&6
4354 # See if sys/param.h defines the BYTE_ORDER macro.
4355 cat >conftest.$ac_ext <<_ACEOF
4358 cat confdefs.h >>conftest.$ac_ext
4359 cat >>conftest.$ac_ext <<_ACEOF
4360 /* end confdefs.h. */
4361 #include <sys/types.h>
4362 #include <sys/param.h>
4367 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4375 rm -f conftest.$ac_objext
4376 if { (ac_try="$ac_compile"
4378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4379 *) ac_try_echo=$ac_try;;
4381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4382 (eval "$ac_compile") 2>conftest.er1
4384 grep -v '^ *+' conftest.er1 >conftest.err
4386 cat conftest.err >&5
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); } &&
4389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4390 { (case "(($ac_try" in
4391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4392 *) ac_try_echo=$ac_try;;
4394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4395 (eval "$ac_try") 2>&5
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); }; } &&
4399 { ac_try='test -s conftest.$ac_objext'
4400 { (case "(($ac_try" in
4401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4402 *) ac_try_echo=$ac_try;;
4404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4405 (eval "$ac_try") 2>&5
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); }; }; then
4409 # It does; now see whether it defined to BIG_ENDIAN or not.
4410 cat >conftest.$ac_ext <<_ACEOF
4413 cat confdefs.h >>conftest.$ac_ext
4414 cat >>conftest.$ac_ext <<_ACEOF
4415 /* end confdefs.h. */
4416 #include <sys/types.h>
4417 #include <sys/param.h>
4422 #if BYTE_ORDER != BIG_ENDIAN
4430 rm -f conftest.$ac_objext
4431 if { (ac_try="$ac_compile"
4433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4434 *) ac_try_echo=$ac_try;;
4436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4437 (eval "$ac_compile") 2>conftest.er1
4439 grep -v '^ *+' conftest.er1 >conftest.err
4441 cat conftest.err >&5
4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); } &&
4444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4445 { (case "(($ac_try" in
4446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4447 *) ac_try_echo=$ac_try;;
4449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4450 (eval "$ac_try") 2>&5
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); }; } &&
4454 { ac_try='test -s conftest.$ac_objext'
4455 { (case "(($ac_try" in
4456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4457 *) ac_try_echo=$ac_try;;
4459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4460 (eval "$ac_try") 2>&5
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); }; }; then
4464 ac_cv_c_bigendian=yes
4466 echo "$as_me: failed program was:" >&5
4467 sed 's/^/| /' conftest.$ac_ext >&5
4469 ac_cv_c_bigendian=no
4472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4474 echo "$as_me: failed program was:" >&5
4475 sed 's/^/| /' conftest.$ac_ext >&5
4477 # It does not; compile a test program.
4478 if test "$cross_compiling" = yes; then
4479 # try to guess the endianness by grepping values into an object file
4480 ac_cv_c_bigendian=unknown
4481 cat >conftest.$ac_ext <<_ACEOF
4484 cat confdefs.h >>conftest.$ac_ext
4485 cat >>conftest.$ac_ext <<_ACEOF
4486 /* end confdefs.h. */
4487 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4488 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4489 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4490 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4491 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4492 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4496 _ascii (); _ebcdic ();
4501 rm -f conftest.$ac_objext
4502 if { (ac_try="$ac_compile"
4504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4505 *) ac_try_echo=$ac_try;;
4507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4508 (eval "$ac_compile") 2>conftest.er1
4510 grep -v '^ *+' conftest.er1 >conftest.err
4512 cat conftest.err >&5
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); } &&
4515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4516 { (case "(($ac_try" in
4517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4518 *) ac_try_echo=$ac_try;;
4520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4521 (eval "$ac_try") 2>&5
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); }; } &&
4525 { ac_try='test -s conftest.$ac_objext'
4526 { (case "(($ac_try" in
4527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4528 *) ac_try_echo=$ac_try;;
4530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4531 (eval "$ac_try") 2>&5
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); }; }; then
4535 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4536 ac_cv_c_bigendian=yes
4538 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4539 if test "$ac_cv_c_bigendian" = unknown; then
4540 ac_cv_c_bigendian=no
4542 # finding both strings is unlikely to happen, but who knows?
4543 ac_cv_c_bigendian=unknown
4547 echo "$as_me: failed program was:" >&5
4548 sed 's/^/| /' conftest.$ac_ext >&5
4553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4555 cat >conftest.$ac_ext <<_ACEOF
4558 cat confdefs.h >>conftest.$ac_ext
4559 cat >>conftest.$ac_ext <<_ACEOF
4560 /* end confdefs.h. */
4561 $ac_includes_default
4566 /* Are we little or big endian? From Harbison&Steele. */
4570 char c[sizeof (long int)];
4573 return u.c[sizeof (long int) - 1] == 1;
4579 rm -f conftest$ac_exeext
4580 if { (ac_try="$ac_link"
4582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4583 *) ac_try_echo=$ac_try;;
4585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4586 (eval "$ac_link") 2>&5
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4590 { (case "(($ac_try" in
4591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4592 *) ac_try_echo=$ac_try;;
4594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4595 (eval "$ac_try") 2>&5
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); }; }; then
4599 ac_cv_c_bigendian=no
4601 echo "$as_me: program exited with status $ac_status" >&5
4602 echo "$as_me: failed program was:" >&5
4603 sed 's/^/| /' conftest.$ac_ext >&5
4606 ac_cv_c_bigendian=yes
4608 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4616 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4617 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4618 case $ac_cv_c_bigendian in
4626 { { echo "$as_me:$LINENO: error: unknown endianness
4627 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4628 echo "$as_me: error: unknown endianness
4629 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4630 { (exit 1); exit 1; }; } ;;
4634 if test "$cross_compiling" = yes; then
4635 LLVM_CROSS_COMPILING=1
4638 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4639 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4640 if test "${ac_cv_build_exeext+set}" = set; then
4641 echo $ECHO_N "(cached) $ECHO_C" >&6
4643 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4644 ac_cv_build_exeext=.exe
4646 ac_build_prefix=${build_alias}-
4648 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4649 set dummy ${ac_build_prefix}gcc; ac_word=$2
4650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4652 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
4655 if test -n "$BUILD_CC"; then
4656 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 test -z "$as_dir" && as_dir=.
4663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4665 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4675 BUILD_CC=$ac_cv_prog_BUILD_CC
4676 if test -n "$BUILD_CC"; then
4677 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4678 echo "${ECHO_T}$BUILD_CC" >&6; }
4680 { echo "$as_me:$LINENO: result: no" >&5
4681 echo "${ECHO_T}no" >&6; }
4685 if test -z "$BUILD_CC"; then
4686 # Extract the first word of "gcc", so it can be a program name with args.
4687 set dummy gcc; ac_word=$2
4688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4690 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4691 echo $ECHO_N "(cached) $ECHO_C" >&6
4693 if test -n "$BUILD_CC"; then
4694 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700 test -z "$as_dir" && as_dir=.
4701 for ac_exec_ext in '' $ac_executable_extensions; do
4702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4703 ac_cv_prog_BUILD_CC="gcc"
4704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4713 BUILD_CC=$ac_cv_prog_BUILD_CC
4714 if test -n "$BUILD_CC"; then
4715 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4716 echo "${ECHO_T}$BUILD_CC" >&6; }
4718 { echo "$as_me:$LINENO: result: no" >&5
4719 echo "${ECHO_T}no" >&6; }
4723 if test -z "$BUILD_CC"; then
4724 # Extract the first word of "cc", so it can be a program name with args.
4725 set dummy cc; ac_word=$2
4726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4728 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4729 echo $ECHO_N "(cached) $ECHO_C" >&6
4731 if test -n "$BUILD_CC"; then
4732 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739 test -z "$as_dir" && as_dir=.
4740 for ac_exec_ext in '' $ac_executable_extensions; do
4741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4742 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4743 ac_prog_rejected=yes
4746 ac_cv_prog_BUILD_CC="cc"
4747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4754 if test $ac_prog_rejected = yes; then
4755 # We found a bogon in the path, so make sure we never use it.
4756 set dummy $ac_cv_prog_BUILD_CC
4758 if test $# != 0; then
4759 # We chose a different compiler from the bogus one.
4760 # However, it has the same basename, so the bogon will be chosen
4761 # first if we set BUILD_CC to just the basename; use the full file name.
4763 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4768 BUILD_CC=$ac_cv_prog_BUILD_CC
4769 if test -n "$BUILD_CC"; then
4770 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4771 echo "${ECHO_T}$BUILD_CC" >&6; }
4773 { echo "$as_me:$LINENO: result: no" >&5
4774 echo "${ECHO_T}no" >&6; }
4780 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4781 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4782 { (exit 1); exit 1; }; }
4783 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4785 echo 'int main () { return 0; }' > conftest.$ac_ext
4787 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4788 (eval $ac_build_link) 2>&5
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); }; then
4792 for file in conftest.*; do
4794 *.c | *.o | *.obj | *.dSYM) ;;
4795 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4799 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4800 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4801 { (exit 1); exit 1; }; }
4804 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4809 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4810 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4811 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4812 ac_build_exeext=$BUILD_EXEEXT
4814 ac_build_prefix=${build_alias}-
4815 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4816 set dummy ${ac_build_prefix}g++; ac_word=$2
4817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4819 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4820 echo $ECHO_N "(cached) $ECHO_C" >&6
4822 if test -n "$BUILD_CXX"; then
4823 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 test -z "$as_dir" && as_dir=.
4830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4832 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4842 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4843 if test -n "$BUILD_CXX"; then
4844 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4845 echo "${ECHO_T}$BUILD_CXX" >&6; }
4847 { echo "$as_me:$LINENO: result: no" >&5
4848 echo "${ECHO_T}no" >&6; }
4852 if test -z "$BUILD_CXX"; then
4853 # Extract the first word of "g++", so it can be a program name with args.
4854 set dummy g++; ac_word=$2
4855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4857 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4858 echo $ECHO_N "(cached) $ECHO_C" >&6
4860 if test -n "$BUILD_CXX"; then
4861 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 test -z "$as_dir" && as_dir=.
4868 for ac_exec_ext in '' $ac_executable_extensions; do
4869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4870 ac_cv_prog_BUILD_CXX="g++"
4871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4880 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4881 if test -n "$BUILD_CXX"; then
4882 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4883 echo "${ECHO_T}$BUILD_CXX" >&6; }
4885 { echo "$as_me:$LINENO: result: no" >&5
4886 echo "${ECHO_T}no" >&6; }
4890 if test -z "$BUILD_CXX"; then
4891 # Extract the first word of "c++", so it can be a program name with args.
4892 set dummy c++; ac_word=$2
4893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4895 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4896 echo $ECHO_N "(cached) $ECHO_C" >&6
4898 if test -n "$BUILD_CXX"; then
4899 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 test -z "$as_dir" && as_dir=.
4907 for ac_exec_ext in '' $ac_executable_extensions; do
4908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4909 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4910 ac_prog_rejected=yes
4913 ac_cv_prog_BUILD_CXX="c++"
4914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4921 if test $ac_prog_rejected = yes; then
4922 # We found a bogon in the path, so make sure we never use it.
4923 set dummy $ac_cv_prog_BUILD_CXX
4925 if test $# != 0; then
4926 # We chose a different compiler from the bogus one.
4927 # However, it has the same basename, so the bogon will be chosen
4928 # first if we set BUILD_CXX to just the basename; use the full file name.
4930 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4935 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4936 if test -n "$BUILD_CXX"; then
4937 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4938 echo "${ECHO_T}$BUILD_CXX" >&6; }
4940 { echo "$as_me:$LINENO: result: no" >&5
4941 echo "${ECHO_T}no" >&6; }
4948 LLVM_CROSS_COMPILING=0
4952 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4963 # Check whether --enable-libcpp was given.
4964 if test "${enable_libcpp+set}" = set; then
4965 enableval=$enable_libcpp;
4970 case "$enableval" in
4971 yes) ENABLE_LIBCPP=1
4975 default) ENABLE_LIBCPP=0
4977 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4978 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4979 { (exit 1); exit 1; }; } ;;
4982 # Check whether --enable-optimized was given.
4983 if test "${enable_optimized+set}" = set; then
4984 enableval=$enable_optimized;
4989 if test ${enableval} = "no" ; then
4993 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4997 # Check whether --enable-profiling was given.
4998 if test "${enable_profiling+set}" = set; then
4999 enableval=$enable_profiling;
5004 if test ${enableval} = "no" ; then
5008 ENABLE_PROFILING=ENABLE_PROFILING=1
5012 # Check whether --enable-assertions was given.
5013 if test "${enable_assertions+set}" = set; then
5014 enableval=$enable_assertions;
5019 if test ${enableval} = "yes" ; then
5023 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5027 # Check whether --enable-expensive-checks was given.
5028 if test "${enable_expensive_checks+set}" = set; then
5029 enableval=$enable_expensive_checks;
5034 if test ${enableval} = "yes" ; then
5035 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5037 EXPENSIVE_CHECKS=yes
5040 ENABLE_EXPENSIVE_CHECKS=
5046 # Check whether --enable-debug-runtime was given.
5047 if test "${enable_debug_runtime+set}" = set; then
5048 enableval=$enable_debug_runtime;
5053 if test ${enableval} = "no" ; then
5057 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5061 # Check whether --enable-debug-symbols was given.
5062 if test "${enable_debug_symbols+set}" = set; then
5063 enableval=$enable_debug_symbols;
5068 if test ${enableval} = "no" ; then
5072 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5076 # Check whether --enable-jit was given.
5077 if test "${enable_jit+set}" = set; then
5078 enableval=$enable_jit;
5083 if test ${enableval} = "no"
5088 case "$llvm_cv_target_arch" in
5089 x86) TARGET_HAS_JIT=1
5091 Sparc) TARGET_HAS_JIT=0
5093 PowerPC) TARGET_HAS_JIT=1
5095 x86_64) TARGET_HAS_JIT=1
5097 ARM) TARGET_HAS_JIT=1
5099 Mips) TARGET_HAS_JIT=1
5101 XCore) TARGET_HAS_JIT=0
5103 MSP430) TARGET_HAS_JIT=0
5105 MBlaze) TARGET_HAS_JIT=0
5107 PTX) TARGET_HAS_JIT=0
5114 # Check whether --enable-docs was given.
5115 if test "${enable_docs+set}" = set; then
5116 enableval=$enable_docs;
5121 case "$enableval" in
5126 default) ENABLE_DOCS=1
5128 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5129 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5130 { (exit 1); exit 1; }; } ;;
5133 # Check whether --enable-doxygen was given.
5134 if test "${enable_doxygen+set}" = set; then
5135 enableval=$enable_doxygen;
5140 case "$enableval" in
5141 yes) ENABLE_DOXYGEN=1
5143 no) ENABLE_DOXYGEN=0
5145 default) ENABLE_DOXYGEN=0
5147 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5148 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5149 { (exit 1); exit 1; }; } ;;
5152 # Check whether --enable-threads was given.
5153 if test "${enable_threads+set}" = set; then
5154 enableval=$enable_threads;
5159 case "$enableval" in
5160 yes) LLVM_ENABLE_THREADS=1
5162 no) LLVM_ENABLE_THREADS=0
5164 default) LLVM_ENABLE_THREADS=1
5166 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5167 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5168 { (exit 1); exit 1; }; } ;;
5171 cat >>confdefs.h <<_ACEOF
5172 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5176 # Check whether --enable-pthreads was given.
5177 if test "${enable_pthreads+set}" = set; then
5178 enableval=$enable_pthreads;
5183 case "$enableval" in
5184 yes) ENABLE_PTHREADS=1
5186 no) ENABLE_PTHREADS=0
5188 default) ENABLE_PTHREADS=1
5190 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5191 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5192 { (exit 1); exit 1; }; } ;;
5195 # Check whether --enable-pic was given.
5196 if test "${enable_pic+set}" = set; then
5197 enableval=$enable_pic;
5202 case "$enableval" in
5207 default) ENABLE_PIC=1
5209 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5210 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5211 { (exit 1); exit 1; }; } ;;
5214 cat >>confdefs.h <<_ACEOF
5215 #define ENABLE_PIC $ENABLE_PIC
5219 # Check whether --enable-shared was given.
5220 if test "${enable_shared+set}" = set; then
5221 enableval=$enable_shared;
5226 case "$enableval" in
5227 yes) ENABLE_SHARED=1
5231 default) ENABLE_SHARED=0
5233 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5234 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5235 { (exit 1); exit 1; }; } ;;
5238 # Check whether --enable-embed-stdcxx was given.
5239 if test "${enable_embed_stdcxx+set}" = set; then
5240 enableval=$enable_embed_stdcxx;
5245 case "$enableval" in
5246 yes) ENABLE_EMBED_STDCXX=1
5248 no) ENABLE_EMBED_STDCXX=0
5250 default) ENABLE_EMBED_STDCXX=0
5252 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5253 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5254 { (exit 1); exit 1; }; } ;;
5257 # Check whether --enable-timestamps was given.
5258 if test "${enable_timestamps+set}" = set; then
5259 enableval=$enable_timestamps;
5264 case "$enableval" in
5265 yes) ENABLE_TIMESTAMPS=1
5267 no) ENABLE_TIMESTAMPS=0
5269 default) ENABLE_TIMESTAMPS=1
5271 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5272 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5273 { (exit 1); exit 1; }; } ;;
5276 cat >>confdefs.h <<_ACEOF
5277 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5282 # Check whether --enable-targets was given.
5283 if test "${enable_targets+set}" = set; then
5284 enableval=$enable_targets;
5289 if test "$enableval" = host-only ; then
5292 case "$enableval" in
5293 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CBackend CppBackend MBlaze PTX" ;;
5294 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5296 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5297 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5298 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5299 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5300 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5301 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5302 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5303 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5304 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5305 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5306 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5307 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5308 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5309 host) case "$llvm_cv_target_arch" in
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 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5317 CellSPU|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 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5321 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5322 echo "$as_me: error: Can not set target to build" >&2;}
5323 { (exit 1); exit 1; }; } ;;
5325 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5326 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5327 { (exit 1); exit 1; }; } ;;
5332 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5335 # Determine whether we are building LLVM support for the native architecture.
5336 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5337 for a_target in $TARGETS_TO_BUILD; do
5338 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5340 cat >>confdefs.h <<_ACEOF
5341 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5344 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5345 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5346 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5347 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5348 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5349 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5352 cat >>confdefs.h <<_ACEOF
5353 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5357 cat >>confdefs.h <<_ACEOF
5358 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5362 cat >>confdefs.h <<_ACEOF
5363 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5367 cat >>confdefs.h <<_ACEOF
5368 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5371 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5373 cat >>confdefs.h <<_ACEOF
5374 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5381 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5382 # target feature def files.
5383 LLVM_ENUM_TARGETS=""
5384 LLVM_ENUM_ASM_PRINTERS=""
5385 LLVM_ENUM_ASM_PARSERS=""
5386 LLVM_ENUM_DISASSEMBLERS=""
5387 for target_to_build in $TARGETS_TO_BUILD; do
5388 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5389 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5390 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5392 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5393 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5395 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5396 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5404 # Check whether --enable-cbe-printf-a was given.
5405 if test "${enable_cbe_printf_a+set}" = set; then
5406 enableval=$enable_cbe_printf_a;
5411 case "$enableval" in
5412 yes) ENABLE_CBE_PRINTF_A=1
5414 no) ENABLE_CBE_PRINTF_A=0
5416 default) ENABLE_CBE_PRINTF_A=1
5418 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5419 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5420 { (exit 1); exit 1; }; } ;;
5423 cat >>confdefs.h <<_ACEOF
5424 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5429 # Check whether --with-optimize-option was given.
5430 if test "${with_optimize_option+set}" = set; then
5431 withval=$with_optimize_option;
5436 { echo "$as_me:$LINENO: checking optimization flags" >&5
5437 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5440 case "$llvm_cv_os_type" in
5441 FreeBSD) optimize_option=-O2 ;;
5442 MingW) optimize_option=-O2 ;;
5443 *) optimize_option=-O3 ;;
5445 *) optimize_option="$withval" ;;
5447 OPTIMIZE_OPTION=$optimize_option
5449 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5450 echo "${ECHO_T}$optimize_option" >&6; }
5453 # Check whether --with-extra-options was given.
5454 if test "${with_extra_options+set}" = set; then
5455 withval=$with_extra_options;
5461 default) EXTRA_OPTIONS= ;;
5462 *) EXTRA_OPTIONS=$withval ;;
5464 EXTRA_OPTIONS=$EXTRA_OPTIONS
5468 # Check whether --with-extra-ld-options was given.
5469 if test "${with_extra_ld_options+set}" = set; then
5470 withval=$with_extra_ld_options;
5476 default) EXTRA_LD_OPTIONS= ;;
5477 *) EXTRA_LD_OPTIONS=$withval ;;
5479 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5482 # Check whether --enable-bindings was given.
5483 if test "${enable_bindings+set}" = set; then
5484 enableval=$enable_bindings;
5489 BINDINGS_TO_BUILD=""
5490 case "$enableval" in
5491 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5492 all ) BINDINGS_TO_BUILD="ocaml" ;;
5493 none | no) BINDINGS_TO_BUILD="" ;;
5494 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5495 case "$a_binding" in
5496 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5497 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5498 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5499 { (exit 1); exit 1; }; } ;;
5506 # Check whether --with-ocaml-libdir was given.
5507 if test "${with_ocaml_libdir+set}" = set; then
5508 withval=$with_ocaml_libdir;
5514 auto) with_ocaml_libdir="$withval" ;;
5515 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5516 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5517 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5518 { (exit 1); exit 1; }; } ;;
5522 # Check whether --with-clang-srcdir was given.
5523 if test "${with_clang_srcdir+set}" = set; then
5524 withval=$with_clang_srcdir;
5530 -) clang_src_root="" ;;
5531 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5532 *) clang_src_root="$ac_pwd/$withval" ;;
5534 CLANG_SRC_ROOT=$clang_src_root
5538 # Check whether --with-clang-resource-dir was given.
5539 if test "${with_clang_resource_dir+set}" = set; then
5540 withval=$with_clang_resource_dir;
5546 cat >>confdefs.h <<_ACEOF
5547 #define CLANG_RESOURCE_DIR "$withval"
5552 # Check whether --with-c-include-dirs was given.
5553 if test "${with_c_include_dirs+set}" = set; then
5554 withval=$with_c_include_dirs;
5560 cat >>confdefs.h <<_ACEOF
5561 #define C_INCLUDE_DIRS "$withval"
5566 # Check whether --with-cxx-include-root was given.
5567 if test "${with_cxx_include_root+set}" = set; then
5568 withval=$with_cxx_include_root;
5574 cat >>confdefs.h <<_ACEOF
5575 #define CXX_INCLUDE_ROOT "$withval"
5580 # Check whether --with-cxx-include-arch was given.
5581 if test "${with_cxx_include_arch+set}" = set; then
5582 withval=$with_cxx_include_arch;
5588 cat >>confdefs.h <<_ACEOF
5589 #define CXX_INCLUDE_ARCH "$withval"
5594 # Check whether --with-cxx-include-32bit-dir was given.
5595 if test "${with_cxx_include_32bit_dir+set}" = set; then
5596 withval=$with_cxx_include_32bit_dir;
5602 cat >>confdefs.h <<_ACEOF
5603 #define CXX_INCLUDE_32BIT_DIR "$withval"
5608 # Check whether --with-cxx-include-64bit-dir was given.
5609 if test "${with_cxx_include_64bit_dir+set}" = set; then
5610 withval=$with_cxx_include_64bit_dir;
5616 cat >>confdefs.h <<_ACEOF
5617 #define CXX_INCLUDE_64BIT_DIR "$withval"
5622 # Check whether --with-binutils-include was given.
5623 if test "${with_binutils_include+set}" = set; then
5624 withval=$with_binutils_include;
5630 default) WITH_BINUTILS_INCDIR=default ;;
5631 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5632 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5633 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5634 { (exit 1); exit 1; }; } ;;
5636 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5637 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5639 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5640 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5641 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5642 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5643 { (exit 1); exit 1; }; };
5648 # Check whether --with-bug-report-url was given.
5649 if test "${with_bug_report_url+set}" = set; then
5650 withval=$with_bug_report_url;
5652 withval="http://llvm.org/bugs/"
5656 cat >>confdefs.h <<_ACEOF
5657 #define BUG_REPORT_URL "$withval"
5661 # Check whether --enable-libffi was given.
5662 if test "${enable_libffi+set}" = set; then
5663 enableval=$enable_libffi; case "$enableval" in
5664 yes) llvm_cv_enable_libffi="yes" ;;
5665 no) llvm_cv_enable_libffi="no" ;;
5666 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5667 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5668 { (exit 1); exit 1; }; } ;;
5671 llvm_cv_enable_libffi=no
5676 # Check whether --with-internal-prefix was given.
5677 if test "${with_internal_prefix+set}" = set; then
5678 withval=$with_internal_prefix;
5683 INTERNAL_PREFIX=$withval
5687 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5688 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5689 if test "${lt_cv_path_NM+set}" = set; then
5690 echo $ECHO_N "(cached) $ECHO_C" >&6
5692 if test -n "$NM"; then
5693 # Let the user override the test.
5696 lt_nm_to_check="${ac_tool_prefix}nm"
5697 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5698 lt_nm_to_check="$lt_nm_to_check nm"
5700 for lt_tmp_nm in $lt_nm_to_check; do
5701 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5702 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5704 test -z "$ac_dir" && ac_dir=.
5705 tmp_nm="$ac_dir/$lt_tmp_nm"
5706 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5707 # Check to see if the nm accepts a BSD-compat flag.
5708 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5709 # nm: unknown option "B" ignored
5710 # Tru64's nm complains that /dev/null is an invalid object file
5711 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5712 */dev/null* | *'Invalid file or object type'*)
5713 lt_cv_path_NM="$tmp_nm -B"
5717 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5719 lt_cv_path_NM="$tmp_nm -p"
5723 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5724 continue # so that we can try to find one that supports BSD flags
5733 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5736 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5737 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5742 { echo "$as_me:$LINENO: checking for GNU make" >&5
5743 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5744 if test "${llvm_cv_gnu_make_command+set}" = set; then
5745 echo $ECHO_N "(cached) $ECHO_C" >&6
5747 llvm_cv_gnu_make_command=''
5748 for a in "$MAKE" make gmake gnumake ; do
5749 if test -z "$a" ; then continue ; fi ;
5750 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5752 llvm_cv_gnu_make_command=$a ;
5757 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5758 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5759 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5763 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5764 echo "${ECHO_T}\"Not found\"" >&6; };
5768 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5769 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5771 if test "$LN_S" = "ln -s"; then
5772 { echo "$as_me:$LINENO: result: yes" >&5
5773 echo "${ECHO_T}yes" >&6; }
5775 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5776 echo "${ECHO_T}no, using $LN_S" >&6; }
5779 # Extract the first word of "cmp", so it can be a program name with args.
5780 set dummy cmp; ac_word=$2
5781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5783 if test "${ac_cv_path_CMP+set}" = set; then
5784 echo $ECHO_N "(cached) $ECHO_C" >&6
5788 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5795 test -z "$as_dir" && as_dir=.
5796 for ac_exec_ext in '' $ac_executable_extensions; do
5797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5798 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5806 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5811 if test -n "$CMP"; then
5812 { echo "$as_me:$LINENO: result: $CMP" >&5
5813 echo "${ECHO_T}$CMP" >&6; }
5815 { echo "$as_me:$LINENO: result: no" >&5
5816 echo "${ECHO_T}no" >&6; }
5820 # Extract the first word of "cp", so it can be a program name with args.
5821 set dummy cp; ac_word=$2
5822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5824 if test "${ac_cv_path_CP+set}" = set; then
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
5829 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5836 test -z "$as_dir" && as_dir=.
5837 for ac_exec_ext in '' $ac_executable_extensions; do
5838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5839 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5847 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5852 if test -n "$CP"; then
5853 { echo "$as_me:$LINENO: result: $CP" >&5
5854 echo "${ECHO_T}$CP" >&6; }
5856 { echo "$as_me:$LINENO: result: no" >&5
5857 echo "${ECHO_T}no" >&6; }
5861 # Extract the first word of "date", so it can be a program name with args.
5862 set dummy date; ac_word=$2
5863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5865 if test "${ac_cv_path_DATE+set}" = set; then
5866 echo $ECHO_N "(cached) $ECHO_C" >&6
5870 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877 test -z "$as_dir" && as_dir=.
5878 for ac_exec_ext in '' $ac_executable_extensions; do
5879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5880 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5888 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5892 DATE=$ac_cv_path_DATE
5893 if test -n "$DATE"; then
5894 { echo "$as_me:$LINENO: result: $DATE" >&5
5895 echo "${ECHO_T}$DATE" >&6; }
5897 { echo "$as_me:$LINENO: result: no" >&5
5898 echo "${ECHO_T}no" >&6; }
5902 # Extract the first word of "find", so it can be a program name with args.
5903 set dummy find; ac_word=$2
5904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5906 if test "${ac_cv_path_FIND+set}" = set; then
5907 echo $ECHO_N "(cached) $ECHO_C" >&6
5911 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5918 test -z "$as_dir" && as_dir=.
5919 for ac_exec_ext in '' $ac_executable_extensions; do
5920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5921 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5929 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5933 FIND=$ac_cv_path_FIND
5934 if test -n "$FIND"; then
5935 { echo "$as_me:$LINENO: result: $FIND" >&5
5936 echo "${ECHO_T}$FIND" >&6; }
5938 { echo "$as_me:$LINENO: result: no" >&5
5939 echo "${ECHO_T}no" >&6; }
5943 # Extract the first word of "grep", so it can be a program name with args.
5944 set dummy grep; ac_word=$2
5945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5947 if test "${ac_cv_path_GREP+set}" = set; then
5948 echo $ECHO_N "(cached) $ECHO_C" >&6
5952 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5959 test -z "$as_dir" && as_dir=.
5960 for ac_exec_ext in '' $ac_executable_extensions; do
5961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5962 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5970 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5974 GREP=$ac_cv_path_GREP
5975 if test -n "$GREP"; then
5976 { echo "$as_me:$LINENO: result: $GREP" >&5
5977 echo "${ECHO_T}$GREP" >&6; }
5979 { echo "$as_me:$LINENO: result: no" >&5
5980 echo "${ECHO_T}no" >&6; }
5984 # Extract the first word of "mkdir", so it can be a program name with args.
5985 set dummy mkdir; ac_word=$2
5986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5988 if test "${ac_cv_path_MKDIR+set}" = set; then
5989 echo $ECHO_N "(cached) $ECHO_C" >&6
5993 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6000 test -z "$as_dir" && as_dir=.
6001 for ac_exec_ext in '' $ac_executable_extensions; do
6002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6003 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6011 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6015 MKDIR=$ac_cv_path_MKDIR
6016 if test -n "$MKDIR"; then
6017 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6018 echo "${ECHO_T}$MKDIR" >&6; }
6020 { echo "$as_me:$LINENO: result: no" >&5
6021 echo "${ECHO_T}no" >&6; }
6025 # Extract the first word of "mv", so it can be a program name with args.
6026 set dummy mv; ac_word=$2
6027 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6029 if test "${ac_cv_path_MV+set}" = set; then
6030 echo $ECHO_N "(cached) $ECHO_C" >&6
6034 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6041 test -z "$as_dir" && as_dir=.
6042 for ac_exec_ext in '' $ac_executable_extensions; do
6043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6044 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6052 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6057 if test -n "$MV"; then
6058 { echo "$as_me:$LINENO: result: $MV" >&5
6059 echo "${ECHO_T}$MV" >&6; }
6061 { echo "$as_me:$LINENO: result: no" >&5
6062 echo "${ECHO_T}no" >&6; }
6066 if test -n "$ac_tool_prefix"; then
6067 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6068 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6071 if test "${ac_cv_prog_RANLIB+set}" = set; then
6072 echo $ECHO_N "(cached) $ECHO_C" >&6
6074 if test -n "$RANLIB"; then
6075 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6081 test -z "$as_dir" && as_dir=.
6082 for ac_exec_ext in '' $ac_executable_extensions; do
6083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6084 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6094 RANLIB=$ac_cv_prog_RANLIB
6095 if test -n "$RANLIB"; then
6096 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6097 echo "${ECHO_T}$RANLIB" >&6; }
6099 { echo "$as_me:$LINENO: result: no" >&5
6100 echo "${ECHO_T}no" >&6; }
6105 if test -z "$ac_cv_prog_RANLIB"; then
6106 ac_ct_RANLIB=$RANLIB
6107 # Extract the first word of "ranlib", so it can be a program name with args.
6108 set dummy ranlib; ac_word=$2
6109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6111 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6112 echo $ECHO_N "(cached) $ECHO_C" >&6
6114 if test -n "$ac_ct_RANLIB"; then
6115 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6121 test -z "$as_dir" && as_dir=.
6122 for ac_exec_ext in '' $ac_executable_extensions; do
6123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6124 ac_cv_prog_ac_ct_RANLIB="ranlib"
6125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6134 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6135 if test -n "$ac_ct_RANLIB"; then
6136 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6137 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6139 { echo "$as_me:$LINENO: result: no" >&5
6140 echo "${ECHO_T}no" >&6; }
6143 if test "x$ac_ct_RANLIB" = x; then
6146 case $cross_compiling:$ac_tool_warned in
6148 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6149 whose name does not start with the host triplet. If you think this
6150 configuration is useful to you, please write to autoconf@gnu.org." >&5
6151 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6152 whose name does not start with the host triplet. If you think this
6153 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6154 ac_tool_warned=yes ;;
6156 RANLIB=$ac_ct_RANLIB
6159 RANLIB="$ac_cv_prog_RANLIB"
6162 if test -n "$ac_tool_prefix"; then
6163 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6164 set dummy ${ac_tool_prefix}ar; ac_word=$2
6165 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6167 if test "${ac_cv_prog_AR+set}" = set; then
6168 echo $ECHO_N "(cached) $ECHO_C" >&6
6170 if test -n "$AR"; then
6171 ac_cv_prog_AR="$AR" # Let the user override the test.
6173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177 test -z "$as_dir" && as_dir=.
6178 for ac_exec_ext in '' $ac_executable_extensions; do
6179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6180 ac_cv_prog_AR="${ac_tool_prefix}ar"
6181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6191 if test -n "$AR"; then
6192 { echo "$as_me:$LINENO: result: $AR" >&5
6193 echo "${ECHO_T}$AR" >&6; }
6195 { echo "$as_me:$LINENO: result: no" >&5
6196 echo "${ECHO_T}no" >&6; }
6201 if test -z "$ac_cv_prog_AR"; then
6203 # Extract the first word of "ar", so it can be a program name with args.
6204 set dummy ar; ac_word=$2
6205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6207 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6208 echo $ECHO_N "(cached) $ECHO_C" >&6
6210 if test -n "$ac_ct_AR"; then
6211 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6217 test -z "$as_dir" && as_dir=.
6218 for ac_exec_ext in '' $ac_executable_extensions; do
6219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6220 ac_cv_prog_ac_ct_AR="ar"
6221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6230 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6231 if test -n "$ac_ct_AR"; then
6232 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6233 echo "${ECHO_T}$ac_ct_AR" >&6; }
6235 { echo "$as_me:$LINENO: result: no" >&5
6236 echo "${ECHO_T}no" >&6; }
6239 if test "x$ac_ct_AR" = x; then
6242 case $cross_compiling:$ac_tool_warned in
6244 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6245 whose name does not start with the host triplet. If you think this
6246 configuration is useful to you, please write to autoconf@gnu.org." >&5
6247 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6248 whose name does not start with the host triplet. If you think this
6249 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6250 ac_tool_warned=yes ;;
6258 # Extract the first word of "rm", so it can be a program name with args.
6259 set dummy rm; ac_word=$2
6260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6262 if test "${ac_cv_path_RM+set}" = set; then
6263 echo $ECHO_N "(cached) $ECHO_C" >&6
6267 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274 test -z "$as_dir" && as_dir=.
6275 for ac_exec_ext in '' $ac_executable_extensions; do
6276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6277 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6285 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6290 if test -n "$RM"; then
6291 { echo "$as_me:$LINENO: result: $RM" >&5
6292 echo "${ECHO_T}$RM" >&6; }
6294 { echo "$as_me:$LINENO: result: no" >&5
6295 echo "${ECHO_T}no" >&6; }
6299 # Extract the first word of "sed", so it can be a program name with args.
6300 set dummy sed; ac_word=$2
6301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6303 if test "${ac_cv_path_SED+set}" = set; then
6304 echo $ECHO_N "(cached) $ECHO_C" >&6
6308 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315 test -z "$as_dir" && as_dir=.
6316 for ac_exec_ext in '' $ac_executable_extensions; do
6317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6318 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6326 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6331 if test -n "$SED"; then
6332 { echo "$as_me:$LINENO: result: $SED" >&5
6333 echo "${ECHO_T}$SED" >&6; }
6335 { echo "$as_me:$LINENO: result: no" >&5
6336 echo "${ECHO_T}no" >&6; }
6340 # Extract the first word of "tar", so it can be a program name with args.
6341 set dummy tar; ac_word=$2
6342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6344 if test "${ac_cv_path_TAR+set}" = set; then
6345 echo $ECHO_N "(cached) $ECHO_C" >&6
6349 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356 test -z "$as_dir" && as_dir=.
6357 for ac_exec_ext in '' $ac_executable_extensions; do
6358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6359 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6367 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6372 if test -n "$TAR"; then
6373 { echo "$as_me:$LINENO: result: $TAR" >&5
6374 echo "${ECHO_T}$TAR" >&6; }
6376 { echo "$as_me:$LINENO: result: no" >&5
6377 echo "${ECHO_T}no" >&6; }
6381 # Extract the first word of "pwd", so it can be a program name with args.
6382 set dummy pwd; ac_word=$2
6383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6385 if test "${ac_cv_path_BINPWD+set}" = set; then
6386 echo $ECHO_N "(cached) $ECHO_C" >&6
6390 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6397 test -z "$as_dir" && as_dir=.
6398 for ac_exec_ext in '' $ac_executable_extensions; do
6399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6400 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6408 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6412 BINPWD=$ac_cv_path_BINPWD
6413 if test -n "$BINPWD"; then
6414 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6415 echo "${ECHO_T}$BINPWD" >&6; }
6417 { echo "$as_me:$LINENO: result: no" >&5
6418 echo "${ECHO_T}no" >&6; }
6423 # Extract the first word of "Graphviz", so it can be a program name with args.
6424 set dummy Graphviz; ac_word=$2
6425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6427 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6428 echo $ECHO_N "(cached) $ECHO_C" >&6
6432 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439 test -z "$as_dir" && as_dir=.
6440 for ac_exec_ext in '' $ac_executable_extensions; do
6441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6442 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6450 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6454 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6455 if test -n "$GRAPHVIZ"; then
6456 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6457 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6459 { echo "$as_me:$LINENO: result: no" >&5
6460 echo "${ECHO_T}no" >&6; }
6464 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6466 cat >>confdefs.h <<\_ACEOF
6467 #define HAVE_GRAPHVIZ 1
6470 if test "$llvm_cv_os_type" = "MingW" ; then
6471 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6474 cat >>confdefs.h <<_ACEOF
6475 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6479 # Extract the first word of "dot", so it can be a program name with args.
6480 set dummy dot; ac_word=$2
6481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6483 if test "${ac_cv_path_DOT+set}" = set; then
6484 echo $ECHO_N "(cached) $ECHO_C" >&6
6488 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495 test -z "$as_dir" && as_dir=.
6496 for ac_exec_ext in '' $ac_executable_extensions; do
6497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6498 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6506 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6511 if test -n "$DOT"; then
6512 { echo "$as_me:$LINENO: result: $DOT" >&5
6513 echo "${ECHO_T}$DOT" >&6; }
6515 { echo "$as_me:$LINENO: result: no" >&5
6516 echo "${ECHO_T}no" >&6; }
6520 if test "$DOT" != "echo dot" ; then
6522 cat >>confdefs.h <<\_ACEOF
6526 if test "$llvm_cv_os_type" = "MingW" ; then
6527 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6530 cat >>confdefs.h <<_ACEOF
6531 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6535 # Extract the first word of "fdp", so it can be a program name with args.
6536 set dummy fdp; ac_word=$2
6537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6539 if test "${ac_cv_path_FDP+set}" = set; then
6540 echo $ECHO_N "(cached) $ECHO_C" >&6
6544 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6551 test -z "$as_dir" && as_dir=.
6552 for ac_exec_ext in '' $ac_executable_extensions; do
6553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6554 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6562 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6567 if test -n "$FDP"; then
6568 { echo "$as_me:$LINENO: result: $FDP" >&5
6569 echo "${ECHO_T}$FDP" >&6; }
6571 { echo "$as_me:$LINENO: result: no" >&5
6572 echo "${ECHO_T}no" >&6; }
6576 if test "$FDP" != "echo fdp" ; then
6578 cat >>confdefs.h <<\_ACEOF
6582 if test "$llvm_cv_os_type" = "MingW" ; then
6583 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6586 cat >>confdefs.h <<_ACEOF
6587 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6591 # Extract the first word of "neato", so it can be a program name with args.
6592 set dummy neato; ac_word=$2
6593 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6595 if test "${ac_cv_path_NEATO+set}" = set; then
6596 echo $ECHO_N "(cached) $ECHO_C" >&6
6600 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6607 test -z "$as_dir" && as_dir=.
6608 for ac_exec_ext in '' $ac_executable_extensions; do
6609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6610 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6618 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6622 NEATO=$ac_cv_path_NEATO
6623 if test -n "$NEATO"; then
6624 { echo "$as_me:$LINENO: result: $NEATO" >&5
6625 echo "${ECHO_T}$NEATO" >&6; }
6627 { echo "$as_me:$LINENO: result: no" >&5
6628 echo "${ECHO_T}no" >&6; }
6632 if test "$NEATO" != "echo neato" ; then
6634 cat >>confdefs.h <<\_ACEOF
6635 #define HAVE_NEATO 1
6638 if test "$llvm_cv_os_type" = "MingW" ; then
6639 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6642 cat >>confdefs.h <<_ACEOF
6643 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6647 # Extract the first word of "twopi", so it can be a program name with args.
6648 set dummy twopi; ac_word=$2
6649 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6651 if test "${ac_cv_path_TWOPI+set}" = set; then
6652 echo $ECHO_N "(cached) $ECHO_C" >&6
6656 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6663 test -z "$as_dir" && as_dir=.
6664 for ac_exec_ext in '' $ac_executable_extensions; do
6665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6666 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6674 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6678 TWOPI=$ac_cv_path_TWOPI
6679 if test -n "$TWOPI"; then
6680 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6681 echo "${ECHO_T}$TWOPI" >&6; }
6683 { echo "$as_me:$LINENO: result: no" >&5
6684 echo "${ECHO_T}no" >&6; }
6688 if test "$TWOPI" != "echo twopi" ; then
6690 cat >>confdefs.h <<\_ACEOF
6691 #define HAVE_TWOPI 1
6694 if test "$llvm_cv_os_type" = "MingW" ; then
6695 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6698 cat >>confdefs.h <<_ACEOF
6699 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6703 # Extract the first word of "circo", so it can be a program name with args.
6704 set dummy circo; ac_word=$2
6705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6707 if test "${ac_cv_path_CIRCO+set}" = set; then
6708 echo $ECHO_N "(cached) $ECHO_C" >&6
6712 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719 test -z "$as_dir" && as_dir=.
6720 for ac_exec_ext in '' $ac_executable_extensions; do
6721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6722 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6730 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6734 CIRCO=$ac_cv_path_CIRCO
6735 if test -n "$CIRCO"; then
6736 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6737 echo "${ECHO_T}$CIRCO" >&6; }
6739 { echo "$as_me:$LINENO: result: no" >&5
6740 echo "${ECHO_T}no" >&6; }
6744 if test "$CIRCO" != "echo circo" ; then
6746 cat >>confdefs.h <<\_ACEOF
6747 #define HAVE_CIRCO 1
6750 if test "$llvm_cv_os_type" = "MingW" ; then
6751 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6754 cat >>confdefs.h <<_ACEOF
6755 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6759 for ac_prog in gv gsview32
6761 # Extract the first word of "$ac_prog", so it can be a program name with args.
6762 set dummy $ac_prog; ac_word=$2
6763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6765 if test "${ac_cv_path_GV+set}" = set; then
6766 echo $ECHO_N "(cached) $ECHO_C" >&6
6770 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777 test -z "$as_dir" && as_dir=.
6778 for ac_exec_ext in '' $ac_executable_extensions; do
6779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6780 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6792 if test -n "$GV"; then
6793 { echo "$as_me:$LINENO: result: $GV" >&5
6794 echo "${ECHO_T}$GV" >&6; }
6796 { echo "$as_me:$LINENO: result: no" >&5
6797 echo "${ECHO_T}no" >&6; }
6801 test -n "$GV" && break
6803 test -n "$GV" || GV="echo gv"
6805 if test "$GV" != "echo gv" ; then
6807 cat >>confdefs.h <<\_ACEOF
6811 if test "$llvm_cv_os_type" = "MingW" ; then
6812 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6815 cat >>confdefs.h <<_ACEOF
6816 #define LLVM_PATH_GV "$GV${EXEEXT}"
6820 # Extract the first word of "dotty", so it can be a program name with args.
6821 set dummy dotty; ac_word=$2
6822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6824 if test "${ac_cv_path_DOTTY+set}" = set; then
6825 echo $ECHO_N "(cached) $ECHO_C" >&6
6829 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836 test -z "$as_dir" && as_dir=.
6837 for ac_exec_ext in '' $ac_executable_extensions; do
6838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6839 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6847 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6851 DOTTY=$ac_cv_path_DOTTY
6852 if test -n "$DOTTY"; then
6853 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6854 echo "${ECHO_T}$DOTTY" >&6; }
6856 { echo "$as_me:$LINENO: result: no" >&5
6857 echo "${ECHO_T}no" >&6; }
6861 if test "$DOTTY" != "echo dotty" ; then
6863 cat >>confdefs.h <<\_ACEOF
6864 #define HAVE_DOTTY 1
6867 if test "$llvm_cv_os_type" = "MingW" ; then
6868 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6871 cat >>confdefs.h <<_ACEOF
6872 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6876 # Extract the first word of "xdot.py", so it can be a program name with args.
6877 set dummy xdot.py; ac_word=$2
6878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6880 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6881 echo $ECHO_N "(cached) $ECHO_C" >&6
6885 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6892 test -z "$as_dir" && as_dir=.
6893 for ac_exec_ext in '' $ac_executable_extensions; do
6894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6895 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6903 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6907 XDOT_PY=$ac_cv_path_XDOT_PY
6908 if test -n "$XDOT_PY"; then
6909 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6910 echo "${ECHO_T}$XDOT_PY" >&6; }
6912 { echo "$as_me:$LINENO: result: no" >&5
6913 echo "${ECHO_T}no" >&6; }
6917 if test "$XDOT_PY" != "echo xdot.py" ; then
6919 cat >>confdefs.h <<\_ACEOF
6920 #define HAVE_XDOT_PY 1
6923 if test "$llvm_cv_os_type" = "MingW" ; then
6924 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6927 cat >>confdefs.h <<_ACEOF
6928 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6934 # Extract the first word of "perl", so it can be a program name with args.
6935 set dummy perl; ac_word=$2
6936 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6938 if test "${ac_cv_path_PERL+set}" = set; then
6939 echo $ECHO_N "(cached) $ECHO_C" >&6
6943 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950 test -z "$as_dir" && as_dir=.
6951 for ac_exec_ext in '' $ac_executable_extensions; do
6952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6953 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6961 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6965 PERL=$ac_cv_path_PERL
6966 if test -n "$PERL"; then
6967 { echo "$as_me:$LINENO: result: $PERL" >&5
6968 echo "${ECHO_T}$PERL" >&6; }
6970 { echo "$as_me:$LINENO: result: no" >&5
6971 echo "${ECHO_T}no" >&6; }
6975 if test "$PERL" != "none"; then
6976 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6977 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
6978 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
6979 { echo "$as_me:$LINENO: result: yes" >&5
6980 echo "${ECHO_T}yes" >&6; }
6983 { echo "$as_me:$LINENO: result: not found" >&5
6984 echo "${ECHO_T}not found" >&6; }
6989 if test x"$PERL" = xnone; then
6992 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6993 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6994 { (exit 1); exit 1; }; }
7000 # Find a good install program. We prefer a C program (faster),
7001 # so one script is as good as another. But avoid the broken or
7002 # incompatible versions:
7003 # SysV /etc/install, /usr/sbin/install
7004 # SunOS /usr/etc/install
7005 # IRIX /sbin/install
7007 # AmigaOS /C/install, which installs bootblocks on floppy discs
7008 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7009 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7010 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7011 # OS/2's system install, which has a completely different semantic
7012 # ./install, which can be erroneously created by make from ./install.sh.
7013 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7014 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7015 if test -z "$INSTALL"; then
7016 if test "${ac_cv_path_install+set}" = set; then
7017 echo $ECHO_N "(cached) $ECHO_C" >&6
7019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7023 test -z "$as_dir" && as_dir=.
7024 # Account for people who put trailing slashes in PATH elements.
7026 ./ | .// | /cC/* | \
7027 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7028 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7031 # OSF1 and SCO ODT 3.0 have their own names for install.
7032 # Don't use installbsd from OSF since it installs stuff as root
7034 for ac_prog in ginstall scoinst install; do
7035 for ac_exec_ext in '' $ac_executable_extensions; do
7036 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7037 if test $ac_prog = install &&
7038 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7039 # AIX install. It has an incompatible calling convention.
7041 elif test $ac_prog = install &&
7042 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7043 # program-specific install script used by HP pwplus--don't use.
7046 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7059 if test "${ac_cv_path_install+set}" = set; then
7060 INSTALL=$ac_cv_path_install
7062 # As a last resort, use the slow shell script. Don't cache a
7063 # value for INSTALL within a source directory, because that will
7064 # break other packages using the cache if that directory is
7065 # removed, or if the value is a relative name.
7066 INSTALL=$ac_install_sh
7069 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7070 echo "${ECHO_T}$INSTALL" >&6; }
7072 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7073 # It thinks the first close brace ends the variable substitution.
7074 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7076 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7078 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7081 [\\/$]* | ?:[\\/]* ) ;;
7082 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7085 # Extract the first word of "bzip2", so it can be a program name with args.
7086 set dummy bzip2; ac_word=$2
7087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7089 if test "${ac_cv_path_BZIP2+set}" = set; then
7090 echo $ECHO_N "(cached) $ECHO_C" >&6
7094 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7101 test -z "$as_dir" && as_dir=.
7102 for ac_exec_ext in '' $ac_executable_extensions; do
7103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7104 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7115 BZIP2=$ac_cv_path_BZIP2
7116 if test -n "$BZIP2"; then
7117 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7118 echo "${ECHO_T}$BZIP2" >&6; }
7120 { echo "$as_me:$LINENO: result: no" >&5
7121 echo "${ECHO_T}no" >&6; }
7125 # Extract the first word of "cat", so it can be a program name with args.
7126 set dummy cat; ac_word=$2
7127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7129 if test "${ac_cv_path_CAT+set}" = set; then
7130 echo $ECHO_N "(cached) $ECHO_C" >&6
7134 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7141 test -z "$as_dir" && as_dir=.
7142 for ac_exec_ext in '' $ac_executable_extensions; do
7143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7144 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7156 if test -n "$CAT"; then
7157 { echo "$as_me:$LINENO: result: $CAT" >&5
7158 echo "${ECHO_T}$CAT" >&6; }
7160 { echo "$as_me:$LINENO: result: no" >&5
7161 echo "${ECHO_T}no" >&6; }
7165 # Extract the first word of "doxygen", so it can be a program name with args.
7166 set dummy doxygen; ac_word=$2
7167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7169 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7170 echo $ECHO_N "(cached) $ECHO_C" >&6
7174 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7181 test -z "$as_dir" && as_dir=.
7182 for ac_exec_ext in '' $ac_executable_extensions; do
7183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7184 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7195 DOXYGEN=$ac_cv_path_DOXYGEN
7196 if test -n "$DOXYGEN"; then
7197 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7198 echo "${ECHO_T}$DOXYGEN" >&6; }
7200 { echo "$as_me:$LINENO: result: no" >&5
7201 echo "${ECHO_T}no" >&6; }
7205 # Extract the first word of "groff", so it can be a program name with args.
7206 set dummy groff; ac_word=$2
7207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7209 if test "${ac_cv_path_GROFF+set}" = set; then
7210 echo $ECHO_N "(cached) $ECHO_C" >&6
7214 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7221 test -z "$as_dir" && as_dir=.
7222 for ac_exec_ext in '' $ac_executable_extensions; do
7223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7224 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7235 GROFF=$ac_cv_path_GROFF
7236 if test -n "$GROFF"; then
7237 { echo "$as_me:$LINENO: result: $GROFF" >&5
7238 echo "${ECHO_T}$GROFF" >&6; }
7240 { echo "$as_me:$LINENO: result: no" >&5
7241 echo "${ECHO_T}no" >&6; }
7245 # Extract the first word of "gzip", so it can be a program name with args.
7246 set dummy gzip; ac_word=$2
7247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7249 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7250 echo $ECHO_N "(cached) $ECHO_C" >&6
7254 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261 test -z "$as_dir" && as_dir=.
7262 for ac_exec_ext in '' $ac_executable_extensions; do
7263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7264 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7275 GZIPBIN=$ac_cv_path_GZIPBIN
7276 if test -n "$GZIPBIN"; then
7277 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7278 echo "${ECHO_T}$GZIPBIN" >&6; }
7280 { echo "$as_me:$LINENO: result: no" >&5
7281 echo "${ECHO_T}no" >&6; }
7285 # Extract the first word of "pod2html", so it can be a program name with args.
7286 set dummy pod2html; ac_word=$2
7287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7289 if test "${ac_cv_path_POD2HTML+set}" = set; then
7290 echo $ECHO_N "(cached) $ECHO_C" >&6
7294 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301 test -z "$as_dir" && as_dir=.
7302 for ac_exec_ext in '' $ac_executable_extensions; do
7303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7304 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7315 POD2HTML=$ac_cv_path_POD2HTML
7316 if test -n "$POD2HTML"; then
7317 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7318 echo "${ECHO_T}$POD2HTML" >&6; }
7320 { echo "$as_me:$LINENO: result: no" >&5
7321 echo "${ECHO_T}no" >&6; }
7325 # Extract the first word of "pod2man", so it can be a program name with args.
7326 set dummy pod2man; ac_word=$2
7327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7329 if test "${ac_cv_path_POD2MAN+set}" = set; then
7330 echo $ECHO_N "(cached) $ECHO_C" >&6
7334 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7341 test -z "$as_dir" && as_dir=.
7342 for ac_exec_ext in '' $ac_executable_extensions; do
7343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7344 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7355 POD2MAN=$ac_cv_path_POD2MAN
7356 if test -n "$POD2MAN"; then
7357 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7358 echo "${ECHO_T}$POD2MAN" >&6; }
7360 { echo "$as_me:$LINENO: result: no" >&5
7361 echo "${ECHO_T}no" >&6; }
7365 # Extract the first word of "pdfroff", so it can be a program name with args.
7366 set dummy pdfroff; ac_word=$2
7367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7369 if test "${ac_cv_path_PDFROFF+set}" = set; then
7370 echo $ECHO_N "(cached) $ECHO_C" >&6
7374 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381 test -z "$as_dir" && as_dir=.
7382 for ac_exec_ext in '' $ac_executable_extensions; do
7383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7384 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7395 PDFROFF=$ac_cv_path_PDFROFF
7396 if test -n "$PDFROFF"; then
7397 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7398 echo "${ECHO_T}$PDFROFF" >&6; }
7400 { echo "$as_me:$LINENO: result: no" >&5
7401 echo "${ECHO_T}no" >&6; }
7405 # Extract the first word of "runtest", so it can be a program name with args.
7406 set dummy runtest; ac_word=$2
7407 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7409 if test "${ac_cv_path_RUNTEST+set}" = set; then
7410 echo $ECHO_N "(cached) $ECHO_C" >&6
7414 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7421 test -z "$as_dir" && as_dir=.
7422 for ac_exec_ext in '' $ac_executable_extensions; do
7423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7424 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7435 RUNTEST=$ac_cv_path_RUNTEST
7436 if test -n "$RUNTEST"; then
7437 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7438 echo "${ECHO_T}$RUNTEST" >&6; }
7440 { echo "$as_me:$LINENO: result: no" >&5
7441 echo "${ECHO_T}no" >&6; }
7447 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7448 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7450 # Check whether --with-tclinclude was given.
7451 if test "${with_tclinclude+set}" = set; then
7452 withval=$with_tclinclude; with_tclinclude=${withval}
7457 if test "${ac_cv_path_tclsh+set}" = set; then
7458 echo $ECHO_N "(cached) $ECHO_C" >&6
7461 if test x"${with_tclinclude}" != x ; then
7462 if test -f ${with_tclinclude}/tclsh ; then
7463 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7464 elif test -f ${with_tclinclude}/src/tclsh ; then
7465 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7467 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7468 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7469 { (exit 1); exit 1; }; }
7475 if test x"${ac_cv_path_tclsh}" = x ; then
7476 { echo "$as_me:$LINENO: result: none" >&5
7477 echo "${ECHO_T}none" >&6; }
7478 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
7480 # Extract the first word of "$ac_prog", so it can be a program name with args.
7481 set dummy $ac_prog; ac_word=$2
7482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7484 if test "${ac_cv_path_TCLSH+set}" = set; then
7485 echo $ECHO_N "(cached) $ECHO_C" >&6
7489 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7496 test -z "$as_dir" && as_dir=.
7497 for ac_exec_ext in '' $ac_executable_extensions; do
7498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7499 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7510 TCLSH=$ac_cv_path_TCLSH
7511 if test -n "$TCLSH"; then
7512 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7513 echo "${ECHO_T}$TCLSH" >&6; }
7515 { echo "$as_me:$LINENO: result: no" >&5
7516 echo "${ECHO_T}no" >&6; }
7520 test -n "$TCLSH" && break
7523 if test x"${TCLSH}" = x ; then
7524 ac_cv_path_tclsh='';
7526 ac_cv_path_tclsh="${TCLSH}";
7529 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7530 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7531 TCLSH="${ac_cv_path_tclsh}"
7535 # Extract the first word of "zip", so it can be a program name with args.
7536 set dummy zip; ac_word=$2
7537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7539 if test "${ac_cv_path_ZIP+set}" = set; then
7540 echo $ECHO_N "(cached) $ECHO_C" >&6
7544 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7551 test -z "$as_dir" && as_dir=.
7552 for ac_exec_ext in '' $ac_executable_extensions; do
7553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7554 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7566 if test -n "$ZIP"; then
7567 { echo "$as_me:$LINENO: result: $ZIP" >&5
7568 echo "${ECHO_T}$ZIP" >&6; }
7570 { echo "$as_me:$LINENO: result: no" >&5
7571 echo "${ECHO_T}no" >&6; }
7575 for ac_prog in ocamlc
7577 # Extract the first word of "$ac_prog", so it can be a program name with args.
7578 set dummy $ac_prog; ac_word=$2
7579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7581 if test "${ac_cv_path_OCAMLC+set}" = set; then
7582 echo $ECHO_N "(cached) $ECHO_C" >&6
7586 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7593 test -z "$as_dir" && as_dir=.
7594 for ac_exec_ext in '' $ac_executable_extensions; do
7595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7596 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7607 OCAMLC=$ac_cv_path_OCAMLC
7608 if test -n "$OCAMLC"; then
7609 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7610 echo "${ECHO_T}$OCAMLC" >&6; }
7612 { echo "$as_me:$LINENO: result: no" >&5
7613 echo "${ECHO_T}no" >&6; }
7617 test -n "$OCAMLC" && break
7620 for ac_prog in ocamlopt
7622 # Extract the first word of "$ac_prog", so it can be a program name with args.
7623 set dummy $ac_prog; ac_word=$2
7624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7626 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7627 echo $ECHO_N "(cached) $ECHO_C" >&6
7631 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7638 test -z "$as_dir" && as_dir=.
7639 for ac_exec_ext in '' $ac_executable_extensions; do
7640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7641 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7652 OCAMLOPT=$ac_cv_path_OCAMLOPT
7653 if test -n "$OCAMLOPT"; then
7654 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7655 echo "${ECHO_T}$OCAMLOPT" >&6; }
7657 { echo "$as_me:$LINENO: result: no" >&5
7658 echo "${ECHO_T}no" >&6; }
7662 test -n "$OCAMLOPT" && break
7665 for ac_prog in ocamldep
7667 # Extract the first word of "$ac_prog", so it can be a program name with args.
7668 set dummy $ac_prog; ac_word=$2
7669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7671 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7672 echo $ECHO_N "(cached) $ECHO_C" >&6
7676 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7683 test -z "$as_dir" && as_dir=.
7684 for ac_exec_ext in '' $ac_executable_extensions; do
7685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7686 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7697 OCAMLDEP=$ac_cv_path_OCAMLDEP
7698 if test -n "$OCAMLDEP"; then
7699 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7700 echo "${ECHO_T}$OCAMLDEP" >&6; }
7702 { echo "$as_me:$LINENO: result: no" >&5
7703 echo "${ECHO_T}no" >&6; }
7707 test -n "$OCAMLDEP" && break
7710 for ac_prog in ocamldoc
7712 # Extract the first word of "$ac_prog", so it can be a program name with args.
7713 set dummy $ac_prog; ac_word=$2
7714 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7716 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7717 echo $ECHO_N "(cached) $ECHO_C" >&6
7721 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728 test -z "$as_dir" && as_dir=.
7729 for ac_exec_ext in '' $ac_executable_extensions; do
7730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7731 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7742 OCAMLDOC=$ac_cv_path_OCAMLDOC
7743 if test -n "$OCAMLDOC"; then
7744 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7745 echo "${ECHO_T}$OCAMLDOC" >&6; }
7747 { echo "$as_me:$LINENO: result: no" >&5
7748 echo "${ECHO_T}no" >&6; }
7752 test -n "$OCAMLDOC" && break
7755 for ac_prog in gas as
7757 # Extract the first word of "$ac_prog", so it can be a program name with args.
7758 set dummy $ac_prog; ac_word=$2
7759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7761 if test "${ac_cv_path_GAS+set}" = set; then
7762 echo $ECHO_N "(cached) $ECHO_C" >&6
7766 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7773 test -z "$as_dir" && as_dir=.
7774 for ac_exec_ext in '' $ac_executable_extensions; do
7775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7776 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7788 if test -n "$GAS"; then
7789 { echo "$as_me:$LINENO: result: $GAS" >&5
7790 echo "${ECHO_T}$GAS" >&6; }
7792 { echo "$as_me:$LINENO: result: no" >&5
7793 echo "${ECHO_T}no" >&6; }
7797 test -n "$GAS" && break
7801 { echo "$as_me:$LINENO: checking for linker version" >&5
7802 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7803 if test "${llvm_cv_link_version+set}" = set; then
7804 echo $ECHO_N "(cached) $ECHO_C" >&6
7807 version_string="$(ld -v 2>&1 | head -1)"
7810 if (echo "$version_string" | grep -q "ld64"); then
7811 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7813 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7817 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7818 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7820 cat >>confdefs.h <<_ACEOF
7821 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7826 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7827 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7828 if test "${llvm_cv_link_use_r+set}" = set; then
7829 echo $ECHO_N "(cached) $ECHO_C" >&6
7832 ac_cpp='$CPP $CPPFLAGS'
7833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7838 CFLAGS="$CFLAGS -Wl,-R."
7839 cat >conftest.$ac_ext <<_ACEOF
7842 cat confdefs.h >>conftest.$ac_ext
7843 cat >>conftest.$ac_ext <<_ACEOF
7844 /* end confdefs.h. */
7854 rm -f conftest.$ac_objext conftest$ac_exeext
7855 if { (ac_try="$ac_link"
7857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7858 *) ac_try_echo=$ac_try;;
7860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7861 (eval "$ac_link") 2>conftest.er1
7863 grep -v '^ *+' conftest.er1 >conftest.err
7865 cat conftest.err >&5
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); } &&
7868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7869 { (case "(($ac_try" in
7870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7871 *) ac_try_echo=$ac_try;;
7873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7874 (eval "$ac_try") 2>&5
7876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877 (exit $ac_status); }; } &&
7878 { ac_try='test -s conftest$ac_exeext'
7879 { (case "(($ac_try" in
7880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7881 *) ac_try_echo=$ac_try;;
7883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7884 (eval "$ac_try") 2>&5
7886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887 (exit $ac_status); }; }; then
7888 llvm_cv_link_use_r=yes
7890 echo "$as_me: failed program was:" >&5
7891 sed 's/^/| /' conftest.$ac_ext >&5
7893 llvm_cv_link_use_r=no
7896 rm -f core conftest.err conftest.$ac_objext \
7897 conftest$ac_exeext conftest.$ac_ext
7900 ac_cpp='$CPP $CPPFLAGS'
7901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7907 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7908 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7909 if test "$llvm_cv_link_use_r" = yes ; then
7911 cat >>confdefs.h <<\_ACEOF
7912 #define HAVE_LINK_R 1
7918 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7919 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7920 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7921 echo $ECHO_N "(cached) $ECHO_C" >&6
7924 ac_cpp='$CPP $CPPFLAGS'
7925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7930 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7931 cat >conftest.$ac_ext <<_ACEOF
7934 cat confdefs.h >>conftest.$ac_ext
7935 cat >>conftest.$ac_ext <<_ACEOF
7936 /* end confdefs.h. */
7946 rm -f conftest.$ac_objext conftest$ac_exeext
7947 if { (ac_try="$ac_link"
7949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7950 *) ac_try_echo=$ac_try;;
7952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7953 (eval "$ac_link") 2>conftest.er1
7955 grep -v '^ *+' conftest.er1 >conftest.err
7957 cat conftest.err >&5
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); } &&
7960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7961 { (case "(($ac_try" in
7962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7963 *) ac_try_echo=$ac_try;;
7965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7966 (eval "$ac_try") 2>&5
7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); }; } &&
7970 { ac_try='test -s conftest$ac_exeext'
7971 { (case "(($ac_try" in
7972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7973 *) ac_try_echo=$ac_try;;
7975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7976 (eval "$ac_try") 2>&5
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); }; }; then
7980 llvm_cv_link_use_export_dynamic=yes
7982 echo "$as_me: failed program was:" >&5
7983 sed 's/^/| /' conftest.$ac_ext >&5
7985 llvm_cv_link_use_export_dynamic=no
7988 rm -f core conftest.err conftest.$ac_objext \
7989 conftest$ac_exeext conftest.$ac_ext
7992 ac_cpp='$CPP $CPPFLAGS'
7993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7999 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8000 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8001 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8003 cat >>confdefs.h <<\_ACEOF
8004 #define HAVE_LINK_EXPORT_DYNAMIC 1
8010 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8011 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8012 if test "${llvm_cv_link_use_version_script+set}" = set; then
8013 echo $ECHO_N "(cached) $ECHO_C" >&6
8016 ac_cpp='$CPP $CPPFLAGS'
8017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8023 # The following code is from the autoconf manual,
8024 # "11.13: Limitations of Usual Tools".
8025 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8026 # Use mktemp if possible; otherwise fall back on mkdir,
8027 # with $RANDOM to make collisions less likely.
8031 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8033 test -n "$tmp" && test -d "$tmp"
8035 tmp=$TMPDIR/foo$$-$RANDOM
8036 (umask 077 && mkdir "$tmp")
8039 echo "{" > "$tmp/export.map"
8040 echo " global: main;" >> "$tmp/export.map"
8041 echo " local: *;" >> "$tmp/export.map"
8042 echo "};" >> "$tmp/export.map"
8044 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8045 cat >conftest.$ac_ext <<_ACEOF
8048 cat confdefs.h >>conftest.$ac_ext
8049 cat >>conftest.$ac_ext <<_ACEOF
8050 /* end confdefs.h. */
8060 rm -f conftest.$ac_objext conftest$ac_exeext
8061 if { (ac_try="$ac_link"
8063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8064 *) ac_try_echo=$ac_try;;
8066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8067 (eval "$ac_link") 2>conftest.er1
8069 grep -v '^ *+' conftest.er1 >conftest.err
8071 cat conftest.err >&5
8072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073 (exit $ac_status); } &&
8074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8075 { (case "(($ac_try" in
8076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8077 *) ac_try_echo=$ac_try;;
8079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8080 (eval "$ac_try") 2>&5
8082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083 (exit $ac_status); }; } &&
8084 { ac_try='test -s conftest$ac_exeext'
8085 { (case "(($ac_try" in
8086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8087 *) ac_try_echo=$ac_try;;
8089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8090 (eval "$ac_try") 2>&5
8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); }; }; then
8094 llvm_cv_link_use_version_script=yes
8096 echo "$as_me: failed program was:" >&5
8097 sed 's/^/| /' conftest.$ac_ext >&5
8099 llvm_cv_link_use_version_script=no
8102 rm -f core conftest.err conftest.$ac_objext \
8103 conftest$ac_exeext conftest.$ac_ext
8104 rm "$tmp/export.map"
8108 ac_cpp='$CPP $CPPFLAGS'
8109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8115 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8116 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8117 if test "$llvm_cv_link_use_version_script" = yes ; then
8118 HAVE_LINK_VERSION_SCRIPT=1
8125 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8126 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8127 if test "${ac_cv_c_const+set}" = set; then
8128 echo $ECHO_N "(cached) $ECHO_C" >&6
8130 cat >conftest.$ac_ext <<_ACEOF
8133 cat confdefs.h >>conftest.$ac_ext
8134 cat >>conftest.$ac_ext <<_ACEOF
8135 /* end confdefs.h. */
8140 /* FIXME: Include the comments suggested by Paul. */
8142 /* Ultrix mips cc rejects this. */
8143 typedef int charset[2];
8145 /* SunOS 4.1.1 cc rejects this. */
8146 char const *const *ccp;
8148 /* NEC SVR4.0.2 mips cc rejects this. */
8149 struct point {int x, y;};
8150 static struct point const zero = {0,0};
8151 /* AIX XL C 1.02.0.0 rejects this.
8152 It does not let you subtract one const X* pointer from another in
8153 an arm of an if-expression whose if-part is not a constant
8155 const char *g = "string";
8156 ccp = &g + (g ? g-g : 0);
8157 /* HPUX 7.0 cc rejects these. */
8160 ccp = (char const *const *) p;
8161 { /* SCO 3.2v4 cc rejects this. */
8163 char const *s = 0 ? (char *) 0 : (char const *) 0;
8168 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8170 const int *foo = &x[0];
8173 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8174 typedef const int *iptr;
8178 { /* AIX XL C 1.02.0.0 rejects this saying
8179 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8180 struct s { int j; const int *ap[3]; };
8181 struct s *b; b->j = 5;
8183 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8187 return !x[0] && !zero.x;
8194 rm -f conftest.$ac_objext
8195 if { (ac_try="$ac_compile"
8197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8198 *) ac_try_echo=$ac_try;;
8200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8201 (eval "$ac_compile") 2>conftest.er1
8203 grep -v '^ *+' conftest.er1 >conftest.err
8205 cat conftest.err >&5
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); } &&
8208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8209 { (case "(($ac_try" in
8210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8211 *) ac_try_echo=$ac_try;;
8213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8214 (eval "$ac_try") 2>&5
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); }; } &&
8218 { ac_try='test -s conftest.$ac_objext'
8219 { (case "(($ac_try" in
8220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8221 *) ac_try_echo=$ac_try;;
8223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8224 (eval "$ac_try") 2>&5
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); }; }; then
8230 echo "$as_me: failed program was:" >&5
8231 sed 's/^/| /' conftest.$ac_ext >&5
8236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8238 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8239 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8240 if test $ac_cv_c_const = no; then
8242 cat >>confdefs.h <<\_ACEOF
8254 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8255 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8256 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8257 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8259 echo $ECHO_N "(cached) $ECHO_C" >&6
8261 cat >conftest.$ac_ext <<_ACEOF
8264 cat confdefs.h >>conftest.$ac_ext
8265 cat >>conftest.$ac_ext <<_ACEOF
8266 /* end confdefs.h. */
8267 #include <sys/types.h>
8279 rm -f conftest.$ac_objext
8280 if { (ac_try="$ac_compile"
8282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8283 *) ac_try_echo=$ac_try;;
8285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8286 (eval "$ac_compile") 2>conftest.er1
8288 grep -v '^ *+' conftest.er1 >conftest.err
8290 cat conftest.err >&5
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); } &&
8293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8294 { (case "(($ac_try" in
8295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8296 *) ac_try_echo=$ac_try;;
8298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8299 (eval "$ac_try") 2>&5
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); }; } &&
8303 { ac_try='test -s conftest.$ac_objext'
8304 { (case "(($ac_try" in
8305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8306 *) ac_try_echo=$ac_try;;
8308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8309 (eval "$ac_try") 2>&5
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); }; }; then
8313 eval "$as_ac_Header=yes"
8315 echo "$as_me: failed program was:" >&5
8316 sed 's/^/| /' conftest.$ac_ext >&5
8318 eval "$as_ac_Header=no"
8321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8323 ac_res=`eval echo '${'$as_ac_Header'}'`
8324 { echo "$as_me:$LINENO: result: $ac_res" >&5
8325 echo "${ECHO_T}$ac_res" >&6; }
8326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8327 cat >>confdefs.h <<_ACEOF
8328 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8331 ac_header_dirent=$ac_hdr; break
8335 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8336 if test $ac_header_dirent = dirent.h; then
8337 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8338 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8339 if test "${ac_cv_search_opendir+set}" = set; then
8340 echo $ECHO_N "(cached) $ECHO_C" >&6
8342 ac_func_search_save_LIBS=$LIBS
8343 cat >conftest.$ac_ext <<_ACEOF
8346 cat confdefs.h >>conftest.$ac_ext
8347 cat >>conftest.$ac_ext <<_ACEOF
8348 /* end confdefs.h. */
8350 /* Override any GCC internal prototype to avoid an error.
8351 Use char because int might match the return type of a GCC
8352 builtin and then its argument prototype would still apply. */
8365 for ac_lib in '' dir; do
8366 if test -z "$ac_lib"; then
8367 ac_res="none required"
8370 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8372 rm -f conftest.$ac_objext conftest$ac_exeext
8373 if { (ac_try="$ac_link"
8375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8376 *) ac_try_echo=$ac_try;;
8378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8379 (eval "$ac_link") 2>conftest.er1
8381 grep -v '^ *+' conftest.er1 >conftest.err
8383 cat conftest.err >&5
8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); } &&
8386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8387 { (case "(($ac_try" in
8388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8389 *) ac_try_echo=$ac_try;;
8391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8392 (eval "$ac_try") 2>&5
8394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395 (exit $ac_status); }; } &&
8396 { ac_try='test -s conftest$ac_exeext'
8397 { (case "(($ac_try" in
8398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8399 *) ac_try_echo=$ac_try;;
8401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8402 (eval "$ac_try") 2>&5
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); }; }; then
8406 ac_cv_search_opendir=$ac_res
8408 echo "$as_me: failed program was:" >&5
8409 sed 's/^/| /' conftest.$ac_ext >&5
8414 rm -f core conftest.err conftest.$ac_objext \
8416 if test "${ac_cv_search_opendir+set}" = set; then
8420 if test "${ac_cv_search_opendir+set}" = set; then
8423 ac_cv_search_opendir=no
8426 LIBS=$ac_func_search_save_LIBS
8428 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8429 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8430 ac_res=$ac_cv_search_opendir
8431 if test "$ac_res" != no; then
8432 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8437 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8438 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8439 if test "${ac_cv_search_opendir+set}" = set; then
8440 echo $ECHO_N "(cached) $ECHO_C" >&6
8442 ac_func_search_save_LIBS=$LIBS
8443 cat >conftest.$ac_ext <<_ACEOF
8446 cat confdefs.h >>conftest.$ac_ext
8447 cat >>conftest.$ac_ext <<_ACEOF
8448 /* end confdefs.h. */
8450 /* Override any GCC internal prototype to avoid an error.
8451 Use char because int might match the return type of a GCC
8452 builtin and then its argument prototype would still apply. */
8465 for ac_lib in '' x; do
8466 if test -z "$ac_lib"; then
8467 ac_res="none required"
8470 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8472 rm -f conftest.$ac_objext conftest$ac_exeext
8473 if { (ac_try="$ac_link"
8475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8476 *) ac_try_echo=$ac_try;;
8478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8479 (eval "$ac_link") 2>conftest.er1
8481 grep -v '^ *+' conftest.er1 >conftest.err
8483 cat conftest.err >&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); } &&
8486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8487 { (case "(($ac_try" in
8488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8489 *) ac_try_echo=$ac_try;;
8491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8492 (eval "$ac_try") 2>&5
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); }; } &&
8496 { ac_try='test -s conftest$ac_exeext'
8497 { (case "(($ac_try" in
8498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8499 *) ac_try_echo=$ac_try;;
8501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8502 (eval "$ac_try") 2>&5
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); }; }; then
8506 ac_cv_search_opendir=$ac_res
8508 echo "$as_me: failed program was:" >&5
8509 sed 's/^/| /' conftest.$ac_ext >&5
8514 rm -f core conftest.err conftest.$ac_objext \
8516 if test "${ac_cv_search_opendir+set}" = set; then
8520 if test "${ac_cv_search_opendir+set}" = set; then
8523 ac_cv_search_opendir=no
8526 LIBS=$ac_func_search_save_LIBS
8528 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8529 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8530 ac_res=$ac_cv_search_opendir
8531 if test "$ac_res" != no; then
8532 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8539 for ac_header in dlfcn.h
8541 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8543 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8546 echo $ECHO_N "(cached) $ECHO_C" >&6
8548 ac_res=`eval echo '${'$as_ac_Header'}'`
8549 { echo "$as_me:$LINENO: result: $ac_res" >&5
8550 echo "${ECHO_T}$ac_res" >&6; }
8552 # Is the header compilable?
8553 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8554 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8555 cat >conftest.$ac_ext <<_ACEOF
8558 cat confdefs.h >>conftest.$ac_ext
8559 cat >>conftest.$ac_ext <<_ACEOF
8560 /* end confdefs.h. */
8561 $ac_includes_default
8562 #include <$ac_header>
8564 rm -f conftest.$ac_objext
8565 if { (ac_try="$ac_compile"
8567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8568 *) ac_try_echo=$ac_try;;
8570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8571 (eval "$ac_compile") 2>conftest.er1
8573 grep -v '^ *+' conftest.er1 >conftest.err
8575 cat conftest.err >&5
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); } &&
8578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8579 { (case "(($ac_try" in
8580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8581 *) ac_try_echo=$ac_try;;
8583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8584 (eval "$ac_try") 2>&5
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); }; } &&
8588 { ac_try='test -s conftest.$ac_objext'
8589 { (case "(($ac_try" in
8590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8591 *) ac_try_echo=$ac_try;;
8593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8594 (eval "$ac_try") 2>&5
8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); }; }; then
8598 ac_header_compiler=yes
8600 echo "$as_me: failed program was:" >&5
8601 sed 's/^/| /' conftest.$ac_ext >&5
8603 ac_header_compiler=no
8606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8607 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8608 echo "${ECHO_T}$ac_header_compiler" >&6; }
8610 # Is the header present?
8611 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8612 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8613 cat >conftest.$ac_ext <<_ACEOF
8616 cat confdefs.h >>conftest.$ac_ext
8617 cat >>conftest.$ac_ext <<_ACEOF
8618 /* end confdefs.h. */
8619 #include <$ac_header>
8621 if { (ac_try="$ac_cpp conftest.$ac_ext"
8623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8624 *) ac_try_echo=$ac_try;;
8626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8629 grep -v '^ *+' conftest.er1 >conftest.err
8631 cat conftest.err >&5
8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 (exit $ac_status); } >/dev/null; then
8634 if test -s conftest.err; then
8635 ac_cpp_err=$ac_c_preproc_warn_flag
8636 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8643 if test -z "$ac_cpp_err"; then
8644 ac_header_preproc=yes
8646 echo "$as_me: failed program was:" >&5
8647 sed 's/^/| /' conftest.$ac_ext >&5
8649 ac_header_preproc=no
8652 rm -f conftest.err conftest.$ac_ext
8653 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8654 echo "${ECHO_T}$ac_header_preproc" >&6; }
8656 # So? What about this header?
8657 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8659 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8660 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8661 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8662 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8663 ac_header_preproc=yes
8666 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8667 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8668 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8669 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8670 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8671 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8672 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8673 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8674 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8675 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8676 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8677 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8679 ## ----------------------------------- ##
8680 ## Report this to llvmbugs@cs.uiuc.edu ##
8681 ## ----------------------------------- ##
8683 ) | sed "s/^/$as_me: WARNING: /" >&2
8686 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8689 echo $ECHO_N "(cached) $ECHO_C" >&6
8691 eval "$as_ac_Header=\$ac_header_preproc"
8693 ac_res=`eval echo '${'$as_ac_Header'}'`
8694 { echo "$as_me:$LINENO: result: $ac_res" >&5
8695 echo "${ECHO_T}$ac_res" >&6; }
8698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8699 cat >>confdefs.h <<_ACEOF
8700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8707 # Check whether --enable-ltdl-install was given.
8708 if test "${enable_ltdl_install+set}" = set; then
8709 enableval=$enable_ltdl_install;
8715 if test x"${enable_ltdl_install-no}" != xno; then
8717 INSTALL_LTDL_FALSE='#'
8719 INSTALL_LTDL_TRUE='#'
8725 if test x"${enable_ltdl_convenience-no}" != xno; then
8726 CONVENIENCE_LTDL_TRUE=
8727 CONVENIENCE_LTDL_FALSE='#'
8729 CONVENIENCE_LTDL_TRUE='#'
8730 CONVENIENCE_LTDL_FALSE=
8734 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8735 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8737 libname_spec='lib$name'
8745 shlibpath_overrides_runpath=unknown
8747 dynamic_linker="$host_os ld.so"
8748 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8749 if test "$GCC" = yes; then
8750 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8751 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8752 # if the path contains ";" then we assume it to be the separator
8753 # otherwise default to the standard path separator (i.e. ":") - it is
8754 # assumed that no part of a normal pathname contains ";" but that should
8755 # okay in the real world where ";" in dirpaths is itself problematic.
8756 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8758 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8761 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8763 need_lib_prefix=unknown
8764 hardcode_into_libs=no
8766 # when you set need_version to no, make sure it does not cause -set_version
8767 # flags to be left without arguments
8768 need_version=unknown
8773 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8774 shlibpath_var=LIBPATH
8776 # AIX 3 has no versioning support, so we append a major version to the name.
8777 soname_spec='${libname}${release}${shared_ext}$major'
8784 hardcode_into_libs=yes
8785 if test "$host_cpu" = ia64; then
8786 # AIX 5 supports IA64
8787 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8788 shlibpath_var=LD_LIBRARY_PATH
8790 # With GCC up to 2.95.x, collect2 would create an import file
8791 # for dependence libraries. The import file would start with
8792 # the line `#! .'. This would cause the generated library to
8793 # depend on `.', always an invalid library. This was fixed in
8794 # development snapshots of GCC prior to 3.0.
8796 aix4 | aix4.[01] | aix4.[01].*)
8797 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8799 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8806 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8807 # soname into executable. Probably we can add versioning support to
8808 # collect2, so additional links can be useful in future.
8809 if test "$aix_use_runtimelinking" = yes; then
8810 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8811 # instead of lib<name>.a to let people know that these are not
8812 # typical AIX shared libraries.
8813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8815 # We preserve .a as extension for shared libraries through AIX4.2
8816 # and later when we are not doing run time linking.
8817 library_names_spec='${libname}${release}.a $libname.a'
8818 soname_spec='${libname}${release}${shared_ext}$major'
8820 shlibpath_var=LIBPATH
8825 library_names_spec='$libname.ixlibrary $libname.a'
8826 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8827 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'
8831 library_names_spec='${libname}${shared_ext}'
8832 dynamic_linker="$host_os ld.so"
8833 shlibpath_var=LIBRARY_PATH
8839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8840 soname_spec='${libname}${release}${shared_ext}$major'
8841 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8842 shlibpath_var=LD_LIBRARY_PATH
8843 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8844 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8845 # the default ld.so.conf also contains /usr/contrib/lib and
8846 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8847 # libtool to hard-code these into programs
8850 cygwin* | mingw* | pw32*)
8851 version_type=windows
8856 case $GCC,$host_os in
8857 yes,cygwin* | yes,mingw* | yes,pw32*)
8858 library_names_spec='$libname.dll.a'
8859 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8860 postinstall_cmds='base_file=`basename \${file}`~
8861 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8862 dldir=$destdir/`dirname \$dlpath`~
8863 test -d \$dldir || mkdir -p \$dldir~
8864 $install_prog $dir/$dlname \$dldir/$dlname~
8865 chmod a+x \$dldir/$dlname'
8866 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8867 dlpath=$dir/\$dldll~
8869 shlibpath_overrides_runpath=yes
8873 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8874 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8875 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8878 # MinGW DLLs use traditional 'lib' prefix
8879 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8880 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8881 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8882 # It is most probably a Windows format PATH printed by
8883 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8884 # path with ; separators, and with drive letters. We can handle the
8885 # drive letters (cygwin fileutils understands them), so leave them,
8886 # especially as we might pass files found there to a mingw objdump,
8887 # which wouldn't understand a cygwinified path. Ahh.
8888 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8890 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8894 # pw32 DLLs use 'pw' prefix rather than 'lib'
8895 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8901 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8904 dynamic_linker='Win32 ld.exe'
8905 # FIXME: first we should search . and the directory the executable is in
8909 darwin* | rhapsody*)
8910 dynamic_linker="$host_os dyld"
8914 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8915 soname_spec='${libname}${release}${major}$shared_ext'
8916 shlibpath_overrides_runpath=yes
8917 shlibpath_var=DYLD_LIBRARY_PATH
8918 shrext_cmds='.dylib'
8919 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8920 if test "$GCC" = yes; then
8921 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"`
8923 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8925 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8933 soname_spec='${libname}${release}${shared_ext}$major'
8934 shlibpath_var=LD_LIBRARY_PATH
8945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8946 soname_spec='${libname}${release}${shared_ext}$major'
8947 shlibpath_var=LD_LIBRARY_PATH
8948 shlibpath_overrides_runpath=no
8949 hardcode_into_libs=yes
8950 dynamic_linker='GNU ld.so'
8953 freebsd* | dragonfly*)
8954 # DragonFly does not have aout. When/if they implement a new
8955 # versioning mechanism, adjust this.
8956 if test -x /usr/bin/objformat; then
8957 objformat=`/usr/bin/objformat`
8960 freebsd[123].*) objformat=aout ;;
8964 version_type=freebsd-$objformat
8965 case $version_type in
8967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8972 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8976 shlibpath_var=LD_LIBRARY_PATH
8979 shlibpath_overrides_runpath=yes
8981 freebsd3.[01]* | freebsdelf3.[01]*)
8982 shlibpath_overrides_runpath=yes
8983 hardcode_into_libs=yes
8985 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8986 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8987 shlibpath_overrides_runpath=no
8988 hardcode_into_libs=yes
8990 freebsd*) # from 4.6 on
8991 shlibpath_overrides_runpath=yes
8992 hardcode_into_libs=yes
9001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9002 soname_spec='${libname}${release}${shared_ext}$major'
9003 shlibpath_var=LD_LIBRARY_PATH
9004 hardcode_into_libs=yes
9007 hpux9* | hpux10* | hpux11*)
9008 # Give a soname corresponding to the major version so that dld.sl refuses to
9009 # link against other versions.
9016 hardcode_into_libs=yes
9017 dynamic_linker="$host_os dld.so"
9018 shlibpath_var=LD_LIBRARY_PATH
9019 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9021 soname_spec='${libname}${release}${shared_ext}$major'
9022 if test "X$HPUX_IA64_MODE" = X32; then
9023 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9025 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9027 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9031 hardcode_into_libs=yes
9032 dynamic_linker="$host_os dld.sl"
9033 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9034 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9036 soname_spec='${libname}${release}${shared_ext}$major'
9037 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9038 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9042 dynamic_linker="$host_os dld.sl"
9043 shlibpath_var=SHLIB_PATH
9044 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9046 soname_spec='${libname}${release}${shared_ext}$major'
9049 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9050 postinstall_cmds='chmod 555 $lib'
9057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9058 soname_spec='${libname}${release}${shared_ext}$major'
9059 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9060 shlibpath_var=LD_LIBRARY_PATH
9061 shlibpath_overrides_runpath=no
9062 hardcode_into_libs=yes
9065 irix5* | irix6* | nonstopux*)
9067 nonstopux*) version_type=nonstopux ;;
9069 if test "$lt_cv_prog_gnu_ld" = yes; then
9077 soname_spec='${libname}${release}${shared_ext}$major'
9078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9080 irix5* | nonstopux*)
9084 case $LD in # libtool.m4 will add one of these switches to LD
9085 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9086 libsuff= shlibsuff= libmagic=32-bit;;
9087 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9088 libsuff=32 shlibsuff=N32 libmagic=N32;;
9089 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9090 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9091 *) libsuff= shlibsuff= libmagic=never-match;;
9095 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9096 shlibpath_overrides_runpath=no
9097 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9098 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9099 hardcode_into_libs=yes
9102 # No shared lib support for Linux oldld, aout, or coff.
9103 linux*oldld* | linux*aout* | linux*coff*)
9107 # This must be Linux ELF.
9112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9113 soname_spec='${libname}${release}${shared_ext}$major'
9114 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9115 shlibpath_var=LD_LIBRARY_PATH
9116 shlibpath_overrides_runpath=no
9117 # This implies no fast_install, which is unacceptable.
9118 # Some rework will be needed to allow for fast_install
9119 # before this can be enabled.
9120 hardcode_into_libs=yes
9122 # Append ld.so.conf contents to the search path
9123 if test -f /etc/ld.so.conf; then
9124 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' ' '`
9125 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9128 # We used to test for /lib/ld.so.1 and disable shared libraries on
9129 # powerpc, because MkLinux only supported shared libraries with the
9130 # GNU dynamic linker. Since this was broken with cross compilers,
9131 # most powerpc-linux boxes support dynamic linking these days and
9132 # people can always --disable-shared, the test was removed, and we
9133 # assume the GNU/Linux dynamic linker is in use.
9134 dynamic_linker='GNU/Linux ld.so'
9141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9142 soname_spec='${libname}${release}${shared_ext}$major'
9143 shlibpath_var=LD_LIBRARY_PATH
9144 shlibpath_overrides_runpath=no
9145 hardcode_into_libs=yes
9146 dynamic_linker='GNU ld.so'
9153 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9155 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9156 dynamic_linker='NetBSD (a.out) ld.so'
9158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9159 soname_spec='${libname}${release}${shared_ext}$major'
9160 dynamic_linker='NetBSD ld.elf_so'
9162 shlibpath_var=LD_LIBRARY_PATH
9163 shlibpath_overrides_runpath=yes
9164 hardcode_into_libs=yes
9169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9170 shlibpath_var=LD_LIBRARY_PATH
9171 shlibpath_overrides_runpath=yes
9178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9179 soname_spec='${libname}${release}${shared_ext}$major'
9180 shlibpath_var=LD_LIBRARY_PATH
9181 shlibpath_overrides_runpath=yes
9186 sys_lib_dlsearch_path_spec="/usr/lib"
9188 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9190 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9191 *) need_version=no ;;
9193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9194 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9195 shlibpath_var=LD_LIBRARY_PATH
9196 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9198 openbsd2.[89] | openbsd2.[89].*)
9199 shlibpath_overrides_runpath=no
9202 shlibpath_overrides_runpath=yes
9206 shlibpath_overrides_runpath=yes
9211 libname_spec='$name'
9214 library_names_spec='$libname${shared_ext} $libname.a'
9215 dynamic_linker='OS/2 ld.exe'
9216 shlibpath_var=LIBPATH
9219 osf3* | osf4* | osf5*)
9223 soname_spec='${libname}${release}${shared_ext}$major'
9224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9225 shlibpath_var=LD_LIBRARY_PATH
9226 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9227 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9235 soname_spec='${libname}${release}${shared_ext}$major'
9236 shlibpath_var=LD_LIBRARY_PATH
9237 shlibpath_overrides_runpath=yes
9238 hardcode_into_libs=yes
9239 # ldd complains unless libraries are executable
9240 postinstall_cmds='chmod +x $lib'
9245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9246 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9247 shlibpath_var=LD_LIBRARY_PATH
9248 shlibpath_overrides_runpath=yes
9249 if test "$with_gnu_ld" = yes; then
9257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9258 soname_spec='${libname}${release}${shared_ext}$major'
9259 shlibpath_var=LD_LIBRARY_PATH
9260 case $host_vendor in
9262 shlibpath_overrides_runpath=no
9264 export_dynamic_flag_spec='${wl}-Blargedynsym'
9265 runpath_var=LD_RUN_PATH
9273 shlibpath_overrides_runpath=no
9274 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9280 if test -d /usr/nec ;then
9282 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9283 soname_spec='$libname${shared_ext}.$major'
9284 shlibpath_var=LD_LIBRARY_PATH
9288 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9289 version_type=freebsd-elf
9292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9293 soname_spec='${libname}${release}${shared_ext}$major'
9294 shlibpath_var=LD_LIBRARY_PATH
9295 hardcode_into_libs=yes
9296 if test "$with_gnu_ld" = yes; then
9297 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9298 shlibpath_overrides_runpath=no
9300 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9301 shlibpath_overrides_runpath=yes
9304 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9308 sys_lib_dlsearch_path_spec='/usr/lib'
9313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9314 soname_spec='${libname}${release}${shared_ext}$major'
9315 shlibpath_var=LD_LIBRARY_PATH
9322 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9323 echo "${ECHO_T}$dynamic_linker" >&6; }
9324 test "$dynamic_linker" = no && can_build_shared=no
9326 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9327 if test "$GCC" = yes; then
9328 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9332 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9333 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9334 if test "${libltdl_cv_shlibext+set}" = set; then
9335 echo $ECHO_N "(cached) $ECHO_C" >&6
9339 eval libltdl_cv_shlibext=$shrext_cmds
9342 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9343 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9344 if test -n "$libltdl_cv_shlibext"; then
9346 cat >>confdefs.h <<_ACEOF
9347 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9353 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9354 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9355 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9356 echo $ECHO_N "(cached) $ECHO_C" >&6
9358 libltdl_cv_shlibpath_var="$shlibpath_var"
9360 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9361 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9362 if test -n "$libltdl_cv_shlibpath_var"; then
9364 cat >>confdefs.h <<_ACEOF
9365 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9371 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9372 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9373 if test "${libltdl_cv_sys_search_path+set}" = set; then
9374 echo $ECHO_N "(cached) $ECHO_C" >&6
9376 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9378 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9379 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9380 if test -n "$libltdl_cv_sys_search_path"; then
9382 for dir in $libltdl_cv_sys_search_path; do
9383 if test -z "$sys_search_path"; then
9384 sys_search_path="$dir"
9386 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9390 cat >>confdefs.h <<_ACEOF
9391 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9396 { echo "$as_me:$LINENO: checking for objdir" >&5
9397 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9398 if test "${libltdl_cv_objdir+set}" = set; then
9399 echo $ECHO_N "(cached) $ECHO_C" >&6
9401 libltdl_cv_objdir="$objdir"
9402 if test -n "$objdir"; then
9405 rm -f .libs 2>/dev/null
9406 mkdir .libs 2>/dev/null
9407 if test -d .libs; then
9408 libltdl_cv_objdir=.libs
9410 # MS-DOS does not allow filenames that begin with a dot.
9411 libltdl_cv_objdir=_libs
9413 rmdir .libs 2>/dev/null
9417 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9418 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9420 cat >>confdefs.h <<_ACEOF
9421 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9429 # Check for command to grab the raw symbol name followed by C symbol from nm.
9430 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9431 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9432 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9433 echo $ECHO_N "(cached) $ECHO_C" >&6
9436 # These are sane defaults that work on at least a few old systems.
9437 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9439 # Character class describing NM global symbol codes.
9440 symcode='[BCDEGRST]'
9442 # Regexp to match symbols that can be accessed directly from C.
9443 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9445 # Transform an extracted symbol line into a proper C declaration
9446 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9448 # Transform an extracted symbol line into symbol name and symbol address
9449 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'"
9451 # Define system-specific variables.
9456 cygwin* | mingw* | pw32*)
9457 symcode='[ABCDGISTW]'
9459 hpux*) # Its linker distinguishes data from code symbols
9460 if test "$host_cpu" = ia64; then
9461 symcode='[ABCDEGRST]'
9463 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9464 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'"
9467 if test "$host_cpu" = ia64; then
9468 symcode='[ABCDGIRSTW]'
9469 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9470 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'"
9474 symcode='[BCDEGRST]'
9477 symcode='[BCDEGQRST]'
9488 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9496 # Handle CRLF in mingw tool chain
9500 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9504 # If we're using GNU nm, then use its standard symbol codes.
9505 case `$NM -V 2>&1` in
9506 *GNU* | *'with BFD'*)
9507 symcode='[ABCDGIRSTW]' ;;
9510 # Try without a prefix undercore, then with it.
9511 for ac_symprfx in "" "_"; do
9513 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9514 symxfrm="\\1 $ac_symprfx\\2 \\2"
9516 # Write the raw and C identifiers.
9517 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9519 # Check to see that the pipe works correctly.
9523 cat > conftest.$ac_ext <<EOF
9528 void nm_test_func(){}
9532 int main(){nm_test_var='a';nm_test_func();return(0);}
9535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9536 (eval $ac_compile) 2>&5
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); }; then
9540 # Now try to grab the symbols.
9542 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9543 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); } && test -s "$nlist"; then
9547 # Try sorting and uniquifying the output.
9548 if sort "$nlist" | uniq > "$nlist"T; then
9549 mv -f "$nlist"T "$nlist"
9554 # Make sure that we snagged all the symbols we need.
9555 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9556 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9557 cat <<EOF > conftest.$ac_ext
9563 # Now generate the symbol file.
9564 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9566 cat <<EOF >> conftest.$ac_ext
9567 #if defined (__STDC__) && __STDC__
9568 # define lt_ptr_t void *
9570 # define lt_ptr_t char *
9574 /* The mapping between symbol names and symbols. */
9579 lt_preloaded_symbols[] =
9582 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9583 cat <<\EOF >> conftest.$ac_ext
9591 # Now try linking the two files.
9592 mv conftest.$ac_objext conftstm.$ac_objext
9593 lt_save_LIBS="$LIBS"
9594 lt_save_CFLAGS="$CFLAGS"
9595 LIBS="conftstm.$ac_objext"
9596 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9598 (eval $ac_link) 2>&5
9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9604 LIBS="$lt_save_LIBS"
9605 CFLAGS="$lt_save_CFLAGS"
9607 echo "cannot find nm_test_func in $nlist" >&5
9610 echo "cannot find nm_test_var in $nlist" >&5
9613 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9616 echo "$progname: failed program was:" >&5
9617 cat conftest.$ac_ext >&5
9619 rm -f conftest* conftst*
9621 # Do not use the global_symbol_pipe unless it works.
9622 if test "$pipe_works" = yes; then
9625 lt_cv_sys_global_symbol_pipe=
9631 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9632 lt_cv_sys_global_symbol_to_cdecl=
9634 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9635 { echo "$as_me:$LINENO: result: failed" >&5
9636 echo "${ECHO_T}failed" >&6; }
9638 { echo "$as_me:$LINENO: result: ok" >&5
9639 echo "${ECHO_T}ok" >&6; }
9643 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9644 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9645 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9646 echo $ECHO_N "(cached) $ECHO_C" >&6
9648 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9649 libltdl_cv_preloaded_symbols=yes
9651 libltdl_cv_preloaded_symbols=no
9655 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9656 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9657 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9659 cat >>confdefs.h <<\_ACEOF
9660 #define HAVE_PRELOADED_SYMBOLS 1
9668 ac_cpp='$CPP $CPPFLAGS'
9669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9674 { echo "$as_me:$LINENO: checking for shl_load" >&5
9675 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9676 if test "${ac_cv_func_shl_load+set}" = set; then
9677 echo $ECHO_N "(cached) $ECHO_C" >&6
9679 cat >conftest.$ac_ext <<_ACEOF
9682 cat confdefs.h >>conftest.$ac_ext
9683 cat >>conftest.$ac_ext <<_ACEOF
9684 /* end confdefs.h. */
9685 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9687 #define shl_load innocuous_shl_load
9689 /* System header to define __stub macros and hopefully few prototypes,
9690 which can conflict with char shl_load (); below.
9691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9692 <limits.h> exists even on freestanding compilers. */
9695 # include <limits.h>
9697 # include <assert.h>
9702 /* Override any GCC internal prototype to avoid an error.
9703 Use char because int might match the return type of a GCC
9704 builtin and then its argument prototype would still apply. */
9709 /* The GNU C library defines this for functions which it implements
9710 to always fail with ENOSYS. Some functions are actually named
9711 something starting with __ and the normal name is an alias. */
9712 #if defined __stub_shl_load || defined __stub___shl_load
9724 rm -f conftest.$ac_objext conftest$ac_exeext
9725 if { (ac_try="$ac_link"
9727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9728 *) ac_try_echo=$ac_try;;
9730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9731 (eval "$ac_link") 2>conftest.er1
9733 grep -v '^ *+' conftest.er1 >conftest.err
9735 cat conftest.err >&5
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); } &&
9738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9739 { (case "(($ac_try" in
9740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9741 *) ac_try_echo=$ac_try;;
9743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9744 (eval "$ac_try") 2>&5
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); }; } &&
9748 { ac_try='test -s conftest$ac_exeext'
9749 { (case "(($ac_try" in
9750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9751 *) ac_try_echo=$ac_try;;
9753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9754 (eval "$ac_try") 2>&5
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); }; }; then
9758 ac_cv_func_shl_load=yes
9760 echo "$as_me: failed program was:" >&5
9761 sed 's/^/| /' conftest.$ac_ext >&5
9763 ac_cv_func_shl_load=no
9766 rm -f core conftest.err conftest.$ac_objext \
9767 conftest$ac_exeext conftest.$ac_ext
9769 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9770 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9771 if test $ac_cv_func_shl_load = yes; then
9773 cat >>confdefs.h <<\_ACEOF
9774 #define HAVE_SHL_LOAD 1
9778 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9779 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9780 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9781 echo $ECHO_N "(cached) $ECHO_C" >&6
9783 ac_check_lib_save_LIBS=$LIBS
9785 cat >conftest.$ac_ext <<_ACEOF
9788 cat confdefs.h >>conftest.$ac_ext
9789 cat >>conftest.$ac_ext <<_ACEOF
9790 /* end confdefs.h. */
9792 /* Override any GCC internal prototype to avoid an error.
9793 Use char because int might match the return type of a GCC
9794 builtin and then its argument prototype would still apply. */
9807 rm -f conftest.$ac_objext conftest$ac_exeext
9808 if { (ac_try="$ac_link"
9810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9811 *) ac_try_echo=$ac_try;;
9813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9814 (eval "$ac_link") 2>conftest.er1
9816 grep -v '^ *+' conftest.er1 >conftest.err
9818 cat conftest.err >&5
9819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820 (exit $ac_status); } &&
9821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9822 { (case "(($ac_try" in
9823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9824 *) ac_try_echo=$ac_try;;
9826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9827 (eval "$ac_try") 2>&5
9829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830 (exit $ac_status); }; } &&
9831 { ac_try='test -s conftest$ac_exeext'
9832 { (case "(($ac_try" in
9833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834 *) ac_try_echo=$ac_try;;
9836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9837 (eval "$ac_try") 2>&5
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); }; }; then
9841 ac_cv_lib_dld_shl_load=yes
9843 echo "$as_me: failed program was:" >&5
9844 sed 's/^/| /' conftest.$ac_ext >&5
9846 ac_cv_lib_dld_shl_load=no
9849 rm -f core conftest.err conftest.$ac_objext \
9850 conftest$ac_exeext conftest.$ac_ext
9851 LIBS=$ac_check_lib_save_LIBS
9853 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9854 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9855 if test $ac_cv_lib_dld_shl_load = yes; then
9857 cat >>confdefs.h <<\_ACEOF
9858 #define HAVE_SHL_LOAD 1
9861 LIBADD_DL="$LIBADD_DL -ldld"
9863 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9864 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9865 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9866 echo $ECHO_N "(cached) $ECHO_C" >&6
9868 ac_check_lib_save_LIBS=$LIBS
9870 cat >conftest.$ac_ext <<_ACEOF
9873 cat confdefs.h >>conftest.$ac_ext
9874 cat >>conftest.$ac_ext <<_ACEOF
9875 /* end confdefs.h. */
9877 /* Override any GCC internal prototype to avoid an error.
9878 Use char because int might match the return type of a GCC
9879 builtin and then its argument prototype would still apply. */
9892 rm -f conftest.$ac_objext conftest$ac_exeext
9893 if { (ac_try="$ac_link"
9895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9896 *) ac_try_echo=$ac_try;;
9898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9899 (eval "$ac_link") 2>conftest.er1
9901 grep -v '^ *+' conftest.er1 >conftest.err
9903 cat conftest.err >&5
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); } &&
9906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9907 { (case "(($ac_try" in
9908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9909 *) ac_try_echo=$ac_try;;
9911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9912 (eval "$ac_try") 2>&5
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); }; } &&
9916 { ac_try='test -s conftest$ac_exeext'
9917 { (case "(($ac_try" in
9918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919 *) ac_try_echo=$ac_try;;
9921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9922 (eval "$ac_try") 2>&5
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); }; }; then
9926 ac_cv_lib_dl_dlopen=yes
9928 echo "$as_me: failed program was:" >&5
9929 sed 's/^/| /' conftest.$ac_ext >&5
9931 ac_cv_lib_dl_dlopen=no
9934 rm -f core conftest.err conftest.$ac_objext \
9935 conftest$ac_exeext conftest.$ac_ext
9936 LIBS=$ac_check_lib_save_LIBS
9938 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9939 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9940 if test $ac_cv_lib_dl_dlopen = yes; then
9942 cat >>confdefs.h <<\_ACEOF
9943 #define HAVE_LIBDL 1
9946 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9948 cat >conftest.$ac_ext <<_ACEOF
9951 cat confdefs.h >>conftest.$ac_ext
9952 cat >>conftest.$ac_ext <<_ACEOF
9953 /* end confdefs.h. */
9966 rm -f conftest.$ac_objext conftest$ac_exeext
9967 if { (ac_try="$ac_link"
9969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9970 *) ac_try_echo=$ac_try;;
9972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9973 (eval "$ac_link") 2>conftest.er1
9975 grep -v '^ *+' conftest.er1 >conftest.err
9977 cat conftest.err >&5
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); } &&
9980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9981 { (case "(($ac_try" in
9982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9983 *) ac_try_echo=$ac_try;;
9985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9986 (eval "$ac_try") 2>&5
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); }; } &&
9990 { ac_try='test -s conftest$ac_exeext'
9991 { (case "(($ac_try" in
9992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9993 *) ac_try_echo=$ac_try;;
9995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9996 (eval "$ac_try") 2>&5
9998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999 (exit $ac_status); }; }; then
10001 cat >>confdefs.h <<\_ACEOF
10002 #define HAVE_LIBDL 1
10004 libltdl_cv_func_dlopen="yes"
10006 echo "$as_me: failed program was:" >&5
10007 sed 's/^/| /' conftest.$ac_ext >&5
10009 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10010 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10011 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10012 echo $ECHO_N "(cached) $ECHO_C" >&6
10014 ac_check_lib_save_LIBS=$LIBS
10015 LIBS="-lsvld $LIBS"
10016 cat >conftest.$ac_ext <<_ACEOF
10019 cat confdefs.h >>conftest.$ac_ext
10020 cat >>conftest.$ac_ext <<_ACEOF
10021 /* end confdefs.h. */
10023 /* Override any GCC internal prototype to avoid an error.
10024 Use char because int might match the return type of a GCC
10025 builtin and then its argument prototype would still apply. */
10038 rm -f conftest.$ac_objext conftest$ac_exeext
10039 if { (ac_try="$ac_link"
10040 case "(($ac_try" in
10041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10042 *) ac_try_echo=$ac_try;;
10044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10045 (eval "$ac_link") 2>conftest.er1
10047 grep -v '^ *+' conftest.er1 >conftest.err
10049 cat conftest.err >&5
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); } &&
10052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10053 { (case "(($ac_try" in
10054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10055 *) ac_try_echo=$ac_try;;
10057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10058 (eval "$ac_try") 2>&5
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); }; } &&
10062 { ac_try='test -s conftest$ac_exeext'
10063 { (case "(($ac_try" in
10064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10065 *) ac_try_echo=$ac_try;;
10067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10068 (eval "$ac_try") 2>&5
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); }; }; then
10072 ac_cv_lib_svld_dlopen=yes
10074 echo "$as_me: failed program was:" >&5
10075 sed 's/^/| /' conftest.$ac_ext >&5
10077 ac_cv_lib_svld_dlopen=no
10080 rm -f core conftest.err conftest.$ac_objext \
10081 conftest$ac_exeext conftest.$ac_ext
10082 LIBS=$ac_check_lib_save_LIBS
10084 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10085 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10086 if test $ac_cv_lib_svld_dlopen = yes; then
10088 cat >>confdefs.h <<\_ACEOF
10089 #define HAVE_LIBDL 1
10092 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10094 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10095 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10096 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10097 echo $ECHO_N "(cached) $ECHO_C" >&6
10099 ac_check_lib_save_LIBS=$LIBS
10101 cat >conftest.$ac_ext <<_ACEOF
10104 cat confdefs.h >>conftest.$ac_ext
10105 cat >>conftest.$ac_ext <<_ACEOF
10106 /* end confdefs.h. */
10108 /* Override any GCC internal prototype to avoid an error.
10109 Use char because int might match the return type of a GCC
10110 builtin and then its argument prototype would still apply. */
10118 return dld_link ();
10123 rm -f conftest.$ac_objext conftest$ac_exeext
10124 if { (ac_try="$ac_link"
10125 case "(($ac_try" in
10126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10127 *) ac_try_echo=$ac_try;;
10129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10130 (eval "$ac_link") 2>conftest.er1
10132 grep -v '^ *+' conftest.er1 >conftest.err
10134 cat conftest.err >&5
10135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136 (exit $ac_status); } &&
10137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10138 { (case "(($ac_try" in
10139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10140 *) ac_try_echo=$ac_try;;
10142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10143 (eval "$ac_try") 2>&5
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); }; } &&
10147 { ac_try='test -s conftest$ac_exeext'
10148 { (case "(($ac_try" in
10149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10150 *) ac_try_echo=$ac_try;;
10152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10153 (eval "$ac_try") 2>&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); }; }; then
10157 ac_cv_lib_dld_dld_link=yes
10159 echo "$as_me: failed program was:" >&5
10160 sed 's/^/| /' conftest.$ac_ext >&5
10162 ac_cv_lib_dld_dld_link=no
10165 rm -f core conftest.err conftest.$ac_objext \
10166 conftest$ac_exeext conftest.$ac_ext
10167 LIBS=$ac_check_lib_save_LIBS
10169 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10170 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10171 if test $ac_cv_lib_dld_dld_link = yes; then
10173 cat >>confdefs.h <<\_ACEOF
10177 LIBADD_DL="$LIBADD_DL -ldld"
10179 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10180 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10181 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10182 echo $ECHO_N "(cached) $ECHO_C" >&6
10184 cat >conftest.$ac_ext <<_ACEOF
10187 cat confdefs.h >>conftest.$ac_ext
10188 cat >>conftest.$ac_ext <<_ACEOF
10189 /* end confdefs.h. */
10190 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10192 #define _dyld_func_lookup innocuous__dyld_func_lookup
10194 /* System header to define __stub macros and hopefully few prototypes,
10195 which can conflict with char _dyld_func_lookup (); below.
10196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10197 <limits.h> exists even on freestanding compilers. */
10200 # include <limits.h>
10202 # include <assert.h>
10205 #undef _dyld_func_lookup
10207 /* Override any GCC internal prototype to avoid an error.
10208 Use char because int might match the return type of a GCC
10209 builtin and then its argument prototype would still apply. */
10213 char _dyld_func_lookup ();
10214 /* The GNU C library defines this for functions which it implements
10215 to always fail with ENOSYS. Some functions are actually named
10216 something starting with __ and the normal name is an alias. */
10217 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10224 return _dyld_func_lookup ();
10229 rm -f conftest.$ac_objext conftest$ac_exeext
10230 if { (ac_try="$ac_link"
10231 case "(($ac_try" in
10232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10233 *) ac_try_echo=$ac_try;;
10235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10236 (eval "$ac_link") 2>conftest.er1
10238 grep -v '^ *+' conftest.er1 >conftest.err
10240 cat conftest.err >&5
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); } &&
10243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10244 { (case "(($ac_try" in
10245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10246 *) ac_try_echo=$ac_try;;
10248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10249 (eval "$ac_try") 2>&5
10251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252 (exit $ac_status); }; } &&
10253 { ac_try='test -s conftest$ac_exeext'
10254 { (case "(($ac_try" in
10255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10256 *) ac_try_echo=$ac_try;;
10258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10259 (eval "$ac_try") 2>&5
10261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262 (exit $ac_status); }; }; then
10263 ac_cv_func__dyld_func_lookup=yes
10265 echo "$as_me: failed program was:" >&5
10266 sed 's/^/| /' conftest.$ac_ext >&5
10268 ac_cv_func__dyld_func_lookup=no
10271 rm -f core conftest.err conftest.$ac_objext \
10272 conftest$ac_exeext conftest.$ac_ext
10274 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10275 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10276 if test $ac_cv_func__dyld_func_lookup = yes; then
10278 cat >>confdefs.h <<\_ACEOF
10279 #define HAVE_DYLD 1
10293 rm -f core conftest.err conftest.$ac_objext \
10294 conftest$ac_exeext conftest.$ac_ext
10305 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10307 lt_save_LIBS="$LIBS"
10308 LIBS="$LIBS $LIBADD_DL"
10310 for ac_func in dlerror
10312 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10313 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10314 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10315 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10316 echo $ECHO_N "(cached) $ECHO_C" >&6
10318 cat >conftest.$ac_ext <<_ACEOF
10321 cat confdefs.h >>conftest.$ac_ext
10322 cat >>conftest.$ac_ext <<_ACEOF
10323 /* end confdefs.h. */
10324 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10326 #define $ac_func innocuous_$ac_func
10328 /* System header to define __stub macros and hopefully few prototypes,
10329 which can conflict with char $ac_func (); below.
10330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10331 <limits.h> exists even on freestanding compilers. */
10334 # include <limits.h>
10336 # include <assert.h>
10341 /* Override any GCC internal prototype to avoid an error.
10342 Use char because int might match the return type of a GCC
10343 builtin and then its argument prototype would still apply. */
10348 /* The GNU C library defines this for functions which it implements
10349 to always fail with ENOSYS. Some functions are actually named
10350 something starting with __ and the normal name is an alias. */
10351 #if defined __stub_$ac_func || defined __stub___$ac_func
10358 return $ac_func ();
10363 rm -f conftest.$ac_objext conftest$ac_exeext
10364 if { (ac_try="$ac_link"
10365 case "(($ac_try" in
10366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10367 *) ac_try_echo=$ac_try;;
10369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10370 (eval "$ac_link") 2>conftest.er1
10372 grep -v '^ *+' conftest.er1 >conftest.err
10374 cat conftest.err >&5
10375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376 (exit $ac_status); } &&
10377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10378 { (case "(($ac_try" in
10379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10380 *) ac_try_echo=$ac_try;;
10382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10383 (eval "$ac_try") 2>&5
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); }; } &&
10387 { ac_try='test -s conftest$ac_exeext'
10388 { (case "(($ac_try" in
10389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10390 *) ac_try_echo=$ac_try;;
10392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10393 (eval "$ac_try") 2>&5
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); }; }; then
10397 eval "$as_ac_var=yes"
10399 echo "$as_me: failed program was:" >&5
10400 sed 's/^/| /' conftest.$ac_ext >&5
10402 eval "$as_ac_var=no"
10405 rm -f core conftest.err conftest.$ac_objext \
10406 conftest$ac_exeext conftest.$ac_ext
10408 ac_res=`eval echo '${'$as_ac_var'}'`
10409 { echo "$as_me:$LINENO: result: $ac_res" >&5
10410 echo "${ECHO_T}$ac_res" >&6; }
10411 if test `eval echo '${'$as_ac_var'}'` = yes; then
10412 cat >>confdefs.h <<_ACEOF
10413 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10419 LIBS="$lt_save_LIBS"
10422 ac_cpp='$CPP $CPPFLAGS'
10423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10429 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10430 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10431 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10432 echo $ECHO_N "(cached) $ECHO_C" >&6
10434 ac_cv_sys_symbol_underscore=no
10435 cat > conftest.$ac_ext <<EOF
10436 void nm_test_func(){}
10437 int main(){nm_test_func;return 0;}
10439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10440 (eval $ac_compile) 2>&5
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); }; then
10444 # Now try to grab the symbols.
10445 ac_nlist=conftest.nm
10446 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10447 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); } && test -s "$ac_nlist"; then
10451 # See whether the symbols have a leading underscore.
10452 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10453 ac_cv_sys_symbol_underscore=yes
10455 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10458 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10462 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10465 echo "configure: failed program was:" >&5
10471 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10472 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10475 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10476 if test x"$libltdl_cv_func_dlopen" = xyes ||
10477 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10478 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10479 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10480 if test "${libltdl_cv_need_uscore+set}" = set; then
10481 echo $ECHO_N "(cached) $ECHO_C" >&6
10483 libltdl_cv_need_uscore=unknown
10485 LIBS="$LIBS $LIBADD_DL"
10486 if test "$cross_compiling" = yes; then :
10487 libltdl_cv_need_uscore=cross
10489 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10490 lt_status=$lt_dlunknown
10491 cat > conftest.$ac_ext <<EOF
10492 #line 10492 "configure"
10493 #include "confdefs.h"
10502 # define LT_DLGLOBAL RTLD_GLOBAL
10505 # define LT_DLGLOBAL DL_GLOBAL
10507 # define LT_DLGLOBAL 0
10511 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10512 find out it does not work in some platform. */
10513 #ifndef LT_DLLAZY_OR_NOW
10515 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10518 # define LT_DLLAZY_OR_NOW DL_LAZY
10521 # define LT_DLLAZY_OR_NOW RTLD_NOW
10524 # define LT_DLLAZY_OR_NOW DL_NOW
10526 # define LT_DLLAZY_OR_NOW 0
10534 extern "C" void exit (int);
10537 void fnord() { int i=42;}
10540 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10541 int status = $lt_dlunknown;
10545 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10546 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10547 /* dlclose (self); */
10555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10556 (eval $ac_link) 2>&5
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10560 (./conftest; exit; ) >&5 2>/dev/null
10562 case x$lt_status in
10563 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10564 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10565 x$lt_dlunknown|x*) ;;
10568 # compilation failed
10577 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10578 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10582 if test x"$libltdl_cv_need_uscore" = xyes; then
10584 cat >>confdefs.h <<\_ACEOF
10585 #define NEED_USCORE 1
10591 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10592 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10593 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10594 echo $ECHO_N "(cached) $ECHO_C" >&6
10596 # PORTME does your system automatically load deplibs for dlopen?
10597 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10598 # For now, we just catch OSes we know something about -- in the
10599 # future, we'll try test this programmatically.
10600 libltdl_cv_sys_dlopen_deplibs=unknown
10602 aix3*|aix4.1.*|aix4.2.*)
10603 # Unknown whether this is true for these versions of AIX, but
10604 # we want this `case' here to explicitly catch those versions.
10605 libltdl_cv_sys_dlopen_deplibs=unknown
10608 libltdl_cv_sys_dlopen_deplibs=yes
10611 # Assuming the user has installed a libdl from somewhere, this is true
10612 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10613 libltdl_cv_sys_dlopen_deplibs=yes
10615 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10616 # GNU and its variants, using gnu ld.so (Glibc)
10617 libltdl_cv_sys_dlopen_deplibs=yes
10620 libltdl_cv_sys_dlopen_deplibs=yes
10623 libltdl_cv_sys_dlopen_deplibs=yes
10625 irix[12345]*|irix6.[01]*)
10626 # Catch all versions of IRIX before 6.2, and indicate that we don't
10627 # know how it worked for any of those versions.
10628 libltdl_cv_sys_dlopen_deplibs=unknown
10631 # The case above catches anything before 6.2, and it's known that
10632 # at 6.2 and later dlopen does load deplibs.
10633 libltdl_cv_sys_dlopen_deplibs=yes
10636 libltdl_cv_sys_dlopen_deplibs=yes
10639 libltdl_cv_sys_dlopen_deplibs=yes
10642 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10643 # it did *not* use an RPATH in a shared library to find objects the
10644 # library depends on, so we explicitly say `no'.
10645 libltdl_cv_sys_dlopen_deplibs=no
10647 osf5.0|osf5.0a|osf5.1)
10648 # dlopen *does* load deplibs and with the right loader patch applied
10649 # it even uses RPATH in a shared library to search for shared objects
10650 # that the library depends on, but there's no easy way to know if that
10651 # patch is installed. Since this is the case, all we can really
10652 # say is unknown -- it depends on the patch being installed. If
10653 # it is, this changes to `yes'. Without it, it would be `no'.
10654 libltdl_cv_sys_dlopen_deplibs=unknown
10657 # the two cases above should catch all versions of osf <= 5.1. Read
10658 # the comments above for what we know about them.
10659 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10660 # is used to find them so we can finally say `yes'.
10661 libltdl_cv_sys_dlopen_deplibs=yes
10664 libltdl_cv_sys_dlopen_deplibs=yes
10666 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10667 libltdl_cv_sys_dlopen_deplibs=yes
10672 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10673 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10674 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10676 cat >>confdefs.h <<\_ACEOF
10677 #define LTDL_DLOPEN_DEPLIBS 1
10683 for ac_header in argz.h
10685 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10687 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10690 echo $ECHO_N "(cached) $ECHO_C" >&6
10692 ac_res=`eval echo '${'$as_ac_Header'}'`
10693 { echo "$as_me:$LINENO: result: $ac_res" >&5
10694 echo "${ECHO_T}$ac_res" >&6; }
10696 # Is the header compilable?
10697 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10698 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10699 cat >conftest.$ac_ext <<_ACEOF
10702 cat confdefs.h >>conftest.$ac_ext
10703 cat >>conftest.$ac_ext <<_ACEOF
10704 /* end confdefs.h. */
10705 $ac_includes_default
10706 #include <$ac_header>
10708 rm -f conftest.$ac_objext
10709 if { (ac_try="$ac_compile"
10710 case "(($ac_try" in
10711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10712 *) ac_try_echo=$ac_try;;
10714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10715 (eval "$ac_compile") 2>conftest.er1
10717 grep -v '^ *+' conftest.er1 >conftest.err
10719 cat conftest.err >&5
10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); } &&
10722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10723 { (case "(($ac_try" in
10724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10725 *) ac_try_echo=$ac_try;;
10727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10728 (eval "$ac_try") 2>&5
10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); }; } &&
10732 { ac_try='test -s conftest.$ac_objext'
10733 { (case "(($ac_try" in
10734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10735 *) ac_try_echo=$ac_try;;
10737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10738 (eval "$ac_try") 2>&5
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); }; }; then
10742 ac_header_compiler=yes
10744 echo "$as_me: failed program was:" >&5
10745 sed 's/^/| /' conftest.$ac_ext >&5
10747 ac_header_compiler=no
10750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10751 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10752 echo "${ECHO_T}$ac_header_compiler" >&6; }
10754 # Is the header present?
10755 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10756 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10757 cat >conftest.$ac_ext <<_ACEOF
10760 cat confdefs.h >>conftest.$ac_ext
10761 cat >>conftest.$ac_ext <<_ACEOF
10762 /* end confdefs.h. */
10763 #include <$ac_header>
10765 if { (ac_try="$ac_cpp conftest.$ac_ext"
10766 case "(($ac_try" in
10767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10768 *) ac_try_echo=$ac_try;;
10770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10773 grep -v '^ *+' conftest.er1 >conftest.err
10775 cat conftest.err >&5
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); } >/dev/null; then
10778 if test -s conftest.err; then
10779 ac_cpp_err=$ac_c_preproc_warn_flag
10780 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10787 if test -z "$ac_cpp_err"; then
10788 ac_header_preproc=yes
10790 echo "$as_me: failed program was:" >&5
10791 sed 's/^/| /' conftest.$ac_ext >&5
10793 ac_header_preproc=no
10796 rm -f conftest.err conftest.$ac_ext
10797 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10798 echo "${ECHO_T}$ac_header_preproc" >&6; }
10800 # So? What about this header?
10801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10803 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10804 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10806 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10807 ac_header_preproc=yes
10810 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10811 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10812 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10813 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10814 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10815 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10816 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10817 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10819 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10820 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10821 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10823 ## ----------------------------------- ##
10824 ## Report this to llvmbugs@cs.uiuc.edu ##
10825 ## ----------------------------------- ##
10827 ) | sed "s/^/$as_me: WARNING: /" >&2
10830 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10833 echo $ECHO_N "(cached) $ECHO_C" >&6
10835 eval "$as_ac_Header=\$ac_header_preproc"
10837 ac_res=`eval echo '${'$as_ac_Header'}'`
10838 { echo "$as_me:$LINENO: result: $ac_res" >&5
10839 echo "${ECHO_T}$ac_res" >&6; }
10842 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10843 cat >>confdefs.h <<_ACEOF
10844 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10852 { echo "$as_me:$LINENO: checking for error_t" >&5
10853 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10854 if test "${ac_cv_type_error_t+set}" = set; then
10855 echo $ECHO_N "(cached) $ECHO_C" >&6
10857 cat >conftest.$ac_ext <<_ACEOF
10860 cat confdefs.h >>conftest.$ac_ext
10861 cat >>conftest.$ac_ext <<_ACEOF
10862 /* end confdefs.h. */
10867 typedef error_t ac__type_new_;
10871 if ((ac__type_new_ *) 0)
10873 if (sizeof (ac__type_new_))
10879 rm -f conftest.$ac_objext
10880 if { (ac_try="$ac_compile"
10881 case "(($ac_try" in
10882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10883 *) ac_try_echo=$ac_try;;
10885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10886 (eval "$ac_compile") 2>conftest.er1
10888 grep -v '^ *+' conftest.er1 >conftest.err
10890 cat conftest.err >&5
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); } &&
10893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10894 { (case "(($ac_try" in
10895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10896 *) ac_try_echo=$ac_try;;
10898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10899 (eval "$ac_try") 2>&5
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); }; } &&
10903 { ac_try='test -s conftest.$ac_objext'
10904 { (case "(($ac_try" in
10905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10906 *) ac_try_echo=$ac_try;;
10908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10909 (eval "$ac_try") 2>&5
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); }; }; then
10913 ac_cv_type_error_t=yes
10915 echo "$as_me: failed program was:" >&5
10916 sed 's/^/| /' conftest.$ac_ext >&5
10918 ac_cv_type_error_t=no
10921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10923 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10924 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10925 if test $ac_cv_type_error_t = yes; then
10927 cat >>confdefs.h <<_ACEOF
10928 #define HAVE_ERROR_T 1
10934 cat >>confdefs.h <<\_ACEOF
10935 #define error_t int
10946 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10949 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10951 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10952 echo $ECHO_N "(cached) $ECHO_C" >&6
10954 cat >conftest.$ac_ext <<_ACEOF
10957 cat confdefs.h >>conftest.$ac_ext
10958 cat >>conftest.$ac_ext <<_ACEOF
10959 /* end confdefs.h. */
10960 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10962 #define $ac_func innocuous_$ac_func
10964 /* System header to define __stub macros and hopefully few prototypes,
10965 which can conflict with char $ac_func (); below.
10966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10967 <limits.h> exists even on freestanding compilers. */
10970 # include <limits.h>
10972 # include <assert.h>
10977 /* Override any GCC internal prototype to avoid an error.
10978 Use char because int might match the return type of a GCC
10979 builtin and then its argument prototype would still apply. */
10984 /* The GNU C library defines this for functions which it implements
10985 to always fail with ENOSYS. Some functions are actually named
10986 something starting with __ and the normal name is an alias. */
10987 #if defined __stub_$ac_func || defined __stub___$ac_func
10994 return $ac_func ();
10999 rm -f conftest.$ac_objext conftest$ac_exeext
11000 if { (ac_try="$ac_link"
11001 case "(($ac_try" in
11002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11003 *) ac_try_echo=$ac_try;;
11005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11006 (eval "$ac_link") 2>conftest.er1
11008 grep -v '^ *+' conftest.er1 >conftest.err
11010 cat conftest.err >&5
11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); } &&
11013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11014 { (case "(($ac_try" in
11015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11016 *) ac_try_echo=$ac_try;;
11018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11019 (eval "$ac_try") 2>&5
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); }; } &&
11023 { ac_try='test -s conftest$ac_exeext'
11024 { (case "(($ac_try" in
11025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11026 *) ac_try_echo=$ac_try;;
11028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11029 (eval "$ac_try") 2>&5
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); }; }; then
11033 eval "$as_ac_var=yes"
11035 echo "$as_me: failed program was:" >&5
11036 sed 's/^/| /' conftest.$ac_ext >&5
11038 eval "$as_ac_var=no"
11041 rm -f core conftest.err conftest.$ac_objext \
11042 conftest$ac_exeext conftest.$ac_ext
11044 ac_res=`eval echo '${'$as_ac_var'}'`
11045 { echo "$as_me:$LINENO: result: $ac_res" >&5
11046 echo "${ECHO_T}$ac_res" >&6; }
11047 if test `eval echo '${'$as_ac_var'}'` = yes; then
11048 cat >>confdefs.h <<_ACEOF
11049 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11082 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11085 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11087 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11090 echo $ECHO_N "(cached) $ECHO_C" >&6
11092 ac_res=`eval echo '${'$as_ac_Header'}'`
11093 { echo "$as_me:$LINENO: result: $ac_res" >&5
11094 echo "${ECHO_T}$ac_res" >&6; }
11096 # Is the header compilable?
11097 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11098 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11099 cat >conftest.$ac_ext <<_ACEOF
11102 cat confdefs.h >>conftest.$ac_ext
11103 cat >>conftest.$ac_ext <<_ACEOF
11104 /* end confdefs.h. */
11105 $ac_includes_default
11106 #include <$ac_header>
11108 rm -f conftest.$ac_objext
11109 if { (ac_try="$ac_compile"
11110 case "(($ac_try" in
11111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11112 *) ac_try_echo=$ac_try;;
11114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11115 (eval "$ac_compile") 2>conftest.er1
11117 grep -v '^ *+' conftest.er1 >conftest.err
11119 cat conftest.err >&5
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); } &&
11122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11123 { (case "(($ac_try" in
11124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11125 *) ac_try_echo=$ac_try;;
11127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11128 (eval "$ac_try") 2>&5
11130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131 (exit $ac_status); }; } &&
11132 { ac_try='test -s conftest.$ac_objext'
11133 { (case "(($ac_try" in
11134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11135 *) ac_try_echo=$ac_try;;
11137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11138 (eval "$ac_try") 2>&5
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); }; }; then
11142 ac_header_compiler=yes
11144 echo "$as_me: failed program was:" >&5
11145 sed 's/^/| /' conftest.$ac_ext >&5
11147 ac_header_compiler=no
11150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11151 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11152 echo "${ECHO_T}$ac_header_compiler" >&6; }
11154 # Is the header present?
11155 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11156 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11157 cat >conftest.$ac_ext <<_ACEOF
11160 cat confdefs.h >>conftest.$ac_ext
11161 cat >>conftest.$ac_ext <<_ACEOF
11162 /* end confdefs.h. */
11163 #include <$ac_header>
11165 if { (ac_try="$ac_cpp conftest.$ac_ext"
11166 case "(($ac_try" in
11167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11168 *) ac_try_echo=$ac_try;;
11170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11171 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11173 grep -v '^ *+' conftest.er1 >conftest.err
11175 cat conftest.err >&5
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); } >/dev/null; then
11178 if test -s conftest.err; then
11179 ac_cpp_err=$ac_c_preproc_warn_flag
11180 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11187 if test -z "$ac_cpp_err"; then
11188 ac_header_preproc=yes
11190 echo "$as_me: failed program was:" >&5
11191 sed 's/^/| /' conftest.$ac_ext >&5
11193 ac_header_preproc=no
11196 rm -f conftest.err conftest.$ac_ext
11197 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11198 echo "${ECHO_T}$ac_header_preproc" >&6; }
11200 # So? What about this header?
11201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11203 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11204 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11206 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11207 ac_header_preproc=yes
11210 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11211 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11212 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11213 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11214 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11215 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11216 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11217 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11219 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11220 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11221 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11223 ## ----------------------------------- ##
11224 ## Report this to llvmbugs@cs.uiuc.edu ##
11225 ## ----------------------------------- ##
11227 ) | sed "s/^/$as_me: WARNING: /" >&2
11230 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11233 echo $ECHO_N "(cached) $ECHO_C" >&6
11235 eval "$as_ac_Header=\$ac_header_preproc"
11237 ac_res=`eval echo '${'$as_ac_Header'}'`
11238 { echo "$as_me:$LINENO: result: $ac_res" >&5
11239 echo "${ECHO_T}$ac_res" >&6; }
11242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11243 cat >>confdefs.h <<_ACEOF
11244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11255 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11259 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11262 echo $ECHO_N "(cached) $ECHO_C" >&6
11264 ac_res=`eval echo '${'$as_ac_Header'}'`
11265 { echo "$as_me:$LINENO: result: $ac_res" >&5
11266 echo "${ECHO_T}$ac_res" >&6; }
11268 # Is the header compilable?
11269 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11270 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11271 cat >conftest.$ac_ext <<_ACEOF
11274 cat confdefs.h >>conftest.$ac_ext
11275 cat >>conftest.$ac_ext <<_ACEOF
11276 /* end confdefs.h. */
11277 $ac_includes_default
11278 #include <$ac_header>
11280 rm -f conftest.$ac_objext
11281 if { (ac_try="$ac_compile"
11282 case "(($ac_try" in
11283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11284 *) ac_try_echo=$ac_try;;
11286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11287 (eval "$ac_compile") 2>conftest.er1
11289 grep -v '^ *+' conftest.er1 >conftest.err
11291 cat conftest.err >&5
11292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); } &&
11294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11295 { (case "(($ac_try" in
11296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11297 *) ac_try_echo=$ac_try;;
11299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11300 (eval "$ac_try") 2>&5
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); }; } &&
11304 { ac_try='test -s conftest.$ac_objext'
11305 { (case "(($ac_try" in
11306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11307 *) ac_try_echo=$ac_try;;
11309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11310 (eval "$ac_try") 2>&5
11312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313 (exit $ac_status); }; }; then
11314 ac_header_compiler=yes
11316 echo "$as_me: failed program was:" >&5
11317 sed 's/^/| /' conftest.$ac_ext >&5
11319 ac_header_compiler=no
11322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11323 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11324 echo "${ECHO_T}$ac_header_compiler" >&6; }
11326 # Is the header present?
11327 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11328 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11329 cat >conftest.$ac_ext <<_ACEOF
11332 cat confdefs.h >>conftest.$ac_ext
11333 cat >>conftest.$ac_ext <<_ACEOF
11334 /* end confdefs.h. */
11335 #include <$ac_header>
11337 if { (ac_try="$ac_cpp conftest.$ac_ext"
11338 case "(($ac_try" in
11339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11340 *) ac_try_echo=$ac_try;;
11342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11343 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11345 grep -v '^ *+' conftest.er1 >conftest.err
11347 cat conftest.err >&5
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); } >/dev/null; then
11350 if test -s conftest.err; then
11351 ac_cpp_err=$ac_c_preproc_warn_flag
11352 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11359 if test -z "$ac_cpp_err"; then
11360 ac_header_preproc=yes
11362 echo "$as_me: failed program was:" >&5
11363 sed 's/^/| /' conftest.$ac_ext >&5
11365 ac_header_preproc=no
11368 rm -f conftest.err conftest.$ac_ext
11369 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11370 echo "${ECHO_T}$ac_header_preproc" >&6; }
11372 # So? What about this header?
11373 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11375 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11376 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11377 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11378 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11379 ac_header_preproc=yes
11382 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11383 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11384 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11385 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11386 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11387 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11388 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11389 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11391 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11392 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11393 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11395 ## ----------------------------------- ##
11396 ## Report this to llvmbugs@cs.uiuc.edu ##
11397 ## ----------------------------------- ##
11399 ) | sed "s/^/$as_me: WARNING: /" >&2
11402 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11405 echo $ECHO_N "(cached) $ECHO_C" >&6
11407 eval "$as_ac_Header=\$ac_header_preproc"
11409 ac_res=`eval echo '${'$as_ac_Header'}'`
11410 { echo "$as_me:$LINENO: result: $ac_res" >&5
11411 echo "${ECHO_T}$ac_res" >&6; }
11414 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11415 cat >>confdefs.h <<_ACEOF
11416 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11425 for ac_header in string.h strings.h
11427 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11429 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11432 echo $ECHO_N "(cached) $ECHO_C" >&6
11434 ac_res=`eval echo '${'$as_ac_Header'}'`
11435 { echo "$as_me:$LINENO: result: $ac_res" >&5
11436 echo "${ECHO_T}$ac_res" >&6; }
11438 # Is the header compilable?
11439 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11440 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11441 cat >conftest.$ac_ext <<_ACEOF
11444 cat confdefs.h >>conftest.$ac_ext
11445 cat >>conftest.$ac_ext <<_ACEOF
11446 /* end confdefs.h. */
11447 $ac_includes_default
11448 #include <$ac_header>
11450 rm -f conftest.$ac_objext
11451 if { (ac_try="$ac_compile"
11452 case "(($ac_try" in
11453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11454 *) ac_try_echo=$ac_try;;
11456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11457 (eval "$ac_compile") 2>conftest.er1
11459 grep -v '^ *+' conftest.er1 >conftest.err
11461 cat conftest.err >&5
11462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463 (exit $ac_status); } &&
11464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11465 { (case "(($ac_try" in
11466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11467 *) ac_try_echo=$ac_try;;
11469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11470 (eval "$ac_try") 2>&5
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); }; } &&
11474 { ac_try='test -s conftest.$ac_objext'
11475 { (case "(($ac_try" in
11476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11477 *) ac_try_echo=$ac_try;;
11479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11480 (eval "$ac_try") 2>&5
11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); }; }; then
11484 ac_header_compiler=yes
11486 echo "$as_me: failed program was:" >&5
11487 sed 's/^/| /' conftest.$ac_ext >&5
11489 ac_header_compiler=no
11492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11493 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11494 echo "${ECHO_T}$ac_header_compiler" >&6; }
11496 # Is the header present?
11497 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11499 cat >conftest.$ac_ext <<_ACEOF
11502 cat confdefs.h >>conftest.$ac_ext
11503 cat >>conftest.$ac_ext <<_ACEOF
11504 /* end confdefs.h. */
11505 #include <$ac_header>
11507 if { (ac_try="$ac_cpp conftest.$ac_ext"
11508 case "(($ac_try" in
11509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11510 *) ac_try_echo=$ac_try;;
11512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11513 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11515 grep -v '^ *+' conftest.er1 >conftest.err
11517 cat conftest.err >&5
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); } >/dev/null; then
11520 if test -s conftest.err; then
11521 ac_cpp_err=$ac_c_preproc_warn_flag
11522 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11529 if test -z "$ac_cpp_err"; then
11530 ac_header_preproc=yes
11532 echo "$as_me: failed program was:" >&5
11533 sed 's/^/| /' conftest.$ac_ext >&5
11535 ac_header_preproc=no
11538 rm -f conftest.err conftest.$ac_ext
11539 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11540 echo "${ECHO_T}$ac_header_preproc" >&6; }
11542 # So? What about this header?
11543 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11545 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11546 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11548 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11549 ac_header_preproc=yes
11552 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11553 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11554 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11555 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11556 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11557 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11558 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11559 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11561 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11562 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11563 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11565 ## ----------------------------------- ##
11566 ## Report this to llvmbugs@cs.uiuc.edu ##
11567 ## ----------------------------------- ##
11569 ) | sed "s/^/$as_me: WARNING: /" >&2
11572 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11575 echo $ECHO_N "(cached) $ECHO_C" >&6
11577 eval "$as_ac_Header=\$ac_header_preproc"
11579 ac_res=`eval echo '${'$as_ac_Header'}'`
11580 { echo "$as_me:$LINENO: result: $ac_res" >&5
11581 echo "${ECHO_T}$ac_res" >&6; }
11584 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11585 cat >>confdefs.h <<_ACEOF
11586 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11596 for ac_func in strchr index
11598 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11599 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11600 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11601 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11602 echo $ECHO_N "(cached) $ECHO_C" >&6
11604 cat >conftest.$ac_ext <<_ACEOF
11607 cat confdefs.h >>conftest.$ac_ext
11608 cat >>conftest.$ac_ext <<_ACEOF
11609 /* end confdefs.h. */
11610 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11611 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11612 #define $ac_func innocuous_$ac_func
11614 /* System header to define __stub macros and hopefully few prototypes,
11615 which can conflict with char $ac_func (); below.
11616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11617 <limits.h> exists even on freestanding compilers. */
11620 # include <limits.h>
11622 # include <assert.h>
11627 /* Override any GCC internal prototype to avoid an error.
11628 Use char because int might match the return type of a GCC
11629 builtin and then its argument prototype would still apply. */
11634 /* The GNU C library defines this for functions which it implements
11635 to always fail with ENOSYS. Some functions are actually named
11636 something starting with __ and the normal name is an alias. */
11637 #if defined __stub_$ac_func || defined __stub___$ac_func
11644 return $ac_func ();
11649 rm -f conftest.$ac_objext conftest$ac_exeext
11650 if { (ac_try="$ac_link"
11651 case "(($ac_try" in
11652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11653 *) ac_try_echo=$ac_try;;
11655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11656 (eval "$ac_link") 2>conftest.er1
11658 grep -v '^ *+' conftest.er1 >conftest.err
11660 cat conftest.err >&5
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); } &&
11663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11664 { (case "(($ac_try" in
11665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11666 *) ac_try_echo=$ac_try;;
11668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11669 (eval "$ac_try") 2>&5
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); }; } &&
11673 { ac_try='test -s conftest$ac_exeext'
11674 { (case "(($ac_try" in
11675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11676 *) ac_try_echo=$ac_try;;
11678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11679 (eval "$ac_try") 2>&5
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); }; }; then
11683 eval "$as_ac_var=yes"
11685 echo "$as_me: failed program was:" >&5
11686 sed 's/^/| /' conftest.$ac_ext >&5
11688 eval "$as_ac_var=no"
11691 rm -f core conftest.err conftest.$ac_objext \
11692 conftest$ac_exeext conftest.$ac_ext
11694 ac_res=`eval echo '${'$as_ac_var'}'`
11695 { echo "$as_me:$LINENO: result: $ac_res" >&5
11696 echo "${ECHO_T}$ac_res" >&6; }
11697 if test `eval echo '${'$as_ac_var'}'` = yes; then
11698 cat >>confdefs.h <<_ACEOF
11699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11707 for ac_func in strrchr rindex
11709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11710 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11712 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11713 echo $ECHO_N "(cached) $ECHO_C" >&6
11715 cat >conftest.$ac_ext <<_ACEOF
11718 cat confdefs.h >>conftest.$ac_ext
11719 cat >>conftest.$ac_ext <<_ACEOF
11720 /* end confdefs.h. */
11721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11723 #define $ac_func innocuous_$ac_func
11725 /* System header to define __stub macros and hopefully few prototypes,
11726 which can conflict with char $ac_func (); below.
11727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11728 <limits.h> exists even on freestanding compilers. */
11731 # include <limits.h>
11733 # include <assert.h>
11738 /* Override any GCC internal prototype to avoid an error.
11739 Use char because int might match the return type of a GCC
11740 builtin and then its argument prototype would still apply. */
11745 /* The GNU C library defines this for functions which it implements
11746 to always fail with ENOSYS. Some functions are actually named
11747 something starting with __ and the normal name is an alias. */
11748 #if defined __stub_$ac_func || defined __stub___$ac_func
11755 return $ac_func ();
11760 rm -f conftest.$ac_objext conftest$ac_exeext
11761 if { (ac_try="$ac_link"
11762 case "(($ac_try" in
11763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11764 *) ac_try_echo=$ac_try;;
11766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11767 (eval "$ac_link") 2>conftest.er1
11769 grep -v '^ *+' conftest.er1 >conftest.err
11771 cat conftest.err >&5
11772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773 (exit $ac_status); } &&
11774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11775 { (case "(($ac_try" in
11776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11777 *) ac_try_echo=$ac_try;;
11779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11780 (eval "$ac_try") 2>&5
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); }; } &&
11784 { ac_try='test -s conftest$ac_exeext'
11785 { (case "(($ac_try" in
11786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11787 *) ac_try_echo=$ac_try;;
11789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11790 (eval "$ac_try") 2>&5
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); }; }; then
11794 eval "$as_ac_var=yes"
11796 echo "$as_me: failed program was:" >&5
11797 sed 's/^/| /' conftest.$ac_ext >&5
11799 eval "$as_ac_var=no"
11802 rm -f core conftest.err conftest.$ac_objext \
11803 conftest$ac_exeext conftest.$ac_ext
11805 ac_res=`eval echo '${'$as_ac_var'}'`
11806 { echo "$as_me:$LINENO: result: $ac_res" >&5
11807 echo "${ECHO_T}$ac_res" >&6; }
11808 if test `eval echo '${'$as_ac_var'}'` = yes; then
11809 cat >>confdefs.h <<_ACEOF
11810 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11818 for ac_func in memcpy bcopy
11820 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11821 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11822 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11823 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11824 echo $ECHO_N "(cached) $ECHO_C" >&6
11826 cat >conftest.$ac_ext <<_ACEOF
11829 cat confdefs.h >>conftest.$ac_ext
11830 cat >>conftest.$ac_ext <<_ACEOF
11831 /* end confdefs.h. */
11832 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11834 #define $ac_func innocuous_$ac_func
11836 /* System header to define __stub macros and hopefully few prototypes,
11837 which can conflict with char $ac_func (); below.
11838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11839 <limits.h> exists even on freestanding compilers. */
11842 # include <limits.h>
11844 # include <assert.h>
11849 /* Override any GCC internal prototype to avoid an error.
11850 Use char because int might match the return type of a GCC
11851 builtin and then its argument prototype would still apply. */
11856 /* The GNU C library defines this for functions which it implements
11857 to always fail with ENOSYS. Some functions are actually named
11858 something starting with __ and the normal name is an alias. */
11859 #if defined __stub_$ac_func || defined __stub___$ac_func
11866 return $ac_func ();
11871 rm -f conftest.$ac_objext conftest$ac_exeext
11872 if { (ac_try="$ac_link"
11873 case "(($ac_try" in
11874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11875 *) ac_try_echo=$ac_try;;
11877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11878 (eval "$ac_link") 2>conftest.er1
11880 grep -v '^ *+' conftest.er1 >conftest.err
11882 cat conftest.err >&5
11883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); } &&
11885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11886 { (case "(($ac_try" in
11887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11888 *) ac_try_echo=$ac_try;;
11890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11891 (eval "$ac_try") 2>&5
11893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894 (exit $ac_status); }; } &&
11895 { ac_try='test -s conftest$ac_exeext'
11896 { (case "(($ac_try" in
11897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11898 *) ac_try_echo=$ac_try;;
11900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11901 (eval "$ac_try") 2>&5
11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); }; }; then
11905 eval "$as_ac_var=yes"
11907 echo "$as_me: failed program was:" >&5
11908 sed 's/^/| /' conftest.$ac_ext >&5
11910 eval "$as_ac_var=no"
11913 rm -f core conftest.err conftest.$ac_objext \
11914 conftest$ac_exeext conftest.$ac_ext
11916 ac_res=`eval echo '${'$as_ac_var'}'`
11917 { echo "$as_me:$LINENO: result: $ac_res" >&5
11918 echo "${ECHO_T}$ac_res" >&6; }
11919 if test `eval echo '${'$as_ac_var'}'` = yes; then
11920 cat >>confdefs.h <<_ACEOF
11921 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11929 for ac_func in memmove strcmp
11931 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11932 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11933 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11934 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11935 echo $ECHO_N "(cached) $ECHO_C" >&6
11937 cat >conftest.$ac_ext <<_ACEOF
11940 cat confdefs.h >>conftest.$ac_ext
11941 cat >>conftest.$ac_ext <<_ACEOF
11942 /* end confdefs.h. */
11943 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11945 #define $ac_func innocuous_$ac_func
11947 /* System header to define __stub macros and hopefully few prototypes,
11948 which can conflict with char $ac_func (); below.
11949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11950 <limits.h> exists even on freestanding compilers. */
11953 # include <limits.h>
11955 # include <assert.h>
11960 /* Override any GCC internal prototype to avoid an error.
11961 Use char because int might match the return type of a GCC
11962 builtin and then its argument prototype would still apply. */
11967 /* The GNU C library defines this for functions which it implements
11968 to always fail with ENOSYS. Some functions are actually named
11969 something starting with __ and the normal name is an alias. */
11970 #if defined __stub_$ac_func || defined __stub___$ac_func
11977 return $ac_func ();
11982 rm -f conftest.$ac_objext conftest$ac_exeext
11983 if { (ac_try="$ac_link"
11984 case "(($ac_try" in
11985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11986 *) ac_try_echo=$ac_try;;
11988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11989 (eval "$ac_link") 2>conftest.er1
11991 grep -v '^ *+' conftest.er1 >conftest.err
11993 cat conftest.err >&5
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995 (exit $ac_status); } &&
11996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11997 { (case "(($ac_try" in
11998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11999 *) ac_try_echo=$ac_try;;
12001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12002 (eval "$ac_try") 2>&5
12004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005 (exit $ac_status); }; } &&
12006 { ac_try='test -s conftest$ac_exeext'
12007 { (case "(($ac_try" in
12008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12009 *) ac_try_echo=$ac_try;;
12011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12012 (eval "$ac_try") 2>&5
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); }; }; then
12016 eval "$as_ac_var=yes"
12018 echo "$as_me: failed program was:" >&5
12019 sed 's/^/| /' conftest.$ac_ext >&5
12021 eval "$as_ac_var=no"
12024 rm -f core conftest.err conftest.$ac_objext \
12025 conftest$ac_exeext conftest.$ac_ext
12027 ac_res=`eval echo '${'$as_ac_var'}'`
12028 { echo "$as_me:$LINENO: result: $ac_res" >&5
12029 echo "${ECHO_T}$ac_res" >&6; }
12030 if test `eval echo '${'$as_ac_var'}'` = yes; then
12031 cat >>confdefs.h <<_ACEOF
12032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12041 for ac_func in closedir opendir readdir
12043 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12044 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12045 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12046 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12047 echo $ECHO_N "(cached) $ECHO_C" >&6
12049 cat >conftest.$ac_ext <<_ACEOF
12052 cat confdefs.h >>conftest.$ac_ext
12053 cat >>conftest.$ac_ext <<_ACEOF
12054 /* end confdefs.h. */
12055 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12057 #define $ac_func innocuous_$ac_func
12059 /* System header to define __stub macros and hopefully few prototypes,
12060 which can conflict with char $ac_func (); below.
12061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12062 <limits.h> exists even on freestanding compilers. */
12065 # include <limits.h>
12067 # include <assert.h>
12072 /* Override any GCC internal prototype to avoid an error.
12073 Use char because int might match the return type of a GCC
12074 builtin and then its argument prototype would still apply. */
12079 /* The GNU C library defines this for functions which it implements
12080 to always fail with ENOSYS. Some functions are actually named
12081 something starting with __ and the normal name is an alias. */
12082 #if defined __stub_$ac_func || defined __stub___$ac_func
12089 return $ac_func ();
12094 rm -f conftest.$ac_objext conftest$ac_exeext
12095 if { (ac_try="$ac_link"
12096 case "(($ac_try" in
12097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12098 *) ac_try_echo=$ac_try;;
12100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12101 (eval "$ac_link") 2>conftest.er1
12103 grep -v '^ *+' conftest.er1 >conftest.err
12105 cat conftest.err >&5
12106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107 (exit $ac_status); } &&
12108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12109 { (case "(($ac_try" in
12110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12111 *) ac_try_echo=$ac_try;;
12113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12114 (eval "$ac_try") 2>&5
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); }; } &&
12118 { ac_try='test -s conftest$ac_exeext'
12119 { (case "(($ac_try" in
12120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12121 *) ac_try_echo=$ac_try;;
12123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12124 (eval "$ac_try") 2>&5
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); }; }; then
12128 eval "$as_ac_var=yes"
12130 echo "$as_me: failed program was:" >&5
12131 sed 's/^/| /' conftest.$ac_ext >&5
12133 eval "$as_ac_var=no"
12136 rm -f core conftest.err conftest.$ac_objext \
12137 conftest$ac_exeext conftest.$ac_ext
12139 ac_res=`eval echo '${'$as_ac_var'}'`
12140 { echo "$as_me:$LINENO: result: $ac_res" >&5
12141 echo "${ECHO_T}$ac_res" >&6; }
12142 if test `eval echo '${'$as_ac_var'}'` = yes; then
12143 cat >>confdefs.h <<_ACEOF
12144 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12152 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12153 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12166 if test "$GCC" != "yes" && test "$ICC" != "yes"
12168 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12169 echo "$as_me: error: gcc|icc required but not found" >&2;}
12170 { (exit 1); exit 1; }; }
12173 if test "$GXX" != "yes" && test "$IXX" != "yes"
12175 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12176 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12177 { (exit 1); exit 1; }; }
12180 if test "$GCC" = "yes"
12182 cat >conftest.$ac_ext <<_ACEOF
12183 #if !defined(__GNUC__) || __GNUC__ < 3
12184 #error Unsupported GCC version
12188 rm -f conftest.$ac_objext
12189 if { (ac_try="$ac_compile"
12190 case "(($ac_try" in
12191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12192 *) ac_try_echo=$ac_try;;
12194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12195 (eval "$ac_compile") 2>conftest.er1
12197 grep -v '^ *+' conftest.er1 >conftest.err
12199 cat conftest.err >&5
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); } &&
12202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12203 { (case "(($ac_try" in
12204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12205 *) ac_try_echo=$ac_try;;
12207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12208 (eval "$ac_try") 2>&5
12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); }; } &&
12212 { ac_try='test -s conftest.$ac_objext'
12213 { (case "(($ac_try" in
12214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12215 *) ac_try_echo=$ac_try;;
12217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12218 (eval "$ac_try") 2>&5
12220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221 (exit $ac_status); }; }; then
12224 echo "$as_me: failed program was:" >&5
12225 sed 's/^/| /' conftest.$ac_ext >&5
12227 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12228 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12229 { (exit 1); exit 1; }; }
12232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12235 if test -z "$llvm_cv_gnu_make_command"
12237 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12238 echo "$as_me: error: GNU Make required but not found" >&2;}
12239 { (exit 1); exit 1; }; }
12242 { echo "$as_me:$LINENO: result: ok" >&5
12243 echo "${ECHO_T}ok" >&6; }
12245 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12246 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12247 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12249 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12251 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12252 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12256 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12257 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12258 if test "${ac_cv_lib_m_sin+set}" = set; then
12259 echo $ECHO_N "(cached) $ECHO_C" >&6
12261 ac_check_lib_save_LIBS=$LIBS
12263 cat >conftest.$ac_ext <<_ACEOF
12266 cat confdefs.h >>conftest.$ac_ext
12267 cat >>conftest.$ac_ext <<_ACEOF
12268 /* end confdefs.h. */
12270 /* Override any GCC internal prototype to avoid an error.
12271 Use char because int might match the return type of a GCC
12272 builtin and then its argument prototype would still apply. */
12285 rm -f conftest.$ac_objext conftest$ac_exeext
12286 if { (ac_try="$ac_link"
12287 case "(($ac_try" in
12288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12289 *) ac_try_echo=$ac_try;;
12291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12292 (eval "$ac_link") 2>conftest.er1
12294 grep -v '^ *+' conftest.er1 >conftest.err
12296 cat conftest.err >&5
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); } &&
12299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12300 { (case "(($ac_try" in
12301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12302 *) ac_try_echo=$ac_try;;
12304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12305 (eval "$ac_try") 2>&5
12307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308 (exit $ac_status); }; } &&
12309 { ac_try='test -s conftest$ac_exeext'
12310 { (case "(($ac_try" in
12311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12312 *) ac_try_echo=$ac_try;;
12314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12315 (eval "$ac_try") 2>&5
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); }; }; then
12319 ac_cv_lib_m_sin=yes
12321 echo "$as_me: failed program was:" >&5
12322 sed 's/^/| /' conftest.$ac_ext >&5
12327 rm -f core conftest.err conftest.$ac_objext \
12328 conftest$ac_exeext conftest.$ac_ext
12329 LIBS=$ac_check_lib_save_LIBS
12331 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12332 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12333 if test $ac_cv_lib_m_sin = yes; then
12334 cat >>confdefs.h <<_ACEOF
12335 #define HAVE_LIBM 1
12342 if test "$llvm_cv_os_type" = "MingW" ; then
12344 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12345 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12346 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12347 echo $ECHO_N "(cached) $ECHO_C" >&6
12349 ac_check_lib_save_LIBS=$LIBS
12350 LIBS="-limagehlp $LIBS"
12351 cat >conftest.$ac_ext <<_ACEOF
12354 cat confdefs.h >>conftest.$ac_ext
12355 cat >>conftest.$ac_ext <<_ACEOF
12356 /* end confdefs.h. */
12367 rm -f conftest.$ac_objext conftest$ac_exeext
12368 if { (ac_try="$ac_link"
12369 case "(($ac_try" in
12370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12371 *) ac_try_echo=$ac_try;;
12373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12374 (eval "$ac_link") 2>conftest.er1
12376 grep -v '^ *+' conftest.er1 >conftest.err
12378 cat conftest.err >&5
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); } &&
12381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12382 { (case "(($ac_try" in
12383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12384 *) ac_try_echo=$ac_try;;
12386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12387 (eval "$ac_try") 2>&5
12389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390 (exit $ac_status); }; } &&
12391 { ac_try='test -s conftest$ac_exeext'
12392 { (case "(($ac_try" in
12393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12394 *) ac_try_echo=$ac_try;;
12396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12397 (eval "$ac_try") 2>&5
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); }; }; then
12401 ac_cv_lib_imagehlp_main=yes
12403 echo "$as_me: failed program was:" >&5
12404 sed 's/^/| /' conftest.$ac_ext >&5
12406 ac_cv_lib_imagehlp_main=no
12409 rm -f core conftest.err conftest.$ac_objext \
12410 conftest$ac_exeext conftest.$ac_ext
12411 LIBS=$ac_check_lib_save_LIBS
12413 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12414 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12415 if test $ac_cv_lib_imagehlp_main = yes; then
12416 cat >>confdefs.h <<_ACEOF
12417 #define HAVE_LIBIMAGEHLP 1
12420 LIBS="-limagehlp $LIBS"
12425 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12426 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12427 if test "${ac_cv_lib_psapi_main+set}" = set; then
12428 echo $ECHO_N "(cached) $ECHO_C" >&6
12430 ac_check_lib_save_LIBS=$LIBS
12431 LIBS="-lpsapi $LIBS"
12432 cat >conftest.$ac_ext <<_ACEOF
12435 cat confdefs.h >>conftest.$ac_ext
12436 cat >>conftest.$ac_ext <<_ACEOF
12437 /* end confdefs.h. */
12448 rm -f conftest.$ac_objext conftest$ac_exeext
12449 if { (ac_try="$ac_link"
12450 case "(($ac_try" in
12451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12452 *) ac_try_echo=$ac_try;;
12454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12455 (eval "$ac_link") 2>conftest.er1
12457 grep -v '^ *+' conftest.er1 >conftest.err
12459 cat conftest.err >&5
12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 (exit $ac_status); } &&
12462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12463 { (case "(($ac_try" in
12464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12465 *) ac_try_echo=$ac_try;;
12467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12468 (eval "$ac_try") 2>&5
12470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471 (exit $ac_status); }; } &&
12472 { ac_try='test -s conftest$ac_exeext'
12473 { (case "(($ac_try" in
12474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12475 *) ac_try_echo=$ac_try;;
12477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12478 (eval "$ac_try") 2>&5
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); }; }; then
12482 ac_cv_lib_psapi_main=yes
12484 echo "$as_me: failed program was:" >&5
12485 sed 's/^/| /' conftest.$ac_ext >&5
12487 ac_cv_lib_psapi_main=no
12490 rm -f core conftest.err conftest.$ac_objext \
12491 conftest$ac_exeext conftest.$ac_ext
12492 LIBS=$ac_check_lib_save_LIBS
12494 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12495 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12496 if test $ac_cv_lib_psapi_main = yes; then
12497 cat >>confdefs.h <<_ACEOF
12498 #define HAVE_LIBPSAPI 1
12501 LIBS="-lpsapi $LIBS"
12507 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12508 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12509 if test "${ac_cv_search_dlopen+set}" = set; then
12510 echo $ECHO_N "(cached) $ECHO_C" >&6
12512 ac_func_search_save_LIBS=$LIBS
12513 cat >conftest.$ac_ext <<_ACEOF
12516 cat confdefs.h >>conftest.$ac_ext
12517 cat >>conftest.$ac_ext <<_ACEOF
12518 /* end confdefs.h. */
12520 /* Override any GCC internal prototype to avoid an error.
12521 Use char because int might match the return type of a GCC
12522 builtin and then its argument prototype would still apply. */
12535 for ac_lib in '' dl; do
12536 if test -z "$ac_lib"; then
12537 ac_res="none required"
12540 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12542 rm -f conftest.$ac_objext conftest$ac_exeext
12543 if { (ac_try="$ac_link"
12544 case "(($ac_try" in
12545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12546 *) ac_try_echo=$ac_try;;
12548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12549 (eval "$ac_link") 2>conftest.er1
12551 grep -v '^ *+' conftest.er1 >conftest.err
12553 cat conftest.err >&5
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); } &&
12556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12557 { (case "(($ac_try" in
12558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12559 *) ac_try_echo=$ac_try;;
12561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12562 (eval "$ac_try") 2>&5
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); }; } &&
12566 { ac_try='test -s conftest$ac_exeext'
12567 { (case "(($ac_try" in
12568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12569 *) ac_try_echo=$ac_try;;
12571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12572 (eval "$ac_try") 2>&5
12574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575 (exit $ac_status); }; }; then
12576 ac_cv_search_dlopen=$ac_res
12578 echo "$as_me: failed program was:" >&5
12579 sed 's/^/| /' conftest.$ac_ext >&5
12584 rm -f core conftest.err conftest.$ac_objext \
12586 if test "${ac_cv_search_dlopen+set}" = set; then
12590 if test "${ac_cv_search_dlopen+set}" = set; then
12593 ac_cv_search_dlopen=no
12595 rm conftest.$ac_ext
12596 LIBS=$ac_func_search_save_LIBS
12598 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12599 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12600 ac_res=$ac_cv_search_dlopen
12601 if test "$ac_res" != no; then
12602 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12604 cat >>confdefs.h <<\_ACEOF
12605 #define HAVE_DLOPEN 1
12609 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12610 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12614 if test "$llvm_cv_enable_libffi" = "yes" ; then
12615 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12616 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12617 if test "${ac_cv_search_ffi_call+set}" = set; then
12618 echo $ECHO_N "(cached) $ECHO_C" >&6
12620 ac_func_search_save_LIBS=$LIBS
12621 cat >conftest.$ac_ext <<_ACEOF
12624 cat confdefs.h >>conftest.$ac_ext
12625 cat >>conftest.$ac_ext <<_ACEOF
12626 /* end confdefs.h. */
12628 /* Override any GCC internal prototype to avoid an error.
12629 Use char because int might match the return type of a GCC
12630 builtin and then its argument prototype would still apply. */
12638 return ffi_call ();
12643 for ac_lib in '' ffi; do
12644 if test -z "$ac_lib"; then
12645 ac_res="none required"
12648 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12650 rm -f conftest.$ac_objext conftest$ac_exeext
12651 if { (ac_try="$ac_link"
12652 case "(($ac_try" in
12653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12654 *) ac_try_echo=$ac_try;;
12656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12657 (eval "$ac_link") 2>conftest.er1
12659 grep -v '^ *+' conftest.er1 >conftest.err
12661 cat conftest.err >&5
12662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663 (exit $ac_status); } &&
12664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12665 { (case "(($ac_try" in
12666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12667 *) ac_try_echo=$ac_try;;
12669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12670 (eval "$ac_try") 2>&5
12672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); }; } &&
12674 { ac_try='test -s conftest$ac_exeext'
12675 { (case "(($ac_try" in
12676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12677 *) ac_try_echo=$ac_try;;
12679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12680 (eval "$ac_try") 2>&5
12682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 (exit $ac_status); }; }; then
12684 ac_cv_search_ffi_call=$ac_res
12686 echo "$as_me: failed program was:" >&5
12687 sed 's/^/| /' conftest.$ac_ext >&5
12692 rm -f core conftest.err conftest.$ac_objext \
12694 if test "${ac_cv_search_ffi_call+set}" = set; then
12698 if test "${ac_cv_search_ffi_call+set}" = set; then
12701 ac_cv_search_ffi_call=no
12703 rm conftest.$ac_ext
12704 LIBS=$ac_func_search_save_LIBS
12706 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12707 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12708 ac_res=$ac_cv_search_ffi_call
12709 if test "$ac_res" != no; then
12710 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12712 cat >>confdefs.h <<\_ACEOF
12713 #define HAVE_FFI_CALL 1
12717 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12718 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12719 { (exit 1); exit 1; }; }
12724 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12725 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12726 if test "${ac_cv_search_mallinfo+set}" = set; then
12727 echo $ECHO_N "(cached) $ECHO_C" >&6
12729 ac_func_search_save_LIBS=$LIBS
12730 cat >conftest.$ac_ext <<_ACEOF
12733 cat confdefs.h >>conftest.$ac_ext
12734 cat >>conftest.$ac_ext <<_ACEOF
12735 /* end confdefs.h. */
12737 /* Override any GCC internal prototype to avoid an error.
12738 Use char because int might match the return type of a GCC
12739 builtin and then its argument prototype would still apply. */
12747 return mallinfo ();
12752 for ac_lib in '' malloc; do
12753 if test -z "$ac_lib"; then
12754 ac_res="none required"
12757 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12759 rm -f conftest.$ac_objext conftest$ac_exeext
12760 if { (ac_try="$ac_link"
12761 case "(($ac_try" in
12762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12763 *) ac_try_echo=$ac_try;;
12765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12766 (eval "$ac_link") 2>conftest.er1
12768 grep -v '^ *+' conftest.er1 >conftest.err
12770 cat conftest.err >&5
12771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); } &&
12773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12774 { (case "(($ac_try" in
12775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12776 *) ac_try_echo=$ac_try;;
12778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12779 (eval "$ac_try") 2>&5
12781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); }; } &&
12783 { ac_try='test -s conftest$ac_exeext'
12784 { (case "(($ac_try" in
12785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12786 *) ac_try_echo=$ac_try;;
12788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12789 (eval "$ac_try") 2>&5
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); }; }; then
12793 ac_cv_search_mallinfo=$ac_res
12795 echo "$as_me: failed program was:" >&5
12796 sed 's/^/| /' conftest.$ac_ext >&5
12801 rm -f core conftest.err conftest.$ac_objext \
12803 if test "${ac_cv_search_mallinfo+set}" = set; then
12807 if test "${ac_cv_search_mallinfo+set}" = set; then
12810 ac_cv_search_mallinfo=no
12812 rm conftest.$ac_ext
12813 LIBS=$ac_func_search_save_LIBS
12815 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12816 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12817 ac_res=$ac_cv_search_mallinfo
12818 if test "$ac_res" != no; then
12819 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12821 cat >>confdefs.h <<\_ACEOF
12822 #define HAVE_MALLINFO 1
12828 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12830 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12831 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12832 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12833 echo $ECHO_N "(cached) $ECHO_C" >&6
12835 ac_check_lib_save_LIBS=$LIBS
12836 LIBS="-lpthread $LIBS"
12837 cat >conftest.$ac_ext <<_ACEOF
12840 cat confdefs.h >>conftest.$ac_ext
12841 cat >>conftest.$ac_ext <<_ACEOF
12842 /* end confdefs.h. */
12844 /* Override any GCC internal prototype to avoid an error.
12845 Use char because int might match the return type of a GCC
12846 builtin and then its argument prototype would still apply. */
12850 char pthread_mutex_init ();
12854 return pthread_mutex_init ();
12859 rm -f conftest.$ac_objext conftest$ac_exeext
12860 if { (ac_try="$ac_link"
12861 case "(($ac_try" in
12862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12863 *) ac_try_echo=$ac_try;;
12865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12866 (eval "$ac_link") 2>conftest.er1
12868 grep -v '^ *+' conftest.er1 >conftest.err
12870 cat conftest.err >&5
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); } &&
12873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12874 { (case "(($ac_try" in
12875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12876 *) ac_try_echo=$ac_try;;
12878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12879 (eval "$ac_try") 2>&5
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); }; } &&
12883 { ac_try='test -s conftest$ac_exeext'
12884 { (case "(($ac_try" in
12885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12886 *) ac_try_echo=$ac_try;;
12888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12889 (eval "$ac_try") 2>&5
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); }; }; then
12893 ac_cv_lib_pthread_pthread_mutex_init=yes
12895 echo "$as_me: failed program was:" >&5
12896 sed 's/^/| /' conftest.$ac_ext >&5
12898 ac_cv_lib_pthread_pthread_mutex_init=no
12901 rm -f core conftest.err conftest.$ac_objext \
12902 conftest$ac_exeext conftest.$ac_ext
12903 LIBS=$ac_check_lib_save_LIBS
12905 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12906 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12907 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12908 cat >>confdefs.h <<_ACEOF
12909 #define HAVE_LIBPTHREAD 1
12912 LIBS="-lpthread $LIBS"
12916 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12917 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12918 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12919 echo $ECHO_N "(cached) $ECHO_C" >&6
12921 ac_func_search_save_LIBS=$LIBS
12922 cat >conftest.$ac_ext <<_ACEOF
12925 cat confdefs.h >>conftest.$ac_ext
12926 cat >>conftest.$ac_ext <<_ACEOF
12927 /* end confdefs.h. */
12929 /* Override any GCC internal prototype to avoid an error.
12930 Use char because int might match the return type of a GCC
12931 builtin and then its argument prototype would still apply. */
12935 char pthread_mutex_lock ();
12939 return pthread_mutex_lock ();
12944 for ac_lib in '' pthread; do
12945 if test -z "$ac_lib"; then
12946 ac_res="none required"
12949 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12951 rm -f conftest.$ac_objext conftest$ac_exeext
12952 if { (ac_try="$ac_link"
12953 case "(($ac_try" in
12954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12955 *) ac_try_echo=$ac_try;;
12957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12958 (eval "$ac_link") 2>conftest.er1
12960 grep -v '^ *+' conftest.er1 >conftest.err
12962 cat conftest.err >&5
12963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964 (exit $ac_status); } &&
12965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12966 { (case "(($ac_try" in
12967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12968 *) ac_try_echo=$ac_try;;
12970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12971 (eval "$ac_try") 2>&5
12973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 (exit $ac_status); }; } &&
12975 { ac_try='test -s conftest$ac_exeext'
12976 { (case "(($ac_try" in
12977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12978 *) ac_try_echo=$ac_try;;
12980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12981 (eval "$ac_try") 2>&5
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); }; }; then
12985 ac_cv_search_pthread_mutex_lock=$ac_res
12987 echo "$as_me: failed program was:" >&5
12988 sed 's/^/| /' conftest.$ac_ext >&5
12993 rm -f core conftest.err conftest.$ac_objext \
12995 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12999 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13002 ac_cv_search_pthread_mutex_lock=no
13004 rm conftest.$ac_ext
13005 LIBS=$ac_func_search_save_LIBS
13007 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13008 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13009 ac_res=$ac_cv_search_pthread_mutex_lock
13010 if test "$ac_res" != no; then
13011 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13013 cat >>confdefs.h <<\_ACEOF
13014 #define HAVE_PTHREAD_MUTEX_LOCK 1
13019 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13020 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13021 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13022 echo $ECHO_N "(cached) $ECHO_C" >&6
13024 ac_func_search_save_LIBS=$LIBS
13025 cat >conftest.$ac_ext <<_ACEOF
13028 cat confdefs.h >>conftest.$ac_ext
13029 cat >>conftest.$ac_ext <<_ACEOF
13030 /* end confdefs.h. */
13032 /* Override any GCC internal prototype to avoid an error.
13033 Use char because int might match the return type of a GCC
13034 builtin and then its argument prototype would still apply. */
13038 char pthread_rwlock_init ();
13042 return pthread_rwlock_init ();
13047 for ac_lib in '' pthread; do
13048 if test -z "$ac_lib"; then
13049 ac_res="none required"
13052 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13054 rm -f conftest.$ac_objext conftest$ac_exeext
13055 if { (ac_try="$ac_link"
13056 case "(($ac_try" in
13057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13058 *) ac_try_echo=$ac_try;;
13060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13061 (eval "$ac_link") 2>conftest.er1
13063 grep -v '^ *+' conftest.er1 >conftest.err
13065 cat conftest.err >&5
13066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067 (exit $ac_status); } &&
13068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13069 { (case "(($ac_try" in
13070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13071 *) ac_try_echo=$ac_try;;
13073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13074 (eval "$ac_try") 2>&5
13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 (exit $ac_status); }; } &&
13078 { ac_try='test -s conftest$ac_exeext'
13079 { (case "(($ac_try" in
13080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13081 *) ac_try_echo=$ac_try;;
13083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13084 (eval "$ac_try") 2>&5
13086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087 (exit $ac_status); }; }; then
13088 ac_cv_search_pthread_rwlock_init=$ac_res
13090 echo "$as_me: failed program was:" >&5
13091 sed 's/^/| /' conftest.$ac_ext >&5
13096 rm -f core conftest.err conftest.$ac_objext \
13098 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13102 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13105 ac_cv_search_pthread_rwlock_init=no
13107 rm conftest.$ac_ext
13108 LIBS=$ac_func_search_save_LIBS
13110 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13111 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13112 ac_res=$ac_cv_search_pthread_rwlock_init
13113 if test "$ac_res" != no; then
13114 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13116 cat >>confdefs.h <<\_ACEOF
13117 #define HAVE_PTHREAD_RWLOCK_INIT 1
13122 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13123 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13124 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13125 echo $ECHO_N "(cached) $ECHO_C" >&6
13127 ac_func_search_save_LIBS=$LIBS
13128 cat >conftest.$ac_ext <<_ACEOF
13131 cat confdefs.h >>conftest.$ac_ext
13132 cat >>conftest.$ac_ext <<_ACEOF
13133 /* end confdefs.h. */
13135 /* Override any GCC internal prototype to avoid an error.
13136 Use char because int might match the return type of a GCC
13137 builtin and then its argument prototype would still apply. */
13141 char pthread_getspecific ();
13145 return pthread_getspecific ();
13150 for ac_lib in '' pthread; do
13151 if test -z "$ac_lib"; then
13152 ac_res="none required"
13155 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13157 rm -f conftest.$ac_objext conftest$ac_exeext
13158 if { (ac_try="$ac_link"
13159 case "(($ac_try" in
13160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13161 *) ac_try_echo=$ac_try;;
13163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13164 (eval "$ac_link") 2>conftest.er1
13166 grep -v '^ *+' conftest.er1 >conftest.err
13168 cat conftest.err >&5
13169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170 (exit $ac_status); } &&
13171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13172 { (case "(($ac_try" in
13173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13174 *) ac_try_echo=$ac_try;;
13176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13177 (eval "$ac_try") 2>&5
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); }; } &&
13181 { ac_try='test -s conftest$ac_exeext'
13182 { (case "(($ac_try" in
13183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13184 *) ac_try_echo=$ac_try;;
13186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13187 (eval "$ac_try") 2>&5
13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 (exit $ac_status); }; }; then
13191 ac_cv_search_pthread_getspecific=$ac_res
13193 echo "$as_me: failed program was:" >&5
13194 sed 's/^/| /' conftest.$ac_ext >&5
13199 rm -f core conftest.err conftest.$ac_objext \
13201 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13205 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13208 ac_cv_search_pthread_getspecific=no
13210 rm conftest.$ac_ext
13211 LIBS=$ac_func_search_save_LIBS
13213 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13214 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13215 ac_res=$ac_cv_search_pthread_getspecific
13216 if test "$ac_res" != no; then
13217 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13219 cat >>confdefs.h <<\_ACEOF
13220 #define HAVE_PTHREAD_GETSPECIFIC 1
13228 # Check whether --with-udis86 was given.
13229 if test "${with_udis86+set}" = set; then
13230 withval=$with_udis86;
13235 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13238 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13239 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13240 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13241 echo $ECHO_N "(cached) $ECHO_C" >&6
13243 ac_check_lib_save_LIBS=$LIBS
13244 LIBS="-ludis86 $LIBS"
13245 cat >conftest.$ac_ext <<_ACEOF
13248 cat confdefs.h >>conftest.$ac_ext
13249 cat >>conftest.$ac_ext <<_ACEOF
13250 /* end confdefs.h. */
13252 /* Override any GCC internal prototype to avoid an error.
13253 Use char because int might match the return type of a GCC
13254 builtin and then its argument prototype would still apply. */
13267 rm -f conftest.$ac_objext conftest$ac_exeext
13268 if { (ac_try="$ac_link"
13269 case "(($ac_try" in
13270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13271 *) ac_try_echo=$ac_try;;
13273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13274 (eval "$ac_link") 2>conftest.er1
13276 grep -v '^ *+' conftest.er1 >conftest.err
13278 cat conftest.err >&5
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); } &&
13281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13282 { (case "(($ac_try" in
13283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13284 *) ac_try_echo=$ac_try;;
13286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13287 (eval "$ac_try") 2>&5
13289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290 (exit $ac_status); }; } &&
13291 { ac_try='test -s conftest$ac_exeext'
13292 { (case "(($ac_try" in
13293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13294 *) ac_try_echo=$ac_try;;
13296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13297 (eval "$ac_try") 2>&5
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); }; }; then
13301 ac_cv_lib_udis86_ud_init=yes
13303 echo "$as_me: failed program was:" >&5
13304 sed 's/^/| /' conftest.$ac_ext >&5
13306 ac_cv_lib_udis86_ud_init=no
13309 rm -f core conftest.err conftest.$ac_objext \
13310 conftest$ac_exeext conftest.$ac_ext
13311 LIBS=$ac_check_lib_save_LIBS
13313 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13314 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13315 if test $ac_cv_lib_udis86_ud_init = yes; then
13316 cat >>confdefs.h <<_ACEOF
13317 #define HAVE_LIBUDIS86 1
13320 LIBS="-ludis86 $LIBS"
13324 echo "Error! You need to have libudis86 around."
13336 cat >>confdefs.h <<_ACEOF
13337 #define USE_UDIS86 $USE_UDIS86
13342 # Check whether --with-oprofile was given.
13343 if test "${with_oprofile+set}" = set; then
13344 withval=$with_oprofile;
13348 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13349 no) llvm_cv_oppath=
13352 *) llvm_cv_oppath="${withval}/lib/oprofile"
13353 CPPFLAGS="-I${withval}/include";;
13355 if test -n "$llvm_cv_oppath" ; then
13356 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13357 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13358 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13359 if test "${ac_cv_search_bfd_init+set}" = set; then
13360 echo $ECHO_N "(cached) $ECHO_C" >&6
13362 ac_func_search_save_LIBS=$LIBS
13363 cat >conftest.$ac_ext <<_ACEOF
13366 cat confdefs.h >>conftest.$ac_ext
13367 cat >>conftest.$ac_ext <<_ACEOF
13368 /* end confdefs.h. */
13370 /* Override any GCC internal prototype to avoid an error.
13371 Use char because int might match the return type of a GCC
13372 builtin and then its argument prototype would still apply. */
13380 return bfd_init ();
13385 for ac_lib in '' bfd; do
13386 if test -z "$ac_lib"; then
13387 ac_res="none required"
13390 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13392 rm -f conftest.$ac_objext conftest$ac_exeext
13393 if { (ac_try="$ac_link"
13394 case "(($ac_try" in
13395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13396 *) ac_try_echo=$ac_try;;
13398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13399 (eval "$ac_link") 2>conftest.er1
13401 grep -v '^ *+' conftest.er1 >conftest.err
13403 cat conftest.err >&5
13404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405 (exit $ac_status); } &&
13406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13407 { (case "(($ac_try" in
13408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13409 *) ac_try_echo=$ac_try;;
13411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13412 (eval "$ac_try") 2>&5
13414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); }; } &&
13416 { ac_try='test -s conftest$ac_exeext'
13417 { (case "(($ac_try" in
13418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13419 *) ac_try_echo=$ac_try;;
13421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13422 (eval "$ac_try") 2>&5
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); }; }; then
13426 ac_cv_search_bfd_init=$ac_res
13428 echo "$as_me: failed program was:" >&5
13429 sed 's/^/| /' conftest.$ac_ext >&5
13434 rm -f core conftest.err conftest.$ac_objext \
13436 if test "${ac_cv_search_bfd_init+set}" = set; then
13440 if test "${ac_cv_search_bfd_init+set}" = set; then
13443 ac_cv_search_bfd_init=no
13445 rm conftest.$ac_ext
13446 LIBS=$ac_func_search_save_LIBS
13448 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13449 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13450 ac_res=$ac_cv_search_bfd_init
13451 if test "$ac_res" != no; then
13452 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13456 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13457 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13458 if test "${ac_cv_search_op_open_agent+set}" = set; then
13459 echo $ECHO_N "(cached) $ECHO_C" >&6
13461 ac_func_search_save_LIBS=$LIBS
13462 cat >conftest.$ac_ext <<_ACEOF
13465 cat confdefs.h >>conftest.$ac_ext
13466 cat >>conftest.$ac_ext <<_ACEOF
13467 /* end confdefs.h. */
13469 /* Override any GCC internal prototype to avoid an error.
13470 Use char because int might match the return type of a GCC
13471 builtin and then its argument prototype would still apply. */
13475 char op_open_agent ();
13479 return op_open_agent ();
13484 for ac_lib in '' opagent; do
13485 if test -z "$ac_lib"; then
13486 ac_res="none required"
13489 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13491 rm -f conftest.$ac_objext conftest$ac_exeext
13492 if { (ac_try="$ac_link"
13493 case "(($ac_try" in
13494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13495 *) ac_try_echo=$ac_try;;
13497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13498 (eval "$ac_link") 2>conftest.er1
13500 grep -v '^ *+' conftest.er1 >conftest.err
13502 cat conftest.err >&5
13503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504 (exit $ac_status); } &&
13505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13506 { (case "(($ac_try" in
13507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13508 *) ac_try_echo=$ac_try;;
13510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13511 (eval "$ac_try") 2>&5
13513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514 (exit $ac_status); }; } &&
13515 { ac_try='test -s conftest$ac_exeext'
13516 { (case "(($ac_try" in
13517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13518 *) ac_try_echo=$ac_try;;
13520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13521 (eval "$ac_try") 2>&5
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); }; }; then
13525 ac_cv_search_op_open_agent=$ac_res
13527 echo "$as_me: failed program was:" >&5
13528 sed 's/^/| /' conftest.$ac_ext >&5
13533 rm -f core conftest.err conftest.$ac_objext \
13535 if test "${ac_cv_search_op_open_agent+set}" = set; then
13539 if test "${ac_cv_search_op_open_agent+set}" = set; then
13542 ac_cv_search_op_open_agent=no
13544 rm conftest.$ac_ext
13545 LIBS=$ac_func_search_save_LIBS
13547 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13548 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13549 ac_res=$ac_cv_search_op_open_agent
13550 if test "$ac_res" != no; then
13551 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13555 echo "Error! You need to have libopagent around."
13560 if test "${ac_cv_header_opagent_h+set}" = set; then
13561 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13562 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13563 if test "${ac_cv_header_opagent_h+set}" = set; then
13564 echo $ECHO_N "(cached) $ECHO_C" >&6
13566 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13567 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13569 # Is the header compilable?
13570 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13571 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13572 cat >conftest.$ac_ext <<_ACEOF
13575 cat confdefs.h >>conftest.$ac_ext
13576 cat >>conftest.$ac_ext <<_ACEOF
13577 /* end confdefs.h. */
13578 $ac_includes_default
13579 #include <opagent.h>
13581 rm -f conftest.$ac_objext
13582 if { (ac_try="$ac_compile"
13583 case "(($ac_try" in
13584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13585 *) ac_try_echo=$ac_try;;
13587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13588 (eval "$ac_compile") 2>conftest.er1
13590 grep -v '^ *+' conftest.er1 >conftest.err
13592 cat conftest.err >&5
13593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594 (exit $ac_status); } &&
13595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13596 { (case "(($ac_try" in
13597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13598 *) ac_try_echo=$ac_try;;
13600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13601 (eval "$ac_try") 2>&5
13603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604 (exit $ac_status); }; } &&
13605 { ac_try='test -s conftest.$ac_objext'
13606 { (case "(($ac_try" in
13607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13608 *) ac_try_echo=$ac_try;;
13610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13611 (eval "$ac_try") 2>&5
13613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614 (exit $ac_status); }; }; then
13615 ac_header_compiler=yes
13617 echo "$as_me: failed program was:" >&5
13618 sed 's/^/| /' conftest.$ac_ext >&5
13620 ac_header_compiler=no
13623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13624 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13625 echo "${ECHO_T}$ac_header_compiler" >&6; }
13627 # Is the header present?
13628 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13629 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13630 cat >conftest.$ac_ext <<_ACEOF
13633 cat confdefs.h >>conftest.$ac_ext
13634 cat >>conftest.$ac_ext <<_ACEOF
13635 /* end confdefs.h. */
13636 #include <opagent.h>
13638 if { (ac_try="$ac_cpp conftest.$ac_ext"
13639 case "(($ac_try" in
13640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13641 *) ac_try_echo=$ac_try;;
13643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13646 grep -v '^ *+' conftest.er1 >conftest.err
13648 cat conftest.err >&5
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); } >/dev/null; then
13651 if test -s conftest.err; then
13652 ac_cpp_err=$ac_c_preproc_warn_flag
13653 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13660 if test -z "$ac_cpp_err"; then
13661 ac_header_preproc=yes
13663 echo "$as_me: failed program was:" >&5
13664 sed 's/^/| /' conftest.$ac_ext >&5
13666 ac_header_preproc=no
13669 rm -f conftest.err conftest.$ac_ext
13670 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13671 echo "${ECHO_T}$ac_header_preproc" >&6; }
13673 # So? What about this header?
13674 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13676 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13677 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13678 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13679 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13680 ac_header_preproc=yes
13683 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13684 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13685 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13686 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13687 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13688 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13689 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13690 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13691 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13692 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13693 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13694 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13696 ## ----------------------------------- ##
13697 ## Report this to llvmbugs@cs.uiuc.edu ##
13698 ## ----------------------------------- ##
13700 ) | sed "s/^/$as_me: WARNING: /" >&2
13703 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13704 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13705 if test "${ac_cv_header_opagent_h+set}" = set; then
13706 echo $ECHO_N "(cached) $ECHO_C" >&6
13708 ac_cv_header_opagent_h=$ac_header_preproc
13710 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13711 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13714 if test $ac_cv_header_opagent_h = yes; then
13718 echo "Error! You need to have opagent.h around."
13734 cat >>confdefs.h <<_ACEOF
13735 #define USE_OPROFILE $USE_OPROFILE
13745 ac_header_dirent=no
13746 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13747 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13748 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13749 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13751 echo $ECHO_N "(cached) $ECHO_C" >&6
13753 cat >conftest.$ac_ext <<_ACEOF
13756 cat confdefs.h >>conftest.$ac_ext
13757 cat >>conftest.$ac_ext <<_ACEOF
13758 /* end confdefs.h. */
13759 #include <sys/types.h>
13771 rm -f conftest.$ac_objext
13772 if { (ac_try="$ac_compile"
13773 case "(($ac_try" in
13774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13775 *) ac_try_echo=$ac_try;;
13777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13778 (eval "$ac_compile") 2>conftest.er1
13780 grep -v '^ *+' conftest.er1 >conftest.err
13782 cat conftest.err >&5
13783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784 (exit $ac_status); } &&
13785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13786 { (case "(($ac_try" in
13787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13788 *) ac_try_echo=$ac_try;;
13790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13791 (eval "$ac_try") 2>&5
13793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794 (exit $ac_status); }; } &&
13795 { ac_try='test -s conftest.$ac_objext'
13796 { (case "(($ac_try" in
13797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13798 *) ac_try_echo=$ac_try;;
13800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13801 (eval "$ac_try") 2>&5
13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); }; }; then
13805 eval "$as_ac_Header=yes"
13807 echo "$as_me: failed program was:" >&5
13808 sed 's/^/| /' conftest.$ac_ext >&5
13810 eval "$as_ac_Header=no"
13813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13815 ac_res=`eval echo '${'$as_ac_Header'}'`
13816 { echo "$as_me:$LINENO: result: $ac_res" >&5
13817 echo "${ECHO_T}$ac_res" >&6; }
13818 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13819 cat >>confdefs.h <<_ACEOF
13820 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13823 ac_header_dirent=$ac_hdr; break
13827 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13828 if test $ac_header_dirent = dirent.h; then
13829 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13830 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13831 if test "${ac_cv_search_opendir+set}" = set; then
13832 echo $ECHO_N "(cached) $ECHO_C" >&6
13834 ac_func_search_save_LIBS=$LIBS
13835 cat >conftest.$ac_ext <<_ACEOF
13838 cat confdefs.h >>conftest.$ac_ext
13839 cat >>conftest.$ac_ext <<_ACEOF
13840 /* end confdefs.h. */
13842 /* Override any GCC internal prototype to avoid an error.
13843 Use char because int might match the return type of a GCC
13844 builtin and then its argument prototype would still apply. */
13857 for ac_lib in '' dir; do
13858 if test -z "$ac_lib"; then
13859 ac_res="none required"
13862 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13864 rm -f conftest.$ac_objext conftest$ac_exeext
13865 if { (ac_try="$ac_link"
13866 case "(($ac_try" in
13867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13868 *) ac_try_echo=$ac_try;;
13870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13871 (eval "$ac_link") 2>conftest.er1
13873 grep -v '^ *+' conftest.er1 >conftest.err
13875 cat conftest.err >&5
13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); } &&
13878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13879 { (case "(($ac_try" in
13880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13881 *) ac_try_echo=$ac_try;;
13883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13884 (eval "$ac_try") 2>&5
13886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887 (exit $ac_status); }; } &&
13888 { ac_try='test -s conftest$ac_exeext'
13889 { (case "(($ac_try" in
13890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13891 *) ac_try_echo=$ac_try;;
13893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13894 (eval "$ac_try") 2>&5
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); }; }; then
13898 ac_cv_search_opendir=$ac_res
13900 echo "$as_me: failed program was:" >&5
13901 sed 's/^/| /' conftest.$ac_ext >&5
13906 rm -f core conftest.err conftest.$ac_objext \
13908 if test "${ac_cv_search_opendir+set}" = set; then
13912 if test "${ac_cv_search_opendir+set}" = set; then
13915 ac_cv_search_opendir=no
13917 rm conftest.$ac_ext
13918 LIBS=$ac_func_search_save_LIBS
13920 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13921 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13922 ac_res=$ac_cv_search_opendir
13923 if test "$ac_res" != no; then
13924 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13929 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13930 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13931 if test "${ac_cv_search_opendir+set}" = set; then
13932 echo $ECHO_N "(cached) $ECHO_C" >&6
13934 ac_func_search_save_LIBS=$LIBS
13935 cat >conftest.$ac_ext <<_ACEOF
13938 cat confdefs.h >>conftest.$ac_ext
13939 cat >>conftest.$ac_ext <<_ACEOF
13940 /* end confdefs.h. */
13942 /* Override any GCC internal prototype to avoid an error.
13943 Use char because int might match the return type of a GCC
13944 builtin and then its argument prototype would still apply. */
13957 for ac_lib in '' x; do
13958 if test -z "$ac_lib"; then
13959 ac_res="none required"
13962 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13964 rm -f conftest.$ac_objext conftest$ac_exeext
13965 if { (ac_try="$ac_link"
13966 case "(($ac_try" in
13967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13968 *) ac_try_echo=$ac_try;;
13970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13971 (eval "$ac_link") 2>conftest.er1
13973 grep -v '^ *+' conftest.er1 >conftest.err
13975 cat conftest.err >&5
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); } &&
13978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13979 { (case "(($ac_try" in
13980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13981 *) ac_try_echo=$ac_try;;
13983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13984 (eval "$ac_try") 2>&5
13986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987 (exit $ac_status); }; } &&
13988 { ac_try='test -s conftest$ac_exeext'
13989 { (case "(($ac_try" in
13990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13991 *) ac_try_echo=$ac_try;;
13993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13994 (eval "$ac_try") 2>&5
13996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997 (exit $ac_status); }; }; then
13998 ac_cv_search_opendir=$ac_res
14000 echo "$as_me: failed program was:" >&5
14001 sed 's/^/| /' conftest.$ac_ext >&5
14006 rm -f core conftest.err conftest.$ac_objext \
14008 if test "${ac_cv_search_opendir+set}" = set; then
14012 if test "${ac_cv_search_opendir+set}" = set; then
14015 ac_cv_search_opendir=no
14017 rm conftest.$ac_ext
14018 LIBS=$ac_func_search_save_LIBS
14020 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14021 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14022 ac_res=$ac_cv_search_opendir
14023 if test "$ac_res" != no; then
14024 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14030 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14031 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14032 if test "${ac_cv_header_mmap_anon+set}" = set; then
14033 echo $ECHO_N "(cached) $ECHO_C" >&6
14036 ac_cpp='$CPP $CPPFLAGS'
14037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14041 cat >conftest.$ac_ext <<_ACEOF
14044 cat confdefs.h >>conftest.$ac_ext
14045 cat >>conftest.$ac_ext <<_ACEOF
14046 /* end confdefs.h. */
14047 #include <sys/mman.h>
14048 #include <unistd.h>
14053 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14058 rm -f conftest.$ac_objext
14059 if { (ac_try="$ac_compile"
14060 case "(($ac_try" in
14061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14062 *) ac_try_echo=$ac_try;;
14064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14065 (eval "$ac_compile") 2>conftest.er1
14067 grep -v '^ *+' conftest.er1 >conftest.err
14069 cat conftest.err >&5
14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); } &&
14072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14073 { (case "(($ac_try" in
14074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14075 *) ac_try_echo=$ac_try;;
14077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14078 (eval "$ac_try") 2>&5
14080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081 (exit $ac_status); }; } &&
14082 { ac_try='test -s conftest.$ac_objext'
14083 { (case "(($ac_try" in
14084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14085 *) ac_try_echo=$ac_try;;
14087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14088 (eval "$ac_try") 2>&5
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); }; }; then
14092 ac_cv_header_mmap_anon=yes
14094 echo "$as_me: failed program was:" >&5
14095 sed 's/^/| /' conftest.$ac_ext >&5
14097 ac_cv_header_mmap_anon=no
14100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14102 ac_cpp='$CPP $CPPFLAGS'
14103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14109 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14110 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14111 if test "$ac_cv_header_mmap_anon" = yes; then
14113 cat >>confdefs.h <<\_ACEOF
14114 #define HAVE_MMAP_ANONYMOUS 1
14119 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14120 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14121 if test "${ac_cv_header_stat_broken+set}" = set; then
14122 echo $ECHO_N "(cached) $ECHO_C" >&6
14124 cat >conftest.$ac_ext <<_ACEOF
14127 cat confdefs.h >>conftest.$ac_ext
14128 cat >>conftest.$ac_ext <<_ACEOF
14129 /* end confdefs.h. */
14130 #include <sys/types.h>
14131 #include <sys/stat.h>
14133 #if defined S_ISBLK && defined S_IFDIR
14134 # if S_ISBLK (S_IFDIR)
14139 #if defined S_ISBLK && defined S_IFCHR
14140 # if S_ISBLK (S_IFCHR)
14145 #if defined S_ISLNK && defined S_IFREG
14146 # if S_ISLNK (S_IFREG)
14151 #if defined S_ISSOCK && defined S_IFREG
14152 # if S_ISSOCK (S_IFREG)
14158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14159 $EGREP "You lose" >/dev/null 2>&1; then
14160 ac_cv_header_stat_broken=yes
14162 ac_cv_header_stat_broken=no
14167 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14168 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14169 if test $ac_cv_header_stat_broken = yes; then
14171 cat >>confdefs.h <<\_ACEOF
14172 #define STAT_MACROS_BROKEN 1
14177 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14178 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14179 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14180 echo $ECHO_N "(cached) $ECHO_C" >&6
14182 cat >conftest.$ac_ext <<_ACEOF
14185 cat confdefs.h >>conftest.$ac_ext
14186 cat >>conftest.$ac_ext <<_ACEOF
14187 /* end confdefs.h. */
14188 #include <sys/types.h>
14189 #include <sys/wait.h>
14190 #ifndef WEXITSTATUS
14191 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14194 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14202 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14207 rm -f conftest.$ac_objext
14208 if { (ac_try="$ac_compile"
14209 case "(($ac_try" in
14210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14211 *) ac_try_echo=$ac_try;;
14213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14214 (eval "$ac_compile") 2>conftest.er1
14216 grep -v '^ *+' conftest.er1 >conftest.err
14218 cat conftest.err >&5
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); } &&
14221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14222 { (case "(($ac_try" in
14223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14224 *) ac_try_echo=$ac_try;;
14226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14227 (eval "$ac_try") 2>&5
14229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230 (exit $ac_status); }; } &&
14231 { ac_try='test -s conftest.$ac_objext'
14232 { (case "(($ac_try" in
14233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14234 *) ac_try_echo=$ac_try;;
14236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14237 (eval "$ac_try") 2>&5
14239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); }; }; then
14241 ac_cv_header_sys_wait_h=yes
14243 echo "$as_me: failed program was:" >&5
14244 sed 's/^/| /' conftest.$ac_ext >&5
14246 ac_cv_header_sys_wait_h=no
14249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14251 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14252 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14253 if test $ac_cv_header_sys_wait_h = yes; then
14255 cat >>confdefs.h <<\_ACEOF
14256 #define HAVE_SYS_WAIT_H 1
14261 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14262 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14263 if test "${ac_cv_header_time+set}" = set; then
14264 echo $ECHO_N "(cached) $ECHO_C" >&6
14266 cat >conftest.$ac_ext <<_ACEOF
14269 cat confdefs.h >>conftest.$ac_ext
14270 cat >>conftest.$ac_ext <<_ACEOF
14271 /* end confdefs.h. */
14272 #include <sys/types.h>
14273 #include <sys/time.h>
14279 if ((struct tm *) 0)
14285 rm -f conftest.$ac_objext
14286 if { (ac_try="$ac_compile"
14287 case "(($ac_try" in
14288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14289 *) ac_try_echo=$ac_try;;
14291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14292 (eval "$ac_compile") 2>conftest.er1
14294 grep -v '^ *+' conftest.er1 >conftest.err
14296 cat conftest.err >&5
14297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); } &&
14299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14300 { (case "(($ac_try" in
14301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14302 *) ac_try_echo=$ac_try;;
14304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14305 (eval "$ac_try") 2>&5
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); }; } &&
14309 { ac_try='test -s conftest.$ac_objext'
14310 { (case "(($ac_try" in
14311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14312 *) ac_try_echo=$ac_try;;
14314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14315 (eval "$ac_try") 2>&5
14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); }; }; then
14319 ac_cv_header_time=yes
14321 echo "$as_me: failed program was:" >&5
14322 sed 's/^/| /' conftest.$ac_ext >&5
14324 ac_cv_header_time=no
14327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14329 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14330 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14331 if test $ac_cv_header_time = yes; then
14333 cat >>confdefs.h <<\_ACEOF
14334 #define TIME_WITH_SYS_TIME 1
14346 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14350 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14353 echo $ECHO_N "(cached) $ECHO_C" >&6
14355 ac_res=`eval echo '${'$as_ac_Header'}'`
14356 { echo "$as_me:$LINENO: result: $ac_res" >&5
14357 echo "${ECHO_T}$ac_res" >&6; }
14359 # Is the header compilable?
14360 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14362 cat >conftest.$ac_ext <<_ACEOF
14365 cat confdefs.h >>conftest.$ac_ext
14366 cat >>conftest.$ac_ext <<_ACEOF
14367 /* end confdefs.h. */
14368 $ac_includes_default
14369 #include <$ac_header>
14371 rm -f conftest.$ac_objext
14372 if { (ac_try="$ac_compile"
14373 case "(($ac_try" in
14374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14375 *) ac_try_echo=$ac_try;;
14377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14378 (eval "$ac_compile") 2>conftest.er1
14380 grep -v '^ *+' conftest.er1 >conftest.err
14382 cat conftest.err >&5
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); } &&
14385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14386 { (case "(($ac_try" in
14387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14388 *) ac_try_echo=$ac_try;;
14390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14391 (eval "$ac_try") 2>&5
14393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394 (exit $ac_status); }; } &&
14395 { ac_try='test -s conftest.$ac_objext'
14396 { (case "(($ac_try" in
14397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14398 *) ac_try_echo=$ac_try;;
14400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14401 (eval "$ac_try") 2>&5
14403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404 (exit $ac_status); }; }; then
14405 ac_header_compiler=yes
14407 echo "$as_me: failed program was:" >&5
14408 sed 's/^/| /' conftest.$ac_ext >&5
14410 ac_header_compiler=no
14413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14414 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14415 echo "${ECHO_T}$ac_header_compiler" >&6; }
14417 # Is the header present?
14418 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14419 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14420 cat >conftest.$ac_ext <<_ACEOF
14423 cat confdefs.h >>conftest.$ac_ext
14424 cat >>conftest.$ac_ext <<_ACEOF
14425 /* end confdefs.h. */
14426 #include <$ac_header>
14428 if { (ac_try="$ac_cpp conftest.$ac_ext"
14429 case "(($ac_try" in
14430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14431 *) ac_try_echo=$ac_try;;
14433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14436 grep -v '^ *+' conftest.er1 >conftest.err
14438 cat conftest.err >&5
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); } >/dev/null; then
14441 if test -s conftest.err; then
14442 ac_cpp_err=$ac_c_preproc_warn_flag
14443 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14450 if test -z "$ac_cpp_err"; then
14451 ac_header_preproc=yes
14453 echo "$as_me: failed program was:" >&5
14454 sed 's/^/| /' conftest.$ac_ext >&5
14456 ac_header_preproc=no
14459 rm -f conftest.err conftest.$ac_ext
14460 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14461 echo "${ECHO_T}$ac_header_preproc" >&6; }
14463 # So? What about this header?
14464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14470 ac_header_preproc=yes
14473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14476 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14480 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14486 ## ----------------------------------- ##
14487 ## Report this to llvmbugs@cs.uiuc.edu ##
14488 ## ----------------------------------- ##
14490 ) | sed "s/^/$as_me: WARNING: /" >&2
14493 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14496 echo $ECHO_N "(cached) $ECHO_C" >&6
14498 eval "$as_ac_Header=\$ac_header_preproc"
14500 ac_res=`eval echo '${'$as_ac_Header'}'`
14501 { echo "$as_me:$LINENO: result: $ac_res" >&5
14502 echo "${ECHO_T}$ac_res" >&6; }
14505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14506 cat >>confdefs.h <<_ACEOF
14507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14520 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14522 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14524 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14527 echo $ECHO_N "(cached) $ECHO_C" >&6
14529 ac_res=`eval echo '${'$as_ac_Header'}'`
14530 { echo "$as_me:$LINENO: result: $ac_res" >&5
14531 echo "${ECHO_T}$ac_res" >&6; }
14533 # Is the header compilable?
14534 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14535 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14536 cat >conftest.$ac_ext <<_ACEOF
14539 cat confdefs.h >>conftest.$ac_ext
14540 cat >>conftest.$ac_ext <<_ACEOF
14541 /* end confdefs.h. */
14542 $ac_includes_default
14543 #include <$ac_header>
14545 rm -f conftest.$ac_objext
14546 if { (ac_try="$ac_compile"
14547 case "(($ac_try" in
14548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14549 *) ac_try_echo=$ac_try;;
14551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14552 (eval "$ac_compile") 2>conftest.er1
14554 grep -v '^ *+' conftest.er1 >conftest.err
14556 cat conftest.err >&5
14557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558 (exit $ac_status); } &&
14559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14560 { (case "(($ac_try" in
14561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14562 *) ac_try_echo=$ac_try;;
14564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14565 (eval "$ac_try") 2>&5
14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); }; } &&
14569 { ac_try='test -s conftest.$ac_objext'
14570 { (case "(($ac_try" in
14571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14572 *) ac_try_echo=$ac_try;;
14574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14575 (eval "$ac_try") 2>&5
14577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578 (exit $ac_status); }; }; then
14579 ac_header_compiler=yes
14581 echo "$as_me: failed program was:" >&5
14582 sed 's/^/| /' conftest.$ac_ext >&5
14584 ac_header_compiler=no
14587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14588 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14589 echo "${ECHO_T}$ac_header_compiler" >&6; }
14591 # Is the header present?
14592 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14593 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14594 cat >conftest.$ac_ext <<_ACEOF
14597 cat confdefs.h >>conftest.$ac_ext
14598 cat >>conftest.$ac_ext <<_ACEOF
14599 /* end confdefs.h. */
14600 #include <$ac_header>
14602 if { (ac_try="$ac_cpp conftest.$ac_ext"
14603 case "(($ac_try" in
14604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14605 *) ac_try_echo=$ac_try;;
14607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14610 grep -v '^ *+' conftest.er1 >conftest.err
14612 cat conftest.err >&5
14613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614 (exit $ac_status); } >/dev/null; then
14615 if test -s conftest.err; then
14616 ac_cpp_err=$ac_c_preproc_warn_flag
14617 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14624 if test -z "$ac_cpp_err"; then
14625 ac_header_preproc=yes
14627 echo "$as_me: failed program was:" >&5
14628 sed 's/^/| /' conftest.$ac_ext >&5
14630 ac_header_preproc=no
14633 rm -f conftest.err conftest.$ac_ext
14634 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14635 echo "${ECHO_T}$ac_header_preproc" >&6; }
14637 # So? What about this header?
14638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14640 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14641 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14643 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14644 ac_header_preproc=yes
14647 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14648 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14649 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14650 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14651 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14652 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14653 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14654 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14656 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14657 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14658 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14660 ## ----------------------------------- ##
14661 ## Report this to llvmbugs@cs.uiuc.edu ##
14662 ## ----------------------------------- ##
14664 ) | sed "s/^/$as_me: WARNING: /" >&2
14667 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14670 echo $ECHO_N "(cached) $ECHO_C" >&6
14672 eval "$as_ac_Header=\$ac_header_preproc"
14674 ac_res=`eval echo '${'$as_ac_Header'}'`
14675 { echo "$as_me:$LINENO: result: $ac_res" >&5
14676 echo "${ECHO_T}$ac_res" >&6; }
14679 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14680 cat >>confdefs.h <<_ACEOF
14681 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14690 for ac_header in utime.h windows.h
14692 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14694 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14697 echo $ECHO_N "(cached) $ECHO_C" >&6
14699 ac_res=`eval echo '${'$as_ac_Header'}'`
14700 { echo "$as_me:$LINENO: result: $ac_res" >&5
14701 echo "${ECHO_T}$ac_res" >&6; }
14703 # Is the header compilable?
14704 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14705 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14706 cat >conftest.$ac_ext <<_ACEOF
14709 cat confdefs.h >>conftest.$ac_ext
14710 cat >>conftest.$ac_ext <<_ACEOF
14711 /* end confdefs.h. */
14712 $ac_includes_default
14713 #include <$ac_header>
14715 rm -f conftest.$ac_objext
14716 if { (ac_try="$ac_compile"
14717 case "(($ac_try" in
14718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14719 *) ac_try_echo=$ac_try;;
14721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14722 (eval "$ac_compile") 2>conftest.er1
14724 grep -v '^ *+' conftest.er1 >conftest.err
14726 cat conftest.err >&5
14727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728 (exit $ac_status); } &&
14729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14730 { (case "(($ac_try" in
14731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14732 *) ac_try_echo=$ac_try;;
14734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14735 (eval "$ac_try") 2>&5
14737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738 (exit $ac_status); }; } &&
14739 { ac_try='test -s conftest.$ac_objext'
14740 { (case "(($ac_try" in
14741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14742 *) ac_try_echo=$ac_try;;
14744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14745 (eval "$ac_try") 2>&5
14747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748 (exit $ac_status); }; }; then
14749 ac_header_compiler=yes
14751 echo "$as_me: failed program was:" >&5
14752 sed 's/^/| /' conftest.$ac_ext >&5
14754 ac_header_compiler=no
14757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14758 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14759 echo "${ECHO_T}$ac_header_compiler" >&6; }
14761 # Is the header present?
14762 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14763 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14764 cat >conftest.$ac_ext <<_ACEOF
14767 cat confdefs.h >>conftest.$ac_ext
14768 cat >>conftest.$ac_ext <<_ACEOF
14769 /* end confdefs.h. */
14770 #include <$ac_header>
14772 if { (ac_try="$ac_cpp conftest.$ac_ext"
14773 case "(($ac_try" in
14774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14775 *) ac_try_echo=$ac_try;;
14777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14778 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14780 grep -v '^ *+' conftest.er1 >conftest.err
14782 cat conftest.err >&5
14783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784 (exit $ac_status); } >/dev/null; then
14785 if test -s conftest.err; then
14786 ac_cpp_err=$ac_c_preproc_warn_flag
14787 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14794 if test -z "$ac_cpp_err"; then
14795 ac_header_preproc=yes
14797 echo "$as_me: failed program was:" >&5
14798 sed 's/^/| /' conftest.$ac_ext >&5
14800 ac_header_preproc=no
14803 rm -f conftest.err conftest.$ac_ext
14804 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14805 echo "${ECHO_T}$ac_header_preproc" >&6; }
14807 # So? What about this header?
14808 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14810 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14811 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14813 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14814 ac_header_preproc=yes
14817 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14818 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14819 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14820 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14821 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14822 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14823 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14824 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14826 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14827 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14828 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14830 ## ----------------------------------- ##
14831 ## Report this to llvmbugs@cs.uiuc.edu ##
14832 ## ----------------------------------- ##
14834 ) | sed "s/^/$as_me: WARNING: /" >&2
14837 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14840 echo $ECHO_N "(cached) $ECHO_C" >&6
14842 eval "$as_ac_Header=\$ac_header_preproc"
14844 ac_res=`eval echo '${'$as_ac_Header'}'`
14845 { echo "$as_me:$LINENO: result: $ac_res" >&5
14846 echo "${ECHO_T}$ac_res" >&6; }
14849 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14850 cat >>confdefs.h <<_ACEOF
14851 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14863 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14865 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14867 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14870 echo $ECHO_N "(cached) $ECHO_C" >&6
14872 ac_res=`eval echo '${'$as_ac_Header'}'`
14873 { echo "$as_me:$LINENO: result: $ac_res" >&5
14874 echo "${ECHO_T}$ac_res" >&6; }
14876 # Is the header compilable?
14877 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14878 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14879 cat >conftest.$ac_ext <<_ACEOF
14882 cat confdefs.h >>conftest.$ac_ext
14883 cat >>conftest.$ac_ext <<_ACEOF
14884 /* end confdefs.h. */
14885 $ac_includes_default
14886 #include <$ac_header>
14888 rm -f conftest.$ac_objext
14889 if { (ac_try="$ac_compile"
14890 case "(($ac_try" in
14891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14892 *) ac_try_echo=$ac_try;;
14894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14895 (eval "$ac_compile") 2>conftest.er1
14897 grep -v '^ *+' conftest.er1 >conftest.err
14899 cat conftest.err >&5
14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); } &&
14902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14903 { (case "(($ac_try" in
14904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14905 *) ac_try_echo=$ac_try;;
14907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14908 (eval "$ac_try") 2>&5
14910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911 (exit $ac_status); }; } &&
14912 { ac_try='test -s conftest.$ac_objext'
14913 { (case "(($ac_try" in
14914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14915 *) ac_try_echo=$ac_try;;
14917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14918 (eval "$ac_try") 2>&5
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); }; }; then
14922 ac_header_compiler=yes
14924 echo "$as_me: failed program was:" >&5
14925 sed 's/^/| /' conftest.$ac_ext >&5
14927 ac_header_compiler=no
14930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14931 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14932 echo "${ECHO_T}$ac_header_compiler" >&6; }
14934 # Is the header present?
14935 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14936 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14937 cat >conftest.$ac_ext <<_ACEOF
14940 cat confdefs.h >>conftest.$ac_ext
14941 cat >>conftest.$ac_ext <<_ACEOF
14942 /* end confdefs.h. */
14943 #include <$ac_header>
14945 if { (ac_try="$ac_cpp conftest.$ac_ext"
14946 case "(($ac_try" in
14947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14948 *) ac_try_echo=$ac_try;;
14950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14953 grep -v '^ *+' conftest.er1 >conftest.err
14955 cat conftest.err >&5
14956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); } >/dev/null; then
14958 if test -s conftest.err; then
14959 ac_cpp_err=$ac_c_preproc_warn_flag
14960 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14967 if test -z "$ac_cpp_err"; then
14968 ac_header_preproc=yes
14970 echo "$as_me: failed program was:" >&5
14971 sed 's/^/| /' conftest.$ac_ext >&5
14973 ac_header_preproc=no
14976 rm -f conftest.err conftest.$ac_ext
14977 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14978 echo "${ECHO_T}$ac_header_preproc" >&6; }
14980 # So? What about this header?
14981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14983 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14984 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14986 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14987 ac_header_preproc=yes
14990 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14991 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14992 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14993 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14994 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14995 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14996 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14997 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14999 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15000 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15001 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15003 ## ----------------------------------- ##
15004 ## Report this to llvmbugs@cs.uiuc.edu ##
15005 ## ----------------------------------- ##
15007 ) | sed "s/^/$as_me: WARNING: /" >&2
15010 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15013 echo $ECHO_N "(cached) $ECHO_C" >&6
15015 eval "$as_ac_Header=\$ac_header_preproc"
15017 ac_res=`eval echo '${'$as_ac_Header'}'`
15018 { echo "$as_me:$LINENO: result: $ac_res" >&5
15019 echo "${ECHO_T}$ac_res" >&6; }
15022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15023 cat >>confdefs.h <<_ACEOF
15024 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15035 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15037 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15039 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15042 echo $ECHO_N "(cached) $ECHO_C" >&6
15044 ac_res=`eval echo '${'$as_ac_Header'}'`
15045 { echo "$as_me:$LINENO: result: $ac_res" >&5
15046 echo "${ECHO_T}$ac_res" >&6; }
15048 # Is the header compilable?
15049 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15050 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15051 cat >conftest.$ac_ext <<_ACEOF
15054 cat confdefs.h >>conftest.$ac_ext
15055 cat >>conftest.$ac_ext <<_ACEOF
15056 /* end confdefs.h. */
15057 $ac_includes_default
15058 #include <$ac_header>
15060 rm -f conftest.$ac_objext
15061 if { (ac_try="$ac_compile"
15062 case "(($ac_try" in
15063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15064 *) ac_try_echo=$ac_try;;
15066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15067 (eval "$ac_compile") 2>conftest.er1
15069 grep -v '^ *+' conftest.er1 >conftest.err
15071 cat conftest.err >&5
15072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073 (exit $ac_status); } &&
15074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15075 { (case "(($ac_try" in
15076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15077 *) ac_try_echo=$ac_try;;
15079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15080 (eval "$ac_try") 2>&5
15082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083 (exit $ac_status); }; } &&
15084 { ac_try='test -s conftest.$ac_objext'
15085 { (case "(($ac_try" in
15086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15087 *) ac_try_echo=$ac_try;;
15089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15090 (eval "$ac_try") 2>&5
15092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093 (exit $ac_status); }; }; then
15094 ac_header_compiler=yes
15096 echo "$as_me: failed program was:" >&5
15097 sed 's/^/| /' conftest.$ac_ext >&5
15099 ac_header_compiler=no
15102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15103 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15104 echo "${ECHO_T}$ac_header_compiler" >&6; }
15106 # Is the header present?
15107 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15108 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15109 cat >conftest.$ac_ext <<_ACEOF
15112 cat confdefs.h >>conftest.$ac_ext
15113 cat >>conftest.$ac_ext <<_ACEOF
15114 /* end confdefs.h. */
15115 #include <$ac_header>
15117 if { (ac_try="$ac_cpp conftest.$ac_ext"
15118 case "(($ac_try" in
15119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15120 *) ac_try_echo=$ac_try;;
15122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15123 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15125 grep -v '^ *+' conftest.er1 >conftest.err
15127 cat conftest.err >&5
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); } >/dev/null; then
15130 if test -s conftest.err; then
15131 ac_cpp_err=$ac_c_preproc_warn_flag
15132 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15139 if test -z "$ac_cpp_err"; then
15140 ac_header_preproc=yes
15142 echo "$as_me: failed program was:" >&5
15143 sed 's/^/| /' conftest.$ac_ext >&5
15145 ac_header_preproc=no
15148 rm -f conftest.err conftest.$ac_ext
15149 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15150 echo "${ECHO_T}$ac_header_preproc" >&6; }
15152 # So? What about this header?
15153 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15155 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15156 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15158 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15159 ac_header_preproc=yes
15162 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15163 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15164 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15165 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15166 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15167 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15168 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15169 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15171 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15172 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15173 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15175 ## ----------------------------------- ##
15176 ## Report this to llvmbugs@cs.uiuc.edu ##
15177 ## ----------------------------------- ##
15179 ) | sed "s/^/$as_me: WARNING: /" >&2
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 eval "$as_ac_Header=\$ac_header_preproc"
15189 ac_res=`eval echo '${'$as_ac_Header'}'`
15190 { echo "$as_me:$LINENO: result: $ac_res" >&5
15191 echo "${ECHO_T}$ac_res" >&6; }
15194 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15195 cat >>confdefs.h <<_ACEOF
15196 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15204 for ac_header in valgrind/valgrind.h
15206 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15207 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15208 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15210 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15211 echo $ECHO_N "(cached) $ECHO_C" >&6
15213 ac_res=`eval echo '${'$as_ac_Header'}'`
15214 { echo "$as_me:$LINENO: result: $ac_res" >&5
15215 echo "${ECHO_T}$ac_res" >&6; }
15217 # Is the header compilable?
15218 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15219 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15220 cat >conftest.$ac_ext <<_ACEOF
15223 cat confdefs.h >>conftest.$ac_ext
15224 cat >>conftest.$ac_ext <<_ACEOF
15225 /* end confdefs.h. */
15226 $ac_includes_default
15227 #include <$ac_header>
15229 rm -f conftest.$ac_objext
15230 if { (ac_try="$ac_compile"
15231 case "(($ac_try" in
15232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15233 *) ac_try_echo=$ac_try;;
15235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15236 (eval "$ac_compile") 2>conftest.er1
15238 grep -v '^ *+' conftest.er1 >conftest.err
15240 cat conftest.err >&5
15241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242 (exit $ac_status); } &&
15243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15244 { (case "(($ac_try" in
15245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15246 *) ac_try_echo=$ac_try;;
15248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15249 (eval "$ac_try") 2>&5
15251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252 (exit $ac_status); }; } &&
15253 { ac_try='test -s conftest.$ac_objext'
15254 { (case "(($ac_try" in
15255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15256 *) ac_try_echo=$ac_try;;
15258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15259 (eval "$ac_try") 2>&5
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); }; }; then
15263 ac_header_compiler=yes
15265 echo "$as_me: failed program was:" >&5
15266 sed 's/^/| /' conftest.$ac_ext >&5
15268 ac_header_compiler=no
15271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15272 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15273 echo "${ECHO_T}$ac_header_compiler" >&6; }
15275 # Is the header present?
15276 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15277 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15278 cat >conftest.$ac_ext <<_ACEOF
15281 cat confdefs.h >>conftest.$ac_ext
15282 cat >>conftest.$ac_ext <<_ACEOF
15283 /* end confdefs.h. */
15284 #include <$ac_header>
15286 if { (ac_try="$ac_cpp conftest.$ac_ext"
15287 case "(($ac_try" in
15288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15289 *) ac_try_echo=$ac_try;;
15291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15294 grep -v '^ *+' conftest.er1 >conftest.err
15296 cat conftest.err >&5
15297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15298 (exit $ac_status); } >/dev/null; then
15299 if test -s conftest.err; then
15300 ac_cpp_err=$ac_c_preproc_warn_flag
15301 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15308 if test -z "$ac_cpp_err"; then
15309 ac_header_preproc=yes
15311 echo "$as_me: failed program was:" >&5
15312 sed 's/^/| /' conftest.$ac_ext >&5
15314 ac_header_preproc=no
15317 rm -f conftest.err conftest.$ac_ext
15318 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15319 echo "${ECHO_T}$ac_header_preproc" >&6; }
15321 # So? What about this header?
15322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15324 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15325 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15327 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15328 ac_header_preproc=yes
15331 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15332 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15333 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15334 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15335 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15336 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15337 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15338 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15340 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15341 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15342 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15344 ## ----------------------------------- ##
15345 ## Report this to llvmbugs@cs.uiuc.edu ##
15346 ## ----------------------------------- ##
15348 ) | sed "s/^/$as_me: WARNING: /" >&2
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 eval "$as_ac_Header=\$ac_header_preproc"
15358 ac_res=`eval echo '${'$as_ac_Header'}'`
15359 { echo "$as_me:$LINENO: result: $ac_res" >&5
15360 echo "${ECHO_T}$ac_res" >&6; }
15363 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15364 cat >>confdefs.h <<_ACEOF
15365 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15373 for ac_header in fenv.h
15375 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15377 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15380 echo $ECHO_N "(cached) $ECHO_C" >&6
15382 ac_res=`eval echo '${'$as_ac_Header'}'`
15383 { echo "$as_me:$LINENO: result: $ac_res" >&5
15384 echo "${ECHO_T}$ac_res" >&6; }
15386 # Is the header compilable?
15387 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15388 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15389 cat >conftest.$ac_ext <<_ACEOF
15392 cat confdefs.h >>conftest.$ac_ext
15393 cat >>conftest.$ac_ext <<_ACEOF
15394 /* end confdefs.h. */
15395 $ac_includes_default
15396 #include <$ac_header>
15398 rm -f conftest.$ac_objext
15399 if { (ac_try="$ac_compile"
15400 case "(($ac_try" in
15401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15402 *) ac_try_echo=$ac_try;;
15404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15405 (eval "$ac_compile") 2>conftest.er1
15407 grep -v '^ *+' conftest.er1 >conftest.err
15409 cat conftest.err >&5
15410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411 (exit $ac_status); } &&
15412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15413 { (case "(($ac_try" in
15414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15415 *) ac_try_echo=$ac_try;;
15417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15418 (eval "$ac_try") 2>&5
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 (exit $ac_status); }; } &&
15422 { ac_try='test -s conftest.$ac_objext'
15423 { (case "(($ac_try" in
15424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15425 *) ac_try_echo=$ac_try;;
15427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15428 (eval "$ac_try") 2>&5
15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 (exit $ac_status); }; }; then
15432 ac_header_compiler=yes
15434 echo "$as_me: failed program was:" >&5
15435 sed 's/^/| /' conftest.$ac_ext >&5
15437 ac_header_compiler=no
15440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15441 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15442 echo "${ECHO_T}$ac_header_compiler" >&6; }
15444 # Is the header present?
15445 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15446 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15447 cat >conftest.$ac_ext <<_ACEOF
15450 cat confdefs.h >>conftest.$ac_ext
15451 cat >>conftest.$ac_ext <<_ACEOF
15452 /* end confdefs.h. */
15453 #include <$ac_header>
15455 if { (ac_try="$ac_cpp conftest.$ac_ext"
15456 case "(($ac_try" in
15457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15458 *) ac_try_echo=$ac_try;;
15460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15461 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15463 grep -v '^ *+' conftest.er1 >conftest.err
15465 cat conftest.err >&5
15466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467 (exit $ac_status); } >/dev/null; then
15468 if test -s conftest.err; then
15469 ac_cpp_err=$ac_c_preproc_warn_flag
15470 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15477 if test -z "$ac_cpp_err"; then
15478 ac_header_preproc=yes
15480 echo "$as_me: failed program was:" >&5
15481 sed 's/^/| /' conftest.$ac_ext >&5
15483 ac_header_preproc=no
15486 rm -f conftest.err conftest.$ac_ext
15487 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15488 echo "${ECHO_T}$ac_header_preproc" >&6; }
15490 # So? What about this header?
15491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15493 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15494 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15496 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15497 ac_header_preproc=yes
15500 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15501 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15502 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15503 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15504 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15505 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15506 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15507 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15509 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15510 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15511 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15513 ## ----------------------------------- ##
15514 ## Report this to llvmbugs@cs.uiuc.edu ##
15515 ## ----------------------------------- ##
15517 ) | sed "s/^/$as_me: WARNING: /" >&2
15520 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15523 echo $ECHO_N "(cached) $ECHO_C" >&6
15525 eval "$as_ac_Header=\$ac_header_preproc"
15527 ac_res=`eval echo '${'$as_ac_Header'}'`
15528 { echo "$as_me:$LINENO: result: $ac_res" >&5
15529 echo "${ECHO_T}$ac_res" >&6; }
15532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15533 cat >>confdefs.h <<_ACEOF
15534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15541 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15543 for ac_header in pthread.h
15545 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15547 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15550 echo $ECHO_N "(cached) $ECHO_C" >&6
15552 ac_res=`eval echo '${'$as_ac_Header'}'`
15553 { echo "$as_me:$LINENO: result: $ac_res" >&5
15554 echo "${ECHO_T}$ac_res" >&6; }
15556 # Is the header compilable?
15557 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15558 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15559 cat >conftest.$ac_ext <<_ACEOF
15562 cat confdefs.h >>conftest.$ac_ext
15563 cat >>conftest.$ac_ext <<_ACEOF
15564 /* end confdefs.h. */
15565 $ac_includes_default
15566 #include <$ac_header>
15568 rm -f conftest.$ac_objext
15569 if { (ac_try="$ac_compile"
15570 case "(($ac_try" in
15571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15572 *) ac_try_echo=$ac_try;;
15574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15575 (eval "$ac_compile") 2>conftest.er1
15577 grep -v '^ *+' conftest.er1 >conftest.err
15579 cat conftest.err >&5
15580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581 (exit $ac_status); } &&
15582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15583 { (case "(($ac_try" in
15584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15585 *) ac_try_echo=$ac_try;;
15587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15588 (eval "$ac_try") 2>&5
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); }; } &&
15592 { ac_try='test -s conftest.$ac_objext'
15593 { (case "(($ac_try" in
15594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15595 *) ac_try_echo=$ac_try;;
15597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15598 (eval "$ac_try") 2>&5
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); }; }; then
15602 ac_header_compiler=yes
15604 echo "$as_me: failed program was:" >&5
15605 sed 's/^/| /' conftest.$ac_ext >&5
15607 ac_header_compiler=no
15610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15611 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15612 echo "${ECHO_T}$ac_header_compiler" >&6; }
15614 # Is the header present?
15615 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15616 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15617 cat >conftest.$ac_ext <<_ACEOF
15620 cat confdefs.h >>conftest.$ac_ext
15621 cat >>conftest.$ac_ext <<_ACEOF
15622 /* end confdefs.h. */
15623 #include <$ac_header>
15625 if { (ac_try="$ac_cpp conftest.$ac_ext"
15626 case "(($ac_try" in
15627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15628 *) ac_try_echo=$ac_try;;
15630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15633 grep -v '^ *+' conftest.er1 >conftest.err
15635 cat conftest.err >&5
15636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637 (exit $ac_status); } >/dev/null; then
15638 if test -s conftest.err; then
15639 ac_cpp_err=$ac_c_preproc_warn_flag
15640 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15647 if test -z "$ac_cpp_err"; then
15648 ac_header_preproc=yes
15650 echo "$as_me: failed program was:" >&5
15651 sed 's/^/| /' conftest.$ac_ext >&5
15653 ac_header_preproc=no
15656 rm -f conftest.err conftest.$ac_ext
15657 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15658 echo "${ECHO_T}$ac_header_preproc" >&6; }
15660 # So? What about this header?
15661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15663 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15664 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15666 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15667 ac_header_preproc=yes
15670 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15671 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15672 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15673 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15674 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15675 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15676 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15677 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15679 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15680 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15681 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15683 ## ----------------------------------- ##
15684 ## Report this to llvmbugs@cs.uiuc.edu ##
15685 ## ----------------------------------- ##
15687 ) | sed "s/^/$as_me: WARNING: /" >&2
15690 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15693 echo $ECHO_N "(cached) $ECHO_C" >&6
15695 eval "$as_ac_Header=\$ac_header_preproc"
15697 ac_res=`eval echo '${'$as_ac_Header'}'`
15698 { echo "$as_me:$LINENO: result: $ac_res" >&5
15699 echo "${ECHO_T}$ac_res" >&6; }
15702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15703 cat >>confdefs.h <<_ACEOF
15704 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15720 if test "$llvm_cv_enable_libffi" = "yes" ; then
15723 for ac_header in ffi.h ffi/ffi.h
15725 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15727 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15730 echo $ECHO_N "(cached) $ECHO_C" >&6
15732 ac_res=`eval echo '${'$as_ac_Header'}'`
15733 { echo "$as_me:$LINENO: result: $ac_res" >&5
15734 echo "${ECHO_T}$ac_res" >&6; }
15736 # Is the header compilable?
15737 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15738 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15739 cat >conftest.$ac_ext <<_ACEOF
15742 cat confdefs.h >>conftest.$ac_ext
15743 cat >>conftest.$ac_ext <<_ACEOF
15744 /* end confdefs.h. */
15745 $ac_includes_default
15746 #include <$ac_header>
15748 rm -f conftest.$ac_objext
15749 if { (ac_try="$ac_compile"
15750 case "(($ac_try" in
15751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15752 *) ac_try_echo=$ac_try;;
15754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15755 (eval "$ac_compile") 2>conftest.er1
15757 grep -v '^ *+' conftest.er1 >conftest.err
15759 cat conftest.err >&5
15760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761 (exit $ac_status); } &&
15762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15763 { (case "(($ac_try" in
15764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15765 *) ac_try_echo=$ac_try;;
15767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15768 (eval "$ac_try") 2>&5
15770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771 (exit $ac_status); }; } &&
15772 { ac_try='test -s conftest.$ac_objext'
15773 { (case "(($ac_try" in
15774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15775 *) ac_try_echo=$ac_try;;
15777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15778 (eval "$ac_try") 2>&5
15780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781 (exit $ac_status); }; }; then
15782 ac_header_compiler=yes
15784 echo "$as_me: failed program was:" >&5
15785 sed 's/^/| /' conftest.$ac_ext >&5
15787 ac_header_compiler=no
15790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15791 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15792 echo "${ECHO_T}$ac_header_compiler" >&6; }
15794 # Is the header present?
15795 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15796 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15797 cat >conftest.$ac_ext <<_ACEOF
15800 cat confdefs.h >>conftest.$ac_ext
15801 cat >>conftest.$ac_ext <<_ACEOF
15802 /* end confdefs.h. */
15803 #include <$ac_header>
15805 if { (ac_try="$ac_cpp conftest.$ac_ext"
15806 case "(($ac_try" in
15807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15808 *) ac_try_echo=$ac_try;;
15810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15811 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15813 grep -v '^ *+' conftest.er1 >conftest.err
15815 cat conftest.err >&5
15816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817 (exit $ac_status); } >/dev/null; then
15818 if test -s conftest.err; then
15819 ac_cpp_err=$ac_c_preproc_warn_flag
15820 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15827 if test -z "$ac_cpp_err"; then
15828 ac_header_preproc=yes
15830 echo "$as_me: failed program was:" >&5
15831 sed 's/^/| /' conftest.$ac_ext >&5
15833 ac_header_preproc=no
15836 rm -f conftest.err conftest.$ac_ext
15837 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15838 echo "${ECHO_T}$ac_header_preproc" >&6; }
15840 # So? What about this header?
15841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15843 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15844 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15846 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15847 ac_header_preproc=yes
15850 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15851 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15852 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15853 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15854 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15855 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15856 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15857 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15859 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15860 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15861 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15863 ## ----------------------------------- ##
15864 ## Report this to llvmbugs@cs.uiuc.edu ##
15865 ## ----------------------------------- ##
15867 ) | sed "s/^/$as_me: WARNING: /" >&2
15870 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15873 echo $ECHO_N "(cached) $ECHO_C" >&6
15875 eval "$as_ac_Header=\$ac_header_preproc"
15877 ac_res=`eval echo '${'$as_ac_Header'}'`
15878 { echo "$as_me:$LINENO: result: $ac_res" >&5
15879 echo "${ECHO_T}$ac_res" >&6; }
15882 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15883 cat >>confdefs.h <<_ACEOF
15884 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15894 for ac_header in CrashReporterClient.h
15896 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15898 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15901 echo $ECHO_N "(cached) $ECHO_C" >&6
15903 ac_res=`eval echo '${'$as_ac_Header'}'`
15904 { echo "$as_me:$LINENO: result: $ac_res" >&5
15905 echo "${ECHO_T}$ac_res" >&6; }
15907 # Is the header compilable?
15908 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15909 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15910 cat >conftest.$ac_ext <<_ACEOF
15913 cat confdefs.h >>conftest.$ac_ext
15914 cat >>conftest.$ac_ext <<_ACEOF
15915 /* end confdefs.h. */
15916 $ac_includes_default
15917 #include <$ac_header>
15919 rm -f conftest.$ac_objext
15920 if { (ac_try="$ac_compile"
15921 case "(($ac_try" in
15922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15923 *) ac_try_echo=$ac_try;;
15925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15926 (eval "$ac_compile") 2>conftest.er1
15928 grep -v '^ *+' conftest.er1 >conftest.err
15930 cat conftest.err >&5
15931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); } &&
15933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15934 { (case "(($ac_try" in
15935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15936 *) ac_try_echo=$ac_try;;
15938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15939 (eval "$ac_try") 2>&5
15941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942 (exit $ac_status); }; } &&
15943 { ac_try='test -s conftest.$ac_objext'
15944 { (case "(($ac_try" in
15945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15946 *) ac_try_echo=$ac_try;;
15948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15949 (eval "$ac_try") 2>&5
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); }; }; then
15953 ac_header_compiler=yes
15955 echo "$as_me: failed program was:" >&5
15956 sed 's/^/| /' conftest.$ac_ext >&5
15958 ac_header_compiler=no
15961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15962 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15963 echo "${ECHO_T}$ac_header_compiler" >&6; }
15965 # Is the header present?
15966 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15967 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15968 cat >conftest.$ac_ext <<_ACEOF
15971 cat confdefs.h >>conftest.$ac_ext
15972 cat >>conftest.$ac_ext <<_ACEOF
15973 /* end confdefs.h. */
15974 #include <$ac_header>
15976 if { (ac_try="$ac_cpp conftest.$ac_ext"
15977 case "(($ac_try" in
15978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15979 *) ac_try_echo=$ac_try;;
15981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15982 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15984 grep -v '^ *+' conftest.er1 >conftest.err
15986 cat conftest.err >&5
15987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988 (exit $ac_status); } >/dev/null; then
15989 if test -s conftest.err; then
15990 ac_cpp_err=$ac_c_preproc_warn_flag
15991 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15998 if test -z "$ac_cpp_err"; then
15999 ac_header_preproc=yes
16001 echo "$as_me: failed program was:" >&5
16002 sed 's/^/| /' conftest.$ac_ext >&5
16004 ac_header_preproc=no
16007 rm -f conftest.err conftest.$ac_ext
16008 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16009 echo "${ECHO_T}$ac_header_preproc" >&6; }
16011 # So? What about this header?
16012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16014 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16015 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16017 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16018 ac_header_preproc=yes
16021 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16022 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16023 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16024 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16025 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16026 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16027 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16028 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16030 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16031 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16032 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16034 ## ----------------------------------- ##
16035 ## Report this to llvmbugs@cs.uiuc.edu ##
16036 ## ----------------------------------- ##
16038 ) | sed "s/^/$as_me: WARNING: /" >&2
16041 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16044 echo $ECHO_N "(cached) $ECHO_C" >&6
16046 eval "$as_ac_Header=\$ac_header_preproc"
16048 ac_res=`eval echo '${'$as_ac_Header'}'`
16049 { echo "$as_me:$LINENO: result: $ac_res" >&5
16050 echo "${ECHO_T}$ac_res" >&6; }
16053 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16054 cat >>confdefs.h <<_ACEOF
16055 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16063 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16064 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16065 cat >conftest.$ac_ext <<_ACEOF
16068 cat confdefs.h >>conftest.$ac_ext
16069 cat >>conftest.$ac_ext <<_ACEOF
16070 /* end confdefs.h. */
16071 extern const char *__crashreporter_info__;
16073 __crashreporter_info__ = "test";
16078 rm -f conftest.$ac_objext conftest$ac_exeext
16079 if { (ac_try="$ac_link"
16080 case "(($ac_try" in
16081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16082 *) ac_try_echo=$ac_try;;
16084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16085 (eval "$ac_link") 2>conftest.er1
16087 grep -v '^ *+' conftest.er1 >conftest.err
16089 cat conftest.err >&5
16090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091 (exit $ac_status); } &&
16092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16093 { (case "(($ac_try" in
16094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16095 *) ac_try_echo=$ac_try;;
16097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16098 (eval "$ac_try") 2>&5
16100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16101 (exit $ac_status); }; } &&
16102 { ac_try='test -s conftest$ac_exeext'
16103 { (case "(($ac_try" in
16104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16105 *) ac_try_echo=$ac_try;;
16107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16108 (eval "$ac_try") 2>&5
16110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111 (exit $ac_status); }; }; then
16112 { echo "$as_me:$LINENO: result: yes" >&5
16113 echo "${ECHO_T}yes" >&6; }
16115 cat >>confdefs.h <<\_ACEOF
16116 #define HAVE_CRASHREPORTER_INFO 1
16120 echo "$as_me: failed program was:" >&5
16121 sed 's/^/| /' conftest.$ac_ext >&5
16123 { echo "$as_me:$LINENO: result: no" >&5
16124 echo "${ECHO_T}no" >&6; }
16126 cat >>confdefs.h <<\_ACEOF
16127 #define HAVE_CRASHREPORTER_INFO 0
16132 rm -f core conftest.err conftest.$ac_objext \
16133 conftest$ac_exeext conftest.$ac_ext
16138 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16139 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16140 if test "${ac_cv_huge_val_sanity+set}" = set; then
16141 echo $ECHO_N "(cached) $ECHO_C" >&6
16145 ac_cpp='$CXXCPP $CPPFLAGS'
16146 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16147 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16148 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16150 ac_save_CXXFLAGS=$CXXFLAGS
16152 if test "$cross_compiling" = yes; then
16153 ac_cv_huge_val_sanity=yes
16155 cat >conftest.$ac_ext <<_ACEOF
16158 cat confdefs.h >>conftest.$ac_ext
16159 cat >>conftest.$ac_ext <<_ACEOF
16160 /* end confdefs.h. */
16165 double x = HUGE_VAL; return x != x;
16170 rm -f conftest$ac_exeext
16171 if { (ac_try="$ac_link"
16172 case "(($ac_try" in
16173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16174 *) ac_try_echo=$ac_try;;
16176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16177 (eval "$ac_link") 2>&5
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16181 { (case "(($ac_try" in
16182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16183 *) ac_try_echo=$ac_try;;
16185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16186 (eval "$ac_try") 2>&5
16188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189 (exit $ac_status); }; }; then
16190 ac_cv_huge_val_sanity=yes
16192 echo "$as_me: program exited with status $ac_status" >&5
16193 echo "$as_me: failed program was:" >&5
16194 sed 's/^/| /' conftest.$ac_ext >&5
16196 ( exit $ac_status )
16197 ac_cv_huge_val_sanity=no
16199 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16203 CXXFLAGS=$ac_save_CXXFLAGS
16205 ac_cpp='$CPP $CPPFLAGS'
16206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16212 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16213 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16214 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16217 { echo "$as_me:$LINENO: checking for pid_t" >&5
16218 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16219 if test "${ac_cv_type_pid_t+set}" = set; then
16220 echo $ECHO_N "(cached) $ECHO_C" >&6
16222 cat >conftest.$ac_ext <<_ACEOF
16225 cat confdefs.h >>conftest.$ac_ext
16226 cat >>conftest.$ac_ext <<_ACEOF
16227 /* end confdefs.h. */
16228 $ac_includes_default
16229 typedef pid_t ac__type_new_;
16233 if ((ac__type_new_ *) 0)
16235 if (sizeof (ac__type_new_))
16241 rm -f conftest.$ac_objext
16242 if { (ac_try="$ac_compile"
16243 case "(($ac_try" in
16244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16245 *) ac_try_echo=$ac_try;;
16247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16248 (eval "$ac_compile") 2>conftest.er1
16250 grep -v '^ *+' conftest.er1 >conftest.err
16252 cat conftest.err >&5
16253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254 (exit $ac_status); } &&
16255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16256 { (case "(($ac_try" in
16257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16258 *) ac_try_echo=$ac_try;;
16260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16261 (eval "$ac_try") 2>&5
16263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264 (exit $ac_status); }; } &&
16265 { ac_try='test -s conftest.$ac_objext'
16266 { (case "(($ac_try" in
16267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16268 *) ac_try_echo=$ac_try;;
16270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16271 (eval "$ac_try") 2>&5
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); }; }; then
16275 ac_cv_type_pid_t=yes
16277 echo "$as_me: failed program was:" >&5
16278 sed 's/^/| /' conftest.$ac_ext >&5
16280 ac_cv_type_pid_t=no
16283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16285 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16286 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16287 if test $ac_cv_type_pid_t = yes; then
16291 cat >>confdefs.h <<_ACEOF
16297 { echo "$as_me:$LINENO: checking for size_t" >&5
16298 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16299 if test "${ac_cv_type_size_t+set}" = set; then
16300 echo $ECHO_N "(cached) $ECHO_C" >&6
16302 cat >conftest.$ac_ext <<_ACEOF
16305 cat confdefs.h >>conftest.$ac_ext
16306 cat >>conftest.$ac_ext <<_ACEOF
16307 /* end confdefs.h. */
16308 $ac_includes_default
16309 typedef size_t ac__type_new_;
16313 if ((ac__type_new_ *) 0)
16315 if (sizeof (ac__type_new_))
16321 rm -f conftest.$ac_objext
16322 if { (ac_try="$ac_compile"
16323 case "(($ac_try" in
16324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16325 *) ac_try_echo=$ac_try;;
16327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16328 (eval "$ac_compile") 2>conftest.er1
16330 grep -v '^ *+' conftest.er1 >conftest.err
16332 cat conftest.err >&5
16333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334 (exit $ac_status); } &&
16335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16336 { (case "(($ac_try" in
16337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16338 *) ac_try_echo=$ac_try;;
16340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16341 (eval "$ac_try") 2>&5
16343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344 (exit $ac_status); }; } &&
16345 { ac_try='test -s conftest.$ac_objext'
16346 { (case "(($ac_try" in
16347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16348 *) ac_try_echo=$ac_try;;
16350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16351 (eval "$ac_try") 2>&5
16353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354 (exit $ac_status); }; }; then
16355 ac_cv_type_size_t=yes
16357 echo "$as_me: failed program was:" >&5
16358 sed 's/^/| /' conftest.$ac_ext >&5
16360 ac_cv_type_size_t=no
16363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16365 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16366 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16367 if test $ac_cv_type_size_t = yes; then
16371 cat >>confdefs.h <<_ACEOF
16372 #define size_t unsigned int
16378 cat >>confdefs.h <<_ACEOF
16379 #define RETSIGTYPE void
16382 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16383 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16384 if test "${ac_cv_struct_tm+set}" = set; then
16385 echo $ECHO_N "(cached) $ECHO_C" >&6
16387 cat >conftest.$ac_ext <<_ACEOF
16390 cat confdefs.h >>conftest.$ac_ext
16391 cat >>conftest.$ac_ext <<_ACEOF
16392 /* end confdefs.h. */
16393 #include <sys/types.h>
16399 struct tm *tp; tp->tm_sec;
16404 rm -f conftest.$ac_objext
16405 if { (ac_try="$ac_compile"
16406 case "(($ac_try" in
16407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16408 *) ac_try_echo=$ac_try;;
16410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16411 (eval "$ac_compile") 2>conftest.er1
16413 grep -v '^ *+' conftest.er1 >conftest.err
16415 cat conftest.err >&5
16416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417 (exit $ac_status); } &&
16418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16419 { (case "(($ac_try" in
16420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16421 *) ac_try_echo=$ac_try;;
16423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16424 (eval "$ac_try") 2>&5
16426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427 (exit $ac_status); }; } &&
16428 { ac_try='test -s conftest.$ac_objext'
16429 { (case "(($ac_try" in
16430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16431 *) ac_try_echo=$ac_try;;
16433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16434 (eval "$ac_try") 2>&5
16436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 (exit $ac_status); }; }; then
16438 ac_cv_struct_tm=time.h
16440 echo "$as_me: failed program was:" >&5
16441 sed 's/^/| /' conftest.$ac_ext >&5
16443 ac_cv_struct_tm=sys/time.h
16446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16448 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16449 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16450 if test $ac_cv_struct_tm = sys/time.h; then
16452 cat >>confdefs.h <<\_ACEOF
16453 #define TM_IN_SYS_TIME 1
16458 { echo "$as_me:$LINENO: checking for int64_t" >&5
16459 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16460 if test "${ac_cv_type_int64_t+set}" = set; then
16461 echo $ECHO_N "(cached) $ECHO_C" >&6
16463 cat >conftest.$ac_ext <<_ACEOF
16466 cat confdefs.h >>conftest.$ac_ext
16467 cat >>conftest.$ac_ext <<_ACEOF
16468 /* end confdefs.h. */
16469 $ac_includes_default
16470 typedef int64_t ac__type_new_;
16474 if ((ac__type_new_ *) 0)
16476 if (sizeof (ac__type_new_))
16482 rm -f conftest.$ac_objext
16483 if { (ac_try="$ac_compile"
16484 case "(($ac_try" in
16485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16486 *) ac_try_echo=$ac_try;;
16488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16489 (eval "$ac_compile") 2>conftest.er1
16491 grep -v '^ *+' conftest.er1 >conftest.err
16493 cat conftest.err >&5
16494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495 (exit $ac_status); } &&
16496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16497 { (case "(($ac_try" in
16498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16499 *) ac_try_echo=$ac_try;;
16501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16502 (eval "$ac_try") 2>&5
16504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505 (exit $ac_status); }; } &&
16506 { ac_try='test -s conftest.$ac_objext'
16507 { (case "(($ac_try" in
16508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16509 *) ac_try_echo=$ac_try;;
16511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16512 (eval "$ac_try") 2>&5
16514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16515 (exit $ac_status); }; }; then
16516 ac_cv_type_int64_t=yes
16518 echo "$as_me: failed program was:" >&5
16519 sed 's/^/| /' conftest.$ac_ext >&5
16521 ac_cv_type_int64_t=no
16524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16526 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16527 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16528 if test $ac_cv_type_int64_t = yes; then
16530 cat >>confdefs.h <<_ACEOF
16531 #define HAVE_INT64_T 1
16536 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16537 echo "$as_me: error: Type int64_t required but not found" >&2;}
16538 { (exit 1); exit 1; }; }
16541 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16542 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16543 if test "${ac_cv_type_uint64_t+set}" = set; then
16544 echo $ECHO_N "(cached) $ECHO_C" >&6
16546 cat >conftest.$ac_ext <<_ACEOF
16549 cat confdefs.h >>conftest.$ac_ext
16550 cat >>conftest.$ac_ext <<_ACEOF
16551 /* end confdefs.h. */
16552 $ac_includes_default
16553 typedef uint64_t ac__type_new_;
16557 if ((ac__type_new_ *) 0)
16559 if (sizeof (ac__type_new_))
16565 rm -f conftest.$ac_objext
16566 if { (ac_try="$ac_compile"
16567 case "(($ac_try" in
16568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16569 *) ac_try_echo=$ac_try;;
16571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16572 (eval "$ac_compile") 2>conftest.er1
16574 grep -v '^ *+' conftest.er1 >conftest.err
16576 cat conftest.err >&5
16577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16578 (exit $ac_status); } &&
16579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16580 { (case "(($ac_try" in
16581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16582 *) ac_try_echo=$ac_try;;
16584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16585 (eval "$ac_try") 2>&5
16587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588 (exit $ac_status); }; } &&
16589 { ac_try='test -s conftest.$ac_objext'
16590 { (case "(($ac_try" in
16591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16592 *) ac_try_echo=$ac_try;;
16594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16595 (eval "$ac_try") 2>&5
16597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598 (exit $ac_status); }; }; then
16599 ac_cv_type_uint64_t=yes
16601 echo "$as_me: failed program was:" >&5
16602 sed 's/^/| /' conftest.$ac_ext >&5
16604 ac_cv_type_uint64_t=no
16607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16609 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16610 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16611 if test $ac_cv_type_uint64_t = yes; then
16613 cat >>confdefs.h <<_ACEOF
16614 #define HAVE_UINT64_T 1
16619 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16620 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16621 if test "${ac_cv_type_u_int64_t+set}" = set; then
16622 echo $ECHO_N "(cached) $ECHO_C" >&6
16624 cat >conftest.$ac_ext <<_ACEOF
16627 cat confdefs.h >>conftest.$ac_ext
16628 cat >>conftest.$ac_ext <<_ACEOF
16629 /* end confdefs.h. */
16630 $ac_includes_default
16631 typedef u_int64_t ac__type_new_;
16635 if ((ac__type_new_ *) 0)
16637 if (sizeof (ac__type_new_))
16643 rm -f conftest.$ac_objext
16644 if { (ac_try="$ac_compile"
16645 case "(($ac_try" in
16646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16647 *) ac_try_echo=$ac_try;;
16649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16650 (eval "$ac_compile") 2>conftest.er1
16652 grep -v '^ *+' conftest.er1 >conftest.err
16654 cat conftest.err >&5
16655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656 (exit $ac_status); } &&
16657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16658 { (case "(($ac_try" in
16659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16660 *) ac_try_echo=$ac_try;;
16662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16663 (eval "$ac_try") 2>&5
16665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666 (exit $ac_status); }; } &&
16667 { ac_try='test -s conftest.$ac_objext'
16668 { (case "(($ac_try" in
16669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16670 *) ac_try_echo=$ac_try;;
16672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16673 (eval "$ac_try") 2>&5
16675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676 (exit $ac_status); }; }; then
16677 ac_cv_type_u_int64_t=yes
16679 echo "$as_me: failed program was:" >&5
16680 sed 's/^/| /' conftest.$ac_ext >&5
16682 ac_cv_type_u_int64_t=no
16685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16687 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16688 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16689 if test $ac_cv_type_u_int64_t = yes; then
16691 cat >>confdefs.h <<_ACEOF
16692 #define HAVE_U_INT64_T 1
16697 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16698 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16699 { (exit 1); exit 1; }; }
16713 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16715 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16716 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16718 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16719 echo $ECHO_N "(cached) $ECHO_C" >&6
16721 cat >conftest.$ac_ext <<_ACEOF
16724 cat confdefs.h >>conftest.$ac_ext
16725 cat >>conftest.$ac_ext <<_ACEOF
16726 /* end confdefs.h. */
16727 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16729 #define $ac_func innocuous_$ac_func
16731 /* System header to define __stub macros and hopefully few prototypes,
16732 which can conflict with char $ac_func (); below.
16733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16734 <limits.h> exists even on freestanding compilers. */
16737 # include <limits.h>
16739 # include <assert.h>
16744 /* Override any GCC internal prototype to avoid an error.
16745 Use char because int might match the return type of a GCC
16746 builtin and then its argument prototype would still apply. */
16751 /* The GNU C library defines this for functions which it implements
16752 to always fail with ENOSYS. Some functions are actually named
16753 something starting with __ and the normal name is an alias. */
16754 #if defined __stub_$ac_func || defined __stub___$ac_func
16761 return $ac_func ();
16766 rm -f conftest.$ac_objext conftest$ac_exeext
16767 if { (ac_try="$ac_link"
16768 case "(($ac_try" in
16769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16770 *) ac_try_echo=$ac_try;;
16772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16773 (eval "$ac_link") 2>conftest.er1
16775 grep -v '^ *+' conftest.er1 >conftest.err
16777 cat conftest.err >&5
16778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); } &&
16780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16781 { (case "(($ac_try" in
16782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16783 *) ac_try_echo=$ac_try;;
16785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16786 (eval "$ac_try") 2>&5
16788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789 (exit $ac_status); }; } &&
16790 { ac_try='test -s conftest$ac_exeext'
16791 { (case "(($ac_try" in
16792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16793 *) ac_try_echo=$ac_try;;
16795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16796 (eval "$ac_try") 2>&5
16798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799 (exit $ac_status); }; }; then
16800 eval "$as_ac_var=yes"
16802 echo "$as_me: failed program was:" >&5
16803 sed 's/^/| /' conftest.$ac_ext >&5
16805 eval "$as_ac_var=no"
16808 rm -f core conftest.err conftest.$ac_objext \
16809 conftest$ac_exeext conftest.$ac_ext
16811 ac_res=`eval echo '${'$as_ac_var'}'`
16812 { echo "$as_me:$LINENO: result: $ac_res" >&5
16813 echo "${ECHO_T}$ac_res" >&6; }
16814 if test `eval echo '${'$as_ac_var'}'` = yes; then
16815 cat >>confdefs.h <<_ACEOF
16816 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16826 for ac_func in powf fmodf strtof round
16828 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16829 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16830 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16831 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16832 echo $ECHO_N "(cached) $ECHO_C" >&6
16834 cat >conftest.$ac_ext <<_ACEOF
16837 cat confdefs.h >>conftest.$ac_ext
16838 cat >>conftest.$ac_ext <<_ACEOF
16839 /* end confdefs.h. */
16840 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16842 #define $ac_func innocuous_$ac_func
16844 /* System header to define __stub macros and hopefully few prototypes,
16845 which can conflict with char $ac_func (); below.
16846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16847 <limits.h> exists even on freestanding compilers. */
16850 # include <limits.h>
16852 # include <assert.h>
16857 /* Override any GCC internal prototype to avoid an error.
16858 Use char because int might match the return type of a GCC
16859 builtin and then its argument prototype would still apply. */
16864 /* The GNU C library defines this for functions which it implements
16865 to always fail with ENOSYS. Some functions are actually named
16866 something starting with __ and the normal name is an alias. */
16867 #if defined __stub_$ac_func || defined __stub___$ac_func
16874 return $ac_func ();
16879 rm -f conftest.$ac_objext conftest$ac_exeext
16880 if { (ac_try="$ac_link"
16881 case "(($ac_try" in
16882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16883 *) ac_try_echo=$ac_try;;
16885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16886 (eval "$ac_link") 2>conftest.er1
16888 grep -v '^ *+' conftest.er1 >conftest.err
16890 cat conftest.err >&5
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); } &&
16893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16894 { (case "(($ac_try" in
16895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16896 *) ac_try_echo=$ac_try;;
16898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16899 (eval "$ac_try") 2>&5
16901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902 (exit $ac_status); }; } &&
16903 { ac_try='test -s conftest$ac_exeext'
16904 { (case "(($ac_try" in
16905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16906 *) ac_try_echo=$ac_try;;
16908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16909 (eval "$ac_try") 2>&5
16911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912 (exit $ac_status); }; }; then
16913 eval "$as_ac_var=yes"
16915 echo "$as_me: failed program was:" >&5
16916 sed 's/^/| /' conftest.$ac_ext >&5
16918 eval "$as_ac_var=no"
16921 rm -f core conftest.err conftest.$ac_objext \
16922 conftest$ac_exeext conftest.$ac_ext
16924 ac_res=`eval echo '${'$as_ac_var'}'`
16925 { echo "$as_me:$LINENO: result: $ac_res" >&5
16926 echo "${ECHO_T}$ac_res" >&6; }
16927 if test `eval echo '${'$as_ac_var'}'` = yes; then
16928 cat >>confdefs.h <<_ACEOF
16929 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16940 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16943 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16945 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16946 echo $ECHO_N "(cached) $ECHO_C" >&6
16948 cat >conftest.$ac_ext <<_ACEOF
16951 cat confdefs.h >>conftest.$ac_ext
16952 cat >>conftest.$ac_ext <<_ACEOF
16953 /* end confdefs.h. */
16954 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16956 #define $ac_func innocuous_$ac_func
16958 /* System header to define __stub macros and hopefully few prototypes,
16959 which can conflict with char $ac_func (); below.
16960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16961 <limits.h> exists even on freestanding compilers. */
16964 # include <limits.h>
16966 # include <assert.h>
16971 /* Override any GCC internal prototype to avoid an error.
16972 Use char because int might match the return type of a GCC
16973 builtin and then its argument prototype would still apply. */
16978 /* The GNU C library defines this for functions which it implements
16979 to always fail with ENOSYS. Some functions are actually named
16980 something starting with __ and the normal name is an alias. */
16981 #if defined __stub_$ac_func || defined __stub___$ac_func
16988 return $ac_func ();
16993 rm -f conftest.$ac_objext conftest$ac_exeext
16994 if { (ac_try="$ac_link"
16995 case "(($ac_try" in
16996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16997 *) ac_try_echo=$ac_try;;
16999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17000 (eval "$ac_link") 2>conftest.er1
17002 grep -v '^ *+' conftest.er1 >conftest.err
17004 cat conftest.err >&5
17005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006 (exit $ac_status); } &&
17007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17008 { (case "(($ac_try" in
17009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17010 *) ac_try_echo=$ac_try;;
17012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17013 (eval "$ac_try") 2>&5
17015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016 (exit $ac_status); }; } &&
17017 { ac_try='test -s conftest$ac_exeext'
17018 { (case "(($ac_try" in
17019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17020 *) ac_try_echo=$ac_try;;
17022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17023 (eval "$ac_try") 2>&5
17025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026 (exit $ac_status); }; }; then
17027 eval "$as_ac_var=yes"
17029 echo "$as_me: failed program was:" >&5
17030 sed 's/^/| /' conftest.$ac_ext >&5
17032 eval "$as_ac_var=no"
17035 rm -f core conftest.err conftest.$ac_objext \
17036 conftest$ac_exeext conftest.$ac_ext
17038 ac_res=`eval echo '${'$as_ac_var'}'`
17039 { echo "$as_me:$LINENO: result: $ac_res" >&5
17040 echo "${ECHO_T}$ac_res" >&6; }
17041 if test `eval echo '${'$as_ac_var'}'` = yes; then
17042 cat >>confdefs.h <<_ACEOF
17043 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17052 for ac_func in isatty mkdtemp mkstemp
17054 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17055 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17056 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17057 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17058 echo $ECHO_N "(cached) $ECHO_C" >&6
17060 cat >conftest.$ac_ext <<_ACEOF
17063 cat confdefs.h >>conftest.$ac_ext
17064 cat >>conftest.$ac_ext <<_ACEOF
17065 /* end confdefs.h. */
17066 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17068 #define $ac_func innocuous_$ac_func
17070 /* System header to define __stub macros and hopefully few prototypes,
17071 which can conflict with char $ac_func (); below.
17072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17073 <limits.h> exists even on freestanding compilers. */
17076 # include <limits.h>
17078 # include <assert.h>
17083 /* Override any GCC internal prototype to avoid an error.
17084 Use char because int might match the return type of a GCC
17085 builtin and then its argument prototype would still apply. */
17090 /* The GNU C library defines this for functions which it implements
17091 to always fail with ENOSYS. Some functions are actually named
17092 something starting with __ and the normal name is an alias. */
17093 #if defined __stub_$ac_func || defined __stub___$ac_func
17100 return $ac_func ();
17105 rm -f conftest.$ac_objext conftest$ac_exeext
17106 if { (ac_try="$ac_link"
17107 case "(($ac_try" in
17108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17109 *) ac_try_echo=$ac_try;;
17111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17112 (eval "$ac_link") 2>conftest.er1
17114 grep -v '^ *+' conftest.er1 >conftest.err
17116 cat conftest.err >&5
17117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118 (exit $ac_status); } &&
17119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17120 { (case "(($ac_try" in
17121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17122 *) ac_try_echo=$ac_try;;
17124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17125 (eval "$ac_try") 2>&5
17127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128 (exit $ac_status); }; } &&
17129 { ac_try='test -s conftest$ac_exeext'
17130 { (case "(($ac_try" in
17131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17132 *) ac_try_echo=$ac_try;;
17134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17135 (eval "$ac_try") 2>&5
17137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138 (exit $ac_status); }; }; then
17139 eval "$as_ac_var=yes"
17141 echo "$as_me: failed program was:" >&5
17142 sed 's/^/| /' conftest.$ac_ext >&5
17144 eval "$as_ac_var=no"
17147 rm -f core conftest.err conftest.$ac_objext \
17148 conftest$ac_exeext conftest.$ac_ext
17150 ac_res=`eval echo '${'$as_ac_var'}'`
17151 { echo "$as_me:$LINENO: result: $ac_res" >&5
17152 echo "${ECHO_T}$ac_res" >&6; }
17153 if test `eval echo '${'$as_ac_var'}'` = yes; then
17154 cat >>confdefs.h <<_ACEOF
17155 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17168 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17170 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17171 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17172 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17173 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17174 echo $ECHO_N "(cached) $ECHO_C" >&6
17176 cat >conftest.$ac_ext <<_ACEOF
17179 cat confdefs.h >>conftest.$ac_ext
17180 cat >>conftest.$ac_ext <<_ACEOF
17181 /* end confdefs.h. */
17182 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17184 #define $ac_func innocuous_$ac_func
17186 /* System header to define __stub macros and hopefully few prototypes,
17187 which can conflict with char $ac_func (); below.
17188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17189 <limits.h> exists even on freestanding compilers. */
17192 # include <limits.h>
17194 # include <assert.h>
17199 /* Override any GCC internal prototype to avoid an error.
17200 Use char because int might match the return type of a GCC
17201 builtin and then its argument prototype would still apply. */
17206 /* The GNU C library defines this for functions which it implements
17207 to always fail with ENOSYS. Some functions are actually named
17208 something starting with __ and the normal name is an alias. */
17209 #if defined __stub_$ac_func || defined __stub___$ac_func
17216 return $ac_func ();
17221 rm -f conftest.$ac_objext conftest$ac_exeext
17222 if { (ac_try="$ac_link"
17223 case "(($ac_try" in
17224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17225 *) ac_try_echo=$ac_try;;
17227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17228 (eval "$ac_link") 2>conftest.er1
17230 grep -v '^ *+' conftest.er1 >conftest.err
17232 cat conftest.err >&5
17233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234 (exit $ac_status); } &&
17235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17236 { (case "(($ac_try" in
17237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17238 *) ac_try_echo=$ac_try;;
17240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17241 (eval "$ac_try") 2>&5
17243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244 (exit $ac_status); }; } &&
17245 { ac_try='test -s conftest$ac_exeext'
17246 { (case "(($ac_try" in
17247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17248 *) ac_try_echo=$ac_try;;
17250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17251 (eval "$ac_try") 2>&5
17253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254 (exit $ac_status); }; }; then
17255 eval "$as_ac_var=yes"
17257 echo "$as_me: failed program was:" >&5
17258 sed 's/^/| /' conftest.$ac_ext >&5
17260 eval "$as_ac_var=no"
17263 rm -f core conftest.err conftest.$ac_objext \
17264 conftest$ac_exeext conftest.$ac_ext
17266 ac_res=`eval echo '${'$as_ac_var'}'`
17267 { echo "$as_me:$LINENO: result: $ac_res" >&5
17268 echo "${ECHO_T}$ac_res" >&6; }
17269 if test `eval echo '${'$as_ac_var'}'` = yes; then
17270 cat >>confdefs.h <<_ACEOF
17271 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17280 for ac_func in strerror strerror_r setenv
17282 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17283 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17284 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17285 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17286 echo $ECHO_N "(cached) $ECHO_C" >&6
17288 cat >conftest.$ac_ext <<_ACEOF
17291 cat confdefs.h >>conftest.$ac_ext
17292 cat >>conftest.$ac_ext <<_ACEOF
17293 /* end confdefs.h. */
17294 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17295 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17296 #define $ac_func innocuous_$ac_func
17298 /* System header to define __stub macros and hopefully few prototypes,
17299 which can conflict with char $ac_func (); below.
17300 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17301 <limits.h> exists even on freestanding compilers. */
17304 # include <limits.h>
17306 # include <assert.h>
17311 /* Override any GCC internal prototype to avoid an error.
17312 Use char because int might match the return type of a GCC
17313 builtin and then its argument prototype would still apply. */
17318 /* The GNU C library defines this for functions which it implements
17319 to always fail with ENOSYS. Some functions are actually named
17320 something starting with __ and the normal name is an alias. */
17321 #if defined __stub_$ac_func || defined __stub___$ac_func
17328 return $ac_func ();
17333 rm -f conftest.$ac_objext conftest$ac_exeext
17334 if { (ac_try="$ac_link"
17335 case "(($ac_try" in
17336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17337 *) ac_try_echo=$ac_try;;
17339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17340 (eval "$ac_link") 2>conftest.er1
17342 grep -v '^ *+' conftest.er1 >conftest.err
17344 cat conftest.err >&5
17345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17346 (exit $ac_status); } &&
17347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17348 { (case "(($ac_try" in
17349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17350 *) ac_try_echo=$ac_try;;
17352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17353 (eval "$ac_try") 2>&5
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); }; } &&
17357 { ac_try='test -s conftest$ac_exeext'
17358 { (case "(($ac_try" in
17359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17360 *) ac_try_echo=$ac_try;;
17362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17363 (eval "$ac_try") 2>&5
17365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366 (exit $ac_status); }; }; then
17367 eval "$as_ac_var=yes"
17369 echo "$as_me: failed program was:" >&5
17370 sed 's/^/| /' conftest.$ac_ext >&5
17372 eval "$as_ac_var=no"
17375 rm -f core conftest.err conftest.$ac_objext \
17376 conftest$ac_exeext conftest.$ac_ext
17378 ac_res=`eval echo '${'$as_ac_var'}'`
17379 { echo "$as_me:$LINENO: result: $ac_res" >&5
17380 echo "${ECHO_T}$ac_res" >&6; }
17381 if test `eval echo '${'$as_ac_var'}'` = yes; then
17382 cat >>confdefs.h <<_ACEOF
17383 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17393 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17395 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17396 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17397 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17398 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17399 echo $ECHO_N "(cached) $ECHO_C" >&6
17401 cat >conftest.$ac_ext <<_ACEOF
17404 cat confdefs.h >>conftest.$ac_ext
17405 cat >>conftest.$ac_ext <<_ACEOF
17406 /* end confdefs.h. */
17407 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17409 #define $ac_func innocuous_$ac_func
17411 /* System header to define __stub macros and hopefully few prototypes,
17412 which can conflict with char $ac_func (); below.
17413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17414 <limits.h> exists even on freestanding compilers. */
17417 # include <limits.h>
17419 # include <assert.h>
17424 /* Override any GCC internal prototype to avoid an error.
17425 Use char because int might match the return type of a GCC
17426 builtin and then its argument prototype would still apply. */
17431 /* The GNU C library defines this for functions which it implements
17432 to always fail with ENOSYS. Some functions are actually named
17433 something starting with __ and the normal name is an alias. */
17434 #if defined __stub_$ac_func || defined __stub___$ac_func
17441 return $ac_func ();
17446 rm -f conftest.$ac_objext conftest$ac_exeext
17447 if { (ac_try="$ac_link"
17448 case "(($ac_try" in
17449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17450 *) ac_try_echo=$ac_try;;
17452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17453 (eval "$ac_link") 2>conftest.er1
17455 grep -v '^ *+' conftest.er1 >conftest.err
17457 cat conftest.err >&5
17458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459 (exit $ac_status); } &&
17460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17461 { (case "(($ac_try" in
17462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17463 *) ac_try_echo=$ac_try;;
17465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17466 (eval "$ac_try") 2>&5
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); }; } &&
17470 { ac_try='test -s conftest$ac_exeext'
17471 { (case "(($ac_try" in
17472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17473 *) ac_try_echo=$ac_try;;
17475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17476 (eval "$ac_try") 2>&5
17478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479 (exit $ac_status); }; }; then
17480 eval "$as_ac_var=yes"
17482 echo "$as_me: failed program was:" >&5
17483 sed 's/^/| /' conftest.$ac_ext >&5
17485 eval "$as_ac_var=no"
17488 rm -f core conftest.err conftest.$ac_objext \
17489 conftest$ac_exeext conftest.$ac_ext
17491 ac_res=`eval echo '${'$as_ac_var'}'`
17492 { echo "$as_me:$LINENO: result: $ac_res" >&5
17493 echo "${ECHO_T}$ac_res" >&6; }
17494 if test `eval echo '${'$as_ac_var'}'` = yes; then
17495 cat >>confdefs.h <<_ACEOF
17496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17507 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17509 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17510 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17511 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17512 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17513 echo $ECHO_N "(cached) $ECHO_C" >&6
17515 cat >conftest.$ac_ext <<_ACEOF
17518 cat confdefs.h >>conftest.$ac_ext
17519 cat >>conftest.$ac_ext <<_ACEOF
17520 /* end confdefs.h. */
17521 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17523 #define $ac_func innocuous_$ac_func
17525 /* System header to define __stub macros and hopefully few prototypes,
17526 which can conflict with char $ac_func (); below.
17527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17528 <limits.h> exists even on freestanding compilers. */
17531 # include <limits.h>
17533 # include <assert.h>
17538 /* Override any GCC internal prototype to avoid an error.
17539 Use char because int might match the return type of a GCC
17540 builtin and then its argument prototype would still apply. */
17545 /* The GNU C library defines this for functions which it implements
17546 to always fail with ENOSYS. Some functions are actually named
17547 something starting with __ and the normal name is an alias. */
17548 #if defined __stub_$ac_func || defined __stub___$ac_func
17555 return $ac_func ();
17560 rm -f conftest.$ac_objext conftest$ac_exeext
17561 if { (ac_try="$ac_link"
17562 case "(($ac_try" in
17563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17564 *) ac_try_echo=$ac_try;;
17566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17567 (eval "$ac_link") 2>conftest.er1
17569 grep -v '^ *+' conftest.er1 >conftest.err
17571 cat conftest.err >&5
17572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573 (exit $ac_status); } &&
17574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17575 { (case "(($ac_try" in
17576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17577 *) ac_try_echo=$ac_try;;
17579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17580 (eval "$ac_try") 2>&5
17582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583 (exit $ac_status); }; } &&
17584 { ac_try='test -s conftest$ac_exeext'
17585 { (case "(($ac_try" in
17586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17587 *) ac_try_echo=$ac_try;;
17589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17590 (eval "$ac_try") 2>&5
17592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593 (exit $ac_status); }; }; then
17594 eval "$as_ac_var=yes"
17596 echo "$as_me: failed program was:" >&5
17597 sed 's/^/| /' conftest.$ac_ext >&5
17599 eval "$as_ac_var=no"
17602 rm -f core conftest.err conftest.$ac_objext \
17603 conftest$ac_exeext conftest.$ac_ext
17605 ac_res=`eval echo '${'$as_ac_var'}'`
17606 { echo "$as_me:$LINENO: result: $ac_res" >&5
17607 echo "${ECHO_T}$ac_res" >&6; }
17608 if test `eval echo '${'$as_ac_var'}'` = yes; then
17609 cat >>confdefs.h <<_ACEOF
17610 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17616 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17617 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17618 if test "${llvm_cv_c_printf_a+set}" = set; then
17619 echo $ECHO_N "(cached) $ECHO_C" >&6
17622 ac_cpp='$CPP $CPPFLAGS'
17623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17627 if test "$cross_compiling" = yes; then
17628 llvmac_cv_c_printf_a=no
17630 cat >conftest.$ac_ext <<_ACEOF
17634 cat confdefs.h >>conftest.$ac_ext
17635 cat >>conftest.$ac_ext <<_ACEOF
17636 /* end confdefs.h. */
17639 #include <stdlib.h>
17645 volatile double A, B;
17649 sprintf(Buffer, "%a", A);
17653 if (A != 0x1.999999999999ap-4)
17660 rm -f conftest$ac_exeext
17661 if { (ac_try="$ac_link"
17662 case "(($ac_try" in
17663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17664 *) ac_try_echo=$ac_try;;
17666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17667 (eval "$ac_link") 2>&5
17669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17671 { (case "(($ac_try" in
17672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17673 *) ac_try_echo=$ac_try;;
17675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17676 (eval "$ac_try") 2>&5
17678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679 (exit $ac_status); }; }; then
17680 llvm_cv_c_printf_a=yes
17682 echo "$as_me: program exited with status $ac_status" >&5
17683 echo "$as_me: failed program was:" >&5
17684 sed 's/^/| /' conftest.$ac_ext >&5
17686 ( exit $ac_status )
17687 llvmac_cv_c_printf_a=no
17689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17694 ac_cpp='$CPP $CPPFLAGS'
17695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17700 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17701 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17702 if test "$llvm_cv_c_printf_a" = "yes"; then
17704 cat >>confdefs.h <<\_ACEOF
17705 #define HAVE_PRINTF_A 1
17711 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17712 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17713 if test "${ac_cv_func_rand48+set}" = set; then
17714 echo $ECHO_N "(cached) $ECHO_C" >&6
17717 ac_cpp='$CXXCPP $CPPFLAGS'
17718 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17719 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17720 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17722 cat >conftest.$ac_ext <<_ACEOF
17725 cat confdefs.h >>conftest.$ac_ext
17726 cat >>conftest.$ac_ext <<_ACEOF
17727 /* end confdefs.h. */
17728 #include <stdlib.h>
17732 srand48(0);lrand48();drand48();
17737 rm -f conftest.$ac_objext
17738 if { (ac_try="$ac_compile"
17739 case "(($ac_try" in
17740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17741 *) ac_try_echo=$ac_try;;
17743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17744 (eval "$ac_compile") 2>conftest.er1
17746 grep -v '^ *+' conftest.er1 >conftest.err
17748 cat conftest.err >&5
17749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750 (exit $ac_status); } &&
17751 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17752 { (case "(($ac_try" in
17753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17754 *) ac_try_echo=$ac_try;;
17756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17757 (eval "$ac_try") 2>&5
17759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17760 (exit $ac_status); }; } &&
17761 { ac_try='test -s conftest.$ac_objext'
17762 { (case "(($ac_try" in
17763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17764 *) ac_try_echo=$ac_try;;
17766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17767 (eval "$ac_try") 2>&5
17769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770 (exit $ac_status); }; }; then
17771 ac_cv_func_rand48=yes
17773 echo "$as_me: failed program was:" >&5
17774 sed 's/^/| /' conftest.$ac_ext >&5
17776 ac_cv_func_rand48=no
17779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17781 ac_cpp='$CPP $CPPFLAGS'
17782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17787 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17788 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17790 if test "$ac_cv_func_rand48" = "yes" ; then
17792 cat >>confdefs.h <<\_ACEOF
17793 #define HAVE_RAND48 1
17799 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17800 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17801 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17802 echo $ECHO_N "(cached) $ECHO_C" >&6
17804 cat >conftest.$ac_ext <<_ACEOF
17807 cat confdefs.h >>conftest.$ac_ext
17808 cat >>conftest.$ac_ext <<_ACEOF
17809 /* end confdefs.h. */
17810 $ac_includes_default
17815 char *p = (char *) strerror_s;
17823 rm -f conftest.$ac_objext
17824 if { (ac_try="$ac_compile"
17825 case "(($ac_try" in
17826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17827 *) ac_try_echo=$ac_try;;
17829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17830 (eval "$ac_compile") 2>conftest.er1
17832 grep -v '^ *+' conftest.er1 >conftest.err
17834 cat conftest.err >&5
17835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836 (exit $ac_status); } &&
17837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17838 { (case "(($ac_try" in
17839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17840 *) ac_try_echo=$ac_try;;
17842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17843 (eval "$ac_try") 2>&5
17845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); }; } &&
17847 { ac_try='test -s conftest.$ac_objext'
17848 { (case "(($ac_try" in
17849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17850 *) ac_try_echo=$ac_try;;
17852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17853 (eval "$ac_try") 2>&5
17855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856 (exit $ac_status); }; }; then
17857 ac_cv_have_decl_strerror_s=yes
17859 echo "$as_me: failed program was:" >&5
17860 sed 's/^/| /' conftest.$ac_ext >&5
17862 ac_cv_have_decl_strerror_s=no
17865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17867 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17868 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17869 if test $ac_cv_have_decl_strerror_s = yes; then
17871 cat >>confdefs.h <<_ACEOF
17872 #define HAVE_DECL_STRERROR_S 1
17877 cat >>confdefs.h <<_ACEOF
17878 #define HAVE_DECL_STRERROR_S 0
17886 if test "$llvm_cv_os_type" = "MingW" ; then
17887 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17888 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17889 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17890 echo $ECHO_N "(cached) $ECHO_C" >&6
17892 ac_check_lib_save_LIBS=$LIBS
17894 cat >conftest.$ac_ext <<_ACEOF
17897 cat confdefs.h >>conftest.$ac_ext
17898 cat >>conftest.$ac_ext <<_ACEOF
17899 /* end confdefs.h. */
17901 /* Override any GCC internal prototype to avoid an error.
17902 Use char because int might match the return type of a GCC
17903 builtin and then its argument prototype would still apply. */
17916 rm -f conftest.$ac_objext conftest$ac_exeext
17917 if { (ac_try="$ac_link"
17918 case "(($ac_try" in
17919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17920 *) ac_try_echo=$ac_try;;
17922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17923 (eval "$ac_link") 2>conftest.er1
17925 grep -v '^ *+' conftest.er1 >conftest.err
17927 cat conftest.err >&5
17928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929 (exit $ac_status); } &&
17930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17931 { (case "(($ac_try" in
17932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17933 *) ac_try_echo=$ac_try;;
17935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17936 (eval "$ac_try") 2>&5
17938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939 (exit $ac_status); }; } &&
17940 { ac_try='test -s conftest$ac_exeext'
17941 { (case "(($ac_try" in
17942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17943 *) ac_try_echo=$ac_try;;
17945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17946 (eval "$ac_try") 2>&5
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); }; }; then
17950 ac_cv_lib_gcc__alloca=yes
17952 echo "$as_me: failed program was:" >&5
17953 sed 's/^/| /' conftest.$ac_ext >&5
17955 ac_cv_lib_gcc__alloca=no
17958 rm -f core conftest.err conftest.$ac_objext \
17959 conftest$ac_exeext conftest.$ac_ext
17960 LIBS=$ac_check_lib_save_LIBS
17962 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17963 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17964 if test $ac_cv_lib_gcc__alloca = yes; then
17966 cat >>confdefs.h <<\_ACEOF
17967 #define HAVE__ALLOCA 1
17972 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17973 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17974 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17975 echo $ECHO_N "(cached) $ECHO_C" >&6
17977 ac_check_lib_save_LIBS=$LIBS
17979 cat >conftest.$ac_ext <<_ACEOF
17982 cat confdefs.h >>conftest.$ac_ext
17983 cat >>conftest.$ac_ext <<_ACEOF
17984 /* end confdefs.h. */
17986 /* Override any GCC internal prototype to avoid an error.
17987 Use char because int might match the return type of a GCC
17988 builtin and then its argument prototype would still apply. */
17996 return __alloca ();
18001 rm -f conftest.$ac_objext conftest$ac_exeext
18002 if { (ac_try="$ac_link"
18003 case "(($ac_try" in
18004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18005 *) ac_try_echo=$ac_try;;
18007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18008 (eval "$ac_link") 2>conftest.er1
18010 grep -v '^ *+' conftest.er1 >conftest.err
18012 cat conftest.err >&5
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); } &&
18015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18016 { (case "(($ac_try" in
18017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18018 *) ac_try_echo=$ac_try;;
18020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18021 (eval "$ac_try") 2>&5
18023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024 (exit $ac_status); }; } &&
18025 { ac_try='test -s conftest$ac_exeext'
18026 { (case "(($ac_try" in
18027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18028 *) ac_try_echo=$ac_try;;
18030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18031 (eval "$ac_try") 2>&5
18033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034 (exit $ac_status); }; }; then
18035 ac_cv_lib_gcc___alloca=yes
18037 echo "$as_me: failed program was:" >&5
18038 sed 's/^/| /' conftest.$ac_ext >&5
18040 ac_cv_lib_gcc___alloca=no
18043 rm -f core conftest.err conftest.$ac_objext \
18044 conftest$ac_exeext conftest.$ac_ext
18045 LIBS=$ac_check_lib_save_LIBS
18047 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18048 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18049 if test $ac_cv_lib_gcc___alloca = yes; then
18051 cat >>confdefs.h <<\_ACEOF
18052 #define HAVE___ALLOCA 1
18057 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18058 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18059 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18060 echo $ECHO_N "(cached) $ECHO_C" >&6
18062 ac_check_lib_save_LIBS=$LIBS
18064 cat >conftest.$ac_ext <<_ACEOF
18067 cat confdefs.h >>conftest.$ac_ext
18068 cat >>conftest.$ac_ext <<_ACEOF
18069 /* end confdefs.h. */
18071 /* Override any GCC internal prototype to avoid an error.
18072 Use char because int might match the return type of a GCC
18073 builtin and then its argument prototype would still apply. */
18081 return __chkstk ();
18086 rm -f conftest.$ac_objext conftest$ac_exeext
18087 if { (ac_try="$ac_link"
18088 case "(($ac_try" in
18089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18090 *) ac_try_echo=$ac_try;;
18092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18093 (eval "$ac_link") 2>conftest.er1
18095 grep -v '^ *+' conftest.er1 >conftest.err
18097 cat conftest.err >&5
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); } &&
18100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18101 { (case "(($ac_try" in
18102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18103 *) ac_try_echo=$ac_try;;
18105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18106 (eval "$ac_try") 2>&5
18108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109 (exit $ac_status); }; } &&
18110 { ac_try='test -s conftest$ac_exeext'
18111 { (case "(($ac_try" in
18112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18113 *) ac_try_echo=$ac_try;;
18115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18116 (eval "$ac_try") 2>&5
18118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119 (exit $ac_status); }; }; then
18120 ac_cv_lib_gcc___chkstk=yes
18122 echo "$as_me: failed program was:" >&5
18123 sed 's/^/| /' conftest.$ac_ext >&5
18125 ac_cv_lib_gcc___chkstk=no
18128 rm -f core conftest.err conftest.$ac_objext \
18129 conftest$ac_exeext conftest.$ac_ext
18130 LIBS=$ac_check_lib_save_LIBS
18132 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18133 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18134 if test $ac_cv_lib_gcc___chkstk = yes; then
18136 cat >>confdefs.h <<\_ACEOF
18137 #define HAVE___CHKSTK 1
18142 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18143 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18144 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18145 echo $ECHO_N "(cached) $ECHO_C" >&6
18147 ac_check_lib_save_LIBS=$LIBS
18149 cat >conftest.$ac_ext <<_ACEOF
18152 cat confdefs.h >>conftest.$ac_ext
18153 cat >>conftest.$ac_ext <<_ACEOF
18154 /* end confdefs.h. */
18156 /* Override any GCC internal prototype to avoid an error.
18157 Use char because int might match the return type of a GCC
18158 builtin and then its argument prototype would still apply. */
18166 return ___chkstk ();
18171 rm -f conftest.$ac_objext conftest$ac_exeext
18172 if { (ac_try="$ac_link"
18173 case "(($ac_try" in
18174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18175 *) ac_try_echo=$ac_try;;
18177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18178 (eval "$ac_link") 2>conftest.er1
18180 grep -v '^ *+' conftest.er1 >conftest.err
18182 cat conftest.err >&5
18183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184 (exit $ac_status); } &&
18185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18186 { (case "(($ac_try" in
18187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18188 *) ac_try_echo=$ac_try;;
18190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18191 (eval "$ac_try") 2>&5
18193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194 (exit $ac_status); }; } &&
18195 { ac_try='test -s conftest$ac_exeext'
18196 { (case "(($ac_try" in
18197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18198 *) ac_try_echo=$ac_try;;
18200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18201 (eval "$ac_try") 2>&5
18203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204 (exit $ac_status); }; }; then
18205 ac_cv_lib_gcc____chkstk=yes
18207 echo "$as_me: failed program was:" >&5
18208 sed 's/^/| /' conftest.$ac_ext >&5
18210 ac_cv_lib_gcc____chkstk=no
18213 rm -f core conftest.err conftest.$ac_objext \
18214 conftest$ac_exeext conftest.$ac_ext
18215 LIBS=$ac_check_lib_save_LIBS
18217 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18218 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18219 if test $ac_cv_lib_gcc____chkstk = yes; then
18221 cat >>confdefs.h <<\_ACEOF
18222 #define HAVE____CHKSTK 1
18228 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18229 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18230 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18231 echo $ECHO_N "(cached) $ECHO_C" >&6
18233 ac_check_lib_save_LIBS=$LIBS
18235 cat >conftest.$ac_ext <<_ACEOF
18238 cat confdefs.h >>conftest.$ac_ext
18239 cat >>conftest.$ac_ext <<_ACEOF
18240 /* end confdefs.h. */
18242 /* Override any GCC internal prototype to avoid an error.
18243 Use char because int might match the return type of a GCC
18244 builtin and then its argument prototype would still apply. */
18252 return __ashldi3 ();
18257 rm -f conftest.$ac_objext conftest$ac_exeext
18258 if { (ac_try="$ac_link"
18259 case "(($ac_try" in
18260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18261 *) ac_try_echo=$ac_try;;
18263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18264 (eval "$ac_link") 2>conftest.er1
18266 grep -v '^ *+' conftest.er1 >conftest.err
18268 cat conftest.err >&5
18269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270 (exit $ac_status); } &&
18271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18272 { (case "(($ac_try" in
18273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18274 *) ac_try_echo=$ac_try;;
18276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18277 (eval "$ac_try") 2>&5
18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 (exit $ac_status); }; } &&
18281 { ac_try='test -s conftest$ac_exeext'
18282 { (case "(($ac_try" in
18283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18284 *) ac_try_echo=$ac_try;;
18286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18287 (eval "$ac_try") 2>&5
18289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290 (exit $ac_status); }; }; then
18291 ac_cv_lib_gcc___ashldi3=yes
18293 echo "$as_me: failed program was:" >&5
18294 sed 's/^/| /' conftest.$ac_ext >&5
18296 ac_cv_lib_gcc___ashldi3=no
18299 rm -f core conftest.err conftest.$ac_objext \
18300 conftest$ac_exeext conftest.$ac_ext
18301 LIBS=$ac_check_lib_save_LIBS
18303 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18304 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18305 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18307 cat >>confdefs.h <<\_ACEOF
18308 #define HAVE___ASHLDI3 1
18313 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18314 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18315 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18316 echo $ECHO_N "(cached) $ECHO_C" >&6
18318 ac_check_lib_save_LIBS=$LIBS
18320 cat >conftest.$ac_ext <<_ACEOF
18323 cat confdefs.h >>conftest.$ac_ext
18324 cat >>conftest.$ac_ext <<_ACEOF
18325 /* end confdefs.h. */
18327 /* Override any GCC internal prototype to avoid an error.
18328 Use char because int might match the return type of a GCC
18329 builtin and then its argument prototype would still apply. */
18337 return __ashrdi3 ();
18342 rm -f conftest.$ac_objext conftest$ac_exeext
18343 if { (ac_try="$ac_link"
18344 case "(($ac_try" in
18345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18346 *) ac_try_echo=$ac_try;;
18348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18349 (eval "$ac_link") 2>conftest.er1
18351 grep -v '^ *+' conftest.er1 >conftest.err
18353 cat conftest.err >&5
18354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355 (exit $ac_status); } &&
18356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18357 { (case "(($ac_try" in
18358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18359 *) ac_try_echo=$ac_try;;
18361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18362 (eval "$ac_try") 2>&5
18364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365 (exit $ac_status); }; } &&
18366 { ac_try='test -s conftest$ac_exeext'
18367 { (case "(($ac_try" in
18368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18369 *) ac_try_echo=$ac_try;;
18371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18372 (eval "$ac_try") 2>&5
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); }; }; then
18376 ac_cv_lib_gcc___ashrdi3=yes
18378 echo "$as_me: failed program was:" >&5
18379 sed 's/^/| /' conftest.$ac_ext >&5
18381 ac_cv_lib_gcc___ashrdi3=no
18384 rm -f core conftest.err conftest.$ac_objext \
18385 conftest$ac_exeext conftest.$ac_ext
18386 LIBS=$ac_check_lib_save_LIBS
18388 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18389 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18390 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18392 cat >>confdefs.h <<\_ACEOF
18393 #define HAVE___ASHRDI3 1
18398 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18399 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18400 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18401 echo $ECHO_N "(cached) $ECHO_C" >&6
18403 ac_check_lib_save_LIBS=$LIBS
18405 cat >conftest.$ac_ext <<_ACEOF
18408 cat confdefs.h >>conftest.$ac_ext
18409 cat >>conftest.$ac_ext <<_ACEOF
18410 /* end confdefs.h. */
18412 /* Override any GCC internal prototype to avoid an error.
18413 Use char because int might match the return type of a GCC
18414 builtin and then its argument prototype would still apply. */
18422 return __divdi3 ();
18427 rm -f conftest.$ac_objext conftest$ac_exeext
18428 if { (ac_try="$ac_link"
18429 case "(($ac_try" in
18430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18431 *) ac_try_echo=$ac_try;;
18433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18434 (eval "$ac_link") 2>conftest.er1
18436 grep -v '^ *+' conftest.er1 >conftest.err
18438 cat conftest.err >&5
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); } &&
18441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18442 { (case "(($ac_try" in
18443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18444 *) ac_try_echo=$ac_try;;
18446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18447 (eval "$ac_try") 2>&5
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); }; } &&
18451 { ac_try='test -s conftest$ac_exeext'
18452 { (case "(($ac_try" in
18453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18454 *) ac_try_echo=$ac_try;;
18456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18457 (eval "$ac_try") 2>&5
18459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460 (exit $ac_status); }; }; then
18461 ac_cv_lib_gcc___divdi3=yes
18463 echo "$as_me: failed program was:" >&5
18464 sed 's/^/| /' conftest.$ac_ext >&5
18466 ac_cv_lib_gcc___divdi3=no
18469 rm -f core conftest.err conftest.$ac_objext \
18470 conftest$ac_exeext conftest.$ac_ext
18471 LIBS=$ac_check_lib_save_LIBS
18473 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18474 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18475 if test $ac_cv_lib_gcc___divdi3 = yes; then
18477 cat >>confdefs.h <<\_ACEOF
18478 #define HAVE___DIVDI3 1
18483 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18484 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18485 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18486 echo $ECHO_N "(cached) $ECHO_C" >&6
18488 ac_check_lib_save_LIBS=$LIBS
18490 cat >conftest.$ac_ext <<_ACEOF
18493 cat confdefs.h >>conftest.$ac_ext
18494 cat >>conftest.$ac_ext <<_ACEOF
18495 /* end confdefs.h. */
18497 /* Override any GCC internal prototype to avoid an error.
18498 Use char because int might match the return type of a GCC
18499 builtin and then its argument prototype would still apply. */
18507 return __fixdfdi ();
18512 rm -f conftest.$ac_objext conftest$ac_exeext
18513 if { (ac_try="$ac_link"
18514 case "(($ac_try" in
18515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18516 *) ac_try_echo=$ac_try;;
18518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18519 (eval "$ac_link") 2>conftest.er1
18521 grep -v '^ *+' conftest.er1 >conftest.err
18523 cat conftest.err >&5
18524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525 (exit $ac_status); } &&
18526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18527 { (case "(($ac_try" in
18528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18529 *) ac_try_echo=$ac_try;;
18531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18532 (eval "$ac_try") 2>&5
18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535 (exit $ac_status); }; } &&
18536 { ac_try='test -s conftest$ac_exeext'
18537 { (case "(($ac_try" in
18538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18539 *) ac_try_echo=$ac_try;;
18541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18542 (eval "$ac_try") 2>&5
18544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545 (exit $ac_status); }; }; then
18546 ac_cv_lib_gcc___fixdfdi=yes
18548 echo "$as_me: failed program was:" >&5
18549 sed 's/^/| /' conftest.$ac_ext >&5
18551 ac_cv_lib_gcc___fixdfdi=no
18554 rm -f core conftest.err conftest.$ac_objext \
18555 conftest$ac_exeext conftest.$ac_ext
18556 LIBS=$ac_check_lib_save_LIBS
18558 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18559 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18560 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18562 cat >>confdefs.h <<\_ACEOF
18563 #define HAVE___FIXDFDI 1
18568 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18569 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18570 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18571 echo $ECHO_N "(cached) $ECHO_C" >&6
18573 ac_check_lib_save_LIBS=$LIBS
18575 cat >conftest.$ac_ext <<_ACEOF
18578 cat confdefs.h >>conftest.$ac_ext
18579 cat >>conftest.$ac_ext <<_ACEOF
18580 /* end confdefs.h. */
18582 /* Override any GCC internal prototype to avoid an error.
18583 Use char because int might match the return type of a GCC
18584 builtin and then its argument prototype would still apply. */
18592 return __fixsfdi ();
18597 rm -f conftest.$ac_objext conftest$ac_exeext
18598 if { (ac_try="$ac_link"
18599 case "(($ac_try" in
18600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18601 *) ac_try_echo=$ac_try;;
18603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18604 (eval "$ac_link") 2>conftest.er1
18606 grep -v '^ *+' conftest.er1 >conftest.err
18608 cat conftest.err >&5
18609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610 (exit $ac_status); } &&
18611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18612 { (case "(($ac_try" in
18613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18614 *) ac_try_echo=$ac_try;;
18616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18617 (eval "$ac_try") 2>&5
18619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620 (exit $ac_status); }; } &&
18621 { ac_try='test -s conftest$ac_exeext'
18622 { (case "(($ac_try" in
18623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18624 *) ac_try_echo=$ac_try;;
18626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18627 (eval "$ac_try") 2>&5
18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); }; }; then
18631 ac_cv_lib_gcc___fixsfdi=yes
18633 echo "$as_me: failed program was:" >&5
18634 sed 's/^/| /' conftest.$ac_ext >&5
18636 ac_cv_lib_gcc___fixsfdi=no
18639 rm -f core conftest.err conftest.$ac_objext \
18640 conftest$ac_exeext conftest.$ac_ext
18641 LIBS=$ac_check_lib_save_LIBS
18643 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18644 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18645 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18647 cat >>confdefs.h <<\_ACEOF
18648 #define HAVE___FIXSFDI 1
18653 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18654 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18655 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18656 echo $ECHO_N "(cached) $ECHO_C" >&6
18658 ac_check_lib_save_LIBS=$LIBS
18660 cat >conftest.$ac_ext <<_ACEOF
18663 cat confdefs.h >>conftest.$ac_ext
18664 cat >>conftest.$ac_ext <<_ACEOF
18665 /* end confdefs.h. */
18667 /* Override any GCC internal prototype to avoid an error.
18668 Use char because int might match the return type of a GCC
18669 builtin and then its argument prototype would still apply. */
18673 char __floatdidf ();
18677 return __floatdidf ();
18682 rm -f conftest.$ac_objext conftest$ac_exeext
18683 if { (ac_try="$ac_link"
18684 case "(($ac_try" in
18685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18686 *) ac_try_echo=$ac_try;;
18688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18689 (eval "$ac_link") 2>conftest.er1
18691 grep -v '^ *+' conftest.er1 >conftest.err
18693 cat conftest.err >&5
18694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695 (exit $ac_status); } &&
18696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18697 { (case "(($ac_try" in
18698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18699 *) ac_try_echo=$ac_try;;
18701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18702 (eval "$ac_try") 2>&5
18704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705 (exit $ac_status); }; } &&
18706 { ac_try='test -s conftest$ac_exeext'
18707 { (case "(($ac_try" in
18708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18709 *) ac_try_echo=$ac_try;;
18711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18712 (eval "$ac_try") 2>&5
18714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715 (exit $ac_status); }; }; then
18716 ac_cv_lib_gcc___floatdidf=yes
18718 echo "$as_me: failed program was:" >&5
18719 sed 's/^/| /' conftest.$ac_ext >&5
18721 ac_cv_lib_gcc___floatdidf=no
18724 rm -f core conftest.err conftest.$ac_objext \
18725 conftest$ac_exeext conftest.$ac_ext
18726 LIBS=$ac_check_lib_save_LIBS
18728 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18729 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18730 if test $ac_cv_lib_gcc___floatdidf = yes; then
18732 cat >>confdefs.h <<\_ACEOF
18733 #define HAVE___FLOATDIDF 1
18738 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18739 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18740 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18741 echo $ECHO_N "(cached) $ECHO_C" >&6
18743 ac_check_lib_save_LIBS=$LIBS
18745 cat >conftest.$ac_ext <<_ACEOF
18748 cat confdefs.h >>conftest.$ac_ext
18749 cat >>conftest.$ac_ext <<_ACEOF
18750 /* end confdefs.h. */
18752 /* Override any GCC internal prototype to avoid an error.
18753 Use char because int might match the return type of a GCC
18754 builtin and then its argument prototype would still apply. */
18762 return __lshrdi3 ();
18767 rm -f conftest.$ac_objext conftest$ac_exeext
18768 if { (ac_try="$ac_link"
18769 case "(($ac_try" in
18770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18771 *) ac_try_echo=$ac_try;;
18773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18774 (eval "$ac_link") 2>conftest.er1
18776 grep -v '^ *+' conftest.er1 >conftest.err
18778 cat conftest.err >&5
18779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780 (exit $ac_status); } &&
18781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18782 { (case "(($ac_try" in
18783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18784 *) ac_try_echo=$ac_try;;
18786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18787 (eval "$ac_try") 2>&5
18789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790 (exit $ac_status); }; } &&
18791 { ac_try='test -s conftest$ac_exeext'
18792 { (case "(($ac_try" in
18793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18794 *) ac_try_echo=$ac_try;;
18796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18797 (eval "$ac_try") 2>&5
18799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800 (exit $ac_status); }; }; then
18801 ac_cv_lib_gcc___lshrdi3=yes
18803 echo "$as_me: failed program was:" >&5
18804 sed 's/^/| /' conftest.$ac_ext >&5
18806 ac_cv_lib_gcc___lshrdi3=no
18809 rm -f core conftest.err conftest.$ac_objext \
18810 conftest$ac_exeext conftest.$ac_ext
18811 LIBS=$ac_check_lib_save_LIBS
18813 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18814 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18815 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18817 cat >>confdefs.h <<\_ACEOF
18818 #define HAVE___LSHRDI3 1
18823 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18824 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18825 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18826 echo $ECHO_N "(cached) $ECHO_C" >&6
18828 ac_check_lib_save_LIBS=$LIBS
18830 cat >conftest.$ac_ext <<_ACEOF
18833 cat confdefs.h >>conftest.$ac_ext
18834 cat >>conftest.$ac_ext <<_ACEOF
18835 /* end confdefs.h. */
18837 /* Override any GCC internal prototype to avoid an error.
18838 Use char because int might match the return type of a GCC
18839 builtin and then its argument prototype would still apply. */
18847 return __moddi3 ();
18852 rm -f conftest.$ac_objext conftest$ac_exeext
18853 if { (ac_try="$ac_link"
18854 case "(($ac_try" in
18855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18856 *) ac_try_echo=$ac_try;;
18858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18859 (eval "$ac_link") 2>conftest.er1
18861 grep -v '^ *+' conftest.er1 >conftest.err
18863 cat conftest.err >&5
18864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865 (exit $ac_status); } &&
18866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18867 { (case "(($ac_try" in
18868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18869 *) ac_try_echo=$ac_try;;
18871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18872 (eval "$ac_try") 2>&5
18874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875 (exit $ac_status); }; } &&
18876 { ac_try='test -s conftest$ac_exeext'
18877 { (case "(($ac_try" in
18878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18879 *) ac_try_echo=$ac_try;;
18881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18882 (eval "$ac_try") 2>&5
18884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885 (exit $ac_status); }; }; then
18886 ac_cv_lib_gcc___moddi3=yes
18888 echo "$as_me: failed program was:" >&5
18889 sed 's/^/| /' conftest.$ac_ext >&5
18891 ac_cv_lib_gcc___moddi3=no
18894 rm -f core conftest.err conftest.$ac_objext \
18895 conftest$ac_exeext conftest.$ac_ext
18896 LIBS=$ac_check_lib_save_LIBS
18898 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18899 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18900 if test $ac_cv_lib_gcc___moddi3 = yes; then
18902 cat >>confdefs.h <<\_ACEOF
18903 #define HAVE___MODDI3 1
18908 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18909 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18910 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18911 echo $ECHO_N "(cached) $ECHO_C" >&6
18913 ac_check_lib_save_LIBS=$LIBS
18915 cat >conftest.$ac_ext <<_ACEOF
18918 cat confdefs.h >>conftest.$ac_ext
18919 cat >>conftest.$ac_ext <<_ACEOF
18920 /* end confdefs.h. */
18922 /* Override any GCC internal prototype to avoid an error.
18923 Use char because int might match the return type of a GCC
18924 builtin and then its argument prototype would still apply. */
18932 return __udivdi3 ();
18937 rm -f conftest.$ac_objext conftest$ac_exeext
18938 if { (ac_try="$ac_link"
18939 case "(($ac_try" in
18940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18941 *) ac_try_echo=$ac_try;;
18943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18944 (eval "$ac_link") 2>conftest.er1
18946 grep -v '^ *+' conftest.er1 >conftest.err
18948 cat conftest.err >&5
18949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950 (exit $ac_status); } &&
18951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18952 { (case "(($ac_try" in
18953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18954 *) ac_try_echo=$ac_try;;
18956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18957 (eval "$ac_try") 2>&5
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); }; } &&
18961 { ac_try='test -s conftest$ac_exeext'
18962 { (case "(($ac_try" in
18963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18964 *) ac_try_echo=$ac_try;;
18966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18967 (eval "$ac_try") 2>&5
18969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970 (exit $ac_status); }; }; then
18971 ac_cv_lib_gcc___udivdi3=yes
18973 echo "$as_me: failed program was:" >&5
18974 sed 's/^/| /' conftest.$ac_ext >&5
18976 ac_cv_lib_gcc___udivdi3=no
18979 rm -f core conftest.err conftest.$ac_objext \
18980 conftest$ac_exeext conftest.$ac_ext
18981 LIBS=$ac_check_lib_save_LIBS
18983 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18984 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18985 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18987 cat >>confdefs.h <<\_ACEOF
18988 #define HAVE___UDIVDI3 1
18993 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18994 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18995 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18996 echo $ECHO_N "(cached) $ECHO_C" >&6
18998 ac_check_lib_save_LIBS=$LIBS
19000 cat >conftest.$ac_ext <<_ACEOF
19003 cat confdefs.h >>conftest.$ac_ext
19004 cat >>conftest.$ac_ext <<_ACEOF
19005 /* end confdefs.h. */
19007 /* Override any GCC internal prototype to avoid an error.
19008 Use char because int might match the return type of a GCC
19009 builtin and then its argument prototype would still apply. */
19017 return __umoddi3 ();
19022 rm -f conftest.$ac_objext conftest$ac_exeext
19023 if { (ac_try="$ac_link"
19024 case "(($ac_try" in
19025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19026 *) ac_try_echo=$ac_try;;
19028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19029 (eval "$ac_link") 2>conftest.er1
19031 grep -v '^ *+' conftest.er1 >conftest.err
19033 cat conftest.err >&5
19034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035 (exit $ac_status); } &&
19036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19037 { (case "(($ac_try" in
19038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19039 *) ac_try_echo=$ac_try;;
19041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19042 (eval "$ac_try") 2>&5
19044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045 (exit $ac_status); }; } &&
19046 { ac_try='test -s conftest$ac_exeext'
19047 { (case "(($ac_try" in
19048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19049 *) ac_try_echo=$ac_try;;
19051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19052 (eval "$ac_try") 2>&5
19054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055 (exit $ac_status); }; }; then
19056 ac_cv_lib_gcc___umoddi3=yes
19058 echo "$as_me: failed program was:" >&5
19059 sed 's/^/| /' conftest.$ac_ext >&5
19061 ac_cv_lib_gcc___umoddi3=no
19064 rm -f core conftest.err conftest.$ac_objext \
19065 conftest$ac_exeext conftest.$ac_ext
19066 LIBS=$ac_check_lib_save_LIBS
19068 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19069 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19070 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19072 cat >>confdefs.h <<\_ACEOF
19073 #define HAVE___UMODDI3 1
19079 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19080 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19081 if test "${ac_cv_lib_gcc___main+set}" = set; then
19082 echo $ECHO_N "(cached) $ECHO_C" >&6
19084 ac_check_lib_save_LIBS=$LIBS
19086 cat >conftest.$ac_ext <<_ACEOF
19089 cat confdefs.h >>conftest.$ac_ext
19090 cat >>conftest.$ac_ext <<_ACEOF
19091 /* end confdefs.h. */
19093 /* Override any GCC internal prototype to avoid an error.
19094 Use char because int might match the return type of a GCC
19095 builtin and then its argument prototype would still apply. */
19108 rm -f conftest.$ac_objext conftest$ac_exeext
19109 if { (ac_try="$ac_link"
19110 case "(($ac_try" in
19111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19112 *) ac_try_echo=$ac_try;;
19114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19115 (eval "$ac_link") 2>conftest.er1
19117 grep -v '^ *+' conftest.er1 >conftest.err
19119 cat conftest.err >&5
19120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121 (exit $ac_status); } &&
19122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19123 { (case "(($ac_try" in
19124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19125 *) ac_try_echo=$ac_try;;
19127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19128 (eval "$ac_try") 2>&5
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); }; } &&
19132 { ac_try='test -s conftest$ac_exeext'
19133 { (case "(($ac_try" in
19134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19135 *) ac_try_echo=$ac_try;;
19137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19138 (eval "$ac_try") 2>&5
19140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); }; }; then
19142 ac_cv_lib_gcc___main=yes
19144 echo "$as_me: failed program was:" >&5
19145 sed 's/^/| /' conftest.$ac_ext >&5
19147 ac_cv_lib_gcc___main=no
19150 rm -f core conftest.err conftest.$ac_objext \
19151 conftest$ac_exeext conftest.$ac_ext
19152 LIBS=$ac_check_lib_save_LIBS
19154 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19155 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19156 if test $ac_cv_lib_gcc___main = yes; then
19158 cat >>confdefs.h <<\_ACEOF
19159 #define HAVE___MAIN 1
19164 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19165 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19166 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19167 echo $ECHO_N "(cached) $ECHO_C" >&6
19169 ac_check_lib_save_LIBS=$LIBS
19171 cat >conftest.$ac_ext <<_ACEOF
19174 cat confdefs.h >>conftest.$ac_ext
19175 cat >>conftest.$ac_ext <<_ACEOF
19176 /* end confdefs.h. */
19178 /* Override any GCC internal prototype to avoid an error.
19179 Use char because int might match the return type of a GCC
19180 builtin and then its argument prototype would still apply. */
19188 return __cmpdi2 ();
19193 rm -f conftest.$ac_objext conftest$ac_exeext
19194 if { (ac_try="$ac_link"
19195 case "(($ac_try" in
19196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197 *) ac_try_echo=$ac_try;;
19199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19200 (eval "$ac_link") 2>conftest.er1
19202 grep -v '^ *+' conftest.er1 >conftest.err
19204 cat conftest.err >&5
19205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206 (exit $ac_status); } &&
19207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19208 { (case "(($ac_try" in
19209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19210 *) ac_try_echo=$ac_try;;
19212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19213 (eval "$ac_try") 2>&5
19215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216 (exit $ac_status); }; } &&
19217 { ac_try='test -s conftest$ac_exeext'
19218 { (case "(($ac_try" in
19219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19220 *) ac_try_echo=$ac_try;;
19222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19223 (eval "$ac_try") 2>&5
19225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226 (exit $ac_status); }; }; then
19227 ac_cv_lib_gcc___cmpdi2=yes
19229 echo "$as_me: failed program was:" >&5
19230 sed 's/^/| /' conftest.$ac_ext >&5
19232 ac_cv_lib_gcc___cmpdi2=no
19235 rm -f core conftest.err conftest.$ac_objext \
19236 conftest$ac_exeext conftest.$ac_ext
19237 LIBS=$ac_check_lib_save_LIBS
19239 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19240 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19241 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19243 cat >>confdefs.h <<\_ACEOF
19244 #define HAVE___CMPDI2 1
19251 if test "$llvm_cv_os_type" = "MingW" ; then
19252 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19253 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19254 cat >conftest.$ac_ext <<_ACEOF
19255 #include <windows.h>
19256 #include <imagehlp.h>
19257 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19258 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19260 rm -f conftest.$ac_objext
19261 if { (ac_try="$ac_compile"
19262 case "(($ac_try" in
19263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19264 *) ac_try_echo=$ac_try;;
19266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19267 (eval "$ac_compile") 2>conftest.er1
19269 grep -v '^ *+' conftest.er1 >conftest.err
19271 cat conftest.err >&5
19272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19273 (exit $ac_status); } &&
19274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19275 { (case "(($ac_try" in
19276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19277 *) ac_try_echo=$ac_try;;
19279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19280 (eval "$ac_try") 2>&5
19282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283 (exit $ac_status); }; } &&
19284 { ac_try='test -s conftest.$ac_objext'
19285 { (case "(($ac_try" in
19286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19287 *) ac_try_echo=$ac_try;;
19289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19290 (eval "$ac_try") 2>&5
19292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293 (exit $ac_status); }; }; then
19295 { echo "$as_me:$LINENO: result: yes" >&5
19296 echo "${ECHO_T}yes" >&6; }
19297 llvm_cv_win32_elmcb_pcstr="PCSTR"
19300 echo "$as_me: failed program was:" >&5
19301 sed 's/^/| /' conftest.$ac_ext >&5
19304 { echo "$as_me:$LINENO: result: no" >&5
19305 echo "${ECHO_T}no" >&6; }
19306 llvm_cv_win32_elmcb_pcstr="PSTR"
19310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19312 cat >>confdefs.h <<_ACEOF
19313 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19319 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19320 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19321 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19322 echo $ECHO_N "(cached) $ECHO_C" >&6
19325 ac_cpp='$CXXCPP $CPPFLAGS'
19326 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19327 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19328 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19330 cat >conftest.$ac_ext <<_ACEOF
19333 cat confdefs.h >>conftest.$ac_ext
19334 cat >>conftest.$ac_ext <<_ACEOF
19335 /* end confdefs.h. */
19345 rm -f conftest.$ac_objext
19346 if { (ac_try="$ac_compile"
19347 case "(($ac_try" in
19348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19349 *) ac_try_echo=$ac_try;;
19351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19352 (eval "$ac_compile") 2>conftest.er1
19354 grep -v '^ *+' conftest.er1 >conftest.err
19356 cat conftest.err >&5
19357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358 (exit $ac_status); } &&
19359 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19360 { (case "(($ac_try" in
19361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19362 *) ac_try_echo=$ac_try;;
19364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19365 (eval "$ac_try") 2>&5
19367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368 (exit $ac_status); }; } &&
19369 { ac_try='test -s conftest.$ac_objext'
19370 { (case "(($ac_try" in
19371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19372 *) ac_try_echo=$ac_try;;
19374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19375 (eval "$ac_try") 2>&5
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); }; }; then
19379 ac_cv_func_isnan_in_math_h=yes
19381 echo "$as_me: failed program was:" >&5
19382 sed 's/^/| /' conftest.$ac_ext >&5
19384 ac_cv_func_isnan_in_math_h=no
19387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19389 ac_cpp='$CPP $CPPFLAGS'
19390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19395 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19396 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19399 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19401 cat >>confdefs.h <<\_ACEOF
19402 #define HAVE_ISNAN_IN_MATH_H 1
19407 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19408 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19409 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19410 echo $ECHO_N "(cached) $ECHO_C" >&6
19413 ac_cpp='$CXXCPP $CPPFLAGS'
19414 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19415 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19416 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19418 cat >conftest.$ac_ext <<_ACEOF
19421 cat confdefs.h >>conftest.$ac_ext
19422 cat >>conftest.$ac_ext <<_ACEOF
19423 /* end confdefs.h. */
19433 rm -f conftest.$ac_objext
19434 if { (ac_try="$ac_compile"
19435 case "(($ac_try" in
19436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19437 *) ac_try_echo=$ac_try;;
19439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19440 (eval "$ac_compile") 2>conftest.er1
19442 grep -v '^ *+' conftest.er1 >conftest.err
19444 cat conftest.err >&5
19445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446 (exit $ac_status); } &&
19447 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19448 { (case "(($ac_try" in
19449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19450 *) ac_try_echo=$ac_try;;
19452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19453 (eval "$ac_try") 2>&5
19455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456 (exit $ac_status); }; } &&
19457 { ac_try='test -s conftest.$ac_objext'
19458 { (case "(($ac_try" in
19459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19460 *) ac_try_echo=$ac_try;;
19462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19463 (eval "$ac_try") 2>&5
19465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466 (exit $ac_status); }; }; then
19467 ac_cv_func_isnan_in_cmath=yes
19469 echo "$as_me: failed program was:" >&5
19470 sed 's/^/| /' conftest.$ac_ext >&5
19472 ac_cv_func_isnan_in_cmath=no
19475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19477 ac_cpp='$CPP $CPPFLAGS'
19478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19483 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19484 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19486 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19488 cat >>confdefs.h <<\_ACEOF
19489 #define HAVE_ISNAN_IN_CMATH 1
19494 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19495 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19496 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19497 echo $ECHO_N "(cached) $ECHO_C" >&6
19500 ac_cpp='$CXXCPP $CPPFLAGS'
19501 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19502 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19503 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19505 cat >conftest.$ac_ext <<_ACEOF
19508 cat confdefs.h >>conftest.$ac_ext
19509 cat >>conftest.$ac_ext <<_ACEOF
19510 /* end confdefs.h. */
19515 float f; std::isnan(f);
19520 rm -f conftest.$ac_objext
19521 if { (ac_try="$ac_compile"
19522 case "(($ac_try" in
19523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19524 *) ac_try_echo=$ac_try;;
19526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19527 (eval "$ac_compile") 2>conftest.er1
19529 grep -v '^ *+' conftest.er1 >conftest.err
19531 cat conftest.err >&5
19532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533 (exit $ac_status); } &&
19534 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19535 { (case "(($ac_try" in
19536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19537 *) ac_try_echo=$ac_try;;
19539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19540 (eval "$ac_try") 2>&5
19542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543 (exit $ac_status); }; } &&
19544 { ac_try='test -s conftest.$ac_objext'
19545 { (case "(($ac_try" in
19546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19547 *) ac_try_echo=$ac_try;;
19549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19550 (eval "$ac_try") 2>&5
19552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553 (exit $ac_status); }; }; then
19554 ac_cv_func_std_isnan_in_cmath=yes
19556 echo "$as_me: failed program was:" >&5
19557 sed 's/^/| /' conftest.$ac_ext >&5
19559 ac_cv_func_std_isnan_in_cmath=no
19562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19564 ac_cpp='$CPP $CPPFLAGS'
19565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19570 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19571 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19573 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19575 cat >>confdefs.h <<\_ACEOF
19576 #define HAVE_STD_ISNAN_IN_CMATH 1
19582 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19583 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19584 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19585 echo $ECHO_N "(cached) $ECHO_C" >&6
19588 ac_cpp='$CXXCPP $CPPFLAGS'
19589 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19590 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19591 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19593 cat >conftest.$ac_ext <<_ACEOF
19596 cat confdefs.h >>conftest.$ac_ext
19597 cat >>conftest.$ac_ext <<_ACEOF
19598 /* end confdefs.h. */
19608 rm -f conftest.$ac_objext
19609 if { (ac_try="$ac_compile"
19610 case "(($ac_try" in
19611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19612 *) ac_try_echo=$ac_try;;
19614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19615 (eval "$ac_compile") 2>conftest.er1
19617 grep -v '^ *+' conftest.er1 >conftest.err
19619 cat conftest.err >&5
19620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621 (exit $ac_status); } &&
19622 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19623 { (case "(($ac_try" in
19624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19625 *) ac_try_echo=$ac_try;;
19627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19628 (eval "$ac_try") 2>&5
19630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631 (exit $ac_status); }; } &&
19632 { ac_try='test -s conftest.$ac_objext'
19633 { (case "(($ac_try" in
19634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19635 *) ac_try_echo=$ac_try;;
19637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19638 (eval "$ac_try") 2>&5
19640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641 (exit $ac_status); }; }; then
19642 ac_cv_func_isinf_in_math_h=yes
19644 echo "$as_me: failed program was:" >&5
19645 sed 's/^/| /' conftest.$ac_ext >&5
19647 ac_cv_func_isinf_in_math_h=no
19650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19652 ac_cpp='$CPP $CPPFLAGS'
19653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19658 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19659 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19661 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19663 cat >>confdefs.h <<\_ACEOF
19664 #define HAVE_ISINF_IN_MATH_H 1
19669 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19670 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19671 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19672 echo $ECHO_N "(cached) $ECHO_C" >&6
19675 ac_cpp='$CXXCPP $CPPFLAGS'
19676 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19677 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19678 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19680 cat >conftest.$ac_ext <<_ACEOF
19683 cat confdefs.h >>conftest.$ac_ext
19684 cat >>conftest.$ac_ext <<_ACEOF
19685 /* end confdefs.h. */
19695 rm -f conftest.$ac_objext
19696 if { (ac_try="$ac_compile"
19697 case "(($ac_try" in
19698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19699 *) ac_try_echo=$ac_try;;
19701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19702 (eval "$ac_compile") 2>conftest.er1
19704 grep -v '^ *+' conftest.er1 >conftest.err
19706 cat conftest.err >&5
19707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708 (exit $ac_status); } &&
19709 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19710 { (case "(($ac_try" in
19711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19712 *) ac_try_echo=$ac_try;;
19714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19715 (eval "$ac_try") 2>&5
19717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718 (exit $ac_status); }; } &&
19719 { ac_try='test -s conftest.$ac_objext'
19720 { (case "(($ac_try" in
19721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19722 *) ac_try_echo=$ac_try;;
19724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19725 (eval "$ac_try") 2>&5
19727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728 (exit $ac_status); }; }; then
19729 ac_cv_func_isinf_in_cmath=yes
19731 echo "$as_me: failed program was:" >&5
19732 sed 's/^/| /' conftest.$ac_ext >&5
19734 ac_cv_func_isinf_in_cmath=no
19737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19739 ac_cpp='$CPP $CPPFLAGS'
19740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19745 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19746 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19748 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19750 cat >>confdefs.h <<\_ACEOF
19751 #define HAVE_ISINF_IN_CMATH 1
19756 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19757 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19758 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19759 echo $ECHO_N "(cached) $ECHO_C" >&6
19762 ac_cpp='$CXXCPP $CPPFLAGS'
19763 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19764 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19765 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19767 cat >conftest.$ac_ext <<_ACEOF
19770 cat confdefs.h >>conftest.$ac_ext
19771 cat >>conftest.$ac_ext <<_ACEOF
19772 /* end confdefs.h. */
19777 float f; std::isinf(f)}
19782 rm -f conftest.$ac_objext
19783 if { (ac_try="$ac_compile"
19784 case "(($ac_try" in
19785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19786 *) ac_try_echo=$ac_try;;
19788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19789 (eval "$ac_compile") 2>conftest.er1
19791 grep -v '^ *+' conftest.er1 >conftest.err
19793 cat conftest.err >&5
19794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); } &&
19796 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19797 { (case "(($ac_try" in
19798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19799 *) ac_try_echo=$ac_try;;
19801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19802 (eval "$ac_try") 2>&5
19804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805 (exit $ac_status); }; } &&
19806 { ac_try='test -s conftest.$ac_objext'
19807 { (case "(($ac_try" in
19808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19809 *) ac_try_echo=$ac_try;;
19811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19812 (eval "$ac_try") 2>&5
19814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815 (exit $ac_status); }; }; then
19816 ac_cv_func_std_isinf_in_cmath=yes
19818 echo "$as_me: failed program was:" >&5
19819 sed 's/^/| /' conftest.$ac_ext >&5
19821 ac_cv_func_std_isinf_in_cmath=no
19824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19826 ac_cpp='$CPP $CPPFLAGS'
19827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19832 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19833 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19835 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19837 cat >>confdefs.h <<\_ACEOF
19838 #define HAVE_STD_ISINF_IN_CMATH 1
19843 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19844 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19845 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19846 echo $ECHO_N "(cached) $ECHO_C" >&6
19849 ac_cpp='$CXXCPP $CPPFLAGS'
19850 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19851 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19852 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19854 cat >conftest.$ac_ext <<_ACEOF
19857 cat confdefs.h >>conftest.$ac_ext
19858 cat >>conftest.$ac_ext <<_ACEOF
19859 /* end confdefs.h. */
19860 #include <ieeefp.h>
19864 float f; finite(f);
19869 rm -f conftest.$ac_objext
19870 if { (ac_try="$ac_compile"
19871 case "(($ac_try" in
19872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19873 *) ac_try_echo=$ac_try;;
19875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19876 (eval "$ac_compile") 2>conftest.er1
19878 grep -v '^ *+' conftest.er1 >conftest.err
19880 cat conftest.err >&5
19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); } &&
19883 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19884 { (case "(($ac_try" in
19885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19886 *) ac_try_echo=$ac_try;;
19888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19889 (eval "$ac_try") 2>&5
19891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892 (exit $ac_status); }; } &&
19893 { ac_try='test -s conftest.$ac_objext'
19894 { (case "(($ac_try" in
19895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19896 *) ac_try_echo=$ac_try;;
19898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19899 (eval "$ac_try") 2>&5
19901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902 (exit $ac_status); }; }; then
19903 ac_cv_func_finite_in_ieeefp_h=yes
19905 echo "$as_me: failed program was:" >&5
19906 sed 's/^/| /' conftest.$ac_ext >&5
19908 ac_cv_func_finite_in_ieeefp_h=no
19911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19913 ac_cpp='$CPP $CPPFLAGS'
19914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19919 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19920 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19922 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19924 cat >>confdefs.h <<\_ACEOF
19925 #define HAVE_FINITE_IN_IEEEFP_H 1
19932 if test "$llvm_cv_platform_type" = "Unix" ; then
19935 for ac_header in stdlib.h unistd.h
19937 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19939 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19942 echo $ECHO_N "(cached) $ECHO_C" >&6
19944 ac_res=`eval echo '${'$as_ac_Header'}'`
19945 { echo "$as_me:$LINENO: result: $ac_res" >&5
19946 echo "${ECHO_T}$ac_res" >&6; }
19948 # Is the header compilable?
19949 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19950 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19951 cat >conftest.$ac_ext <<_ACEOF
19954 cat confdefs.h >>conftest.$ac_ext
19955 cat >>conftest.$ac_ext <<_ACEOF
19956 /* end confdefs.h. */
19957 $ac_includes_default
19958 #include <$ac_header>
19960 rm -f conftest.$ac_objext
19961 if { (ac_try="$ac_compile"
19962 case "(($ac_try" in
19963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19964 *) ac_try_echo=$ac_try;;
19966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19967 (eval "$ac_compile") 2>conftest.er1
19969 grep -v '^ *+' conftest.er1 >conftest.err
19971 cat conftest.err >&5
19972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973 (exit $ac_status); } &&
19974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19975 { (case "(($ac_try" in
19976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19977 *) ac_try_echo=$ac_try;;
19979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19980 (eval "$ac_try") 2>&5
19982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983 (exit $ac_status); }; } &&
19984 { ac_try='test -s conftest.$ac_objext'
19985 { (case "(($ac_try" in
19986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19987 *) ac_try_echo=$ac_try;;
19989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19990 (eval "$ac_try") 2>&5
19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993 (exit $ac_status); }; }; then
19994 ac_header_compiler=yes
19996 echo "$as_me: failed program was:" >&5
19997 sed 's/^/| /' conftest.$ac_ext >&5
19999 ac_header_compiler=no
20002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20003 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20004 echo "${ECHO_T}$ac_header_compiler" >&6; }
20006 # Is the header present?
20007 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20008 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20009 cat >conftest.$ac_ext <<_ACEOF
20012 cat confdefs.h >>conftest.$ac_ext
20013 cat >>conftest.$ac_ext <<_ACEOF
20014 /* end confdefs.h. */
20015 #include <$ac_header>
20017 if { (ac_try="$ac_cpp conftest.$ac_ext"
20018 case "(($ac_try" in
20019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20020 *) ac_try_echo=$ac_try;;
20022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20023 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20025 grep -v '^ *+' conftest.er1 >conftest.err
20027 cat conftest.err >&5
20028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029 (exit $ac_status); } >/dev/null; then
20030 if test -s conftest.err; then
20031 ac_cpp_err=$ac_c_preproc_warn_flag
20032 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20039 if test -z "$ac_cpp_err"; then
20040 ac_header_preproc=yes
20042 echo "$as_me: failed program was:" >&5
20043 sed 's/^/| /' conftest.$ac_ext >&5
20045 ac_header_preproc=no
20048 rm -f conftest.err conftest.$ac_ext
20049 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20050 echo "${ECHO_T}$ac_header_preproc" >&6; }
20052 # So? What about this header?
20053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20055 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20056 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20058 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20059 ac_header_preproc=yes
20062 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20063 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20064 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20065 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20066 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20067 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20068 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20069 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20071 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20072 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20073 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20075 ## ----------------------------------- ##
20076 ## Report this to llvmbugs@cs.uiuc.edu ##
20077 ## ----------------------------------- ##
20079 ) | sed "s/^/$as_me: WARNING: /" >&2
20082 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20085 echo $ECHO_N "(cached) $ECHO_C" >&6
20087 eval "$as_ac_Header=\$ac_header_preproc"
20089 ac_res=`eval echo '${'$as_ac_Header'}'`
20090 { echo "$as_me:$LINENO: result: $ac_res" >&5
20091 echo "${ECHO_T}$ac_res" >&6; }
20094 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20095 cat >>confdefs.h <<_ACEOF
20096 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20104 for ac_func in getpagesize
20106 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20107 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20108 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20109 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20110 echo $ECHO_N "(cached) $ECHO_C" >&6
20112 cat >conftest.$ac_ext <<_ACEOF
20115 cat confdefs.h >>conftest.$ac_ext
20116 cat >>conftest.$ac_ext <<_ACEOF
20117 /* end confdefs.h. */
20118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20120 #define $ac_func innocuous_$ac_func
20122 /* System header to define __stub macros and hopefully few prototypes,
20123 which can conflict with char $ac_func (); below.
20124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20125 <limits.h> exists even on freestanding compilers. */
20128 # include <limits.h>
20130 # include <assert.h>
20135 /* Override any GCC internal prototype to avoid an error.
20136 Use char because int might match the return type of a GCC
20137 builtin and then its argument prototype would still apply. */
20142 /* The GNU C library defines this for functions which it implements
20143 to always fail with ENOSYS. Some functions are actually named
20144 something starting with __ and the normal name is an alias. */
20145 #if defined __stub_$ac_func || defined __stub___$ac_func
20152 return $ac_func ();
20157 rm -f conftest.$ac_objext conftest$ac_exeext
20158 if { (ac_try="$ac_link"
20159 case "(($ac_try" in
20160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20161 *) ac_try_echo=$ac_try;;
20163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20164 (eval "$ac_link") 2>conftest.er1
20166 grep -v '^ *+' conftest.er1 >conftest.err
20168 cat conftest.err >&5
20169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20170 (exit $ac_status); } &&
20171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20172 { (case "(($ac_try" in
20173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20174 *) ac_try_echo=$ac_try;;
20176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20177 (eval "$ac_try") 2>&5
20179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180 (exit $ac_status); }; } &&
20181 { ac_try='test -s conftest$ac_exeext'
20182 { (case "(($ac_try" in
20183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20184 *) ac_try_echo=$ac_try;;
20186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20187 (eval "$ac_try") 2>&5
20189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190 (exit $ac_status); }; }; then
20191 eval "$as_ac_var=yes"
20193 echo "$as_me: failed program was:" >&5
20194 sed 's/^/| /' conftest.$ac_ext >&5
20196 eval "$as_ac_var=no"
20199 rm -f core conftest.err conftest.$ac_objext \
20200 conftest$ac_exeext conftest.$ac_ext
20202 ac_res=`eval echo '${'$as_ac_var'}'`
20203 { echo "$as_me:$LINENO: result: $ac_res" >&5
20204 echo "${ECHO_T}$ac_res" >&6; }
20205 if test `eval echo '${'$as_ac_var'}'` = yes; then
20206 cat >>confdefs.h <<_ACEOF
20207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20213 { echo "$as_me:$LINENO: checking for working mmap" >&5
20214 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20215 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20216 echo $ECHO_N "(cached) $ECHO_C" >&6
20218 if test "$cross_compiling" = yes; then
20219 ac_cv_func_mmap_fixed_mapped=no
20221 cat >conftest.$ac_ext <<_ACEOF
20224 cat confdefs.h >>conftest.$ac_ext
20225 cat >>conftest.$ac_ext <<_ACEOF
20226 /* end confdefs.h. */
20227 $ac_includes_default
20228 /* malloc might have been renamed as rpl_malloc. */
20231 /* Thanks to Mike Haertel and Jim Avera for this test.
20232 Here is a matrix of mmap possibilities:
20233 mmap private not fixed
20234 mmap private fixed at somewhere currently unmapped
20235 mmap private fixed at somewhere already mapped
20236 mmap shared not fixed
20237 mmap shared fixed at somewhere currently unmapped
20238 mmap shared fixed at somewhere already mapped
20239 For private mappings, we should verify that changes cannot be read()
20240 back from the file, nor mmap's back from the file at a different
20241 address. (There have been systems where private was not correctly
20242 implemented like the infamous i386 svr4.0, and systems where the
20243 VM page cache was not coherent with the file system buffer cache
20244 like early versions of FreeBSD and possibly contemporary NetBSD.)
20245 For shared mappings, we should conversely verify that changes get
20246 propagated back to all the places they're supposed to be.
20248 Grep wants private fixed already mapped.
20249 The main things grep needs to know about mmap are:
20250 * does it exist and is it safe to write into the mmap'd area
20251 * how to use it (BSD variants) */
20254 #include <sys/mman.h>
20256 #if !STDC_HEADERS && !HAVE_STDLIB_H
20260 /* This mess was copied from the GNU getpagesize.h. */
20261 #if !HAVE_GETPAGESIZE
20262 /* Assume that all systems that can run configure have sys/param.h. */
20263 # if !HAVE_SYS_PARAM_H
20264 # define HAVE_SYS_PARAM_H 1
20267 # ifdef _SC_PAGESIZE
20268 # define getpagesize() sysconf(_SC_PAGESIZE)
20269 # else /* no _SC_PAGESIZE */
20270 # if HAVE_SYS_PARAM_H
20271 # include <sys/param.h>
20272 # ifdef EXEC_PAGESIZE
20273 # define getpagesize() EXEC_PAGESIZE
20274 # else /* no EXEC_PAGESIZE */
20276 # define getpagesize() NBPG * CLSIZE
20279 # endif /* no CLSIZE */
20280 # else /* no NBPG */
20282 # define getpagesize() NBPC
20283 # else /* no NBPC */
20285 # define getpagesize() PAGESIZE
20286 # endif /* PAGESIZE */
20287 # endif /* no NBPC */
20288 # endif /* no NBPG */
20289 # endif /* no EXEC_PAGESIZE */
20290 # else /* no HAVE_SYS_PARAM_H */
20291 # define getpagesize() 8192 /* punt totally */
20292 # endif /* no HAVE_SYS_PARAM_H */
20293 # endif /* no _SC_PAGESIZE */
20295 #endif /* no HAVE_GETPAGESIZE */
20300 char *data, *data2, *data3;
20304 pagesize = getpagesize ();
20306 /* First, make a file with some known garbage in it. */
20307 data = (char *) malloc (pagesize);
20310 for (i = 0; i < pagesize; ++i)
20311 *(data + i) = rand ();
20313 fd = creat ("conftest.mmap", 0600);
20316 if (write (fd, data, pagesize) != pagesize)
20320 /* Next, try to mmap the file at a fixed address which already has
20321 something else allocated at it. If we can, also make sure that
20322 we see the same garbage. */
20323 fd = open ("conftest.mmap", O_RDWR);
20326 data2 = (char *) malloc (2 * pagesize);
20329 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20330 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20331 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20333 for (i = 0; i < pagesize; ++i)
20334 if (*(data + i) != *(data2 + i))
20337 /* Finally, make sure that changes to the mapped area do not
20338 percolate back to the file as seen by read(). (This is a bug on
20339 some variants of i386 svr4.0.) */
20340 for (i = 0; i < pagesize; ++i)
20341 *(data2 + i) = *(data2 + i) + 1;
20342 data3 = (char *) malloc (pagesize);
20345 if (read (fd, data3, pagesize) != pagesize)
20347 for (i = 0; i < pagesize; ++i)
20348 if (*(data + i) != *(data3 + i))
20354 rm -f conftest$ac_exeext
20355 if { (ac_try="$ac_link"
20356 case "(($ac_try" in
20357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20358 *) ac_try_echo=$ac_try;;
20360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20361 (eval "$ac_link") 2>&5
20363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20364 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20365 { (case "(($ac_try" in
20366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20367 *) ac_try_echo=$ac_try;;
20369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20370 (eval "$ac_try") 2>&5
20372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20373 (exit $ac_status); }; }; then
20374 ac_cv_func_mmap_fixed_mapped=yes
20376 echo "$as_me: program exited with status $ac_status" >&5
20377 echo "$as_me: failed program was:" >&5
20378 sed 's/^/| /' conftest.$ac_ext >&5
20380 ( exit $ac_status )
20381 ac_cv_func_mmap_fixed_mapped=no
20383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20388 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20389 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20390 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20392 cat >>confdefs.h <<\_ACEOF
20393 #define HAVE_MMAP 1
20397 rm -f conftest.mmap
20399 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20400 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20401 if test "${ac_cv_func_mmap_file+set}" = set; then
20402 echo $ECHO_N "(cached) $ECHO_C" >&6
20405 ac_cpp='$CPP $CPPFLAGS'
20406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20410 if test "$cross_compiling" = yes; then
20411 ac_cv_func_mmap_file=no
20413 cat >conftest.$ac_ext <<_ACEOF
20417 cat confdefs.h >>conftest.$ac_ext
20418 cat >>conftest.$ac_ext <<_ACEOF
20419 /* end confdefs.h. */
20421 #include <sys/types.h>
20422 #include <sys/mman.h>
20430 fd = creat ("foo",0777);
20431 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20433 return (fd != (int) MAP_FAILED);
20438 rm -f conftest$ac_exeext
20439 if { (ac_try="$ac_link"
20440 case "(($ac_try" in
20441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20442 *) ac_try_echo=$ac_try;;
20444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20445 (eval "$ac_link") 2>&5
20447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20448 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20449 { (case "(($ac_try" in
20450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20451 *) ac_try_echo=$ac_try;;
20453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20454 (eval "$ac_try") 2>&5
20456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457 (exit $ac_status); }; }; then
20458 ac_cv_func_mmap_file=yes
20460 echo "$as_me: program exited with status $ac_status" >&5
20461 echo "$as_me: failed program was:" >&5
20462 sed 's/^/| /' conftest.$ac_ext >&5
20464 ( exit $ac_status )
20465 ac_cv_func_mmap_file=no
20467 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20472 ac_cpp='$CPP $CPPFLAGS'
20473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20479 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20480 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20481 if test "$ac_cv_func_mmap_file" = yes; then
20483 cat >>confdefs.h <<\_ACEOF
20484 #define HAVE_MMAP_FILE
20491 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20492 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20493 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20494 echo $ECHO_N "(cached) $ECHO_C" >&6
20496 if test "$llvm_cv_os_type" = "Interix" ; then
20497 ac_cv_need_dev_zero_for_mmap=yes
20499 ac_cv_need_dev_zero_for_mmap=no
20503 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20504 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20505 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20507 cat >>confdefs.h <<\_ACEOF
20508 #define NEED_DEV_ZERO_FOR_MMAP 1
20513 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20515 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20516 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20518 if test "$ac_cv_func_mmap_file" = "no"
20520 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20521 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20525 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20526 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20528 ac_cpp='$CXXCPP $CPPFLAGS'
20529 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20530 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20531 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20533 cat >conftest.$ac_ext <<_ACEOF
20536 cat confdefs.h >>conftest.$ac_ext
20537 cat >>conftest.$ac_ext <<_ACEOF
20538 /* end confdefs.h. */
20540 volatile unsigned long val = 1;
20541 __sync_synchronize();
20542 __sync_val_compare_and_swap(&val, 1, 0);
20543 __sync_add_and_fetch(&val, 1);
20544 __sync_sub_and_fetch(&val, 1);
20549 rm -f conftest.$ac_objext conftest$ac_exeext
20550 if { (ac_try="$ac_link"
20551 case "(($ac_try" in
20552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20553 *) ac_try_echo=$ac_try;;
20555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20556 (eval "$ac_link") 2>conftest.er1
20558 grep -v '^ *+' conftest.er1 >conftest.err
20560 cat conftest.err >&5
20561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562 (exit $ac_status); } &&
20563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20564 { (case "(($ac_try" in
20565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20566 *) ac_try_echo=$ac_try;;
20568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20569 (eval "$ac_try") 2>&5
20571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572 (exit $ac_status); }; } &&
20573 { ac_try='test -s conftest$ac_exeext'
20574 { (case "(($ac_try" in
20575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20576 *) ac_try_echo=$ac_try;;
20578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20579 (eval "$ac_try") 2>&5
20581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582 (exit $ac_status); }; }; then
20584 ac_cpp='$CPP $CPPFLAGS'
20585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20589 { echo "$as_me:$LINENO: result: yes" >&5
20590 echo "${ECHO_T}yes" >&6; }
20592 cat >>confdefs.h <<\_ACEOF
20593 #define LLVM_HAS_ATOMICS 1
20597 echo "$as_me: failed program was:" >&5
20598 sed 's/^/| /' conftest.$ac_ext >&5
20600 { echo "$as_me:$LINENO: result: no" >&5
20601 echo "${ECHO_T}no" >&6; }
20603 cat >>confdefs.h <<\_ACEOF
20604 #define LLVM_HAS_ATOMICS 0
20607 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20608 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20611 rm -f core conftest.err conftest.$ac_objext \
20612 conftest$ac_exeext conftest.$ac_ext
20615 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20616 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20617 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20618 if test "${llvm_cv_linux_mixed+set}" = set; then
20619 echo $ECHO_N "(cached) $ECHO_C" >&6
20622 ac_cpp='$CPP $CPPFLAGS'
20623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20627 cat >conftest.$ac_ext <<_ACEOF
20630 cat confdefs.h >>conftest.$ac_ext
20631 cat >>conftest.$ac_ext <<_ACEOF
20632 /* end confdefs.h. */
20634 error: Not x86-64 even if uname says so!
20645 rm -f conftest.$ac_objext
20646 if { (ac_try="$ac_compile"
20647 case "(($ac_try" in
20648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20649 *) ac_try_echo=$ac_try;;
20651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20652 (eval "$ac_compile") 2>conftest.er1
20654 grep -v '^ *+' conftest.er1 >conftest.err
20656 cat conftest.err >&5
20657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20658 (exit $ac_status); } &&
20659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20660 { (case "(($ac_try" in
20661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20662 *) ac_try_echo=$ac_try;;
20664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20665 (eval "$ac_try") 2>&5
20667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668 (exit $ac_status); }; } &&
20669 { ac_try='test -s conftest.$ac_objext'
20670 { (case "(($ac_try" in
20671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20672 *) ac_try_echo=$ac_try;;
20674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20675 (eval "$ac_try") 2>&5
20677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20678 (exit $ac_status); }; }; then
20679 llvm_cv_linux_mixed=no
20681 echo "$as_me: failed program was:" >&5
20682 sed 's/^/| /' conftest.$ac_ext >&5
20684 llvm_cv_linux_mixed=yes
20687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20689 ac_cpp='$CPP $CPPFLAGS'
20690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20696 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20697 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20699 if test "$llvm_cv_linux_mixed" = "yes"; then
20700 llvm_cv_target_arch="x86"
20706 for ac_func in __dso_handle
20708 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20709 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20710 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20711 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20712 echo $ECHO_N "(cached) $ECHO_C" >&6
20714 cat >conftest.$ac_ext <<_ACEOF
20717 cat confdefs.h >>conftest.$ac_ext
20718 cat >>conftest.$ac_ext <<_ACEOF
20719 /* end confdefs.h. */
20720 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20722 #define $ac_func innocuous_$ac_func
20724 /* System header to define __stub macros and hopefully few prototypes,
20725 which can conflict with char $ac_func (); below.
20726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20727 <limits.h> exists even on freestanding compilers. */
20730 # include <limits.h>
20732 # include <assert.h>
20737 /* Override any GCC internal prototype to avoid an error.
20738 Use char because int might match the return type of a GCC
20739 builtin and then its argument prototype would still apply. */
20744 /* The GNU C library defines this for functions which it implements
20745 to always fail with ENOSYS. Some functions are actually named
20746 something starting with __ and the normal name is an alias. */
20747 #if defined __stub_$ac_func || defined __stub___$ac_func
20754 return $ac_func ();
20759 rm -f conftest.$ac_objext conftest$ac_exeext
20760 if { (ac_try="$ac_link"
20761 case "(($ac_try" in
20762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20763 *) ac_try_echo=$ac_try;;
20765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20766 (eval "$ac_link") 2>conftest.er1
20768 grep -v '^ *+' conftest.er1 >conftest.err
20770 cat conftest.err >&5
20771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772 (exit $ac_status); } &&
20773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20774 { (case "(($ac_try" in
20775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20776 *) ac_try_echo=$ac_try;;
20778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20779 (eval "$ac_try") 2>&5
20781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782 (exit $ac_status); }; } &&
20783 { ac_try='test -s conftest$ac_exeext'
20784 { (case "(($ac_try" in
20785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20786 *) ac_try_echo=$ac_try;;
20788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20789 (eval "$ac_try") 2>&5
20791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792 (exit $ac_status); }; }; then
20793 eval "$as_ac_var=yes"
20795 echo "$as_me: failed program was:" >&5
20796 sed 's/^/| /' conftest.$ac_ext >&5
20798 eval "$as_ac_var=no"
20801 rm -f core conftest.err conftest.$ac_objext \
20802 conftest$ac_exeext conftest.$ac_ext
20804 ac_res=`eval echo '${'$as_ac_var'}'`
20805 { echo "$as_me:$LINENO: result: $ac_res" >&5
20806 echo "${ECHO_T}$ac_res" >&6; }
20807 if test `eval echo '${'$as_ac_var'}'` = yes; then
20808 cat >>confdefs.h <<_ACEOF
20809 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20816 SHLIBEXT=$libltdl_cv_shlibext
20819 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20822 # Translate the various configuration directories and other basic
20823 # information into substitutions that will end up in Makefile.config.in
20824 # that these configured values can be used by the makefiles
20825 if test "${prefix}" = "NONE" ; then
20826 prefix="/usr/local"
20828 eval LLVM_PREFIX="${prefix}";
20829 eval LLVM_BINDIR="${prefix}/bin";
20830 eval LLVM_LIBDIR="${prefix}/lib";
20831 eval LLVM_DATADIR="${prefix}/share/llvm";
20832 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20833 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20834 eval LLVM_INCLUDEDIR="${prefix}/include";
20835 eval LLVM_INFODIR="${prefix}/info";
20836 eval LLVM_MANDIR="${prefix}/man";
20837 LLVM_CONFIGTIME=`date`
20849 # Place the various directores into the config.h file as #defines so that we
20850 # can know about the installation paths within LLVM.
20852 cat >>confdefs.h <<_ACEOF
20853 #define LLVM_PREFIX "$LLVM_PREFIX"
20857 cat >>confdefs.h <<_ACEOF
20858 #define LLVM_BINDIR "$LLVM_BINDIR"
20862 cat >>confdefs.h <<_ACEOF
20863 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20867 cat >>confdefs.h <<_ACEOF
20868 #define LLVM_DATADIR "$LLVM_DATADIR"
20872 cat >>confdefs.h <<_ACEOF
20873 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20877 cat >>confdefs.h <<_ACEOF
20878 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20882 cat >>confdefs.h <<_ACEOF
20883 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20887 cat >>confdefs.h <<_ACEOF
20888 #define LLVM_INFODIR "$LLVM_INFODIR"
20892 cat >>confdefs.h <<_ACEOF
20893 #define LLVM_MANDIR "$LLVM_MANDIR"
20897 cat >>confdefs.h <<_ACEOF
20898 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20902 cat >>confdefs.h <<_ACEOF
20903 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20907 # Determine which bindings to build.
20908 if test "$BINDINGS_TO_BUILD" = auto ; then
20909 BINDINGS_TO_BUILD=""
20910 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20911 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20914 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20917 # This isn't really configurey, but it avoids having to repeat the list in
20922 # Do any work necessary to ensure that bindings have what they need.
20923 binding_prereqs_failed=0
20924 for a_binding in $BINDINGS_TO_BUILD ; do
20925 case "$a_binding" in
20927 if test "x$OCAMLC" = x ; then
20928 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20929 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20930 binding_prereqs_failed=1
20932 if test "x$OCAMLDEP" = x ; then
20933 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20934 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20935 binding_prereqs_failed=1
20937 if test "x$OCAMLOPT" = x ; then
20938 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20939 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20941 if test "x$with_ocaml_libdir" != xauto ; then
20942 OCAML_LIBDIR=$with_ocaml_libdir
20945 ocaml_stdlib="`"$OCAMLC" -where`"
20946 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20948 # ocaml stdlib is beneath our prefix; use stdlib
20949 OCAML_LIBDIR=$ocaml_stdlib
20952 # ocaml stdlib is outside our prefix; use libdir/ocaml
20953 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20960 if test "$binding_prereqs_failed" = 1 ; then
20961 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20962 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20963 { (exit 1); exit 1; }; }
20966 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20967 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20968 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20969 echo $ECHO_N "(cached) $ECHO_C" >&6
20972 ac_cpp='$CXXCPP $CPPFLAGS'
20973 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20974 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20975 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20977 oldcxxflags="$CXXFLAGS"
20978 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20979 cat >conftest.$ac_ext <<_ACEOF
20982 cat confdefs.h >>conftest.$ac_ext
20983 cat >>conftest.$ac_ext <<_ACEOF
20984 /* end confdefs.h. */
20994 rm -f conftest.$ac_objext
20995 if { (ac_try="$ac_compile"
20996 case "(($ac_try" in
20997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20998 *) ac_try_echo=$ac_try;;
21000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21001 (eval "$ac_compile") 2>conftest.er1
21003 grep -v '^ *+' conftest.er1 >conftest.err
21005 cat conftest.err >&5
21006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007 (exit $ac_status); } &&
21008 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21009 { (case "(($ac_try" in
21010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21011 *) ac_try_echo=$ac_try;;
21013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21014 (eval "$ac_try") 2>&5
21016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017 (exit $ac_status); }; } &&
21018 { ac_try='test -s conftest.$ac_objext'
21019 { (case "(($ac_try" in
21020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21021 *) ac_try_echo=$ac_try;;
21023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21024 (eval "$ac_try") 2>&5
21026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21027 (exit $ac_status); }; }; then
21028 llvm_cv_cxx_visibility_inlines_hidden=yes
21030 echo "$as_me: failed program was:" >&5
21031 sed 's/^/| /' conftest.$ac_ext >&5
21033 llvm_cv_cxx_visibility_inlines_hidden=no
21036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21037 CXXFLAGS="$oldcxxflags"
21039 ac_cpp='$CPP $CPPFLAGS'
21040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21046 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21047 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21048 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21049 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21052 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21057 if test "$llvm_cv_link_use_r" = "yes" ; then
21064 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21065 RDYNAMIC="-Wl,-export-dynamic"
21072 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21079 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21081 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21083 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21085 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21087 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21090 ac_config_files="$ac_config_files Makefile.config"
21093 ac_config_files="$ac_config_files llvm.spec"
21096 ac_config_files="$ac_config_files docs/doxygen.cfg"
21098 if test -f ${srcdir}/tools/clang/README.txt; then
21099 ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
21106 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21109 ac_config_commands="$ac_config_commands setup"
21111 ac_config_commands="$ac_config_commands Makefile"
21114 ac_config_commands="$ac_config_commands Makefile.common"
21117 ac_config_commands="$ac_config_commands examples/Makefile"
21120 ac_config_commands="$ac_config_commands lib/Makefile"
21123 ac_config_commands="$ac_config_commands runtime/Makefile"
21126 ac_config_commands="$ac_config_commands test/Makefile"
21129 ac_config_commands="$ac_config_commands test/Makefile.tests"
21132 ac_config_commands="$ac_config_commands unittests/Makefile"
21135 ac_config_commands="$ac_config_commands tools/Makefile"
21138 ac_config_commands="$ac_config_commands utils/Makefile"
21141 ac_config_commands="$ac_config_commands projects/Makefile"
21144 ac_config_commands="$ac_config_commands bindings/Makefile"
21147 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21151 cat >confcache <<\_ACEOF
21152 # This file is a shell script that caches the results of configure
21153 # tests run on this system so they can be shared between configure
21154 # scripts and configure runs, see configure's option --config-cache.
21155 # It is not useful on other systems. If it contains results you don't
21156 # want to keep, you may remove or edit it.
21158 # config.status only pays attention to the cache file if you give it
21159 # the --recheck option to rerun configure.
21161 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21162 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21163 # following values.
21167 # The following way of writing the cache mishandles newlines in values,
21168 # but we know of no workaround that is simple, portable, and efficient.
21169 # So, we kill variables containing newlines.
21170 # Ultrix sh set writes to stderr and can't be redirected directly,
21171 # and sets the high bit in the cache file unless we assign to the vars.
21173 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21174 eval ac_val=\$$ac_var
21178 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21179 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21182 _ | IFS | as_nl) ;; #(
21183 *) $as_unset $ac_var ;;
21189 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21190 *${as_nl}ac_space=\ *)
21191 # `set' does not quote correctly, so add quotes (double-quote
21192 # substitution turns \\\\ into \\, and sed turns \\ into \).
21195 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21198 # `set' quotes correctly as required by POSIX, so do not add quotes.
21199 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21208 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21210 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21212 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21213 if test -w "$cache_file"; then
21214 test "x$cache_file" != "x/dev/null" &&
21215 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21216 echo "$as_me: updating cache $cache_file" >&6;}
21217 cat confcache >$cache_file
21219 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21220 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21225 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21226 # Let make expand exec_prefix.
21227 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21229 DEFS=-DHAVE_CONFIG_H
21233 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21234 # 1. Remove the extension, and $U if already installed.
21235 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21236 ac_i=`echo "$ac_i" | sed "$ac_script"`
21237 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21238 # will be set to the directory where LIBOBJS objects are built.
21239 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21240 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21242 LIBOBJS=$ac_libobjs
21244 LTLIBOBJS=$ac_ltlibobjs
21247 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21248 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21249 Usually this means the macro was only invoked conditionally." >&5
21250 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21251 Usually this means the macro was only invoked conditionally." >&2;}
21252 { (exit 1); exit 1; }; }
21254 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21255 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21256 Usually this means the macro was only invoked conditionally." >&5
21257 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21258 Usually this means the macro was only invoked conditionally." >&2;}
21259 { (exit 1); exit 1; }; }
21262 : ${CONFIG_STATUS=./config.status}
21263 ac_clean_files_save=$ac_clean_files
21264 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21265 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21266 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21267 cat >$CONFIG_STATUS <<_ACEOF
21269 # Generated by $as_me.
21270 # Run this file to recreate the current configuration.
21271 # Compiler output produced by configure, useful for debugging
21272 # configure, is in config.log if it exists.
21275 ac_cs_recheck=false
21277 SHELL=\${CONFIG_SHELL-$SHELL}
21280 cat >>$CONFIG_STATUS <<\_ACEOF
21281 ## --------------------- ##
21282 ## M4sh Initialization. ##
21283 ## --------------------- ##
21285 # Be Bourne compatible
21286 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21289 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21290 # is contrary to our usage. Disable this feature.
21291 alias -g '${1+"$@"}'='"$@"'
21292 setopt NO_GLOB_SUBST
21294 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21296 BIN_SH=xpg4; export BIN_SH # for Tru64
21297 DUALCASE=1; export DUALCASE # for MKS sh
21301 # Avoid depending upon Character Ranges.
21302 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21303 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21304 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21305 as_cr_digits='0123456789'
21306 as_cr_alnum=$as_cr_Letters$as_cr_digits
21308 # The user is always right.
21309 if test "${PATH_SEPARATOR+set}" != set; then
21310 echo "#! /bin/sh" >conf$$.sh
21311 echo "exit 0" >>conf$$.sh
21313 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21321 # Support unset when possible.
21322 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21330 # We need space, tab and new line, in precisely that order. Quoting is
21331 # there to prevent editors from complaining about space-tab.
21332 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21333 # splitting by setting IFS to empty value.)
21338 # Find who we are. Look in the path if we contain no directory separator.
21340 *[\\/]* ) as_myself=$0 ;;
21341 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21342 for as_dir in $PATH
21345 test -z "$as_dir" && as_dir=.
21346 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21352 # We did not find ourselves, most probably we were run as `sh COMMAND'
21353 # in which case we are not to be found in the path.
21354 if test "x$as_myself" = x; then
21357 if test ! -f "$as_myself"; then
21358 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21359 { (exit 1); exit 1; }
21362 # Work around bugs in pre-3.0 UWIN ksh.
21363 for as_var in ENV MAIL MAILPATH
21364 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21372 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21373 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21374 LC_TELEPHONE LC_TIME
21376 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21377 eval $as_var=C; export $as_var
21379 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21383 # Required to use basename.
21384 if expr a : '\(a\)' >/dev/null 2>&1 &&
21385 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21391 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21392 as_basename=basename
21398 # Name of the executable.
21399 as_me=`$as_basename -- "$0" ||
21400 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21401 X"$0" : 'X\(//\)$' \| \
21402 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21404 sed '/^.*\/\([^/][^/]*\)\/*$/{
21423 as_lineno_1=$LINENO
21424 as_lineno_2=$LINENO
21425 test "x$as_lineno_1" != "x$as_lineno_2" &&
21426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21429 # uniformly replaced by the line number. The first 'sed' inserts a
21430 # line-number line after each line using $LINENO; the second 'sed'
21431 # does the real work. The second script uses 'N' to pair each
21432 # line-number line with the line containing $LINENO, and appends
21433 # trailing '-' during substitution so that $LINENO is not a special
21434 # case at line end.
21435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21436 # scripts with optimization help from Paolo Bonzini. Blame Lee
21437 # E. McMahon (1931-1989) for sed's syntax. :-)
21449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21452 ' >$as_me.lineno &&
21453 chmod +x "$as_me.lineno" ||
21454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21455 { (exit 1); exit 1; }; }
21457 # Don't try to exec as it changes $[0], causing all sort of problems
21458 # (the dirname of $[0] is not the place where we might find the
21459 # original and so on. Autoconf is especially sensitive to this).
21460 . "./$as_me.lineno"
21461 # Exit status is that of the last command.
21466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21472 ECHO_C= ECHO_N= ECHO_T=
21473 case `echo -n x` in
21475 case `echo 'x\c'` in
21476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21483 if expr a : '\(a\)' >/dev/null 2>&1 &&
21484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21490 rm -f conf$$ conf$$.exe conf$$.file
21491 if test -d conf$$.dir; then
21492 rm -f conf$$.dir/conf$$.file
21498 if ln -s conf$$.file conf$$ 2>/dev/null; then
21500 # ... but there are two gotchas:
21501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21503 # In both cases, we have to default to `cp -p'.
21504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21506 elif ln conf$$.file conf$$ 2>/dev/null; then
21511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21512 rmdir conf$$.dir 2>/dev/null
21514 if mkdir -p . 2>/dev/null; then
21517 test -d ./-p && rmdir ./-p
21521 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21522 # systems may use methods other than mode bits to determine executability.
21523 cat >conf$$.file <<_ASEOF
21527 chmod +x conf$$.file
21528 if test -x conf$$.file >/dev/null 2>&1; then
21529 as_executable_p="test -x"
21535 # Sed expression to map a string onto a valid CPP name.
21536 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21538 # Sed expression to map a string onto a valid variable name.
21539 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21544 # Save the log message, to keep $[0] and so on meaningful, and to
21545 # report actual input values of CONFIG_FILES etc. instead of their
21546 # values after options handling.
21548 This file was extended by llvm $as_me 3.1svn, which was
21549 generated by GNU Autoconf 2.60. Invocation command line was
21551 CONFIG_FILES = $CONFIG_FILES
21552 CONFIG_HEADERS = $CONFIG_HEADERS
21553 CONFIG_LINKS = $CONFIG_LINKS
21554 CONFIG_COMMANDS = $CONFIG_COMMANDS
21557 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21562 cat >>$CONFIG_STATUS <<_ACEOF
21563 # Files that config.status was made for.
21564 config_files="$ac_config_files"
21565 config_headers="$ac_config_headers"
21566 config_commands="$ac_config_commands"
21570 cat >>$CONFIG_STATUS <<\_ACEOF
21572 \`$as_me' instantiates files from templates according to the
21573 current configuration.
21575 Usage: $0 [OPTIONS] [FILE]...
21577 -h, --help print this help, then exit
21578 -V, --version print version number, then exit
21579 -q, --quiet do not print progress messages
21580 -d, --debug don't remove temporary files
21581 --recheck update $as_me by reconfiguring in the same conditions
21582 --file=FILE[:TEMPLATE]
21583 instantiate the configuration file FILE
21584 --header=FILE[:TEMPLATE]
21585 instantiate the configuration header FILE
21587 Configuration files:
21590 Configuration headers:
21593 Configuration commands:
21596 Report bugs to <bug-autoconf@gnu.org>."
21599 cat >>$CONFIG_STATUS <<_ACEOF
21601 llvm config.status 3.1svn
21602 configured by $0, generated by GNU Autoconf 2.60,
21603 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21605 Copyright (C) 2006 Free Software Foundation, Inc.
21606 This config.status script is free software; the Free Software Foundation
21607 gives unlimited permission to copy, distribute and modify it."
21614 cat >>$CONFIG_STATUS <<\_ACEOF
21615 # If no file are specified by the user, then we need to provide default
21616 # value. By we need to know if files were specified by the user.
21622 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21623 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21634 # Handling of the options.
21635 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21637 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21638 echo "$ac_cs_version"; exit ;;
21639 --debug | --debu | --deb | --de | --d | -d )
21641 --file | --fil | --fi | --f )
21643 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21644 ac_need_defaults=false;;
21645 --header | --heade | --head | --hea )
21647 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21648 ac_need_defaults=false;;
21650 # Conflict between --help and --header
21651 { echo "$as_me: error: ambiguous option: $1
21652 Try \`$0 --help' for more information." >&2
21653 { (exit 1); exit 1; }; };;
21654 --help | --hel | -h )
21655 echo "$ac_cs_usage"; exit ;;
21656 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21657 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21660 # This is an error.
21661 -*) { echo "$as_me: error: unrecognized option: $1
21662 Try \`$0 --help' for more information." >&2
21663 { (exit 1); exit 1; }; } ;;
21665 *) ac_config_targets="$ac_config_targets $1"
21666 ac_need_defaults=false ;;
21672 ac_configure_extra_args=
21674 if $ac_cs_silent; then
21676 ac_configure_extra_args="$ac_configure_extra_args --silent"
21680 cat >>$CONFIG_STATUS <<_ACEOF
21681 if \$ac_cs_recheck; then
21682 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21683 CONFIG_SHELL=$SHELL
21684 export CONFIG_SHELL
21685 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21689 cat >>$CONFIG_STATUS <<\_ACEOF
21693 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21694 ## Running $as_me. ##
21700 cat >>$CONFIG_STATUS <<_ACEOF
21704 llvm_src="${srcdir}"
21708 cat >>$CONFIG_STATUS <<\_ACEOF
21710 # Handling of arguments.
21711 for ac_config_target in $ac_config_targets
21713 case $ac_config_target in
21714 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21715 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21716 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21717 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21718 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21719 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21720 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21721 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21722 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21723 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21724 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
21725 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21726 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21727 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21728 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21729 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21730 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21731 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21732 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21733 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21734 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21735 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21736 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21737 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21738 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21739 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21740 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21742 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21743 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21744 { (exit 1); exit 1; }; };;
21749 # If the user did not use the arguments to specify the items to instantiate,
21750 # then the envvar interface is used. Set only those that are not.
21751 # We use the long form for the default assignment because of an extremely
21752 # bizarre bug on SunOS 4.1.3.
21753 if $ac_need_defaults; then
21754 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21755 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21756 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21759 # Have a temporary directory for convenience. Make it in the build tree
21760 # simply because there is no reason against having it here, and in addition,
21761 # creating and moving files from /tmp can sometimes cause problems.
21762 # Hook for its removal unless debugging.
21763 # Note that there is a small window in which the directory will not be cleaned:
21764 # after its creation but before its name has been assigned to `$tmp'.
21768 trap 'exit_status=$?
21769 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21771 trap '{ (exit 1); exit 1; }' 1 2 13 15
21773 # Create a (secure) tmp directory for tmp files.
21776 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21777 test -n "$tmp" && test -d "$tmp"
21780 tmp=./conf$$-$RANDOM
21781 (umask 077 && mkdir "$tmp")
21784 echo "$me: cannot create a temporary directory in ." >&2
21785 { (exit 1); exit 1; }
21789 # Set up the sed scripts for CONFIG_FILES section.
21792 # No need to generate the scripts if there are no CONFIG_FILES.
21793 # This happens for instance when ./config.status config.h
21794 if test -n "$CONFIG_FILES"; then
21801 for ac_last_try in false false false false false :; do
21802 cat >conf$$subs.sed <<_ACEOF
21803 SHELL!$SHELL$ac_delim
21804 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21805 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21806 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21807 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21808 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21809 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21810 exec_prefix!$exec_prefix$ac_delim
21811 prefix!$prefix$ac_delim
21812 program_transform_name!$program_transform_name$ac_delim
21813 bindir!$bindir$ac_delim
21814 sbindir!$sbindir$ac_delim
21815 libexecdir!$libexecdir$ac_delim
21816 datarootdir!$datarootdir$ac_delim
21817 datadir!$datadir$ac_delim
21818 sysconfdir!$sysconfdir$ac_delim
21819 sharedstatedir!$sharedstatedir$ac_delim
21820 localstatedir!$localstatedir$ac_delim
21821 includedir!$includedir$ac_delim
21822 oldincludedir!$oldincludedir$ac_delim
21823 docdir!$docdir$ac_delim
21824 infodir!$infodir$ac_delim
21825 htmldir!$htmldir$ac_delim
21826 dvidir!$dvidir$ac_delim
21827 pdfdir!$pdfdir$ac_delim
21828 psdir!$psdir$ac_delim
21829 libdir!$libdir$ac_delim
21830 localedir!$localedir$ac_delim
21831 mandir!$mandir$ac_delim
21832 DEFS!$DEFS$ac_delim
21833 ECHO_C!$ECHO_C$ac_delim
21834 ECHO_N!$ECHO_N$ac_delim
21835 ECHO_T!$ECHO_T$ac_delim
21836 LIBS!$LIBS$ac_delim
21837 build_alias!$build_alias$ac_delim
21838 host_alias!$host_alias$ac_delim
21839 target_alias!$target_alias$ac_delim
21840 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21842 CFLAGS!$CFLAGS$ac_delim
21843 LDFLAGS!$LDFLAGS$ac_delim
21844 CPPFLAGS!$CPPFLAGS$ac_delim
21845 ac_ct_CC!$ac_ct_CC$ac_delim
21846 EXEEXT!$EXEEXT$ac_delim
21847 OBJEXT!$OBJEXT$ac_delim
21849 CXXFLAGS!$CXXFLAGS$ac_delim
21850 ac_ct_CXX!$ac_ct_CXX$ac_delim
21852 subdirs!$subdirs$ac_delim
21853 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21854 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21855 build!$build$ac_delim
21856 build_cpu!$build_cpu$ac_delim
21857 build_vendor!$build_vendor$ac_delim
21858 build_os!$build_os$ac_delim
21859 host!$host$ac_delim
21860 host_cpu!$host_cpu$ac_delim
21861 host_vendor!$host_vendor$ac_delim
21862 host_os!$host_os$ac_delim
21863 target!$target$ac_delim
21864 target_cpu!$target_cpu$ac_delim
21865 target_vendor!$target_vendor$ac_delim
21866 target_os!$target_os$ac_delim
21868 HOST_OS!$HOST_OS$ac_delim
21869 TARGET_OS!$TARGET_OS$ac_delim
21870 LINKALL!$LINKALL$ac_delim
21871 NOLINKALL!$NOLINKALL$ac_delim
21872 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21873 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21874 ARCH!$ARCH$ac_delim
21875 ENDIAN!$ENDIAN$ac_delim
21876 GREP!$GREP$ac_delim
21877 EGREP!$EGREP$ac_delim
21878 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21879 BUILD_CC!$BUILD_CC$ac_delim
21880 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21881 BUILD_CXX!$BUILD_CXX$ac_delim
21882 CVSBUILD!$CVSBUILD$ac_delim
21883 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21884 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21885 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21886 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21887 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21888 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21889 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21890 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21892 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21893 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21894 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21895 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
21896 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21897 ENABLE_PIC!$ENABLE_PIC$ac_delim
21898 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21899 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21902 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21904 elif $ac_last_try; then
21905 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21906 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21907 { (exit 1); exit 1; }; }
21909 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21913 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21914 if test -n "$ac_eof"; then
21915 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21916 ac_eof=`expr $ac_eof + 1`
21919 cat >>$CONFIG_STATUS <<_ACEOF
21920 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21921 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21924 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21925 s/^/s,@/; s/!/@,|#_!!_#|/
21928 s/'"$ac_delim"'$/,g/; t
21930 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21931 ' >>$CONFIG_STATUS <conf$$subs.sed
21932 rm -f conf$$subs.sed
21933 cat >>$CONFIG_STATUS <<_ACEOF
21939 for ac_last_try in false false false false false :; do
21940 cat >conf$$subs.sed <<_ACEOF
21941 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21942 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21943 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21944 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21945 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21946 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21947 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21948 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21949 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21950 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21951 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
21952 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21953 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
21955 ifGNUmake!$ifGNUmake$ac_delim
21956 LN_S!$LN_S$ac_delim
21959 DATE!$DATE$ac_delim
21960 FIND!$FIND$ac_delim
21961 MKDIR!$MKDIR$ac_delim
21963 RANLIB!$RANLIB$ac_delim
21968 BINPWD!$BINPWD$ac_delim
21969 GRAPHVIZ!$GRAPHVIZ$ac_delim
21972 NEATO!$NEATO$ac_delim
21973 TWOPI!$TWOPI$ac_delim
21974 CIRCO!$CIRCO$ac_delim
21976 DOTTY!$DOTTY$ac_delim
21977 XDOT_PY!$XDOT_PY$ac_delim
21978 PERL!$PERL$ac_delim
21979 HAVE_PERL!$HAVE_PERL$ac_delim
21980 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21981 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21982 INSTALL_DATA!$INSTALL_DATA$ac_delim
21983 BZIP2!$BZIP2$ac_delim
21985 DOXYGEN!$DOXYGEN$ac_delim
21986 GROFF!$GROFF$ac_delim
21987 GZIPBIN!$GZIPBIN$ac_delim
21988 POD2HTML!$POD2HTML$ac_delim
21989 POD2MAN!$POD2MAN$ac_delim
21990 PDFROFF!$PDFROFF$ac_delim
21991 RUNTEST!$RUNTEST$ac_delim
21992 TCLSH!$TCLSH$ac_delim
21994 OCAMLC!$OCAMLC$ac_delim
21995 OCAMLOPT!$OCAMLOPT$ac_delim
21996 OCAMLDEP!$OCAMLDEP$ac_delim
21997 OCAMLDOC!$OCAMLDOC$ac_delim
21999 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22000 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22001 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22002 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22003 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22004 LIBADD_DL!$LIBADD_DL$ac_delim
22005 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22006 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22007 USE_UDIS86!$USE_UDIS86$ac_delim
22008 USE_OPROFILE!$USE_OPROFILE$ac_delim
22009 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22010 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22011 MMAP_FILE!$MMAP_FILE$ac_delim
22012 SHLIBEXT!$SHLIBEXT$ac_delim
22013 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22014 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22015 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22016 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22017 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22018 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22019 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22020 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22021 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22022 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22023 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22024 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22025 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22026 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22027 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22028 RPATH!$RPATH$ac_delim
22029 RDYNAMIC!$RDYNAMIC$ac_delim
22030 LIBOBJS!$LIBOBJS$ac_delim
22031 LTLIBOBJS!$LTLIBOBJS$ac_delim
22034 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
22036 elif $ac_last_try; then
22037 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22038 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22039 { (exit 1); exit 1; }; }
22041 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22045 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22046 if test -n "$ac_eof"; then
22047 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22048 ac_eof=`expr $ac_eof + 1`
22051 cat >>$CONFIG_STATUS <<_ACEOF
22052 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22053 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22056 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22057 s/^/s,@/; s/!/@,|#_!!_#|/
22060 s/'"$ac_delim"'$/,g/; t
22062 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22063 ' >>$CONFIG_STATUS <conf$$subs.sed
22064 rm -f conf$$subs.sed
22065 cat >>$CONFIG_STATUS <<_ACEOF
22072 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22073 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22074 # trailing colons and then remove the whole line if VPATH becomes empty
22075 # (actually we leave an empty line to preserve line numbers).
22076 if test "x$srcdir" = x.; then
22077 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22078 s/:*\$(srcdir):*/:/
22079 s/:*\${srcdir}:*/:/
22081 s/^\([^=]*=[ ]*\):*/\1/
22087 cat >>$CONFIG_STATUS <<\_ACEOF
22088 fi # test -n "$CONFIG_FILES"
22091 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22094 :[FHLC]) ac_mode=$ac_tag; continue;;
22096 case $ac_mode$ac_tag in
22098 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22099 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22100 { (exit 1); exit 1; }; };;
22101 :[FH]-) ac_tag=-:-;;
22102 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22119 -) ac_f="$tmp/stdin";;
22120 *) # Look for the file first in the build tree, then in the source tree
22121 # (if the path is not absolute). The absolute path cannot be DOS-style,
22122 # because $ac_f cannot contain `:'.
22126 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22128 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22129 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22130 { (exit 1); exit 1; }; };;
22132 ac_file_inputs="$ac_file_inputs $ac_f"
22135 # Let's still pretend it is `configure' which instantiates (i.e., don't
22136 # use $as_me), people would be surprised to read:
22137 # /* config.h. Generated by config.status. */
22138 configure_input="Generated from "`IFS=:
22139 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22140 if test x"$ac_file" != x-; then
22141 configure_input="$ac_file. $configure_input"
22142 { echo "$as_me:$LINENO: creating $ac_file" >&5
22143 echo "$as_me: creating $ac_file" >&6;}
22147 *:-:* | *:-) cat >"$tmp/stdin";;
22152 ac_dir=`$as_dirname -- "$ac_file" ||
22153 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22154 X"$ac_file" : 'X\(//\)[^/]' \| \
22155 X"$ac_file" : 'X\(//\)$' \| \
22156 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22162 /^X\(\/\/\)[^/].*/{
22177 -*) as_dir=./$as_dir;;
22179 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22183 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22184 *) as_qdir=$as_dir;;
22186 as_dirs="'$as_qdir' $as_dirs"
22187 as_dir=`$as_dirname -- "$as_dir" ||
22188 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22189 X"$as_dir" : 'X\(//\)[^/]' \| \
22190 X"$as_dir" : 'X\(//\)$' \| \
22191 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22197 /^X\(\/\/\)[^/].*/{
22210 test -d "$as_dir" && break
22212 test -z "$as_dirs" || eval "mkdir $as_dirs"
22213 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22214 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22215 { (exit 1); exit 1; }; }; }
22219 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22221 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22222 # A ".." for each directory in $ac_dir_suffix.
22223 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22224 case $ac_top_builddir_sub in
22225 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22226 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22229 ac_abs_top_builddir=$ac_pwd
22230 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22231 # for backward compatibility:
22232 ac_top_builddir=$ac_top_build_prefix
22235 .) # We are building in place.
22237 ac_top_srcdir=$ac_top_builddir_sub
22238 ac_abs_top_srcdir=$ac_pwd ;;
22239 [\\/]* | ?:[\\/]* ) # Absolute name.
22240 ac_srcdir=$srcdir$ac_dir_suffix;
22241 ac_top_srcdir=$srcdir
22242 ac_abs_top_srcdir=$srcdir ;;
22243 *) # Relative name.
22244 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22245 ac_top_srcdir=$ac_top_build_prefix$srcdir
22246 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22248 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22258 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22259 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22263 cat >>$CONFIG_STATUS <<\_ACEOF
22264 # If the template does not know about datarootdir, expand it.
22265 # FIXME: This hack should be removed a few years after 2.60.
22266 ac_datarootdir_hack=; ac_datarootdir_seen=
22268 case `sed -n '/datarootdir/ {
22277 ' $ac_file_inputs` in
22278 *datarootdir*) ac_datarootdir_seen=yes;;
22279 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22280 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22281 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22283 cat >>$CONFIG_STATUS <<_ACEOF
22284 ac_datarootdir_hack='
22285 s&@datadir@&$datadir&g
22286 s&@docdir@&$docdir&g
22287 s&@infodir@&$infodir&g
22288 s&@localedir@&$localedir&g
22289 s&@mandir@&$mandir&g
22290 s&\\\${datarootdir}&$datarootdir&g' ;;
22294 # Neutralize VPATH when `$srcdir' = `.'.
22295 # Shell code in configure.ac might set extrasub.
22296 # FIXME: do we really want to maintain this feature?
22297 cat >>$CONFIG_STATUS <<_ACEOF
22301 cat >>$CONFIG_STATUS <<\_ACEOF
22303 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22304 s&@configure_input@&$configure_input&;t t
22305 s&@top_builddir@&$ac_top_builddir_sub&;t t
22306 s&@srcdir@&$ac_srcdir&;t t
22307 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22308 s&@top_srcdir@&$ac_top_srcdir&;t t
22309 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22310 s&@builddir@&$ac_builddir&;t t
22311 s&@abs_builddir@&$ac_abs_builddir&;t t
22312 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22313 s&@INSTALL@&$ac_INSTALL&;t t
22314 $ac_datarootdir_hack
22315 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22317 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22318 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22319 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22320 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22321 which seems to be undefined. Please make sure it is defined." >&5
22322 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22323 which seems to be undefined. Please make sure it is defined." >&2;}
22327 -) cat "$tmp/out"; rm -f "$tmp/out";;
22328 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22337 # Transform confdefs.h into a sed script `conftest.defines', that
22338 # substitutes the proper values into config.h.in to produce config.h.
22339 rm -f conftest.defines conftest.tail
22340 # First, append a space to every undef/define line, to ease matching.
22341 echo 's/$/ /' >conftest.defines
22342 # Then, protect against being on the right side of a sed subst, or in
22343 # an unquoted here document, in config.status. If some macros were
22344 # called several times there might be several #defines for the same
22345 # symbol, which is useless. But do not sort them, since the last
22346 # AC_DEFINE must be honored.
22347 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22348 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22349 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22350 # PARAMS is the parameter list in the macro definition--in most cases, it's
22351 # just an empty string.
22352 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22353 ac_dB='\\)[ (].*,\\1define\\2'
22361 s/^[ ]*#[ ]*define[ ][ ]*//
22366 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22367 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22368 ' >>conftest.defines
22370 # Remove the space that was appended to ease matching.
22371 # Then replace #undef with comments. This is necessary, for
22372 # example, in the case of _POSIX_SOURCE, which is predefined and required
22373 # on some systems where configure will not decide to define it.
22374 # (The regexp can be short, since the line contains either #define or #undef.)
22376 s,^[ #]*u.*,/* & */,' >>conftest.defines
22378 # Break up conftest.defines:
22379 ac_max_sed_lines=50
22381 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22382 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22383 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22385 ac_in='$ac_file_inputs'
22386 ac_out='"$tmp/out1"'
22387 ac_nxt='"$tmp/out2"'
22391 # Write a here document:
22392 cat >>$CONFIG_STATUS <<_ACEOF
22393 # First, check the format of the line:
22394 cat >"\$tmp/defines.sed" <<\\CEOF
22395 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22396 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22400 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22402 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22403 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22404 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22405 grep . conftest.tail >/dev/null || break
22406 rm -f conftest.defines
22407 mv conftest.tail conftest.defines
22409 rm -f conftest.defines conftest.tail
22411 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22412 cat >>$CONFIG_STATUS <<\_ACEOF
22413 if test x"$ac_file" != x-; then
22414 echo "/* $configure_input */" >"$tmp/config.h"
22415 cat "$ac_result" >>"$tmp/config.h"
22416 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22417 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22418 echo "$as_me: $ac_file is unchanged" >&6;}
22421 mv "$tmp/config.h" $ac_file
22424 echo "/* $configure_input */"
22430 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22431 echo "$as_me: executing $ac_file commands" >&6;}
22436 case $ac_file$ac_mode in
22437 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22438 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22439 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22440 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22441 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22442 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22443 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22444 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22445 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22446 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22447 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22448 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22449 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22450 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22451 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22452 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22453 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22454 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22455 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22456 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22457 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22458 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22459 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22460 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22461 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22462 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22468 { (exit 0); exit 0; }
22470 chmod +x $CONFIG_STATUS
22471 ac_clean_files=$ac_clean_files_save
22474 # configure is writing to config.log, and then calls config.status.
22475 # config.status does its own redirection, appending to config.log.
22476 # Unfortunately, on DOS this fails, as config.log is still kept open
22477 # by configure, so config.status won't be able to write to it; its
22478 # output is simply discarded. So we exec the FD to /dev/null,
22479 # effectively closing config.log, so it can be properly (re)opened and
22480 # appended to by config.status. When coming back to configure, we
22481 # need to make the FD available again.
22482 if test "$no_create" != yes; then
22484 ac_config_status_args=
22485 test "$silent" = yes &&
22486 ac_config_status_args="$ac_config_status_args --quiet"
22488 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22490 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22491 # would make configure fail if this is the last instruction.
22492 $ac_cs_success || { (exit 1); exit 1; }
22496 # CONFIG_SUBDIRS section.
22498 if test "$no_recursion" != yes; then
22500 # Remove --cache-file and --srcdir arguments so they do not pile up.
22501 ac_sub_configure_args=
22503 eval "set x $ac_configure_args"
22507 if test -n "$ac_prev"; then
22512 -cache-file | --cache-file | --cache-fil | --cache-fi \
22513 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22514 ac_prev=cache_file ;;
22515 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22516 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22519 --config-cache | -C)
22521 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22523 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22525 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22527 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22531 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22533 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22537 # Always prepend --prefix to ensure using the same prefix
22538 # in subdir configurations.
22539 ac_arg="--prefix=$prefix"
22541 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22543 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22546 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22548 # Do not complain, so a configure script can configure whichever
22549 # parts of a large source tree are present.
22550 test -d "$srcdir/$ac_dir" || continue
22552 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22553 echo "$as_me:$LINENO: $ac_msg" >&5
22557 -*) as_dir=./$as_dir;;
22559 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22563 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22564 *) as_qdir=$as_dir;;
22566 as_dirs="'$as_qdir' $as_dirs"
22567 as_dir=`$as_dirname -- "$as_dir" ||
22568 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22569 X"$as_dir" : 'X\(//\)[^/]' \| \
22570 X"$as_dir" : 'X\(//\)$' \| \
22571 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22573 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22577 /^X\(\/\/\)[^/].*/{
22590 test -d "$as_dir" && break
22592 test -z "$as_dirs" || eval "mkdir $as_dirs"
22593 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22594 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22595 { (exit 1); exit 1; }; }; }
22599 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22601 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22602 # A ".." for each directory in $ac_dir_suffix.
22603 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22604 case $ac_top_builddir_sub in
22605 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22606 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22609 ac_abs_top_builddir=$ac_pwd
22610 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22611 # for backward compatibility:
22612 ac_top_builddir=$ac_top_build_prefix
22615 .) # We are building in place.
22617 ac_top_srcdir=$ac_top_builddir_sub
22618 ac_abs_top_srcdir=$ac_pwd ;;
22619 [\\/]* | ?:[\\/]* ) # Absolute name.
22620 ac_srcdir=$srcdir$ac_dir_suffix;
22621 ac_top_srcdir=$srcdir
22622 ac_abs_top_srcdir=$srcdir ;;
22623 *) # Relative name.
22624 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22625 ac_top_srcdir=$ac_top_build_prefix$srcdir
22626 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22628 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22633 # Check for guested configure; otherwise get Cygnus style configure.
22634 if test -f "$ac_srcdir/configure.gnu"; then
22635 ac_sub_configure=$ac_srcdir/configure.gnu
22636 elif test -f "$ac_srcdir/configure"; then
22637 ac_sub_configure=$ac_srcdir/configure
22638 elif test -f "$ac_srcdir/configure.in"; then
22639 # This should be Cygnus configure.
22640 ac_sub_configure=$ac_aux_dir/configure
22642 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22643 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22647 # The recursion is here.
22648 if test -n "$ac_sub_configure"; then
22649 # Make the cache file name correct relative to the subdirectory.
22650 case $cache_file in
22651 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22652 *) # Relative name.
22653 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22656 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22657 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22658 # The eval makes quoting arguments work.
22659 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22660 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22661 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22662 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22663 { (exit 1); exit 1; }; }