2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.1svn.
5 # Report bugs to <http://llvm.org/bugs/>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 exec 7<&0 </dev/null 6>&1
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
559 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.1svn'
565 PACKAGE_STRING='LLVM 3.1svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
568 ac_unique_file="lib/VMCore/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
573 # include <sys/types.h>
576 # include <sys/stat.h>
587 # if !STDC_HEADERS && HAVE_MEMORY_H
593 # include <strings.h>
596 # include <inttypes.h>
614 program_transform_name
689 ENABLE_EXPENSIVE_CHECKS
705 LLVM_ENUM_ASM_PRINTERS
706 LLVM_ENUM_ASM_PARSERS
707 LLVM_ENUM_DISASSEMBLERS
760 HAVE_LINK_VERSION_SCRIPT
763 CONVENIENCE_LTDL_TRUE
764 CONVENIENCE_LTDL_FALSE
767 NO_MISSING_FIELD_INITIALIZERS
768 COVERED_SWITCH_DEFAULT
789 ENABLE_VISIBILITY_INLINES_HIDDEN
795 ac_precious_vars='build_alias
806 ac_subdirs_all='projects/llvm-gcc
810 projects/llvm-poolalloc
813 projects/llvm-stacker
821 # Initialize some variables set by options.
823 ac_init_version=false
824 # The variables have the same names as the options, with
825 # dashes changed to underlines.
833 program_transform_name=s,x,x,
841 # Installation directory options.
842 # These are left unexpanded so users can "make install exec_prefix=/foo"
843 # and all the variables that are supposed to be based on exec_prefix
844 # by default will actually change.
845 # Use braces instead of parens because sh, perl, etc. also accept them.
846 # (The list follows the same order as the GNU Coding Standards.)
847 bindir='${exec_prefix}/bin'
848 sbindir='${exec_prefix}/sbin'
849 libexecdir='${exec_prefix}/libexec'
850 datarootdir='${prefix}/share'
851 datadir='${datarootdir}'
852 sysconfdir='${prefix}/etc'
853 sharedstatedir='${prefix}/com'
854 localstatedir='${prefix}/var'
855 includedir='${prefix}/include'
856 oldincludedir='/usr/include'
857 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
858 infodir='${datarootdir}/info'
863 libdir='${exec_prefix}/lib'
864 localedir='${datarootdir}/locale'
865 mandir='${datarootdir}/man'
871 # If the previous option needs an argument, assign it.
872 if test -n "$ac_prev"; then
873 eval $ac_prev=\$ac_option
879 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883 # Accept the important Cygnus configure options, so we can diagnose typos.
885 case $ac_dashdash$ac_option in
889 -bindir | --bindir | --bindi | --bind | --bin | --bi)
891 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
894 -build | --build | --buil | --bui | --bu)
895 ac_prev=build_alias ;;
896 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897 build_alias=$ac_optarg ;;
899 -cache-file | --cache-file | --cache-fil | --cache-fi \
900 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901 ac_prev=cache_file ;;
902 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904 cache_file=$ac_optarg ;;
907 cache_file=config.cache ;;
909 -datadir | --datadir | --datadi | --datad)
911 -datadir=* | --datadir=* | --datadi=* | --datad=*)
912 datadir=$ac_optarg ;;
914 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915 | --dataroo | --dataro | --datar)
916 ac_prev=datarootdir ;;
917 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919 datarootdir=$ac_optarg ;;
921 -disable-* | --disable-*)
922 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
925 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
926 { (exit 1); exit 1; }; }
927 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
928 eval enable_$ac_feature=no ;;
930 -docdir | --docdir | --docdi | --doc | --do)
932 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
935 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
937 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
940 -enable-* | --enable-*)
941 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
942 # Reject names that are not valid shell variable names.
943 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
944 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
945 { (exit 1); exit 1; }; }
946 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
947 eval enable_$ac_feature=\$ac_optarg ;;
949 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
950 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
951 | --exec | --exe | --ex)
952 ac_prev=exec_prefix ;;
953 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
954 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
955 | --exec=* | --exe=* | --ex=*)
956 exec_prefix=$ac_optarg ;;
958 -gas | --gas | --ga | --g)
959 # Obsolete; use --with-gas.
962 -help | --help | --hel | --he | -h)
964 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
965 ac_init_help=recursive ;;
966 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
967 ac_init_help=short ;;
969 -host | --host | --hos | --ho)
970 ac_prev=host_alias ;;
971 -host=* | --host=* | --hos=* | --ho=*)
972 host_alias=$ac_optarg ;;
974 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978 htmldir=$ac_optarg ;;
980 -includedir | --includedir | --includedi | --included | --include \
981 | --includ | --inclu | --incl | --inc)
982 ac_prev=includedir ;;
983 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
984 | --includ=* | --inclu=* | --incl=* | --inc=*)
985 includedir=$ac_optarg ;;
987 -infodir | --infodir | --infodi | --infod | --info | --inf)
989 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
990 infodir=$ac_optarg ;;
992 -libdir | --libdir | --libdi | --libd)
994 -libdir=* | --libdir=* | --libdi=* | --libd=*)
997 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
998 | --libexe | --libex | --libe)
999 ac_prev=libexecdir ;;
1000 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1001 | --libexe=* | --libex=* | --libe=*)
1002 libexecdir=$ac_optarg ;;
1004 -localedir | --localedir | --localedi | --localed | --locale)
1005 ac_prev=localedir ;;
1006 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1007 localedir=$ac_optarg ;;
1009 -localstatedir | --localstatedir | --localstatedi | --localstated \
1010 | --localstate | --localstat | --localsta | --localst | --locals)
1011 ac_prev=localstatedir ;;
1012 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1013 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1014 localstatedir=$ac_optarg ;;
1016 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1019 mandir=$ac_optarg ;;
1021 -nfp | --nfp | --nf)
1022 # Obsolete; use --without-fp.
1025 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1026 | --no-cr | --no-c | -n)
1029 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1034 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1035 | --oldin | --oldi | --old | --ol | --o)
1036 ac_prev=oldincludedir ;;
1037 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1038 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1039 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1040 oldincludedir=$ac_optarg ;;
1042 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1045 prefix=$ac_optarg ;;
1047 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1048 | --program-pre | --program-pr | --program-p)
1049 ac_prev=program_prefix ;;
1050 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1051 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1052 program_prefix=$ac_optarg ;;
1054 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1055 | --program-suf | --program-su | --program-s)
1056 ac_prev=program_suffix ;;
1057 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1058 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1059 program_suffix=$ac_optarg ;;
1061 -program-transform-name | --program-transform-name \
1062 | --program-transform-nam | --program-transform-na \
1063 | --program-transform-n | --program-transform- \
1064 | --program-transform | --program-transfor \
1065 | --program-transfo | --program-transf \
1066 | --program-trans | --program-tran \
1067 | --progr-tra | --program-tr | --program-t)
1068 ac_prev=program_transform_name ;;
1069 -program-transform-name=* | --program-transform-name=* \
1070 | --program-transform-nam=* | --program-transform-na=* \
1071 | --program-transform-n=* | --program-transform-=* \
1072 | --program-transform=* | --program-transfor=* \
1073 | --program-transfo=* | --program-transf=* \
1074 | --program-trans=* | --program-tran=* \
1075 | --progr-tra=* | --program-tr=* | --program-t=*)
1076 program_transform_name=$ac_optarg ;;
1078 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1081 pdfdir=$ac_optarg ;;
1083 -psdir | --psdir | --psdi | --psd | --ps)
1085 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089 | -silent | --silent | --silen | --sile | --sil)
1092 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1094 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1096 sbindir=$ac_optarg ;;
1098 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1099 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1100 | --sharedst | --shareds | --shared | --share | --shar \
1102 ac_prev=sharedstatedir ;;
1103 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1104 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1105 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1107 sharedstatedir=$ac_optarg ;;
1109 -site | --site | --sit)
1111 -site=* | --site=* | --sit=*)
1114 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1116 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1117 srcdir=$ac_optarg ;;
1119 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1120 | --syscon | --sysco | --sysc | --sys | --sy)
1121 ac_prev=sysconfdir ;;
1122 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1123 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1124 sysconfdir=$ac_optarg ;;
1126 -target | --target | --targe | --targ | --tar | --ta | --t)
1127 ac_prev=target_alias ;;
1128 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1129 target_alias=$ac_optarg ;;
1131 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1134 -version | --version | --versio | --versi | --vers | -V)
1135 ac_init_version=: ;;
1138 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1141 { echo "$as_me: error: invalid package name: $ac_package" >&2
1142 { (exit 1); exit 1; }; }
1143 ac_package=`echo $ac_package| sed 's/-/_/g'`
1144 eval with_$ac_package=\$ac_optarg ;;
1146 -without-* | --without-*)
1147 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1148 # Reject names that are not valid shell variable names.
1149 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1150 { echo "$as_me: error: invalid package name: $ac_package" >&2
1151 { (exit 1); exit 1; }; }
1152 ac_package=`echo $ac_package | sed 's/-/_/g'`
1153 eval with_$ac_package=no ;;
1156 # Obsolete; use --with-x.
1159 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1160 | --x-incl | --x-inc | --x-in | --x-i)
1161 ac_prev=x_includes ;;
1162 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1163 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1164 x_includes=$ac_optarg ;;
1166 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1167 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1168 ac_prev=x_libraries ;;
1169 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1170 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1171 x_libraries=$ac_optarg ;;
1173 -*) { echo "$as_me: error: unrecognized option: $ac_option
1174 Try \`$0 --help' for more information." >&2
1175 { (exit 1); exit 1; }; }
1179 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1182 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1183 { (exit 1); exit 1; }; }
1184 eval $ac_envvar=\$ac_optarg
1185 export $ac_envvar ;;
1188 # FIXME: should be removed in autoconf 3.0.
1189 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1190 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1192 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1198 if test -n "$ac_prev"; then
1199 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1200 { echo "$as_me: error: missing argument to $ac_option" >&2
1201 { (exit 1); exit 1; }; }
1204 # Be sure to have absolute directory names.
1205 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206 datadir sysconfdir sharedstatedir localstatedir includedir \
1207 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208 libdir localedir mandir
1210 eval ac_val=\$$ac_var
1212 [\\/$]* | ?:[\\/]* ) continue;;
1213 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1215 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1216 { (exit 1); exit 1; }; }
1219 # There might be people who depend on the old broken behavior: `$host'
1220 # used to hold the argument of --host etc.
1221 # FIXME: To remove some day.
1224 target=$target_alias
1226 # FIXME: To remove some day.
1227 if test "x$host_alias" != x; then
1228 if test "x$build_alias" = x; then
1229 cross_compiling=maybe
1230 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1231 If a cross compiler is detected then cross compile mode will be used." >&2
1232 elif test "x$build_alias" != "x$host_alias"; then
1238 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1240 test "$silent" = yes && exec 6>/dev/null
1243 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244 ac_ls_di=`ls -di .` &&
1245 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1246 { echo "$as_me: error: Working directory cannot be determined" >&2
1247 { (exit 1); exit 1; }; }
1248 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1249 { echo "$as_me: error: pwd does not report name of working directory" >&2
1250 { (exit 1); exit 1; }; }
1253 # Find the source files, if location was not specified.
1254 if test -z "$srcdir"; then
1255 ac_srcdir_defaulted=yes
1256 # Try the directory containing this script, then the parent directory.
1257 ac_confdir=`$as_dirname -- "$0" ||
1258 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1259 X"$0" : 'X\(//\)[^/]' \| \
1260 X"$0" : 'X\(//\)$' \| \
1261 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1281 if test ! -r "$srcdir/$ac_unique_file"; then
1285 ac_srcdir_defaulted=no
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1288 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1289 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1290 { (exit 1); exit 1; }; }
1292 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1295 { (exit 1); exit 1; }; }
1297 # When building in place, set srcdir=.
1298 if test "$ac_abs_confdir" = "$ac_pwd"; then
1301 # Remove unnecessary trailing slashes from srcdir.
1302 # Double slashes in file names in object file debugging info
1303 # mess up M-x gdb in Emacs.
1305 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1307 for ac_var in $ac_precious_vars; do
1308 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_env_${ac_var}_value=\$${ac_var}
1310 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1315 # Report the --help message.
1317 if test "$ac_init_help" = "long"; then
1318 # Omit some internal or obsolete options to make the list less imposing.
1319 # This message is too long to be a string in the A/UX 3.1 sh.
1321 \`configure' configures LLVM 3.1svn to adapt to many kinds of systems.
1323 Usage: $0 [OPTION]... [VAR=VALUE]...
1325 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326 VAR=VALUE. See below for descriptions of some of the useful variables.
1328 Defaults for the options are specified in brackets.
1331 -h, --help display this help and exit
1332 --help=short display options specific to this package
1333 --help=recursive display the short help of all the included packages
1334 -V, --version display version information and exit
1335 -q, --quiet, --silent do not print \`checking...' messages
1336 --cache-file=FILE cache test results in FILE [disabled]
1337 -C, --config-cache alias for \`--cache-file=config.cache'
1338 -n, --no-create do not create output files
1339 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1341 Installation directories:
1342 --prefix=PREFIX install architecture-independent files in PREFIX
1343 [$ac_default_prefix]
1344 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1347 By default, \`make install' will install all the files in
1348 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1349 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350 for instance \`--prefix=\$HOME'.
1352 For better control, use the options below.
1354 Fine tuning of the installation directories:
1355 --bindir=DIR user executables [EPREFIX/bin]
1356 --sbindir=DIR system admin executables [EPREFIX/sbin]
1357 --libexecdir=DIR program executables [EPREFIX/libexec]
1358 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1359 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1360 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1361 --libdir=DIR object code libraries [EPREFIX/lib]
1362 --includedir=DIR C header files [PREFIX/include]
1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1366 --infodir=DIR info documentation [DATAROOTDIR/info]
1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1368 --mandir=DIR man documentation [DATAROOTDIR/man]
1369 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1370 --htmldir=DIR html documentation [DOCDIR]
1371 --dvidir=DIR dvi documentation [DOCDIR]
1372 --pdfdir=DIR pdf documentation [DOCDIR]
1373 --psdir=DIR ps documentation [DOCDIR]
1379 --build=BUILD configure for building on BUILD [guessed]
1380 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1381 --target=TARGET configure for building compilers for TARGET [HOST]
1385 if test -n "$ac_init_help"; then
1386 case $ac_init_help in
1387 short | recursive ) echo "Configuration of LLVM 3.1svn:";;
1392 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1393 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1394 --enable-polly Use polly if available (default is YES)
1395 --enable-libcpp Use libc++ if available (default is NO)
1396 --enable-optimized Compile with optimizations enabled (default is NO)
1397 --enable-profiling Compile with profiling enabled (default is NO)
1398 --enable-assertions Compile with assertion checks enabled (default is
1400 --enable-expensive-checks
1401 Compile with expensive debug checks enabled (default
1403 --enable-debug-runtime Build runtime libs with debug symbols (default is
1405 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1406 optimization is on and YES if it's off)
1407 --enable-jit Enable Just In Time Compiling (default is YES)
1408 --enable-docs Build documents (default is YES)
1409 --enable-doxygen Build doxygen documentation (default is NO)
1410 --enable-threads Use threads if available (default is YES)
1411 --enable-pthreads Use pthreads if available (default is YES)
1412 --enable-pic Build LLVM with Position Independent Code (default
1414 --enable-shared Build a shared library and link tools against it
1416 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1417 Win32 DLL (default is NO)
1418 --enable-timestamps Enable embedding timestamp information in build
1420 --enable-targets Build specific host targets: all or
1421 target1,target2,... Valid targets are: host, x86,
1422 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1423 xcore, msp430, ptx, cbe, and cpp (default=all)
1424 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1426 --enable-bindings Build specific language bindings:
1427 all,auto,none,{binding-name} (default=auto)
1428 --enable-libffi Check for the presence of libffi (default is NO)
1429 --enable-ltdl-install install libltdl
1432 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1433 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1434 --with-optimize-option Select the compiler options to use for optimized
1436 --with-extra-options Specify additional options to compile LLVM with
1437 --with-extra-ld-options Specify additional options to link LLVM with
1438 --with-ocaml-libdir Specify install location for ocaml bindings (default
1440 --with-clang-srcdir Directory to the out-of-tree Clang source
1441 --with-clang-resource-dir
1442 Relative directory from the Clang binary for
1444 --with-c-include-dirs Colon separated list of directories clang will
1446 --with-gcc-toolchain Directory where gcc is installed.
1447 --with-binutils-include Specify path to binutils/include/ containing
1448 plugin-api.h file for gold plugin.
1449 --with-bug-report-url Specify the URL where bug reports should be
1450 submitted (default=http://llvm.org/bugs/)
1451 --with-internal-prefix Installation directory for internal files
1452 --with-tclinclude directory where tcl headers are
1453 --with-udis86=<path> Use udis86 external x86 disassembler library
1454 --with-oprofile=<prefix>
1455 Tell OProfile >= 0.9.4 how to symbolize JIT output
1457 Some influential environment variables:
1458 CC C compiler command
1459 CFLAGS C compiler flags
1460 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1461 nonstandard directory <lib dir>
1462 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1463 you have headers in a nonstandard directory <include dir>
1464 CXX C++ compiler command
1465 CXXFLAGS C++ compiler flags
1468 Use these variables to override the choices made by `configure' or to help
1469 it to find libraries and programs with nonstandard names/locations.
1471 Report bugs to <http://llvm.org/bugs/>.
1476 if test "$ac_init_help" = "recursive"; then
1477 # If there are subdirs, report their specific --help.
1478 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1479 test -d "$ac_dir" || continue
1483 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1486 # A ".." for each directory in $ac_dir_suffix.
1487 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1488 case $ac_top_builddir_sub in
1489 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1493 ac_abs_top_builddir=$ac_pwd
1494 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1495 # for backward compatibility:
1496 ac_top_builddir=$ac_top_build_prefix
1499 .) # We are building in place.
1501 ac_top_srcdir=$ac_top_builddir_sub
1502 ac_abs_top_srcdir=$ac_pwd ;;
1503 [\\/]* | ?:[\\/]* ) # Absolute name.
1504 ac_srcdir=$srcdir$ac_dir_suffix;
1505 ac_top_srcdir=$srcdir
1506 ac_abs_top_srcdir=$srcdir ;;
1508 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1509 ac_top_srcdir=$ac_top_build_prefix$srcdir
1510 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1512 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1514 cd "$ac_dir" || { ac_status=$?; continue; }
1515 # Check for guested configure.
1516 if test -f "$ac_srcdir/configure.gnu"; then
1518 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1519 elif test -f "$ac_srcdir/configure"; then
1521 $SHELL "$ac_srcdir/configure" --help=recursive
1523 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1525 cd "$ac_pwd" || { ac_status=$?; break; }
1529 test -n "$ac_init_help" && exit $ac_status
1530 if $ac_init_version; then
1532 LLVM configure 3.1svn
1533 generated by GNU Autoconf 2.60
1535 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1536 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1537 This configure script is free software; the Free Software Foundation
1538 gives unlimited permission to copy, distribute and modify it.
1540 Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
1544 cat >config.log <<_ACEOF
1545 This file contains any messages produced by compilers while
1546 running configure, to aid debugging if configure makes a mistake.
1548 It was created by LLVM $as_me 3.1svn, which was
1549 generated by GNU Autoconf 2.60. Invocation command line was
1561 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1562 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1563 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1564 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1565 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1567 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1568 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1570 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1571 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1572 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1573 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1574 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1575 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1576 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1584 test -z "$as_dir" && as_dir=.
1585 echo "PATH: $as_dir"
1601 # Keep a trace of the command line.
1602 # Strip out --no-create and --no-recursion so they do not pile up.
1603 # Strip out --silent because we don't want to record it for future runs.
1604 # Also quote any args containing shell meta-characters.
1605 # Make two passes to allow for proper duplicate-argument suppression.
1609 ac_must_keep_next=false
1615 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1616 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1617 | -silent | --silent | --silen | --sile | --sil)
1620 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1623 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1625 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1626 if test $ac_must_keep_next = true; then
1627 ac_must_keep_next=false # Got value, back to normal.
1630 *=* | --config-cache | -C | -disable-* | --disable-* \
1631 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1632 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1633 | -with-* | --with-* | -without-* | --without-* | --x)
1634 case "$ac_configure_args0 " in
1635 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1638 -* ) ac_must_keep_next=true ;;
1641 ac_configure_args="$ac_configure_args '$ac_arg'"
1646 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1647 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1649 # When interrupted or exit'd, cleanup temporary files, and complete
1650 # config.log. We remove comments because anyway the quotes in there
1651 # would cause problems or look ugly.
1652 # WARNING: Use '\'' to represent an apostrophe within the trap.
1653 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1654 trap 'exit_status=$?
1655 # Save into config.log some information that might help in debugging.
1660 ## ---------------- ##
1661 ## Cache variables. ##
1662 ## ---------------- ##
1665 # The following way of writing the cache mishandles newlines in values,
1667 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1668 eval ac_val=\$$ac_var
1672 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1673 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1676 _ | IFS | as_nl) ;; #(
1677 *) $as_unset $ac_var ;;
1682 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1683 *${as_nl}ac_space=\ *)
1685 "s/'\''/'\''\\\\'\'''\''/g;
1686 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1689 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1697 ## ----------------- ##
1698 ## Output variables. ##
1699 ## ----------------- ##
1702 for ac_var in $ac_subst_vars
1704 eval ac_val=\$$ac_var
1706 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1708 echo "$ac_var='\''$ac_val'\''"
1712 if test -n "$ac_subst_files"; then
1714 ## ------------------- ##
1715 ## File substitutions. ##
1716 ## ------------------- ##
1719 for ac_var in $ac_subst_files
1721 eval ac_val=\$$ac_var
1723 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1725 echo "$ac_var='\''$ac_val'\''"
1730 if test -s confdefs.h; then
1740 test "$ac_signal" != 0 &&
1741 echo "$as_me: caught signal $ac_signal"
1742 echo "$as_me: exit $exit_status"
1744 rm -f core *.core core.conftest.* &&
1745 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1748 for ac_signal in 1 2 13 15; do
1749 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1753 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1754 rm -f -r conftest* confdefs.h
1756 # Predefined preprocessor variables.
1758 cat >>confdefs.h <<_ACEOF
1759 #define PACKAGE_NAME "$PACKAGE_NAME"
1763 cat >>confdefs.h <<_ACEOF
1764 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1768 cat >>confdefs.h <<_ACEOF
1769 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1773 cat >>confdefs.h <<_ACEOF
1774 #define PACKAGE_STRING "$PACKAGE_STRING"
1778 cat >>confdefs.h <<_ACEOF
1779 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1783 # Let the site file select an alternate cache file if it wants to.
1784 # Prefer explicitly selected file to automatically selected ones.
1785 if test -n "$CONFIG_SITE"; then
1786 set x "$CONFIG_SITE"
1787 elif test "x$prefix" != xNONE; then
1788 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1790 set x "$ac_default_prefix/share/config.site" \
1791 "$ac_default_prefix/etc/config.site"
1796 if test -r "$ac_site_file"; then
1797 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1798 echo "$as_me: loading site script $ac_site_file" >&6;}
1799 sed 's/^/| /' "$ac_site_file" >&5
1804 if test -r "$cache_file"; then
1805 # Some versions of bash will fail to source /dev/null (special
1806 # files actually), so we avoid doing that.
1807 if test -f "$cache_file"; then
1808 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1809 echo "$as_me: loading cache $cache_file" >&6;}
1811 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1812 *) . "./$cache_file";;
1816 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1817 echo "$as_me: creating cache $cache_file" >&6;}
1821 # Check that the precious variables saved in the cache have kept the same
1823 ac_cache_corrupted=false
1824 for ac_var in $ac_precious_vars; do
1825 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1826 eval ac_new_set=\$ac_env_${ac_var}_set
1827 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1828 eval ac_new_val=\$ac_env_${ac_var}_value
1829 case $ac_old_set,$ac_new_set in
1831 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1832 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1833 ac_cache_corrupted=: ;;
1835 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1836 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1837 ac_cache_corrupted=: ;;
1840 if test "x$ac_old_val" != "x$ac_new_val"; then
1841 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1842 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1843 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1844 echo "$as_me: former value: $ac_old_val" >&2;}
1845 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1846 echo "$as_me: current value: $ac_new_val" >&2;}
1847 ac_cache_corrupted=:
1850 # Pass precious variables to config.status.
1851 if test "$ac_new_set" = set; then
1853 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1854 *) ac_arg=$ac_var=$ac_new_val ;;
1856 case " $ac_configure_args " in
1857 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1858 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1862 if $ac_cache_corrupted; then
1863 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1864 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1865 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1866 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1867 { (exit 1); exit 1; }; }
1895 ac_cpp='$CPP $CPPFLAGS'
1896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1902 cat >>confdefs.h <<\_ACEOF
1903 #define LLVM_VERSION_MAJOR 3
1907 cat >>confdefs.h <<\_ACEOF
1908 #define LLVM_VERSION_MINOR 1
1912 LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
1921 for ac_dir in autoconf "$srcdir"/autoconf; do
1922 if test -f "$ac_dir/install-sh"; then
1924 ac_install_sh="$ac_aux_dir/install-sh -c"
1926 elif test -f "$ac_dir/install.sh"; then
1928 ac_install_sh="$ac_aux_dir/install.sh -c"
1930 elif test -f "$ac_dir/shtool"; then
1932 ac_install_sh="$ac_aux_dir/shtool install -c"
1936 if test -z "$ac_aux_dir"; then
1937 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1938 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1939 { (exit 1); exit 1; }; }
1942 # These three variables are undocumented and unsupported,
1943 # and are intended to be withdrawn in a future Autoconf release.
1944 # They can cause serious problems if a builder's source tree is in a directory
1945 # whose full name contains unusual characters.
1946 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1947 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1948 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1952 if test ${srcdir} != "." ; then
1953 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1954 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1955 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1956 { (exit 1); exit 1; }; }
1961 ac_cpp='$CPP $CPPFLAGS'
1962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1965 if test -n "$ac_tool_prefix"; then
1966 for ac_prog in clang llvm-gcc gcc
1968 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1969 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1972 if test "${ac_cv_prog_CC+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1975 if test -n "$CC"; then
1976 ac_cv_prog_CC="$CC" # Let the user override the test.
1978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982 test -z "$as_dir" && as_dir=.
1983 for ac_exec_ext in '' $ac_executable_extensions; do
1984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1985 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1996 if test -n "$CC"; then
1997 { echo "$as_me:$LINENO: result: $CC" >&5
1998 echo "${ECHO_T}$CC" >&6; }
2000 { echo "$as_me:$LINENO: result: no" >&5
2001 echo "${ECHO_T}no" >&6; }
2005 test -n "$CC" && break
2008 if test -z "$CC"; then
2010 for ac_prog in clang llvm-gcc gcc
2012 # Extract the first word of "$ac_prog", so it can be a program name with args.
2013 set dummy $ac_prog; ac_word=$2
2014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2016 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2017 echo $ECHO_N "(cached) $ECHO_C" >&6
2019 if test -n "$ac_ct_CC"; then
2020 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2026 test -z "$as_dir" && as_dir=.
2027 for ac_exec_ext in '' $ac_executable_extensions; do
2028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2029 ac_cv_prog_ac_ct_CC="$ac_prog"
2030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2039 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2040 if test -n "$ac_ct_CC"; then
2041 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2042 echo "${ECHO_T}$ac_ct_CC" >&6; }
2044 { echo "$as_me:$LINENO: result: no" >&5
2045 echo "${ECHO_T}no" >&6; }
2049 test -n "$ac_ct_CC" && break
2052 if test "x$ac_ct_CC" = x; then
2055 case $cross_compiling:$ac_tool_warned in
2057 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2058 whose name does not start with the host triplet. If you think this
2059 configuration is useful to you, please write to autoconf@gnu.org." >&5
2060 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2061 whose name does not start with the host triplet. If you think this
2062 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2063 ac_tool_warned=yes ;;
2070 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2071 See \`config.log' for more details." >&5
2072 echo "$as_me: error: no acceptable C compiler found in \$PATH
2073 See \`config.log' for more details." >&2;}
2074 { (exit 1); exit 1; }; }
2076 # Provide some information about the compiler.
2077 echo "$as_me:$LINENO: checking for C compiler version" >&5
2078 ac_compiler=`set X $ac_compile; echo $2`
2079 { (ac_try="$ac_compiler --version >&5"
2081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2082 *) ac_try_echo=$ac_try;;
2084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2085 (eval "$ac_compiler --version >&5") 2>&5
2087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088 (exit $ac_status); }
2089 { (ac_try="$ac_compiler -v >&5"
2091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2092 *) ac_try_echo=$ac_try;;
2094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2095 (eval "$ac_compiler -v >&5") 2>&5
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); }
2099 { (ac_try="$ac_compiler -V >&5"
2101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2102 *) ac_try_echo=$ac_try;;
2104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2105 (eval "$ac_compiler -V >&5") 2>&5
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); }
2110 cat >conftest.$ac_ext <<_ACEOF
2113 cat confdefs.h >>conftest.$ac_ext
2114 cat >>conftest.$ac_ext <<_ACEOF
2115 /* end confdefs.h. */
2125 ac_clean_files_save=$ac_clean_files
2126 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2127 # Try to create an executable without -o first, disregard a.out.
2128 # It will help us diagnose broken compilers, and finding out an intuition
2130 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2131 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2132 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2134 # List of possible output files, starting from the most likely.
2135 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2136 # only as a last resort. b.out is created by i960 compilers.
2137 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2139 # The IRIX 6 linker writes into existing files which may not be
2140 # executable, retaining their permissions. Remove them first so a
2141 # subsequent execution test works.
2143 for ac_file in $ac_files
2146 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2147 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2152 if { (ac_try="$ac_link_default"
2154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2155 *) ac_try_echo=$ac_try;;
2157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2158 (eval "$ac_link_default") 2>&5
2160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161 (exit $ac_status); }; then
2162 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2163 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2164 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2165 # so that the user can short-circuit this test for compilers unknown to
2167 for ac_file in $ac_files
2169 test -f "$ac_file" || continue
2171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2174 # We found the default executable, but exeext='' is most
2178 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2180 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2182 # We set ac_cv_exeext here because the later test for it is not
2183 # safe: cross compilers may not add the suffix if given an `-o'
2184 # argument, so we may need to know it at that point already.
2185 # Even if this section looks crufty: it has the advantage of
2192 test "$ac_cv_exeext" = no && ac_cv_exeext=
2195 echo "$as_me: failed program was:" >&5
2196 sed 's/^/| /' conftest.$ac_ext >&5
2198 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2199 See \`config.log' for more details." >&5
2200 echo "$as_me: error: C compiler cannot create executables
2201 See \`config.log' for more details." >&2;}
2202 { (exit 77); exit 77; }; }
2205 ac_exeext=$ac_cv_exeext
2206 { echo "$as_me:$LINENO: result: $ac_file" >&5
2207 echo "${ECHO_T}$ac_file" >&6; }
2209 # Check that the compiler produces executables we can run. If not, either
2210 # the compiler is broken, or we cross compile.
2211 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2212 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2213 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2214 # If not cross compiling, check that we can run a simple program.
2215 if test "$cross_compiling" != yes; then
2216 if { ac_try='./$ac_file'
2217 { (case "(($ac_try" in
2218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2219 *) ac_try_echo=$ac_try;;
2221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2222 (eval "$ac_try") 2>&5
2224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225 (exit $ac_status); }; }; then
2228 if test "$cross_compiling" = maybe; then
2231 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2232 If you meant to cross compile, use \`--host'.
2233 See \`config.log' for more details." >&5
2234 echo "$as_me: error: cannot run C compiled programs.
2235 If you meant to cross compile, use \`--host'.
2236 See \`config.log' for more details." >&2;}
2237 { (exit 1); exit 1; }; }
2241 { echo "$as_me:$LINENO: result: yes" >&5
2242 echo "${ECHO_T}yes" >&6; }
2244 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2245 ac_clean_files=$ac_clean_files_save
2246 # Check that the compiler produces executables we can run. If not, either
2247 # the compiler is broken, or we cross compile.
2248 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2249 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2250 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2251 echo "${ECHO_T}$cross_compiling" >&6; }
2253 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2254 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2255 if { (ac_try="$ac_link"
2257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2258 *) ac_try_echo=$ac_try;;
2260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2261 (eval "$ac_link") 2>&5
2263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264 (exit $ac_status); }; then
2265 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2266 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2267 # work properly (i.e., refer to `conftest.exe'), while it won't with
2269 for ac_file in conftest.exe conftest conftest.*; do
2270 test -f "$ac_file" || continue
2272 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2273 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2279 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2280 See \`config.log' for more details." >&5
2281 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2282 See \`config.log' for more details." >&2;}
2283 { (exit 1); exit 1; }; }
2286 rm -f conftest$ac_cv_exeext
2287 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2288 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2290 rm -f conftest.$ac_ext
2291 EXEEXT=$ac_cv_exeext
2293 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2294 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2295 if test "${ac_cv_objext+set}" = set; then
2296 echo $ECHO_N "(cached) $ECHO_C" >&6
2298 cat >conftest.$ac_ext <<_ACEOF
2301 cat confdefs.h >>conftest.$ac_ext
2302 cat >>conftest.$ac_ext <<_ACEOF
2303 /* end confdefs.h. */
2313 rm -f conftest.o conftest.obj
2314 if { (ac_try="$ac_compile"
2316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2317 *) ac_try_echo=$ac_try;;
2319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2320 (eval "$ac_compile") 2>&5
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); }; then
2324 for ac_file in conftest.o conftest.obj conftest.*; do
2325 test -f "$ac_file" || continue;
2327 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2328 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2333 echo "$as_me: failed program was:" >&5
2334 sed 's/^/| /' conftest.$ac_ext >&5
2336 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2337 See \`config.log' for more details." >&5
2338 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2339 See \`config.log' for more details." >&2;}
2340 { (exit 1); exit 1; }; }
2343 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2345 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2346 echo "${ECHO_T}$ac_cv_objext" >&6; }
2347 OBJEXT=$ac_cv_objext
2349 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2350 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2351 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2352 echo $ECHO_N "(cached) $ECHO_C" >&6
2354 cat >conftest.$ac_ext <<_ACEOF
2357 cat confdefs.h >>conftest.$ac_ext
2358 cat >>conftest.$ac_ext <<_ACEOF
2359 /* end confdefs.h. */
2372 rm -f conftest.$ac_objext
2373 if { (ac_try="$ac_compile"
2375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2376 *) ac_try_echo=$ac_try;;
2378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2379 (eval "$ac_compile") 2>conftest.er1
2381 grep -v '^ *+' conftest.er1 >conftest.err
2383 cat conftest.err >&5
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); } &&
2386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2387 { (case "(($ac_try" in
2388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2389 *) ac_try_echo=$ac_try;;
2391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2392 (eval "$ac_try") 2>&5
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); }; } &&
2396 { ac_try='test -s conftest.$ac_objext'
2397 { (case "(($ac_try" in
2398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2399 *) ac_try_echo=$ac_try;;
2401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2402 (eval "$ac_try") 2>&5
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; }; then
2408 echo "$as_me: failed program was:" >&5
2409 sed 's/^/| /' conftest.$ac_ext >&5
2414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2415 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2418 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2419 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2420 GCC=`test $ac_compiler_gnu = yes && echo yes`
2421 ac_test_CFLAGS=${CFLAGS+set}
2422 ac_save_CFLAGS=$CFLAGS
2423 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2424 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2425 if test "${ac_cv_prog_cc_g+set}" = set; then
2426 echo $ECHO_N "(cached) $ECHO_C" >&6
2428 ac_save_c_werror_flag=$ac_c_werror_flag
2429 ac_c_werror_flag=yes
2432 cat >conftest.$ac_ext <<_ACEOF
2435 cat confdefs.h >>conftest.$ac_ext
2436 cat >>conftest.$ac_ext <<_ACEOF
2437 /* end confdefs.h. */
2447 rm -f conftest.$ac_objext
2448 if { (ac_try="$ac_compile"
2450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2451 *) ac_try_echo=$ac_try;;
2453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2454 (eval "$ac_compile") 2>conftest.er1
2456 grep -v '^ *+' conftest.er1 >conftest.err
2458 cat conftest.err >&5
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); } &&
2461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2462 { (case "(($ac_try" in
2463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2464 *) ac_try_echo=$ac_try;;
2466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2467 (eval "$ac_try") 2>&5
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }; } &&
2471 { ac_try='test -s conftest.$ac_objext'
2472 { (case "(($ac_try" in
2473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2474 *) ac_try_echo=$ac_try;;
2476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2477 (eval "$ac_try") 2>&5
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); }; }; then
2483 echo "$as_me: failed program was:" >&5
2484 sed 's/^/| /' conftest.$ac_ext >&5
2487 cat >conftest.$ac_ext <<_ACEOF
2490 cat confdefs.h >>conftest.$ac_ext
2491 cat >>conftest.$ac_ext <<_ACEOF
2492 /* end confdefs.h. */
2502 rm -f conftest.$ac_objext
2503 if { (ac_try="$ac_compile"
2505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2506 *) ac_try_echo=$ac_try;;
2508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2509 (eval "$ac_compile") 2>conftest.er1
2511 grep -v '^ *+' conftest.er1 >conftest.err
2513 cat conftest.err >&5
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); } &&
2516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2517 { (case "(($ac_try" in
2518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2519 *) ac_try_echo=$ac_try;;
2521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2522 (eval "$ac_try") 2>&5
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); }; } &&
2526 { ac_try='test -s conftest.$ac_objext'
2527 { (case "(($ac_try" in
2528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2529 *) ac_try_echo=$ac_try;;
2531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2532 (eval "$ac_try") 2>&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; }; then
2538 echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2541 ac_c_werror_flag=$ac_save_c_werror_flag
2543 cat >conftest.$ac_ext <<_ACEOF
2546 cat confdefs.h >>conftest.$ac_ext
2547 cat >>conftest.$ac_ext <<_ACEOF
2548 /* end confdefs.h. */
2558 rm -f conftest.$ac_objext
2559 if { (ac_try="$ac_compile"
2561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562 *) ac_try_echo=$ac_try;;
2564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2565 (eval "$ac_compile") 2>conftest.er1
2567 grep -v '^ *+' conftest.er1 >conftest.err
2569 cat conftest.err >&5
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); } &&
2572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2573 { (case "(($ac_try" in
2574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2575 *) ac_try_echo=$ac_try;;
2577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2578 (eval "$ac_try") 2>&5
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); }; } &&
2582 { ac_try='test -s conftest.$ac_objext'
2583 { (case "(($ac_try" in
2584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2585 *) ac_try_echo=$ac_try;;
2587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2588 (eval "$ac_try") 2>&5
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }; }; then
2594 echo "$as_me: failed program was:" >&5
2595 sed 's/^/| /' conftest.$ac_ext >&5
2600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2607 ac_c_werror_flag=$ac_save_c_werror_flag
2609 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2610 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2611 if test "$ac_test_CFLAGS" = set; then
2612 CFLAGS=$ac_save_CFLAGS
2613 elif test $ac_cv_prog_cc_g = yes; then
2614 if test "$GCC" = yes; then
2620 if test "$GCC" = yes; then
2626 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2627 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2628 if test "${ac_cv_prog_cc_c89+set}" = set; then
2629 echo $ECHO_N "(cached) $ECHO_C" >&6
2631 ac_cv_prog_cc_c89=no
2633 cat >conftest.$ac_ext <<_ACEOF
2636 cat confdefs.h >>conftest.$ac_ext
2637 cat >>conftest.$ac_ext <<_ACEOF
2638 /* end confdefs.h. */
2641 #include <sys/types.h>
2642 #include <sys/stat.h>
2643 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2644 struct buf { int x; };
2645 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2646 static char *e (p, i)
2652 static char *f (char * (*g) (char **, int), char **p, ...)
2657 s = g (p, va_arg (v,int));
2662 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2663 function prototypes and stuff, but not '\xHH' hex character constants.
2664 These don't provoke an error unfortunately, instead are silently treated
2665 as 'x'. The following induces an error, until -std is added to get
2666 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2667 array size at least. It's necessary to write '\x00'==0 to get something
2668 that's true only with -std. */
2669 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2671 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2672 inside strings and character constants. */
2674 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2676 int test (int i, double x);
2677 struct s1 {int (*f) (int a);};
2678 struct s2 {int (*f) (double a);};
2679 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2685 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2690 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2691 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2693 CC="$ac_save_CC $ac_arg"
2694 rm -f conftest.$ac_objext
2695 if { (ac_try="$ac_compile"
2697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698 *) ac_try_echo=$ac_try;;
2700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2701 (eval "$ac_compile") 2>conftest.er1
2703 grep -v '^ *+' conftest.er1 >conftest.err
2705 cat conftest.err >&5
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); } &&
2708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2709 { (case "(($ac_try" in
2710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711 *) ac_try_echo=$ac_try;;
2713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2714 (eval "$ac_try") 2>&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); }; } &&
2718 { ac_try='test -s conftest.$ac_objext'
2719 { (case "(($ac_try" in
2720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721 *) ac_try_echo=$ac_try;;
2723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2724 (eval "$ac_try") 2>&5
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; }; then
2728 ac_cv_prog_cc_c89=$ac_arg
2730 echo "$as_me: failed program was:" >&5
2731 sed 's/^/| /' conftest.$ac_ext >&5
2736 rm -f core conftest.err conftest.$ac_objext
2737 test "x$ac_cv_prog_cc_c89" != "xno" && break
2739 rm -f conftest.$ac_ext
2744 case "x$ac_cv_prog_cc_c89" in
2746 { echo "$as_me:$LINENO: result: none needed" >&5
2747 echo "${ECHO_T}none needed" >&6; } ;;
2749 { echo "$as_me:$LINENO: result: unsupported" >&5
2750 echo "${ECHO_T}unsupported" >&6; } ;;
2752 CC="$CC $ac_cv_prog_cc_c89"
2753 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2754 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2759 ac_cpp='$CPP $CPPFLAGS'
2760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2765 ac_cpp='$CXXCPP $CPPFLAGS'
2766 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2767 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2768 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2769 if test -z "$CXX"; then
2770 if test -n "$CCC"; then
2773 if test -n "$ac_tool_prefix"; then
2774 for ac_prog in clang++ llvm-g++ g++
2776 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2777 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2780 if test "${ac_cv_prog_CXX+set}" = set; then
2781 echo $ECHO_N "(cached) $ECHO_C" >&6
2783 if test -n "$CXX"; then
2784 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790 test -z "$as_dir" && as_dir=.
2791 for ac_exec_ext in '' $ac_executable_extensions; do
2792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2793 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2804 if test -n "$CXX"; then
2805 { echo "$as_me:$LINENO: result: $CXX" >&5
2806 echo "${ECHO_T}$CXX" >&6; }
2808 { echo "$as_me:$LINENO: result: no" >&5
2809 echo "${ECHO_T}no" >&6; }
2813 test -n "$CXX" && break
2816 if test -z "$CXX"; then
2818 for ac_prog in clang++ llvm-g++ g++
2820 # Extract the first word of "$ac_prog", so it can be a program name with args.
2821 set dummy $ac_prog; ac_word=$2
2822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2824 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2825 echo $ECHO_N "(cached) $ECHO_C" >&6
2827 if test -n "$ac_ct_CXX"; then
2828 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2834 test -z "$as_dir" && as_dir=.
2835 for ac_exec_ext in '' $ac_executable_extensions; do
2836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2837 ac_cv_prog_ac_ct_CXX="$ac_prog"
2838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2847 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2848 if test -n "$ac_ct_CXX"; then
2849 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2850 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2852 { echo "$as_me:$LINENO: result: no" >&5
2853 echo "${ECHO_T}no" >&6; }
2857 test -n "$ac_ct_CXX" && break
2860 if test "x$ac_ct_CXX" = x; then
2863 case $cross_compiling:$ac_tool_warned in
2865 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2866 whose name does not start with the host triplet. If you think this
2867 configuration is useful to you, please write to autoconf@gnu.org." >&5
2868 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2869 whose name does not start with the host triplet. If you think this
2870 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2871 ac_tool_warned=yes ;;
2879 # Provide some information about the compiler.
2880 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2881 ac_compiler=`set X $ac_compile; echo $2`
2882 { (ac_try="$ac_compiler --version >&5"
2884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885 *) ac_try_echo=$ac_try;;
2887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888 (eval "$ac_compiler --version >&5") 2>&5
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }
2892 { (ac_try="$ac_compiler -v >&5"
2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895 *) ac_try_echo=$ac_try;;
2897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2898 (eval "$ac_compiler -v >&5") 2>&5
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }
2902 { (ac_try="$ac_compiler -V >&5"
2904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905 *) ac_try_echo=$ac_try;;
2907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2908 (eval "$ac_compiler -V >&5") 2>&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }
2913 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2914 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2915 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2916 echo $ECHO_N "(cached) $ECHO_C" >&6
2918 cat >conftest.$ac_ext <<_ACEOF
2921 cat confdefs.h >>conftest.$ac_ext
2922 cat >>conftest.$ac_ext <<_ACEOF
2923 /* end confdefs.h. */
2936 rm -f conftest.$ac_objext
2937 if { (ac_try="$ac_compile"
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943 (eval "$ac_compile") 2>conftest.er1
2945 grep -v '^ *+' conftest.er1 >conftest.err
2947 cat conftest.err >&5
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); } &&
2950 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2951 { (case "(($ac_try" in
2952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953 *) ac_try_echo=$ac_try;;
2955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2956 (eval "$ac_try") 2>&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); }; } &&
2960 { ac_try='test -s conftest.$ac_objext'
2961 { (case "(($ac_try" in
2962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963 *) ac_try_echo=$ac_try;;
2965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2966 (eval "$ac_try") 2>&5
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); }; }; then
2972 echo "$as_me: failed program was:" >&5
2973 sed 's/^/| /' conftest.$ac_ext >&5
2978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2979 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2982 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2983 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2984 GXX=`test $ac_compiler_gnu = yes && echo yes`
2985 ac_test_CXXFLAGS=${CXXFLAGS+set}
2986 ac_save_CXXFLAGS=$CXXFLAGS
2987 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2988 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2989 if test "${ac_cv_prog_cxx_g+set}" = set; then
2990 echo $ECHO_N "(cached) $ECHO_C" >&6
2992 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2993 ac_cxx_werror_flag=yes
2996 cat >conftest.$ac_ext <<_ACEOF
2999 cat confdefs.h >>conftest.$ac_ext
3000 cat >>conftest.$ac_ext <<_ACEOF
3001 /* end confdefs.h. */
3011 rm -f conftest.$ac_objext
3012 if { (ac_try="$ac_compile"
3014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015 *) ac_try_echo=$ac_try;;
3017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3018 (eval "$ac_compile") 2>conftest.er1
3020 grep -v '^ *+' conftest.er1 >conftest.err
3022 cat conftest.err >&5
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); } &&
3025 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3026 { (case "(($ac_try" in
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031 (eval "$ac_try") 2>&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); }; } &&
3035 { ac_try='test -s conftest.$ac_objext'
3036 { (case "(($ac_try" in
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041 (eval "$ac_try") 2>&5
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; }; then
3045 ac_cv_prog_cxx_g=yes
3047 echo "$as_me: failed program was:" >&5
3048 sed 's/^/| /' conftest.$ac_ext >&5
3051 cat >conftest.$ac_ext <<_ACEOF
3054 cat confdefs.h >>conftest.$ac_ext
3055 cat >>conftest.$ac_ext <<_ACEOF
3056 /* end confdefs.h. */
3066 rm -f conftest.$ac_objext
3067 if { (ac_try="$ac_compile"
3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070 *) ac_try_echo=$ac_try;;
3072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3073 (eval "$ac_compile") 2>conftest.er1
3075 grep -v '^ *+' conftest.er1 >conftest.err
3077 cat conftest.err >&5
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); } &&
3080 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3081 { (case "(($ac_try" in
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086 (eval "$ac_try") 2>&5
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); }; } &&
3090 { ac_try='test -s conftest.$ac_objext'
3091 { (case "(($ac_try" in
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096 (eval "$ac_try") 2>&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); }; }; then
3102 echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3105 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3107 cat >conftest.$ac_ext <<_ACEOF
3110 cat confdefs.h >>conftest.$ac_ext
3111 cat >>conftest.$ac_ext <<_ACEOF
3112 /* end confdefs.h. */
3122 rm -f conftest.$ac_objext
3123 if { (ac_try="$ac_compile"
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129 (eval "$ac_compile") 2>conftest.er1
3131 grep -v '^ *+' conftest.er1 >conftest.err
3133 cat conftest.err >&5
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); } &&
3136 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3137 { (case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142 (eval "$ac_try") 2>&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); }; } &&
3146 { ac_try='test -s conftest.$ac_objext'
3147 { (case "(($ac_try" in
3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149 *) ac_try_echo=$ac_try;;
3151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3152 (eval "$ac_try") 2>&5
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); }; }; then
3156 ac_cv_prog_cxx_g=yes
3158 echo "$as_me: failed program was:" >&5
3159 sed 's/^/| /' conftest.$ac_ext >&5
3164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3171 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3173 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3174 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3175 if test "$ac_test_CXXFLAGS" = set; then
3176 CXXFLAGS=$ac_save_CXXFLAGS
3177 elif test $ac_cv_prog_cxx_g = yes; then
3178 if test "$GXX" = yes; then
3184 if test "$GXX" = yes; then
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
3197 ac_cpp='$CPP $CPPFLAGS'
3198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3201 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3202 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3203 # On Suns, sometimes $CPP names a directory.
3204 if test -n "$CPP" && test -d "$CPP"; then
3207 if test -z "$CPP"; then
3208 if test "${ac_cv_prog_CPP+set}" = set; then
3209 echo $ECHO_N "(cached) $ECHO_C" >&6
3211 # Double quotes because CPP needs to be expanded
3212 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3215 for ac_c_preproc_warn_flag in '' yes
3217 # Use a header file that comes with gcc, so configuring glibc
3218 # with a fresh cross-compiler works.
3219 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3220 # <limits.h> exists even on freestanding compilers.
3221 # On the NeXT, cc -E runs the code through the compiler's parser,
3222 # not just through cpp. "Syntax error" is here to catch this case.
3223 cat >conftest.$ac_ext <<_ACEOF
3226 cat confdefs.h >>conftest.$ac_ext
3227 cat >>conftest.$ac_ext <<_ACEOF
3228 /* end confdefs.h. */
3230 # include <limits.h>
3232 # include <assert.h>
3236 if { (ac_try="$ac_cpp conftest.$ac_ext"
3238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239 *) ac_try_echo=$ac_try;;
3241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3242 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3244 grep -v '^ *+' conftest.er1 >conftest.err
3246 cat conftest.err >&5
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); } >/dev/null; then
3249 if test -s conftest.err; then
3250 ac_cpp_err=$ac_c_preproc_warn_flag
3251 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3258 if test -z "$ac_cpp_err"; then
3261 echo "$as_me: failed program was:" >&5
3262 sed 's/^/| /' conftest.$ac_ext >&5
3264 # Broken: fails on valid input.
3268 rm -f conftest.err conftest.$ac_ext
3270 # OK, works on sane cases. Now check whether nonexistent headers
3271 # can be detected and how.
3272 cat >conftest.$ac_ext <<_ACEOF
3275 cat confdefs.h >>conftest.$ac_ext
3276 cat >>conftest.$ac_ext <<_ACEOF
3277 /* end confdefs.h. */
3278 #include <ac_nonexistent.h>
3280 if { (ac_try="$ac_cpp conftest.$ac_ext"
3282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283 *) ac_try_echo=$ac_try;;
3285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3286 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3288 grep -v '^ *+' conftest.er1 >conftest.err
3290 cat conftest.err >&5
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); } >/dev/null; then
3293 if test -s conftest.err; then
3294 ac_cpp_err=$ac_c_preproc_warn_flag
3295 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3302 if test -z "$ac_cpp_err"; then
3303 # Broken: success on invalid input.
3306 echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3309 # Passes both tests.
3314 rm -f conftest.err conftest.$ac_ext
3317 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3318 rm -f conftest.err conftest.$ac_ext
3319 if $ac_preproc_ok; then
3331 { echo "$as_me:$LINENO: result: $CPP" >&5
3332 echo "${ECHO_T}$CPP" >&6; }
3334 for ac_c_preproc_warn_flag in '' yes
3336 # Use a header file that comes with gcc, so configuring glibc
3337 # with a fresh cross-compiler works.
3338 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3339 # <limits.h> exists even on freestanding compilers.
3340 # On the NeXT, cc -E runs the code through the compiler's parser,
3341 # not just through cpp. "Syntax error" is here to catch this case.
3342 cat >conftest.$ac_ext <<_ACEOF
3345 cat confdefs.h >>conftest.$ac_ext
3346 cat >>conftest.$ac_ext <<_ACEOF
3347 /* end confdefs.h. */
3349 # include <limits.h>
3351 # include <assert.h>
3355 if { (ac_try="$ac_cpp conftest.$ac_ext"
3357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358 *) ac_try_echo=$ac_try;;
3360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3361 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3363 grep -v '^ *+' conftest.er1 >conftest.err
3365 cat conftest.err >&5
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); } >/dev/null; then
3368 if test -s conftest.err; then
3369 ac_cpp_err=$ac_c_preproc_warn_flag
3370 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3377 if test -z "$ac_cpp_err"; then
3380 echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3383 # Broken: fails on valid input.
3387 rm -f conftest.err conftest.$ac_ext
3389 # OK, works on sane cases. Now check whether nonexistent headers
3390 # can be detected and how.
3391 cat >conftest.$ac_ext <<_ACEOF
3394 cat confdefs.h >>conftest.$ac_ext
3395 cat >>conftest.$ac_ext <<_ACEOF
3396 /* end confdefs.h. */
3397 #include <ac_nonexistent.h>
3399 if { (ac_try="$ac_cpp conftest.$ac_ext"
3401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402 *) ac_try_echo=$ac_try;;
3404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3407 grep -v '^ *+' conftest.er1 >conftest.err
3409 cat conftest.err >&5
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); } >/dev/null; then
3412 if test -s conftest.err; then
3413 ac_cpp_err=$ac_c_preproc_warn_flag
3414 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3421 if test -z "$ac_cpp_err"; then
3422 # Broken: success on invalid input.
3425 echo "$as_me: failed program was:" >&5
3426 sed 's/^/| /' conftest.$ac_ext >&5
3428 # Passes both tests.
3433 rm -f conftest.err conftest.$ac_ext
3436 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3437 rm -f conftest.err conftest.$ac_ext
3438 if $ac_preproc_ok; then
3441 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3442 See \`config.log' for more details." >&5
3443 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3444 See \`config.log' for more details." >&2;}
3445 { (exit 1); exit 1; }; }
3449 ac_cpp='$CPP $CPPFLAGS'
3450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3457 if test -d ${srcdir}/projects/llvm-gcc ; then
3458 subdirs="$subdirs projects/llvm-gcc"
3462 if test -d ${srcdir}/projects/test-suite ; then
3463 subdirs="$subdirs projects/test-suite"
3467 if test -d ${srcdir}/projects/llvm-test ; then
3468 subdirs="$subdirs projects/llvm-test"
3472 if test -d ${srcdir}/projects/poolalloc ; then
3473 subdirs="$subdirs projects/poolalloc"
3477 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3478 subdirs="$subdirs projects/llvm-poolalloc"
3482 for i in `ls ${srcdir}/projects`
3484 if test -d ${srcdir}/projects/${i} ; then
3486 sample) subdirs="$subdirs projects/sample"
3488 privbracket) subdirs="$subdirs projects/privbracket"
3490 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3492 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3494 llvm-java) subdirs="$subdirs projects/llvm-java"
3496 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3498 safecode) subdirs="$subdirs projects/safecode"
3500 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3509 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3510 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3516 # Check whether --enable-polly was given.
3517 if test "${enable_polly+set}" = set; then
3518 enableval=$enable_polly;
3523 case "$enableval" in
3528 default) ENABLE_POLLY=1
3530 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3531 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3532 { (exit 1); exit 1; }; } ;;
3536 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3539 subdirs="$subdirs tools/polly"
3544 # Make sure we can run config.sub.
3545 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3546 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3547 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3548 { (exit 1); exit 1; }; }
3550 { echo "$as_me:$LINENO: checking build system type" >&5
3551 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3552 if test "${ac_cv_build+set}" = set; then
3553 echo $ECHO_N "(cached) $ECHO_C" >&6
3555 ac_build_alias=$build_alias
3556 test "x$ac_build_alias" = x &&
3557 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3558 test "x$ac_build_alias" = x &&
3559 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3560 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3561 { (exit 1); exit 1; }; }
3562 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3563 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3564 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3565 { (exit 1); exit 1; }; }
3568 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3569 echo "${ECHO_T}$ac_cv_build" >&6; }
3570 case $ac_cv_build in
3572 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3573 echo "$as_me: error: invalid value of canonical build" >&2;}
3574 { (exit 1); exit 1; }; };;
3577 ac_save_IFS=$IFS; IFS='-'
3583 # Remember, the first character of IFS is used to create $*,
3584 # except with old shells:
3587 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3590 { echo "$as_me:$LINENO: checking host system type" >&5
3591 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3592 if test "${ac_cv_host+set}" = set; then
3593 echo $ECHO_N "(cached) $ECHO_C" >&6
3595 if test "x$host_alias" = x; then
3596 ac_cv_host=$ac_cv_build
3598 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3599 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3600 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3601 { (exit 1); exit 1; }; }
3605 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3606 echo "${ECHO_T}$ac_cv_host" >&6; }
3609 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3610 echo "$as_me: error: invalid value of canonical host" >&2;}
3611 { (exit 1); exit 1; }; };;
3614 ac_save_IFS=$IFS; IFS='-'
3620 # Remember, the first character of IFS is used to create $*,
3621 # except with old shells:
3624 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3627 { echo "$as_me:$LINENO: checking target system type" >&5
3628 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3629 if test "${ac_cv_target+set}" = set; then
3630 echo $ECHO_N "(cached) $ECHO_C" >&6
3632 if test "x$target_alias" = x; then
3633 ac_cv_target=$ac_cv_host
3635 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3636 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3637 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3638 { (exit 1); exit 1; }; }
3642 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3643 echo "${ECHO_T}$ac_cv_target" >&6; }
3644 case $ac_cv_target in
3646 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3647 echo "$as_me: error: invalid value of canonical target" >&2;}
3648 { (exit 1); exit 1; }; };;
3650 target=$ac_cv_target
3651 ac_save_IFS=$IFS; IFS='-'
3657 # Remember, the first character of IFS is used to create $*,
3658 # except with old shells:
3661 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3664 # The aliases save the names the user supplied, while $host etc.
3665 # will get canonicalized.
3666 test -n "$target_alias" &&
3667 test "$program_prefix$program_suffix$program_transform_name" = \
3669 program_prefix=${target_alias}-
3671 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3672 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3673 if test "${llvm_cv_os_type+set}" = set; then
3674 echo $ECHO_N "(cached) $ECHO_C" >&6
3678 llvm_cv_link_all_option="-Wl,--whole-archive"
3679 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3680 llvm_cv_os_type="AIX"
3681 llvm_cv_platform_type="Unix" ;;
3683 llvm_cv_link_all_option="-Wl,--whole-archive"
3684 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3685 llvm_cv_os_type="IRIX"
3686 llvm_cv_platform_type="Unix" ;;
3688 llvm_cv_link_all_option="-Wl,--whole-archive"
3689 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3690 llvm_cv_os_type="Cygwin"
3691 llvm_cv_platform_type="Unix" ;;
3693 llvm_cv_link_all_option="-Wl,-all_load"
3694 llvm_cv_no_link_all_option="-Wl,-noall_load"
3695 llvm_cv_os_type="Darwin"
3696 llvm_cv_platform_type="Unix" ;;
3698 llvm_cv_link_all_option="-Wl,-all_load"
3699 llvm_cv_no_link_all_option="-Wl,-noall_load"
3700 llvm_cv_os_type="Minix"
3701 llvm_cv_platform_type="Unix" ;;
3702 *-*-freebsd* | *-*-kfreebsd-gnu)
3703 llvm_cv_link_all_option="-Wl,--whole-archive"
3704 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3705 llvm_cv_os_type="FreeBSD"
3706 llvm_cv_platform_type="Unix" ;;
3708 llvm_cv_link_all_option="-Wl,--whole-archive"
3709 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3710 llvm_cv_os_type="OpenBSD"
3711 llvm_cv_platform_type="Unix" ;;
3713 llvm_cv_link_all_option="-Wl,--whole-archive"
3714 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3715 llvm_cv_os_type="NetBSD"
3716 llvm_cv_platform_type="Unix" ;;
3718 llvm_cv_link_all_option="-Wl,--whole-archive"
3719 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3720 llvm_cv_os_type="DragonFly"
3721 llvm_cv_platform_type="Unix" ;;
3723 llvm_cv_link_all_option="-Wl,--whole-archive"
3724 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3725 llvm_cv_os_type="HP-UX"
3726 llvm_cv_platform_type="Unix" ;;
3728 llvm_cv_link_all_option="-Wl,--whole-archive"
3729 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3730 llvm_cv_os_type="Interix"
3731 llvm_cv_platform_type="Unix" ;;
3733 llvm_cv_link_all_option="-Wl,--whole-archive"
3734 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3735 llvm_cv_os_type="Linux"
3736 llvm_cv_platform_type="Unix" ;;
3738 llvm_cv_link_all_option="-Wl,--whole-archive"
3739 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3740 llvm_cv_os_type="GNU"
3741 llvm_cv_platform_type="Unix" ;;
3743 llvm_cv_link_all_option="-Wl,-z,allextract"
3744 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3745 llvm_cv_os_type="SunOS"
3746 llvm_cv_platform_type="Unix" ;;
3748 llvm_cv_link_all_option="-Wl,-z,allextract"
3749 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3750 llvm_cv_os_type="AuroraUX"
3751 llvm_cv_platform_type="Unix" ;;
3753 llvm_cv_link_all_option="-Wl,--whole-archive"
3754 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3755 llvm_cv_os_type="Win32"
3756 llvm_cv_platform_type="Win32" ;;
3758 llvm_cv_link_all_option="-Wl,--whole-archive"
3759 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3760 llvm_cv_os_type="MingW"
3761 llvm_cv_platform_type="Win32" ;;
3763 llvm_cv_link_all_option="-Wl,--whole-archive"
3764 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3765 llvm_cv_os_type="Haiku"
3766 llvm_cv_platform_type="Unix" ;;
3768 llvm_cv_link_all_option="-Wl,--whole-archive"
3769 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3770 llvm_cv_os_type="Freestanding"
3771 llvm_cv_platform_type="Unix" ;;
3773 llvm_cv_link_all_option="-Wl,--whole-archive"
3774 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3775 llvm_cv_os_type="Freestanding"
3776 llvm_cv_platform_type="Unix" ;;
3778 llvm_cv_link_all_option=""
3779 llvm_cv_no_link_all_option=""
3780 llvm_cv_os_type="Unknown"
3781 llvm_cv_platform_type="Unknown" ;;
3784 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3785 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3787 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3788 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3789 if test "${llvm_cv_target_os_type+set}" = set; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
3794 llvm_cv_target_os_type="AIX" ;;
3796 llvm_cv_target_os_type="IRIX" ;;
3798 llvm_cv_target_os_type="Cygwin" ;;
3800 llvm_cv_target_os_type="Darwin" ;;
3802 llvm_cv_target_os_type="Minix" ;;
3804 llvm_cv_target_os_type="FreeBSD" ;;
3806 llvm_cv_target_os_type="OpenBSD" ;;
3808 llvm_cv_target_os_type="NetBSD" ;;
3810 llvm_cv_target_os_type="DragonFly" ;;
3812 llvm_cv_target_os_type="HP-UX" ;;
3814 llvm_cv_target_os_type="Interix" ;;
3816 llvm_cv_target_os_type="Linux" ;;
3818 llvm_cv_target_os_type="SunOS" ;;
3820 llvm_cv_target_os_type="AuroraUX" ;;
3822 llvm_cv_target_os_type="Win32" ;;
3824 llvm_cv_target_os_type="MingW" ;;
3826 llvm_cv_target_os_type="Haiku" ;;
3828 llvm_cv_target_os_type="RTEMS" ;;
3830 llvm_cv_target_os_type="NativeClient" ;;
3832 llvm_cv_target_os_type="Freestanding" ;;
3834 llvm_cv_target_os_type="Unknown" ;;
3837 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3838 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3840 if test "$llvm_cv_os_type" = "Unknown" ; then
3841 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3842 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3843 { (exit 1); exit 1; }; }
3848 HOST_OS=$llvm_cv_os_type
3850 TARGET_OS=$llvm_cv_target_os_type
3853 LINKALL=$llvm_cv_link_all_option
3855 NOLINKALL=$llvm_cv_no_link_all_option
3858 case $llvm_cv_platform_type in
3861 cat >>confdefs.h <<\_ACEOF
3862 #define LLVM_ON_UNIX 1
3872 cat >>confdefs.h <<\_ACEOF
3873 #define LLVM_ON_WIN32 1
3883 { echo "$as_me:$LINENO: checking target architecture" >&5
3884 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3885 if test "${llvm_cv_target_arch+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3889 i?86-*) llvm_cv_target_arch="x86" ;;
3890 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3891 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3892 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3893 arm*-*) llvm_cv_target_arch="ARM" ;;
3894 mips-*) llvm_cv_target_arch="Mips" ;;
3895 mipsel-*) llvm_cv_target_arch="Mips" ;;
3896 xcore-*) llvm_cv_target_arch="XCore" ;;
3897 msp430-*) llvm_cv_target_arch="MSP430" ;;
3898 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
3899 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3900 ptx-*) llvm_cv_target_arch="PTX" ;;
3901 *) llvm_cv_target_arch="Unknown" ;;
3904 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3905 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3907 if test "$llvm_cv_target_arch" = "Unknown" ; then
3908 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3909 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3912 case "$llvm_cv_target_arch" in
3913 x86) LLVM_NATIVE_ARCH="X86" ;;
3914 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3915 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3918 ARCH=$llvm_cv_target_arch
3923 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3924 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3925 if test "${ac_cv_path_GREP+set}" = set; then
3926 echo $ECHO_N "(cached) $ECHO_C" >&6
3928 # Extract the first word of "grep ggrep" to use in msg output
3929 if test -z "$GREP"; then
3930 set dummy grep ggrep; ac_prog_name=$2
3931 if test "${ac_cv_path_GREP+set}" = set; then
3932 echo $ECHO_N "(cached) $ECHO_C" >&6
3934 ac_path_GREP_found=false
3935 # Loop through the user's path and test for each of PROGNAME-LIST
3936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3937 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3940 test -z "$as_dir" && as_dir=.
3941 for ac_prog in grep ggrep; do
3942 for ac_exec_ext in '' $ac_executable_extensions; do
3943 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3944 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3945 # Check for GNU ac_path_GREP and select it if it is found.
3946 # Check for GNU $ac_path_GREP
3947 case `"$ac_path_GREP" --version 2>&1` in
3949 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3952 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3955 cat "conftest.in" "conftest.in" >"conftest.tmp"
3956 mv "conftest.tmp" "conftest.in"
3957 cp "conftest.in" "conftest.nl"
3958 echo 'GREP' >> "conftest.nl"
3959 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3960 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3961 ac_count=`expr $ac_count + 1`
3962 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3963 # Best one so far, save it but keep looking for a better one
3964 ac_cv_path_GREP="$ac_path_GREP"
3965 ac_path_GREP_max=$ac_count
3967 # 10*(2^10) chars as input seems more than enough
3968 test $ac_count -gt 10 && break
3970 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3974 $ac_path_GREP_found && break 3
3984 GREP="$ac_cv_path_GREP"
3985 if test -z "$GREP"; then
3986 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3987 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3988 { (exit 1); exit 1; }; }
3992 ac_cv_path_GREP=$GREP
3997 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3998 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3999 GREP="$ac_cv_path_GREP"
4002 { echo "$as_me:$LINENO: checking for egrep" >&5
4003 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4004 if test "${ac_cv_path_EGREP+set}" = set; then
4005 echo $ECHO_N "(cached) $ECHO_C" >&6
4007 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4008 then ac_cv_path_EGREP="$GREP -E"
4010 # Extract the first word of "egrep" to use in msg output
4011 if test -z "$EGREP"; then
4012 set dummy egrep; ac_prog_name=$2
4013 if test "${ac_cv_path_EGREP+set}" = set; then
4014 echo $ECHO_N "(cached) $ECHO_C" >&6
4016 ac_path_EGREP_found=false
4017 # Loop through the user's path and test for each of PROGNAME-LIST
4018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4022 test -z "$as_dir" && as_dir=.
4023 for ac_prog in egrep; do
4024 for ac_exec_ext in '' $ac_executable_extensions; do
4025 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4026 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4027 # Check for GNU ac_path_EGREP and select it if it is found.
4028 # Check for GNU $ac_path_EGREP
4029 case `"$ac_path_EGREP" --version 2>&1` in
4031 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4034 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4037 cat "conftest.in" "conftest.in" >"conftest.tmp"
4038 mv "conftest.tmp" "conftest.in"
4039 cp "conftest.in" "conftest.nl"
4040 echo 'EGREP' >> "conftest.nl"
4041 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4042 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4043 ac_count=`expr $ac_count + 1`
4044 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4045 # Best one so far, save it but keep looking for a better one
4046 ac_cv_path_EGREP="$ac_path_EGREP"
4047 ac_path_EGREP_max=$ac_count
4049 # 10*(2^10) chars as input seems more than enough
4050 test $ac_count -gt 10 && break
4052 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4056 $ac_path_EGREP_found && break 3
4066 EGREP="$ac_cv_path_EGREP"
4067 if test -z "$EGREP"; then
4068 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4069 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4070 { (exit 1); exit 1; }; }
4074 ac_cv_path_EGREP=$EGREP
4080 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4081 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4082 EGREP="$ac_cv_path_EGREP"
4085 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4086 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4087 if test "${ac_cv_header_stdc+set}" = set; then
4088 echo $ECHO_N "(cached) $ECHO_C" >&6
4090 cat >conftest.$ac_ext <<_ACEOF
4093 cat confdefs.h >>conftest.$ac_ext
4094 cat >>conftest.$ac_ext <<_ACEOF
4095 /* end confdefs.h. */
4109 rm -f conftest.$ac_objext
4110 if { (ac_try="$ac_compile"
4112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113 *) ac_try_echo=$ac_try;;
4115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4116 (eval "$ac_compile") 2>conftest.er1
4118 grep -v '^ *+' conftest.er1 >conftest.err
4120 cat conftest.err >&5
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); } &&
4123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4124 { (case "(($ac_try" in
4125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4126 *) ac_try_echo=$ac_try;;
4128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4129 (eval "$ac_try") 2>&5
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); }; } &&
4133 { ac_try='test -s conftest.$ac_objext'
4134 { (case "(($ac_try" in
4135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136 *) ac_try_echo=$ac_try;;
4138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4139 (eval "$ac_try") 2>&5
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); }; }; then
4143 ac_cv_header_stdc=yes
4145 echo "$as_me: failed program was:" >&5
4146 sed 's/^/| /' conftest.$ac_ext >&5
4148 ac_cv_header_stdc=no
4151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4153 if test $ac_cv_header_stdc = yes; then
4154 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4155 cat >conftest.$ac_ext <<_ACEOF
4158 cat confdefs.h >>conftest.$ac_ext
4159 cat >>conftest.$ac_ext <<_ACEOF
4160 /* end confdefs.h. */
4164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4165 $EGREP "memchr" >/dev/null 2>&1; then
4168 ac_cv_header_stdc=no
4174 if test $ac_cv_header_stdc = yes; then
4175 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4176 cat >conftest.$ac_ext <<_ACEOF
4179 cat confdefs.h >>conftest.$ac_ext
4180 cat >>conftest.$ac_ext <<_ACEOF
4181 /* end confdefs.h. */
4185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4186 $EGREP "free" >/dev/null 2>&1; then
4189 ac_cv_header_stdc=no
4195 if test $ac_cv_header_stdc = yes; then
4196 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4197 if test "$cross_compiling" = yes; then
4200 cat >conftest.$ac_ext <<_ACEOF
4203 cat confdefs.h >>conftest.$ac_ext
4204 cat >>conftest.$ac_ext <<_ACEOF
4205 /* end confdefs.h. */
4208 #if ((' ' & 0x0FF) == 0x020)
4209 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4210 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4212 # define ISLOWER(c) \
4213 (('a' <= (c) && (c) <= 'i') \
4214 || ('j' <= (c) && (c) <= 'r') \
4215 || ('s' <= (c) && (c) <= 'z'))
4216 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4219 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4224 for (i = 0; i < 256; i++)
4225 if (XOR (islower (i), ISLOWER (i))
4226 || toupper (i) != TOUPPER (i))
4231 rm -f conftest$ac_exeext
4232 if { (ac_try="$ac_link"
4234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4235 *) ac_try_echo=$ac_try;;
4237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4238 (eval "$ac_link") 2>&5
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4242 { (case "(($ac_try" in
4243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4244 *) ac_try_echo=$ac_try;;
4246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4247 (eval "$ac_try") 2>&5
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); }; }; then
4253 echo "$as_me: program exited with status $ac_status" >&5
4254 echo "$as_me: failed program was:" >&5
4255 sed 's/^/| /' conftest.$ac_ext >&5
4258 ac_cv_header_stdc=no
4260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4266 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4267 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4268 if test $ac_cv_header_stdc = yes; then
4270 cat >>confdefs.h <<\_ACEOF
4271 #define STDC_HEADERS 1
4276 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4286 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4287 inttypes.h stdint.h unistd.h
4289 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4290 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4293 echo $ECHO_N "(cached) $ECHO_C" >&6
4295 cat >conftest.$ac_ext <<_ACEOF
4298 cat confdefs.h >>conftest.$ac_ext
4299 cat >>conftest.$ac_ext <<_ACEOF
4300 /* end confdefs.h. */
4301 $ac_includes_default
4303 #include <$ac_header>
4305 rm -f conftest.$ac_objext
4306 if { (ac_try="$ac_compile"
4308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309 *) ac_try_echo=$ac_try;;
4311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4312 (eval "$ac_compile") 2>conftest.er1
4314 grep -v '^ *+' conftest.er1 >conftest.err
4316 cat conftest.err >&5
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); } &&
4319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4320 { (case "(($ac_try" in
4321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322 *) ac_try_echo=$ac_try;;
4324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4325 (eval "$ac_try") 2>&5
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); }; } &&
4329 { ac_try='test -s conftest.$ac_objext'
4330 { (case "(($ac_try" in
4331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4332 *) ac_try_echo=$ac_try;;
4334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4335 (eval "$ac_try") 2>&5
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); }; }; then
4339 eval "$as_ac_Header=yes"
4341 echo "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.$ac_ext >&5
4344 eval "$as_ac_Header=no"
4347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4349 ac_res=`eval echo '${'$as_ac_Header'}'`
4350 { echo "$as_me:$LINENO: result: $ac_res" >&5
4351 echo "${ECHO_T}$ac_res" >&6; }
4352 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4353 cat >>confdefs.h <<_ACEOF
4354 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4362 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4363 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4364 if test "${ac_cv_c_bigendian+set}" = set; then
4365 echo $ECHO_N "(cached) $ECHO_C" >&6
4367 # See if sys/param.h defines the BYTE_ORDER macro.
4368 cat >conftest.$ac_ext <<_ACEOF
4371 cat confdefs.h >>conftest.$ac_ext
4372 cat >>conftest.$ac_ext <<_ACEOF
4373 /* end confdefs.h. */
4374 #include <sys/types.h>
4375 #include <sys/param.h>
4380 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4388 rm -f conftest.$ac_objext
4389 if { (ac_try="$ac_compile"
4391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4392 *) ac_try_echo=$ac_try;;
4394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4395 (eval "$ac_compile") 2>conftest.er1
4397 grep -v '^ *+' conftest.er1 >conftest.err
4399 cat conftest.err >&5
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); } &&
4402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4403 { (case "(($ac_try" in
4404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4405 *) ac_try_echo=$ac_try;;
4407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4408 (eval "$ac_try") 2>&5
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); }; } &&
4412 { ac_try='test -s conftest.$ac_objext'
4413 { (case "(($ac_try" in
4414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415 *) ac_try_echo=$ac_try;;
4417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4418 (eval "$ac_try") 2>&5
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); }; }; then
4422 # It does; now see whether it defined to BIG_ENDIAN or not.
4423 cat >conftest.$ac_ext <<_ACEOF
4426 cat confdefs.h >>conftest.$ac_ext
4427 cat >>conftest.$ac_ext <<_ACEOF
4428 /* end confdefs.h. */
4429 #include <sys/types.h>
4430 #include <sys/param.h>
4435 #if BYTE_ORDER != BIG_ENDIAN
4443 rm -f conftest.$ac_objext
4444 if { (ac_try="$ac_compile"
4446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4447 *) ac_try_echo=$ac_try;;
4449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4450 (eval "$ac_compile") 2>conftest.er1
4452 grep -v '^ *+' conftest.er1 >conftest.err
4454 cat conftest.err >&5
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); } &&
4457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4458 { (case "(($ac_try" in
4459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460 *) ac_try_echo=$ac_try;;
4462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4463 (eval "$ac_try") 2>&5
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); }; } &&
4467 { ac_try='test -s conftest.$ac_objext'
4468 { (case "(($ac_try" in
4469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4470 *) ac_try_echo=$ac_try;;
4472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4473 (eval "$ac_try") 2>&5
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); }; }; then
4477 ac_cv_c_bigendian=yes
4479 echo "$as_me: failed program was:" >&5
4480 sed 's/^/| /' conftest.$ac_ext >&5
4482 ac_cv_c_bigendian=no
4485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4487 echo "$as_me: failed program was:" >&5
4488 sed 's/^/| /' conftest.$ac_ext >&5
4490 # It does not; compile a test program.
4491 if test "$cross_compiling" = yes; then
4492 # try to guess the endianness by grepping values into an object file
4493 ac_cv_c_bigendian=unknown
4494 cat >conftest.$ac_ext <<_ACEOF
4497 cat confdefs.h >>conftest.$ac_ext
4498 cat >>conftest.$ac_ext <<_ACEOF
4499 /* end confdefs.h. */
4500 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4501 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4502 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4503 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4504 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4505 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4509 _ascii (); _ebcdic ();
4514 rm -f conftest.$ac_objext
4515 if { (ac_try="$ac_compile"
4517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4518 *) ac_try_echo=$ac_try;;
4520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4521 (eval "$ac_compile") 2>conftest.er1
4523 grep -v '^ *+' conftest.er1 >conftest.err
4525 cat conftest.err >&5
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); } &&
4528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4529 { (case "(($ac_try" in
4530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4531 *) ac_try_echo=$ac_try;;
4533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4534 (eval "$ac_try") 2>&5
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); }; } &&
4538 { ac_try='test -s conftest.$ac_objext'
4539 { (case "(($ac_try" in
4540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4541 *) ac_try_echo=$ac_try;;
4543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4544 (eval "$ac_try") 2>&5
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); }; }; then
4548 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4549 ac_cv_c_bigendian=yes
4551 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4552 if test "$ac_cv_c_bigendian" = unknown; then
4553 ac_cv_c_bigendian=no
4555 # finding both strings is unlikely to happen, but who knows?
4556 ac_cv_c_bigendian=unknown
4560 echo "$as_me: failed program was:" >&5
4561 sed 's/^/| /' conftest.$ac_ext >&5
4566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4568 cat >conftest.$ac_ext <<_ACEOF
4571 cat confdefs.h >>conftest.$ac_ext
4572 cat >>conftest.$ac_ext <<_ACEOF
4573 /* end confdefs.h. */
4574 $ac_includes_default
4579 /* Are we little or big endian? From Harbison&Steele. */
4583 char c[sizeof (long int)];
4586 return u.c[sizeof (long int) - 1] == 1;
4592 rm -f conftest$ac_exeext
4593 if { (ac_try="$ac_link"
4595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4596 *) ac_try_echo=$ac_try;;
4598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4599 (eval "$ac_link") 2>&5
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4603 { (case "(($ac_try" in
4604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4605 *) ac_try_echo=$ac_try;;
4607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4608 (eval "$ac_try") 2>&5
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); }; }; then
4612 ac_cv_c_bigendian=no
4614 echo "$as_me: program exited with status $ac_status" >&5
4615 echo "$as_me: failed program was:" >&5
4616 sed 's/^/| /' conftest.$ac_ext >&5
4619 ac_cv_c_bigendian=yes
4621 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4629 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4630 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4631 case $ac_cv_c_bigendian in
4639 { { echo "$as_me:$LINENO: error: unknown endianness
4640 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4641 echo "$as_me: error: unknown endianness
4642 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4643 { (exit 1); exit 1; }; } ;;
4647 if test "$cross_compiling" = yes; then
4648 LLVM_CROSS_COMPILING=1
4651 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4652 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4653 if test "${ac_cv_build_exeext+set}" = set; then
4654 echo $ECHO_N "(cached) $ECHO_C" >&6
4656 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4657 ac_cv_build_exeext=.exe
4659 ac_build_prefix=${build_alias}-
4661 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4662 set dummy ${ac_build_prefix}gcc; ac_word=$2
4663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4665 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4666 echo $ECHO_N "(cached) $ECHO_C" >&6
4668 if test -n "$BUILD_CC"; then
4669 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675 test -z "$as_dir" && as_dir=.
4676 for ac_exec_ext in '' $ac_executable_extensions; do
4677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4678 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4688 BUILD_CC=$ac_cv_prog_BUILD_CC
4689 if test -n "$BUILD_CC"; then
4690 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4691 echo "${ECHO_T}$BUILD_CC" >&6; }
4693 { echo "$as_me:$LINENO: result: no" >&5
4694 echo "${ECHO_T}no" >&6; }
4698 if test -z "$BUILD_CC"; then
4699 # Extract the first word of "gcc", so it can be a program name with args.
4700 set dummy gcc; ac_word=$2
4701 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4703 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4704 echo $ECHO_N "(cached) $ECHO_C" >&6
4706 if test -n "$BUILD_CC"; then
4707 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713 test -z "$as_dir" && as_dir=.
4714 for ac_exec_ext in '' $ac_executable_extensions; do
4715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4716 ac_cv_prog_BUILD_CC="gcc"
4717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4726 BUILD_CC=$ac_cv_prog_BUILD_CC
4727 if test -n "$BUILD_CC"; then
4728 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4729 echo "${ECHO_T}$BUILD_CC" >&6; }
4731 { echo "$as_me:$LINENO: result: no" >&5
4732 echo "${ECHO_T}no" >&6; }
4736 if test -z "$BUILD_CC"; then
4737 # Extract the first word of "cc", so it can be a program name with args.
4738 set dummy cc; ac_word=$2
4739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4741 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4742 echo $ECHO_N "(cached) $ECHO_C" >&6
4744 if test -n "$BUILD_CC"; then
4745 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752 test -z "$as_dir" && as_dir=.
4753 for ac_exec_ext in '' $ac_executable_extensions; do
4754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4755 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4756 ac_prog_rejected=yes
4759 ac_cv_prog_BUILD_CC="cc"
4760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4767 if test $ac_prog_rejected = yes; then
4768 # We found a bogon in the path, so make sure we never use it.
4769 set dummy $ac_cv_prog_BUILD_CC
4771 if test $# != 0; then
4772 # We chose a different compiler from the bogus one.
4773 # However, it has the same basename, so the bogon will be chosen
4774 # first if we set BUILD_CC to just the basename; use the full file name.
4776 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4781 BUILD_CC=$ac_cv_prog_BUILD_CC
4782 if test -n "$BUILD_CC"; then
4783 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4784 echo "${ECHO_T}$BUILD_CC" >&6; }
4786 { echo "$as_me:$LINENO: result: no" >&5
4787 echo "${ECHO_T}no" >&6; }
4793 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4794 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4795 { (exit 1); exit 1; }; }
4796 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4798 echo 'int main () { return 0; }' > conftest.$ac_ext
4800 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4801 (eval $ac_build_link) 2>&5
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); }; then
4805 for file in conftest.*; do
4807 *.c | *.o | *.obj | *.dSYM) ;;
4808 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4812 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4813 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4814 { (exit 1); exit 1; }; }
4817 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4822 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4823 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4824 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4825 ac_build_exeext=$BUILD_EXEEXT
4827 ac_build_prefix=${build_alias}-
4828 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4829 set dummy ${ac_build_prefix}g++; ac_word=$2
4830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4832 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4833 echo $ECHO_N "(cached) $ECHO_C" >&6
4835 if test -n "$BUILD_CXX"; then
4836 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4842 test -z "$as_dir" && as_dir=.
4843 for ac_exec_ext in '' $ac_executable_extensions; do
4844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4845 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4855 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4856 if test -n "$BUILD_CXX"; then
4857 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4858 echo "${ECHO_T}$BUILD_CXX" >&6; }
4860 { echo "$as_me:$LINENO: result: no" >&5
4861 echo "${ECHO_T}no" >&6; }
4865 if test -z "$BUILD_CXX"; then
4866 # Extract the first word of "g++", so it can be a program name with args.
4867 set dummy g++; ac_word=$2
4868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4870 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4871 echo $ECHO_N "(cached) $ECHO_C" >&6
4873 if test -n "$BUILD_CXX"; then
4874 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4880 test -z "$as_dir" && as_dir=.
4881 for ac_exec_ext in '' $ac_executable_extensions; do
4882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4883 ac_cv_prog_BUILD_CXX="g++"
4884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4893 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4894 if test -n "$BUILD_CXX"; then
4895 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4896 echo "${ECHO_T}$BUILD_CXX" >&6; }
4898 { echo "$as_me:$LINENO: result: no" >&5
4899 echo "${ECHO_T}no" >&6; }
4903 if test -z "$BUILD_CXX"; then
4904 # Extract the first word of "c++", so it can be a program name with args.
4905 set dummy c++; ac_word=$2
4906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4908 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4909 echo $ECHO_N "(cached) $ECHO_C" >&6
4911 if test -n "$BUILD_CXX"; then
4912 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4919 test -z "$as_dir" && as_dir=.
4920 for ac_exec_ext in '' $ac_executable_extensions; do
4921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4922 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4923 ac_prog_rejected=yes
4926 ac_cv_prog_BUILD_CXX="c++"
4927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4934 if test $ac_prog_rejected = yes; then
4935 # We found a bogon in the path, so make sure we never use it.
4936 set dummy $ac_cv_prog_BUILD_CXX
4938 if test $# != 0; then
4939 # We chose a different compiler from the bogus one.
4940 # However, it has the same basename, so the bogon will be chosen
4941 # first if we set BUILD_CXX to just the basename; use the full file name.
4943 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4948 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4949 if test -n "$BUILD_CXX"; then
4950 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4951 echo "${ECHO_T}$BUILD_CXX" >&6; }
4953 { echo "$as_me:$LINENO: result: no" >&5
4954 echo "${ECHO_T}no" >&6; }
4961 LLVM_CROSS_COMPILING=0
4965 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4976 # Check whether --enable-libcpp was given.
4977 if test "${enable_libcpp+set}" = set; then
4978 enableval=$enable_libcpp;
4983 case "$enableval" in
4984 yes) ENABLE_LIBCPP=1
4988 default) ENABLE_LIBCPP=0
4990 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4991 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4992 { (exit 1); exit 1; }; } ;;
4995 # Check whether --enable-optimized was given.
4996 if test "${enable_optimized+set}" = set; then
4997 enableval=$enable_optimized;
5002 if test ${enableval} = "no" ; then
5006 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5010 # Check whether --enable-profiling was given.
5011 if test "${enable_profiling+set}" = set; then
5012 enableval=$enable_profiling;
5017 if test ${enableval} = "no" ; then
5021 ENABLE_PROFILING=ENABLE_PROFILING=1
5025 # Check whether --enable-assertions was given.
5026 if test "${enable_assertions+set}" = set; then
5027 enableval=$enable_assertions;
5032 if test ${enableval} = "yes" ; then
5036 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5040 # Check whether --enable-expensive-checks was given.
5041 if test "${enable_expensive_checks+set}" = set; then
5042 enableval=$enable_expensive_checks;
5047 if test ${enableval} = "yes" ; then
5048 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5050 EXPENSIVE_CHECKS=yes
5053 ENABLE_EXPENSIVE_CHECKS=
5059 # Check whether --enable-debug-runtime was given.
5060 if test "${enable_debug_runtime+set}" = set; then
5061 enableval=$enable_debug_runtime;
5066 if test ${enableval} = "no" ; then
5070 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5074 # Check whether --enable-debug-symbols was given.
5075 if test "${enable_debug_symbols+set}" = set; then
5076 enableval=$enable_debug_symbols;
5081 if test ${enableval} = "no" ; then
5085 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5089 # Check whether --enable-jit was given.
5090 if test "${enable_jit+set}" = set; then
5091 enableval=$enable_jit;
5096 if test ${enableval} = "no"
5101 case "$llvm_cv_target_arch" in
5102 x86) TARGET_HAS_JIT=1
5104 Sparc) TARGET_HAS_JIT=0
5106 PowerPC) TARGET_HAS_JIT=1
5108 x86_64) TARGET_HAS_JIT=1
5110 ARM) TARGET_HAS_JIT=1
5112 Mips) TARGET_HAS_JIT=1
5114 XCore) TARGET_HAS_JIT=0
5116 MSP430) TARGET_HAS_JIT=0
5118 Hexagon) TARGET_HAS_JIT=0
5120 MBlaze) TARGET_HAS_JIT=0
5122 PTX) TARGET_HAS_JIT=0
5129 # Check whether --enable-docs was given.
5130 if test "${enable_docs+set}" = set; then
5131 enableval=$enable_docs;
5136 case "$enableval" in
5141 default) ENABLE_DOCS=1
5143 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5144 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5145 { (exit 1); exit 1; }; } ;;
5148 # Check whether --enable-doxygen was given.
5149 if test "${enable_doxygen+set}" = set; then
5150 enableval=$enable_doxygen;
5155 case "$enableval" in
5156 yes) ENABLE_DOXYGEN=1
5158 no) ENABLE_DOXYGEN=0
5160 default) ENABLE_DOXYGEN=0
5162 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5163 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5164 { (exit 1); exit 1; }; } ;;
5167 # Check whether --enable-threads was given.
5168 if test "${enable_threads+set}" = set; then
5169 enableval=$enable_threads;
5174 case "$enableval" in
5175 yes) LLVM_ENABLE_THREADS=1
5177 no) LLVM_ENABLE_THREADS=0
5179 default) LLVM_ENABLE_THREADS=1
5181 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5182 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5183 { (exit 1); exit 1; }; } ;;
5186 cat >>confdefs.h <<_ACEOF
5187 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5191 # Check whether --enable-pthreads was given.
5192 if test "${enable_pthreads+set}" = set; then
5193 enableval=$enable_pthreads;
5198 case "$enableval" in
5199 yes) ENABLE_PTHREADS=1
5201 no) ENABLE_PTHREADS=0
5203 default) ENABLE_PTHREADS=1
5205 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5206 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5207 { (exit 1); exit 1; }; } ;;
5210 # Check whether --enable-pic was given.
5211 if test "${enable_pic+set}" = set; then
5212 enableval=$enable_pic;
5217 case "$enableval" in
5222 default) ENABLE_PIC=1
5224 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5225 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5226 { (exit 1); exit 1; }; } ;;
5229 cat >>confdefs.h <<_ACEOF
5230 #define ENABLE_PIC $ENABLE_PIC
5234 # Check whether --enable-shared was given.
5235 if test "${enable_shared+set}" = set; then
5236 enableval=$enable_shared;
5241 case "$enableval" in
5242 yes) ENABLE_SHARED=1
5246 default) ENABLE_SHARED=0
5248 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5249 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5250 { (exit 1); exit 1; }; } ;;
5253 # Check whether --enable-embed-stdcxx was given.
5254 if test "${enable_embed_stdcxx+set}" = set; then
5255 enableval=$enable_embed_stdcxx;
5260 case "$enableval" in
5261 yes) ENABLE_EMBED_STDCXX=1
5263 no) ENABLE_EMBED_STDCXX=0
5265 default) ENABLE_EMBED_STDCXX=0
5267 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5268 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5269 { (exit 1); exit 1; }; } ;;
5272 # Check whether --enable-timestamps was given.
5273 if test "${enable_timestamps+set}" = set; then
5274 enableval=$enable_timestamps;
5279 case "$enableval" in
5280 yes) ENABLE_TIMESTAMPS=1
5282 no) ENABLE_TIMESTAMPS=0
5284 default) ENABLE_TIMESTAMPS=1
5286 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5287 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5288 { (exit 1); exit 1; }; } ;;
5291 cat >>confdefs.h <<_ACEOF
5292 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5297 # Check whether --enable-targets was given.
5298 if test "${enable_targets+set}" = set; then
5299 enableval=$enable_targets;
5304 if test "$enableval" = host-only ; then
5307 case "$enableval" in
5308 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CBackend CppBackend MBlaze PTX Hexagon" ;;
5309 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5311 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5312 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5313 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5314 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5315 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5316 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5317 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5318 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5319 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5320 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5321 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5322 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5323 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5324 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5325 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5326 host) case "$llvm_cv_target_arch" in
5327 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5328 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5329 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5330 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5331 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5332 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5333 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5334 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5335 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5336 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5337 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5338 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5339 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5340 echo "$as_me: error: Can not set target to build" >&2;}
5341 { (exit 1); exit 1; }; } ;;
5343 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5344 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5345 { (exit 1); exit 1; }; } ;;
5350 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5353 for a_target in $TARGETS_TO_BUILD; do
5354 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5356 cat >>confdefs.h <<_ACEOF
5357 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5360 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5361 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5362 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5363 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5364 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5365 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5368 cat >>confdefs.h <<_ACEOF
5369 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5373 cat >>confdefs.h <<_ACEOF
5374 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5378 cat >>confdefs.h <<_ACEOF
5379 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5383 cat >>confdefs.h <<_ACEOF
5384 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5387 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5389 cat >>confdefs.h <<_ACEOF
5390 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5397 LLVM_ENUM_TARGETS=""
5398 LLVM_ENUM_ASM_PRINTERS=""
5399 LLVM_ENUM_ASM_PARSERS=""
5400 LLVM_ENUM_DISASSEMBLERS=""
5401 for target_to_build in $TARGETS_TO_BUILD; do
5402 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5403 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5404 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5406 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5407 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5409 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5410 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5418 # Check whether --enable-cbe-printf-a was given.
5419 if test "${enable_cbe_printf_a+set}" = set; then
5420 enableval=$enable_cbe_printf_a;
5425 case "$enableval" in
5426 yes) ENABLE_CBE_PRINTF_A=1
5428 no) ENABLE_CBE_PRINTF_A=0
5430 default) ENABLE_CBE_PRINTF_A=1
5432 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5433 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5434 { (exit 1); exit 1; }; } ;;
5437 cat >>confdefs.h <<_ACEOF
5438 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5443 # Check whether --with-optimize-option was given.
5444 if test "${with_optimize_option+set}" = set; then
5445 withval=$with_optimize_option;
5450 { echo "$as_me:$LINENO: checking optimization flags" >&5
5451 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5454 case "$llvm_cv_os_type" in
5455 FreeBSD) optimize_option=-O2 ;;
5456 MingW) optimize_option=-O2 ;;
5457 *) optimize_option=-O3 ;;
5459 *) optimize_option="$withval" ;;
5461 OPTIMIZE_OPTION=$optimize_option
5463 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5464 echo "${ECHO_T}$optimize_option" >&6; }
5467 # Check whether --with-extra-options was given.
5468 if test "${with_extra_options+set}" = set; then
5469 withval=$with_extra_options;
5475 default) EXTRA_OPTIONS= ;;
5476 *) EXTRA_OPTIONS=$withval ;;
5478 EXTRA_OPTIONS=$EXTRA_OPTIONS
5482 # Check whether --with-extra-ld-options was given.
5483 if test "${with_extra_ld_options+set}" = set; then
5484 withval=$with_extra_ld_options;
5490 default) EXTRA_LD_OPTIONS= ;;
5491 *) EXTRA_LD_OPTIONS=$withval ;;
5493 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5496 # Check whether --enable-bindings was given.
5497 if test "${enable_bindings+set}" = set; then
5498 enableval=$enable_bindings;
5503 BINDINGS_TO_BUILD=""
5504 case "$enableval" in
5505 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5506 all ) BINDINGS_TO_BUILD="ocaml" ;;
5507 none | no) BINDINGS_TO_BUILD="" ;;
5508 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5509 case "$a_binding" in
5510 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5511 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5512 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5513 { (exit 1); exit 1; }; } ;;
5520 # Check whether --with-ocaml-libdir was given.
5521 if test "${with_ocaml_libdir+set}" = set; then
5522 withval=$with_ocaml_libdir;
5528 auto) with_ocaml_libdir="$withval" ;;
5529 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5530 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5531 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5532 { (exit 1); exit 1; }; } ;;
5536 # Check whether --with-clang-srcdir was given.
5537 if test "${with_clang_srcdir+set}" = set; then
5538 withval=$with_clang_srcdir;
5544 -) clang_src_root="" ;;
5545 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5546 *) clang_src_root="$ac_pwd/$withval" ;;
5548 CLANG_SRC_ROOT=$clang_src_root
5552 # Check whether --with-clang-resource-dir was given.
5553 if test "${with_clang_resource_dir+set}" = set; then
5554 withval=$with_clang_resource_dir;
5560 cat >>confdefs.h <<_ACEOF
5561 #define CLANG_RESOURCE_DIR "$withval"
5566 # Check whether --with-c-include-dirs was given.
5567 if test "${with_c_include_dirs+set}" = set; then
5568 withval=$with_c_include_dirs;
5574 cat >>confdefs.h <<_ACEOF
5575 #define C_INCLUDE_DIRS "$withval"
5579 # Clang normally uses the system c++ headers and libraries. With this option,
5580 # clang will use the ones provided by a gcc installation instead. This option should
5581 # be passed the same value that was used with --prefix when configuring gcc.
5583 # Check whether --with-gcc-toolchain was given.
5584 if test "${with_gcc_toolchain+set}" = set; then
5585 withval=$with_gcc_toolchain;
5591 cat >>confdefs.h <<_ACEOF
5592 #define GCC_INSTALL_PREFIX "$withval"
5597 # Check whether --with-binutils-include was given.
5598 if test "${with_binutils_include+set}" = set; then
5599 withval=$with_binutils_include;
5605 default) WITH_BINUTILS_INCDIR=default ;;
5606 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5607 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5608 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5609 { (exit 1); exit 1; }; } ;;
5611 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5612 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5614 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5615 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5616 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5617 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5618 { (exit 1); exit 1; }; };
5623 # Check whether --with-bug-report-url was given.
5624 if test "${with_bug_report_url+set}" = set; then
5625 withval=$with_bug_report_url;
5627 withval="http://llvm.org/bugs/"
5631 cat >>confdefs.h <<_ACEOF
5632 #define BUG_REPORT_URL "$withval"
5636 # Check whether --enable-libffi was given.
5637 if test "${enable_libffi+set}" = set; then
5638 enableval=$enable_libffi; case "$enableval" in
5639 yes) llvm_cv_enable_libffi="yes" ;;
5640 no) llvm_cv_enable_libffi="no" ;;
5641 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5642 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5643 { (exit 1); exit 1; }; } ;;
5646 llvm_cv_enable_libffi=no
5651 # Check whether --with-internal-prefix was given.
5652 if test "${with_internal_prefix+set}" = set; then
5653 withval=$with_internal_prefix;
5658 INTERNAL_PREFIX=$withval
5662 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5663 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5664 if test "${lt_cv_path_NM+set}" = set; then
5665 echo $ECHO_N "(cached) $ECHO_C" >&6
5667 if test -n "$NM"; then
5668 # Let the user override the test.
5671 lt_nm_to_check="${ac_tool_prefix}nm"
5672 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5673 lt_nm_to_check="$lt_nm_to_check nm"
5675 for lt_tmp_nm in $lt_nm_to_check; do
5676 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5677 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5679 test -z "$ac_dir" && ac_dir=.
5680 tmp_nm="$ac_dir/$lt_tmp_nm"
5681 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5682 # Check to see if the nm accepts a BSD-compat flag.
5683 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5684 # nm: unknown option "B" ignored
5685 # Tru64's nm complains that /dev/null is an invalid object file
5686 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5687 */dev/null* | *'Invalid file or object type'*)
5688 lt_cv_path_NM="$tmp_nm -B"
5692 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5694 lt_cv_path_NM="$tmp_nm -p"
5698 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5699 continue # so that we can try to find one that supports BSD flags
5708 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5711 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5712 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5717 { echo "$as_me:$LINENO: checking for GNU make" >&5
5718 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5719 if test "${llvm_cv_gnu_make_command+set}" = set; then
5720 echo $ECHO_N "(cached) $ECHO_C" >&6
5722 llvm_cv_gnu_make_command=''
5723 for a in "$MAKE" make gmake gnumake ; do
5724 if test -z "$a" ; then continue ; fi ;
5725 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5727 llvm_cv_gnu_make_command=$a ;
5732 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5733 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5734 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5738 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5739 echo "${ECHO_T}\"Not found\"" >&6; };
5743 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5744 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5746 if test "$LN_S" = "ln -s"; then
5747 { echo "$as_me:$LINENO: result: yes" >&5
5748 echo "${ECHO_T}yes" >&6; }
5750 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5751 echo "${ECHO_T}no, using $LN_S" >&6; }
5754 # Extract the first word of "cmp", so it can be a program name with args.
5755 set dummy cmp; ac_word=$2
5756 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5758 if test "${ac_cv_path_CMP+set}" = set; then
5759 echo $ECHO_N "(cached) $ECHO_C" >&6
5763 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770 test -z "$as_dir" && as_dir=.
5771 for ac_exec_ext in '' $ac_executable_extensions; do
5772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5773 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5781 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5786 if test -n "$CMP"; then
5787 { echo "$as_me:$LINENO: result: $CMP" >&5
5788 echo "${ECHO_T}$CMP" >&6; }
5790 { echo "$as_me:$LINENO: result: no" >&5
5791 echo "${ECHO_T}no" >&6; }
5795 # Extract the first word of "cp", so it can be a program name with args.
5796 set dummy cp; ac_word=$2
5797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5799 if test "${ac_cv_path_CP+set}" = set; then
5800 echo $ECHO_N "(cached) $ECHO_C" >&6
5804 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5811 test -z "$as_dir" && as_dir=.
5812 for ac_exec_ext in '' $ac_executable_extensions; do
5813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5814 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5822 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5827 if test -n "$CP"; then
5828 { echo "$as_me:$LINENO: result: $CP" >&5
5829 echo "${ECHO_T}$CP" >&6; }
5831 { echo "$as_me:$LINENO: result: no" >&5
5832 echo "${ECHO_T}no" >&6; }
5836 # Extract the first word of "date", so it can be a program name with args.
5837 set dummy date; ac_word=$2
5838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5840 if test "${ac_cv_path_DATE+set}" = set; then
5841 echo $ECHO_N "(cached) $ECHO_C" >&6
5845 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852 test -z "$as_dir" && as_dir=.
5853 for ac_exec_ext in '' $ac_executable_extensions; do
5854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5855 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5863 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5867 DATE=$ac_cv_path_DATE
5868 if test -n "$DATE"; then
5869 { echo "$as_me:$LINENO: result: $DATE" >&5
5870 echo "${ECHO_T}$DATE" >&6; }
5872 { echo "$as_me:$LINENO: result: no" >&5
5873 echo "${ECHO_T}no" >&6; }
5877 # Extract the first word of "find", so it can be a program name with args.
5878 set dummy find; ac_word=$2
5879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5881 if test "${ac_cv_path_FIND+set}" = set; then
5882 echo $ECHO_N "(cached) $ECHO_C" >&6
5886 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5893 test -z "$as_dir" && as_dir=.
5894 for ac_exec_ext in '' $ac_executable_extensions; do
5895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5896 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5904 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5908 FIND=$ac_cv_path_FIND
5909 if test -n "$FIND"; then
5910 { echo "$as_me:$LINENO: result: $FIND" >&5
5911 echo "${ECHO_T}$FIND" >&6; }
5913 { echo "$as_me:$LINENO: result: no" >&5
5914 echo "${ECHO_T}no" >&6; }
5918 # Extract the first word of "grep", so it can be a program name with args.
5919 set dummy grep; ac_word=$2
5920 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5922 if test "${ac_cv_path_GREP+set}" = set; then
5923 echo $ECHO_N "(cached) $ECHO_C" >&6
5927 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934 test -z "$as_dir" && as_dir=.
5935 for ac_exec_ext in '' $ac_executable_extensions; do
5936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5937 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5945 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5949 GREP=$ac_cv_path_GREP
5950 if test -n "$GREP"; then
5951 { echo "$as_me:$LINENO: result: $GREP" >&5
5952 echo "${ECHO_T}$GREP" >&6; }
5954 { echo "$as_me:$LINENO: result: no" >&5
5955 echo "${ECHO_T}no" >&6; }
5959 # Extract the first word of "mkdir", so it can be a program name with args.
5960 set dummy mkdir; ac_word=$2
5961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5963 if test "${ac_cv_path_MKDIR+set}" = set; then
5964 echo $ECHO_N "(cached) $ECHO_C" >&6
5968 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5975 test -z "$as_dir" && as_dir=.
5976 for ac_exec_ext in '' $ac_executable_extensions; do
5977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5978 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5986 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5990 MKDIR=$ac_cv_path_MKDIR
5991 if test -n "$MKDIR"; then
5992 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5993 echo "${ECHO_T}$MKDIR" >&6; }
5995 { echo "$as_me:$LINENO: result: no" >&5
5996 echo "${ECHO_T}no" >&6; }
6000 # Extract the first word of "mv", so it can be a program name with args.
6001 set dummy mv; ac_word=$2
6002 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6004 if test "${ac_cv_path_MV+set}" = set; then
6005 echo $ECHO_N "(cached) $ECHO_C" >&6
6009 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016 test -z "$as_dir" && as_dir=.
6017 for ac_exec_ext in '' $ac_executable_extensions; do
6018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6019 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6027 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6032 if test -n "$MV"; then
6033 { echo "$as_me:$LINENO: result: $MV" >&5
6034 echo "${ECHO_T}$MV" >&6; }
6036 { echo "$as_me:$LINENO: result: no" >&5
6037 echo "${ECHO_T}no" >&6; }
6041 if test -n "$ac_tool_prefix"; then
6042 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6043 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6046 if test "${ac_cv_prog_RANLIB+set}" = set; then
6047 echo $ECHO_N "(cached) $ECHO_C" >&6
6049 if test -n "$RANLIB"; then
6050 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6056 test -z "$as_dir" && as_dir=.
6057 for ac_exec_ext in '' $ac_executable_extensions; do
6058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6059 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6069 RANLIB=$ac_cv_prog_RANLIB
6070 if test -n "$RANLIB"; then
6071 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6072 echo "${ECHO_T}$RANLIB" >&6; }
6074 { echo "$as_me:$LINENO: result: no" >&5
6075 echo "${ECHO_T}no" >&6; }
6080 if test -z "$ac_cv_prog_RANLIB"; then
6081 ac_ct_RANLIB=$RANLIB
6082 # Extract the first word of "ranlib", so it can be a program name with args.
6083 set dummy ranlib; ac_word=$2
6084 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6086 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6087 echo $ECHO_N "(cached) $ECHO_C" >&6
6089 if test -n "$ac_ct_RANLIB"; then
6090 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6096 test -z "$as_dir" && as_dir=.
6097 for ac_exec_ext in '' $ac_executable_extensions; do
6098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6099 ac_cv_prog_ac_ct_RANLIB="ranlib"
6100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6109 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6110 if test -n "$ac_ct_RANLIB"; then
6111 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6112 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6114 { echo "$as_me:$LINENO: result: no" >&5
6115 echo "${ECHO_T}no" >&6; }
6118 if test "x$ac_ct_RANLIB" = x; then
6121 case $cross_compiling:$ac_tool_warned in
6123 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6124 whose name does not start with the host triplet. If you think this
6125 configuration is useful to you, please write to autoconf@gnu.org." >&5
6126 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6127 whose name does not start with the host triplet. If you think this
6128 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6129 ac_tool_warned=yes ;;
6131 RANLIB=$ac_ct_RANLIB
6134 RANLIB="$ac_cv_prog_RANLIB"
6137 if test -n "$ac_tool_prefix"; then
6138 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6139 set dummy ${ac_tool_prefix}ar; ac_word=$2
6140 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6142 if test "${ac_cv_prog_AR+set}" = set; then
6143 echo $ECHO_N "(cached) $ECHO_C" >&6
6145 if test -n "$AR"; then
6146 ac_cv_prog_AR="$AR" # Let the user override the test.
6148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152 test -z "$as_dir" && as_dir=.
6153 for ac_exec_ext in '' $ac_executable_extensions; do
6154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6155 ac_cv_prog_AR="${ac_tool_prefix}ar"
6156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6166 if test -n "$AR"; then
6167 { echo "$as_me:$LINENO: result: $AR" >&5
6168 echo "${ECHO_T}$AR" >&6; }
6170 { echo "$as_me:$LINENO: result: no" >&5
6171 echo "${ECHO_T}no" >&6; }
6176 if test -z "$ac_cv_prog_AR"; then
6178 # Extract the first word of "ar", so it can be a program name with args.
6179 set dummy ar; ac_word=$2
6180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6182 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6183 echo $ECHO_N "(cached) $ECHO_C" >&6
6185 if test -n "$ac_ct_AR"; then
6186 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192 test -z "$as_dir" && as_dir=.
6193 for ac_exec_ext in '' $ac_executable_extensions; do
6194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6195 ac_cv_prog_ac_ct_AR="ar"
6196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6205 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6206 if test -n "$ac_ct_AR"; then
6207 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6208 echo "${ECHO_T}$ac_ct_AR" >&6; }
6210 { echo "$as_me:$LINENO: result: no" >&5
6211 echo "${ECHO_T}no" >&6; }
6214 if test "x$ac_ct_AR" = x; then
6217 case $cross_compiling:$ac_tool_warned in
6219 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6220 whose name does not start with the host triplet. If you think this
6221 configuration is useful to you, please write to autoconf@gnu.org." >&5
6222 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6223 whose name does not start with the host triplet. If you think this
6224 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6225 ac_tool_warned=yes ;;
6233 # Extract the first word of "rm", so it can be a program name with args.
6234 set dummy rm; ac_word=$2
6235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6237 if test "${ac_cv_path_RM+set}" = set; then
6238 echo $ECHO_N "(cached) $ECHO_C" >&6
6242 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6249 test -z "$as_dir" && as_dir=.
6250 for ac_exec_ext in '' $ac_executable_extensions; do
6251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6252 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6260 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6265 if test -n "$RM"; then
6266 { echo "$as_me:$LINENO: result: $RM" >&5
6267 echo "${ECHO_T}$RM" >&6; }
6269 { echo "$as_me:$LINENO: result: no" >&5
6270 echo "${ECHO_T}no" >&6; }
6274 # Extract the first word of "sed", so it can be a program name with args.
6275 set dummy sed; ac_word=$2
6276 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6278 if test "${ac_cv_path_SED+set}" = set; then
6279 echo $ECHO_N "(cached) $ECHO_C" >&6
6283 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6290 test -z "$as_dir" && as_dir=.
6291 for ac_exec_ext in '' $ac_executable_extensions; do
6292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6293 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6301 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6306 if test -n "$SED"; then
6307 { echo "$as_me:$LINENO: result: $SED" >&5
6308 echo "${ECHO_T}$SED" >&6; }
6310 { echo "$as_me:$LINENO: result: no" >&5
6311 echo "${ECHO_T}no" >&6; }
6315 # Extract the first word of "tar", so it can be a program name with args.
6316 set dummy tar; ac_word=$2
6317 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6319 if test "${ac_cv_path_TAR+set}" = set; then
6320 echo $ECHO_N "(cached) $ECHO_C" >&6
6324 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6331 test -z "$as_dir" && as_dir=.
6332 for ac_exec_ext in '' $ac_executable_extensions; do
6333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6334 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6342 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6347 if test -n "$TAR"; then
6348 { echo "$as_me:$LINENO: result: $TAR" >&5
6349 echo "${ECHO_T}$TAR" >&6; }
6351 { echo "$as_me:$LINENO: result: no" >&5
6352 echo "${ECHO_T}no" >&6; }
6356 # Extract the first word of "pwd", so it can be a program name with args.
6357 set dummy pwd; ac_word=$2
6358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6360 if test "${ac_cv_path_BINPWD+set}" = set; then
6361 echo $ECHO_N "(cached) $ECHO_C" >&6
6365 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6372 test -z "$as_dir" && as_dir=.
6373 for ac_exec_ext in '' $ac_executable_extensions; do
6374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6375 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6383 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6387 BINPWD=$ac_cv_path_BINPWD
6388 if test -n "$BINPWD"; then
6389 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6390 echo "${ECHO_T}$BINPWD" >&6; }
6392 { echo "$as_me:$LINENO: result: no" >&5
6393 echo "${ECHO_T}no" >&6; }
6398 # Extract the first word of "Graphviz", so it can be a program name with args.
6399 set dummy Graphviz; ac_word=$2
6400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6402 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6403 echo $ECHO_N "(cached) $ECHO_C" >&6
6407 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6414 test -z "$as_dir" && as_dir=.
6415 for ac_exec_ext in '' $ac_executable_extensions; do
6416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6417 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6425 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6429 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6430 if test -n "$GRAPHVIZ"; then
6431 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6432 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6434 { echo "$as_me:$LINENO: result: no" >&5
6435 echo "${ECHO_T}no" >&6; }
6439 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6441 cat >>confdefs.h <<\_ACEOF
6442 #define HAVE_GRAPHVIZ 1
6445 if test "$llvm_cv_os_type" = "MingW" ; then
6446 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6449 cat >>confdefs.h <<_ACEOF
6450 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6454 # Extract the first word of "dot", so it can be a program name with args.
6455 set dummy dot; ac_word=$2
6456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6458 if test "${ac_cv_path_DOT+set}" = set; then
6459 echo $ECHO_N "(cached) $ECHO_C" >&6
6463 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6470 test -z "$as_dir" && as_dir=.
6471 for ac_exec_ext in '' $ac_executable_extensions; do
6472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6473 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6481 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6486 if test -n "$DOT"; then
6487 { echo "$as_me:$LINENO: result: $DOT" >&5
6488 echo "${ECHO_T}$DOT" >&6; }
6490 { echo "$as_me:$LINENO: result: no" >&5
6491 echo "${ECHO_T}no" >&6; }
6495 if test "$DOT" != "echo dot" ; then
6497 cat >>confdefs.h <<\_ACEOF
6501 if test "$llvm_cv_os_type" = "MingW" ; then
6502 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6505 cat >>confdefs.h <<_ACEOF
6506 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6510 # Extract the first word of "fdp", so it can be a program name with args.
6511 set dummy fdp; ac_word=$2
6512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6514 if test "${ac_cv_path_FDP+set}" = set; then
6515 echo $ECHO_N "(cached) $ECHO_C" >&6
6519 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526 test -z "$as_dir" && as_dir=.
6527 for ac_exec_ext in '' $ac_executable_extensions; do
6528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6529 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6537 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6542 if test -n "$FDP"; then
6543 { echo "$as_me:$LINENO: result: $FDP" >&5
6544 echo "${ECHO_T}$FDP" >&6; }
6546 { echo "$as_me:$LINENO: result: no" >&5
6547 echo "${ECHO_T}no" >&6; }
6551 if test "$FDP" != "echo fdp" ; then
6553 cat >>confdefs.h <<\_ACEOF
6557 if test "$llvm_cv_os_type" = "MingW" ; then
6558 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6561 cat >>confdefs.h <<_ACEOF
6562 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6566 # Extract the first word of "neato", so it can be a program name with args.
6567 set dummy neato; ac_word=$2
6568 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6570 if test "${ac_cv_path_NEATO+set}" = set; then
6571 echo $ECHO_N "(cached) $ECHO_C" >&6
6575 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582 test -z "$as_dir" && as_dir=.
6583 for ac_exec_ext in '' $ac_executable_extensions; do
6584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6585 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6593 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6597 NEATO=$ac_cv_path_NEATO
6598 if test -n "$NEATO"; then
6599 { echo "$as_me:$LINENO: result: $NEATO" >&5
6600 echo "${ECHO_T}$NEATO" >&6; }
6602 { echo "$as_me:$LINENO: result: no" >&5
6603 echo "${ECHO_T}no" >&6; }
6607 if test "$NEATO" != "echo neato" ; then
6609 cat >>confdefs.h <<\_ACEOF
6610 #define HAVE_NEATO 1
6613 if test "$llvm_cv_os_type" = "MingW" ; then
6614 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6617 cat >>confdefs.h <<_ACEOF
6618 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6622 # Extract the first word of "twopi", so it can be a program name with args.
6623 set dummy twopi; ac_word=$2
6624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6626 if test "${ac_cv_path_TWOPI+set}" = set; then
6627 echo $ECHO_N "(cached) $ECHO_C" >&6
6631 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638 test -z "$as_dir" && as_dir=.
6639 for ac_exec_ext in '' $ac_executable_extensions; do
6640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6641 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6649 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6653 TWOPI=$ac_cv_path_TWOPI
6654 if test -n "$TWOPI"; then
6655 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6656 echo "${ECHO_T}$TWOPI" >&6; }
6658 { echo "$as_me:$LINENO: result: no" >&5
6659 echo "${ECHO_T}no" >&6; }
6663 if test "$TWOPI" != "echo twopi" ; then
6665 cat >>confdefs.h <<\_ACEOF
6666 #define HAVE_TWOPI 1
6669 if test "$llvm_cv_os_type" = "MingW" ; then
6670 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6673 cat >>confdefs.h <<_ACEOF
6674 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6678 # Extract the first word of "circo", so it can be a program name with args.
6679 set dummy circo; ac_word=$2
6680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6682 if test "${ac_cv_path_CIRCO+set}" = set; then
6683 echo $ECHO_N "(cached) $ECHO_C" >&6
6687 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6694 test -z "$as_dir" && as_dir=.
6695 for ac_exec_ext in '' $ac_executable_extensions; do
6696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6697 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6705 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6709 CIRCO=$ac_cv_path_CIRCO
6710 if test -n "$CIRCO"; then
6711 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6712 echo "${ECHO_T}$CIRCO" >&6; }
6714 { echo "$as_me:$LINENO: result: no" >&5
6715 echo "${ECHO_T}no" >&6; }
6719 if test "$CIRCO" != "echo circo" ; then
6721 cat >>confdefs.h <<\_ACEOF
6722 #define HAVE_CIRCO 1
6725 if test "$llvm_cv_os_type" = "MingW" ; then
6726 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6729 cat >>confdefs.h <<_ACEOF
6730 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6734 for ac_prog in gv gsview32
6736 # Extract the first word of "$ac_prog", so it can be a program name with args.
6737 set dummy $ac_prog; ac_word=$2
6738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6740 if test "${ac_cv_path_GV+set}" = set; then
6741 echo $ECHO_N "(cached) $ECHO_C" >&6
6745 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6752 test -z "$as_dir" && as_dir=.
6753 for ac_exec_ext in '' $ac_executable_extensions; do
6754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6755 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6767 if test -n "$GV"; then
6768 { echo "$as_me:$LINENO: result: $GV" >&5
6769 echo "${ECHO_T}$GV" >&6; }
6771 { echo "$as_me:$LINENO: result: no" >&5
6772 echo "${ECHO_T}no" >&6; }
6776 test -n "$GV" && break
6778 test -n "$GV" || GV="echo gv"
6780 if test "$GV" != "echo gv" ; then
6782 cat >>confdefs.h <<\_ACEOF
6786 if test "$llvm_cv_os_type" = "MingW" ; then
6787 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6790 cat >>confdefs.h <<_ACEOF
6791 #define LLVM_PATH_GV "$GV${EXEEXT}"
6795 # Extract the first word of "dotty", so it can be a program name with args.
6796 set dummy dotty; ac_word=$2
6797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6799 if test "${ac_cv_path_DOTTY+set}" = set; then
6800 echo $ECHO_N "(cached) $ECHO_C" >&6
6804 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811 test -z "$as_dir" && as_dir=.
6812 for ac_exec_ext in '' $ac_executable_extensions; do
6813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6814 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6822 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6826 DOTTY=$ac_cv_path_DOTTY
6827 if test -n "$DOTTY"; then
6828 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6829 echo "${ECHO_T}$DOTTY" >&6; }
6831 { echo "$as_me:$LINENO: result: no" >&5
6832 echo "${ECHO_T}no" >&6; }
6836 if test "$DOTTY" != "echo dotty" ; then
6838 cat >>confdefs.h <<\_ACEOF
6839 #define HAVE_DOTTY 1
6842 if test "$llvm_cv_os_type" = "MingW" ; then
6843 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6846 cat >>confdefs.h <<_ACEOF
6847 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6851 # Extract the first word of "xdot.py", so it can be a program name with args.
6852 set dummy xdot.py; ac_word=$2
6853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6855 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6856 echo $ECHO_N "(cached) $ECHO_C" >&6
6860 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867 test -z "$as_dir" && as_dir=.
6868 for ac_exec_ext in '' $ac_executable_extensions; do
6869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6870 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6878 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6882 XDOT_PY=$ac_cv_path_XDOT_PY
6883 if test -n "$XDOT_PY"; then
6884 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6885 echo "${ECHO_T}$XDOT_PY" >&6; }
6887 { echo "$as_me:$LINENO: result: no" >&5
6888 echo "${ECHO_T}no" >&6; }
6892 if test "$XDOT_PY" != "echo xdot.py" ; then
6894 cat >>confdefs.h <<\_ACEOF
6895 #define HAVE_XDOT_PY 1
6898 if test "$llvm_cv_os_type" = "MingW" ; then
6899 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6902 cat >>confdefs.h <<_ACEOF
6903 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6909 # Extract the first word of "perl", so it can be a program name with args.
6910 set dummy perl; ac_word=$2
6911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6913 if test "${ac_cv_path_PERL+set}" = set; then
6914 echo $ECHO_N "(cached) $ECHO_C" >&6
6918 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6925 test -z "$as_dir" && as_dir=.
6926 for ac_exec_ext in '' $ac_executable_extensions; do
6927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6928 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6936 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6940 PERL=$ac_cv_path_PERL
6941 if test -n "$PERL"; then
6942 { echo "$as_me:$LINENO: result: $PERL" >&5
6943 echo "${ECHO_T}$PERL" >&6; }
6945 { echo "$as_me:$LINENO: result: no" >&5
6946 echo "${ECHO_T}no" >&6; }
6950 if test "$PERL" != "none"; then
6951 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6952 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
6953 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
6954 { echo "$as_me:$LINENO: result: yes" >&5
6955 echo "${ECHO_T}yes" >&6; }
6958 { echo "$as_me:$LINENO: result: not found" >&5
6959 echo "${ECHO_T}not found" >&6; }
6964 if test x"$PERL" = xnone; then
6967 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6968 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6969 { (exit 1); exit 1; }; }
6975 # Find a good install program. We prefer a C program (faster),
6976 # so one script is as good as another. But avoid the broken or
6977 # incompatible versions:
6978 # SysV /etc/install, /usr/sbin/install
6979 # SunOS /usr/etc/install
6980 # IRIX /sbin/install
6982 # AmigaOS /C/install, which installs bootblocks on floppy discs
6983 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6984 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6985 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6986 # OS/2's system install, which has a completely different semantic
6987 # ./install, which can be erroneously created by make from ./install.sh.
6988 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6989 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6990 if test -z "$INSTALL"; then
6991 if test "${ac_cv_path_install+set}" = set; then
6992 echo $ECHO_N "(cached) $ECHO_C" >&6
6994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6998 test -z "$as_dir" && as_dir=.
6999 # Account for people who put trailing slashes in PATH elements.
7001 ./ | .// | /cC/* | \
7002 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7003 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7006 # OSF1 and SCO ODT 3.0 have their own names for install.
7007 # Don't use installbsd from OSF since it installs stuff as root
7009 for ac_prog in ginstall scoinst install; do
7010 for ac_exec_ext in '' $ac_executable_extensions; do
7011 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7012 if test $ac_prog = install &&
7013 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7014 # AIX install. It has an incompatible calling convention.
7016 elif test $ac_prog = install &&
7017 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7018 # program-specific install script used by HP pwplus--don't use.
7021 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7034 if test "${ac_cv_path_install+set}" = set; then
7035 INSTALL=$ac_cv_path_install
7037 # As a last resort, use the slow shell script. Don't cache a
7038 # value for INSTALL within a source directory, because that will
7039 # break other packages using the cache if that directory is
7040 # removed, or if the value is a relative name.
7041 INSTALL=$ac_install_sh
7044 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7045 echo "${ECHO_T}$INSTALL" >&6; }
7047 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7048 # It thinks the first close brace ends the variable substitution.
7049 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7051 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7053 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7056 [\\/$]* | ?:[\\/]* ) ;;
7057 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7060 # Extract the first word of "bzip2", so it can be a program name with args.
7061 set dummy bzip2; ac_word=$2
7062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7064 if test "${ac_cv_path_BZIP2+set}" = set; then
7065 echo $ECHO_N "(cached) $ECHO_C" >&6
7069 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7076 test -z "$as_dir" && as_dir=.
7077 for ac_exec_ext in '' $ac_executable_extensions; do
7078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7079 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7090 BZIP2=$ac_cv_path_BZIP2
7091 if test -n "$BZIP2"; then
7092 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7093 echo "${ECHO_T}$BZIP2" >&6; }
7095 { echo "$as_me:$LINENO: result: no" >&5
7096 echo "${ECHO_T}no" >&6; }
7100 # Extract the first word of "cat", so it can be a program name with args.
7101 set dummy cat; ac_word=$2
7102 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7104 if test "${ac_cv_path_CAT+set}" = set; then
7105 echo $ECHO_N "(cached) $ECHO_C" >&6
7109 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7116 test -z "$as_dir" && as_dir=.
7117 for ac_exec_ext in '' $ac_executable_extensions; do
7118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7119 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7131 if test -n "$CAT"; then
7132 { echo "$as_me:$LINENO: result: $CAT" >&5
7133 echo "${ECHO_T}$CAT" >&6; }
7135 { echo "$as_me:$LINENO: result: no" >&5
7136 echo "${ECHO_T}no" >&6; }
7140 # Extract the first word of "doxygen", so it can be a program name with args.
7141 set dummy doxygen; ac_word=$2
7142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7144 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7145 echo $ECHO_N "(cached) $ECHO_C" >&6
7149 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7156 test -z "$as_dir" && as_dir=.
7157 for ac_exec_ext in '' $ac_executable_extensions; do
7158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7159 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7170 DOXYGEN=$ac_cv_path_DOXYGEN
7171 if test -n "$DOXYGEN"; then
7172 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7173 echo "${ECHO_T}$DOXYGEN" >&6; }
7175 { echo "$as_me:$LINENO: result: no" >&5
7176 echo "${ECHO_T}no" >&6; }
7180 # Extract the first word of "groff", so it can be a program name with args.
7181 set dummy groff; ac_word=$2
7182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7184 if test "${ac_cv_path_GROFF+set}" = set; then
7185 echo $ECHO_N "(cached) $ECHO_C" >&6
7189 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7196 test -z "$as_dir" && as_dir=.
7197 for ac_exec_ext in '' $ac_executable_extensions; do
7198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7199 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7210 GROFF=$ac_cv_path_GROFF
7211 if test -n "$GROFF"; then
7212 { echo "$as_me:$LINENO: result: $GROFF" >&5
7213 echo "${ECHO_T}$GROFF" >&6; }
7215 { echo "$as_me:$LINENO: result: no" >&5
7216 echo "${ECHO_T}no" >&6; }
7220 # Extract the first word of "gzip", so it can be a program name with args.
7221 set dummy gzip; ac_word=$2
7222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7224 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7225 echo $ECHO_N "(cached) $ECHO_C" >&6
7229 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236 test -z "$as_dir" && as_dir=.
7237 for ac_exec_ext in '' $ac_executable_extensions; do
7238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7239 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7250 GZIPBIN=$ac_cv_path_GZIPBIN
7251 if test -n "$GZIPBIN"; then
7252 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7253 echo "${ECHO_T}$GZIPBIN" >&6; }
7255 { echo "$as_me:$LINENO: result: no" >&5
7256 echo "${ECHO_T}no" >&6; }
7260 # Extract the first word of "pod2html", so it can be a program name with args.
7261 set dummy pod2html; ac_word=$2
7262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7264 if test "${ac_cv_path_POD2HTML+set}" = set; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
7269 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276 test -z "$as_dir" && as_dir=.
7277 for ac_exec_ext in '' $ac_executable_extensions; do
7278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7279 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7290 POD2HTML=$ac_cv_path_POD2HTML
7291 if test -n "$POD2HTML"; then
7292 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7293 echo "${ECHO_T}$POD2HTML" >&6; }
7295 { echo "$as_me:$LINENO: result: no" >&5
7296 echo "${ECHO_T}no" >&6; }
7300 # Extract the first word of "pod2man", so it can be a program name with args.
7301 set dummy pod2man; ac_word=$2
7302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7304 if test "${ac_cv_path_POD2MAN+set}" = set; then
7305 echo $ECHO_N "(cached) $ECHO_C" >&6
7309 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316 test -z "$as_dir" && as_dir=.
7317 for ac_exec_ext in '' $ac_executable_extensions; do
7318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7319 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7330 POD2MAN=$ac_cv_path_POD2MAN
7331 if test -n "$POD2MAN"; then
7332 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7333 echo "${ECHO_T}$POD2MAN" >&6; }
7335 { echo "$as_me:$LINENO: result: no" >&5
7336 echo "${ECHO_T}no" >&6; }
7340 # Extract the first word of "pdfroff", so it can be a program name with args.
7341 set dummy pdfroff; ac_word=$2
7342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7344 if test "${ac_cv_path_PDFROFF+set}" = set; then
7345 echo $ECHO_N "(cached) $ECHO_C" >&6
7349 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356 test -z "$as_dir" && as_dir=.
7357 for ac_exec_ext in '' $ac_executable_extensions; do
7358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7359 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7370 PDFROFF=$ac_cv_path_PDFROFF
7371 if test -n "$PDFROFF"; then
7372 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7373 echo "${ECHO_T}$PDFROFF" >&6; }
7375 { echo "$as_me:$LINENO: result: no" >&5
7376 echo "${ECHO_T}no" >&6; }
7380 # Extract the first word of "runtest", so it can be a program name with args.
7381 set dummy runtest; ac_word=$2
7382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7384 if test "${ac_cv_path_RUNTEST+set}" = set; then
7385 echo $ECHO_N "(cached) $ECHO_C" >&6
7389 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7396 test -z "$as_dir" && as_dir=.
7397 for ac_exec_ext in '' $ac_executable_extensions; do
7398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7399 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7410 RUNTEST=$ac_cv_path_RUNTEST
7411 if test -n "$RUNTEST"; then
7412 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7413 echo "${ECHO_T}$RUNTEST" >&6; }
7415 { echo "$as_me:$LINENO: result: no" >&5
7416 echo "${ECHO_T}no" >&6; }
7422 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7423 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7425 # Check whether --with-tclinclude was given.
7426 if test "${with_tclinclude+set}" = set; then
7427 withval=$with_tclinclude; with_tclinclude=${withval}
7432 if test "${ac_cv_path_tclsh+set}" = set; then
7433 echo $ECHO_N "(cached) $ECHO_C" >&6
7436 if test x"${with_tclinclude}" != x ; then
7437 if test -f ${with_tclinclude}/tclsh ; then
7438 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7439 elif test -f ${with_tclinclude}/src/tclsh ; then
7440 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7442 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7443 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7444 { (exit 1); exit 1; }; }
7450 if test x"${ac_cv_path_tclsh}" = x ; then
7451 { echo "$as_me:$LINENO: result: none" >&5
7452 echo "${ECHO_T}none" >&6; }
7453 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
7455 # Extract the first word of "$ac_prog", so it can be a program name with args.
7456 set dummy $ac_prog; ac_word=$2
7457 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7459 if test "${ac_cv_path_TCLSH+set}" = set; then
7460 echo $ECHO_N "(cached) $ECHO_C" >&6
7464 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7471 test -z "$as_dir" && as_dir=.
7472 for ac_exec_ext in '' $ac_executable_extensions; do
7473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7474 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7485 TCLSH=$ac_cv_path_TCLSH
7486 if test -n "$TCLSH"; then
7487 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7488 echo "${ECHO_T}$TCLSH" >&6; }
7490 { echo "$as_me:$LINENO: result: no" >&5
7491 echo "${ECHO_T}no" >&6; }
7495 test -n "$TCLSH" && break
7498 if test x"${TCLSH}" = x ; then
7499 ac_cv_path_tclsh='';
7501 ac_cv_path_tclsh="${TCLSH}";
7504 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7505 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7506 TCLSH="${ac_cv_path_tclsh}"
7510 # Extract the first word of "zip", so it can be a program name with args.
7511 set dummy zip; ac_word=$2
7512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7514 if test "${ac_cv_path_ZIP+set}" = set; then
7515 echo $ECHO_N "(cached) $ECHO_C" >&6
7519 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7526 test -z "$as_dir" && as_dir=.
7527 for ac_exec_ext in '' $ac_executable_extensions; do
7528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7529 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7541 if test -n "$ZIP"; then
7542 { echo "$as_me:$LINENO: result: $ZIP" >&5
7543 echo "${ECHO_T}$ZIP" >&6; }
7545 { echo "$as_me:$LINENO: result: no" >&5
7546 echo "${ECHO_T}no" >&6; }
7550 for ac_prog in ocamlc
7552 # Extract the first word of "$ac_prog", so it can be a program name with args.
7553 set dummy $ac_prog; ac_word=$2
7554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7556 if test "${ac_cv_path_OCAMLC+set}" = set; then
7557 echo $ECHO_N "(cached) $ECHO_C" >&6
7561 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7568 test -z "$as_dir" && as_dir=.
7569 for ac_exec_ext in '' $ac_executable_extensions; do
7570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7571 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7582 OCAMLC=$ac_cv_path_OCAMLC
7583 if test -n "$OCAMLC"; then
7584 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7585 echo "${ECHO_T}$OCAMLC" >&6; }
7587 { echo "$as_me:$LINENO: result: no" >&5
7588 echo "${ECHO_T}no" >&6; }
7592 test -n "$OCAMLC" && break
7595 for ac_prog in ocamlopt
7597 # Extract the first word of "$ac_prog", so it can be a program name with args.
7598 set dummy $ac_prog; ac_word=$2
7599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7601 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7602 echo $ECHO_N "(cached) $ECHO_C" >&6
7606 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613 test -z "$as_dir" && as_dir=.
7614 for ac_exec_ext in '' $ac_executable_extensions; do
7615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7616 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7627 OCAMLOPT=$ac_cv_path_OCAMLOPT
7628 if test -n "$OCAMLOPT"; then
7629 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7630 echo "${ECHO_T}$OCAMLOPT" >&6; }
7632 { echo "$as_me:$LINENO: result: no" >&5
7633 echo "${ECHO_T}no" >&6; }
7637 test -n "$OCAMLOPT" && break
7640 for ac_prog in ocamldep
7642 # Extract the first word of "$ac_prog", so it can be a program name with args.
7643 set dummy $ac_prog; ac_word=$2
7644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7646 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7647 echo $ECHO_N "(cached) $ECHO_C" >&6
7651 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7658 test -z "$as_dir" && as_dir=.
7659 for ac_exec_ext in '' $ac_executable_extensions; do
7660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7661 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7672 OCAMLDEP=$ac_cv_path_OCAMLDEP
7673 if test -n "$OCAMLDEP"; then
7674 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7675 echo "${ECHO_T}$OCAMLDEP" >&6; }
7677 { echo "$as_me:$LINENO: result: no" >&5
7678 echo "${ECHO_T}no" >&6; }
7682 test -n "$OCAMLDEP" && break
7685 for ac_prog in ocamldoc
7687 # Extract the first word of "$ac_prog", so it can be a program name with args.
7688 set dummy $ac_prog; ac_word=$2
7689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7691 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7692 echo $ECHO_N "(cached) $ECHO_C" >&6
7696 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7703 test -z "$as_dir" && as_dir=.
7704 for ac_exec_ext in '' $ac_executable_extensions; do
7705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7706 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7717 OCAMLDOC=$ac_cv_path_OCAMLDOC
7718 if test -n "$OCAMLDOC"; then
7719 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7720 echo "${ECHO_T}$OCAMLDOC" >&6; }
7722 { echo "$as_me:$LINENO: result: no" >&5
7723 echo "${ECHO_T}no" >&6; }
7727 test -n "$OCAMLDOC" && break
7730 for ac_prog in gas as
7732 # Extract the first word of "$ac_prog", so it can be a program name with args.
7733 set dummy $ac_prog; ac_word=$2
7734 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7736 if test "${ac_cv_path_GAS+set}" = set; then
7737 echo $ECHO_N "(cached) $ECHO_C" >&6
7741 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7748 test -z "$as_dir" && as_dir=.
7749 for ac_exec_ext in '' $ac_executable_extensions; do
7750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7751 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7763 if test -n "$GAS"; then
7764 { echo "$as_me:$LINENO: result: $GAS" >&5
7765 echo "${ECHO_T}$GAS" >&6; }
7767 { echo "$as_me:$LINENO: result: no" >&5
7768 echo "${ECHO_T}no" >&6; }
7772 test -n "$GAS" && break
7776 { echo "$as_me:$LINENO: checking for linker version" >&5
7777 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7778 if test "${llvm_cv_link_version+set}" = set; then
7779 echo $ECHO_N "(cached) $ECHO_C" >&6
7782 version_string="$(ld -v 2>&1 | head -1)"
7785 if (echo "$version_string" | grep -q "ld64"); then
7786 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7788 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7792 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7793 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7795 cat >>confdefs.h <<_ACEOF
7796 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7801 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7802 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7803 if test "${llvm_cv_link_use_r+set}" = set; then
7804 echo $ECHO_N "(cached) $ECHO_C" >&6
7807 ac_cpp='$CPP $CPPFLAGS'
7808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7813 CFLAGS="$CFLAGS -Wl,-R."
7814 cat >conftest.$ac_ext <<_ACEOF
7817 cat confdefs.h >>conftest.$ac_ext
7818 cat >>conftest.$ac_ext <<_ACEOF
7819 /* end confdefs.h. */
7829 rm -f conftest.$ac_objext conftest$ac_exeext
7830 if { (ac_try="$ac_link"
7832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7833 *) ac_try_echo=$ac_try;;
7835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7836 (eval "$ac_link") 2>conftest.er1
7838 grep -v '^ *+' conftest.er1 >conftest.err
7840 cat conftest.err >&5
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); } &&
7843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7844 { (case "(($ac_try" in
7845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7846 *) ac_try_echo=$ac_try;;
7848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7849 (eval "$ac_try") 2>&5
7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852 (exit $ac_status); }; } &&
7853 { ac_try='test -s conftest$ac_exeext'
7854 { (case "(($ac_try" in
7855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7856 *) ac_try_echo=$ac_try;;
7858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7859 (eval "$ac_try") 2>&5
7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); }; }; then
7863 llvm_cv_link_use_r=yes
7865 echo "$as_me: failed program was:" >&5
7866 sed 's/^/| /' conftest.$ac_ext >&5
7868 llvm_cv_link_use_r=no
7871 rm -f core conftest.err conftest.$ac_objext \
7872 conftest$ac_exeext conftest.$ac_ext
7875 ac_cpp='$CPP $CPPFLAGS'
7876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7882 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7883 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7884 if test "$llvm_cv_link_use_r" = yes ; then
7886 cat >>confdefs.h <<\_ACEOF
7887 #define HAVE_LINK_R 1
7893 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7894 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7895 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7896 echo $ECHO_N "(cached) $ECHO_C" >&6
7899 ac_cpp='$CPP $CPPFLAGS'
7900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7905 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7906 cat >conftest.$ac_ext <<_ACEOF
7909 cat confdefs.h >>conftest.$ac_ext
7910 cat >>conftest.$ac_ext <<_ACEOF
7911 /* end confdefs.h. */
7921 rm -f conftest.$ac_objext conftest$ac_exeext
7922 if { (ac_try="$ac_link"
7924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7925 *) ac_try_echo=$ac_try;;
7927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7928 (eval "$ac_link") 2>conftest.er1
7930 grep -v '^ *+' conftest.er1 >conftest.err
7932 cat conftest.err >&5
7933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); } &&
7935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7936 { (case "(($ac_try" in
7937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7938 *) ac_try_echo=$ac_try;;
7940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7941 (eval "$ac_try") 2>&5
7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944 (exit $ac_status); }; } &&
7945 { ac_try='test -s conftest$ac_exeext'
7946 { (case "(($ac_try" in
7947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7948 *) ac_try_echo=$ac_try;;
7950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7951 (eval "$ac_try") 2>&5
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); }; }; then
7955 llvm_cv_link_use_export_dynamic=yes
7957 echo "$as_me: failed program was:" >&5
7958 sed 's/^/| /' conftest.$ac_ext >&5
7960 llvm_cv_link_use_export_dynamic=no
7963 rm -f core conftest.err conftest.$ac_objext \
7964 conftest$ac_exeext conftest.$ac_ext
7967 ac_cpp='$CPP $CPPFLAGS'
7968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7974 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7975 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7976 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7978 cat >>confdefs.h <<\_ACEOF
7979 #define HAVE_LINK_EXPORT_DYNAMIC 1
7985 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7986 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7987 if test "${llvm_cv_link_use_version_script+set}" = set; then
7988 echo $ECHO_N "(cached) $ECHO_C" >&6
7991 ac_cpp='$CPP $CPPFLAGS'
7992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7998 # The following code is from the autoconf manual,
7999 # "11.13: Limitations of Usual Tools".
8000 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8001 # Use mktemp if possible; otherwise fall back on mkdir,
8002 # with $RANDOM to make collisions less likely.
8006 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8008 test -n "$tmp" && test -d "$tmp"
8010 tmp=$TMPDIR/foo$$-$RANDOM
8011 (umask 077 && mkdir "$tmp")
8014 echo "{" > "$tmp/export.map"
8015 echo " global: main;" >> "$tmp/export.map"
8016 echo " local: *;" >> "$tmp/export.map"
8017 echo "};" >> "$tmp/export.map"
8019 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8020 cat >conftest.$ac_ext <<_ACEOF
8023 cat confdefs.h >>conftest.$ac_ext
8024 cat >>conftest.$ac_ext <<_ACEOF
8025 /* end confdefs.h. */
8035 rm -f conftest.$ac_objext conftest$ac_exeext
8036 if { (ac_try="$ac_link"
8038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8039 *) ac_try_echo=$ac_try;;
8041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8042 (eval "$ac_link") 2>conftest.er1
8044 grep -v '^ *+' conftest.er1 >conftest.err
8046 cat conftest.err >&5
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); } &&
8049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8050 { (case "(($ac_try" in
8051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8052 *) ac_try_echo=$ac_try;;
8054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8055 (eval "$ac_try") 2>&5
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); }; } &&
8059 { ac_try='test -s conftest$ac_exeext'
8060 { (case "(($ac_try" in
8061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8062 *) ac_try_echo=$ac_try;;
8064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8065 (eval "$ac_try") 2>&5
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 (exit $ac_status); }; }; then
8069 llvm_cv_link_use_version_script=yes
8071 echo "$as_me: failed program was:" >&5
8072 sed 's/^/| /' conftest.$ac_ext >&5
8074 llvm_cv_link_use_version_script=no
8077 rm -f core conftest.err conftest.$ac_objext \
8078 conftest$ac_exeext conftest.$ac_ext
8079 rm "$tmp/export.map"
8083 ac_cpp='$CPP $CPPFLAGS'
8084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8090 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8091 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8092 if test "$llvm_cv_link_use_version_script" = yes ; then
8093 HAVE_LINK_VERSION_SCRIPT=1
8100 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8101 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8102 if test "${ac_cv_c_const+set}" = set; then
8103 echo $ECHO_N "(cached) $ECHO_C" >&6
8105 cat >conftest.$ac_ext <<_ACEOF
8108 cat confdefs.h >>conftest.$ac_ext
8109 cat >>conftest.$ac_ext <<_ACEOF
8110 /* end confdefs.h. */
8115 /* FIXME: Include the comments suggested by Paul. */
8117 /* Ultrix mips cc rejects this. */
8118 typedef int charset[2];
8120 /* SunOS 4.1.1 cc rejects this. */
8121 char const *const *ccp;
8123 /* NEC SVR4.0.2 mips cc rejects this. */
8124 struct point {int x, y;};
8125 static struct point const zero = {0,0};
8126 /* AIX XL C 1.02.0.0 rejects this.
8127 It does not let you subtract one const X* pointer from another in
8128 an arm of an if-expression whose if-part is not a constant
8130 const char *g = "string";
8131 ccp = &g + (g ? g-g : 0);
8132 /* HPUX 7.0 cc rejects these. */
8135 ccp = (char const *const *) p;
8136 { /* SCO 3.2v4 cc rejects this. */
8138 char const *s = 0 ? (char *) 0 : (char const *) 0;
8143 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8145 const int *foo = &x[0];
8148 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8149 typedef const int *iptr;
8153 { /* AIX XL C 1.02.0.0 rejects this saying
8154 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8155 struct s { int j; const int *ap[3]; };
8156 struct s *b; b->j = 5;
8158 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8162 return !x[0] && !zero.x;
8169 rm -f conftest.$ac_objext
8170 if { (ac_try="$ac_compile"
8172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8173 *) ac_try_echo=$ac_try;;
8175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8176 (eval "$ac_compile") 2>conftest.er1
8178 grep -v '^ *+' conftest.er1 >conftest.err
8180 cat conftest.err >&5
8181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182 (exit $ac_status); } &&
8183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8184 { (case "(($ac_try" in
8185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8186 *) ac_try_echo=$ac_try;;
8188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8189 (eval "$ac_try") 2>&5
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); }; } &&
8193 { ac_try='test -s conftest.$ac_objext'
8194 { (case "(($ac_try" in
8195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8196 *) ac_try_echo=$ac_try;;
8198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8199 (eval "$ac_try") 2>&5
8201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 (exit $ac_status); }; }; then
8205 echo "$as_me: failed program was:" >&5
8206 sed 's/^/| /' conftest.$ac_ext >&5
8211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8213 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8214 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8215 if test $ac_cv_c_const = no; then
8217 cat >>confdefs.h <<\_ACEOF
8229 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8230 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8231 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8232 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8234 echo $ECHO_N "(cached) $ECHO_C" >&6
8236 cat >conftest.$ac_ext <<_ACEOF
8239 cat confdefs.h >>conftest.$ac_ext
8240 cat >>conftest.$ac_ext <<_ACEOF
8241 /* end confdefs.h. */
8242 #include <sys/types.h>
8254 rm -f conftest.$ac_objext
8255 if { (ac_try="$ac_compile"
8257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8258 *) ac_try_echo=$ac_try;;
8260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8261 (eval "$ac_compile") 2>conftest.er1
8263 grep -v '^ *+' conftest.er1 >conftest.err
8265 cat conftest.err >&5
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); } &&
8268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8269 { (case "(($ac_try" in
8270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8271 *) ac_try_echo=$ac_try;;
8273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8274 (eval "$ac_try") 2>&5
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); }; } &&
8278 { ac_try='test -s conftest.$ac_objext'
8279 { (case "(($ac_try" in
8280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8281 *) ac_try_echo=$ac_try;;
8283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8284 (eval "$ac_try") 2>&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); }; }; then
8288 eval "$as_ac_Header=yes"
8290 echo "$as_me: failed program was:" >&5
8291 sed 's/^/| /' conftest.$ac_ext >&5
8293 eval "$as_ac_Header=no"
8296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8298 ac_res=`eval echo '${'$as_ac_Header'}'`
8299 { echo "$as_me:$LINENO: result: $ac_res" >&5
8300 echo "${ECHO_T}$ac_res" >&6; }
8301 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8302 cat >>confdefs.h <<_ACEOF
8303 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8306 ac_header_dirent=$ac_hdr; break
8310 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8311 if test $ac_header_dirent = dirent.h; then
8312 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8313 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8314 if test "${ac_cv_search_opendir+set}" = set; then
8315 echo $ECHO_N "(cached) $ECHO_C" >&6
8317 ac_func_search_save_LIBS=$LIBS
8318 cat >conftest.$ac_ext <<_ACEOF
8321 cat confdefs.h >>conftest.$ac_ext
8322 cat >>conftest.$ac_ext <<_ACEOF
8323 /* end confdefs.h. */
8325 /* Override any GCC internal prototype to avoid an error.
8326 Use char because int might match the return type of a GCC
8327 builtin and then its argument prototype would still apply. */
8340 for ac_lib in '' dir; do
8341 if test -z "$ac_lib"; then
8342 ac_res="none required"
8345 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8347 rm -f conftest.$ac_objext conftest$ac_exeext
8348 if { (ac_try="$ac_link"
8350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8351 *) ac_try_echo=$ac_try;;
8353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8354 (eval "$ac_link") 2>conftest.er1
8356 grep -v '^ *+' conftest.er1 >conftest.err
8358 cat conftest.err >&5
8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 (exit $ac_status); } &&
8361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8362 { (case "(($ac_try" in
8363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8364 *) ac_try_echo=$ac_try;;
8366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8367 (eval "$ac_try") 2>&5
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); }; } &&
8371 { ac_try='test -s conftest$ac_exeext'
8372 { (case "(($ac_try" in
8373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8374 *) ac_try_echo=$ac_try;;
8376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8377 (eval "$ac_try") 2>&5
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); }; }; then
8381 ac_cv_search_opendir=$ac_res
8383 echo "$as_me: failed program was:" >&5
8384 sed 's/^/| /' conftest.$ac_ext >&5
8389 rm -f core conftest.err conftest.$ac_objext \
8391 if test "${ac_cv_search_opendir+set}" = set; then
8395 if test "${ac_cv_search_opendir+set}" = set; then
8398 ac_cv_search_opendir=no
8401 LIBS=$ac_func_search_save_LIBS
8403 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8404 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8405 ac_res=$ac_cv_search_opendir
8406 if test "$ac_res" != no; then
8407 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8412 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8413 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8414 if test "${ac_cv_search_opendir+set}" = set; then
8415 echo $ECHO_N "(cached) $ECHO_C" >&6
8417 ac_func_search_save_LIBS=$LIBS
8418 cat >conftest.$ac_ext <<_ACEOF
8421 cat confdefs.h >>conftest.$ac_ext
8422 cat >>conftest.$ac_ext <<_ACEOF
8423 /* end confdefs.h. */
8425 /* Override any GCC internal prototype to avoid an error.
8426 Use char because int might match the return type of a GCC
8427 builtin and then its argument prototype would still apply. */
8440 for ac_lib in '' x; do
8441 if test -z "$ac_lib"; then
8442 ac_res="none required"
8445 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8447 rm -f conftest.$ac_objext conftest$ac_exeext
8448 if { (ac_try="$ac_link"
8450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8451 *) ac_try_echo=$ac_try;;
8453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8454 (eval "$ac_link") 2>conftest.er1
8456 grep -v '^ *+' conftest.er1 >conftest.err
8458 cat conftest.err >&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); } &&
8461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8462 { (case "(($ac_try" in
8463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8464 *) ac_try_echo=$ac_try;;
8466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8467 (eval "$ac_try") 2>&5
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); }; } &&
8471 { ac_try='test -s conftest$ac_exeext'
8472 { (case "(($ac_try" in
8473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8474 *) ac_try_echo=$ac_try;;
8476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8477 (eval "$ac_try") 2>&5
8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480 (exit $ac_status); }; }; then
8481 ac_cv_search_opendir=$ac_res
8483 echo "$as_me: failed program was:" >&5
8484 sed 's/^/| /' conftest.$ac_ext >&5
8489 rm -f core conftest.err conftest.$ac_objext \
8491 if test "${ac_cv_search_opendir+set}" = set; then
8495 if test "${ac_cv_search_opendir+set}" = set; then
8498 ac_cv_search_opendir=no
8501 LIBS=$ac_func_search_save_LIBS
8503 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8504 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8505 ac_res=$ac_cv_search_opendir
8506 if test "$ac_res" != no; then
8507 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8514 for ac_header in dlfcn.h
8516 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8518 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8521 echo $ECHO_N "(cached) $ECHO_C" >&6
8523 ac_res=`eval echo '${'$as_ac_Header'}'`
8524 { echo "$as_me:$LINENO: result: $ac_res" >&5
8525 echo "${ECHO_T}$ac_res" >&6; }
8527 # Is the header compilable?
8528 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8529 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8530 cat >conftest.$ac_ext <<_ACEOF
8533 cat confdefs.h >>conftest.$ac_ext
8534 cat >>conftest.$ac_ext <<_ACEOF
8535 /* end confdefs.h. */
8536 $ac_includes_default
8537 #include <$ac_header>
8539 rm -f conftest.$ac_objext
8540 if { (ac_try="$ac_compile"
8542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8543 *) ac_try_echo=$ac_try;;
8545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8546 (eval "$ac_compile") 2>conftest.er1
8548 grep -v '^ *+' conftest.er1 >conftest.err
8550 cat conftest.err >&5
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); } &&
8553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8554 { (case "(($ac_try" in
8555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8556 *) ac_try_echo=$ac_try;;
8558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8559 (eval "$ac_try") 2>&5
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 (exit $ac_status); }; } &&
8563 { ac_try='test -s conftest.$ac_objext'
8564 { (case "(($ac_try" in
8565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8566 *) ac_try_echo=$ac_try;;
8568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8569 (eval "$ac_try") 2>&5
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); }; }; then
8573 ac_header_compiler=yes
8575 echo "$as_me: failed program was:" >&5
8576 sed 's/^/| /' conftest.$ac_ext >&5
8578 ac_header_compiler=no
8581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8582 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8583 echo "${ECHO_T}$ac_header_compiler" >&6; }
8585 # Is the header present?
8586 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8587 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8588 cat >conftest.$ac_ext <<_ACEOF
8591 cat confdefs.h >>conftest.$ac_ext
8592 cat >>conftest.$ac_ext <<_ACEOF
8593 /* end confdefs.h. */
8594 #include <$ac_header>
8596 if { (ac_try="$ac_cpp conftest.$ac_ext"
8598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8599 *) ac_try_echo=$ac_try;;
8601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8604 grep -v '^ *+' conftest.er1 >conftest.err
8606 cat conftest.err >&5
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); } >/dev/null; then
8609 if test -s conftest.err; then
8610 ac_cpp_err=$ac_c_preproc_warn_flag
8611 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8618 if test -z "$ac_cpp_err"; then
8619 ac_header_preproc=yes
8621 echo "$as_me: failed program was:" >&5
8622 sed 's/^/| /' conftest.$ac_ext >&5
8624 ac_header_preproc=no
8627 rm -f conftest.err conftest.$ac_ext
8628 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8629 echo "${ECHO_T}$ac_header_preproc" >&6; }
8631 # So? What about this header?
8632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8634 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8635 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8637 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8638 ac_header_preproc=yes
8641 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8642 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8643 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8644 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8645 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8646 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8647 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8648 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8650 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8651 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8652 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8654 ## ------------------------------------ ##
8655 ## Report this to http://llvm.org/bugs/ ##
8656 ## ------------------------------------ ##
8658 ) | sed "s/^/$as_me: WARNING: /" >&2
8661 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8664 echo $ECHO_N "(cached) $ECHO_C" >&6
8666 eval "$as_ac_Header=\$ac_header_preproc"
8668 ac_res=`eval echo '${'$as_ac_Header'}'`
8669 { echo "$as_me:$LINENO: result: $ac_res" >&5
8670 echo "${ECHO_T}$ac_res" >&6; }
8673 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8674 cat >>confdefs.h <<_ACEOF
8675 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8682 # Check whether --enable-ltdl-install was given.
8683 if test "${enable_ltdl_install+set}" = set; then
8684 enableval=$enable_ltdl_install;
8690 if test x"${enable_ltdl_install-no}" != xno; then
8692 INSTALL_LTDL_FALSE='#'
8694 INSTALL_LTDL_TRUE='#'
8700 if test x"${enable_ltdl_convenience-no}" != xno; then
8701 CONVENIENCE_LTDL_TRUE=
8702 CONVENIENCE_LTDL_FALSE='#'
8704 CONVENIENCE_LTDL_TRUE='#'
8705 CONVENIENCE_LTDL_FALSE=
8709 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8710 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8712 libname_spec='lib$name'
8720 shlibpath_overrides_runpath=unknown
8722 dynamic_linker="$host_os ld.so"
8723 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8724 if test "$GCC" = yes; then
8725 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8726 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8727 # if the path contains ";" then we assume it to be the separator
8728 # otherwise default to the standard path separator (i.e. ":") - it is
8729 # assumed that no part of a normal pathname contains ";" but that should
8730 # okay in the real world where ";" in dirpaths is itself problematic.
8731 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8733 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8736 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8738 need_lib_prefix=unknown
8739 hardcode_into_libs=no
8741 # when you set need_version to no, make sure it does not cause -set_version
8742 # flags to be left without arguments
8743 need_version=unknown
8748 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8749 shlibpath_var=LIBPATH
8751 # AIX 3 has no versioning support, so we append a major version to the name.
8752 soname_spec='${libname}${release}${shared_ext}$major'
8759 hardcode_into_libs=yes
8760 if test "$host_cpu" = ia64; then
8761 # AIX 5 supports IA64
8762 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8763 shlibpath_var=LD_LIBRARY_PATH
8765 # With GCC up to 2.95.x, collect2 would create an import file
8766 # for dependence libraries. The import file would start with
8767 # the line `#! .'. This would cause the generated library to
8768 # depend on `.', always an invalid library. This was fixed in
8769 # development snapshots of GCC prior to 3.0.
8771 aix4 | aix4.[01] | aix4.[01].*)
8772 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8774 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8781 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8782 # soname into executable. Probably we can add versioning support to
8783 # collect2, so additional links can be useful in future.
8784 if test "$aix_use_runtimelinking" = yes; then
8785 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8786 # instead of lib<name>.a to let people know that these are not
8787 # typical AIX shared libraries.
8788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8790 # We preserve .a as extension for shared libraries through AIX4.2
8791 # and later when we are not doing run time linking.
8792 library_names_spec='${libname}${release}.a $libname.a'
8793 soname_spec='${libname}${release}${shared_ext}$major'
8795 shlibpath_var=LIBPATH
8800 library_names_spec='$libname.ixlibrary $libname.a'
8801 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8802 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'
8806 library_names_spec='${libname}${shared_ext}'
8807 dynamic_linker="$host_os ld.so"
8808 shlibpath_var=LIBRARY_PATH
8814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8815 soname_spec='${libname}${release}${shared_ext}$major'
8816 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8817 shlibpath_var=LD_LIBRARY_PATH
8818 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8819 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8820 # the default ld.so.conf also contains /usr/contrib/lib and
8821 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8822 # libtool to hard-code these into programs
8825 cygwin* | mingw* | pw32*)
8826 version_type=windows
8831 case $GCC,$host_os in
8832 yes,cygwin* | yes,mingw* | yes,pw32*)
8833 library_names_spec='$libname.dll.a'
8834 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8835 postinstall_cmds='base_file=`basename \${file}`~
8836 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8837 dldir=$destdir/`dirname \$dlpath`~
8838 test -d \$dldir || mkdir -p \$dldir~
8839 $install_prog $dir/$dlname \$dldir/$dlname~
8840 chmod a+x \$dldir/$dlname'
8841 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8842 dlpath=$dir/\$dldll~
8844 shlibpath_overrides_runpath=yes
8848 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8849 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8850 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8853 # MinGW DLLs use traditional 'lib' prefix
8854 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8855 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8856 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8857 # It is most probably a Windows format PATH printed by
8858 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8859 # path with ; separators, and with drive letters. We can handle the
8860 # drive letters (cygwin fileutils understands them), so leave them,
8861 # especially as we might pass files found there to a mingw objdump,
8862 # which wouldn't understand a cygwinified path. Ahh.
8863 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8865 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8869 # pw32 DLLs use 'pw' prefix rather than 'lib'
8870 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8876 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8879 dynamic_linker='Win32 ld.exe'
8880 # FIXME: first we should search . and the directory the executable is in
8884 darwin* | rhapsody*)
8885 dynamic_linker="$host_os dyld"
8889 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8890 soname_spec='${libname}${release}${major}$shared_ext'
8891 shlibpath_overrides_runpath=yes
8892 shlibpath_var=DYLD_LIBRARY_PATH
8893 shrext_cmds='.dylib'
8894 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8895 if test "$GCC" = yes; then
8896 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"`
8898 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8900 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8908 soname_spec='${libname}${release}${shared_ext}$major'
8909 shlibpath_var=LD_LIBRARY_PATH
8920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8921 soname_spec='${libname}${release}${shared_ext}$major'
8922 shlibpath_var=LD_LIBRARY_PATH
8923 shlibpath_overrides_runpath=no
8924 hardcode_into_libs=yes
8925 dynamic_linker='GNU ld.so'
8928 freebsd* | dragonfly*)
8929 # DragonFly does not have aout. When/if they implement a new
8930 # versioning mechanism, adjust this.
8931 if test -x /usr/bin/objformat; then
8932 objformat=`/usr/bin/objformat`
8935 freebsd[123].*) objformat=aout ;;
8939 version_type=freebsd-$objformat
8940 case $version_type in
8942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8947 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8951 shlibpath_var=LD_LIBRARY_PATH
8954 shlibpath_overrides_runpath=yes
8956 freebsd3.[01]* | freebsdelf3.[01]*)
8957 shlibpath_overrides_runpath=yes
8958 hardcode_into_libs=yes
8960 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8961 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8962 shlibpath_overrides_runpath=no
8963 hardcode_into_libs=yes
8965 freebsd*) # from 4.6 on
8966 shlibpath_overrides_runpath=yes
8967 hardcode_into_libs=yes
8976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8977 soname_spec='${libname}${release}${shared_ext}$major'
8978 shlibpath_var=LD_LIBRARY_PATH
8979 hardcode_into_libs=yes
8982 hpux9* | hpux10* | hpux11*)
8983 # Give a soname corresponding to the major version so that dld.sl refuses to
8984 # link against other versions.
8991 hardcode_into_libs=yes
8992 dynamic_linker="$host_os dld.so"
8993 shlibpath_var=LD_LIBRARY_PATH
8994 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8996 soname_spec='${libname}${release}${shared_ext}$major'
8997 if test "X$HPUX_IA64_MODE" = X32; then
8998 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9000 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9002 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9006 hardcode_into_libs=yes
9007 dynamic_linker="$host_os dld.sl"
9008 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9009 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9011 soname_spec='${libname}${release}${shared_ext}$major'
9012 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9013 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9017 dynamic_linker="$host_os dld.sl"
9018 shlibpath_var=SHLIB_PATH
9019 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
9024 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9025 postinstall_cmds='chmod 555 $lib'
9032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9033 soname_spec='${libname}${release}${shared_ext}$major'
9034 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9035 shlibpath_var=LD_LIBRARY_PATH
9036 shlibpath_overrides_runpath=no
9037 hardcode_into_libs=yes
9040 irix5* | irix6* | nonstopux*)
9042 nonstopux*) version_type=nonstopux ;;
9044 if test "$lt_cv_prog_gnu_ld" = yes; then
9052 soname_spec='${libname}${release}${shared_ext}$major'
9053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9055 irix5* | nonstopux*)
9059 case $LD in # libtool.m4 will add one of these switches to LD
9060 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9061 libsuff= shlibsuff= libmagic=32-bit;;
9062 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9063 libsuff=32 shlibsuff=N32 libmagic=N32;;
9064 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9065 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9066 *) libsuff= shlibsuff= libmagic=never-match;;
9070 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9071 shlibpath_overrides_runpath=no
9072 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9073 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9074 hardcode_into_libs=yes
9077 # No shared lib support for Linux oldld, aout, or coff.
9078 linux*oldld* | linux*aout* | linux*coff*)
9082 # This must be Linux ELF.
9087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9088 soname_spec='${libname}${release}${shared_ext}$major'
9089 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9090 shlibpath_var=LD_LIBRARY_PATH
9091 shlibpath_overrides_runpath=no
9092 # This implies no fast_install, which is unacceptable.
9093 # Some rework will be needed to allow for fast_install
9094 # before this can be enabled.
9095 hardcode_into_libs=yes
9097 # Append ld.so.conf contents to the search path
9098 if test -f /etc/ld.so.conf; then
9099 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' ' '`
9100 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9103 # We used to test for /lib/ld.so.1 and disable shared libraries on
9104 # powerpc, because MkLinux only supported shared libraries with the
9105 # GNU dynamic linker. Since this was broken with cross compilers,
9106 # most powerpc-linux boxes support dynamic linking these days and
9107 # people can always --disable-shared, the test was removed, and we
9108 # assume the GNU/Linux dynamic linker is in use.
9109 dynamic_linker='GNU/Linux ld.so'
9116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9117 soname_spec='${libname}${release}${shared_ext}$major'
9118 shlibpath_var=LD_LIBRARY_PATH
9119 shlibpath_overrides_runpath=no
9120 hardcode_into_libs=yes
9121 dynamic_linker='GNU ld.so'
9128 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9130 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9131 dynamic_linker='NetBSD (a.out) ld.so'
9133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9134 soname_spec='${libname}${release}${shared_ext}$major'
9135 dynamic_linker='NetBSD ld.elf_so'
9137 shlibpath_var=LD_LIBRARY_PATH
9138 shlibpath_overrides_runpath=yes
9139 hardcode_into_libs=yes
9144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9145 shlibpath_var=LD_LIBRARY_PATH
9146 shlibpath_overrides_runpath=yes
9153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9154 soname_spec='${libname}${release}${shared_ext}$major'
9155 shlibpath_var=LD_LIBRARY_PATH
9156 shlibpath_overrides_runpath=yes
9161 sys_lib_dlsearch_path_spec="/usr/lib"
9163 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9165 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9166 *) need_version=no ;;
9168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9169 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9170 shlibpath_var=LD_LIBRARY_PATH
9171 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9173 openbsd2.[89] | openbsd2.[89].*)
9174 shlibpath_overrides_runpath=no
9177 shlibpath_overrides_runpath=yes
9181 shlibpath_overrides_runpath=yes
9186 libname_spec='$name'
9189 library_names_spec='$libname${shared_ext} $libname.a'
9190 dynamic_linker='OS/2 ld.exe'
9191 shlibpath_var=LIBPATH
9194 osf3* | osf4* | osf5*)
9198 soname_spec='${libname}${release}${shared_ext}$major'
9199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9200 shlibpath_var=LD_LIBRARY_PATH
9201 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9202 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9210 soname_spec='${libname}${release}${shared_ext}$major'
9211 shlibpath_var=LD_LIBRARY_PATH
9212 shlibpath_overrides_runpath=yes
9213 hardcode_into_libs=yes
9214 # ldd complains unless libraries are executable
9215 postinstall_cmds='chmod +x $lib'
9220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9221 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9222 shlibpath_var=LD_LIBRARY_PATH
9223 shlibpath_overrides_runpath=yes
9224 if test "$with_gnu_ld" = yes; then
9232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9233 soname_spec='${libname}${release}${shared_ext}$major'
9234 shlibpath_var=LD_LIBRARY_PATH
9235 case $host_vendor in
9237 shlibpath_overrides_runpath=no
9239 export_dynamic_flag_spec='${wl}-Blargedynsym'
9240 runpath_var=LD_RUN_PATH
9248 shlibpath_overrides_runpath=no
9249 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9255 if test -d /usr/nec ;then
9257 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9258 soname_spec='$libname${shared_ext}.$major'
9259 shlibpath_var=LD_LIBRARY_PATH
9263 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9264 version_type=freebsd-elf
9267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9268 soname_spec='${libname}${release}${shared_ext}$major'
9269 shlibpath_var=LD_LIBRARY_PATH
9270 hardcode_into_libs=yes
9271 if test "$with_gnu_ld" = yes; then
9272 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9273 shlibpath_overrides_runpath=no
9275 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9276 shlibpath_overrides_runpath=yes
9279 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9283 sys_lib_dlsearch_path_spec='/usr/lib'
9288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9289 soname_spec='${libname}${release}${shared_ext}$major'
9290 shlibpath_var=LD_LIBRARY_PATH
9297 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9298 echo "${ECHO_T}$dynamic_linker" >&6; }
9299 test "$dynamic_linker" = no && can_build_shared=no
9301 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9302 if test "$GCC" = yes; then
9303 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9307 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9308 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9309 if test "${libltdl_cv_shlibext+set}" = set; then
9310 echo $ECHO_N "(cached) $ECHO_C" >&6
9314 eval libltdl_cv_shlibext=$shrext_cmds
9317 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9318 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9319 if test -n "$libltdl_cv_shlibext"; then
9321 cat >>confdefs.h <<_ACEOF
9322 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9328 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9329 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9330 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9331 echo $ECHO_N "(cached) $ECHO_C" >&6
9333 libltdl_cv_shlibpath_var="$shlibpath_var"
9335 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9336 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9337 if test -n "$libltdl_cv_shlibpath_var"; then
9339 cat >>confdefs.h <<_ACEOF
9340 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9346 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9347 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9348 if test "${libltdl_cv_sys_search_path+set}" = set; then
9349 echo $ECHO_N "(cached) $ECHO_C" >&6
9351 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9353 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9354 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9355 if test -n "$libltdl_cv_sys_search_path"; then
9357 for dir in $libltdl_cv_sys_search_path; do
9358 if test -z "$sys_search_path"; then
9359 sys_search_path="$dir"
9361 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9365 cat >>confdefs.h <<_ACEOF
9366 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9371 { echo "$as_me:$LINENO: checking for objdir" >&5
9372 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9373 if test "${libltdl_cv_objdir+set}" = set; then
9374 echo $ECHO_N "(cached) $ECHO_C" >&6
9376 libltdl_cv_objdir="$objdir"
9377 if test -n "$objdir"; then
9380 rm -f .libs 2>/dev/null
9381 mkdir .libs 2>/dev/null
9382 if test -d .libs; then
9383 libltdl_cv_objdir=.libs
9385 # MS-DOS does not allow filenames that begin with a dot.
9386 libltdl_cv_objdir=_libs
9388 rmdir .libs 2>/dev/null
9392 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9393 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9395 cat >>confdefs.h <<_ACEOF
9396 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9404 # Check for command to grab the raw symbol name followed by C symbol from nm.
9405 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9406 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9407 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9408 echo $ECHO_N "(cached) $ECHO_C" >&6
9411 # These are sane defaults that work on at least a few old systems.
9412 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9414 # Character class describing NM global symbol codes.
9415 symcode='[BCDEGRST]'
9417 # Regexp to match symbols that can be accessed directly from C.
9418 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9420 # Transform an extracted symbol line into a proper C declaration
9421 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9423 # Transform an extracted symbol line into symbol name and symbol address
9424 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'"
9426 # Define system-specific variables.
9431 cygwin* | mingw* | pw32*)
9432 symcode='[ABCDGISTW]'
9434 hpux*) # Its linker distinguishes data from code symbols
9435 if test "$host_cpu" = ia64; then
9436 symcode='[ABCDEGRST]'
9438 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9439 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'"
9442 if test "$host_cpu" = ia64; then
9443 symcode='[ABCDGIRSTW]'
9444 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9445 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'"
9449 symcode='[BCDEGRST]'
9452 symcode='[BCDEGQRST]'
9463 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9471 # Handle CRLF in mingw tool chain
9475 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9479 # If we're using GNU nm, then use its standard symbol codes.
9480 case `$NM -V 2>&1` in
9481 *GNU* | *'with BFD'*)
9482 symcode='[ABCDGIRSTW]' ;;
9485 # Try without a prefix undercore, then with it.
9486 for ac_symprfx in "" "_"; do
9488 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9489 symxfrm="\\1 $ac_symprfx\\2 \\2"
9491 # Write the raw and C identifiers.
9492 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9494 # Check to see that the pipe works correctly.
9498 cat > conftest.$ac_ext <<EOF
9503 void nm_test_func(){}
9507 int main(){nm_test_var='a';nm_test_func();return(0);}
9510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9511 (eval $ac_compile) 2>&5
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); }; then
9515 # Now try to grab the symbols.
9517 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9518 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); } && test -s "$nlist"; then
9522 # Try sorting and uniquifying the output.
9523 if sort "$nlist" | uniq > "$nlist"T; then
9524 mv -f "$nlist"T "$nlist"
9529 # Make sure that we snagged all the symbols we need.
9530 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9531 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9532 cat <<EOF > conftest.$ac_ext
9538 # Now generate the symbol file.
9539 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9541 cat <<EOF >> conftest.$ac_ext
9542 #if defined (__STDC__) && __STDC__
9543 # define lt_ptr_t void *
9545 # define lt_ptr_t char *
9549 /* The mapping between symbol names and symbols. */
9554 lt_preloaded_symbols[] =
9557 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9558 cat <<\EOF >> conftest.$ac_ext
9566 # Now try linking the two files.
9567 mv conftest.$ac_objext conftstm.$ac_objext
9568 lt_save_LIBS="$LIBS"
9569 lt_save_CFLAGS="$CFLAGS"
9570 LIBS="conftstm.$ac_objext"
9571 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9573 (eval $ac_link) 2>&5
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9579 LIBS="$lt_save_LIBS"
9580 CFLAGS="$lt_save_CFLAGS"
9582 echo "cannot find nm_test_func in $nlist" >&5
9585 echo "cannot find nm_test_var in $nlist" >&5
9588 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9591 echo "$progname: failed program was:" >&5
9592 cat conftest.$ac_ext >&5
9594 rm -f conftest* conftst*
9596 # Do not use the global_symbol_pipe unless it works.
9597 if test "$pipe_works" = yes; then
9600 lt_cv_sys_global_symbol_pipe=
9606 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9607 lt_cv_sys_global_symbol_to_cdecl=
9609 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9610 { echo "$as_me:$LINENO: result: failed" >&5
9611 echo "${ECHO_T}failed" >&6; }
9613 { echo "$as_me:$LINENO: result: ok" >&5
9614 echo "${ECHO_T}ok" >&6; }
9618 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9619 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9620 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9621 echo $ECHO_N "(cached) $ECHO_C" >&6
9623 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9624 libltdl_cv_preloaded_symbols=yes
9626 libltdl_cv_preloaded_symbols=no
9630 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9631 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9632 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9634 cat >>confdefs.h <<\_ACEOF
9635 #define HAVE_PRELOADED_SYMBOLS 1
9643 ac_cpp='$CPP $CPPFLAGS'
9644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9649 { echo "$as_me:$LINENO: checking for shl_load" >&5
9650 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9651 if test "${ac_cv_func_shl_load+set}" = set; then
9652 echo $ECHO_N "(cached) $ECHO_C" >&6
9654 cat >conftest.$ac_ext <<_ACEOF
9657 cat confdefs.h >>conftest.$ac_ext
9658 cat >>conftest.$ac_ext <<_ACEOF
9659 /* end confdefs.h. */
9660 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9662 #define shl_load innocuous_shl_load
9664 /* System header to define __stub macros and hopefully few prototypes,
9665 which can conflict with char shl_load (); below.
9666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9667 <limits.h> exists even on freestanding compilers. */
9670 # include <limits.h>
9672 # include <assert.h>
9677 /* Override any GCC internal prototype to avoid an error.
9678 Use char because int might match the return type of a GCC
9679 builtin and then its argument prototype would still apply. */
9684 /* The GNU C library defines this for functions which it implements
9685 to always fail with ENOSYS. Some functions are actually named
9686 something starting with __ and the normal name is an alias. */
9687 #if defined __stub_shl_load || defined __stub___shl_load
9699 rm -f conftest.$ac_objext conftest$ac_exeext
9700 if { (ac_try="$ac_link"
9702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9703 *) ac_try_echo=$ac_try;;
9705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9706 (eval "$ac_link") 2>conftest.er1
9708 grep -v '^ *+' conftest.er1 >conftest.err
9710 cat conftest.err >&5
9711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712 (exit $ac_status); } &&
9713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9714 { (case "(($ac_try" in
9715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9716 *) ac_try_echo=$ac_try;;
9718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9719 (eval "$ac_try") 2>&5
9721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); }; } &&
9723 { ac_try='test -s conftest$ac_exeext'
9724 { (case "(($ac_try" in
9725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9726 *) ac_try_echo=$ac_try;;
9728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9729 (eval "$ac_try") 2>&5
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); }; }; then
9733 ac_cv_func_shl_load=yes
9735 echo "$as_me: failed program was:" >&5
9736 sed 's/^/| /' conftest.$ac_ext >&5
9738 ac_cv_func_shl_load=no
9741 rm -f core conftest.err conftest.$ac_objext \
9742 conftest$ac_exeext conftest.$ac_ext
9744 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9745 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9746 if test $ac_cv_func_shl_load = yes; then
9748 cat >>confdefs.h <<\_ACEOF
9749 #define HAVE_SHL_LOAD 1
9753 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9754 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9755 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9756 echo $ECHO_N "(cached) $ECHO_C" >&6
9758 ac_check_lib_save_LIBS=$LIBS
9760 cat >conftest.$ac_ext <<_ACEOF
9763 cat confdefs.h >>conftest.$ac_ext
9764 cat >>conftest.$ac_ext <<_ACEOF
9765 /* end confdefs.h. */
9767 /* Override any GCC internal prototype to avoid an error.
9768 Use char because int might match the return type of a GCC
9769 builtin and then its argument prototype would still apply. */
9782 rm -f conftest.$ac_objext conftest$ac_exeext
9783 if { (ac_try="$ac_link"
9785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9786 *) ac_try_echo=$ac_try;;
9788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9789 (eval "$ac_link") 2>conftest.er1
9791 grep -v '^ *+' conftest.er1 >conftest.err
9793 cat conftest.err >&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); } &&
9796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9797 { (case "(($ac_try" in
9798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9799 *) ac_try_echo=$ac_try;;
9801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9802 (eval "$ac_try") 2>&5
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); }; } &&
9806 { ac_try='test -s conftest$ac_exeext'
9807 { (case "(($ac_try" in
9808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9809 *) ac_try_echo=$ac_try;;
9811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9812 (eval "$ac_try") 2>&5
9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 (exit $ac_status); }; }; then
9816 ac_cv_lib_dld_shl_load=yes
9818 echo "$as_me: failed program was:" >&5
9819 sed 's/^/| /' conftest.$ac_ext >&5
9821 ac_cv_lib_dld_shl_load=no
9824 rm -f core conftest.err conftest.$ac_objext \
9825 conftest$ac_exeext conftest.$ac_ext
9826 LIBS=$ac_check_lib_save_LIBS
9828 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9829 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9830 if test $ac_cv_lib_dld_shl_load = yes; then
9832 cat >>confdefs.h <<\_ACEOF
9833 #define HAVE_SHL_LOAD 1
9836 LIBADD_DL="$LIBADD_DL -ldld"
9838 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9839 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9840 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9841 echo $ECHO_N "(cached) $ECHO_C" >&6
9843 ac_check_lib_save_LIBS=$LIBS
9845 cat >conftest.$ac_ext <<_ACEOF
9848 cat confdefs.h >>conftest.$ac_ext
9849 cat >>conftest.$ac_ext <<_ACEOF
9850 /* end confdefs.h. */
9852 /* Override any GCC internal prototype to avoid an error.
9853 Use char because int might match the return type of a GCC
9854 builtin and then its argument prototype would still apply. */
9867 rm -f conftest.$ac_objext conftest$ac_exeext
9868 if { (ac_try="$ac_link"
9870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9871 *) ac_try_echo=$ac_try;;
9873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9874 (eval "$ac_link") 2>conftest.er1
9876 grep -v '^ *+' conftest.er1 >conftest.err
9878 cat conftest.err >&5
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); } &&
9881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9882 { (case "(($ac_try" in
9883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9884 *) ac_try_echo=$ac_try;;
9886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9887 (eval "$ac_try") 2>&5
9889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890 (exit $ac_status); }; } &&
9891 { ac_try='test -s conftest$ac_exeext'
9892 { (case "(($ac_try" in
9893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9894 *) ac_try_echo=$ac_try;;
9896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9897 (eval "$ac_try") 2>&5
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 (exit $ac_status); }; }; then
9901 ac_cv_lib_dl_dlopen=yes
9903 echo "$as_me: failed program was:" >&5
9904 sed 's/^/| /' conftest.$ac_ext >&5
9906 ac_cv_lib_dl_dlopen=no
9909 rm -f core conftest.err conftest.$ac_objext \
9910 conftest$ac_exeext conftest.$ac_ext
9911 LIBS=$ac_check_lib_save_LIBS
9913 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9914 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9915 if test $ac_cv_lib_dl_dlopen = yes; then
9917 cat >>confdefs.h <<\_ACEOF
9918 #define HAVE_LIBDL 1
9921 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9923 cat >conftest.$ac_ext <<_ACEOF
9926 cat confdefs.h >>conftest.$ac_ext
9927 cat >>conftest.$ac_ext <<_ACEOF
9928 /* end confdefs.h. */
9941 rm -f conftest.$ac_objext conftest$ac_exeext
9942 if { (ac_try="$ac_link"
9944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9945 *) ac_try_echo=$ac_try;;
9947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9948 (eval "$ac_link") 2>conftest.er1
9950 grep -v '^ *+' conftest.er1 >conftest.err
9952 cat conftest.err >&5
9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 (exit $ac_status); } &&
9955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9956 { (case "(($ac_try" in
9957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9958 *) ac_try_echo=$ac_try;;
9960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9961 (eval "$ac_try") 2>&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); }; } &&
9965 { ac_try='test -s conftest$ac_exeext'
9966 { (case "(($ac_try" in
9967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968 *) ac_try_echo=$ac_try;;
9970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9971 (eval "$ac_try") 2>&5
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); }; }; then
9976 cat >>confdefs.h <<\_ACEOF
9977 #define HAVE_LIBDL 1
9979 libltdl_cv_func_dlopen="yes"
9981 echo "$as_me: failed program was:" >&5
9982 sed 's/^/| /' conftest.$ac_ext >&5
9984 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9985 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9986 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9987 echo $ECHO_N "(cached) $ECHO_C" >&6
9989 ac_check_lib_save_LIBS=$LIBS
9991 cat >conftest.$ac_ext <<_ACEOF
9994 cat confdefs.h >>conftest.$ac_ext
9995 cat >>conftest.$ac_ext <<_ACEOF
9996 /* end confdefs.h. */
9998 /* Override any GCC internal prototype to avoid an error.
9999 Use char because int might match the return type of a GCC
10000 builtin and then its argument prototype would still apply. */
10013 rm -f conftest.$ac_objext conftest$ac_exeext
10014 if { (ac_try="$ac_link"
10015 case "(($ac_try" in
10016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10017 *) ac_try_echo=$ac_try;;
10019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10020 (eval "$ac_link") 2>conftest.er1
10022 grep -v '^ *+' conftest.er1 >conftest.err
10024 cat conftest.err >&5
10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); } &&
10027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10028 { (case "(($ac_try" in
10029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10030 *) ac_try_echo=$ac_try;;
10032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10033 (eval "$ac_try") 2>&5
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); }; } &&
10037 { ac_try='test -s conftest$ac_exeext'
10038 { (case "(($ac_try" in
10039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10040 *) ac_try_echo=$ac_try;;
10042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10043 (eval "$ac_try") 2>&5
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); }; }; then
10047 ac_cv_lib_svld_dlopen=yes
10049 echo "$as_me: failed program was:" >&5
10050 sed 's/^/| /' conftest.$ac_ext >&5
10052 ac_cv_lib_svld_dlopen=no
10055 rm -f core conftest.err conftest.$ac_objext \
10056 conftest$ac_exeext conftest.$ac_ext
10057 LIBS=$ac_check_lib_save_LIBS
10059 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10060 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10061 if test $ac_cv_lib_svld_dlopen = yes; then
10063 cat >>confdefs.h <<\_ACEOF
10064 #define HAVE_LIBDL 1
10067 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10069 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10070 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10071 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10072 echo $ECHO_N "(cached) $ECHO_C" >&6
10074 ac_check_lib_save_LIBS=$LIBS
10076 cat >conftest.$ac_ext <<_ACEOF
10079 cat confdefs.h >>conftest.$ac_ext
10080 cat >>conftest.$ac_ext <<_ACEOF
10081 /* end confdefs.h. */
10083 /* Override any GCC internal prototype to avoid an error.
10084 Use char because int might match the return type of a GCC
10085 builtin and then its argument prototype would still apply. */
10093 return dld_link ();
10098 rm -f conftest.$ac_objext conftest$ac_exeext
10099 if { (ac_try="$ac_link"
10100 case "(($ac_try" in
10101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10102 *) ac_try_echo=$ac_try;;
10104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10105 (eval "$ac_link") 2>conftest.er1
10107 grep -v '^ *+' conftest.er1 >conftest.err
10109 cat conftest.err >&5
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); } &&
10112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10113 { (case "(($ac_try" in
10114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10115 *) ac_try_echo=$ac_try;;
10117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10118 (eval "$ac_try") 2>&5
10120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121 (exit $ac_status); }; } &&
10122 { ac_try='test -s conftest$ac_exeext'
10123 { (case "(($ac_try" in
10124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10125 *) ac_try_echo=$ac_try;;
10127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10128 (eval "$ac_try") 2>&5
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); }; }; then
10132 ac_cv_lib_dld_dld_link=yes
10134 echo "$as_me: failed program was:" >&5
10135 sed 's/^/| /' conftest.$ac_ext >&5
10137 ac_cv_lib_dld_dld_link=no
10140 rm -f core conftest.err conftest.$ac_objext \
10141 conftest$ac_exeext conftest.$ac_ext
10142 LIBS=$ac_check_lib_save_LIBS
10144 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10145 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10146 if test $ac_cv_lib_dld_dld_link = yes; then
10148 cat >>confdefs.h <<\_ACEOF
10152 LIBADD_DL="$LIBADD_DL -ldld"
10154 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10155 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10156 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10157 echo $ECHO_N "(cached) $ECHO_C" >&6
10159 cat >conftest.$ac_ext <<_ACEOF
10162 cat confdefs.h >>conftest.$ac_ext
10163 cat >>conftest.$ac_ext <<_ACEOF
10164 /* end confdefs.h. */
10165 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10166 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10167 #define _dyld_func_lookup innocuous__dyld_func_lookup
10169 /* System header to define __stub macros and hopefully few prototypes,
10170 which can conflict with char _dyld_func_lookup (); below.
10171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10172 <limits.h> exists even on freestanding compilers. */
10175 # include <limits.h>
10177 # include <assert.h>
10180 #undef _dyld_func_lookup
10182 /* Override any GCC internal prototype to avoid an error.
10183 Use char because int might match the return type of a GCC
10184 builtin and then its argument prototype would still apply. */
10188 char _dyld_func_lookup ();
10189 /* The GNU C library defines this for functions which it implements
10190 to always fail with ENOSYS. Some functions are actually named
10191 something starting with __ and the normal name is an alias. */
10192 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10199 return _dyld_func_lookup ();
10204 rm -f conftest.$ac_objext conftest$ac_exeext
10205 if { (ac_try="$ac_link"
10206 case "(($ac_try" in
10207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10208 *) ac_try_echo=$ac_try;;
10210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10211 (eval "$ac_link") 2>conftest.er1
10213 grep -v '^ *+' conftest.er1 >conftest.err
10215 cat conftest.err >&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); } &&
10218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10219 { (case "(($ac_try" in
10220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10221 *) ac_try_echo=$ac_try;;
10223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10224 (eval "$ac_try") 2>&5
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); }; } &&
10228 { ac_try='test -s conftest$ac_exeext'
10229 { (case "(($ac_try" in
10230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10231 *) ac_try_echo=$ac_try;;
10233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10234 (eval "$ac_try") 2>&5
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); }; }; then
10238 ac_cv_func__dyld_func_lookup=yes
10240 echo "$as_me: failed program was:" >&5
10241 sed 's/^/| /' conftest.$ac_ext >&5
10243 ac_cv_func__dyld_func_lookup=no
10246 rm -f core conftest.err conftest.$ac_objext \
10247 conftest$ac_exeext conftest.$ac_ext
10249 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10250 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10251 if test $ac_cv_func__dyld_func_lookup = yes; then
10253 cat >>confdefs.h <<\_ACEOF
10254 #define HAVE_DYLD 1
10268 rm -f core conftest.err conftest.$ac_objext \
10269 conftest$ac_exeext conftest.$ac_ext
10280 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10282 lt_save_LIBS="$LIBS"
10283 LIBS="$LIBS $LIBADD_DL"
10285 for ac_func in dlerror
10287 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10288 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10290 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10291 echo $ECHO_N "(cached) $ECHO_C" >&6
10293 cat >conftest.$ac_ext <<_ACEOF
10296 cat confdefs.h >>conftest.$ac_ext
10297 cat >>conftest.$ac_ext <<_ACEOF
10298 /* end confdefs.h. */
10299 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10301 #define $ac_func innocuous_$ac_func
10303 /* System header to define __stub macros and hopefully few prototypes,
10304 which can conflict with char $ac_func (); below.
10305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10306 <limits.h> exists even on freestanding compilers. */
10309 # include <limits.h>
10311 # include <assert.h>
10316 /* Override any GCC internal prototype to avoid an error.
10317 Use char because int might match the return type of a GCC
10318 builtin and then its argument prototype would still apply. */
10323 /* The GNU C library defines this for functions which it implements
10324 to always fail with ENOSYS. Some functions are actually named
10325 something starting with __ and the normal name is an alias. */
10326 #if defined __stub_$ac_func || defined __stub___$ac_func
10333 return $ac_func ();
10338 rm -f conftest.$ac_objext conftest$ac_exeext
10339 if { (ac_try="$ac_link"
10340 case "(($ac_try" in
10341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10342 *) ac_try_echo=$ac_try;;
10344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10345 (eval "$ac_link") 2>conftest.er1
10347 grep -v '^ *+' conftest.er1 >conftest.err
10349 cat conftest.err >&5
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); } &&
10352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10353 { (case "(($ac_try" in
10354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10355 *) ac_try_echo=$ac_try;;
10357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10358 (eval "$ac_try") 2>&5
10360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361 (exit $ac_status); }; } &&
10362 { ac_try='test -s conftest$ac_exeext'
10363 { (case "(($ac_try" in
10364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10365 *) ac_try_echo=$ac_try;;
10367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10368 (eval "$ac_try") 2>&5
10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371 (exit $ac_status); }; }; then
10372 eval "$as_ac_var=yes"
10374 echo "$as_me: failed program was:" >&5
10375 sed 's/^/| /' conftest.$ac_ext >&5
10377 eval "$as_ac_var=no"
10380 rm -f core conftest.err conftest.$ac_objext \
10381 conftest$ac_exeext conftest.$ac_ext
10383 ac_res=`eval echo '${'$as_ac_var'}'`
10384 { echo "$as_me:$LINENO: result: $ac_res" >&5
10385 echo "${ECHO_T}$ac_res" >&6; }
10386 if test `eval echo '${'$as_ac_var'}'` = yes; then
10387 cat >>confdefs.h <<_ACEOF
10388 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10394 LIBS="$lt_save_LIBS"
10397 ac_cpp='$CPP $CPPFLAGS'
10398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10404 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10405 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10406 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10407 echo $ECHO_N "(cached) $ECHO_C" >&6
10409 ac_cv_sys_symbol_underscore=no
10410 cat > conftest.$ac_ext <<EOF
10411 void nm_test_func(){}
10412 int main(){nm_test_func;return 0;}
10414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10415 (eval $ac_compile) 2>&5
10417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418 (exit $ac_status); }; then
10419 # Now try to grab the symbols.
10420 ac_nlist=conftest.nm
10421 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10422 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425 (exit $ac_status); } && test -s "$ac_nlist"; then
10426 # See whether the symbols have a leading underscore.
10427 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10428 ac_cv_sys_symbol_underscore=yes
10430 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10433 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10437 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10440 echo "configure: failed program was:" >&5
10446 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10447 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10450 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10451 if test x"$libltdl_cv_func_dlopen" = xyes ||
10452 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10453 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10454 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10455 if test "${libltdl_cv_need_uscore+set}" = set; then
10456 echo $ECHO_N "(cached) $ECHO_C" >&6
10458 libltdl_cv_need_uscore=unknown
10460 LIBS="$LIBS $LIBADD_DL"
10461 if test "$cross_compiling" = yes; then :
10462 libltdl_cv_need_uscore=cross
10464 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10465 lt_status=$lt_dlunknown
10466 cat > conftest.$ac_ext <<EOF
10467 #line 10467 "configure"
10468 #include "confdefs.h"
10477 # define LT_DLGLOBAL RTLD_GLOBAL
10480 # define LT_DLGLOBAL DL_GLOBAL
10482 # define LT_DLGLOBAL 0
10486 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10487 find out it does not work in some platform. */
10488 #ifndef LT_DLLAZY_OR_NOW
10490 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10493 # define LT_DLLAZY_OR_NOW DL_LAZY
10496 # define LT_DLLAZY_OR_NOW RTLD_NOW
10499 # define LT_DLLAZY_OR_NOW DL_NOW
10501 # define LT_DLLAZY_OR_NOW 0
10509 extern "C" void exit (int);
10512 void fnord() { int i=42;}
10515 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10516 int status = $lt_dlunknown;
10520 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10521 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10522 /* dlclose (self); */
10530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10531 (eval $ac_link) 2>&5
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10535 (./conftest; exit; ) >&5 2>/dev/null
10537 case x$lt_status in
10538 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10539 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10540 x$lt_dlunknown|x*) ;;
10543 # compilation failed
10552 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10553 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10557 if test x"$libltdl_cv_need_uscore" = xyes; then
10559 cat >>confdefs.h <<\_ACEOF
10560 #define NEED_USCORE 1
10566 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10567 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10568 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10569 echo $ECHO_N "(cached) $ECHO_C" >&6
10571 # PORTME does your system automatically load deplibs for dlopen?
10572 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10573 # For now, we just catch OSes we know something about -- in the
10574 # future, we'll try test this programmatically.
10575 libltdl_cv_sys_dlopen_deplibs=unknown
10577 aix3*|aix4.1.*|aix4.2.*)
10578 # Unknown whether this is true for these versions of AIX, but
10579 # we want this `case' here to explicitly catch those versions.
10580 libltdl_cv_sys_dlopen_deplibs=unknown
10583 libltdl_cv_sys_dlopen_deplibs=yes
10586 # Assuming the user has installed a libdl from somewhere, this is true
10587 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10588 libltdl_cv_sys_dlopen_deplibs=yes
10590 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10591 # GNU and its variants, using gnu ld.so (Glibc)
10592 libltdl_cv_sys_dlopen_deplibs=yes
10595 libltdl_cv_sys_dlopen_deplibs=yes
10598 libltdl_cv_sys_dlopen_deplibs=yes
10600 irix[12345]*|irix6.[01]*)
10601 # Catch all versions of IRIX before 6.2, and indicate that we don't
10602 # know how it worked for any of those versions.
10603 libltdl_cv_sys_dlopen_deplibs=unknown
10606 # The case above catches anything before 6.2, and it's known that
10607 # at 6.2 and later dlopen does load deplibs.
10608 libltdl_cv_sys_dlopen_deplibs=yes
10611 libltdl_cv_sys_dlopen_deplibs=yes
10614 libltdl_cv_sys_dlopen_deplibs=yes
10617 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10618 # it did *not* use an RPATH in a shared library to find objects the
10619 # library depends on, so we explicitly say `no'.
10620 libltdl_cv_sys_dlopen_deplibs=no
10622 osf5.0|osf5.0a|osf5.1)
10623 # dlopen *does* load deplibs and with the right loader patch applied
10624 # it even uses RPATH in a shared library to search for shared objects
10625 # that the library depends on, but there's no easy way to know if that
10626 # patch is installed. Since this is the case, all we can really
10627 # say is unknown -- it depends on the patch being installed. If
10628 # it is, this changes to `yes'. Without it, it would be `no'.
10629 libltdl_cv_sys_dlopen_deplibs=unknown
10632 # the two cases above should catch all versions of osf <= 5.1. Read
10633 # the comments above for what we know about them.
10634 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10635 # is used to find them so we can finally say `yes'.
10636 libltdl_cv_sys_dlopen_deplibs=yes
10639 libltdl_cv_sys_dlopen_deplibs=yes
10641 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10642 libltdl_cv_sys_dlopen_deplibs=yes
10647 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10648 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10649 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10651 cat >>confdefs.h <<\_ACEOF
10652 #define LTDL_DLOPEN_DEPLIBS 1
10658 for ac_header in argz.h
10660 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10662 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10665 echo $ECHO_N "(cached) $ECHO_C" >&6
10667 ac_res=`eval echo '${'$as_ac_Header'}'`
10668 { echo "$as_me:$LINENO: result: $ac_res" >&5
10669 echo "${ECHO_T}$ac_res" >&6; }
10671 # Is the header compilable?
10672 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10673 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10674 cat >conftest.$ac_ext <<_ACEOF
10677 cat confdefs.h >>conftest.$ac_ext
10678 cat >>conftest.$ac_ext <<_ACEOF
10679 /* end confdefs.h. */
10680 $ac_includes_default
10681 #include <$ac_header>
10683 rm -f conftest.$ac_objext
10684 if { (ac_try="$ac_compile"
10685 case "(($ac_try" in
10686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10687 *) ac_try_echo=$ac_try;;
10689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10690 (eval "$ac_compile") 2>conftest.er1
10692 grep -v '^ *+' conftest.er1 >conftest.err
10694 cat conftest.err >&5
10695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696 (exit $ac_status); } &&
10697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10698 { (case "(($ac_try" in
10699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10700 *) ac_try_echo=$ac_try;;
10702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10703 (eval "$ac_try") 2>&5
10705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706 (exit $ac_status); }; } &&
10707 { ac_try='test -s conftest.$ac_objext'
10708 { (case "(($ac_try" in
10709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10710 *) ac_try_echo=$ac_try;;
10712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10713 (eval "$ac_try") 2>&5
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); }; }; then
10717 ac_header_compiler=yes
10719 echo "$as_me: failed program was:" >&5
10720 sed 's/^/| /' conftest.$ac_ext >&5
10722 ac_header_compiler=no
10725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10726 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10727 echo "${ECHO_T}$ac_header_compiler" >&6; }
10729 # Is the header present?
10730 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10731 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10732 cat >conftest.$ac_ext <<_ACEOF
10735 cat confdefs.h >>conftest.$ac_ext
10736 cat >>conftest.$ac_ext <<_ACEOF
10737 /* end confdefs.h. */
10738 #include <$ac_header>
10740 if { (ac_try="$ac_cpp conftest.$ac_ext"
10741 case "(($ac_try" in
10742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10743 *) ac_try_echo=$ac_try;;
10745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10748 grep -v '^ *+' conftest.er1 >conftest.err
10750 cat conftest.err >&5
10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); } >/dev/null; then
10753 if test -s conftest.err; then
10754 ac_cpp_err=$ac_c_preproc_warn_flag
10755 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10762 if test -z "$ac_cpp_err"; then
10763 ac_header_preproc=yes
10765 echo "$as_me: failed program was:" >&5
10766 sed 's/^/| /' conftest.$ac_ext >&5
10768 ac_header_preproc=no
10771 rm -f conftest.err conftest.$ac_ext
10772 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10773 echo "${ECHO_T}$ac_header_preproc" >&6; }
10775 # So? What about this header?
10776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10778 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10779 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10781 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10782 ac_header_preproc=yes
10785 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10786 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10787 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10788 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10789 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10790 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10791 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10792 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10793 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10794 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10795 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10796 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10798 ## ------------------------------------ ##
10799 ## Report this to http://llvm.org/bugs/ ##
10800 ## ------------------------------------ ##
10802 ) | sed "s/^/$as_me: WARNING: /" >&2
10805 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10807 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10808 echo $ECHO_N "(cached) $ECHO_C" >&6
10810 eval "$as_ac_Header=\$ac_header_preproc"
10812 ac_res=`eval echo '${'$as_ac_Header'}'`
10813 { echo "$as_me:$LINENO: result: $ac_res" >&5
10814 echo "${ECHO_T}$ac_res" >&6; }
10817 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10818 cat >>confdefs.h <<_ACEOF
10819 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10827 { echo "$as_me:$LINENO: checking for error_t" >&5
10828 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10829 if test "${ac_cv_type_error_t+set}" = set; then
10830 echo $ECHO_N "(cached) $ECHO_C" >&6
10832 cat >conftest.$ac_ext <<_ACEOF
10835 cat confdefs.h >>conftest.$ac_ext
10836 cat >>conftest.$ac_ext <<_ACEOF
10837 /* end confdefs.h. */
10842 typedef error_t ac__type_new_;
10846 if ((ac__type_new_ *) 0)
10848 if (sizeof (ac__type_new_))
10854 rm -f conftest.$ac_objext
10855 if { (ac_try="$ac_compile"
10856 case "(($ac_try" in
10857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10858 *) ac_try_echo=$ac_try;;
10860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10861 (eval "$ac_compile") 2>conftest.er1
10863 grep -v '^ *+' conftest.er1 >conftest.err
10865 cat conftest.err >&5
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); } &&
10868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10869 { (case "(($ac_try" in
10870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10871 *) ac_try_echo=$ac_try;;
10873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10874 (eval "$ac_try") 2>&5
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); }; } &&
10878 { ac_try='test -s conftest.$ac_objext'
10879 { (case "(($ac_try" in
10880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10881 *) ac_try_echo=$ac_try;;
10883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10884 (eval "$ac_try") 2>&5
10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887 (exit $ac_status); }; }; then
10888 ac_cv_type_error_t=yes
10890 echo "$as_me: failed program was:" >&5
10891 sed 's/^/| /' conftest.$ac_ext >&5
10893 ac_cv_type_error_t=no
10896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10898 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10899 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10900 if test $ac_cv_type_error_t = yes; then
10902 cat >>confdefs.h <<_ACEOF
10903 #define HAVE_ERROR_T 1
10909 cat >>confdefs.h <<\_ACEOF
10910 #define error_t int
10921 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10923 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10924 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10925 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10926 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10927 echo $ECHO_N "(cached) $ECHO_C" >&6
10929 cat >conftest.$ac_ext <<_ACEOF
10932 cat confdefs.h >>conftest.$ac_ext
10933 cat >>conftest.$ac_ext <<_ACEOF
10934 /* end confdefs.h. */
10935 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10937 #define $ac_func innocuous_$ac_func
10939 /* System header to define __stub macros and hopefully few prototypes,
10940 which can conflict with char $ac_func (); below.
10941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10942 <limits.h> exists even on freestanding compilers. */
10945 # include <limits.h>
10947 # include <assert.h>
10952 /* Override any GCC internal prototype to avoid an error.
10953 Use char because int might match the return type of a GCC
10954 builtin and then its argument prototype would still apply. */
10959 /* The GNU C library defines this for functions which it implements
10960 to always fail with ENOSYS. Some functions are actually named
10961 something starting with __ and the normal name is an alias. */
10962 #if defined __stub_$ac_func || defined __stub___$ac_func
10969 return $ac_func ();
10974 rm -f conftest.$ac_objext conftest$ac_exeext
10975 if { (ac_try="$ac_link"
10976 case "(($ac_try" in
10977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10978 *) ac_try_echo=$ac_try;;
10980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10981 (eval "$ac_link") 2>conftest.er1
10983 grep -v '^ *+' conftest.er1 >conftest.err
10985 cat conftest.err >&5
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); } &&
10988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10989 { (case "(($ac_try" in
10990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10991 *) ac_try_echo=$ac_try;;
10993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10994 (eval "$ac_try") 2>&5
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); }; } &&
10998 { ac_try='test -s conftest$ac_exeext'
10999 { (case "(($ac_try" in
11000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11001 *) ac_try_echo=$ac_try;;
11003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11004 (eval "$ac_try") 2>&5
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); }; }; then
11008 eval "$as_ac_var=yes"
11010 echo "$as_me: failed program was:" >&5
11011 sed 's/^/| /' conftest.$ac_ext >&5
11013 eval "$as_ac_var=no"
11016 rm -f core conftest.err conftest.$ac_objext \
11017 conftest$ac_exeext conftest.$ac_ext
11019 ac_res=`eval echo '${'$as_ac_var'}'`
11020 { echo "$as_me:$LINENO: result: $ac_res" >&5
11021 echo "${ECHO_T}$ac_res" >&6; }
11022 if test `eval echo '${'$as_ac_var'}'` = yes; then
11023 cat >>confdefs.h <<_ACEOF
11024 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11057 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11060 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11062 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11065 echo $ECHO_N "(cached) $ECHO_C" >&6
11067 ac_res=`eval echo '${'$as_ac_Header'}'`
11068 { echo "$as_me:$LINENO: result: $ac_res" >&5
11069 echo "${ECHO_T}$ac_res" >&6; }
11071 # Is the header compilable?
11072 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11073 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11074 cat >conftest.$ac_ext <<_ACEOF
11077 cat confdefs.h >>conftest.$ac_ext
11078 cat >>conftest.$ac_ext <<_ACEOF
11079 /* end confdefs.h. */
11080 $ac_includes_default
11081 #include <$ac_header>
11083 rm -f conftest.$ac_objext
11084 if { (ac_try="$ac_compile"
11085 case "(($ac_try" in
11086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11087 *) ac_try_echo=$ac_try;;
11089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11090 (eval "$ac_compile") 2>conftest.er1
11092 grep -v '^ *+' conftest.er1 >conftest.err
11094 cat conftest.err >&5
11095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 (exit $ac_status); } &&
11097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11098 { (case "(($ac_try" in
11099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11100 *) ac_try_echo=$ac_try;;
11102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11103 (eval "$ac_try") 2>&5
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); }; } &&
11107 { ac_try='test -s conftest.$ac_objext'
11108 { (case "(($ac_try" in
11109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11110 *) ac_try_echo=$ac_try;;
11112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11113 (eval "$ac_try") 2>&5
11115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116 (exit $ac_status); }; }; then
11117 ac_header_compiler=yes
11119 echo "$as_me: failed program was:" >&5
11120 sed 's/^/| /' conftest.$ac_ext >&5
11122 ac_header_compiler=no
11125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11126 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11127 echo "${ECHO_T}$ac_header_compiler" >&6; }
11129 # Is the header present?
11130 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11131 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11132 cat >conftest.$ac_ext <<_ACEOF
11135 cat confdefs.h >>conftest.$ac_ext
11136 cat >>conftest.$ac_ext <<_ACEOF
11137 /* end confdefs.h. */
11138 #include <$ac_header>
11140 if { (ac_try="$ac_cpp conftest.$ac_ext"
11141 case "(($ac_try" in
11142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11143 *) ac_try_echo=$ac_try;;
11145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11146 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11148 grep -v '^ *+' conftest.er1 >conftest.err
11150 cat conftest.err >&5
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); } >/dev/null; then
11153 if test -s conftest.err; then
11154 ac_cpp_err=$ac_c_preproc_warn_flag
11155 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11162 if test -z "$ac_cpp_err"; then
11163 ac_header_preproc=yes
11165 echo "$as_me: failed program was:" >&5
11166 sed 's/^/| /' conftest.$ac_ext >&5
11168 ac_header_preproc=no
11171 rm -f conftest.err conftest.$ac_ext
11172 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11173 echo "${ECHO_T}$ac_header_preproc" >&6; }
11175 # So? What about this header?
11176 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11178 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11179 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11181 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11182 ac_header_preproc=yes
11185 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11186 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11187 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11188 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11189 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11190 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11191 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11192 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11195 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11196 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11198 ## ------------------------------------ ##
11199 ## Report this to http://llvm.org/bugs/ ##
11200 ## ------------------------------------ ##
11202 ) | sed "s/^/$as_me: WARNING: /" >&2
11205 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11207 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11208 echo $ECHO_N "(cached) $ECHO_C" >&6
11210 eval "$as_ac_Header=\$ac_header_preproc"
11212 ac_res=`eval echo '${'$as_ac_Header'}'`
11213 { echo "$as_me:$LINENO: result: $ac_res" >&5
11214 echo "${ECHO_T}$ac_res" >&6; }
11217 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11218 cat >>confdefs.h <<_ACEOF
11219 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11230 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11232 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11234 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11237 echo $ECHO_N "(cached) $ECHO_C" >&6
11239 ac_res=`eval echo '${'$as_ac_Header'}'`
11240 { echo "$as_me:$LINENO: result: $ac_res" >&5
11241 echo "${ECHO_T}$ac_res" >&6; }
11243 # Is the header compilable?
11244 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11245 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11246 cat >conftest.$ac_ext <<_ACEOF
11249 cat confdefs.h >>conftest.$ac_ext
11250 cat >>conftest.$ac_ext <<_ACEOF
11251 /* end confdefs.h. */
11252 $ac_includes_default
11253 #include <$ac_header>
11255 rm -f conftest.$ac_objext
11256 if { (ac_try="$ac_compile"
11257 case "(($ac_try" in
11258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11259 *) ac_try_echo=$ac_try;;
11261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11262 (eval "$ac_compile") 2>conftest.er1
11264 grep -v '^ *+' conftest.er1 >conftest.err
11266 cat conftest.err >&5
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); } &&
11269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11270 { (case "(($ac_try" in
11271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11272 *) ac_try_echo=$ac_try;;
11274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11275 (eval "$ac_try") 2>&5
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278 (exit $ac_status); }; } &&
11279 { ac_try='test -s conftest.$ac_objext'
11280 { (case "(($ac_try" in
11281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11282 *) ac_try_echo=$ac_try;;
11284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11285 (eval "$ac_try") 2>&5
11287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288 (exit $ac_status); }; }; then
11289 ac_header_compiler=yes
11291 echo "$as_me: failed program was:" >&5
11292 sed 's/^/| /' conftest.$ac_ext >&5
11294 ac_header_compiler=no
11297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11298 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11299 echo "${ECHO_T}$ac_header_compiler" >&6; }
11301 # Is the header present?
11302 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11303 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11304 cat >conftest.$ac_ext <<_ACEOF
11307 cat confdefs.h >>conftest.$ac_ext
11308 cat >>conftest.$ac_ext <<_ACEOF
11309 /* end confdefs.h. */
11310 #include <$ac_header>
11312 if { (ac_try="$ac_cpp conftest.$ac_ext"
11313 case "(($ac_try" in
11314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11315 *) ac_try_echo=$ac_try;;
11317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11318 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11320 grep -v '^ *+' conftest.er1 >conftest.err
11322 cat conftest.err >&5
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); } >/dev/null; then
11325 if test -s conftest.err; then
11326 ac_cpp_err=$ac_c_preproc_warn_flag
11327 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11334 if test -z "$ac_cpp_err"; then
11335 ac_header_preproc=yes
11337 echo "$as_me: failed program was:" >&5
11338 sed 's/^/| /' conftest.$ac_ext >&5
11340 ac_header_preproc=no
11343 rm -f conftest.err conftest.$ac_ext
11344 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11345 echo "${ECHO_T}$ac_header_preproc" >&6; }
11347 # So? What about this header?
11348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11350 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11351 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11353 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11354 ac_header_preproc=yes
11357 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11358 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11359 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11360 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11361 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11362 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11363 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11364 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11366 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11367 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11368 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11370 ## ------------------------------------ ##
11371 ## Report this to http://llvm.org/bugs/ ##
11372 ## ------------------------------------ ##
11374 ) | sed "s/^/$as_me: WARNING: /" >&2
11377 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11380 echo $ECHO_N "(cached) $ECHO_C" >&6
11382 eval "$as_ac_Header=\$ac_header_preproc"
11384 ac_res=`eval echo '${'$as_ac_Header'}'`
11385 { echo "$as_me:$LINENO: result: $ac_res" >&5
11386 echo "${ECHO_T}$ac_res" >&6; }
11389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11390 cat >>confdefs.h <<_ACEOF
11391 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11400 for ac_header in string.h strings.h
11402 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11404 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11406 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11407 echo $ECHO_N "(cached) $ECHO_C" >&6
11409 ac_res=`eval echo '${'$as_ac_Header'}'`
11410 { echo "$as_me:$LINENO: result: $ac_res" >&5
11411 echo "${ECHO_T}$ac_res" >&6; }
11413 # Is the header compilable?
11414 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11415 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11416 cat >conftest.$ac_ext <<_ACEOF
11419 cat confdefs.h >>conftest.$ac_ext
11420 cat >>conftest.$ac_ext <<_ACEOF
11421 /* end confdefs.h. */
11422 $ac_includes_default
11423 #include <$ac_header>
11425 rm -f conftest.$ac_objext
11426 if { (ac_try="$ac_compile"
11427 case "(($ac_try" in
11428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11429 *) ac_try_echo=$ac_try;;
11431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11432 (eval "$ac_compile") 2>conftest.er1
11434 grep -v '^ *+' conftest.er1 >conftest.err
11436 cat conftest.err >&5
11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); } &&
11439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11440 { (case "(($ac_try" in
11441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11442 *) ac_try_echo=$ac_try;;
11444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11445 (eval "$ac_try") 2>&5
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); }; } &&
11449 { ac_try='test -s conftest.$ac_objext'
11450 { (case "(($ac_try" in
11451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11452 *) ac_try_echo=$ac_try;;
11454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11455 (eval "$ac_try") 2>&5
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); }; }; then
11459 ac_header_compiler=yes
11461 echo "$as_me: failed program was:" >&5
11462 sed 's/^/| /' conftest.$ac_ext >&5
11464 ac_header_compiler=no
11467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11468 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11469 echo "${ECHO_T}$ac_header_compiler" >&6; }
11471 # Is the header present?
11472 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11473 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11474 cat >conftest.$ac_ext <<_ACEOF
11477 cat confdefs.h >>conftest.$ac_ext
11478 cat >>conftest.$ac_ext <<_ACEOF
11479 /* end confdefs.h. */
11480 #include <$ac_header>
11482 if { (ac_try="$ac_cpp conftest.$ac_ext"
11483 case "(($ac_try" in
11484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11485 *) ac_try_echo=$ac_try;;
11487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11490 grep -v '^ *+' conftest.er1 >conftest.err
11492 cat conftest.err >&5
11493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494 (exit $ac_status); } >/dev/null; then
11495 if test -s conftest.err; then
11496 ac_cpp_err=$ac_c_preproc_warn_flag
11497 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11504 if test -z "$ac_cpp_err"; then
11505 ac_header_preproc=yes
11507 echo "$as_me: failed program was:" >&5
11508 sed 's/^/| /' conftest.$ac_ext >&5
11510 ac_header_preproc=no
11513 rm -f conftest.err conftest.$ac_ext
11514 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11515 echo "${ECHO_T}$ac_header_preproc" >&6; }
11517 # So? What about this header?
11518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11520 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11521 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11523 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11524 ac_header_preproc=yes
11527 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11528 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11529 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11530 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11531 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11532 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11533 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11534 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11536 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11537 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11538 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11540 ## ------------------------------------ ##
11541 ## Report this to http://llvm.org/bugs/ ##
11542 ## ------------------------------------ ##
11544 ) | sed "s/^/$as_me: WARNING: /" >&2
11547 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11550 echo $ECHO_N "(cached) $ECHO_C" >&6
11552 eval "$as_ac_Header=\$ac_header_preproc"
11554 ac_res=`eval echo '${'$as_ac_Header'}'`
11555 { echo "$as_me:$LINENO: result: $ac_res" >&5
11556 echo "${ECHO_T}$ac_res" >&6; }
11559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11560 cat >>confdefs.h <<_ACEOF
11561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11571 for ac_func in strchr index
11573 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11574 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11576 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11577 echo $ECHO_N "(cached) $ECHO_C" >&6
11579 cat >conftest.$ac_ext <<_ACEOF
11582 cat confdefs.h >>conftest.$ac_ext
11583 cat >>conftest.$ac_ext <<_ACEOF
11584 /* end confdefs.h. */
11585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11587 #define $ac_func innocuous_$ac_func
11589 /* System header to define __stub macros and hopefully few prototypes,
11590 which can conflict with char $ac_func (); below.
11591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11592 <limits.h> exists even on freestanding compilers. */
11595 # include <limits.h>
11597 # include <assert.h>
11602 /* Override any GCC internal prototype to avoid an error.
11603 Use char because int might match the return type of a GCC
11604 builtin and then its argument prototype would still apply. */
11609 /* The GNU C library defines this for functions which it implements
11610 to always fail with ENOSYS. Some functions are actually named
11611 something starting with __ and the normal name is an alias. */
11612 #if defined __stub_$ac_func || defined __stub___$ac_func
11619 return $ac_func ();
11624 rm -f conftest.$ac_objext conftest$ac_exeext
11625 if { (ac_try="$ac_link"
11626 case "(($ac_try" in
11627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11628 *) ac_try_echo=$ac_try;;
11630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11631 (eval "$ac_link") 2>conftest.er1
11633 grep -v '^ *+' conftest.er1 >conftest.err
11635 cat conftest.err >&5
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); } &&
11638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11639 { (case "(($ac_try" in
11640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11641 *) ac_try_echo=$ac_try;;
11643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11644 (eval "$ac_try") 2>&5
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); }; } &&
11648 { ac_try='test -s conftest$ac_exeext'
11649 { (case "(($ac_try" in
11650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11651 *) ac_try_echo=$ac_try;;
11653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11654 (eval "$ac_try") 2>&5
11656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657 (exit $ac_status); }; }; then
11658 eval "$as_ac_var=yes"
11660 echo "$as_me: failed program was:" >&5
11661 sed 's/^/| /' conftest.$ac_ext >&5
11663 eval "$as_ac_var=no"
11666 rm -f core conftest.err conftest.$ac_objext \
11667 conftest$ac_exeext conftest.$ac_ext
11669 ac_res=`eval echo '${'$as_ac_var'}'`
11670 { echo "$as_me:$LINENO: result: $ac_res" >&5
11671 echo "${ECHO_T}$ac_res" >&6; }
11672 if test `eval echo '${'$as_ac_var'}'` = yes; then
11673 cat >>confdefs.h <<_ACEOF
11674 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11682 for ac_func in strrchr rindex
11684 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11685 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11686 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11687 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11688 echo $ECHO_N "(cached) $ECHO_C" >&6
11690 cat >conftest.$ac_ext <<_ACEOF
11693 cat confdefs.h >>conftest.$ac_ext
11694 cat >>conftest.$ac_ext <<_ACEOF
11695 /* end confdefs.h. */
11696 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11698 #define $ac_func innocuous_$ac_func
11700 /* System header to define __stub macros and hopefully few prototypes,
11701 which can conflict with char $ac_func (); below.
11702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11703 <limits.h> exists even on freestanding compilers. */
11706 # include <limits.h>
11708 # include <assert.h>
11713 /* Override any GCC internal prototype to avoid an error.
11714 Use char because int might match the return type of a GCC
11715 builtin and then its argument prototype would still apply. */
11720 /* The GNU C library defines this for functions which it implements
11721 to always fail with ENOSYS. Some functions are actually named
11722 something starting with __ and the normal name is an alias. */
11723 #if defined __stub_$ac_func || defined __stub___$ac_func
11730 return $ac_func ();
11735 rm -f conftest.$ac_objext conftest$ac_exeext
11736 if { (ac_try="$ac_link"
11737 case "(($ac_try" in
11738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11739 *) ac_try_echo=$ac_try;;
11741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11742 (eval "$ac_link") 2>conftest.er1
11744 grep -v '^ *+' conftest.er1 >conftest.err
11746 cat conftest.err >&5
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); } &&
11749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11750 { (case "(($ac_try" in
11751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11752 *) ac_try_echo=$ac_try;;
11754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11755 (eval "$ac_try") 2>&5
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); }; } &&
11759 { ac_try='test -s conftest$ac_exeext'
11760 { (case "(($ac_try" in
11761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11762 *) ac_try_echo=$ac_try;;
11764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11765 (eval "$ac_try") 2>&5
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); }; }; then
11769 eval "$as_ac_var=yes"
11771 echo "$as_me: failed program was:" >&5
11772 sed 's/^/| /' conftest.$ac_ext >&5
11774 eval "$as_ac_var=no"
11777 rm -f core conftest.err conftest.$ac_objext \
11778 conftest$ac_exeext conftest.$ac_ext
11780 ac_res=`eval echo '${'$as_ac_var'}'`
11781 { echo "$as_me:$LINENO: result: $ac_res" >&5
11782 echo "${ECHO_T}$ac_res" >&6; }
11783 if test `eval echo '${'$as_ac_var'}'` = yes; then
11784 cat >>confdefs.h <<_ACEOF
11785 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11793 for ac_func in memcpy bcopy
11795 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11796 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11797 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11798 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11799 echo $ECHO_N "(cached) $ECHO_C" >&6
11801 cat >conftest.$ac_ext <<_ACEOF
11804 cat confdefs.h >>conftest.$ac_ext
11805 cat >>conftest.$ac_ext <<_ACEOF
11806 /* end confdefs.h. */
11807 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11809 #define $ac_func innocuous_$ac_func
11811 /* System header to define __stub macros and hopefully few prototypes,
11812 which can conflict with char $ac_func (); below.
11813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11814 <limits.h> exists even on freestanding compilers. */
11817 # include <limits.h>
11819 # include <assert.h>
11824 /* Override any GCC internal prototype to avoid an error.
11825 Use char because int might match the return type of a GCC
11826 builtin and then its argument prototype would still apply. */
11831 /* The GNU C library defines this for functions which it implements
11832 to always fail with ENOSYS. Some functions are actually named
11833 something starting with __ and the normal name is an alias. */
11834 #if defined __stub_$ac_func || defined __stub___$ac_func
11841 return $ac_func ();
11846 rm -f conftest.$ac_objext conftest$ac_exeext
11847 if { (ac_try="$ac_link"
11848 case "(($ac_try" in
11849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11850 *) ac_try_echo=$ac_try;;
11852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11853 (eval "$ac_link") 2>conftest.er1
11855 grep -v '^ *+' conftest.er1 >conftest.err
11857 cat conftest.err >&5
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); } &&
11860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11861 { (case "(($ac_try" in
11862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11863 *) ac_try_echo=$ac_try;;
11865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11866 (eval "$ac_try") 2>&5
11868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); }; } &&
11870 { ac_try='test -s conftest$ac_exeext'
11871 { (case "(($ac_try" in
11872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11873 *) ac_try_echo=$ac_try;;
11875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11876 (eval "$ac_try") 2>&5
11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879 (exit $ac_status); }; }; then
11880 eval "$as_ac_var=yes"
11882 echo "$as_me: failed program was:" >&5
11883 sed 's/^/| /' conftest.$ac_ext >&5
11885 eval "$as_ac_var=no"
11888 rm -f core conftest.err conftest.$ac_objext \
11889 conftest$ac_exeext conftest.$ac_ext
11891 ac_res=`eval echo '${'$as_ac_var'}'`
11892 { echo "$as_me:$LINENO: result: $ac_res" >&5
11893 echo "${ECHO_T}$ac_res" >&6; }
11894 if test `eval echo '${'$as_ac_var'}'` = yes; then
11895 cat >>confdefs.h <<_ACEOF
11896 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11904 for ac_func in memmove strcmp
11906 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11907 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11908 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11909 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11910 echo $ECHO_N "(cached) $ECHO_C" >&6
11912 cat >conftest.$ac_ext <<_ACEOF
11915 cat confdefs.h >>conftest.$ac_ext
11916 cat >>conftest.$ac_ext <<_ACEOF
11917 /* end confdefs.h. */
11918 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11920 #define $ac_func innocuous_$ac_func
11922 /* System header to define __stub macros and hopefully few prototypes,
11923 which can conflict with char $ac_func (); below.
11924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11925 <limits.h> exists even on freestanding compilers. */
11928 # include <limits.h>
11930 # include <assert.h>
11935 /* Override any GCC internal prototype to avoid an error.
11936 Use char because int might match the return type of a GCC
11937 builtin and then its argument prototype would still apply. */
11942 /* The GNU C library defines this for functions which it implements
11943 to always fail with ENOSYS. Some functions are actually named
11944 something starting with __ and the normal name is an alias. */
11945 #if defined __stub_$ac_func || defined __stub___$ac_func
11952 return $ac_func ();
11957 rm -f conftest.$ac_objext conftest$ac_exeext
11958 if { (ac_try="$ac_link"
11959 case "(($ac_try" in
11960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11961 *) ac_try_echo=$ac_try;;
11963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11964 (eval "$ac_link") 2>conftest.er1
11966 grep -v '^ *+' conftest.er1 >conftest.err
11968 cat conftest.err >&5
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); } &&
11971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11972 { (case "(($ac_try" in
11973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11974 *) ac_try_echo=$ac_try;;
11976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11977 (eval "$ac_try") 2>&5
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); }; } &&
11981 { ac_try='test -s conftest$ac_exeext'
11982 { (case "(($ac_try" in
11983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11984 *) ac_try_echo=$ac_try;;
11986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11987 (eval "$ac_try") 2>&5
11989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); }; }; then
11991 eval "$as_ac_var=yes"
11993 echo "$as_me: failed program was:" >&5
11994 sed 's/^/| /' conftest.$ac_ext >&5
11996 eval "$as_ac_var=no"
11999 rm -f core conftest.err conftest.$ac_objext \
12000 conftest$ac_exeext conftest.$ac_ext
12002 ac_res=`eval echo '${'$as_ac_var'}'`
12003 { echo "$as_me:$LINENO: result: $ac_res" >&5
12004 echo "${ECHO_T}$ac_res" >&6; }
12005 if test `eval echo '${'$as_ac_var'}'` = yes; then
12006 cat >>confdefs.h <<_ACEOF
12007 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12016 for ac_func in closedir opendir readdir
12018 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12019 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12020 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12021 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12022 echo $ECHO_N "(cached) $ECHO_C" >&6
12024 cat >conftest.$ac_ext <<_ACEOF
12027 cat confdefs.h >>conftest.$ac_ext
12028 cat >>conftest.$ac_ext <<_ACEOF
12029 /* end confdefs.h. */
12030 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12032 #define $ac_func innocuous_$ac_func
12034 /* System header to define __stub macros and hopefully few prototypes,
12035 which can conflict with char $ac_func (); below.
12036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12037 <limits.h> exists even on freestanding compilers. */
12040 # include <limits.h>
12042 # include <assert.h>
12047 /* Override any GCC internal prototype to avoid an error.
12048 Use char because int might match the return type of a GCC
12049 builtin and then its argument prototype would still apply. */
12054 /* The GNU C library defines this for functions which it implements
12055 to always fail with ENOSYS. Some functions are actually named
12056 something starting with __ and the normal name is an alias. */
12057 #if defined __stub_$ac_func || defined __stub___$ac_func
12064 return $ac_func ();
12069 rm -f conftest.$ac_objext conftest$ac_exeext
12070 if { (ac_try="$ac_link"
12071 case "(($ac_try" in
12072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12073 *) ac_try_echo=$ac_try;;
12075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12076 (eval "$ac_link") 2>conftest.er1
12078 grep -v '^ *+' conftest.er1 >conftest.err
12080 cat conftest.err >&5
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); } &&
12083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12084 { (case "(($ac_try" in
12085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12086 *) ac_try_echo=$ac_try;;
12088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12089 (eval "$ac_try") 2>&5
12091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); }; } &&
12093 { ac_try='test -s conftest$ac_exeext'
12094 { (case "(($ac_try" in
12095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12096 *) ac_try_echo=$ac_try;;
12098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12099 (eval "$ac_try") 2>&5
12101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); }; }; then
12103 eval "$as_ac_var=yes"
12105 echo "$as_me: failed program was:" >&5
12106 sed 's/^/| /' conftest.$ac_ext >&5
12108 eval "$as_ac_var=no"
12111 rm -f core conftest.err conftest.$ac_objext \
12112 conftest$ac_exeext conftest.$ac_ext
12114 ac_res=`eval echo '${'$as_ac_var'}'`
12115 { echo "$as_me:$LINENO: result: $ac_res" >&5
12116 echo "${ECHO_T}$ac_res" >&6; }
12117 if test `eval echo '${'$as_ac_var'}'` = yes; then
12118 cat >>confdefs.h <<_ACEOF
12119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12127 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12128 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12141 if test "$GCC" != "yes" && test "$ICC" != "yes"
12143 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12144 echo "$as_me: error: gcc|icc required but not found" >&2;}
12145 { (exit 1); exit 1; }; }
12148 if test "$GXX" != "yes" && test "$IXX" != "yes"
12150 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12151 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12152 { (exit 1); exit 1; }; }
12155 if test "$GCC" = "yes"
12157 cat >conftest.$ac_ext <<_ACEOF
12158 #if !defined(__GNUC__) || __GNUC__ < 3
12159 #error Unsupported GCC version
12163 rm -f conftest.$ac_objext
12164 if { (ac_try="$ac_compile"
12165 case "(($ac_try" in
12166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12167 *) ac_try_echo=$ac_try;;
12169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12170 (eval "$ac_compile") 2>conftest.er1
12172 grep -v '^ *+' conftest.er1 >conftest.err
12174 cat conftest.err >&5
12175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176 (exit $ac_status); } &&
12177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12178 { (case "(($ac_try" in
12179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12180 *) ac_try_echo=$ac_try;;
12182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12183 (eval "$ac_try") 2>&5
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 (exit $ac_status); }; } &&
12187 { ac_try='test -s conftest.$ac_objext'
12188 { (case "(($ac_try" in
12189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12190 *) ac_try_echo=$ac_try;;
12192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12193 (eval "$ac_try") 2>&5
12195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); }; }; then
12199 echo "$as_me: failed program was:" >&5
12200 sed 's/^/| /' conftest.$ac_ext >&5
12202 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12203 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12204 { (exit 1); exit 1; }; }
12207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12210 if test -z "$llvm_cv_gnu_make_command"
12212 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12213 echo "$as_me: error: GNU Make required but not found" >&2;}
12214 { (exit 1); exit 1; }; }
12217 { echo "$as_me:$LINENO: result: ok" >&5
12218 echo "${ECHO_T}ok" >&6; }
12220 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12221 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12222 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12224 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12226 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12228 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12229 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12233 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12234 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12235 if test "${ac_cv_lib_m_sin+set}" = set; then
12236 echo $ECHO_N "(cached) $ECHO_C" >&6
12238 ac_check_lib_save_LIBS=$LIBS
12240 cat >conftest.$ac_ext <<_ACEOF
12243 cat confdefs.h >>conftest.$ac_ext
12244 cat >>conftest.$ac_ext <<_ACEOF
12245 /* end confdefs.h. */
12247 /* Override any GCC internal prototype to avoid an error.
12248 Use char because int might match the return type of a GCC
12249 builtin and then its argument prototype would still apply. */
12262 rm -f conftest.$ac_objext conftest$ac_exeext
12263 if { (ac_try="$ac_link"
12264 case "(($ac_try" in
12265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12266 *) ac_try_echo=$ac_try;;
12268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12269 (eval "$ac_link") 2>conftest.er1
12271 grep -v '^ *+' conftest.er1 >conftest.err
12273 cat conftest.err >&5
12274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275 (exit $ac_status); } &&
12276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12277 { (case "(($ac_try" in
12278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12279 *) ac_try_echo=$ac_try;;
12281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12282 (eval "$ac_try") 2>&5
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); }; } &&
12286 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); }; }; then
12296 ac_cv_lib_m_sin=yes
12298 echo "$as_me: failed program was:" >&5
12299 sed 's/^/| /' conftest.$ac_ext >&5
12304 rm -f core conftest.err conftest.$ac_objext \
12305 conftest$ac_exeext conftest.$ac_ext
12306 LIBS=$ac_check_lib_save_LIBS
12308 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12309 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12310 if test $ac_cv_lib_m_sin = yes; then
12311 cat >>confdefs.h <<_ACEOF
12312 #define HAVE_LIBM 1
12319 if test "$llvm_cv_os_type" = "MingW" ; then
12321 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12322 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12323 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12324 echo $ECHO_N "(cached) $ECHO_C" >&6
12326 ac_check_lib_save_LIBS=$LIBS
12327 LIBS="-limagehlp $LIBS"
12328 cat >conftest.$ac_ext <<_ACEOF
12331 cat confdefs.h >>conftest.$ac_ext
12332 cat >>conftest.$ac_ext <<_ACEOF
12333 /* end confdefs.h. */
12344 rm -f conftest.$ac_objext conftest$ac_exeext
12345 if { (ac_try="$ac_link"
12346 case "(($ac_try" in
12347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12348 *) ac_try_echo=$ac_try;;
12350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12351 (eval "$ac_link") 2>conftest.er1
12353 grep -v '^ *+' conftest.er1 >conftest.err
12355 cat conftest.err >&5
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); } &&
12358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12359 { (case "(($ac_try" in
12360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12361 *) ac_try_echo=$ac_try;;
12363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12364 (eval "$ac_try") 2>&5
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); }; } &&
12368 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); }; }; then
12378 ac_cv_lib_imagehlp_main=yes
12380 echo "$as_me: failed program was:" >&5
12381 sed 's/^/| /' conftest.$ac_ext >&5
12383 ac_cv_lib_imagehlp_main=no
12386 rm -f core conftest.err conftest.$ac_objext \
12387 conftest$ac_exeext conftest.$ac_ext
12388 LIBS=$ac_check_lib_save_LIBS
12390 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12391 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12392 if test $ac_cv_lib_imagehlp_main = yes; then
12393 cat >>confdefs.h <<_ACEOF
12394 #define HAVE_LIBIMAGEHLP 1
12397 LIBS="-limagehlp $LIBS"
12402 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12403 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12404 if test "${ac_cv_lib_psapi_main+set}" = set; then
12405 echo $ECHO_N "(cached) $ECHO_C" >&6
12407 ac_check_lib_save_LIBS=$LIBS
12408 LIBS="-lpsapi $LIBS"
12409 cat >conftest.$ac_ext <<_ACEOF
12412 cat confdefs.h >>conftest.$ac_ext
12413 cat >>conftest.$ac_ext <<_ACEOF
12414 /* end confdefs.h. */
12425 rm -f conftest.$ac_objext conftest$ac_exeext
12426 if { (ac_try="$ac_link"
12427 case "(($ac_try" in
12428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12429 *) ac_try_echo=$ac_try;;
12431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12432 (eval "$ac_link") 2>conftest.er1
12434 grep -v '^ *+' conftest.er1 >conftest.err
12436 cat conftest.err >&5
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); } &&
12439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12440 { (case "(($ac_try" in
12441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12442 *) ac_try_echo=$ac_try;;
12444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12445 (eval "$ac_try") 2>&5
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); }; } &&
12449 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); }; }; then
12459 ac_cv_lib_psapi_main=yes
12461 echo "$as_me: failed program was:" >&5
12462 sed 's/^/| /' conftest.$ac_ext >&5
12464 ac_cv_lib_psapi_main=no
12467 rm -f core conftest.err conftest.$ac_objext \
12468 conftest$ac_exeext conftest.$ac_ext
12469 LIBS=$ac_check_lib_save_LIBS
12471 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12472 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12473 if test $ac_cv_lib_psapi_main = yes; then
12474 cat >>confdefs.h <<_ACEOF
12475 #define HAVE_LIBPSAPI 1
12478 LIBS="-lpsapi $LIBS"
12484 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12485 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12486 if test "${ac_cv_search_dlopen+set}" = set; then
12487 echo $ECHO_N "(cached) $ECHO_C" >&6
12489 ac_func_search_save_LIBS=$LIBS
12490 cat >conftest.$ac_ext <<_ACEOF
12493 cat confdefs.h >>conftest.$ac_ext
12494 cat >>conftest.$ac_ext <<_ACEOF
12495 /* end confdefs.h. */
12497 /* Override any GCC internal prototype to avoid an error.
12498 Use char because int might match the return type of a GCC
12499 builtin and then its argument prototype would still apply. */
12512 for ac_lib in '' dl; do
12513 if test -z "$ac_lib"; then
12514 ac_res="none required"
12517 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12519 rm -f conftest.$ac_objext conftest$ac_exeext
12520 if { (ac_try="$ac_link"
12521 case "(($ac_try" in
12522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12523 *) ac_try_echo=$ac_try;;
12525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12526 (eval "$ac_link") 2>conftest.er1
12528 grep -v '^ *+' conftest.er1 >conftest.err
12530 cat conftest.err >&5
12531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532 (exit $ac_status); } &&
12533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12534 { (case "(($ac_try" in
12535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12536 *) ac_try_echo=$ac_try;;
12538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12539 (eval "$ac_try") 2>&5
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); }; } &&
12543 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); }; }; then
12553 ac_cv_search_dlopen=$ac_res
12555 echo "$as_me: failed program was:" >&5
12556 sed 's/^/| /' conftest.$ac_ext >&5
12561 rm -f core conftest.err conftest.$ac_objext \
12563 if test "${ac_cv_search_dlopen+set}" = set; then
12567 if test "${ac_cv_search_dlopen+set}" = set; then
12570 ac_cv_search_dlopen=no
12572 rm conftest.$ac_ext
12573 LIBS=$ac_func_search_save_LIBS
12575 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12576 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12577 ac_res=$ac_cv_search_dlopen
12578 if test "$ac_res" != no; then
12579 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12581 cat >>confdefs.h <<\_ACEOF
12582 #define HAVE_DLOPEN 1
12586 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12587 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12591 if test "$llvm_cv_enable_libffi" = "yes" ; then
12592 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12593 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12594 if test "${ac_cv_search_ffi_call+set}" = set; then
12595 echo $ECHO_N "(cached) $ECHO_C" >&6
12597 ac_func_search_save_LIBS=$LIBS
12598 cat >conftest.$ac_ext <<_ACEOF
12601 cat confdefs.h >>conftest.$ac_ext
12602 cat >>conftest.$ac_ext <<_ACEOF
12603 /* end confdefs.h. */
12605 /* Override any GCC internal prototype to avoid an error.
12606 Use char because int might match the return type of a GCC
12607 builtin and then its argument prototype would still apply. */
12615 return ffi_call ();
12620 for ac_lib in '' ffi; do
12621 if test -z "$ac_lib"; then
12622 ac_res="none required"
12625 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12627 rm -f conftest.$ac_objext conftest$ac_exeext
12628 if { (ac_try="$ac_link"
12629 case "(($ac_try" in
12630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12631 *) ac_try_echo=$ac_try;;
12633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12634 (eval "$ac_link") 2>conftest.er1
12636 grep -v '^ *+' conftest.er1 >conftest.err
12638 cat conftest.err >&5
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); } &&
12641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12642 { (case "(($ac_try" in
12643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12644 *) ac_try_echo=$ac_try;;
12646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12647 (eval "$ac_try") 2>&5
12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650 (exit $ac_status); }; } &&
12651 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); }; }; then
12661 ac_cv_search_ffi_call=$ac_res
12663 echo "$as_me: failed program was:" >&5
12664 sed 's/^/| /' conftest.$ac_ext >&5
12669 rm -f core conftest.err conftest.$ac_objext \
12671 if test "${ac_cv_search_ffi_call+set}" = set; then
12675 if test "${ac_cv_search_ffi_call+set}" = set; then
12678 ac_cv_search_ffi_call=no
12680 rm conftest.$ac_ext
12681 LIBS=$ac_func_search_save_LIBS
12683 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12684 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12685 ac_res=$ac_cv_search_ffi_call
12686 if test "$ac_res" != no; then
12687 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12689 cat >>confdefs.h <<\_ACEOF
12690 #define HAVE_FFI_CALL 1
12694 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12695 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12696 { (exit 1); exit 1; }; }
12701 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12702 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12703 if test "${ac_cv_search_mallinfo+set}" = set; then
12704 echo $ECHO_N "(cached) $ECHO_C" >&6
12706 ac_func_search_save_LIBS=$LIBS
12707 cat >conftest.$ac_ext <<_ACEOF
12710 cat confdefs.h >>conftest.$ac_ext
12711 cat >>conftest.$ac_ext <<_ACEOF
12712 /* end confdefs.h. */
12714 /* Override any GCC internal prototype to avoid an error.
12715 Use char because int might match the return type of a GCC
12716 builtin and then its argument prototype would still apply. */
12724 return mallinfo ();
12729 for ac_lib in '' malloc; do
12730 if test -z "$ac_lib"; then
12731 ac_res="none required"
12734 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12736 rm -f conftest.$ac_objext conftest$ac_exeext
12737 if { (ac_try="$ac_link"
12738 case "(($ac_try" in
12739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12740 *) ac_try_echo=$ac_try;;
12742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12743 (eval "$ac_link") 2>conftest.er1
12745 grep -v '^ *+' conftest.er1 >conftest.err
12747 cat conftest.err >&5
12748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749 (exit $ac_status); } &&
12750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12751 { (case "(($ac_try" in
12752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12753 *) ac_try_echo=$ac_try;;
12755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12756 (eval "$ac_try") 2>&5
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); }; } &&
12760 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); }; }; then
12770 ac_cv_search_mallinfo=$ac_res
12772 echo "$as_me: failed program was:" >&5
12773 sed 's/^/| /' conftest.$ac_ext >&5
12778 rm -f core conftest.err conftest.$ac_objext \
12780 if test "${ac_cv_search_mallinfo+set}" = set; then
12784 if test "${ac_cv_search_mallinfo+set}" = set; then
12787 ac_cv_search_mallinfo=no
12789 rm conftest.$ac_ext
12790 LIBS=$ac_func_search_save_LIBS
12792 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12793 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12794 ac_res=$ac_cv_search_mallinfo
12795 if test "$ac_res" != no; then
12796 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12798 cat >>confdefs.h <<\_ACEOF
12799 #define HAVE_MALLINFO 1
12805 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12807 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12808 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12809 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12810 echo $ECHO_N "(cached) $ECHO_C" >&6
12812 ac_check_lib_save_LIBS=$LIBS
12813 LIBS="-lpthread $LIBS"
12814 cat >conftest.$ac_ext <<_ACEOF
12817 cat confdefs.h >>conftest.$ac_ext
12818 cat >>conftest.$ac_ext <<_ACEOF
12819 /* end confdefs.h. */
12821 /* Override any GCC internal prototype to avoid an error.
12822 Use char because int might match the return type of a GCC
12823 builtin and then its argument prototype would still apply. */
12827 char pthread_mutex_init ();
12831 return pthread_mutex_init ();
12836 rm -f conftest.$ac_objext conftest$ac_exeext
12837 if { (ac_try="$ac_link"
12838 case "(($ac_try" in
12839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12840 *) ac_try_echo=$ac_try;;
12842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12843 (eval "$ac_link") 2>conftest.er1
12845 grep -v '^ *+' conftest.er1 >conftest.err
12847 cat conftest.err >&5
12848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849 (exit $ac_status); } &&
12850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12851 { (case "(($ac_try" in
12852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12853 *) ac_try_echo=$ac_try;;
12855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12856 (eval "$ac_try") 2>&5
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); }; } &&
12860 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); }; }; then
12870 ac_cv_lib_pthread_pthread_mutex_init=yes
12872 echo "$as_me: failed program was:" >&5
12873 sed 's/^/| /' conftest.$ac_ext >&5
12875 ac_cv_lib_pthread_pthread_mutex_init=no
12878 rm -f core conftest.err conftest.$ac_objext \
12879 conftest$ac_exeext conftest.$ac_ext
12880 LIBS=$ac_check_lib_save_LIBS
12882 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12883 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12884 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12885 cat >>confdefs.h <<_ACEOF
12886 #define HAVE_LIBPTHREAD 1
12889 LIBS="-lpthread $LIBS"
12893 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12894 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12895 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12896 echo $ECHO_N "(cached) $ECHO_C" >&6
12898 ac_func_search_save_LIBS=$LIBS
12899 cat >conftest.$ac_ext <<_ACEOF
12902 cat confdefs.h >>conftest.$ac_ext
12903 cat >>conftest.$ac_ext <<_ACEOF
12904 /* end confdefs.h. */
12906 /* Override any GCC internal prototype to avoid an error.
12907 Use char because int might match the return type of a GCC
12908 builtin and then its argument prototype would still apply. */
12912 char pthread_mutex_lock ();
12916 return pthread_mutex_lock ();
12921 for ac_lib in '' pthread; do
12922 if test -z "$ac_lib"; then
12923 ac_res="none required"
12926 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12928 rm -f conftest.$ac_objext conftest$ac_exeext
12929 if { (ac_try="$ac_link"
12930 case "(($ac_try" in
12931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12932 *) ac_try_echo=$ac_try;;
12934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12935 (eval "$ac_link") 2>conftest.er1
12937 grep -v '^ *+' conftest.er1 >conftest.err
12939 cat conftest.err >&5
12940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12941 (exit $ac_status); } &&
12942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12943 { (case "(($ac_try" in
12944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12945 *) ac_try_echo=$ac_try;;
12947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12948 (eval "$ac_try") 2>&5
12950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951 (exit $ac_status); }; } &&
12952 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
12960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961 (exit $ac_status); }; }; then
12962 ac_cv_search_pthread_mutex_lock=$ac_res
12964 echo "$as_me: failed program was:" >&5
12965 sed 's/^/| /' conftest.$ac_ext >&5
12970 rm -f core conftest.err conftest.$ac_objext \
12972 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12976 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12979 ac_cv_search_pthread_mutex_lock=no
12981 rm conftest.$ac_ext
12982 LIBS=$ac_func_search_save_LIBS
12984 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12985 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12986 ac_res=$ac_cv_search_pthread_mutex_lock
12987 if test "$ac_res" != no; then
12988 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12990 cat >>confdefs.h <<\_ACEOF
12991 #define HAVE_PTHREAD_MUTEX_LOCK 1
12996 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12997 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12998 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12999 echo $ECHO_N "(cached) $ECHO_C" >&6
13001 ac_func_search_save_LIBS=$LIBS
13002 cat >conftest.$ac_ext <<_ACEOF
13005 cat confdefs.h >>conftest.$ac_ext
13006 cat >>conftest.$ac_ext <<_ACEOF
13007 /* end confdefs.h. */
13009 /* Override any GCC internal prototype to avoid an error.
13010 Use char because int might match the return type of a GCC
13011 builtin and then its argument prototype would still apply. */
13015 char pthread_rwlock_init ();
13019 return pthread_rwlock_init ();
13024 for ac_lib in '' pthread; do
13025 if test -z "$ac_lib"; then
13026 ac_res="none required"
13029 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13031 rm -f conftest.$ac_objext conftest$ac_exeext
13032 if { (ac_try="$ac_link"
13033 case "(($ac_try" in
13034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13035 *) ac_try_echo=$ac_try;;
13037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13038 (eval "$ac_link") 2>conftest.er1
13040 grep -v '^ *+' conftest.er1 >conftest.err
13042 cat conftest.err >&5
13043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); } &&
13045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13046 { (case "(($ac_try" in
13047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13048 *) ac_try_echo=$ac_try;;
13050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13051 (eval "$ac_try") 2>&5
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); }; } &&
13055 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
13063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 (exit $ac_status); }; }; then
13065 ac_cv_search_pthread_rwlock_init=$ac_res
13067 echo "$as_me: failed program was:" >&5
13068 sed 's/^/| /' conftest.$ac_ext >&5
13073 rm -f core conftest.err conftest.$ac_objext \
13075 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13079 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13082 ac_cv_search_pthread_rwlock_init=no
13084 rm conftest.$ac_ext
13085 LIBS=$ac_func_search_save_LIBS
13087 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13088 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13089 ac_res=$ac_cv_search_pthread_rwlock_init
13090 if test "$ac_res" != no; then
13091 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13093 cat >>confdefs.h <<\_ACEOF
13094 #define HAVE_PTHREAD_RWLOCK_INIT 1
13099 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13100 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13101 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13102 echo $ECHO_N "(cached) $ECHO_C" >&6
13104 ac_func_search_save_LIBS=$LIBS
13105 cat >conftest.$ac_ext <<_ACEOF
13108 cat confdefs.h >>conftest.$ac_ext
13109 cat >>conftest.$ac_ext <<_ACEOF
13110 /* end confdefs.h. */
13112 /* Override any GCC internal prototype to avoid an error.
13113 Use char because int might match the return type of a GCC
13114 builtin and then its argument prototype would still apply. */
13118 char pthread_getspecific ();
13122 return pthread_getspecific ();
13127 for ac_lib in '' pthread; do
13128 if test -z "$ac_lib"; then
13129 ac_res="none required"
13132 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13134 rm -f conftest.$ac_objext conftest$ac_exeext
13135 if { (ac_try="$ac_link"
13136 case "(($ac_try" in
13137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13138 *) ac_try_echo=$ac_try;;
13140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13141 (eval "$ac_link") 2>conftest.er1
13143 grep -v '^ *+' conftest.er1 >conftest.err
13145 cat conftest.err >&5
13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); } &&
13148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13149 { (case "(($ac_try" in
13150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13151 *) ac_try_echo=$ac_try;;
13153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13154 (eval "$ac_try") 2>&5
13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); }; } &&
13158 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); }; }; then
13168 ac_cv_search_pthread_getspecific=$ac_res
13170 echo "$as_me: failed program was:" >&5
13171 sed 's/^/| /' conftest.$ac_ext >&5
13176 rm -f core conftest.err conftest.$ac_objext \
13178 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13182 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13185 ac_cv_search_pthread_getspecific=no
13187 rm conftest.$ac_ext
13188 LIBS=$ac_func_search_save_LIBS
13190 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13191 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13192 ac_res=$ac_cv_search_pthread_getspecific
13193 if test "$ac_res" != no; then
13194 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13196 cat >>confdefs.h <<\_ACEOF
13197 #define HAVE_PTHREAD_GETSPECIFIC 1
13205 # Check whether --with-udis86 was given.
13206 if test "${with_udis86+set}" = set; then
13207 withval=$with_udis86;
13212 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13215 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13216 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13217 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13218 echo $ECHO_N "(cached) $ECHO_C" >&6
13220 ac_check_lib_save_LIBS=$LIBS
13221 LIBS="-ludis86 $LIBS"
13222 cat >conftest.$ac_ext <<_ACEOF
13225 cat confdefs.h >>conftest.$ac_ext
13226 cat >>conftest.$ac_ext <<_ACEOF
13227 /* end confdefs.h. */
13229 /* Override any GCC internal prototype to avoid an error.
13230 Use char because int might match the return type of a GCC
13231 builtin and then its argument prototype would still apply. */
13244 rm -f conftest.$ac_objext conftest$ac_exeext
13245 if { (ac_try="$ac_link"
13246 case "(($ac_try" in
13247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13248 *) ac_try_echo=$ac_try;;
13250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13251 (eval "$ac_link") 2>conftest.er1
13253 grep -v '^ *+' conftest.er1 >conftest.err
13255 cat conftest.err >&5
13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); } &&
13258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13259 { (case "(($ac_try" in
13260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13261 *) ac_try_echo=$ac_try;;
13263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13264 (eval "$ac_try") 2>&5
13266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267 (exit $ac_status); }; } &&
13268 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
13276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13277 (exit $ac_status); }; }; then
13278 ac_cv_lib_udis86_ud_init=yes
13280 echo "$as_me: failed program was:" >&5
13281 sed 's/^/| /' conftest.$ac_ext >&5
13283 ac_cv_lib_udis86_ud_init=no
13286 rm -f core conftest.err conftest.$ac_objext \
13287 conftest$ac_exeext conftest.$ac_ext
13288 LIBS=$ac_check_lib_save_LIBS
13290 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13291 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13292 if test $ac_cv_lib_udis86_ud_init = yes; then
13293 cat >>confdefs.h <<_ACEOF
13294 #define HAVE_LIBUDIS86 1
13297 LIBS="-ludis86 $LIBS"
13301 echo "Error! You need to have libudis86 around."
13313 cat >>confdefs.h <<_ACEOF
13314 #define USE_UDIS86 $USE_UDIS86
13319 # Check whether --with-oprofile was given.
13320 if test "${with_oprofile+set}" = set; then
13321 withval=$with_oprofile;
13325 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13326 no) llvm_cv_oppath=
13329 *) llvm_cv_oppath="${withval}/lib/oprofile"
13330 CPPFLAGS="-I${withval}/include";;
13332 if test -n "$llvm_cv_oppath" ; then
13333 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13334 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13335 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13336 if test "${ac_cv_search_bfd_init+set}" = set; then
13337 echo $ECHO_N "(cached) $ECHO_C" >&6
13339 ac_func_search_save_LIBS=$LIBS
13340 cat >conftest.$ac_ext <<_ACEOF
13343 cat confdefs.h >>conftest.$ac_ext
13344 cat >>conftest.$ac_ext <<_ACEOF
13345 /* end confdefs.h. */
13347 /* Override any GCC internal prototype to avoid an error.
13348 Use char because int might match the return type of a GCC
13349 builtin and then its argument prototype would still apply. */
13357 return bfd_init ();
13362 for ac_lib in '' bfd; do
13363 if test -z "$ac_lib"; then
13364 ac_res="none required"
13367 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13369 rm -f conftest.$ac_objext conftest$ac_exeext
13370 if { (ac_try="$ac_link"
13371 case "(($ac_try" in
13372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13373 *) ac_try_echo=$ac_try;;
13375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13376 (eval "$ac_link") 2>conftest.er1
13378 grep -v '^ *+' conftest.er1 >conftest.err
13380 cat conftest.err >&5
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); } &&
13383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13384 { (case "(($ac_try" in
13385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13386 *) ac_try_echo=$ac_try;;
13388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13389 (eval "$ac_try") 2>&5
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); }; } &&
13393 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); }; }; then
13403 ac_cv_search_bfd_init=$ac_res
13405 echo "$as_me: failed program was:" >&5
13406 sed 's/^/| /' conftest.$ac_ext >&5
13411 rm -f core conftest.err conftest.$ac_objext \
13413 if test "${ac_cv_search_bfd_init+set}" = set; then
13417 if test "${ac_cv_search_bfd_init+set}" = set; then
13420 ac_cv_search_bfd_init=no
13422 rm conftest.$ac_ext
13423 LIBS=$ac_func_search_save_LIBS
13425 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13426 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13427 ac_res=$ac_cv_search_bfd_init
13428 if test "$ac_res" != no; then
13429 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13433 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13434 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13435 if test "${ac_cv_search_op_open_agent+set}" = set; then
13436 echo $ECHO_N "(cached) $ECHO_C" >&6
13438 ac_func_search_save_LIBS=$LIBS
13439 cat >conftest.$ac_ext <<_ACEOF
13442 cat confdefs.h >>conftest.$ac_ext
13443 cat >>conftest.$ac_ext <<_ACEOF
13444 /* end confdefs.h. */
13446 /* Override any GCC internal prototype to avoid an error.
13447 Use char because int might match the return type of a GCC
13448 builtin and then its argument prototype would still apply. */
13452 char op_open_agent ();
13456 return op_open_agent ();
13461 for ac_lib in '' opagent; do
13462 if test -z "$ac_lib"; then
13463 ac_res="none required"
13466 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13468 rm -f conftest.$ac_objext conftest$ac_exeext
13469 if { (ac_try="$ac_link"
13470 case "(($ac_try" in
13471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13472 *) ac_try_echo=$ac_try;;
13474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13475 (eval "$ac_link") 2>conftest.er1
13477 grep -v '^ *+' conftest.er1 >conftest.err
13479 cat conftest.err >&5
13480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); } &&
13482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13483 { (case "(($ac_try" in
13484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13485 *) ac_try_echo=$ac_try;;
13487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13488 (eval "$ac_try") 2>&5
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); }; } &&
13492 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 (exit $ac_status); }; }; then
13502 ac_cv_search_op_open_agent=$ac_res
13504 echo "$as_me: failed program was:" >&5
13505 sed 's/^/| /' conftest.$ac_ext >&5
13510 rm -f core conftest.err conftest.$ac_objext \
13512 if test "${ac_cv_search_op_open_agent+set}" = set; then
13516 if test "${ac_cv_search_op_open_agent+set}" = set; then
13519 ac_cv_search_op_open_agent=no
13521 rm conftest.$ac_ext
13522 LIBS=$ac_func_search_save_LIBS
13524 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13525 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13526 ac_res=$ac_cv_search_op_open_agent
13527 if test "$ac_res" != no; then
13528 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13532 echo "Error! You need to have libopagent around."
13537 if test "${ac_cv_header_opagent_h+set}" = set; then
13538 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13539 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13540 if test "${ac_cv_header_opagent_h+set}" = set; then
13541 echo $ECHO_N "(cached) $ECHO_C" >&6
13543 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13544 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13546 # Is the header compilable?
13547 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13548 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13549 cat >conftest.$ac_ext <<_ACEOF
13552 cat confdefs.h >>conftest.$ac_ext
13553 cat >>conftest.$ac_ext <<_ACEOF
13554 /* end confdefs.h. */
13555 $ac_includes_default
13556 #include <opagent.h>
13558 rm -f conftest.$ac_objext
13559 if { (ac_try="$ac_compile"
13560 case "(($ac_try" in
13561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13562 *) ac_try_echo=$ac_try;;
13564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13565 (eval "$ac_compile") 2>conftest.er1
13567 grep -v '^ *+' conftest.er1 >conftest.err
13569 cat conftest.err >&5
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); } &&
13572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13573 { (case "(($ac_try" in
13574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13575 *) ac_try_echo=$ac_try;;
13577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13578 (eval "$ac_try") 2>&5
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); }; } &&
13582 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
13590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591 (exit $ac_status); }; }; then
13592 ac_header_compiler=yes
13594 echo "$as_me: failed program was:" >&5
13595 sed 's/^/| /' conftest.$ac_ext >&5
13597 ac_header_compiler=no
13600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13601 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13602 echo "${ECHO_T}$ac_header_compiler" >&6; }
13604 # Is the header present?
13605 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13606 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13607 cat >conftest.$ac_ext <<_ACEOF
13610 cat confdefs.h >>conftest.$ac_ext
13611 cat >>conftest.$ac_ext <<_ACEOF
13612 /* end confdefs.h. */
13613 #include <opagent.h>
13615 if { (ac_try="$ac_cpp conftest.$ac_ext"
13616 case "(($ac_try" in
13617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13618 *) ac_try_echo=$ac_try;;
13620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13623 grep -v '^ *+' conftest.er1 >conftest.err
13625 cat conftest.err >&5
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); } >/dev/null; then
13628 if test -s conftest.err; then
13629 ac_cpp_err=$ac_c_preproc_warn_flag
13630 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13637 if test -z "$ac_cpp_err"; then
13638 ac_header_preproc=yes
13640 echo "$as_me: failed program was:" >&5
13641 sed 's/^/| /' conftest.$ac_ext >&5
13643 ac_header_preproc=no
13646 rm -f conftest.err conftest.$ac_ext
13647 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13648 echo "${ECHO_T}$ac_header_preproc" >&6; }
13650 # So? What about this header?
13651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13653 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13654 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13655 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13656 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13657 ac_header_preproc=yes
13660 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13661 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13662 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13663 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13664 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13665 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13666 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13667 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13668 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13669 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13670 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13671 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13673 ## ------------------------------------ ##
13674 ## Report this to http://llvm.org/bugs/ ##
13675 ## ------------------------------------ ##
13677 ) | sed "s/^/$as_me: WARNING: /" >&2
13680 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13681 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13682 if test "${ac_cv_header_opagent_h+set}" = set; then
13683 echo $ECHO_N "(cached) $ECHO_C" >&6
13685 ac_cv_header_opagent_h=$ac_header_preproc
13687 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13688 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13691 if test $ac_cv_header_opagent_h = yes; then
13695 echo "Error! You need to have opagent.h around."
13711 cat >>confdefs.h <<_ACEOF
13712 #define USE_OPROFILE $USE_OPROFILE
13722 ac_header_dirent=no
13723 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13724 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13725 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13726 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13728 echo $ECHO_N "(cached) $ECHO_C" >&6
13730 cat >conftest.$ac_ext <<_ACEOF
13733 cat confdefs.h >>conftest.$ac_ext
13734 cat >>conftest.$ac_ext <<_ACEOF
13735 /* end confdefs.h. */
13736 #include <sys/types.h>
13748 rm -f conftest.$ac_objext
13749 if { (ac_try="$ac_compile"
13750 case "(($ac_try" in
13751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13752 *) ac_try_echo=$ac_try;;
13754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13755 (eval "$ac_compile") 2>conftest.er1
13757 grep -v '^ *+' conftest.er1 >conftest.err
13759 cat conftest.err >&5
13760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761 (exit $ac_status); } &&
13762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13763 { (case "(($ac_try" in
13764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13765 *) ac_try_echo=$ac_try;;
13767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13768 (eval "$ac_try") 2>&5
13770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771 (exit $ac_status); }; } &&
13772 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); }; }; then
13782 eval "$as_ac_Header=yes"
13784 echo "$as_me: failed program was:" >&5
13785 sed 's/^/| /' conftest.$ac_ext >&5
13787 eval "$as_ac_Header=no"
13790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13792 ac_res=`eval echo '${'$as_ac_Header'}'`
13793 { echo "$as_me:$LINENO: result: $ac_res" >&5
13794 echo "${ECHO_T}$ac_res" >&6; }
13795 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13796 cat >>confdefs.h <<_ACEOF
13797 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13800 ac_header_dirent=$ac_hdr; break
13804 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13805 if test $ac_header_dirent = dirent.h; then
13806 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13807 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13808 if test "${ac_cv_search_opendir+set}" = set; then
13809 echo $ECHO_N "(cached) $ECHO_C" >&6
13811 ac_func_search_save_LIBS=$LIBS
13812 cat >conftest.$ac_ext <<_ACEOF
13815 cat confdefs.h >>conftest.$ac_ext
13816 cat >>conftest.$ac_ext <<_ACEOF
13817 /* end confdefs.h. */
13819 /* Override any GCC internal prototype to avoid an error.
13820 Use char because int might match the return type of a GCC
13821 builtin and then its argument prototype would still apply. */
13834 for ac_lib in '' dir; do
13835 if test -z "$ac_lib"; then
13836 ac_res="none required"
13839 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13841 rm -f conftest.$ac_objext conftest$ac_exeext
13842 if { (ac_try="$ac_link"
13843 case "(($ac_try" in
13844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13845 *) ac_try_echo=$ac_try;;
13847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13848 (eval "$ac_link") 2>conftest.er1
13850 grep -v '^ *+' conftest.er1 >conftest.err
13852 cat conftest.err >&5
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); } &&
13855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13856 { (case "(($ac_try" in
13857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13858 *) ac_try_echo=$ac_try;;
13860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13861 (eval "$ac_try") 2>&5
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); }; } &&
13865 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); }; }; then
13875 ac_cv_search_opendir=$ac_res
13877 echo "$as_me: failed program was:" >&5
13878 sed 's/^/| /' conftest.$ac_ext >&5
13883 rm -f core conftest.err conftest.$ac_objext \
13885 if test "${ac_cv_search_opendir+set}" = set; then
13889 if test "${ac_cv_search_opendir+set}" = set; then
13892 ac_cv_search_opendir=no
13894 rm conftest.$ac_ext
13895 LIBS=$ac_func_search_save_LIBS
13897 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13898 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13899 ac_res=$ac_cv_search_opendir
13900 if test "$ac_res" != no; then
13901 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13906 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13907 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13908 if test "${ac_cv_search_opendir+set}" = set; then
13909 echo $ECHO_N "(cached) $ECHO_C" >&6
13911 ac_func_search_save_LIBS=$LIBS
13912 cat >conftest.$ac_ext <<_ACEOF
13915 cat confdefs.h >>conftest.$ac_ext
13916 cat >>conftest.$ac_ext <<_ACEOF
13917 /* end confdefs.h. */
13919 /* Override any GCC internal prototype to avoid an error.
13920 Use char because int might match the return type of a GCC
13921 builtin and then its argument prototype would still apply. */
13934 for ac_lib in '' x; do
13935 if test -z "$ac_lib"; then
13936 ac_res="none required"
13939 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13941 rm -f conftest.$ac_objext conftest$ac_exeext
13942 if { (ac_try="$ac_link"
13943 case "(($ac_try" in
13944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13945 *) ac_try_echo=$ac_try;;
13947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13948 (eval "$ac_link") 2>conftest.er1
13950 grep -v '^ *+' conftest.er1 >conftest.err
13952 cat conftest.err >&5
13953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 (exit $ac_status); } &&
13955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13956 { (case "(($ac_try" in
13957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13958 *) ac_try_echo=$ac_try;;
13960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13961 (eval "$ac_try") 2>&5
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); }; } &&
13965 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); }; }; then
13975 ac_cv_search_opendir=$ac_res
13977 echo "$as_me: failed program was:" >&5
13978 sed 's/^/| /' conftest.$ac_ext >&5
13983 rm -f core conftest.err conftest.$ac_objext \
13985 if test "${ac_cv_search_opendir+set}" = set; then
13989 if test "${ac_cv_search_opendir+set}" = set; then
13992 ac_cv_search_opendir=no
13994 rm conftest.$ac_ext
13995 LIBS=$ac_func_search_save_LIBS
13997 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13998 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13999 ac_res=$ac_cv_search_opendir
14000 if test "$ac_res" != no; then
14001 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14007 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14008 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14009 if test "${ac_cv_header_mmap_anon+set}" = set; then
14010 echo $ECHO_N "(cached) $ECHO_C" >&6
14013 ac_cpp='$CPP $CPPFLAGS'
14014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14018 cat >conftest.$ac_ext <<_ACEOF
14021 cat confdefs.h >>conftest.$ac_ext
14022 cat >>conftest.$ac_ext <<_ACEOF
14023 /* end confdefs.h. */
14024 #include <sys/mman.h>
14025 #include <unistd.h>
14030 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14035 rm -f conftest.$ac_objext
14036 if { (ac_try="$ac_compile"
14037 case "(($ac_try" in
14038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14039 *) ac_try_echo=$ac_try;;
14041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14042 (eval "$ac_compile") 2>conftest.er1
14044 grep -v '^ *+' conftest.er1 >conftest.err
14046 cat conftest.err >&5
14047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048 (exit $ac_status); } &&
14049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14050 { (case "(($ac_try" in
14051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14052 *) ac_try_echo=$ac_try;;
14054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14055 (eval "$ac_try") 2>&5
14057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058 (exit $ac_status); }; } &&
14059 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); }; }; then
14069 ac_cv_header_mmap_anon=yes
14071 echo "$as_me: failed program was:" >&5
14072 sed 's/^/| /' conftest.$ac_ext >&5
14074 ac_cv_header_mmap_anon=no
14077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14079 ac_cpp='$CPP $CPPFLAGS'
14080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14086 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14087 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14088 if test "$ac_cv_header_mmap_anon" = yes; then
14090 cat >>confdefs.h <<\_ACEOF
14091 #define HAVE_MMAP_ANONYMOUS 1
14096 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14097 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14098 if test "${ac_cv_header_stat_broken+set}" = set; then
14099 echo $ECHO_N "(cached) $ECHO_C" >&6
14101 cat >conftest.$ac_ext <<_ACEOF
14104 cat confdefs.h >>conftest.$ac_ext
14105 cat >>conftest.$ac_ext <<_ACEOF
14106 /* end confdefs.h. */
14107 #include <sys/types.h>
14108 #include <sys/stat.h>
14110 #if defined S_ISBLK && defined S_IFDIR
14111 # if S_ISBLK (S_IFDIR)
14116 #if defined S_ISBLK && defined S_IFCHR
14117 # if S_ISBLK (S_IFCHR)
14122 #if defined S_ISLNK && defined S_IFREG
14123 # if S_ISLNK (S_IFREG)
14128 #if defined S_ISSOCK && defined S_IFREG
14129 # if S_ISSOCK (S_IFREG)
14135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14136 $EGREP "You lose" >/dev/null 2>&1; then
14137 ac_cv_header_stat_broken=yes
14139 ac_cv_header_stat_broken=no
14144 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14145 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14146 if test $ac_cv_header_stat_broken = yes; then
14148 cat >>confdefs.h <<\_ACEOF
14149 #define STAT_MACROS_BROKEN 1
14154 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14155 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14156 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14157 echo $ECHO_N "(cached) $ECHO_C" >&6
14159 cat >conftest.$ac_ext <<_ACEOF
14162 cat confdefs.h >>conftest.$ac_ext
14163 cat >>conftest.$ac_ext <<_ACEOF
14164 /* end confdefs.h. */
14165 #include <sys/types.h>
14166 #include <sys/wait.h>
14167 #ifndef WEXITSTATUS
14168 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14171 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14179 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14184 rm -f conftest.$ac_objext
14185 if { (ac_try="$ac_compile"
14186 case "(($ac_try" in
14187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14188 *) ac_try_echo=$ac_try;;
14190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14191 (eval "$ac_compile") 2>conftest.er1
14193 grep -v '^ *+' conftest.er1 >conftest.err
14195 cat conftest.err >&5
14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 (exit $ac_status); } &&
14198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14199 { (case "(($ac_try" in
14200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14201 *) ac_try_echo=$ac_try;;
14203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14204 (eval "$ac_try") 2>&5
14206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 (exit $ac_status); }; } &&
14208 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
14216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217 (exit $ac_status); }; }; then
14218 ac_cv_header_sys_wait_h=yes
14220 echo "$as_me: failed program was:" >&5
14221 sed 's/^/| /' conftest.$ac_ext >&5
14223 ac_cv_header_sys_wait_h=no
14226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14228 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14229 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14230 if test $ac_cv_header_sys_wait_h = yes; then
14232 cat >>confdefs.h <<\_ACEOF
14233 #define HAVE_SYS_WAIT_H 1
14238 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14239 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14240 if test "${ac_cv_header_time+set}" = set; then
14241 echo $ECHO_N "(cached) $ECHO_C" >&6
14243 cat >conftest.$ac_ext <<_ACEOF
14246 cat confdefs.h >>conftest.$ac_ext
14247 cat >>conftest.$ac_ext <<_ACEOF
14248 /* end confdefs.h. */
14249 #include <sys/types.h>
14250 #include <sys/time.h>
14256 if ((struct tm *) 0)
14262 rm -f conftest.$ac_objext
14263 if { (ac_try="$ac_compile"
14264 case "(($ac_try" in
14265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14266 *) ac_try_echo=$ac_try;;
14268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14269 (eval "$ac_compile") 2>conftest.er1
14271 grep -v '^ *+' conftest.er1 >conftest.err
14273 cat conftest.err >&5
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); } &&
14276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14277 { (case "(($ac_try" in
14278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14279 *) ac_try_echo=$ac_try;;
14281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14282 (eval "$ac_try") 2>&5
14284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285 (exit $ac_status); }; } &&
14286 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
14294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295 (exit $ac_status); }; }; then
14296 ac_cv_header_time=yes
14298 echo "$as_me: failed program was:" >&5
14299 sed 's/^/| /' conftest.$ac_ext >&5
14301 ac_cv_header_time=no
14304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14306 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14307 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14308 if test $ac_cv_header_time = yes; then
14310 cat >>confdefs.h <<\_ACEOF
14311 #define TIME_WITH_SYS_TIME 1
14323 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14325 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14327 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14330 echo $ECHO_N "(cached) $ECHO_C" >&6
14332 ac_res=`eval echo '${'$as_ac_Header'}'`
14333 { echo "$as_me:$LINENO: result: $ac_res" >&5
14334 echo "${ECHO_T}$ac_res" >&6; }
14336 # Is the header compilable?
14337 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14338 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14339 cat >conftest.$ac_ext <<_ACEOF
14342 cat confdefs.h >>conftest.$ac_ext
14343 cat >>conftest.$ac_ext <<_ACEOF
14344 /* end confdefs.h. */
14345 $ac_includes_default
14346 #include <$ac_header>
14348 rm -f conftest.$ac_objext
14349 if { (ac_try="$ac_compile"
14350 case "(($ac_try" in
14351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14352 *) ac_try_echo=$ac_try;;
14354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14355 (eval "$ac_compile") 2>conftest.er1
14357 grep -v '^ *+' conftest.er1 >conftest.err
14359 cat conftest.err >&5
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); } &&
14362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14363 { (case "(($ac_try" in
14364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14365 *) ac_try_echo=$ac_try;;
14367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14368 (eval "$ac_try") 2>&5
14370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371 (exit $ac_status); }; } &&
14372 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 (exit $ac_status); }; }; then
14382 ac_header_compiler=yes
14384 echo "$as_me: failed program was:" >&5
14385 sed 's/^/| /' conftest.$ac_ext >&5
14387 ac_header_compiler=no
14390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14391 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14392 echo "${ECHO_T}$ac_header_compiler" >&6; }
14394 # Is the header present?
14395 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14396 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14397 cat >conftest.$ac_ext <<_ACEOF
14400 cat confdefs.h >>conftest.$ac_ext
14401 cat >>conftest.$ac_ext <<_ACEOF
14402 /* end confdefs.h. */
14403 #include <$ac_header>
14405 if { (ac_try="$ac_cpp conftest.$ac_ext"
14406 case "(($ac_try" in
14407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14408 *) ac_try_echo=$ac_try;;
14410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14411 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14413 grep -v '^ *+' conftest.er1 >conftest.err
14415 cat conftest.err >&5
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); } >/dev/null; then
14418 if test -s conftest.err; then
14419 ac_cpp_err=$ac_c_preproc_warn_flag
14420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14427 if test -z "$ac_cpp_err"; then
14428 ac_header_preproc=yes
14430 echo "$as_me: failed program was:" >&5
14431 sed 's/^/| /' conftest.$ac_ext >&5
14433 ac_header_preproc=no
14436 rm -f conftest.err conftest.$ac_ext
14437 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14438 echo "${ECHO_T}$ac_header_preproc" >&6; }
14440 # So? What about this header?
14441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14443 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14444 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14446 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14447 ac_header_preproc=yes
14450 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14451 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14452 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14453 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14454 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14455 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14456 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14457 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14459 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14460 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14461 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14463 ## ------------------------------------ ##
14464 ## Report this to http://llvm.org/bugs/ ##
14465 ## ------------------------------------ ##
14467 ) | sed "s/^/$as_me: WARNING: /" >&2
14470 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14473 echo $ECHO_N "(cached) $ECHO_C" >&6
14475 eval "$as_ac_Header=\$ac_header_preproc"
14477 ac_res=`eval echo '${'$as_ac_Header'}'`
14478 { echo "$as_me:$LINENO: result: $ac_res" >&5
14479 echo "${ECHO_T}$ac_res" >&6; }
14482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14483 cat >>confdefs.h <<_ACEOF
14484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14497 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14499 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14501 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14504 echo $ECHO_N "(cached) $ECHO_C" >&6
14506 ac_res=`eval echo '${'$as_ac_Header'}'`
14507 { echo "$as_me:$LINENO: result: $ac_res" >&5
14508 echo "${ECHO_T}$ac_res" >&6; }
14510 # Is the header compilable?
14511 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14512 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14513 cat >conftest.$ac_ext <<_ACEOF
14516 cat confdefs.h >>conftest.$ac_ext
14517 cat >>conftest.$ac_ext <<_ACEOF
14518 /* end confdefs.h. */
14519 $ac_includes_default
14520 #include <$ac_header>
14522 rm -f conftest.$ac_objext
14523 if { (ac_try="$ac_compile"
14524 case "(($ac_try" in
14525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14526 *) ac_try_echo=$ac_try;;
14528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14529 (eval "$ac_compile") 2>conftest.er1
14531 grep -v '^ *+' conftest.er1 >conftest.err
14533 cat conftest.err >&5
14534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535 (exit $ac_status); } &&
14536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14537 { (case "(($ac_try" in
14538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14539 *) ac_try_echo=$ac_try;;
14541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14542 (eval "$ac_try") 2>&5
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); }; } &&
14546 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
14554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555 (exit $ac_status); }; }; then
14556 ac_header_compiler=yes
14558 echo "$as_me: failed program was:" >&5
14559 sed 's/^/| /' conftest.$ac_ext >&5
14561 ac_header_compiler=no
14564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14565 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14566 echo "${ECHO_T}$ac_header_compiler" >&6; }
14568 # Is the header present?
14569 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14570 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14571 cat >conftest.$ac_ext <<_ACEOF
14574 cat confdefs.h >>conftest.$ac_ext
14575 cat >>conftest.$ac_ext <<_ACEOF
14576 /* end confdefs.h. */
14577 #include <$ac_header>
14579 if { (ac_try="$ac_cpp conftest.$ac_ext"
14580 case "(($ac_try" in
14581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14582 *) ac_try_echo=$ac_try;;
14584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14587 grep -v '^ *+' conftest.er1 >conftest.err
14589 cat conftest.err >&5
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); } >/dev/null; then
14592 if test -s conftest.err; then
14593 ac_cpp_err=$ac_c_preproc_warn_flag
14594 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14601 if test -z "$ac_cpp_err"; then
14602 ac_header_preproc=yes
14604 echo "$as_me: failed program was:" >&5
14605 sed 's/^/| /' conftest.$ac_ext >&5
14607 ac_header_preproc=no
14610 rm -f conftest.err conftest.$ac_ext
14611 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14612 echo "${ECHO_T}$ac_header_preproc" >&6; }
14614 # So? What about this header?
14615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14617 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14618 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14620 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14621 ac_header_preproc=yes
14624 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14625 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14626 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14627 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14628 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14629 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14630 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14631 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14633 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14634 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14635 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14637 ## ------------------------------------ ##
14638 ## Report this to http://llvm.org/bugs/ ##
14639 ## ------------------------------------ ##
14641 ) | sed "s/^/$as_me: WARNING: /" >&2
14644 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14647 echo $ECHO_N "(cached) $ECHO_C" >&6
14649 eval "$as_ac_Header=\$ac_header_preproc"
14651 ac_res=`eval echo '${'$as_ac_Header'}'`
14652 { echo "$as_me:$LINENO: result: $ac_res" >&5
14653 echo "${ECHO_T}$ac_res" >&6; }
14656 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14657 cat >>confdefs.h <<_ACEOF
14658 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14667 for ac_header in utime.h windows.h
14669 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14671 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14674 echo $ECHO_N "(cached) $ECHO_C" >&6
14676 ac_res=`eval echo '${'$as_ac_Header'}'`
14677 { echo "$as_me:$LINENO: result: $ac_res" >&5
14678 echo "${ECHO_T}$ac_res" >&6; }
14680 # Is the header compilable?
14681 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14682 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14683 cat >conftest.$ac_ext <<_ACEOF
14686 cat confdefs.h >>conftest.$ac_ext
14687 cat >>conftest.$ac_ext <<_ACEOF
14688 /* end confdefs.h. */
14689 $ac_includes_default
14690 #include <$ac_header>
14692 rm -f conftest.$ac_objext
14693 if { (ac_try="$ac_compile"
14694 case "(($ac_try" in
14695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14696 *) ac_try_echo=$ac_try;;
14698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14699 (eval "$ac_compile") 2>conftest.er1
14701 grep -v '^ *+' conftest.er1 >conftest.err
14703 cat conftest.err >&5
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); } &&
14706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14707 { (case "(($ac_try" in
14708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14709 *) ac_try_echo=$ac_try;;
14711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14712 (eval "$ac_try") 2>&5
14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); }; } &&
14716 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
14724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725 (exit $ac_status); }; }; then
14726 ac_header_compiler=yes
14728 echo "$as_me: failed program was:" >&5
14729 sed 's/^/| /' conftest.$ac_ext >&5
14731 ac_header_compiler=no
14734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14735 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14736 echo "${ECHO_T}$ac_header_compiler" >&6; }
14738 # Is the header present?
14739 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14740 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14741 cat >conftest.$ac_ext <<_ACEOF
14744 cat confdefs.h >>conftest.$ac_ext
14745 cat >>conftest.$ac_ext <<_ACEOF
14746 /* end confdefs.h. */
14747 #include <$ac_header>
14749 if { (ac_try="$ac_cpp conftest.$ac_ext"
14750 case "(($ac_try" in
14751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14752 *) ac_try_echo=$ac_try;;
14754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14757 grep -v '^ *+' conftest.er1 >conftest.err
14759 cat conftest.err >&5
14760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761 (exit $ac_status); } >/dev/null; then
14762 if test -s conftest.err; then
14763 ac_cpp_err=$ac_c_preproc_warn_flag
14764 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14771 if test -z "$ac_cpp_err"; then
14772 ac_header_preproc=yes
14774 echo "$as_me: failed program was:" >&5
14775 sed 's/^/| /' conftest.$ac_ext >&5
14777 ac_header_preproc=no
14780 rm -f conftest.err conftest.$ac_ext
14781 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14782 echo "${ECHO_T}$ac_header_preproc" >&6; }
14784 # So? What about this header?
14785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14787 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14788 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14790 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14791 ac_header_preproc=yes
14794 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14795 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14796 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14797 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14798 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14799 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14800 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14801 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14803 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14804 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14805 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14807 ## ------------------------------------ ##
14808 ## Report this to http://llvm.org/bugs/ ##
14809 ## ------------------------------------ ##
14811 ) | sed "s/^/$as_me: WARNING: /" >&2
14814 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14817 echo $ECHO_N "(cached) $ECHO_C" >&6
14819 eval "$as_ac_Header=\$ac_header_preproc"
14821 ac_res=`eval echo '${'$as_ac_Header'}'`
14822 { echo "$as_me:$LINENO: result: $ac_res" >&5
14823 echo "${ECHO_T}$ac_res" >&6; }
14826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14827 cat >>confdefs.h <<_ACEOF
14828 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14840 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14842 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14844 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14847 echo $ECHO_N "(cached) $ECHO_C" >&6
14849 ac_res=`eval echo '${'$as_ac_Header'}'`
14850 { echo "$as_me:$LINENO: result: $ac_res" >&5
14851 echo "${ECHO_T}$ac_res" >&6; }
14853 # Is the header compilable?
14854 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14855 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14856 cat >conftest.$ac_ext <<_ACEOF
14859 cat confdefs.h >>conftest.$ac_ext
14860 cat >>conftest.$ac_ext <<_ACEOF
14861 /* end confdefs.h. */
14862 $ac_includes_default
14863 #include <$ac_header>
14865 rm -f conftest.$ac_objext
14866 if { (ac_try="$ac_compile"
14867 case "(($ac_try" in
14868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14869 *) ac_try_echo=$ac_try;;
14871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14872 (eval "$ac_compile") 2>conftest.er1
14874 grep -v '^ *+' conftest.er1 >conftest.err
14876 cat conftest.err >&5
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); } &&
14879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14880 { (case "(($ac_try" in
14881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14882 *) ac_try_echo=$ac_try;;
14884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14885 (eval "$ac_try") 2>&5
14887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888 (exit $ac_status); }; } &&
14889 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
14897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898 (exit $ac_status); }; }; then
14899 ac_header_compiler=yes
14901 echo "$as_me: failed program was:" >&5
14902 sed 's/^/| /' conftest.$ac_ext >&5
14904 ac_header_compiler=no
14907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14908 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14909 echo "${ECHO_T}$ac_header_compiler" >&6; }
14911 # Is the header present?
14912 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14913 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14914 cat >conftest.$ac_ext <<_ACEOF
14917 cat confdefs.h >>conftest.$ac_ext
14918 cat >>conftest.$ac_ext <<_ACEOF
14919 /* end confdefs.h. */
14920 #include <$ac_header>
14922 if { (ac_try="$ac_cpp conftest.$ac_ext"
14923 case "(($ac_try" in
14924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14925 *) ac_try_echo=$ac_try;;
14927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14930 grep -v '^ *+' conftest.er1 >conftest.err
14932 cat conftest.err >&5
14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); } >/dev/null; then
14935 if test -s conftest.err; then
14936 ac_cpp_err=$ac_c_preproc_warn_flag
14937 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14944 if test -z "$ac_cpp_err"; then
14945 ac_header_preproc=yes
14947 echo "$as_me: failed program was:" >&5
14948 sed 's/^/| /' conftest.$ac_ext >&5
14950 ac_header_preproc=no
14953 rm -f conftest.err conftest.$ac_ext
14954 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14955 echo "${ECHO_T}$ac_header_preproc" >&6; }
14957 # So? What about this header?
14958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14960 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14961 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14963 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14964 ac_header_preproc=yes
14967 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14968 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14969 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14970 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14971 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14972 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14973 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14974 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14976 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14977 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14978 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14980 ## ------------------------------------ ##
14981 ## Report this to http://llvm.org/bugs/ ##
14982 ## ------------------------------------ ##
14984 ) | sed "s/^/$as_me: WARNING: /" >&2
14987 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14990 echo $ECHO_N "(cached) $ECHO_C" >&6
14992 eval "$as_ac_Header=\$ac_header_preproc"
14994 ac_res=`eval echo '${'$as_ac_Header'}'`
14995 { echo "$as_me:$LINENO: result: $ac_res" >&5
14996 echo "${ECHO_T}$ac_res" >&6; }
14999 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15000 cat >>confdefs.h <<_ACEOF
15001 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15012 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15014 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15016 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15019 echo $ECHO_N "(cached) $ECHO_C" >&6
15021 ac_res=`eval echo '${'$as_ac_Header'}'`
15022 { echo "$as_me:$LINENO: result: $ac_res" >&5
15023 echo "${ECHO_T}$ac_res" >&6; }
15025 # Is the header compilable?
15026 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15027 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15028 cat >conftest.$ac_ext <<_ACEOF
15031 cat confdefs.h >>conftest.$ac_ext
15032 cat >>conftest.$ac_ext <<_ACEOF
15033 /* end confdefs.h. */
15034 $ac_includes_default
15035 #include <$ac_header>
15037 rm -f conftest.$ac_objext
15038 if { (ac_try="$ac_compile"
15039 case "(($ac_try" in
15040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15041 *) ac_try_echo=$ac_try;;
15043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15044 (eval "$ac_compile") 2>conftest.er1
15046 grep -v '^ *+' conftest.er1 >conftest.err
15048 cat conftest.err >&5
15049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050 (exit $ac_status); } &&
15051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15052 { (case "(($ac_try" in
15053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15054 *) ac_try_echo=$ac_try;;
15056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15057 (eval "$ac_try") 2>&5
15059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060 (exit $ac_status); }; } &&
15061 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
15069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070 (exit $ac_status); }; }; then
15071 ac_header_compiler=yes
15073 echo "$as_me: failed program was:" >&5
15074 sed 's/^/| /' conftest.$ac_ext >&5
15076 ac_header_compiler=no
15079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15080 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15081 echo "${ECHO_T}$ac_header_compiler" >&6; }
15083 # Is the header present?
15084 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15085 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15086 cat >conftest.$ac_ext <<_ACEOF
15089 cat confdefs.h >>conftest.$ac_ext
15090 cat >>conftest.$ac_ext <<_ACEOF
15091 /* end confdefs.h. */
15092 #include <$ac_header>
15094 if { (ac_try="$ac_cpp conftest.$ac_ext"
15095 case "(($ac_try" in
15096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15097 *) ac_try_echo=$ac_try;;
15099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15102 grep -v '^ *+' conftest.er1 >conftest.err
15104 cat conftest.err >&5
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); } >/dev/null; then
15107 if test -s conftest.err; then
15108 ac_cpp_err=$ac_c_preproc_warn_flag
15109 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15116 if test -z "$ac_cpp_err"; then
15117 ac_header_preproc=yes
15119 echo "$as_me: failed program was:" >&5
15120 sed 's/^/| /' conftest.$ac_ext >&5
15122 ac_header_preproc=no
15125 rm -f conftest.err conftest.$ac_ext
15126 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15127 echo "${ECHO_T}$ac_header_preproc" >&6; }
15129 # So? What about this header?
15130 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15132 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15133 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15135 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15136 ac_header_preproc=yes
15139 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15140 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15141 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15142 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15143 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15144 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15145 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15146 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15148 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15149 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15150 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15152 ## ------------------------------------ ##
15153 ## Report this to http://llvm.org/bugs/ ##
15154 ## ------------------------------------ ##
15156 ) | sed "s/^/$as_me: WARNING: /" >&2
15159 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15162 echo $ECHO_N "(cached) $ECHO_C" >&6
15164 eval "$as_ac_Header=\$ac_header_preproc"
15166 ac_res=`eval echo '${'$as_ac_Header'}'`
15167 { echo "$as_me:$LINENO: result: $ac_res" >&5
15168 echo "${ECHO_T}$ac_res" >&6; }
15171 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15172 cat >>confdefs.h <<_ACEOF
15173 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15181 for ac_header in valgrind/valgrind.h
15183 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15185 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15188 echo $ECHO_N "(cached) $ECHO_C" >&6
15190 ac_res=`eval echo '${'$as_ac_Header'}'`
15191 { echo "$as_me:$LINENO: result: $ac_res" >&5
15192 echo "${ECHO_T}$ac_res" >&6; }
15194 # Is the header compilable?
15195 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15196 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15197 cat >conftest.$ac_ext <<_ACEOF
15200 cat confdefs.h >>conftest.$ac_ext
15201 cat >>conftest.$ac_ext <<_ACEOF
15202 /* end confdefs.h. */
15203 $ac_includes_default
15204 #include <$ac_header>
15206 rm -f conftest.$ac_objext
15207 if { (ac_try="$ac_compile"
15208 case "(($ac_try" in
15209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15210 *) ac_try_echo=$ac_try;;
15212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15213 (eval "$ac_compile") 2>conftest.er1
15215 grep -v '^ *+' conftest.er1 >conftest.err
15217 cat conftest.err >&5
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); } &&
15220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15221 { (case "(($ac_try" in
15222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15223 *) ac_try_echo=$ac_try;;
15225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15226 (eval "$ac_try") 2>&5
15228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 (exit $ac_status); }; } &&
15230 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
15238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239 (exit $ac_status); }; }; then
15240 ac_header_compiler=yes
15242 echo "$as_me: failed program was:" >&5
15243 sed 's/^/| /' conftest.$ac_ext >&5
15245 ac_header_compiler=no
15248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15249 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15250 echo "${ECHO_T}$ac_header_compiler" >&6; }
15252 # Is the header present?
15253 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15254 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15255 cat >conftest.$ac_ext <<_ACEOF
15258 cat confdefs.h >>conftest.$ac_ext
15259 cat >>conftest.$ac_ext <<_ACEOF
15260 /* end confdefs.h. */
15261 #include <$ac_header>
15263 if { (ac_try="$ac_cpp conftest.$ac_ext"
15264 case "(($ac_try" in
15265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15266 *) ac_try_echo=$ac_try;;
15268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15269 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15271 grep -v '^ *+' conftest.er1 >conftest.err
15273 cat conftest.err >&5
15274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275 (exit $ac_status); } >/dev/null; then
15276 if test -s conftest.err; then
15277 ac_cpp_err=$ac_c_preproc_warn_flag
15278 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15285 if test -z "$ac_cpp_err"; then
15286 ac_header_preproc=yes
15288 echo "$as_me: failed program was:" >&5
15289 sed 's/^/| /' conftest.$ac_ext >&5
15291 ac_header_preproc=no
15294 rm -f conftest.err conftest.$ac_ext
15295 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15296 echo "${ECHO_T}$ac_header_preproc" >&6; }
15298 # So? What about this header?
15299 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15301 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15302 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15304 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15305 ac_header_preproc=yes
15308 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15309 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15310 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15311 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15312 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15313 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15314 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15315 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15317 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15318 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15319 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15321 ## ------------------------------------ ##
15322 ## Report this to http://llvm.org/bugs/ ##
15323 ## ------------------------------------ ##
15325 ) | sed "s/^/$as_me: WARNING: /" >&2
15328 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15331 echo $ECHO_N "(cached) $ECHO_C" >&6
15333 eval "$as_ac_Header=\$ac_header_preproc"
15335 ac_res=`eval echo '${'$as_ac_Header'}'`
15336 { echo "$as_me:$LINENO: result: $ac_res" >&5
15337 echo "${ECHO_T}$ac_res" >&6; }
15340 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15341 cat >>confdefs.h <<_ACEOF
15342 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15350 for ac_header in fenv.h
15352 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15354 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15357 echo $ECHO_N "(cached) $ECHO_C" >&6
15359 ac_res=`eval echo '${'$as_ac_Header'}'`
15360 { echo "$as_me:$LINENO: result: $ac_res" >&5
15361 echo "${ECHO_T}$ac_res" >&6; }
15363 # Is the header compilable?
15364 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15365 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15366 cat >conftest.$ac_ext <<_ACEOF
15369 cat confdefs.h >>conftest.$ac_ext
15370 cat >>conftest.$ac_ext <<_ACEOF
15371 /* end confdefs.h. */
15372 $ac_includes_default
15373 #include <$ac_header>
15375 rm -f conftest.$ac_objext
15376 if { (ac_try="$ac_compile"
15377 case "(($ac_try" in
15378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15379 *) ac_try_echo=$ac_try;;
15381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15382 (eval "$ac_compile") 2>conftest.er1
15384 grep -v '^ *+' conftest.er1 >conftest.err
15386 cat conftest.err >&5
15387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388 (exit $ac_status); } &&
15389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15390 { (case "(($ac_try" in
15391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15392 *) ac_try_echo=$ac_try;;
15394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15395 (eval "$ac_try") 2>&5
15397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398 (exit $ac_status); }; } &&
15399 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408 (exit $ac_status); }; }; then
15409 ac_header_compiler=yes
15411 echo "$as_me: failed program was:" >&5
15412 sed 's/^/| /' conftest.$ac_ext >&5
15414 ac_header_compiler=no
15417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15418 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15419 echo "${ECHO_T}$ac_header_compiler" >&6; }
15421 # Is the header present?
15422 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15423 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15424 cat >conftest.$ac_ext <<_ACEOF
15427 cat confdefs.h >>conftest.$ac_ext
15428 cat >>conftest.$ac_ext <<_ACEOF
15429 /* end confdefs.h. */
15430 #include <$ac_header>
15432 if { (ac_try="$ac_cpp conftest.$ac_ext"
15433 case "(($ac_try" in
15434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15435 *) ac_try_echo=$ac_try;;
15437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15440 grep -v '^ *+' conftest.er1 >conftest.err
15442 cat conftest.err >&5
15443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444 (exit $ac_status); } >/dev/null; then
15445 if test -s conftest.err; then
15446 ac_cpp_err=$ac_c_preproc_warn_flag
15447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15454 if test -z "$ac_cpp_err"; then
15455 ac_header_preproc=yes
15457 echo "$as_me: failed program was:" >&5
15458 sed 's/^/| /' conftest.$ac_ext >&5
15460 ac_header_preproc=no
15463 rm -f conftest.err conftest.$ac_ext
15464 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15465 echo "${ECHO_T}$ac_header_preproc" >&6; }
15467 # So? What about this header?
15468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15470 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15471 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15473 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15474 ac_header_preproc=yes
15477 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15478 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15479 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15480 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15481 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15482 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15483 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15484 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15486 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15487 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15488 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15490 ## ------------------------------------ ##
15491 ## Report this to http://llvm.org/bugs/ ##
15492 ## ------------------------------------ ##
15494 ) | sed "s/^/$as_me: WARNING: /" >&2
15497 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15500 echo $ECHO_N "(cached) $ECHO_C" >&6
15502 eval "$as_ac_Header=\$ac_header_preproc"
15504 ac_res=`eval echo '${'$as_ac_Header'}'`
15505 { echo "$as_me:$LINENO: result: $ac_res" >&5
15506 echo "${ECHO_T}$ac_res" >&6; }
15509 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15510 cat >>confdefs.h <<_ACEOF
15511 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15518 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15520 for ac_header in pthread.h
15522 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15524 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15527 echo $ECHO_N "(cached) $ECHO_C" >&6
15529 ac_res=`eval echo '${'$as_ac_Header'}'`
15530 { echo "$as_me:$LINENO: result: $ac_res" >&5
15531 echo "${ECHO_T}$ac_res" >&6; }
15533 # Is the header compilable?
15534 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15535 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15536 cat >conftest.$ac_ext <<_ACEOF
15539 cat confdefs.h >>conftest.$ac_ext
15540 cat >>conftest.$ac_ext <<_ACEOF
15541 /* end confdefs.h. */
15542 $ac_includes_default
15543 #include <$ac_header>
15545 rm -f conftest.$ac_objext
15546 if { (ac_try="$ac_compile"
15547 case "(($ac_try" in
15548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15549 *) ac_try_echo=$ac_try;;
15551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15552 (eval "$ac_compile") 2>conftest.er1
15554 grep -v '^ *+' conftest.er1 >conftest.err
15556 cat conftest.err >&5
15557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558 (exit $ac_status); } &&
15559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15560 { (case "(($ac_try" in
15561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15562 *) ac_try_echo=$ac_try;;
15564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15565 (eval "$ac_try") 2>&5
15567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568 (exit $ac_status); }; } &&
15569 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
15577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578 (exit $ac_status); }; }; then
15579 ac_header_compiler=yes
15581 echo "$as_me: failed program was:" >&5
15582 sed 's/^/| /' conftest.$ac_ext >&5
15584 ac_header_compiler=no
15587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15588 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15589 echo "${ECHO_T}$ac_header_compiler" >&6; }
15591 # Is the header present?
15592 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15593 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15594 cat >conftest.$ac_ext <<_ACEOF
15597 cat confdefs.h >>conftest.$ac_ext
15598 cat >>conftest.$ac_ext <<_ACEOF
15599 /* end confdefs.h. */
15600 #include <$ac_header>
15602 if { (ac_try="$ac_cpp conftest.$ac_ext"
15603 case "(($ac_try" in
15604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15605 *) ac_try_echo=$ac_try;;
15607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15610 grep -v '^ *+' conftest.er1 >conftest.err
15612 cat conftest.err >&5
15613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614 (exit $ac_status); } >/dev/null; then
15615 if test -s conftest.err; then
15616 ac_cpp_err=$ac_c_preproc_warn_flag
15617 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15624 if test -z "$ac_cpp_err"; then
15625 ac_header_preproc=yes
15627 echo "$as_me: failed program was:" >&5
15628 sed 's/^/| /' conftest.$ac_ext >&5
15630 ac_header_preproc=no
15633 rm -f conftest.err conftest.$ac_ext
15634 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15635 echo "${ECHO_T}$ac_header_preproc" >&6; }
15637 # So? What about this header?
15638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15640 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15641 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15643 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15644 ac_header_preproc=yes
15647 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15648 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15649 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15650 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15651 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15652 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15653 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15654 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15656 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15657 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15658 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15660 ## ------------------------------------ ##
15661 ## Report this to http://llvm.org/bugs/ ##
15662 ## ------------------------------------ ##
15664 ) | sed "s/^/$as_me: WARNING: /" >&2
15667 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15670 echo $ECHO_N "(cached) $ECHO_C" >&6
15672 eval "$as_ac_Header=\$ac_header_preproc"
15674 ac_res=`eval echo '${'$as_ac_Header'}'`
15675 { echo "$as_me:$LINENO: result: $ac_res" >&5
15676 echo "${ECHO_T}$ac_res" >&6; }
15679 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15680 cat >>confdefs.h <<_ACEOF
15681 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15697 if test "$llvm_cv_enable_libffi" = "yes" ; then
15700 for ac_header in ffi.h ffi/ffi.h
15702 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15704 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15707 echo $ECHO_N "(cached) $ECHO_C" >&6
15709 ac_res=`eval echo '${'$as_ac_Header'}'`
15710 { echo "$as_me:$LINENO: result: $ac_res" >&5
15711 echo "${ECHO_T}$ac_res" >&6; }
15713 # Is the header compilable?
15714 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15715 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15716 cat >conftest.$ac_ext <<_ACEOF
15719 cat confdefs.h >>conftest.$ac_ext
15720 cat >>conftest.$ac_ext <<_ACEOF
15721 /* end confdefs.h. */
15722 $ac_includes_default
15723 #include <$ac_header>
15725 rm -f conftest.$ac_objext
15726 if { (ac_try="$ac_compile"
15727 case "(($ac_try" in
15728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15729 *) ac_try_echo=$ac_try;;
15731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15732 (eval "$ac_compile") 2>conftest.er1
15734 grep -v '^ *+' conftest.er1 >conftest.err
15736 cat conftest.err >&5
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); } &&
15739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15740 { (case "(($ac_try" in
15741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15742 *) ac_try_echo=$ac_try;;
15744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15745 (eval "$ac_try") 2>&5
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); }; } &&
15749 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
15757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758 (exit $ac_status); }; }; then
15759 ac_header_compiler=yes
15761 echo "$as_me: failed program was:" >&5
15762 sed 's/^/| /' conftest.$ac_ext >&5
15764 ac_header_compiler=no
15767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15768 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15769 echo "${ECHO_T}$ac_header_compiler" >&6; }
15771 # Is the header present?
15772 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15773 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15774 cat >conftest.$ac_ext <<_ACEOF
15777 cat confdefs.h >>conftest.$ac_ext
15778 cat >>conftest.$ac_ext <<_ACEOF
15779 /* end confdefs.h. */
15780 #include <$ac_header>
15782 if { (ac_try="$ac_cpp conftest.$ac_ext"
15783 case "(($ac_try" in
15784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15785 *) ac_try_echo=$ac_try;;
15787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15788 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15790 grep -v '^ *+' conftest.er1 >conftest.err
15792 cat conftest.err >&5
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); } >/dev/null; then
15795 if test -s conftest.err; then
15796 ac_cpp_err=$ac_c_preproc_warn_flag
15797 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15804 if test -z "$ac_cpp_err"; then
15805 ac_header_preproc=yes
15807 echo "$as_me: failed program was:" >&5
15808 sed 's/^/| /' conftest.$ac_ext >&5
15810 ac_header_preproc=no
15813 rm -f conftest.err conftest.$ac_ext
15814 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15815 echo "${ECHO_T}$ac_header_preproc" >&6; }
15817 # So? What about this header?
15818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15820 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15821 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15823 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15824 ac_header_preproc=yes
15827 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15828 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15829 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15830 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15831 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15832 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15833 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15834 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15837 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15838 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15840 ## ------------------------------------ ##
15841 ## Report this to http://llvm.org/bugs/ ##
15842 ## ------------------------------------ ##
15844 ) | sed "s/^/$as_me: WARNING: /" >&2
15847 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15850 echo $ECHO_N "(cached) $ECHO_C" >&6
15852 eval "$as_ac_Header=\$ac_header_preproc"
15854 ac_res=`eval echo '${'$as_ac_Header'}'`
15855 { echo "$as_me:$LINENO: result: $ac_res" >&5
15856 echo "${ECHO_T}$ac_res" >&6; }
15859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15860 cat >>confdefs.h <<_ACEOF
15861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15871 for ac_header in CrashReporterClient.h
15873 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15875 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15877 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15878 echo $ECHO_N "(cached) $ECHO_C" >&6
15880 ac_res=`eval echo '${'$as_ac_Header'}'`
15881 { echo "$as_me:$LINENO: result: $ac_res" >&5
15882 echo "${ECHO_T}$ac_res" >&6; }
15884 # Is the header compilable?
15885 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15886 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15887 cat >conftest.$ac_ext <<_ACEOF
15890 cat confdefs.h >>conftest.$ac_ext
15891 cat >>conftest.$ac_ext <<_ACEOF
15892 /* end confdefs.h. */
15893 $ac_includes_default
15894 #include <$ac_header>
15896 rm -f conftest.$ac_objext
15897 if { (ac_try="$ac_compile"
15898 case "(($ac_try" in
15899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15900 *) ac_try_echo=$ac_try;;
15902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15903 (eval "$ac_compile") 2>conftest.er1
15905 grep -v '^ *+' conftest.er1 >conftest.err
15907 cat conftest.err >&5
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); } &&
15910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15911 { (case "(($ac_try" in
15912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15913 *) ac_try_echo=$ac_try;;
15915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15916 (eval "$ac_try") 2>&5
15918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919 (exit $ac_status); }; } &&
15920 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
15928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929 (exit $ac_status); }; }; then
15930 ac_header_compiler=yes
15932 echo "$as_me: failed program was:" >&5
15933 sed 's/^/| /' conftest.$ac_ext >&5
15935 ac_header_compiler=no
15938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15939 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15940 echo "${ECHO_T}$ac_header_compiler" >&6; }
15942 # Is the header present?
15943 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15944 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15945 cat >conftest.$ac_ext <<_ACEOF
15948 cat confdefs.h >>conftest.$ac_ext
15949 cat >>conftest.$ac_ext <<_ACEOF
15950 /* end confdefs.h. */
15951 #include <$ac_header>
15953 if { (ac_try="$ac_cpp conftest.$ac_ext"
15954 case "(($ac_try" in
15955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15956 *) ac_try_echo=$ac_try;;
15958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15961 grep -v '^ *+' conftest.er1 >conftest.err
15963 cat conftest.err >&5
15964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965 (exit $ac_status); } >/dev/null; then
15966 if test -s conftest.err; then
15967 ac_cpp_err=$ac_c_preproc_warn_flag
15968 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15975 if test -z "$ac_cpp_err"; then
15976 ac_header_preproc=yes
15978 echo "$as_me: failed program was:" >&5
15979 sed 's/^/| /' conftest.$ac_ext >&5
15981 ac_header_preproc=no
15984 rm -f conftest.err conftest.$ac_ext
15985 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15986 echo "${ECHO_T}$ac_header_preproc" >&6; }
15988 # So? What about this header?
15989 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15991 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15992 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15994 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15995 ac_header_preproc=yes
15998 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15999 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16000 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16001 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16002 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16003 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16004 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16005 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16006 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16007 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16008 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16009 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16011 ## ------------------------------------ ##
16012 ## Report this to http://llvm.org/bugs/ ##
16013 ## ------------------------------------ ##
16015 ) | sed "s/^/$as_me: WARNING: /" >&2
16018 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16021 echo $ECHO_N "(cached) $ECHO_C" >&6
16023 eval "$as_ac_Header=\$ac_header_preproc"
16025 ac_res=`eval echo '${'$as_ac_Header'}'`
16026 { echo "$as_me:$LINENO: result: $ac_res" >&5
16027 echo "${ECHO_T}$ac_res" >&6; }
16030 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16031 cat >>confdefs.h <<_ACEOF
16032 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16040 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16041 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16042 cat >conftest.$ac_ext <<_ACEOF
16045 cat confdefs.h >>conftest.$ac_ext
16046 cat >>conftest.$ac_ext <<_ACEOF
16047 /* end confdefs.h. */
16048 extern const char *__crashreporter_info__;
16050 __crashreporter_info__ = "test";
16055 rm -f conftest.$ac_objext conftest$ac_exeext
16056 if { (ac_try="$ac_link"
16057 case "(($ac_try" in
16058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16059 *) ac_try_echo=$ac_try;;
16061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16062 (eval "$ac_link") 2>conftest.er1
16064 grep -v '^ *+' conftest.er1 >conftest.err
16066 cat conftest.err >&5
16067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068 (exit $ac_status); } &&
16069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16070 { (case "(($ac_try" in
16071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16072 *) ac_try_echo=$ac_try;;
16074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16075 (eval "$ac_try") 2>&5
16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 (exit $ac_status); }; } &&
16079 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); }; }; then
16089 { echo "$as_me:$LINENO: result: yes" >&5
16090 echo "${ECHO_T}yes" >&6; }
16092 cat >>confdefs.h <<\_ACEOF
16093 #define HAVE_CRASHREPORTER_INFO 1
16097 echo "$as_me: failed program was:" >&5
16098 sed 's/^/| /' conftest.$ac_ext >&5
16100 { echo "$as_me:$LINENO: result: no" >&5
16101 echo "${ECHO_T}no" >&6; }
16103 cat >>confdefs.h <<\_ACEOF
16104 #define HAVE_CRASHREPORTER_INFO 0
16109 rm -f core conftest.err conftest.$ac_objext \
16110 conftest$ac_exeext conftest.$ac_ext
16115 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16116 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16117 if test "${ac_cv_huge_val_sanity+set}" = set; then
16118 echo $ECHO_N "(cached) $ECHO_C" >&6
16122 ac_cpp='$CXXCPP $CPPFLAGS'
16123 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16124 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16125 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16127 ac_save_CXXFLAGS=$CXXFLAGS
16129 if test "$cross_compiling" = yes; then
16130 ac_cv_huge_val_sanity=yes
16132 cat >conftest.$ac_ext <<_ACEOF
16135 cat confdefs.h >>conftest.$ac_ext
16136 cat >>conftest.$ac_ext <<_ACEOF
16137 /* end confdefs.h. */
16142 double x = HUGE_VAL; return x != x;
16147 rm -f conftest$ac_exeext
16148 if { (ac_try="$ac_link"
16149 case "(($ac_try" in
16150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16151 *) ac_try_echo=$ac_try;;
16153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16154 (eval "$ac_link") 2>&5
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16158 { (case "(($ac_try" in
16159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16160 *) ac_try_echo=$ac_try;;
16162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16163 (eval "$ac_try") 2>&5
16165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166 (exit $ac_status); }; }; then
16167 ac_cv_huge_val_sanity=yes
16169 echo "$as_me: program exited with status $ac_status" >&5
16170 echo "$as_me: failed program was:" >&5
16171 sed 's/^/| /' conftest.$ac_ext >&5
16173 ( exit $ac_status )
16174 ac_cv_huge_val_sanity=no
16176 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16180 CXXFLAGS=$ac_save_CXXFLAGS
16182 ac_cpp='$CPP $CPPFLAGS'
16183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16189 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16190 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16191 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16194 { echo "$as_me:$LINENO: checking for pid_t" >&5
16195 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16196 if test "${ac_cv_type_pid_t+set}" = set; then
16197 echo $ECHO_N "(cached) $ECHO_C" >&6
16199 cat >conftest.$ac_ext <<_ACEOF
16202 cat confdefs.h >>conftest.$ac_ext
16203 cat >>conftest.$ac_ext <<_ACEOF
16204 /* end confdefs.h. */
16205 $ac_includes_default
16206 typedef pid_t ac__type_new_;
16210 if ((ac__type_new_ *) 0)
16212 if (sizeof (ac__type_new_))
16218 rm -f conftest.$ac_objext
16219 if { (ac_try="$ac_compile"
16220 case "(($ac_try" in
16221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16222 *) ac_try_echo=$ac_try;;
16224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16225 (eval "$ac_compile") 2>conftest.er1
16227 grep -v '^ *+' conftest.er1 >conftest.err
16229 cat conftest.err >&5
16230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231 (exit $ac_status); } &&
16232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16233 { (case "(($ac_try" in
16234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16235 *) ac_try_echo=$ac_try;;
16237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16238 (eval "$ac_try") 2>&5
16240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241 (exit $ac_status); }; } &&
16242 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
16250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251 (exit $ac_status); }; }; then
16252 ac_cv_type_pid_t=yes
16254 echo "$as_me: failed program was:" >&5
16255 sed 's/^/| /' conftest.$ac_ext >&5
16257 ac_cv_type_pid_t=no
16260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16262 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16263 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16264 if test $ac_cv_type_pid_t = yes; then
16268 cat >>confdefs.h <<_ACEOF
16274 { echo "$as_me:$LINENO: checking for size_t" >&5
16275 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16276 if test "${ac_cv_type_size_t+set}" = set; then
16277 echo $ECHO_N "(cached) $ECHO_C" >&6
16279 cat >conftest.$ac_ext <<_ACEOF
16282 cat confdefs.h >>conftest.$ac_ext
16283 cat >>conftest.$ac_ext <<_ACEOF
16284 /* end confdefs.h. */
16285 $ac_includes_default
16286 typedef size_t ac__type_new_;
16290 if ((ac__type_new_ *) 0)
16292 if (sizeof (ac__type_new_))
16298 rm -f conftest.$ac_objext
16299 if { (ac_try="$ac_compile"
16300 case "(($ac_try" in
16301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16302 *) ac_try_echo=$ac_try;;
16304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16305 (eval "$ac_compile") 2>conftest.er1
16307 grep -v '^ *+' conftest.er1 >conftest.err
16309 cat conftest.err >&5
16310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311 (exit $ac_status); } &&
16312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16313 { (case "(($ac_try" in
16314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16315 *) ac_try_echo=$ac_try;;
16317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16318 (eval "$ac_try") 2>&5
16320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321 (exit $ac_status); }; } &&
16322 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
16330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331 (exit $ac_status); }; }; then
16332 ac_cv_type_size_t=yes
16334 echo "$as_me: failed program was:" >&5
16335 sed 's/^/| /' conftest.$ac_ext >&5
16337 ac_cv_type_size_t=no
16340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16342 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16343 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16344 if test $ac_cv_type_size_t = yes; then
16348 cat >>confdefs.h <<_ACEOF
16349 #define size_t unsigned int
16355 cat >>confdefs.h <<_ACEOF
16356 #define RETSIGTYPE void
16359 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16360 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16361 if test "${ac_cv_struct_tm+set}" = set; then
16362 echo $ECHO_N "(cached) $ECHO_C" >&6
16364 cat >conftest.$ac_ext <<_ACEOF
16367 cat confdefs.h >>conftest.$ac_ext
16368 cat >>conftest.$ac_ext <<_ACEOF
16369 /* end confdefs.h. */
16370 #include <sys/types.h>
16376 struct tm *tp; tp->tm_sec;
16381 rm -f conftest.$ac_objext
16382 if { (ac_try="$ac_compile"
16383 case "(($ac_try" in
16384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16385 *) ac_try_echo=$ac_try;;
16387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16388 (eval "$ac_compile") 2>conftest.er1
16390 grep -v '^ *+' conftest.er1 >conftest.err
16392 cat conftest.err >&5
16393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394 (exit $ac_status); } &&
16395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16396 { (case "(($ac_try" in
16397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16398 *) ac_try_echo=$ac_try;;
16400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16401 (eval "$ac_try") 2>&5
16403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); }; } &&
16405 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
16413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414 (exit $ac_status); }; }; then
16415 ac_cv_struct_tm=time.h
16417 echo "$as_me: failed program was:" >&5
16418 sed 's/^/| /' conftest.$ac_ext >&5
16420 ac_cv_struct_tm=sys/time.h
16423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16425 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16426 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16427 if test $ac_cv_struct_tm = sys/time.h; then
16429 cat >>confdefs.h <<\_ACEOF
16430 #define TM_IN_SYS_TIME 1
16435 { echo "$as_me:$LINENO: checking for int64_t" >&5
16436 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16437 if test "${ac_cv_type_int64_t+set}" = set; then
16438 echo $ECHO_N "(cached) $ECHO_C" >&6
16440 cat >conftest.$ac_ext <<_ACEOF
16443 cat confdefs.h >>conftest.$ac_ext
16444 cat >>conftest.$ac_ext <<_ACEOF
16445 /* end confdefs.h. */
16446 $ac_includes_default
16447 typedef int64_t ac__type_new_;
16451 if ((ac__type_new_ *) 0)
16453 if (sizeof (ac__type_new_))
16459 rm -f conftest.$ac_objext
16460 if { (ac_try="$ac_compile"
16461 case "(($ac_try" in
16462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16463 *) ac_try_echo=$ac_try;;
16465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16466 (eval "$ac_compile") 2>conftest.er1
16468 grep -v '^ *+' conftest.er1 >conftest.err
16470 cat conftest.err >&5
16471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472 (exit $ac_status); } &&
16473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16474 { (case "(($ac_try" in
16475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16476 *) ac_try_echo=$ac_try;;
16478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16479 (eval "$ac_try") 2>&5
16481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16482 (exit $ac_status); }; } &&
16483 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
16491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492 (exit $ac_status); }; }; then
16493 ac_cv_type_int64_t=yes
16495 echo "$as_me: failed program was:" >&5
16496 sed 's/^/| /' conftest.$ac_ext >&5
16498 ac_cv_type_int64_t=no
16501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16503 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16504 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16505 if test $ac_cv_type_int64_t = yes; then
16507 cat >>confdefs.h <<_ACEOF
16508 #define HAVE_INT64_T 1
16513 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16514 echo "$as_me: error: Type int64_t required but not found" >&2;}
16515 { (exit 1); exit 1; }; }
16518 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16519 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16520 if test "${ac_cv_type_uint64_t+set}" = set; then
16521 echo $ECHO_N "(cached) $ECHO_C" >&6
16523 cat >conftest.$ac_ext <<_ACEOF
16526 cat confdefs.h >>conftest.$ac_ext
16527 cat >>conftest.$ac_ext <<_ACEOF
16528 /* end confdefs.h. */
16529 $ac_includes_default
16530 typedef uint64_t ac__type_new_;
16534 if ((ac__type_new_ *) 0)
16536 if (sizeof (ac__type_new_))
16542 rm -f conftest.$ac_objext
16543 if { (ac_try="$ac_compile"
16544 case "(($ac_try" in
16545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16546 *) ac_try_echo=$ac_try;;
16548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16549 (eval "$ac_compile") 2>conftest.er1
16551 grep -v '^ *+' conftest.er1 >conftest.err
16553 cat conftest.err >&5
16554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555 (exit $ac_status); } &&
16556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16557 { (case "(($ac_try" in
16558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16559 *) ac_try_echo=$ac_try;;
16561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16562 (eval "$ac_try") 2>&5
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); }; } &&
16566 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
16574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16575 (exit $ac_status); }; }; then
16576 ac_cv_type_uint64_t=yes
16578 echo "$as_me: failed program was:" >&5
16579 sed 's/^/| /' conftest.$ac_ext >&5
16581 ac_cv_type_uint64_t=no
16584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16586 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16587 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16588 if test $ac_cv_type_uint64_t = yes; then
16590 cat >>confdefs.h <<_ACEOF
16591 #define HAVE_UINT64_T 1
16596 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16597 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16598 if test "${ac_cv_type_u_int64_t+set}" = set; then
16599 echo $ECHO_N "(cached) $ECHO_C" >&6
16601 cat >conftest.$ac_ext <<_ACEOF
16604 cat confdefs.h >>conftest.$ac_ext
16605 cat >>conftest.$ac_ext <<_ACEOF
16606 /* end confdefs.h. */
16607 $ac_includes_default
16608 typedef u_int64_t ac__type_new_;
16612 if ((ac__type_new_ *) 0)
16614 if (sizeof (ac__type_new_))
16620 rm -f conftest.$ac_objext
16621 if { (ac_try="$ac_compile"
16622 case "(($ac_try" in
16623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16624 *) ac_try_echo=$ac_try;;
16626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16627 (eval "$ac_compile") 2>conftest.er1
16629 grep -v '^ *+' conftest.er1 >conftest.err
16631 cat conftest.err >&5
16632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633 (exit $ac_status); } &&
16634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16635 { (case "(($ac_try" in
16636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16637 *) ac_try_echo=$ac_try;;
16639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16640 (eval "$ac_try") 2>&5
16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); }; } &&
16644 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
16652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653 (exit $ac_status); }; }; then
16654 ac_cv_type_u_int64_t=yes
16656 echo "$as_me: failed program was:" >&5
16657 sed 's/^/| /' conftest.$ac_ext >&5
16659 ac_cv_type_u_int64_t=no
16662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16664 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16665 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16666 if test $ac_cv_type_u_int64_t = yes; then
16668 cat >>confdefs.h <<_ACEOF
16669 #define HAVE_U_INT64_T 1
16674 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16675 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16676 { (exit 1); exit 1; }; }
16690 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16692 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16693 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16694 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16695 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16696 echo $ECHO_N "(cached) $ECHO_C" >&6
16698 cat >conftest.$ac_ext <<_ACEOF
16701 cat confdefs.h >>conftest.$ac_ext
16702 cat >>conftest.$ac_ext <<_ACEOF
16703 /* end confdefs.h. */
16704 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16706 #define $ac_func innocuous_$ac_func
16708 /* System header to define __stub macros and hopefully few prototypes,
16709 which can conflict with char $ac_func (); below.
16710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16711 <limits.h> exists even on freestanding compilers. */
16714 # include <limits.h>
16716 # include <assert.h>
16721 /* Override any GCC internal prototype to avoid an error.
16722 Use char because int might match the return type of a GCC
16723 builtin and then its argument prototype would still apply. */
16728 /* The GNU C library defines this for functions which it implements
16729 to always fail with ENOSYS. Some functions are actually named
16730 something starting with __ and the normal name is an alias. */
16731 #if defined __stub_$ac_func || defined __stub___$ac_func
16738 return $ac_func ();
16743 rm -f conftest.$ac_objext conftest$ac_exeext
16744 if { (ac_try="$ac_link"
16745 case "(($ac_try" in
16746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16747 *) ac_try_echo=$ac_try;;
16749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16750 (eval "$ac_link") 2>conftest.er1
16752 grep -v '^ *+' conftest.er1 >conftest.err
16754 cat conftest.err >&5
16755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16756 (exit $ac_status); } &&
16757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16758 { (case "(($ac_try" in
16759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16760 *) ac_try_echo=$ac_try;;
16762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16763 (eval "$ac_try") 2>&5
16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766 (exit $ac_status); }; } &&
16767 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
16775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776 (exit $ac_status); }; }; then
16777 eval "$as_ac_var=yes"
16779 echo "$as_me: failed program was:" >&5
16780 sed 's/^/| /' conftest.$ac_ext >&5
16782 eval "$as_ac_var=no"
16785 rm -f core conftest.err conftest.$ac_objext \
16786 conftest$ac_exeext conftest.$ac_ext
16788 ac_res=`eval echo '${'$as_ac_var'}'`
16789 { echo "$as_me:$LINENO: result: $ac_res" >&5
16790 echo "${ECHO_T}$ac_res" >&6; }
16791 if test `eval echo '${'$as_ac_var'}'` = yes; then
16792 cat >>confdefs.h <<_ACEOF
16793 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16803 for ac_func in powf fmodf strtof round
16805 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16806 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16807 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16808 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16809 echo $ECHO_N "(cached) $ECHO_C" >&6
16811 cat >conftest.$ac_ext <<_ACEOF
16814 cat confdefs.h >>conftest.$ac_ext
16815 cat >>conftest.$ac_ext <<_ACEOF
16816 /* end confdefs.h. */
16817 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16819 #define $ac_func innocuous_$ac_func
16821 /* System header to define __stub macros and hopefully few prototypes,
16822 which can conflict with char $ac_func (); below.
16823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16824 <limits.h> exists even on freestanding compilers. */
16827 # include <limits.h>
16829 # include <assert.h>
16834 /* Override any GCC internal prototype to avoid an error.
16835 Use char because int might match the return type of a GCC
16836 builtin and then its argument prototype would still apply. */
16841 /* The GNU C library defines this for functions which it implements
16842 to always fail with ENOSYS. Some functions are actually named
16843 something starting with __ and the normal name is an alias. */
16844 #if defined __stub_$ac_func || defined __stub___$ac_func
16851 return $ac_func ();
16856 rm -f conftest.$ac_objext conftest$ac_exeext
16857 if { (ac_try="$ac_link"
16858 case "(($ac_try" in
16859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16860 *) ac_try_echo=$ac_try;;
16862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16863 (eval "$ac_link") 2>conftest.er1
16865 grep -v '^ *+' conftest.er1 >conftest.err
16867 cat conftest.err >&5
16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869 (exit $ac_status); } &&
16870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16871 { (case "(($ac_try" in
16872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16873 *) ac_try_echo=$ac_try;;
16875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16876 (eval "$ac_try") 2>&5
16878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879 (exit $ac_status); }; } &&
16880 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
16888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889 (exit $ac_status); }; }; then
16890 eval "$as_ac_var=yes"
16892 echo "$as_me: failed program was:" >&5
16893 sed 's/^/| /' conftest.$ac_ext >&5
16895 eval "$as_ac_var=no"
16898 rm -f core conftest.err conftest.$ac_objext \
16899 conftest$ac_exeext conftest.$ac_ext
16901 ac_res=`eval echo '${'$as_ac_var'}'`
16902 { echo "$as_me:$LINENO: result: $ac_res" >&5
16903 echo "${ECHO_T}$ac_res" >&6; }
16904 if test `eval echo '${'$as_ac_var'}'` = yes; then
16905 cat >>confdefs.h <<_ACEOF
16906 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16917 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16919 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16920 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16922 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16923 echo $ECHO_N "(cached) $ECHO_C" >&6
16925 cat >conftest.$ac_ext <<_ACEOF
16928 cat confdefs.h >>conftest.$ac_ext
16929 cat >>conftest.$ac_ext <<_ACEOF
16930 /* end confdefs.h. */
16931 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16933 #define $ac_func innocuous_$ac_func
16935 /* System header to define __stub macros and hopefully few prototypes,
16936 which can conflict with char $ac_func (); below.
16937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16938 <limits.h> exists even on freestanding compilers. */
16941 # include <limits.h>
16943 # include <assert.h>
16948 /* Override any GCC internal prototype to avoid an error.
16949 Use char because int might match the return type of a GCC
16950 builtin and then its argument prototype would still apply. */
16955 /* The GNU C library defines this for functions which it implements
16956 to always fail with ENOSYS. Some functions are actually named
16957 something starting with __ and the normal name is an alias. */
16958 #if defined __stub_$ac_func || defined __stub___$ac_func
16965 return $ac_func ();
16970 rm -f conftest.$ac_objext conftest$ac_exeext
16971 if { (ac_try="$ac_link"
16972 case "(($ac_try" in
16973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16974 *) ac_try_echo=$ac_try;;
16976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16977 (eval "$ac_link") 2>conftest.er1
16979 grep -v '^ *+' conftest.er1 >conftest.err
16981 cat conftest.err >&5
16982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983 (exit $ac_status); } &&
16984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16985 { (case "(($ac_try" in
16986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16987 *) ac_try_echo=$ac_try;;
16989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16990 (eval "$ac_try") 2>&5
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); }; } &&
16994 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
17002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003 (exit $ac_status); }; }; then
17004 eval "$as_ac_var=yes"
17006 echo "$as_me: failed program was:" >&5
17007 sed 's/^/| /' conftest.$ac_ext >&5
17009 eval "$as_ac_var=no"
17012 rm -f core conftest.err conftest.$ac_objext \
17013 conftest$ac_exeext conftest.$ac_ext
17015 ac_res=`eval echo '${'$as_ac_var'}'`
17016 { echo "$as_me:$LINENO: result: $ac_res" >&5
17017 echo "${ECHO_T}$ac_res" >&6; }
17018 if test `eval echo '${'$as_ac_var'}'` = yes; then
17019 cat >>confdefs.h <<_ACEOF
17020 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17029 for ac_func in isatty mkdtemp mkstemp
17031 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17032 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17033 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17034 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17035 echo $ECHO_N "(cached) $ECHO_C" >&6
17037 cat >conftest.$ac_ext <<_ACEOF
17040 cat confdefs.h >>conftest.$ac_ext
17041 cat >>conftest.$ac_ext <<_ACEOF
17042 /* end confdefs.h. */
17043 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17045 #define $ac_func innocuous_$ac_func
17047 /* System header to define __stub macros and hopefully few prototypes,
17048 which can conflict with char $ac_func (); below.
17049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17050 <limits.h> exists even on freestanding compilers. */
17053 # include <limits.h>
17055 # include <assert.h>
17060 /* Override any GCC internal prototype to avoid an error.
17061 Use char because int might match the return type of a GCC
17062 builtin and then its argument prototype would still apply. */
17067 /* The GNU C library defines this for functions which it implements
17068 to always fail with ENOSYS. Some functions are actually named
17069 something starting with __ and the normal name is an alias. */
17070 #if defined __stub_$ac_func || defined __stub___$ac_func
17077 return $ac_func ();
17082 rm -f conftest.$ac_objext conftest$ac_exeext
17083 if { (ac_try="$ac_link"
17084 case "(($ac_try" in
17085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17086 *) ac_try_echo=$ac_try;;
17088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17089 (eval "$ac_link") 2>conftest.er1
17091 grep -v '^ *+' conftest.er1 >conftest.err
17093 cat conftest.err >&5
17094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095 (exit $ac_status); } &&
17096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17097 { (case "(($ac_try" in
17098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17099 *) ac_try_echo=$ac_try;;
17101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17102 (eval "$ac_try") 2>&5
17104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105 (exit $ac_status); }; } &&
17106 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
17114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115 (exit $ac_status); }; }; then
17116 eval "$as_ac_var=yes"
17118 echo "$as_me: failed program was:" >&5
17119 sed 's/^/| /' conftest.$ac_ext >&5
17121 eval "$as_ac_var=no"
17124 rm -f core conftest.err conftest.$ac_objext \
17125 conftest$ac_exeext conftest.$ac_ext
17127 ac_res=`eval echo '${'$as_ac_var'}'`
17128 { echo "$as_me:$LINENO: result: $ac_res" >&5
17129 echo "${ECHO_T}$ac_res" >&6; }
17130 if test `eval echo '${'$as_ac_var'}'` = yes; then
17131 cat >>confdefs.h <<_ACEOF
17132 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17145 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17148 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17150 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17151 echo $ECHO_N "(cached) $ECHO_C" >&6
17153 cat >conftest.$ac_ext <<_ACEOF
17156 cat confdefs.h >>conftest.$ac_ext
17157 cat >>conftest.$ac_ext <<_ACEOF
17158 /* end confdefs.h. */
17159 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17161 #define $ac_func innocuous_$ac_func
17163 /* System header to define __stub macros and hopefully few prototypes,
17164 which can conflict with char $ac_func (); below.
17165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17166 <limits.h> exists even on freestanding compilers. */
17169 # include <limits.h>
17171 # include <assert.h>
17176 /* Override any GCC internal prototype to avoid an error.
17177 Use char because int might match the return type of a GCC
17178 builtin and then its argument prototype would still apply. */
17183 /* The GNU C library defines this for functions which it implements
17184 to always fail with ENOSYS. Some functions are actually named
17185 something starting with __ and the normal name is an alias. */
17186 #if defined __stub_$ac_func || defined __stub___$ac_func
17193 return $ac_func ();
17198 rm -f conftest.$ac_objext conftest$ac_exeext
17199 if { (ac_try="$ac_link"
17200 case "(($ac_try" in
17201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17202 *) ac_try_echo=$ac_try;;
17204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17205 (eval "$ac_link") 2>conftest.er1
17207 grep -v '^ *+' conftest.er1 >conftest.err
17209 cat conftest.err >&5
17210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211 (exit $ac_status); } &&
17212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17213 { (case "(($ac_try" in
17214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17215 *) ac_try_echo=$ac_try;;
17217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17218 (eval "$ac_try") 2>&5
17220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221 (exit $ac_status); }; } &&
17222 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); }; }; then
17232 eval "$as_ac_var=yes"
17234 echo "$as_me: failed program was:" >&5
17235 sed 's/^/| /' conftest.$ac_ext >&5
17237 eval "$as_ac_var=no"
17240 rm -f core conftest.err conftest.$ac_objext \
17241 conftest$ac_exeext conftest.$ac_ext
17243 ac_res=`eval echo '${'$as_ac_var'}'`
17244 { echo "$as_me:$LINENO: result: $ac_res" >&5
17245 echo "${ECHO_T}$ac_res" >&6; }
17246 if test `eval echo '${'$as_ac_var'}'` = yes; then
17247 cat >>confdefs.h <<_ACEOF
17248 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17257 for ac_func in strerror strerror_r setenv
17259 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17260 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17261 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17262 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17263 echo $ECHO_N "(cached) $ECHO_C" >&6
17265 cat >conftest.$ac_ext <<_ACEOF
17268 cat confdefs.h >>conftest.$ac_ext
17269 cat >>conftest.$ac_ext <<_ACEOF
17270 /* end confdefs.h. */
17271 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17272 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17273 #define $ac_func innocuous_$ac_func
17275 /* System header to define __stub macros and hopefully few prototypes,
17276 which can conflict with char $ac_func (); below.
17277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17278 <limits.h> exists even on freestanding compilers. */
17281 # include <limits.h>
17283 # include <assert.h>
17288 /* Override any GCC internal prototype to avoid an error.
17289 Use char because int might match the return type of a GCC
17290 builtin and then its argument prototype would still apply. */
17295 /* The GNU C library defines this for functions which it implements
17296 to always fail with ENOSYS. Some functions are actually named
17297 something starting with __ and the normal name is an alias. */
17298 #if defined __stub_$ac_func || defined __stub___$ac_func
17305 return $ac_func ();
17310 rm -f conftest.$ac_objext conftest$ac_exeext
17311 if { (ac_try="$ac_link"
17312 case "(($ac_try" in
17313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17314 *) ac_try_echo=$ac_try;;
17316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17317 (eval "$ac_link") 2>conftest.er1
17319 grep -v '^ *+' conftest.er1 >conftest.err
17321 cat conftest.err >&5
17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); } &&
17324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17325 { (case "(($ac_try" in
17326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17327 *) ac_try_echo=$ac_try;;
17329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17330 (eval "$ac_try") 2>&5
17332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333 (exit $ac_status); }; } &&
17334 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
17342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343 (exit $ac_status); }; }; then
17344 eval "$as_ac_var=yes"
17346 echo "$as_me: failed program was:" >&5
17347 sed 's/^/| /' conftest.$ac_ext >&5
17349 eval "$as_ac_var=no"
17352 rm -f core conftest.err conftest.$ac_objext \
17353 conftest$ac_exeext conftest.$ac_ext
17355 ac_res=`eval echo '${'$as_ac_var'}'`
17356 { echo "$as_me:$LINENO: result: $ac_res" >&5
17357 echo "${ECHO_T}$ac_res" >&6; }
17358 if test `eval echo '${'$as_ac_var'}'` = yes; then
17359 cat >>confdefs.h <<_ACEOF
17360 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17370 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17372 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17373 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17375 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17376 echo $ECHO_N "(cached) $ECHO_C" >&6
17378 cat >conftest.$ac_ext <<_ACEOF
17381 cat confdefs.h >>conftest.$ac_ext
17382 cat >>conftest.$ac_ext <<_ACEOF
17383 /* end confdefs.h. */
17384 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17386 #define $ac_func innocuous_$ac_func
17388 /* System header to define __stub macros and hopefully few prototypes,
17389 which can conflict with char $ac_func (); below.
17390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17391 <limits.h> exists even on freestanding compilers. */
17394 # include <limits.h>
17396 # include <assert.h>
17401 /* Override any GCC internal prototype to avoid an error.
17402 Use char because int might match the return type of a GCC
17403 builtin and then its argument prototype would still apply. */
17408 /* The GNU C library defines this for functions which it implements
17409 to always fail with ENOSYS. Some functions are actually named
17410 something starting with __ and the normal name is an alias. */
17411 #if defined __stub_$ac_func || defined __stub___$ac_func
17418 return $ac_func ();
17423 rm -f conftest.$ac_objext conftest$ac_exeext
17424 if { (ac_try="$ac_link"
17425 case "(($ac_try" in
17426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17427 *) ac_try_echo=$ac_try;;
17429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17430 (eval "$ac_link") 2>conftest.er1
17432 grep -v '^ *+' conftest.er1 >conftest.err
17434 cat conftest.err >&5
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); } &&
17437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17438 { (case "(($ac_try" in
17439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17440 *) ac_try_echo=$ac_try;;
17442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17443 (eval "$ac_try") 2>&5
17445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17446 (exit $ac_status); }; } &&
17447 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
17455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456 (exit $ac_status); }; }; then
17457 eval "$as_ac_var=yes"
17459 echo "$as_me: failed program was:" >&5
17460 sed 's/^/| /' conftest.$ac_ext >&5
17462 eval "$as_ac_var=no"
17465 rm -f core conftest.err conftest.$ac_objext \
17466 conftest$ac_exeext conftest.$ac_ext
17468 ac_res=`eval echo '${'$as_ac_var'}'`
17469 { echo "$as_me:$LINENO: result: $ac_res" >&5
17470 echo "${ECHO_T}$ac_res" >&6; }
17471 if test `eval echo '${'$as_ac_var'}'` = yes; then
17472 cat >>confdefs.h <<_ACEOF
17473 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17484 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17486 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17487 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17489 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17490 echo $ECHO_N "(cached) $ECHO_C" >&6
17492 cat >conftest.$ac_ext <<_ACEOF
17495 cat confdefs.h >>conftest.$ac_ext
17496 cat >>conftest.$ac_ext <<_ACEOF
17497 /* end confdefs.h. */
17498 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17500 #define $ac_func innocuous_$ac_func
17502 /* System header to define __stub macros and hopefully few prototypes,
17503 which can conflict with char $ac_func (); below.
17504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17505 <limits.h> exists even on freestanding compilers. */
17508 # include <limits.h>
17510 # include <assert.h>
17515 /* Override any GCC internal prototype to avoid an error.
17516 Use char because int might match the return type of a GCC
17517 builtin and then its argument prototype would still apply. */
17522 /* The GNU C library defines this for functions which it implements
17523 to always fail with ENOSYS. Some functions are actually named
17524 something starting with __ and the normal name is an alias. */
17525 #if defined __stub_$ac_func || defined __stub___$ac_func
17532 return $ac_func ();
17537 rm -f conftest.$ac_objext conftest$ac_exeext
17538 if { (ac_try="$ac_link"
17539 case "(($ac_try" in
17540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17541 *) ac_try_echo=$ac_try;;
17543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17544 (eval "$ac_link") 2>conftest.er1
17546 grep -v '^ *+' conftest.er1 >conftest.err
17548 cat conftest.err >&5
17549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550 (exit $ac_status); } &&
17551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17552 { (case "(($ac_try" in
17553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17554 *) ac_try_echo=$ac_try;;
17556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17557 (eval "$ac_try") 2>&5
17559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560 (exit $ac_status); }; } &&
17561 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
17569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); }; }; then
17571 eval "$as_ac_var=yes"
17573 echo "$as_me: failed program was:" >&5
17574 sed 's/^/| /' conftest.$ac_ext >&5
17576 eval "$as_ac_var=no"
17579 rm -f core conftest.err conftest.$ac_objext \
17580 conftest$ac_exeext conftest.$ac_ext
17582 ac_res=`eval echo '${'$as_ac_var'}'`
17583 { echo "$as_me:$LINENO: result: $ac_res" >&5
17584 echo "${ECHO_T}$ac_res" >&6; }
17585 if test `eval echo '${'$as_ac_var'}'` = yes; then
17586 cat >>confdefs.h <<_ACEOF
17587 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17593 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17594 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17595 if test "${llvm_cv_c_printf_a+set}" = set; then
17596 echo $ECHO_N "(cached) $ECHO_C" >&6
17599 ac_cpp='$CPP $CPPFLAGS'
17600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17604 if test "$cross_compiling" = yes; then
17605 llvmac_cv_c_printf_a=no
17607 cat >conftest.$ac_ext <<_ACEOF
17611 cat confdefs.h >>conftest.$ac_ext
17612 cat >>conftest.$ac_ext <<_ACEOF
17613 /* end confdefs.h. */
17616 #include <stdlib.h>
17622 volatile double A, B;
17626 sprintf(Buffer, "%a", A);
17630 if (A != 0x1.999999999999ap-4)
17637 rm -f conftest$ac_exeext
17638 if { (ac_try="$ac_link"
17639 case "(($ac_try" in
17640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17641 *) ac_try_echo=$ac_try;;
17643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17644 (eval "$ac_link") 2>&5
17646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17648 { (case "(($ac_try" in
17649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17650 *) ac_try_echo=$ac_try;;
17652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17653 (eval "$ac_try") 2>&5
17655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656 (exit $ac_status); }; }; then
17657 llvm_cv_c_printf_a=yes
17659 echo "$as_me: program exited with status $ac_status" >&5
17660 echo "$as_me: failed program was:" >&5
17661 sed 's/^/| /' conftest.$ac_ext >&5
17663 ( exit $ac_status )
17664 llvmac_cv_c_printf_a=no
17666 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17671 ac_cpp='$CPP $CPPFLAGS'
17672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17677 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17678 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17679 if test "$llvm_cv_c_printf_a" = "yes"; then
17681 cat >>confdefs.h <<\_ACEOF
17682 #define HAVE_PRINTF_A 1
17688 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17689 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17690 if test "${ac_cv_func_rand48+set}" = set; then
17691 echo $ECHO_N "(cached) $ECHO_C" >&6
17694 ac_cpp='$CXXCPP $CPPFLAGS'
17695 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17696 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17697 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17699 cat >conftest.$ac_ext <<_ACEOF
17702 cat confdefs.h >>conftest.$ac_ext
17703 cat >>conftest.$ac_ext <<_ACEOF
17704 /* end confdefs.h. */
17705 #include <stdlib.h>
17709 srand48(0);lrand48();drand48();
17714 rm -f conftest.$ac_objext
17715 if { (ac_try="$ac_compile"
17716 case "(($ac_try" in
17717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17718 *) ac_try_echo=$ac_try;;
17720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17721 (eval "$ac_compile") 2>conftest.er1
17723 grep -v '^ *+' conftest.er1 >conftest.err
17725 cat conftest.err >&5
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); } &&
17728 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17729 { (case "(($ac_try" in
17730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17731 *) ac_try_echo=$ac_try;;
17733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17734 (eval "$ac_try") 2>&5
17736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737 (exit $ac_status); }; } &&
17738 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); }; }; then
17748 ac_cv_func_rand48=yes
17750 echo "$as_me: failed program was:" >&5
17751 sed 's/^/| /' conftest.$ac_ext >&5
17753 ac_cv_func_rand48=no
17756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17758 ac_cpp='$CPP $CPPFLAGS'
17759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17764 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17765 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17767 if test "$ac_cv_func_rand48" = "yes" ; then
17769 cat >>confdefs.h <<\_ACEOF
17770 #define HAVE_RAND48 1
17776 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17777 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17778 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17779 echo $ECHO_N "(cached) $ECHO_C" >&6
17781 cat >conftest.$ac_ext <<_ACEOF
17784 cat confdefs.h >>conftest.$ac_ext
17785 cat >>conftest.$ac_ext <<_ACEOF
17786 /* end confdefs.h. */
17787 $ac_includes_default
17792 char *p = (char *) strerror_s;
17800 rm -f conftest.$ac_objext
17801 if { (ac_try="$ac_compile"
17802 case "(($ac_try" in
17803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17804 *) ac_try_echo=$ac_try;;
17806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17807 (eval "$ac_compile") 2>conftest.er1
17809 grep -v '^ *+' conftest.er1 >conftest.err
17811 cat conftest.err >&5
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); } &&
17814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17815 { (case "(($ac_try" in
17816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17817 *) ac_try_echo=$ac_try;;
17819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17820 (eval "$ac_try") 2>&5
17822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823 (exit $ac_status); }; } &&
17824 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
17832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833 (exit $ac_status); }; }; then
17834 ac_cv_have_decl_strerror_s=yes
17836 echo "$as_me: failed program was:" >&5
17837 sed 's/^/| /' conftest.$ac_ext >&5
17839 ac_cv_have_decl_strerror_s=no
17842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17844 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17845 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17846 if test $ac_cv_have_decl_strerror_s = yes; then
17848 cat >>confdefs.h <<_ACEOF
17849 #define HAVE_DECL_STRERROR_S 1
17854 cat >>confdefs.h <<_ACEOF
17855 #define HAVE_DECL_STRERROR_S 0
17863 if test "$llvm_cv_os_type" = "MingW" ; then
17864 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17865 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17866 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17867 echo $ECHO_N "(cached) $ECHO_C" >&6
17869 ac_check_lib_save_LIBS=$LIBS
17871 cat >conftest.$ac_ext <<_ACEOF
17874 cat confdefs.h >>conftest.$ac_ext
17875 cat >>conftest.$ac_ext <<_ACEOF
17876 /* end confdefs.h. */
17878 /* Override any GCC internal prototype to avoid an error.
17879 Use char because int might match the return type of a GCC
17880 builtin and then its argument prototype would still apply. */
17893 rm -f conftest.$ac_objext conftest$ac_exeext
17894 if { (ac_try="$ac_link"
17895 case "(($ac_try" in
17896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17897 *) ac_try_echo=$ac_try;;
17899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17900 (eval "$ac_link") 2>conftest.er1
17902 grep -v '^ *+' conftest.er1 >conftest.err
17904 cat conftest.err >&5
17905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906 (exit $ac_status); } &&
17907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17908 { (case "(($ac_try" in
17909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17910 *) ac_try_echo=$ac_try;;
17912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17913 (eval "$ac_try") 2>&5
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); }; } &&
17917 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
17925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926 (exit $ac_status); }; }; then
17927 ac_cv_lib_gcc__alloca=yes
17929 echo "$as_me: failed program was:" >&5
17930 sed 's/^/| /' conftest.$ac_ext >&5
17932 ac_cv_lib_gcc__alloca=no
17935 rm -f core conftest.err conftest.$ac_objext \
17936 conftest$ac_exeext conftest.$ac_ext
17937 LIBS=$ac_check_lib_save_LIBS
17939 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17940 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17941 if test $ac_cv_lib_gcc__alloca = yes; then
17943 cat >>confdefs.h <<\_ACEOF
17944 #define HAVE__ALLOCA 1
17949 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17950 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17951 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17952 echo $ECHO_N "(cached) $ECHO_C" >&6
17954 ac_check_lib_save_LIBS=$LIBS
17956 cat >conftest.$ac_ext <<_ACEOF
17959 cat confdefs.h >>conftest.$ac_ext
17960 cat >>conftest.$ac_ext <<_ACEOF
17961 /* end confdefs.h. */
17963 /* Override any GCC internal prototype to avoid an error.
17964 Use char because int might match the return type of a GCC
17965 builtin and then its argument prototype would still apply. */
17973 return __alloca ();
17978 rm -f conftest.$ac_objext conftest$ac_exeext
17979 if { (ac_try="$ac_link"
17980 case "(($ac_try" in
17981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17982 *) ac_try_echo=$ac_try;;
17984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17985 (eval "$ac_link") 2>conftest.er1
17987 grep -v '^ *+' conftest.er1 >conftest.err
17989 cat conftest.err >&5
17990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17991 (exit $ac_status); } &&
17992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17993 { (case "(($ac_try" in
17994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17995 *) ac_try_echo=$ac_try;;
17997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17998 (eval "$ac_try") 2>&5
18000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001 (exit $ac_status); }; } &&
18002 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
18010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18011 (exit $ac_status); }; }; then
18012 ac_cv_lib_gcc___alloca=yes
18014 echo "$as_me: failed program was:" >&5
18015 sed 's/^/| /' conftest.$ac_ext >&5
18017 ac_cv_lib_gcc___alloca=no
18020 rm -f core conftest.err conftest.$ac_objext \
18021 conftest$ac_exeext conftest.$ac_ext
18022 LIBS=$ac_check_lib_save_LIBS
18024 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18025 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18026 if test $ac_cv_lib_gcc___alloca = yes; then
18028 cat >>confdefs.h <<\_ACEOF
18029 #define HAVE___ALLOCA 1
18034 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18035 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18036 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18037 echo $ECHO_N "(cached) $ECHO_C" >&6
18039 ac_check_lib_save_LIBS=$LIBS
18041 cat >conftest.$ac_ext <<_ACEOF
18044 cat confdefs.h >>conftest.$ac_ext
18045 cat >>conftest.$ac_ext <<_ACEOF
18046 /* end confdefs.h. */
18048 /* Override any GCC internal prototype to avoid an error.
18049 Use char because int might match the return type of a GCC
18050 builtin and then its argument prototype would still apply. */
18058 return __chkstk ();
18063 rm -f conftest.$ac_objext conftest$ac_exeext
18064 if { (ac_try="$ac_link"
18065 case "(($ac_try" in
18066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18067 *) ac_try_echo=$ac_try;;
18069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18070 (eval "$ac_link") 2>conftest.er1
18072 grep -v '^ *+' conftest.er1 >conftest.err
18074 cat conftest.err >&5
18075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076 (exit $ac_status); } &&
18077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18078 { (case "(($ac_try" in
18079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18080 *) ac_try_echo=$ac_try;;
18082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18083 (eval "$ac_try") 2>&5
18085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086 (exit $ac_status); }; } &&
18087 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
18095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096 (exit $ac_status); }; }; then
18097 ac_cv_lib_gcc___chkstk=yes
18099 echo "$as_me: failed program was:" >&5
18100 sed 's/^/| /' conftest.$ac_ext >&5
18102 ac_cv_lib_gcc___chkstk=no
18105 rm -f core conftest.err conftest.$ac_objext \
18106 conftest$ac_exeext conftest.$ac_ext
18107 LIBS=$ac_check_lib_save_LIBS
18109 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18110 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18111 if test $ac_cv_lib_gcc___chkstk = yes; then
18113 cat >>confdefs.h <<\_ACEOF
18114 #define HAVE___CHKSTK 1
18119 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18120 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18121 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18122 echo $ECHO_N "(cached) $ECHO_C" >&6
18124 ac_check_lib_save_LIBS=$LIBS
18126 cat >conftest.$ac_ext <<_ACEOF
18129 cat confdefs.h >>conftest.$ac_ext
18130 cat >>conftest.$ac_ext <<_ACEOF
18131 /* end confdefs.h. */
18133 /* Override any GCC internal prototype to avoid an error.
18134 Use char because int might match the return type of a GCC
18135 builtin and then its argument prototype would still apply. */
18143 return ___chkstk ();
18148 rm -f conftest.$ac_objext conftest$ac_exeext
18149 if { (ac_try="$ac_link"
18150 case "(($ac_try" in
18151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18152 *) ac_try_echo=$ac_try;;
18154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18155 (eval "$ac_link") 2>conftest.er1
18157 grep -v '^ *+' conftest.er1 >conftest.err
18159 cat conftest.err >&5
18160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18161 (exit $ac_status); } &&
18162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18163 { (case "(($ac_try" in
18164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18165 *) ac_try_echo=$ac_try;;
18167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18168 (eval "$ac_try") 2>&5
18170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171 (exit $ac_status); }; } &&
18172 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
18180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181 (exit $ac_status); }; }; then
18182 ac_cv_lib_gcc____chkstk=yes
18184 echo "$as_me: failed program was:" >&5
18185 sed 's/^/| /' conftest.$ac_ext >&5
18187 ac_cv_lib_gcc____chkstk=no
18190 rm -f core conftest.err conftest.$ac_objext \
18191 conftest$ac_exeext conftest.$ac_ext
18192 LIBS=$ac_check_lib_save_LIBS
18194 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18195 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18196 if test $ac_cv_lib_gcc____chkstk = yes; then
18198 cat >>confdefs.h <<\_ACEOF
18199 #define HAVE____CHKSTK 1
18205 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18206 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18207 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18208 echo $ECHO_N "(cached) $ECHO_C" >&6
18210 ac_check_lib_save_LIBS=$LIBS
18212 cat >conftest.$ac_ext <<_ACEOF
18215 cat confdefs.h >>conftest.$ac_ext
18216 cat >>conftest.$ac_ext <<_ACEOF
18217 /* end confdefs.h. */
18219 /* Override any GCC internal prototype to avoid an error.
18220 Use char because int might match the return type of a GCC
18221 builtin and then its argument prototype would still apply. */
18229 return __ashldi3 ();
18234 rm -f conftest.$ac_objext conftest$ac_exeext
18235 if { (ac_try="$ac_link"
18236 case "(($ac_try" in
18237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18238 *) ac_try_echo=$ac_try;;
18240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18241 (eval "$ac_link") 2>conftest.er1
18243 grep -v '^ *+' conftest.er1 >conftest.err
18245 cat conftest.err >&5
18246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247 (exit $ac_status); } &&
18248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18249 { (case "(($ac_try" in
18250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18251 *) ac_try_echo=$ac_try;;
18253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18254 (eval "$ac_try") 2>&5
18256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18257 (exit $ac_status); }; } &&
18258 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
18266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 (exit $ac_status); }; }; then
18268 ac_cv_lib_gcc___ashldi3=yes
18270 echo "$as_me: failed program was:" >&5
18271 sed 's/^/| /' conftest.$ac_ext >&5
18273 ac_cv_lib_gcc___ashldi3=no
18276 rm -f core conftest.err conftest.$ac_objext \
18277 conftest$ac_exeext conftest.$ac_ext
18278 LIBS=$ac_check_lib_save_LIBS
18280 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18281 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18282 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18284 cat >>confdefs.h <<\_ACEOF
18285 #define HAVE___ASHLDI3 1
18290 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18291 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18292 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18293 echo $ECHO_N "(cached) $ECHO_C" >&6
18295 ac_check_lib_save_LIBS=$LIBS
18297 cat >conftest.$ac_ext <<_ACEOF
18300 cat confdefs.h >>conftest.$ac_ext
18301 cat >>conftest.$ac_ext <<_ACEOF
18302 /* end confdefs.h. */
18304 /* Override any GCC internal prototype to avoid an error.
18305 Use char because int might match the return type of a GCC
18306 builtin and then its argument prototype would still apply. */
18314 return __ashrdi3 ();
18319 rm -f conftest.$ac_objext conftest$ac_exeext
18320 if { (ac_try="$ac_link"
18321 case "(($ac_try" in
18322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18323 *) ac_try_echo=$ac_try;;
18325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18326 (eval "$ac_link") 2>conftest.er1
18328 grep -v '^ *+' conftest.er1 >conftest.err
18330 cat conftest.err >&5
18331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332 (exit $ac_status); } &&
18333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18334 { (case "(($ac_try" in
18335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18336 *) ac_try_echo=$ac_try;;
18338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18339 (eval "$ac_try") 2>&5
18341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342 (exit $ac_status); }; } &&
18343 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
18351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352 (exit $ac_status); }; }; then
18353 ac_cv_lib_gcc___ashrdi3=yes
18355 echo "$as_me: failed program was:" >&5
18356 sed 's/^/| /' conftest.$ac_ext >&5
18358 ac_cv_lib_gcc___ashrdi3=no
18361 rm -f core conftest.err conftest.$ac_objext \
18362 conftest$ac_exeext conftest.$ac_ext
18363 LIBS=$ac_check_lib_save_LIBS
18365 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18366 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18367 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18369 cat >>confdefs.h <<\_ACEOF
18370 #define HAVE___ASHRDI3 1
18375 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18376 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18377 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18378 echo $ECHO_N "(cached) $ECHO_C" >&6
18380 ac_check_lib_save_LIBS=$LIBS
18382 cat >conftest.$ac_ext <<_ACEOF
18385 cat confdefs.h >>conftest.$ac_ext
18386 cat >>conftest.$ac_ext <<_ACEOF
18387 /* end confdefs.h. */
18389 /* Override any GCC internal prototype to avoid an error.
18390 Use char because int might match the return type of a GCC
18391 builtin and then its argument prototype would still apply. */
18399 return __divdi3 ();
18404 rm -f conftest.$ac_objext conftest$ac_exeext
18405 if { (ac_try="$ac_link"
18406 case "(($ac_try" in
18407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18408 *) ac_try_echo=$ac_try;;
18410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18411 (eval "$ac_link") 2>conftest.er1
18413 grep -v '^ *+' conftest.er1 >conftest.err
18415 cat conftest.err >&5
18416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417 (exit $ac_status); } &&
18418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18419 { (case "(($ac_try" in
18420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18421 *) ac_try_echo=$ac_try;;
18423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18424 (eval "$ac_try") 2>&5
18426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18427 (exit $ac_status); }; } &&
18428 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
18436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437 (exit $ac_status); }; }; then
18438 ac_cv_lib_gcc___divdi3=yes
18440 echo "$as_me: failed program was:" >&5
18441 sed 's/^/| /' conftest.$ac_ext >&5
18443 ac_cv_lib_gcc___divdi3=no
18446 rm -f core conftest.err conftest.$ac_objext \
18447 conftest$ac_exeext conftest.$ac_ext
18448 LIBS=$ac_check_lib_save_LIBS
18450 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18451 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18452 if test $ac_cv_lib_gcc___divdi3 = yes; then
18454 cat >>confdefs.h <<\_ACEOF
18455 #define HAVE___DIVDI3 1
18460 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18461 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18462 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18463 echo $ECHO_N "(cached) $ECHO_C" >&6
18465 ac_check_lib_save_LIBS=$LIBS
18467 cat >conftest.$ac_ext <<_ACEOF
18470 cat confdefs.h >>conftest.$ac_ext
18471 cat >>conftest.$ac_ext <<_ACEOF
18472 /* end confdefs.h. */
18474 /* Override any GCC internal prototype to avoid an error.
18475 Use char because int might match the return type of a GCC
18476 builtin and then its argument prototype would still apply. */
18484 return __fixdfdi ();
18489 rm -f conftest.$ac_objext conftest$ac_exeext
18490 if { (ac_try="$ac_link"
18491 case "(($ac_try" in
18492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18493 *) ac_try_echo=$ac_try;;
18495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18496 (eval "$ac_link") 2>conftest.er1
18498 grep -v '^ *+' conftest.er1 >conftest.err
18500 cat conftest.err >&5
18501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18502 (exit $ac_status); } &&
18503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18504 { (case "(($ac_try" in
18505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18506 *) ac_try_echo=$ac_try;;
18508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18509 (eval "$ac_try") 2>&5
18511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18512 (exit $ac_status); }; } &&
18513 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
18521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522 (exit $ac_status); }; }; then
18523 ac_cv_lib_gcc___fixdfdi=yes
18525 echo "$as_me: failed program was:" >&5
18526 sed 's/^/| /' conftest.$ac_ext >&5
18528 ac_cv_lib_gcc___fixdfdi=no
18531 rm -f core conftest.err conftest.$ac_objext \
18532 conftest$ac_exeext conftest.$ac_ext
18533 LIBS=$ac_check_lib_save_LIBS
18535 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18536 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18537 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18539 cat >>confdefs.h <<\_ACEOF
18540 #define HAVE___FIXDFDI 1
18545 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18546 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18547 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18548 echo $ECHO_N "(cached) $ECHO_C" >&6
18550 ac_check_lib_save_LIBS=$LIBS
18552 cat >conftest.$ac_ext <<_ACEOF
18555 cat confdefs.h >>conftest.$ac_ext
18556 cat >>conftest.$ac_ext <<_ACEOF
18557 /* end confdefs.h. */
18559 /* Override any GCC internal prototype to avoid an error.
18560 Use char because int might match the return type of a GCC
18561 builtin and then its argument prototype would still apply. */
18569 return __fixsfdi ();
18574 rm -f conftest.$ac_objext conftest$ac_exeext
18575 if { (ac_try="$ac_link"
18576 case "(($ac_try" in
18577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18578 *) ac_try_echo=$ac_try;;
18580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18581 (eval "$ac_link") 2>conftest.er1
18583 grep -v '^ *+' conftest.er1 >conftest.err
18585 cat conftest.err >&5
18586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18587 (exit $ac_status); } &&
18588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18589 { (case "(($ac_try" in
18590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18591 *) ac_try_echo=$ac_try;;
18593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18594 (eval "$ac_try") 2>&5
18596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18597 (exit $ac_status); }; } &&
18598 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
18606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607 (exit $ac_status); }; }; then
18608 ac_cv_lib_gcc___fixsfdi=yes
18610 echo "$as_me: failed program was:" >&5
18611 sed 's/^/| /' conftest.$ac_ext >&5
18613 ac_cv_lib_gcc___fixsfdi=no
18616 rm -f core conftest.err conftest.$ac_objext \
18617 conftest$ac_exeext conftest.$ac_ext
18618 LIBS=$ac_check_lib_save_LIBS
18620 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18621 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18622 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18624 cat >>confdefs.h <<\_ACEOF
18625 #define HAVE___FIXSFDI 1
18630 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18631 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18632 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18633 echo $ECHO_N "(cached) $ECHO_C" >&6
18635 ac_check_lib_save_LIBS=$LIBS
18637 cat >conftest.$ac_ext <<_ACEOF
18640 cat confdefs.h >>conftest.$ac_ext
18641 cat >>conftest.$ac_ext <<_ACEOF
18642 /* end confdefs.h. */
18644 /* Override any GCC internal prototype to avoid an error.
18645 Use char because int might match the return type of a GCC
18646 builtin and then its argument prototype would still apply. */
18650 char __floatdidf ();
18654 return __floatdidf ();
18659 rm -f conftest.$ac_objext conftest$ac_exeext
18660 if { (ac_try="$ac_link"
18661 case "(($ac_try" in
18662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18663 *) ac_try_echo=$ac_try;;
18665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18666 (eval "$ac_link") 2>conftest.er1
18668 grep -v '^ *+' conftest.er1 >conftest.err
18670 cat conftest.err >&5
18671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18672 (exit $ac_status); } &&
18673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18674 { (case "(($ac_try" in
18675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18676 *) ac_try_echo=$ac_try;;
18678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18679 (eval "$ac_try") 2>&5
18681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18682 (exit $ac_status); }; } &&
18683 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
18691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692 (exit $ac_status); }; }; then
18693 ac_cv_lib_gcc___floatdidf=yes
18695 echo "$as_me: failed program was:" >&5
18696 sed 's/^/| /' conftest.$ac_ext >&5
18698 ac_cv_lib_gcc___floatdidf=no
18701 rm -f core conftest.err conftest.$ac_objext \
18702 conftest$ac_exeext conftest.$ac_ext
18703 LIBS=$ac_check_lib_save_LIBS
18705 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18706 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18707 if test $ac_cv_lib_gcc___floatdidf = yes; then
18709 cat >>confdefs.h <<\_ACEOF
18710 #define HAVE___FLOATDIDF 1
18715 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18716 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18717 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18718 echo $ECHO_N "(cached) $ECHO_C" >&6
18720 ac_check_lib_save_LIBS=$LIBS
18722 cat >conftest.$ac_ext <<_ACEOF
18725 cat confdefs.h >>conftest.$ac_ext
18726 cat >>conftest.$ac_ext <<_ACEOF
18727 /* end confdefs.h. */
18729 /* Override any GCC internal prototype to avoid an error.
18730 Use char because int might match the return type of a GCC
18731 builtin and then its argument prototype would still apply. */
18739 return __lshrdi3 ();
18744 rm -f conftest.$ac_objext conftest$ac_exeext
18745 if { (ac_try="$ac_link"
18746 case "(($ac_try" in
18747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18748 *) ac_try_echo=$ac_try;;
18750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18751 (eval "$ac_link") 2>conftest.er1
18753 grep -v '^ *+' conftest.er1 >conftest.err
18755 cat conftest.err >&5
18756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757 (exit $ac_status); } &&
18758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18759 { (case "(($ac_try" in
18760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18761 *) ac_try_echo=$ac_try;;
18763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18764 (eval "$ac_try") 2>&5
18766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18767 (exit $ac_status); }; } &&
18768 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
18776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777 (exit $ac_status); }; }; then
18778 ac_cv_lib_gcc___lshrdi3=yes
18780 echo "$as_me: failed program was:" >&5
18781 sed 's/^/| /' conftest.$ac_ext >&5
18783 ac_cv_lib_gcc___lshrdi3=no
18786 rm -f core conftest.err conftest.$ac_objext \
18787 conftest$ac_exeext conftest.$ac_ext
18788 LIBS=$ac_check_lib_save_LIBS
18790 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18791 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18792 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18794 cat >>confdefs.h <<\_ACEOF
18795 #define HAVE___LSHRDI3 1
18800 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18801 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18802 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18803 echo $ECHO_N "(cached) $ECHO_C" >&6
18805 ac_check_lib_save_LIBS=$LIBS
18807 cat >conftest.$ac_ext <<_ACEOF
18810 cat confdefs.h >>conftest.$ac_ext
18811 cat >>conftest.$ac_ext <<_ACEOF
18812 /* end confdefs.h. */
18814 /* Override any GCC internal prototype to avoid an error.
18815 Use char because int might match the return type of a GCC
18816 builtin and then its argument prototype would still apply. */
18824 return __moddi3 ();
18829 rm -f conftest.$ac_objext conftest$ac_exeext
18830 if { (ac_try="$ac_link"
18831 case "(($ac_try" in
18832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18833 *) ac_try_echo=$ac_try;;
18835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18836 (eval "$ac_link") 2>conftest.er1
18838 grep -v '^ *+' conftest.er1 >conftest.err
18840 cat conftest.err >&5
18841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18842 (exit $ac_status); } &&
18843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18844 { (case "(($ac_try" in
18845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18846 *) ac_try_echo=$ac_try;;
18848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18849 (eval "$ac_try") 2>&5
18851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852 (exit $ac_status); }; } &&
18853 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
18861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862 (exit $ac_status); }; }; then
18863 ac_cv_lib_gcc___moddi3=yes
18865 echo "$as_me: failed program was:" >&5
18866 sed 's/^/| /' conftest.$ac_ext >&5
18868 ac_cv_lib_gcc___moddi3=no
18871 rm -f core conftest.err conftest.$ac_objext \
18872 conftest$ac_exeext conftest.$ac_ext
18873 LIBS=$ac_check_lib_save_LIBS
18875 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18876 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18877 if test $ac_cv_lib_gcc___moddi3 = yes; then
18879 cat >>confdefs.h <<\_ACEOF
18880 #define HAVE___MODDI3 1
18885 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18886 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18887 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18888 echo $ECHO_N "(cached) $ECHO_C" >&6
18890 ac_check_lib_save_LIBS=$LIBS
18892 cat >conftest.$ac_ext <<_ACEOF
18895 cat confdefs.h >>conftest.$ac_ext
18896 cat >>conftest.$ac_ext <<_ACEOF
18897 /* end confdefs.h. */
18899 /* Override any GCC internal prototype to avoid an error.
18900 Use char because int might match the return type of a GCC
18901 builtin and then its argument prototype would still apply. */
18909 return __udivdi3 ();
18914 rm -f conftest.$ac_objext conftest$ac_exeext
18915 if { (ac_try="$ac_link"
18916 case "(($ac_try" in
18917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18918 *) ac_try_echo=$ac_try;;
18920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18921 (eval "$ac_link") 2>conftest.er1
18923 grep -v '^ *+' conftest.er1 >conftest.err
18925 cat conftest.err >&5
18926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18927 (exit $ac_status); } &&
18928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18929 { (case "(($ac_try" in
18930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18931 *) ac_try_echo=$ac_try;;
18933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18934 (eval "$ac_try") 2>&5
18936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18937 (exit $ac_status); }; } &&
18938 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
18946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947 (exit $ac_status); }; }; then
18948 ac_cv_lib_gcc___udivdi3=yes
18950 echo "$as_me: failed program was:" >&5
18951 sed 's/^/| /' conftest.$ac_ext >&5
18953 ac_cv_lib_gcc___udivdi3=no
18956 rm -f core conftest.err conftest.$ac_objext \
18957 conftest$ac_exeext conftest.$ac_ext
18958 LIBS=$ac_check_lib_save_LIBS
18960 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18961 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18962 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18964 cat >>confdefs.h <<\_ACEOF
18965 #define HAVE___UDIVDI3 1
18970 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18971 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18972 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18973 echo $ECHO_N "(cached) $ECHO_C" >&6
18975 ac_check_lib_save_LIBS=$LIBS
18977 cat >conftest.$ac_ext <<_ACEOF
18980 cat confdefs.h >>conftest.$ac_ext
18981 cat >>conftest.$ac_ext <<_ACEOF
18982 /* end confdefs.h. */
18984 /* Override any GCC internal prototype to avoid an error.
18985 Use char because int might match the return type of a GCC
18986 builtin and then its argument prototype would still apply. */
18994 return __umoddi3 ();
18999 rm -f conftest.$ac_objext conftest$ac_exeext
19000 if { (ac_try="$ac_link"
19001 case "(($ac_try" in
19002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19003 *) ac_try_echo=$ac_try;;
19005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19006 (eval "$ac_link") 2>conftest.er1
19008 grep -v '^ *+' conftest.er1 >conftest.err
19010 cat conftest.err >&5
19011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012 (exit $ac_status); } &&
19013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19014 { (case "(($ac_try" in
19015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19016 *) ac_try_echo=$ac_try;;
19018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19019 (eval "$ac_try") 2>&5
19021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19022 (exit $ac_status); }; } &&
19023 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
19031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032 (exit $ac_status); }; }; then
19033 ac_cv_lib_gcc___umoddi3=yes
19035 echo "$as_me: failed program was:" >&5
19036 sed 's/^/| /' conftest.$ac_ext >&5
19038 ac_cv_lib_gcc___umoddi3=no
19041 rm -f core conftest.err conftest.$ac_objext \
19042 conftest$ac_exeext conftest.$ac_ext
19043 LIBS=$ac_check_lib_save_LIBS
19045 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19046 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19047 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19049 cat >>confdefs.h <<\_ACEOF
19050 #define HAVE___UMODDI3 1
19056 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19057 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19058 if test "${ac_cv_lib_gcc___main+set}" = set; then
19059 echo $ECHO_N "(cached) $ECHO_C" >&6
19061 ac_check_lib_save_LIBS=$LIBS
19063 cat >conftest.$ac_ext <<_ACEOF
19066 cat confdefs.h >>conftest.$ac_ext
19067 cat >>conftest.$ac_ext <<_ACEOF
19068 /* end confdefs.h. */
19070 /* Override any GCC internal prototype to avoid an error.
19071 Use char because int might match the return type of a GCC
19072 builtin and then its argument prototype would still apply. */
19085 rm -f conftest.$ac_objext conftest$ac_exeext
19086 if { (ac_try="$ac_link"
19087 case "(($ac_try" in
19088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19089 *) ac_try_echo=$ac_try;;
19091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19092 (eval "$ac_link") 2>conftest.er1
19094 grep -v '^ *+' conftest.er1 >conftest.err
19096 cat conftest.err >&5
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); } &&
19099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19100 { (case "(($ac_try" in
19101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19102 *) ac_try_echo=$ac_try;;
19104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19105 (eval "$ac_try") 2>&5
19107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108 (exit $ac_status); }; } &&
19109 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); }; }; then
19119 ac_cv_lib_gcc___main=yes
19121 echo "$as_me: failed program was:" >&5
19122 sed 's/^/| /' conftest.$ac_ext >&5
19124 ac_cv_lib_gcc___main=no
19127 rm -f core conftest.err conftest.$ac_objext \
19128 conftest$ac_exeext conftest.$ac_ext
19129 LIBS=$ac_check_lib_save_LIBS
19131 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19132 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19133 if test $ac_cv_lib_gcc___main = yes; then
19135 cat >>confdefs.h <<\_ACEOF
19136 #define HAVE___MAIN 1
19141 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19142 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19143 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19144 echo $ECHO_N "(cached) $ECHO_C" >&6
19146 ac_check_lib_save_LIBS=$LIBS
19148 cat >conftest.$ac_ext <<_ACEOF
19151 cat confdefs.h >>conftest.$ac_ext
19152 cat >>conftest.$ac_ext <<_ACEOF
19153 /* end confdefs.h. */
19155 /* Override any GCC internal prototype to avoid an error.
19156 Use char because int might match the return type of a GCC
19157 builtin and then its argument prototype would still apply. */
19165 return __cmpdi2 ();
19170 rm -f conftest.$ac_objext conftest$ac_exeext
19171 if { (ac_try="$ac_link"
19172 case "(($ac_try" in
19173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19174 *) ac_try_echo=$ac_try;;
19176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19177 (eval "$ac_link") 2>conftest.er1
19179 grep -v '^ *+' conftest.er1 >conftest.err
19181 cat conftest.err >&5
19182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183 (exit $ac_status); } &&
19184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19185 { (case "(($ac_try" in
19186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19187 *) ac_try_echo=$ac_try;;
19189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19190 (eval "$ac_try") 2>&5
19192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193 (exit $ac_status); }; } &&
19194 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); }; }; then
19204 ac_cv_lib_gcc___cmpdi2=yes
19206 echo "$as_me: failed program was:" >&5
19207 sed 's/^/| /' conftest.$ac_ext >&5
19209 ac_cv_lib_gcc___cmpdi2=no
19212 rm -f core conftest.err conftest.$ac_objext \
19213 conftest$ac_exeext conftest.$ac_ext
19214 LIBS=$ac_check_lib_save_LIBS
19216 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19217 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19218 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19220 cat >>confdefs.h <<\_ACEOF
19221 #define HAVE___CMPDI2 1
19228 if test "$llvm_cv_os_type" = "MingW" ; then
19229 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19230 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19231 cat >conftest.$ac_ext <<_ACEOF
19232 #include <windows.h>
19233 #include <imagehlp.h>
19234 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19235 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19237 rm -f conftest.$ac_objext
19238 if { (ac_try="$ac_compile"
19239 case "(($ac_try" in
19240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19241 *) ac_try_echo=$ac_try;;
19243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19244 (eval "$ac_compile") 2>conftest.er1
19246 grep -v '^ *+' conftest.er1 >conftest.err
19248 cat conftest.err >&5
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); } &&
19251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19252 { (case "(($ac_try" in
19253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19254 *) ac_try_echo=$ac_try;;
19256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19257 (eval "$ac_try") 2>&5
19259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260 (exit $ac_status); }; } &&
19261 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
19269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270 (exit $ac_status); }; }; then
19272 { echo "$as_me:$LINENO: result: yes" >&5
19273 echo "${ECHO_T}yes" >&6; }
19274 llvm_cv_win32_elmcb_pcstr="PCSTR"
19277 echo "$as_me: failed program was:" >&5
19278 sed 's/^/| /' conftest.$ac_ext >&5
19281 { echo "$as_me:$LINENO: result: no" >&5
19282 echo "${ECHO_T}no" >&6; }
19283 llvm_cv_win32_elmcb_pcstr="PSTR"
19287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19289 cat >>confdefs.h <<_ACEOF
19290 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19296 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19297 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19298 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19299 echo $ECHO_N "(cached) $ECHO_C" >&6
19302 ac_cpp='$CXXCPP $CPPFLAGS'
19303 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19304 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19305 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19307 cat >conftest.$ac_ext <<_ACEOF
19310 cat confdefs.h >>conftest.$ac_ext
19311 cat >>conftest.$ac_ext <<_ACEOF
19312 /* end confdefs.h. */
19322 rm -f conftest.$ac_objext
19323 if { (ac_try="$ac_compile"
19324 case "(($ac_try" in
19325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19326 *) ac_try_echo=$ac_try;;
19328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19329 (eval "$ac_compile") 2>conftest.er1
19331 grep -v '^ *+' conftest.er1 >conftest.err
19333 cat conftest.err >&5
19334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335 (exit $ac_status); } &&
19336 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19337 { (case "(($ac_try" in
19338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19339 *) ac_try_echo=$ac_try;;
19341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19342 (eval "$ac_try") 2>&5
19344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345 (exit $ac_status); }; } &&
19346 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
19354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355 (exit $ac_status); }; }; then
19356 ac_cv_func_isnan_in_math_h=yes
19358 echo "$as_me: failed program was:" >&5
19359 sed 's/^/| /' conftest.$ac_ext >&5
19361 ac_cv_func_isnan_in_math_h=no
19364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19366 ac_cpp='$CPP $CPPFLAGS'
19367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19372 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19373 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19376 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19378 cat >>confdefs.h <<\_ACEOF
19379 #define HAVE_ISNAN_IN_MATH_H 1
19384 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19385 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19386 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19387 echo $ECHO_N "(cached) $ECHO_C" >&6
19390 ac_cpp='$CXXCPP $CPPFLAGS'
19391 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19392 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19393 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19395 cat >conftest.$ac_ext <<_ACEOF
19398 cat confdefs.h >>conftest.$ac_ext
19399 cat >>conftest.$ac_ext <<_ACEOF
19400 /* end confdefs.h. */
19410 rm -f conftest.$ac_objext
19411 if { (ac_try="$ac_compile"
19412 case "(($ac_try" in
19413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19414 *) ac_try_echo=$ac_try;;
19416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19417 (eval "$ac_compile") 2>conftest.er1
19419 grep -v '^ *+' conftest.er1 >conftest.err
19421 cat conftest.err >&5
19422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423 (exit $ac_status); } &&
19424 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19425 { (case "(($ac_try" in
19426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19427 *) ac_try_echo=$ac_try;;
19429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19430 (eval "$ac_try") 2>&5
19432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433 (exit $ac_status); }; } &&
19434 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
19442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443 (exit $ac_status); }; }; then
19444 ac_cv_func_isnan_in_cmath=yes
19446 echo "$as_me: failed program was:" >&5
19447 sed 's/^/| /' conftest.$ac_ext >&5
19449 ac_cv_func_isnan_in_cmath=no
19452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19454 ac_cpp='$CPP $CPPFLAGS'
19455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19460 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19461 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19463 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19465 cat >>confdefs.h <<\_ACEOF
19466 #define HAVE_ISNAN_IN_CMATH 1
19471 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19472 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19473 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19474 echo $ECHO_N "(cached) $ECHO_C" >&6
19477 ac_cpp='$CXXCPP $CPPFLAGS'
19478 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19479 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19480 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19482 cat >conftest.$ac_ext <<_ACEOF
19485 cat confdefs.h >>conftest.$ac_ext
19486 cat >>conftest.$ac_ext <<_ACEOF
19487 /* end confdefs.h. */
19492 float f; std::isnan(f);
19497 rm -f conftest.$ac_objext
19498 if { (ac_try="$ac_compile"
19499 case "(($ac_try" in
19500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19501 *) ac_try_echo=$ac_try;;
19503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19504 (eval "$ac_compile") 2>conftest.er1
19506 grep -v '^ *+' conftest.er1 >conftest.err
19508 cat conftest.err >&5
19509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510 (exit $ac_status); } &&
19511 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19512 { (case "(($ac_try" in
19513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19514 *) ac_try_echo=$ac_try;;
19516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19517 (eval "$ac_try") 2>&5
19519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); }; } &&
19521 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
19529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530 (exit $ac_status); }; }; then
19531 ac_cv_func_std_isnan_in_cmath=yes
19533 echo "$as_me: failed program was:" >&5
19534 sed 's/^/| /' conftest.$ac_ext >&5
19536 ac_cv_func_std_isnan_in_cmath=no
19539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19541 ac_cpp='$CPP $CPPFLAGS'
19542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19547 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19548 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19550 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19552 cat >>confdefs.h <<\_ACEOF
19553 #define HAVE_STD_ISNAN_IN_CMATH 1
19559 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19560 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19561 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19562 echo $ECHO_N "(cached) $ECHO_C" >&6
19565 ac_cpp='$CXXCPP $CPPFLAGS'
19566 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19567 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19568 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19570 cat >conftest.$ac_ext <<_ACEOF
19573 cat confdefs.h >>conftest.$ac_ext
19574 cat >>conftest.$ac_ext <<_ACEOF
19575 /* end confdefs.h. */
19585 rm -f conftest.$ac_objext
19586 if { (ac_try="$ac_compile"
19587 case "(($ac_try" in
19588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19589 *) ac_try_echo=$ac_try;;
19591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19592 (eval "$ac_compile") 2>conftest.er1
19594 grep -v '^ *+' conftest.er1 >conftest.err
19596 cat conftest.err >&5
19597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598 (exit $ac_status); } &&
19599 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19600 { (case "(($ac_try" in
19601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19602 *) ac_try_echo=$ac_try;;
19604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19605 (eval "$ac_try") 2>&5
19607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608 (exit $ac_status); }; } &&
19609 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
19617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618 (exit $ac_status); }; }; then
19619 ac_cv_func_isinf_in_math_h=yes
19621 echo "$as_me: failed program was:" >&5
19622 sed 's/^/| /' conftest.$ac_ext >&5
19624 ac_cv_func_isinf_in_math_h=no
19627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19629 ac_cpp='$CPP $CPPFLAGS'
19630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19635 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19636 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19638 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19640 cat >>confdefs.h <<\_ACEOF
19641 #define HAVE_ISINF_IN_MATH_H 1
19646 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19647 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19648 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19649 echo $ECHO_N "(cached) $ECHO_C" >&6
19652 ac_cpp='$CXXCPP $CPPFLAGS'
19653 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19654 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19655 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19657 cat >conftest.$ac_ext <<_ACEOF
19660 cat confdefs.h >>conftest.$ac_ext
19661 cat >>conftest.$ac_ext <<_ACEOF
19662 /* end confdefs.h. */
19672 rm -f conftest.$ac_objext
19673 if { (ac_try="$ac_compile"
19674 case "(($ac_try" in
19675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19676 *) ac_try_echo=$ac_try;;
19678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19679 (eval "$ac_compile") 2>conftest.er1
19681 grep -v '^ *+' conftest.er1 >conftest.err
19683 cat conftest.err >&5
19684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685 (exit $ac_status); } &&
19686 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19687 { (case "(($ac_try" in
19688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19689 *) ac_try_echo=$ac_try;;
19691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19692 (eval "$ac_try") 2>&5
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); }; } &&
19696 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
19704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705 (exit $ac_status); }; }; then
19706 ac_cv_func_isinf_in_cmath=yes
19708 echo "$as_me: failed program was:" >&5
19709 sed 's/^/| /' conftest.$ac_ext >&5
19711 ac_cv_func_isinf_in_cmath=no
19714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19716 ac_cpp='$CPP $CPPFLAGS'
19717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19722 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19723 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19725 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19727 cat >>confdefs.h <<\_ACEOF
19728 #define HAVE_ISINF_IN_CMATH 1
19733 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19734 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19735 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19736 echo $ECHO_N "(cached) $ECHO_C" >&6
19739 ac_cpp='$CXXCPP $CPPFLAGS'
19740 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19741 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19742 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19744 cat >conftest.$ac_ext <<_ACEOF
19747 cat confdefs.h >>conftest.$ac_ext
19748 cat >>conftest.$ac_ext <<_ACEOF
19749 /* end confdefs.h. */
19754 float f; std::isinf(f)}
19759 rm -f conftest.$ac_objext
19760 if { (ac_try="$ac_compile"
19761 case "(($ac_try" in
19762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19763 *) ac_try_echo=$ac_try;;
19765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19766 (eval "$ac_compile") 2>conftest.er1
19768 grep -v '^ *+' conftest.er1 >conftest.err
19770 cat conftest.err >&5
19771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19772 (exit $ac_status); } &&
19773 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19774 { (case "(($ac_try" in
19775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19776 *) ac_try_echo=$ac_try;;
19778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19779 (eval "$ac_try") 2>&5
19781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782 (exit $ac_status); }; } &&
19783 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
19791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792 (exit $ac_status); }; }; then
19793 ac_cv_func_std_isinf_in_cmath=yes
19795 echo "$as_me: failed program was:" >&5
19796 sed 's/^/| /' conftest.$ac_ext >&5
19798 ac_cv_func_std_isinf_in_cmath=no
19801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19803 ac_cpp='$CPP $CPPFLAGS'
19804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19809 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19810 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19812 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19814 cat >>confdefs.h <<\_ACEOF
19815 #define HAVE_STD_ISINF_IN_CMATH 1
19820 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19821 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19822 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19823 echo $ECHO_N "(cached) $ECHO_C" >&6
19826 ac_cpp='$CXXCPP $CPPFLAGS'
19827 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19828 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19829 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19831 cat >conftest.$ac_ext <<_ACEOF
19834 cat confdefs.h >>conftest.$ac_ext
19835 cat >>conftest.$ac_ext <<_ACEOF
19836 /* end confdefs.h. */
19837 #include <ieeefp.h>
19841 float f; finite(f);
19846 rm -f conftest.$ac_objext
19847 if { (ac_try="$ac_compile"
19848 case "(($ac_try" in
19849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19850 *) ac_try_echo=$ac_try;;
19852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19853 (eval "$ac_compile") 2>conftest.er1
19855 grep -v '^ *+' conftest.er1 >conftest.err
19857 cat conftest.err >&5
19858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859 (exit $ac_status); } &&
19860 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19861 { (case "(($ac_try" in
19862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19863 *) ac_try_echo=$ac_try;;
19865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19866 (eval "$ac_try") 2>&5
19868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869 (exit $ac_status); }; } &&
19870 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
19878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879 (exit $ac_status); }; }; then
19880 ac_cv_func_finite_in_ieeefp_h=yes
19882 echo "$as_me: failed program was:" >&5
19883 sed 's/^/| /' conftest.$ac_ext >&5
19885 ac_cv_func_finite_in_ieeefp_h=no
19888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19890 ac_cpp='$CPP $CPPFLAGS'
19891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19896 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19897 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19899 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19901 cat >>confdefs.h <<\_ACEOF
19902 #define HAVE_FINITE_IN_IEEEFP_H 1
19909 if test "$llvm_cv_platform_type" = "Unix" ; then
19912 for ac_header in stdlib.h unistd.h
19914 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19916 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19919 echo $ECHO_N "(cached) $ECHO_C" >&6
19921 ac_res=`eval echo '${'$as_ac_Header'}'`
19922 { echo "$as_me:$LINENO: result: $ac_res" >&5
19923 echo "${ECHO_T}$ac_res" >&6; }
19925 # Is the header compilable?
19926 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19927 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19928 cat >conftest.$ac_ext <<_ACEOF
19931 cat confdefs.h >>conftest.$ac_ext
19932 cat >>conftest.$ac_ext <<_ACEOF
19933 /* end confdefs.h. */
19934 $ac_includes_default
19935 #include <$ac_header>
19937 rm -f conftest.$ac_objext
19938 if { (ac_try="$ac_compile"
19939 case "(($ac_try" in
19940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19941 *) ac_try_echo=$ac_try;;
19943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19944 (eval "$ac_compile") 2>conftest.er1
19946 grep -v '^ *+' conftest.er1 >conftest.err
19948 cat conftest.err >&5
19949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950 (exit $ac_status); } &&
19951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19952 { (case "(($ac_try" in
19953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19954 *) ac_try_echo=$ac_try;;
19956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19957 (eval "$ac_try") 2>&5
19959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960 (exit $ac_status); }; } &&
19961 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970 (exit $ac_status); }; }; then
19971 ac_header_compiler=yes
19973 echo "$as_me: failed program was:" >&5
19974 sed 's/^/| /' conftest.$ac_ext >&5
19976 ac_header_compiler=no
19979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19980 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19981 echo "${ECHO_T}$ac_header_compiler" >&6; }
19983 # Is the header present?
19984 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19985 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19986 cat >conftest.$ac_ext <<_ACEOF
19989 cat confdefs.h >>conftest.$ac_ext
19990 cat >>conftest.$ac_ext <<_ACEOF
19991 /* end confdefs.h. */
19992 #include <$ac_header>
19994 if { (ac_try="$ac_cpp conftest.$ac_ext"
19995 case "(($ac_try" in
19996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19997 *) ac_try_echo=$ac_try;;
19999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20002 grep -v '^ *+' conftest.er1 >conftest.err
20004 cat conftest.err >&5
20005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); } >/dev/null; then
20007 if test -s conftest.err; then
20008 ac_cpp_err=$ac_c_preproc_warn_flag
20009 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20016 if test -z "$ac_cpp_err"; then
20017 ac_header_preproc=yes
20019 echo "$as_me: failed program was:" >&5
20020 sed 's/^/| /' conftest.$ac_ext >&5
20022 ac_header_preproc=no
20025 rm -f conftest.err conftest.$ac_ext
20026 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20027 echo "${ECHO_T}$ac_header_preproc" >&6; }
20029 # So? What about this header?
20030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20032 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20033 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20035 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20036 ac_header_preproc=yes
20039 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20040 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20041 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20042 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20043 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20044 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20045 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20046 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20048 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20049 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20050 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20052 ## ------------------------------------ ##
20053 ## Report this to http://llvm.org/bugs/ ##
20054 ## ------------------------------------ ##
20056 ) | sed "s/^/$as_me: WARNING: /" >&2
20059 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20062 echo $ECHO_N "(cached) $ECHO_C" >&6
20064 eval "$as_ac_Header=\$ac_header_preproc"
20066 ac_res=`eval echo '${'$as_ac_Header'}'`
20067 { echo "$as_me:$LINENO: result: $ac_res" >&5
20068 echo "${ECHO_T}$ac_res" >&6; }
20071 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20072 cat >>confdefs.h <<_ACEOF
20073 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20081 for ac_func in getpagesize
20083 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20084 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20085 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20086 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20087 echo $ECHO_N "(cached) $ECHO_C" >&6
20089 cat >conftest.$ac_ext <<_ACEOF
20092 cat confdefs.h >>conftest.$ac_ext
20093 cat >>conftest.$ac_ext <<_ACEOF
20094 /* end confdefs.h. */
20095 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20097 #define $ac_func innocuous_$ac_func
20099 /* System header to define __stub macros and hopefully few prototypes,
20100 which can conflict with char $ac_func (); below.
20101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20102 <limits.h> exists even on freestanding compilers. */
20105 # include <limits.h>
20107 # include <assert.h>
20112 /* Override any GCC internal prototype to avoid an error.
20113 Use char because int might match the return type of a GCC
20114 builtin and then its argument prototype would still apply. */
20119 /* The GNU C library defines this for functions which it implements
20120 to always fail with ENOSYS. Some functions are actually named
20121 something starting with __ and the normal name is an alias. */
20122 #if defined __stub_$ac_func || defined __stub___$ac_func
20129 return $ac_func ();
20134 rm -f conftest.$ac_objext conftest$ac_exeext
20135 if { (ac_try="$ac_link"
20136 case "(($ac_try" in
20137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20138 *) ac_try_echo=$ac_try;;
20140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20141 (eval "$ac_link") 2>conftest.er1
20143 grep -v '^ *+' conftest.er1 >conftest.err
20145 cat conftest.err >&5
20146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147 (exit $ac_status); } &&
20148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20149 { (case "(($ac_try" in
20150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20151 *) ac_try_echo=$ac_try;;
20153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20154 (eval "$ac_try") 2>&5
20156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157 (exit $ac_status); }; } &&
20158 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
20166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167 (exit $ac_status); }; }; then
20168 eval "$as_ac_var=yes"
20170 echo "$as_me: failed program was:" >&5
20171 sed 's/^/| /' conftest.$ac_ext >&5
20173 eval "$as_ac_var=no"
20176 rm -f core conftest.err conftest.$ac_objext \
20177 conftest$ac_exeext conftest.$ac_ext
20179 ac_res=`eval echo '${'$as_ac_var'}'`
20180 { echo "$as_me:$LINENO: result: $ac_res" >&5
20181 echo "${ECHO_T}$ac_res" >&6; }
20182 if test `eval echo '${'$as_ac_var'}'` = yes; then
20183 cat >>confdefs.h <<_ACEOF
20184 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20190 { echo "$as_me:$LINENO: checking for working mmap" >&5
20191 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20192 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20193 echo $ECHO_N "(cached) $ECHO_C" >&6
20195 if test "$cross_compiling" = yes; then
20196 ac_cv_func_mmap_fixed_mapped=no
20198 cat >conftest.$ac_ext <<_ACEOF
20201 cat confdefs.h >>conftest.$ac_ext
20202 cat >>conftest.$ac_ext <<_ACEOF
20203 /* end confdefs.h. */
20204 $ac_includes_default
20205 /* malloc might have been renamed as rpl_malloc. */
20208 /* Thanks to Mike Haertel and Jim Avera for this test.
20209 Here is a matrix of mmap possibilities:
20210 mmap private not fixed
20211 mmap private fixed at somewhere currently unmapped
20212 mmap private fixed at somewhere already mapped
20213 mmap shared not fixed
20214 mmap shared fixed at somewhere currently unmapped
20215 mmap shared fixed at somewhere already mapped
20216 For private mappings, we should verify that changes cannot be read()
20217 back from the file, nor mmap's back from the file at a different
20218 address. (There have been systems where private was not correctly
20219 implemented like the infamous i386 svr4.0, and systems where the
20220 VM page cache was not coherent with the file system buffer cache
20221 like early versions of FreeBSD and possibly contemporary NetBSD.)
20222 For shared mappings, we should conversely verify that changes get
20223 propagated back to all the places they're supposed to be.
20225 Grep wants private fixed already mapped.
20226 The main things grep needs to know about mmap are:
20227 * does it exist and is it safe to write into the mmap'd area
20228 * how to use it (BSD variants) */
20231 #include <sys/mman.h>
20233 #if !STDC_HEADERS && !HAVE_STDLIB_H
20237 /* This mess was copied from the GNU getpagesize.h. */
20238 #if !HAVE_GETPAGESIZE
20239 /* Assume that all systems that can run configure have sys/param.h. */
20240 # if !HAVE_SYS_PARAM_H
20241 # define HAVE_SYS_PARAM_H 1
20244 # ifdef _SC_PAGESIZE
20245 # define getpagesize() sysconf(_SC_PAGESIZE)
20246 # else /* no _SC_PAGESIZE */
20247 # if HAVE_SYS_PARAM_H
20248 # include <sys/param.h>
20249 # ifdef EXEC_PAGESIZE
20250 # define getpagesize() EXEC_PAGESIZE
20251 # else /* no EXEC_PAGESIZE */
20253 # define getpagesize() NBPG * CLSIZE
20256 # endif /* no CLSIZE */
20257 # else /* no NBPG */
20259 # define getpagesize() NBPC
20260 # else /* no NBPC */
20262 # define getpagesize() PAGESIZE
20263 # endif /* PAGESIZE */
20264 # endif /* no NBPC */
20265 # endif /* no NBPG */
20266 # endif /* no EXEC_PAGESIZE */
20267 # else /* no HAVE_SYS_PARAM_H */
20268 # define getpagesize() 8192 /* punt totally */
20269 # endif /* no HAVE_SYS_PARAM_H */
20270 # endif /* no _SC_PAGESIZE */
20272 #endif /* no HAVE_GETPAGESIZE */
20277 char *data, *data2, *data3;
20281 pagesize = getpagesize ();
20283 /* First, make a file with some known garbage in it. */
20284 data = (char *) malloc (pagesize);
20287 for (i = 0; i < pagesize; ++i)
20288 *(data + i) = rand ();
20290 fd = creat ("conftest.mmap", 0600);
20293 if (write (fd, data, pagesize) != pagesize)
20297 /* Next, try to mmap the file at a fixed address which already has
20298 something else allocated at it. If we can, also make sure that
20299 we see the same garbage. */
20300 fd = open ("conftest.mmap", O_RDWR);
20303 data2 = (char *) malloc (2 * pagesize);
20306 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20307 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20308 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20310 for (i = 0; i < pagesize; ++i)
20311 if (*(data + i) != *(data2 + i))
20314 /* Finally, make sure that changes to the mapped area do not
20315 percolate back to the file as seen by read(). (This is a bug on
20316 some variants of i386 svr4.0.) */
20317 for (i = 0; i < pagesize; ++i)
20318 *(data2 + i) = *(data2 + i) + 1;
20319 data3 = (char *) malloc (pagesize);
20322 if (read (fd, data3, pagesize) != pagesize)
20324 for (i = 0; i < pagesize; ++i)
20325 if (*(data + i) != *(data3 + i))
20331 rm -f conftest$ac_exeext
20332 if { (ac_try="$ac_link"
20333 case "(($ac_try" in
20334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20335 *) ac_try_echo=$ac_try;;
20337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20338 (eval "$ac_link") 2>&5
20340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20342 { (case "(($ac_try" in
20343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20344 *) ac_try_echo=$ac_try;;
20346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20347 (eval "$ac_try") 2>&5
20349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350 (exit $ac_status); }; }; then
20351 ac_cv_func_mmap_fixed_mapped=yes
20353 echo "$as_me: program exited with status $ac_status" >&5
20354 echo "$as_me: failed program was:" >&5
20355 sed 's/^/| /' conftest.$ac_ext >&5
20357 ( exit $ac_status )
20358 ac_cv_func_mmap_fixed_mapped=no
20360 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20365 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20366 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20367 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20369 cat >>confdefs.h <<\_ACEOF
20370 #define HAVE_MMAP 1
20374 rm -f conftest.mmap
20376 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20377 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20378 if test "${ac_cv_func_mmap_file+set}" = set; then
20379 echo $ECHO_N "(cached) $ECHO_C" >&6
20382 ac_cpp='$CPP $CPPFLAGS'
20383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20387 if test "$cross_compiling" = yes; then
20388 ac_cv_func_mmap_file=no
20390 cat >conftest.$ac_ext <<_ACEOF
20394 cat confdefs.h >>conftest.$ac_ext
20395 cat >>conftest.$ac_ext <<_ACEOF
20396 /* end confdefs.h. */
20398 #include <sys/types.h>
20399 #include <sys/mman.h>
20407 fd = creat ("foo",0777);
20408 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20410 return (fd != (int) MAP_FAILED);
20415 rm -f conftest$ac_exeext
20416 if { (ac_try="$ac_link"
20417 case "(($ac_try" in
20418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20419 *) ac_try_echo=$ac_try;;
20421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20422 (eval "$ac_link") 2>&5
20424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20425 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20426 { (case "(($ac_try" in
20427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20428 *) ac_try_echo=$ac_try;;
20430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20431 (eval "$ac_try") 2>&5
20433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434 (exit $ac_status); }; }; then
20435 ac_cv_func_mmap_file=yes
20437 echo "$as_me: program exited with status $ac_status" >&5
20438 echo "$as_me: failed program was:" >&5
20439 sed 's/^/| /' conftest.$ac_ext >&5
20441 ( exit $ac_status )
20442 ac_cv_func_mmap_file=no
20444 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20449 ac_cpp='$CPP $CPPFLAGS'
20450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20456 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20457 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20458 if test "$ac_cv_func_mmap_file" = yes; then
20460 cat >>confdefs.h <<\_ACEOF
20461 #define HAVE_MMAP_FILE
20468 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20469 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20470 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20471 echo $ECHO_N "(cached) $ECHO_C" >&6
20473 if test "$llvm_cv_os_type" = "Interix" ; then
20474 ac_cv_need_dev_zero_for_mmap=yes
20476 ac_cv_need_dev_zero_for_mmap=no
20480 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20481 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20482 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20484 cat >>confdefs.h <<\_ACEOF
20485 #define NEED_DEV_ZERO_FOR_MMAP 1
20490 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20492 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20493 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20495 if test "$ac_cv_func_mmap_file" = "no"
20497 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20498 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20502 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20503 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20505 ac_cpp='$CXXCPP $CPPFLAGS'
20506 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20507 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20508 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20510 cat >conftest.$ac_ext <<_ACEOF
20513 cat confdefs.h >>conftest.$ac_ext
20514 cat >>conftest.$ac_ext <<_ACEOF
20515 /* end confdefs.h. */
20517 volatile unsigned long val = 1;
20518 __sync_synchronize();
20519 __sync_val_compare_and_swap(&val, 1, 0);
20520 __sync_add_and_fetch(&val, 1);
20521 __sync_sub_and_fetch(&val, 1);
20526 rm -f conftest.$ac_objext conftest$ac_exeext
20527 if { (ac_try="$ac_link"
20528 case "(($ac_try" in
20529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20530 *) ac_try_echo=$ac_try;;
20532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20533 (eval "$ac_link") 2>conftest.er1
20535 grep -v '^ *+' conftest.er1 >conftest.err
20537 cat conftest.err >&5
20538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539 (exit $ac_status); } &&
20540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20541 { (case "(($ac_try" in
20542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20543 *) ac_try_echo=$ac_try;;
20545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20546 (eval "$ac_try") 2>&5
20548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549 (exit $ac_status); }; } &&
20550 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
20558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559 (exit $ac_status); }; }; then
20561 ac_cpp='$CPP $CPPFLAGS'
20562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20566 { echo "$as_me:$LINENO: result: yes" >&5
20567 echo "${ECHO_T}yes" >&6; }
20569 cat >>confdefs.h <<\_ACEOF
20570 #define LLVM_HAS_ATOMICS 1
20574 echo "$as_me: failed program was:" >&5
20575 sed 's/^/| /' conftest.$ac_ext >&5
20577 { echo "$as_me:$LINENO: result: no" >&5
20578 echo "${ECHO_T}no" >&6; }
20580 cat >>confdefs.h <<\_ACEOF
20581 #define LLVM_HAS_ATOMICS 0
20584 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20585 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20588 rm -f core conftest.err conftest.$ac_objext \
20589 conftest$ac_exeext conftest.$ac_ext
20592 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20593 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20594 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20595 if test "${llvm_cv_linux_mixed+set}" = set; then
20596 echo $ECHO_N "(cached) $ECHO_C" >&6
20599 ac_cpp='$CPP $CPPFLAGS'
20600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20604 cat >conftest.$ac_ext <<_ACEOF
20607 cat confdefs.h >>conftest.$ac_ext
20608 cat >>conftest.$ac_ext <<_ACEOF
20609 /* end confdefs.h. */
20611 error: Not x86-64 even if uname says so!
20622 rm -f conftest.$ac_objext
20623 if { (ac_try="$ac_compile"
20624 case "(($ac_try" in
20625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20626 *) ac_try_echo=$ac_try;;
20628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20629 (eval "$ac_compile") 2>conftest.er1
20631 grep -v '^ *+' conftest.er1 >conftest.err
20633 cat conftest.err >&5
20634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635 (exit $ac_status); } &&
20636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20637 { (case "(($ac_try" in
20638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20639 *) ac_try_echo=$ac_try;;
20641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20642 (eval "$ac_try") 2>&5
20644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645 (exit $ac_status); }; } &&
20646 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
20654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655 (exit $ac_status); }; }; then
20656 llvm_cv_linux_mixed=no
20658 echo "$as_me: failed program was:" >&5
20659 sed 's/^/| /' conftest.$ac_ext >&5
20661 llvm_cv_linux_mixed=yes
20664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20666 ac_cpp='$CPP $CPPFLAGS'
20667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20673 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20674 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20676 if test "$llvm_cv_linux_mixed" = "yes"; then
20677 llvm_cv_target_arch="x86"
20683 for ac_func in __dso_handle
20685 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20686 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20687 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20688 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20689 echo $ECHO_N "(cached) $ECHO_C" >&6
20691 cat >conftest.$ac_ext <<_ACEOF
20694 cat confdefs.h >>conftest.$ac_ext
20695 cat >>conftest.$ac_ext <<_ACEOF
20696 /* end confdefs.h. */
20697 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20699 #define $ac_func innocuous_$ac_func
20701 /* System header to define __stub macros and hopefully few prototypes,
20702 which can conflict with char $ac_func (); below.
20703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20704 <limits.h> exists even on freestanding compilers. */
20707 # include <limits.h>
20709 # include <assert.h>
20714 /* Override any GCC internal prototype to avoid an error.
20715 Use char because int might match the return type of a GCC
20716 builtin and then its argument prototype would still apply. */
20721 /* The GNU C library defines this for functions which it implements
20722 to always fail with ENOSYS. Some functions are actually named
20723 something starting with __ and the normal name is an alias. */
20724 #if defined __stub_$ac_func || defined __stub___$ac_func
20731 return $ac_func ();
20736 rm -f conftest.$ac_objext conftest$ac_exeext
20737 if { (ac_try="$ac_link"
20738 case "(($ac_try" in
20739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20740 *) ac_try_echo=$ac_try;;
20742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20743 (eval "$ac_link") 2>conftest.er1
20745 grep -v '^ *+' conftest.er1 >conftest.err
20747 cat conftest.err >&5
20748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749 (exit $ac_status); } &&
20750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20751 { (case "(($ac_try" in
20752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20753 *) ac_try_echo=$ac_try;;
20755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20756 (eval "$ac_try") 2>&5
20758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759 (exit $ac_status); }; } &&
20760 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
20768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769 (exit $ac_status); }; }; then
20770 eval "$as_ac_var=yes"
20772 echo "$as_me: failed program was:" >&5
20773 sed 's/^/| /' conftest.$ac_ext >&5
20775 eval "$as_ac_var=no"
20778 rm -f core conftest.err conftest.$ac_objext \
20779 conftest$ac_exeext conftest.$ac_ext
20781 ac_res=`eval echo '${'$as_ac_var'}'`
20782 { echo "$as_me:$LINENO: result: $ac_res" >&5
20783 echo "${ECHO_T}$ac_res" >&6; }
20784 if test `eval echo '${'$as_ac_var'}'` = yes; then
20785 cat >>confdefs.h <<_ACEOF
20786 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20793 SHLIBEXT=$libltdl_cv_shlibext
20796 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20799 if test "${prefix}" = "NONE" ; then
20800 prefix="/usr/local"
20802 eval LLVM_PREFIX="${prefix}";
20803 eval LLVM_BINDIR="${prefix}/bin";
20804 eval LLVM_LIBDIR="${prefix}/lib";
20805 eval LLVM_DATADIR="${prefix}/share/llvm";
20806 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20807 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20808 eval LLVM_INCLUDEDIR="${prefix}/include";
20809 eval LLVM_INFODIR="${prefix}/info";
20810 eval LLVM_MANDIR="${prefix}/man";
20811 LLVM_CONFIGTIME=`date`
20823 if test "${ENABLE_TIMESTAMPS}" = "0"; then
20824 LLVM_CONFIGTIME="(timestamp not enabled)"
20828 cat >>confdefs.h <<_ACEOF
20829 #define LLVM_PREFIX "$LLVM_PREFIX"
20833 cat >>confdefs.h <<_ACEOF
20834 #define LLVM_BINDIR "$LLVM_BINDIR"
20838 cat >>confdefs.h <<_ACEOF
20839 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20843 cat >>confdefs.h <<_ACEOF
20844 #define LLVM_DATADIR "$LLVM_DATADIR"
20848 cat >>confdefs.h <<_ACEOF
20849 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20853 cat >>confdefs.h <<_ACEOF
20854 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20858 cat >>confdefs.h <<_ACEOF
20859 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20863 cat >>confdefs.h <<_ACEOF
20864 #define LLVM_INFODIR "$LLVM_INFODIR"
20868 cat >>confdefs.h <<_ACEOF
20869 #define LLVM_MANDIR "$LLVM_MANDIR"
20873 cat >>confdefs.h <<_ACEOF
20874 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20878 cat >>confdefs.h <<_ACEOF
20879 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20883 if test "$BINDINGS_TO_BUILD" = auto ; then
20884 BINDINGS_TO_BUILD=""
20885 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20886 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20889 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20895 binding_prereqs_failed=0
20896 for a_binding in $BINDINGS_TO_BUILD ; do
20897 case "$a_binding" in
20899 if test "x$OCAMLC" = x ; then
20900 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20901 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20902 binding_prereqs_failed=1
20904 if test "x$OCAMLDEP" = x ; then
20905 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20906 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20907 binding_prereqs_failed=1
20909 if test "x$OCAMLOPT" = x ; then
20910 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20911 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20913 if test "x$with_ocaml_libdir" != xauto ; then
20914 OCAML_LIBDIR=$with_ocaml_libdir
20917 ocaml_stdlib="`"$OCAMLC" -where`"
20918 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20920 # ocaml stdlib is beneath our prefix; use stdlib
20921 OCAML_LIBDIR=$ocaml_stdlib
20924 # ocaml stdlib is outside our prefix; use libdir/ocaml
20925 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20932 if test "$binding_prereqs_failed" = 1 ; then
20933 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20934 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20935 { (exit 1); exit 1; }; }
20938 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20939 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20940 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20941 echo $ECHO_N "(cached) $ECHO_C" >&6
20944 ac_cpp='$CXXCPP $CPPFLAGS'
20945 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20946 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20947 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20949 oldcxxflags="$CXXFLAGS"
20950 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
20951 cat >conftest.$ac_ext <<_ACEOF
20954 cat confdefs.h >>conftest.$ac_ext
20955 cat >>conftest.$ac_ext <<_ACEOF
20956 /* end confdefs.h. */
20957 template <typename T> struct X { void __attribute__((noinline)) f() {} };
20966 rm -f conftest.$ac_objext
20967 if { (ac_try="$ac_compile"
20968 case "(($ac_try" in
20969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20970 *) ac_try_echo=$ac_try;;
20972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20973 (eval "$ac_compile") 2>conftest.er1
20975 grep -v '^ *+' conftest.er1 >conftest.err
20977 cat conftest.err >&5
20978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979 (exit $ac_status); } &&
20980 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20981 { (case "(($ac_try" in
20982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20983 *) ac_try_echo=$ac_try;;
20985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20986 (eval "$ac_try") 2>&5
20988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989 (exit $ac_status); }; } &&
20990 { ac_try='test -s conftest.$ac_objext'
20991 { (case "(($ac_try" in
20992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20993 *) ac_try_echo=$ac_try;;
20995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20996 (eval "$ac_try") 2>&5
20998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999 (exit $ac_status); }; }; then
21000 llvm_cv_cxx_visibility_inlines_hidden=yes
21002 echo "$as_me: failed program was:" >&5
21003 sed 's/^/| /' conftest.$ac_ext >&5
21005 llvm_cv_cxx_visibility_inlines_hidden=no
21008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21009 CXXFLAGS="$oldcxxflags"
21011 ac_cpp='$CPP $CPPFLAGS'
21012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21018 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21019 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21020 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21021 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21024 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21029 if test "$llvm_cv_link_use_r" = "yes" ; then
21036 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21037 RDYNAMIC="-Wl,-export-dynamic"
21044 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21051 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21053 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21055 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21057 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21059 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21062 ac_config_files="$ac_config_files Makefile.config"
21065 ac_config_files="$ac_config_files llvm.spec"
21068 ac_config_files="$ac_config_files docs/doxygen.cfg"
21071 if test "${clang_src_root}" = ""; then
21072 clang_src_root="$srcdir/tools/clang"
21074 if test -f ${clang_src_root}/README.txt; then
21075 configh="include/clang/Config/config.h"
21076 doxy="docs/doxygen.cfg"
21077 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21079 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21083 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21086 ac_config_commands="$ac_config_commands setup"
21088 ac_config_commands="$ac_config_commands Makefile"
21091 ac_config_commands="$ac_config_commands Makefile.common"
21094 ac_config_commands="$ac_config_commands examples/Makefile"
21097 ac_config_commands="$ac_config_commands lib/Makefile"
21100 ac_config_commands="$ac_config_commands runtime/Makefile"
21103 ac_config_commands="$ac_config_commands test/Makefile"
21106 ac_config_commands="$ac_config_commands test/Makefile.tests"
21109 ac_config_commands="$ac_config_commands unittests/Makefile"
21112 ac_config_commands="$ac_config_commands tools/Makefile"
21115 ac_config_commands="$ac_config_commands utils/Makefile"
21118 ac_config_commands="$ac_config_commands projects/Makefile"
21121 ac_config_commands="$ac_config_commands bindings/Makefile"
21124 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21128 cat >confcache <<\_ACEOF
21129 # This file is a shell script that caches the results of configure
21130 # tests run on this system so they can be shared between configure
21131 # scripts and configure runs, see configure's option --config-cache.
21132 # It is not useful on other systems. If it contains results you don't
21133 # want to keep, you may remove or edit it.
21135 # config.status only pays attention to the cache file if you give it
21136 # the --recheck option to rerun configure.
21138 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21139 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21140 # following values.
21144 # The following way of writing the cache mishandles newlines in values,
21145 # but we know of no workaround that is simple, portable, and efficient.
21146 # So, we kill variables containing newlines.
21147 # Ultrix sh set writes to stderr and can't be redirected directly,
21148 # and sets the high bit in the cache file unless we assign to the vars.
21150 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21151 eval ac_val=\$$ac_var
21155 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21156 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21159 _ | IFS | as_nl) ;; #(
21160 *) $as_unset $ac_var ;;
21166 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21167 *${as_nl}ac_space=\ *)
21168 # `set' does not quote correctly, so add quotes (double-quote
21169 # substitution turns \\\\ into \\, and sed turns \\ into \).
21172 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21175 # `set' quotes correctly as required by POSIX, so do not add quotes.
21176 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21185 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21187 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21189 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21190 if test -w "$cache_file"; then
21191 test "x$cache_file" != "x/dev/null" &&
21192 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21193 echo "$as_me: updating cache $cache_file" >&6;}
21194 cat confcache >$cache_file
21196 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21197 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21202 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21203 # Let make expand exec_prefix.
21204 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21206 DEFS=-DHAVE_CONFIG_H
21210 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21211 # 1. Remove the extension, and $U if already installed.
21212 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21213 ac_i=`echo "$ac_i" | sed "$ac_script"`
21214 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21215 # will be set to the directory where LIBOBJS objects are built.
21216 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21217 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21219 LIBOBJS=$ac_libobjs
21221 LTLIBOBJS=$ac_ltlibobjs
21224 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21225 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21226 Usually this means the macro was only invoked conditionally." >&5
21227 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21228 Usually this means the macro was only invoked conditionally." >&2;}
21229 { (exit 1); exit 1; }; }
21231 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21232 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21233 Usually this means the macro was only invoked conditionally." >&5
21234 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21235 Usually this means the macro was only invoked conditionally." >&2;}
21236 { (exit 1); exit 1; }; }
21239 : ${CONFIG_STATUS=./config.status}
21240 ac_clean_files_save=$ac_clean_files
21241 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21242 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21243 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21244 cat >$CONFIG_STATUS <<_ACEOF
21246 # Generated by $as_me.
21247 # Run this file to recreate the current configuration.
21248 # Compiler output produced by configure, useful for debugging
21249 # configure, is in config.log if it exists.
21252 ac_cs_recheck=false
21254 SHELL=\${CONFIG_SHELL-$SHELL}
21257 cat >>$CONFIG_STATUS <<\_ACEOF
21258 ## --------------------- ##
21259 ## M4sh Initialization. ##
21260 ## --------------------- ##
21262 # Be Bourne compatible
21263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21267 # is contrary to our usage. Disable this feature.
21268 alias -g '${1+"$@"}'='"$@"'
21269 setopt NO_GLOB_SUBST
21271 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21273 BIN_SH=xpg4; export BIN_SH # for Tru64
21274 DUALCASE=1; export DUALCASE # for MKS sh
21278 # Avoid depending upon Character Ranges.
21279 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21280 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21281 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21282 as_cr_digits='0123456789'
21283 as_cr_alnum=$as_cr_Letters$as_cr_digits
21285 # The user is always right.
21286 if test "${PATH_SEPARATOR+set}" != set; then
21287 echo "#! /bin/sh" >conf$$.sh
21288 echo "exit 0" >>conf$$.sh
21290 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21298 # Support unset when possible.
21299 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21307 # We need space, tab and new line, in precisely that order. Quoting is
21308 # there to prevent editors from complaining about space-tab.
21309 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21310 # splitting by setting IFS to empty value.)
21315 # Find who we are. Look in the path if we contain no directory separator.
21317 *[\\/]* ) as_myself=$0 ;;
21318 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21319 for as_dir in $PATH
21322 test -z "$as_dir" && as_dir=.
21323 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21329 # We did not find ourselves, most probably we were run as `sh COMMAND'
21330 # in which case we are not to be found in the path.
21331 if test "x$as_myself" = x; then
21334 if test ! -f "$as_myself"; then
21335 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21336 { (exit 1); exit 1; }
21339 # Work around bugs in pre-3.0 UWIN ksh.
21340 for as_var in ENV MAIL MAILPATH
21341 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21349 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21350 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21351 LC_TELEPHONE LC_TIME
21353 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21354 eval $as_var=C; export $as_var
21356 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21360 # Required to use basename.
21361 if expr a : '\(a\)' >/dev/null 2>&1 &&
21362 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21368 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21369 as_basename=basename
21375 # Name of the executable.
21376 as_me=`$as_basename -- "$0" ||
21377 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21378 X"$0" : 'X\(//\)$' \| \
21379 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21381 sed '/^.*\/\([^/][^/]*\)\/*$/{
21400 as_lineno_1=$LINENO
21401 as_lineno_2=$LINENO
21402 test "x$as_lineno_1" != "x$as_lineno_2" &&
21403 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21405 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21406 # uniformly replaced by the line number. The first 'sed' inserts a
21407 # line-number line after each line using $LINENO; the second 'sed'
21408 # does the real work. The second script uses 'N' to pair each
21409 # line-number line with the line containing $LINENO, and appends
21410 # trailing '-' during substitution so that $LINENO is not a special
21411 # case at line end.
21412 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21413 # scripts with optimization help from Paolo Bonzini. Blame Lee
21414 # E. McMahon (1931-1989) for sed's syntax. :-)
21426 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21429 ' >$as_me.lineno &&
21430 chmod +x "$as_me.lineno" ||
21431 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21432 { (exit 1); exit 1; }; }
21434 # Don't try to exec as it changes $[0], causing all sort of problems
21435 # (the dirname of $[0] is not the place where we might find the
21436 # original and so on. Autoconf is especially sensitive to this).
21437 . "./$as_me.lineno"
21438 # Exit status is that of the last command.
21443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21449 ECHO_C= ECHO_N= ECHO_T=
21450 case `echo -n x` in
21452 case `echo 'x\c'` in
21453 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21460 if expr a : '\(a\)' >/dev/null 2>&1 &&
21461 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21467 rm -f conf$$ conf$$.exe conf$$.file
21468 if test -d conf$$.dir; then
21469 rm -f conf$$.dir/conf$$.file
21475 if ln -s conf$$.file conf$$ 2>/dev/null; then
21477 # ... but there are two gotchas:
21478 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21479 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21480 # In both cases, we have to default to `cp -p'.
21481 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21483 elif ln conf$$.file conf$$ 2>/dev/null; then
21488 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21489 rmdir conf$$.dir 2>/dev/null
21491 if mkdir -p . 2>/dev/null; then
21494 test -d ./-p && rmdir ./-p
21498 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21499 # systems may use methods other than mode bits to determine executability.
21500 cat >conf$$.file <<_ASEOF
21504 chmod +x conf$$.file
21505 if test -x conf$$.file >/dev/null 2>&1; then
21506 as_executable_p="test -x"
21512 # Sed expression to map a string onto a valid CPP name.
21513 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21515 # Sed expression to map a string onto a valid variable name.
21516 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21521 # Save the log message, to keep $[0] and so on meaningful, and to
21522 # report actual input values of CONFIG_FILES etc. instead of their
21523 # values after options handling.
21525 This file was extended by LLVM $as_me 3.1svn, which was
21526 generated by GNU Autoconf 2.60. Invocation command line was
21528 CONFIG_FILES = $CONFIG_FILES
21529 CONFIG_HEADERS = $CONFIG_HEADERS
21530 CONFIG_LINKS = $CONFIG_LINKS
21531 CONFIG_COMMANDS = $CONFIG_COMMANDS
21534 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21539 cat >>$CONFIG_STATUS <<_ACEOF
21540 # Files that config.status was made for.
21541 config_files="$ac_config_files"
21542 config_headers="$ac_config_headers"
21543 config_commands="$ac_config_commands"
21547 cat >>$CONFIG_STATUS <<\_ACEOF
21549 \`$as_me' instantiates files from templates according to the
21550 current configuration.
21552 Usage: $0 [OPTIONS] [FILE]...
21554 -h, --help print this help, then exit
21555 -V, --version print version number, then exit
21556 -q, --quiet do not print progress messages
21557 -d, --debug don't remove temporary files
21558 --recheck update $as_me by reconfiguring in the same conditions
21559 --file=FILE[:TEMPLATE]
21560 instantiate the configuration file FILE
21561 --header=FILE[:TEMPLATE]
21562 instantiate the configuration header FILE
21564 Configuration files:
21567 Configuration headers:
21570 Configuration commands:
21573 Report bugs to <bug-autoconf@gnu.org>."
21576 cat >>$CONFIG_STATUS <<_ACEOF
21578 LLVM config.status 3.1svn
21579 configured by $0, generated by GNU Autoconf 2.60,
21580 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21582 Copyright (C) 2006 Free Software Foundation, Inc.
21583 This config.status script is free software; the Free Software Foundation
21584 gives unlimited permission to copy, distribute and modify it."
21591 cat >>$CONFIG_STATUS <<\_ACEOF
21592 # If no file are specified by the user, then we need to provide default
21593 # value. By we need to know if files were specified by the user.
21599 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21600 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21611 # Handling of the options.
21612 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21614 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21615 echo "$ac_cs_version"; exit ;;
21616 --debug | --debu | --deb | --de | --d | -d )
21618 --file | --fil | --fi | --f )
21620 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21621 ac_need_defaults=false;;
21622 --header | --heade | --head | --hea )
21624 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21625 ac_need_defaults=false;;
21627 # Conflict between --help and --header
21628 { echo "$as_me: error: ambiguous option: $1
21629 Try \`$0 --help' for more information." >&2
21630 { (exit 1); exit 1; }; };;
21631 --help | --hel | -h )
21632 echo "$ac_cs_usage"; exit ;;
21633 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21634 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21637 # This is an error.
21638 -*) { echo "$as_me: error: unrecognized option: $1
21639 Try \`$0 --help' for more information." >&2
21640 { (exit 1); exit 1; }; } ;;
21642 *) ac_config_targets="$ac_config_targets $1"
21643 ac_need_defaults=false ;;
21649 ac_configure_extra_args=
21651 if $ac_cs_silent; then
21653 ac_configure_extra_args="$ac_configure_extra_args --silent"
21657 cat >>$CONFIG_STATUS <<_ACEOF
21658 if \$ac_cs_recheck; then
21659 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21660 CONFIG_SHELL=$SHELL
21661 export CONFIG_SHELL
21662 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21666 cat >>$CONFIG_STATUS <<\_ACEOF
21670 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21671 ## Running $as_me. ##
21677 cat >>$CONFIG_STATUS <<_ACEOF
21681 llvm_src="${srcdir}"
21685 cat >>$CONFIG_STATUS <<\_ACEOF
21687 # Handling of arguments.
21688 for ac_config_target in $ac_config_targets
21690 case $ac_config_target in
21691 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21692 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21693 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21694 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21695 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21696 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21697 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21698 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21699 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21700 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21701 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21702 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
21703 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21704 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21705 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21706 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21707 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21708 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21709 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21710 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21711 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21712 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21713 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21714 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21715 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21716 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21717 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21719 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21720 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21721 { (exit 1); exit 1; }; };;
21726 # If the user did not use the arguments to specify the items to instantiate,
21727 # then the envvar interface is used. Set only those that are not.
21728 # We use the long form for the default assignment because of an extremely
21729 # bizarre bug on SunOS 4.1.3.
21730 if $ac_need_defaults; then
21731 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21732 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21733 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21736 # Have a temporary directory for convenience. Make it in the build tree
21737 # simply because there is no reason against having it here, and in addition,
21738 # creating and moving files from /tmp can sometimes cause problems.
21739 # Hook for its removal unless debugging.
21740 # Note that there is a small window in which the directory will not be cleaned:
21741 # after its creation but before its name has been assigned to `$tmp'.
21745 trap 'exit_status=$?
21746 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21748 trap '{ (exit 1); exit 1; }' 1 2 13 15
21750 # Create a (secure) tmp directory for tmp files.
21753 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21754 test -n "$tmp" && test -d "$tmp"
21757 tmp=./conf$$-$RANDOM
21758 (umask 077 && mkdir "$tmp")
21761 echo "$me: cannot create a temporary directory in ." >&2
21762 { (exit 1); exit 1; }
21766 # Set up the sed scripts for CONFIG_FILES section.
21769 # No need to generate the scripts if there are no CONFIG_FILES.
21770 # This happens for instance when ./config.status config.h
21771 if test -n "$CONFIG_FILES"; then
21778 for ac_last_try in false false false false false :; do
21779 cat >conf$$subs.sed <<_ACEOF
21780 SHELL!$SHELL$ac_delim
21781 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21782 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21783 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21784 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21785 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21786 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21787 exec_prefix!$exec_prefix$ac_delim
21788 prefix!$prefix$ac_delim
21789 program_transform_name!$program_transform_name$ac_delim
21790 bindir!$bindir$ac_delim
21791 sbindir!$sbindir$ac_delim
21792 libexecdir!$libexecdir$ac_delim
21793 datarootdir!$datarootdir$ac_delim
21794 datadir!$datadir$ac_delim
21795 sysconfdir!$sysconfdir$ac_delim
21796 sharedstatedir!$sharedstatedir$ac_delim
21797 localstatedir!$localstatedir$ac_delim
21798 includedir!$includedir$ac_delim
21799 oldincludedir!$oldincludedir$ac_delim
21800 docdir!$docdir$ac_delim
21801 infodir!$infodir$ac_delim
21802 htmldir!$htmldir$ac_delim
21803 dvidir!$dvidir$ac_delim
21804 pdfdir!$pdfdir$ac_delim
21805 psdir!$psdir$ac_delim
21806 libdir!$libdir$ac_delim
21807 localedir!$localedir$ac_delim
21808 mandir!$mandir$ac_delim
21809 DEFS!$DEFS$ac_delim
21810 ECHO_C!$ECHO_C$ac_delim
21811 ECHO_N!$ECHO_N$ac_delim
21812 ECHO_T!$ECHO_T$ac_delim
21813 LIBS!$LIBS$ac_delim
21814 build_alias!$build_alias$ac_delim
21815 host_alias!$host_alias$ac_delim
21816 target_alias!$target_alias$ac_delim
21817 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21819 CFLAGS!$CFLAGS$ac_delim
21820 LDFLAGS!$LDFLAGS$ac_delim
21821 CPPFLAGS!$CPPFLAGS$ac_delim
21822 ac_ct_CC!$ac_ct_CC$ac_delim
21823 EXEEXT!$EXEEXT$ac_delim
21824 OBJEXT!$OBJEXT$ac_delim
21826 CXXFLAGS!$CXXFLAGS$ac_delim
21827 ac_ct_CXX!$ac_ct_CXX$ac_delim
21829 subdirs!$subdirs$ac_delim
21830 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21831 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21832 build!$build$ac_delim
21833 build_cpu!$build_cpu$ac_delim
21834 build_vendor!$build_vendor$ac_delim
21835 build_os!$build_os$ac_delim
21836 host!$host$ac_delim
21837 host_cpu!$host_cpu$ac_delim
21838 host_vendor!$host_vendor$ac_delim
21839 host_os!$host_os$ac_delim
21840 target!$target$ac_delim
21841 target_cpu!$target_cpu$ac_delim
21842 target_vendor!$target_vendor$ac_delim
21843 target_os!$target_os$ac_delim
21845 HOST_OS!$HOST_OS$ac_delim
21846 TARGET_OS!$TARGET_OS$ac_delim
21847 LINKALL!$LINKALL$ac_delim
21848 NOLINKALL!$NOLINKALL$ac_delim
21849 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21850 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21851 ARCH!$ARCH$ac_delim
21852 ENDIAN!$ENDIAN$ac_delim
21853 GREP!$GREP$ac_delim
21854 EGREP!$EGREP$ac_delim
21855 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21856 BUILD_CC!$BUILD_CC$ac_delim
21857 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21858 BUILD_CXX!$BUILD_CXX$ac_delim
21859 CVSBUILD!$CVSBUILD$ac_delim
21860 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21861 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21862 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21863 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21864 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21865 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21866 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21867 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21869 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21870 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21871 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21872 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
21873 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21874 ENABLE_PIC!$ENABLE_PIC$ac_delim
21875 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21876 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21879 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21881 elif $ac_last_try; then
21882 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21883 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21884 { (exit 1); exit 1; }; }
21886 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21890 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21891 if test -n "$ac_eof"; then
21892 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21893 ac_eof=`expr $ac_eof + 1`
21896 cat >>$CONFIG_STATUS <<_ACEOF
21897 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21898 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21901 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21902 s/^/s,@/; s/!/@,|#_!!_#|/
21905 s/'"$ac_delim"'$/,g/; t
21907 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21908 ' >>$CONFIG_STATUS <conf$$subs.sed
21909 rm -f conf$$subs.sed
21910 cat >>$CONFIG_STATUS <<_ACEOF
21916 for ac_last_try in false false false false false :; do
21917 cat >conf$$subs.sed <<_ACEOF
21918 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21919 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21920 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21921 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21922 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21923 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21924 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21925 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21926 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21927 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21928 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
21929 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21930 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
21932 ifGNUmake!$ifGNUmake$ac_delim
21933 LN_S!$LN_S$ac_delim
21936 DATE!$DATE$ac_delim
21937 FIND!$FIND$ac_delim
21938 MKDIR!$MKDIR$ac_delim
21940 RANLIB!$RANLIB$ac_delim
21945 BINPWD!$BINPWD$ac_delim
21946 GRAPHVIZ!$GRAPHVIZ$ac_delim
21949 NEATO!$NEATO$ac_delim
21950 TWOPI!$TWOPI$ac_delim
21951 CIRCO!$CIRCO$ac_delim
21953 DOTTY!$DOTTY$ac_delim
21954 XDOT_PY!$XDOT_PY$ac_delim
21955 PERL!$PERL$ac_delim
21956 HAVE_PERL!$HAVE_PERL$ac_delim
21957 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21958 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21959 INSTALL_DATA!$INSTALL_DATA$ac_delim
21960 BZIP2!$BZIP2$ac_delim
21962 DOXYGEN!$DOXYGEN$ac_delim
21963 GROFF!$GROFF$ac_delim
21964 GZIPBIN!$GZIPBIN$ac_delim
21965 POD2HTML!$POD2HTML$ac_delim
21966 POD2MAN!$POD2MAN$ac_delim
21967 PDFROFF!$PDFROFF$ac_delim
21968 RUNTEST!$RUNTEST$ac_delim
21969 TCLSH!$TCLSH$ac_delim
21971 OCAMLC!$OCAMLC$ac_delim
21972 OCAMLOPT!$OCAMLOPT$ac_delim
21973 OCAMLDEP!$OCAMLDEP$ac_delim
21974 OCAMLDOC!$OCAMLDOC$ac_delim
21976 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21977 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21978 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21979 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21980 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21981 LIBADD_DL!$LIBADD_DL$ac_delim
21982 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21983 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21984 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
21985 USE_UDIS86!$USE_UDIS86$ac_delim
21986 USE_OPROFILE!$USE_OPROFILE$ac_delim
21987 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21988 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21989 MMAP_FILE!$MMAP_FILE$ac_delim
21990 SHLIBEXT!$SHLIBEXT$ac_delim
21991 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21992 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21993 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21994 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21995 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21996 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21997 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21998 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21999 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22000 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22001 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22002 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22003 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22004 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22005 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22006 RPATH!$RPATH$ac_delim
22007 RDYNAMIC!$RDYNAMIC$ac_delim
22008 LIBOBJS!$LIBOBJS$ac_delim
22009 LTLIBOBJS!$LTLIBOBJS$ac_delim
22012 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
22014 elif $ac_last_try; then
22015 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22016 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22017 { (exit 1); exit 1; }; }
22019 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22023 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22024 if test -n "$ac_eof"; then
22025 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22026 ac_eof=`expr $ac_eof + 1`
22029 cat >>$CONFIG_STATUS <<_ACEOF
22030 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22031 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22034 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22035 s/^/s,@/; s/!/@,|#_!!_#|/
22038 s/'"$ac_delim"'$/,g/; t
22040 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22041 ' >>$CONFIG_STATUS <conf$$subs.sed
22042 rm -f conf$$subs.sed
22043 cat >>$CONFIG_STATUS <<_ACEOF
22050 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22051 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22052 # trailing colons and then remove the whole line if VPATH becomes empty
22053 # (actually we leave an empty line to preserve line numbers).
22054 if test "x$srcdir" = x.; then
22055 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22056 s/:*\$(srcdir):*/:/
22057 s/:*\${srcdir}:*/:/
22059 s/^\([^=]*=[ ]*\):*/\1/
22065 cat >>$CONFIG_STATUS <<\_ACEOF
22066 fi # test -n "$CONFIG_FILES"
22069 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22072 :[FHLC]) ac_mode=$ac_tag; continue;;
22074 case $ac_mode$ac_tag in
22076 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22077 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22078 { (exit 1); exit 1; }; };;
22079 :[FH]-) ac_tag=-:-;;
22080 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22097 -) ac_f="$tmp/stdin";;
22098 *) # Look for the file first in the build tree, then in the source tree
22099 # (if the path is not absolute). The absolute path cannot be DOS-style,
22100 # because $ac_f cannot contain `:'.
22104 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22106 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22107 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22108 { (exit 1); exit 1; }; };;
22110 ac_file_inputs="$ac_file_inputs $ac_f"
22113 # Let's still pretend it is `configure' which instantiates (i.e., don't
22114 # use $as_me), people would be surprised to read:
22115 # /* config.h. Generated by config.status. */
22116 configure_input="Generated from "`IFS=:
22117 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22118 if test x"$ac_file" != x-; then
22119 configure_input="$ac_file. $configure_input"
22120 { echo "$as_me:$LINENO: creating $ac_file" >&5
22121 echo "$as_me: creating $ac_file" >&6;}
22125 *:-:* | *:-) cat >"$tmp/stdin";;
22130 ac_dir=`$as_dirname -- "$ac_file" ||
22131 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22132 X"$ac_file" : 'X\(//\)[^/]' \| \
22133 X"$ac_file" : 'X\(//\)$' \| \
22134 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22136 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22140 /^X\(\/\/\)[^/].*/{
22155 -*) as_dir=./$as_dir;;
22157 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22161 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22162 *) as_qdir=$as_dir;;
22164 as_dirs="'$as_qdir' $as_dirs"
22165 as_dir=`$as_dirname -- "$as_dir" ||
22166 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22167 X"$as_dir" : 'X\(//\)[^/]' \| \
22168 X"$as_dir" : 'X\(//\)$' \| \
22169 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22171 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22175 /^X\(\/\/\)[^/].*/{
22188 test -d "$as_dir" && break
22190 test -z "$as_dirs" || eval "mkdir $as_dirs"
22191 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22192 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22193 { (exit 1); exit 1; }; }; }
22197 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22199 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22200 # A ".." for each directory in $ac_dir_suffix.
22201 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22202 case $ac_top_builddir_sub in
22203 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22204 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22207 ac_abs_top_builddir=$ac_pwd
22208 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22209 # for backward compatibility:
22210 ac_top_builddir=$ac_top_build_prefix
22213 .) # We are building in place.
22215 ac_top_srcdir=$ac_top_builddir_sub
22216 ac_abs_top_srcdir=$ac_pwd ;;
22217 [\\/]* | ?:[\\/]* ) # Absolute name.
22218 ac_srcdir=$srcdir$ac_dir_suffix;
22219 ac_top_srcdir=$srcdir
22220 ac_abs_top_srcdir=$srcdir ;;
22221 *) # Relative name.
22222 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22223 ac_top_srcdir=$ac_top_build_prefix$srcdir
22224 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22226 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22236 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22237 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22241 cat >>$CONFIG_STATUS <<\_ACEOF
22242 # If the template does not know about datarootdir, expand it.
22243 # FIXME: This hack should be removed a few years after 2.60.
22244 ac_datarootdir_hack=; ac_datarootdir_seen=
22246 case `sed -n '/datarootdir/ {
22255 ' $ac_file_inputs` in
22256 *datarootdir*) ac_datarootdir_seen=yes;;
22257 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22258 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22259 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22261 cat >>$CONFIG_STATUS <<_ACEOF
22262 ac_datarootdir_hack='
22263 s&@datadir@&$datadir&g
22264 s&@docdir@&$docdir&g
22265 s&@infodir@&$infodir&g
22266 s&@localedir@&$localedir&g
22267 s&@mandir@&$mandir&g
22268 s&\\\${datarootdir}&$datarootdir&g' ;;
22272 # Neutralize VPATH when `$srcdir' = `.'.
22273 # Shell code in configure.ac might set extrasub.
22274 # FIXME: do we really want to maintain this feature?
22275 cat >>$CONFIG_STATUS <<_ACEOF
22279 cat >>$CONFIG_STATUS <<\_ACEOF
22281 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22282 s&@configure_input@&$configure_input&;t t
22283 s&@top_builddir@&$ac_top_builddir_sub&;t t
22284 s&@srcdir@&$ac_srcdir&;t t
22285 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22286 s&@top_srcdir@&$ac_top_srcdir&;t t
22287 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22288 s&@builddir@&$ac_builddir&;t t
22289 s&@abs_builddir@&$ac_abs_builddir&;t t
22290 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22291 s&@INSTALL@&$ac_INSTALL&;t t
22292 $ac_datarootdir_hack
22293 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22295 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22296 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22297 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22298 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22299 which seems to be undefined. Please make sure it is defined." >&5
22300 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22301 which seems to be undefined. Please make sure it is defined." >&2;}
22305 -) cat "$tmp/out"; rm -f "$tmp/out";;
22306 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22315 # Transform confdefs.h into a sed script `conftest.defines', that
22316 # substitutes the proper values into config.h.in to produce config.h.
22317 rm -f conftest.defines conftest.tail
22318 # First, append a space to every undef/define line, to ease matching.
22319 echo 's/$/ /' >conftest.defines
22320 # Then, protect against being on the right side of a sed subst, or in
22321 # an unquoted here document, in config.status. If some macros were
22322 # called several times there might be several #defines for the same
22323 # symbol, which is useless. But do not sort them, since the last
22324 # AC_DEFINE must be honored.
22325 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22326 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22327 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22328 # PARAMS is the parameter list in the macro definition--in most cases, it's
22329 # just an empty string.
22330 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22331 ac_dB='\\)[ (].*,\\1define\\2'
22339 s/^[ ]*#[ ]*define[ ][ ]*//
22344 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22345 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22346 ' >>conftest.defines
22348 # Remove the space that was appended to ease matching.
22349 # Then replace #undef with comments. This is necessary, for
22350 # example, in the case of _POSIX_SOURCE, which is predefined and required
22351 # on some systems where configure will not decide to define it.
22352 # (The regexp can be short, since the line contains either #define or #undef.)
22354 s,^[ #]*u.*,/* & */,' >>conftest.defines
22356 # Break up conftest.defines:
22357 ac_max_sed_lines=50
22359 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22360 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22361 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22363 ac_in='$ac_file_inputs'
22364 ac_out='"$tmp/out1"'
22365 ac_nxt='"$tmp/out2"'
22369 # Write a here document:
22370 cat >>$CONFIG_STATUS <<_ACEOF
22371 # First, check the format of the line:
22372 cat >"\$tmp/defines.sed" <<\\CEOF
22373 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22374 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22378 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22380 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22381 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22382 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22383 grep . conftest.tail >/dev/null || break
22384 rm -f conftest.defines
22385 mv conftest.tail conftest.defines
22387 rm -f conftest.defines conftest.tail
22389 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22390 cat >>$CONFIG_STATUS <<\_ACEOF
22391 if test x"$ac_file" != x-; then
22392 echo "/* $configure_input */" >"$tmp/config.h"
22393 cat "$ac_result" >>"$tmp/config.h"
22394 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22395 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22396 echo "$as_me: $ac_file is unchanged" >&6;}
22399 mv "$tmp/config.h" $ac_file
22402 echo "/* $configure_input */"
22408 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22409 echo "$as_me: executing $ac_file commands" >&6;}
22414 case $ac_file$ac_mode in
22415 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22416 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22417 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22418 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22419 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22420 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22421 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22422 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22423 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22424 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22425 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22426 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22427 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22428 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22429 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22430 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22431 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22432 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22433 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22434 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22435 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22436 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22437 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22438 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22439 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22440 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22446 { (exit 0); exit 0; }
22448 chmod +x $CONFIG_STATUS
22449 ac_clean_files=$ac_clean_files_save
22452 # configure is writing to config.log, and then calls config.status.
22453 # config.status does its own redirection, appending to config.log.
22454 # Unfortunately, on DOS this fails, as config.log is still kept open
22455 # by configure, so config.status won't be able to write to it; its
22456 # output is simply discarded. So we exec the FD to /dev/null,
22457 # effectively closing config.log, so it can be properly (re)opened and
22458 # appended to by config.status. When coming back to configure, we
22459 # need to make the FD available again.
22460 if test "$no_create" != yes; then
22462 ac_config_status_args=
22463 test "$silent" = yes &&
22464 ac_config_status_args="$ac_config_status_args --quiet"
22466 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22468 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22469 # would make configure fail if this is the last instruction.
22470 $ac_cs_success || { (exit 1); exit 1; }
22474 # CONFIG_SUBDIRS section.
22476 if test "$no_recursion" != yes; then
22478 # Remove --cache-file and --srcdir arguments so they do not pile up.
22479 ac_sub_configure_args=
22481 eval "set x $ac_configure_args"
22485 if test -n "$ac_prev"; then
22490 -cache-file | --cache-file | --cache-fil | --cache-fi \
22491 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22492 ac_prev=cache_file ;;
22493 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22494 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22497 --config-cache | -C)
22499 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22501 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22509 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22511 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22515 # Always prepend --prefix to ensure using the same prefix
22516 # in subdir configurations.
22517 ac_arg="--prefix=$prefix"
22519 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22521 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22524 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22526 # Do not complain, so a configure script can configure whichever
22527 # parts of a large source tree are present.
22528 test -d "$srcdir/$ac_dir" || continue
22530 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22531 echo "$as_me:$LINENO: $ac_msg" >&5
22535 -*) as_dir=./$as_dir;;
22537 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22541 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22542 *) as_qdir=$as_dir;;
22544 as_dirs="'$as_qdir' $as_dirs"
22545 as_dir=`$as_dirname -- "$as_dir" ||
22546 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22547 X"$as_dir" : 'X\(//\)[^/]' \| \
22548 X"$as_dir" : 'X\(//\)$' \| \
22549 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22551 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22555 /^X\(\/\/\)[^/].*/{
22568 test -d "$as_dir" && break
22570 test -z "$as_dirs" || eval "mkdir $as_dirs"
22571 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22572 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22573 { (exit 1); exit 1; }; }; }
22577 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22579 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22580 # A ".." for each directory in $ac_dir_suffix.
22581 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22582 case $ac_top_builddir_sub in
22583 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22584 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22587 ac_abs_top_builddir=$ac_pwd
22588 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22589 # for backward compatibility:
22590 ac_top_builddir=$ac_top_build_prefix
22593 .) # We are building in place.
22595 ac_top_srcdir=$ac_top_builddir_sub
22596 ac_abs_top_srcdir=$ac_pwd ;;
22597 [\\/]* | ?:[\\/]* ) # Absolute name.
22598 ac_srcdir=$srcdir$ac_dir_suffix;
22599 ac_top_srcdir=$srcdir
22600 ac_abs_top_srcdir=$srcdir ;;
22601 *) # Relative name.
22602 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22603 ac_top_srcdir=$ac_top_build_prefix$srcdir
22604 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22606 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22611 # Check for guested configure; otherwise get Cygnus style configure.
22612 if test -f "$ac_srcdir/configure.gnu"; then
22613 ac_sub_configure=$ac_srcdir/configure.gnu
22614 elif test -f "$ac_srcdir/configure"; then
22615 ac_sub_configure=$ac_srcdir/configure
22616 elif test -f "$ac_srcdir/configure.in"; then
22617 # This should be Cygnus configure.
22618 ac_sub_configure=$ac_aux_dir/configure
22620 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22621 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22625 # The recursion is here.
22626 if test -n "$ac_sub_configure"; then
22627 # Make the cache file name correct relative to the subdirectory.
22628 case $cache_file in
22629 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22630 *) # Relative name.
22631 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22634 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22635 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22636 # The eval makes quoting arguments work.
22637 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22638 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22639 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22640 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22641 { (exit 1); exit 1; }; }