2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.1svn.
5 # Report bugs to <http://llvm.org/bugs/>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 exec 7<&0 </dev/null 6>&1
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
559 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.1svn'
565 PACKAGE_STRING='LLVM 3.1svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
568 ac_unique_file="lib/VMCore/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
573 # include <sys/types.h>
576 # include <sys/stat.h>
587 # if !STDC_HEADERS && HAVE_MEMORY_H
593 # include <strings.h>
596 # include <inttypes.h>
614 program_transform_name
689 ENABLE_EXPENSIVE_CHECKS
705 LLVM_ENUM_ASM_PRINTERS
706 LLVM_ENUM_ASM_PARSERS
707 LLVM_ENUM_DISASSEMBLERS
760 HAVE_LINK_VERSION_SCRIPT
763 CONVENIENCE_LTDL_TRUE
764 CONVENIENCE_LTDL_FALSE
767 NO_MISSING_FIELD_INITIALIZERS
788 ENABLE_VISIBILITY_INLINES_HIDDEN
794 ac_precious_vars='build_alias
805 ac_subdirs_all='projects/llvm-gcc
809 projects/llvm-poolalloc
812 projects/llvm-stacker
820 # Initialize some variables set by options.
822 ac_init_version=false
823 # The variables have the same names as the options, with
824 # dashes changed to underlines.
832 program_transform_name=s,x,x,
840 # Installation directory options.
841 # These are left unexpanded so users can "make install exec_prefix=/foo"
842 # and all the variables that are supposed to be based on exec_prefix
843 # by default will actually change.
844 # Use braces instead of parens because sh, perl, etc. also accept them.
845 # (The list follows the same order as the GNU Coding Standards.)
846 bindir='${exec_prefix}/bin'
847 sbindir='${exec_prefix}/sbin'
848 libexecdir='${exec_prefix}/libexec'
849 datarootdir='${prefix}/share'
850 datadir='${datarootdir}'
851 sysconfdir='${prefix}/etc'
852 sharedstatedir='${prefix}/com'
853 localstatedir='${prefix}/var'
854 includedir='${prefix}/include'
855 oldincludedir='/usr/include'
856 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
857 infodir='${datarootdir}/info'
862 libdir='${exec_prefix}/lib'
863 localedir='${datarootdir}/locale'
864 mandir='${datarootdir}/man'
870 # If the previous option needs an argument, assign it.
871 if test -n "$ac_prev"; then
872 eval $ac_prev=\$ac_option
878 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882 # Accept the important Cygnus configure options, so we can diagnose typos.
884 case $ac_dashdash$ac_option in
888 -bindir | --bindir | --bindi | --bind | --bin | --bi)
890 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
893 -build | --build | --buil | --bui | --bu)
894 ac_prev=build_alias ;;
895 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
896 build_alias=$ac_optarg ;;
898 -cache-file | --cache-file | --cache-fil | --cache-fi \
899 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
900 ac_prev=cache_file ;;
901 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
902 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
903 cache_file=$ac_optarg ;;
906 cache_file=config.cache ;;
908 -datadir | --datadir | --datadi | --datad)
910 -datadir=* | --datadir=* | --datadi=* | --datad=*)
911 datadir=$ac_optarg ;;
913 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
914 | --dataroo | --dataro | --datar)
915 ac_prev=datarootdir ;;
916 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
917 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
918 datarootdir=$ac_optarg ;;
920 -disable-* | --disable-*)
921 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
922 # Reject names that are not valid shell variable names.
923 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
924 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
925 { (exit 1); exit 1; }; }
926 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
927 eval enable_$ac_feature=no ;;
929 -docdir | --docdir | --docdi | --doc | --do)
931 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
934 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
936 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
939 -enable-* | --enable-*)
940 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
941 # Reject names that are not valid shell variable names.
942 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
943 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
944 { (exit 1); exit 1; }; }
945 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
946 eval enable_$ac_feature=\$ac_optarg ;;
948 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
949 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
950 | --exec | --exe | --ex)
951 ac_prev=exec_prefix ;;
952 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
953 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
954 | --exec=* | --exe=* | --ex=*)
955 exec_prefix=$ac_optarg ;;
957 -gas | --gas | --ga | --g)
958 # Obsolete; use --with-gas.
961 -help | --help | --hel | --he | -h)
963 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
964 ac_init_help=recursive ;;
965 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
966 ac_init_help=short ;;
968 -host | --host | --hos | --ho)
969 ac_prev=host_alias ;;
970 -host=* | --host=* | --hos=* | --ho=*)
971 host_alias=$ac_optarg ;;
973 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
975 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
977 htmldir=$ac_optarg ;;
979 -includedir | --includedir | --includedi | --included | --include \
980 | --includ | --inclu | --incl | --inc)
981 ac_prev=includedir ;;
982 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
983 | --includ=* | --inclu=* | --incl=* | --inc=*)
984 includedir=$ac_optarg ;;
986 -infodir | --infodir | --infodi | --infod | --info | --inf)
988 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
989 infodir=$ac_optarg ;;
991 -libdir | --libdir | --libdi | --libd)
993 -libdir=* | --libdir=* | --libdi=* | --libd=*)
996 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
997 | --libexe | --libex | --libe)
998 ac_prev=libexecdir ;;
999 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1000 | --libexe=* | --libex=* | --libe=*)
1001 libexecdir=$ac_optarg ;;
1003 -localedir | --localedir | --localedi | --localed | --locale)
1004 ac_prev=localedir ;;
1005 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006 localedir=$ac_optarg ;;
1008 -localstatedir | --localstatedir | --localstatedi | --localstated \
1009 | --localstate | --localstat | --localsta | --localst | --locals)
1010 ac_prev=localstatedir ;;
1011 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1012 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1013 localstatedir=$ac_optarg ;;
1015 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1017 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1018 mandir=$ac_optarg ;;
1020 -nfp | --nfp | --nf)
1021 # Obsolete; use --without-fp.
1024 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1025 | --no-cr | --no-c | -n)
1028 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1033 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1034 | --oldin | --oldi | --old | --ol | --o)
1035 ac_prev=oldincludedir ;;
1036 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1037 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1038 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1039 oldincludedir=$ac_optarg ;;
1041 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1043 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1044 prefix=$ac_optarg ;;
1046 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1047 | --program-pre | --program-pr | --program-p)
1048 ac_prev=program_prefix ;;
1049 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1050 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1051 program_prefix=$ac_optarg ;;
1053 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1054 | --program-suf | --program-su | --program-s)
1055 ac_prev=program_suffix ;;
1056 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1057 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1058 program_suffix=$ac_optarg ;;
1060 -program-transform-name | --program-transform-name \
1061 | --program-transform-nam | --program-transform-na \
1062 | --program-transform-n | --program-transform- \
1063 | --program-transform | --program-transfor \
1064 | --program-transfo | --program-transf \
1065 | --program-trans | --program-tran \
1066 | --progr-tra | --program-tr | --program-t)
1067 ac_prev=program_transform_name ;;
1068 -program-transform-name=* | --program-transform-name=* \
1069 | --program-transform-nam=* | --program-transform-na=* \
1070 | --program-transform-n=* | --program-transform-=* \
1071 | --program-transform=* | --program-transfor=* \
1072 | --program-transfo=* | --program-transf=* \
1073 | --program-trans=* | --program-tran=* \
1074 | --progr-tra=* | --program-tr=* | --program-t=*)
1075 program_transform_name=$ac_optarg ;;
1077 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1079 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080 pdfdir=$ac_optarg ;;
1082 -psdir | --psdir | --psdi | --psd | --ps)
1084 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088 | -silent | --silent | --silen | --sile | --sil)
1091 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1093 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1095 sbindir=$ac_optarg ;;
1097 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1098 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1099 | --sharedst | --shareds | --shared | --share | --shar \
1101 ac_prev=sharedstatedir ;;
1102 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1103 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1104 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1106 sharedstatedir=$ac_optarg ;;
1108 -site | --site | --sit)
1110 -site=* | --site=* | --sit=*)
1113 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1115 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1116 srcdir=$ac_optarg ;;
1118 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1119 | --syscon | --sysco | --sysc | --sys | --sy)
1120 ac_prev=sysconfdir ;;
1121 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1122 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1123 sysconfdir=$ac_optarg ;;
1125 -target | --target | --targe | --targ | --tar | --ta | --t)
1126 ac_prev=target_alias ;;
1127 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1128 target_alias=$ac_optarg ;;
1130 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1133 -version | --version | --versio | --versi | --vers | -V)
1134 ac_init_version=: ;;
1137 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1138 # Reject names that are not valid shell variable names.
1139 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1140 { echo "$as_me: error: invalid package name: $ac_package" >&2
1141 { (exit 1); exit 1; }; }
1142 ac_package=`echo $ac_package| sed 's/-/_/g'`
1143 eval with_$ac_package=\$ac_optarg ;;
1145 -without-* | --without-*)
1146 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1149 { echo "$as_me: error: invalid package name: $ac_package" >&2
1150 { (exit 1); exit 1; }; }
1151 ac_package=`echo $ac_package | sed 's/-/_/g'`
1152 eval with_$ac_package=no ;;
1155 # Obsolete; use --with-x.
1158 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159 | --x-incl | --x-inc | --x-in | --x-i)
1160 ac_prev=x_includes ;;
1161 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163 x_includes=$ac_optarg ;;
1165 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167 ac_prev=x_libraries ;;
1168 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170 x_libraries=$ac_optarg ;;
1172 -*) { echo "$as_me: error: unrecognized option: $ac_option
1173 Try \`$0 --help' for more information." >&2
1174 { (exit 1); exit 1; }; }
1178 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1179 # Reject names that are not valid shell variable names.
1180 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1181 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1182 { (exit 1); exit 1; }; }
1183 eval $ac_envvar=\$ac_optarg
1184 export $ac_envvar ;;
1187 # FIXME: should be removed in autoconf 3.0.
1188 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1189 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1191 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1197 if test -n "$ac_prev"; then
1198 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1199 { echo "$as_me: error: missing argument to $ac_option" >&2
1200 { (exit 1); exit 1; }; }
1203 # Be sure to have absolute directory names.
1204 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205 datadir sysconfdir sharedstatedir localstatedir includedir \
1206 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207 libdir localedir mandir
1209 eval ac_val=\$$ac_var
1211 [\\/$]* | ?:[\\/]* ) continue;;
1212 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1214 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1215 { (exit 1); exit 1; }; }
1218 # There might be people who depend on the old broken behavior: `$host'
1219 # used to hold the argument of --host etc.
1220 # FIXME: To remove some day.
1223 target=$target_alias
1225 # FIXME: To remove some day.
1226 if test "x$host_alias" != x; then
1227 if test "x$build_alias" = x; then
1228 cross_compiling=maybe
1229 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1230 If a cross compiler is detected then cross compile mode will be used." >&2
1231 elif test "x$build_alias" != "x$host_alias"; then
1237 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1239 test "$silent" = yes && exec 6>/dev/null
1242 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1243 ac_ls_di=`ls -di .` &&
1244 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1245 { echo "$as_me: error: Working directory cannot be determined" >&2
1246 { (exit 1); exit 1; }; }
1247 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1248 { echo "$as_me: error: pwd does not report name of working directory" >&2
1249 { (exit 1); exit 1; }; }
1252 # Find the source files, if location was not specified.
1253 if test -z "$srcdir"; then
1254 ac_srcdir_defaulted=yes
1255 # Try the directory containing this script, then the parent directory.
1256 ac_confdir=`$as_dirname -- "$0" ||
1257 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1258 X"$0" : 'X\(//\)[^/]' \| \
1259 X"$0" : 'X\(//\)$' \| \
1260 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1280 if test ! -r "$srcdir/$ac_unique_file"; then
1284 ac_srcdir_defaulted=no
1286 if test ! -r "$srcdir/$ac_unique_file"; then
1287 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1288 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1289 { (exit 1); exit 1; }; }
1291 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1294 { (exit 1); exit 1; }; }
1296 # When building in place, set srcdir=.
1297 if test "$ac_abs_confdir" = "$ac_pwd"; then
1300 # Remove unnecessary trailing slashes from srcdir.
1301 # Double slashes in file names in object file debugging info
1302 # mess up M-x gdb in Emacs.
1304 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306 for ac_var in $ac_precious_vars; do
1307 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_env_${ac_var}_value=\$${ac_var}
1309 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1314 # Report the --help message.
1316 if test "$ac_init_help" = "long"; then
1317 # Omit some internal or obsolete options to make the list less imposing.
1318 # This message is too long to be a string in the A/UX 3.1 sh.
1320 \`configure' configures LLVM 3.1svn to adapt to many kinds of systems.
1322 Usage: $0 [OPTION]... [VAR=VALUE]...
1324 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325 VAR=VALUE. See below for descriptions of some of the useful variables.
1327 Defaults for the options are specified in brackets.
1330 -h, --help display this help and exit
1331 --help=short display options specific to this package
1332 --help=recursive display the short help of all the included packages
1333 -V, --version display version information and exit
1334 -q, --quiet, --silent do not print \`checking...' messages
1335 --cache-file=FILE cache test results in FILE [disabled]
1336 -C, --config-cache alias for \`--cache-file=config.cache'
1337 -n, --no-create do not create output files
1338 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1340 Installation directories:
1341 --prefix=PREFIX install architecture-independent files in PREFIX
1342 [$ac_default_prefix]
1343 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1346 By default, \`make install' will install all the files in
1347 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1348 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349 for instance \`--prefix=\$HOME'.
1351 For better control, use the options below.
1353 Fine tuning of the installation directories:
1354 --bindir=DIR user executables [EPREFIX/bin]
1355 --sbindir=DIR system admin executables [EPREFIX/sbin]
1356 --libexecdir=DIR program executables [EPREFIX/libexec]
1357 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1358 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1359 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1360 --libdir=DIR object code libraries [EPREFIX/lib]
1361 --includedir=DIR C header files [PREFIX/include]
1362 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1363 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1364 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1365 --infodir=DIR info documentation [DATAROOTDIR/info]
1366 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1367 --mandir=DIR man documentation [DATAROOTDIR/man]
1368 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1369 --htmldir=DIR html documentation [DOCDIR]
1370 --dvidir=DIR dvi documentation [DOCDIR]
1371 --pdfdir=DIR pdf documentation [DOCDIR]
1372 --psdir=DIR ps documentation [DOCDIR]
1378 --build=BUILD configure for building on BUILD [guessed]
1379 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1380 --target=TARGET configure for building compilers for TARGET [HOST]
1384 if test -n "$ac_init_help"; then
1385 case $ac_init_help in
1386 short | recursive ) echo "Configuration of LLVM 3.1svn:";;
1391 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1392 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1393 --enable-polly Use polly if available (default is YES)
1394 --enable-libcpp Use libc++ if available (default is NO)
1395 --enable-optimized Compile with optimizations enabled (default is NO)
1396 --enable-profiling Compile with profiling enabled (default is NO)
1397 --enable-assertions Compile with assertion checks enabled (default is
1399 --enable-expensive-checks
1400 Compile with expensive debug checks enabled (default
1402 --enable-debug-runtime Build runtime libs with debug symbols (default is
1404 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1405 optimization is on and YES if it's off)
1406 --enable-jit Enable Just In Time Compiling (default is YES)
1407 --enable-docs Build documents (default is YES)
1408 --enable-doxygen Build doxygen documentation (default is NO)
1409 --enable-threads Use threads if available (default is YES)
1410 --enable-pthreads Use pthreads if available (default is YES)
1411 --enable-pic Build LLVM with Position Independent Code (default
1413 --enable-shared Build a shared library and link tools against it
1415 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1416 Win32 DLL (default is NO)
1417 --enable-timestamps Enable embedding timestamp information in build
1419 --enable-targets Build specific host targets: all or
1420 target1,target2,... Valid targets are: host, x86,
1421 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1422 xcore, msp430, ptx, cbe, and cpp (default=all)
1423 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1425 --enable-bindings Build specific language bindings:
1426 all,auto,none,{binding-name} (default=auto)
1427 --enable-libffi Check for the presence of libffi (default is NO)
1428 --enable-ltdl-install install libltdl
1431 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1432 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1433 --with-optimize-option Select the compiler options to use for optimized
1435 --with-extra-options Specify additional options to compile LLVM with
1436 --with-extra-ld-options Specify additional options to link LLVM with
1437 --with-ocaml-libdir Specify install location for ocaml bindings (default
1439 --with-clang-srcdir Directory to the out-of-tree Clang source
1440 --with-clang-resource-dir
1441 Relative directory from the Clang binary for
1443 --with-c-include-dirs Colon separated list of directories clang will
1445 --with-cxx-include-root Directory with the libstdc++ headers.
1446 --with-cxx-include-arch Architecture of the libstdc++ headers.
1447 --with-cxx-include-32bit-dir
1448 32 bit multilib dir.
1449 --with-cxx-include-64bit-dir
1450 64 bit multilib directory.
1451 --with-binutils-include Specify path to binutils/include/ containing
1452 plugin-api.h file for gold plugin.
1453 --with-bug-report-url Specify the URL where bug reports should be
1454 submitted (default=http://llvm.org/bugs/)
1455 --with-internal-prefix Installation directory for internal files
1456 --with-tclinclude directory where tcl headers are
1457 --with-udis86=<path> Use udis86 external x86 disassembler library
1458 --with-oprofile=<prefix>
1459 Tell OProfile >= 0.9.4 how to symbolize JIT output
1461 Some influential environment variables:
1462 CC C compiler command
1463 CFLAGS C compiler flags
1464 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1465 nonstandard directory <lib dir>
1466 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1467 you have headers in a nonstandard directory <include dir>
1468 CXX C++ compiler command
1469 CXXFLAGS C++ compiler flags
1472 Use these variables to override the choices made by `configure' or to help
1473 it to find libraries and programs with nonstandard names/locations.
1475 Report bugs to <http://llvm.org/bugs/>.
1480 if test "$ac_init_help" = "recursive"; then
1481 # If there are subdirs, report their specific --help.
1482 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483 test -d "$ac_dir" || continue
1487 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1490 # A ".." for each directory in $ac_dir_suffix.
1491 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1492 case $ac_top_builddir_sub in
1493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1497 ac_abs_top_builddir=$ac_pwd
1498 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499 # for backward compatibility:
1500 ac_top_builddir=$ac_top_build_prefix
1503 .) # We are building in place.
1505 ac_top_srcdir=$ac_top_builddir_sub
1506 ac_abs_top_srcdir=$ac_pwd ;;
1507 [\\/]* | ?:[\\/]* ) # Absolute name.
1508 ac_srcdir=$srcdir$ac_dir_suffix;
1509 ac_top_srcdir=$srcdir
1510 ac_abs_top_srcdir=$srcdir ;;
1512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513 ac_top_srcdir=$ac_top_build_prefix$srcdir
1514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1516 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1518 cd "$ac_dir" || { ac_status=$?; continue; }
1519 # Check for guested configure.
1520 if test -f "$ac_srcdir/configure.gnu"; then
1522 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523 elif test -f "$ac_srcdir/configure"; then
1525 $SHELL "$ac_srcdir/configure" --help=recursive
1527 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1529 cd "$ac_pwd" || { ac_status=$?; break; }
1533 test -n "$ac_init_help" && exit $ac_status
1534 if $ac_init_version; then
1536 LLVM configure 3.1svn
1537 generated by GNU Autoconf 2.60
1539 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1540 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1541 This configure script is free software; the Free Software Foundation
1542 gives unlimited permission to copy, distribute and modify it.
1544 Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
1548 cat >config.log <<_ACEOF
1549 This file contains any messages produced by compilers while
1550 running configure, to aid debugging if configure makes a mistake.
1552 It was created by LLVM $as_me 3.1svn, which was
1553 generated by GNU Autoconf 2.60. Invocation command line was
1565 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1566 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1567 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1568 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1569 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1571 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1572 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1574 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1575 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1576 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1577 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1578 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1579 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1580 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1588 test -z "$as_dir" && as_dir=.
1589 echo "PATH: $as_dir"
1605 # Keep a trace of the command line.
1606 # Strip out --no-create and --no-recursion so they do not pile up.
1607 # Strip out --silent because we don't want to record it for future runs.
1608 # Also quote any args containing shell meta-characters.
1609 # Make two passes to allow for proper duplicate-argument suppression.
1613 ac_must_keep_next=false
1619 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1620 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1621 | -silent | --silent | --silen | --sile | --sil)
1624 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1627 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1629 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1630 if test $ac_must_keep_next = true; then
1631 ac_must_keep_next=false # Got value, back to normal.
1634 *=* | --config-cache | -C | -disable-* | --disable-* \
1635 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1636 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1637 | -with-* | --with-* | -without-* | --without-* | --x)
1638 case "$ac_configure_args0 " in
1639 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1642 -* ) ac_must_keep_next=true ;;
1645 ac_configure_args="$ac_configure_args '$ac_arg'"
1650 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1651 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1653 # When interrupted or exit'd, cleanup temporary files, and complete
1654 # config.log. We remove comments because anyway the quotes in there
1655 # would cause problems or look ugly.
1656 # WARNING: Use '\'' to represent an apostrophe within the trap.
1657 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1658 trap 'exit_status=$?
1659 # Save into config.log some information that might help in debugging.
1664 ## ---------------- ##
1665 ## Cache variables. ##
1666 ## ---------------- ##
1669 # The following way of writing the cache mishandles newlines in values,
1671 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1672 eval ac_val=\$$ac_var
1676 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1677 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1680 _ | IFS | as_nl) ;; #(
1681 *) $as_unset $ac_var ;;
1686 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1687 *${as_nl}ac_space=\ *)
1689 "s/'\''/'\''\\\\'\'''\''/g;
1690 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1693 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1701 ## ----------------- ##
1702 ## Output variables. ##
1703 ## ----------------- ##
1706 for ac_var in $ac_subst_vars
1708 eval ac_val=\$$ac_var
1710 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1712 echo "$ac_var='\''$ac_val'\''"
1716 if test -n "$ac_subst_files"; then
1718 ## ------------------- ##
1719 ## File substitutions. ##
1720 ## ------------------- ##
1723 for ac_var in $ac_subst_files
1725 eval ac_val=\$$ac_var
1727 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1729 echo "$ac_var='\''$ac_val'\''"
1734 if test -s confdefs.h; then
1744 test "$ac_signal" != 0 &&
1745 echo "$as_me: caught signal $ac_signal"
1746 echo "$as_me: exit $exit_status"
1748 rm -f core *.core core.conftest.* &&
1749 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1752 for ac_signal in 1 2 13 15; do
1753 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1757 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1758 rm -f -r conftest* confdefs.h
1760 # Predefined preprocessor variables.
1762 cat >>confdefs.h <<_ACEOF
1763 #define PACKAGE_NAME "$PACKAGE_NAME"
1767 cat >>confdefs.h <<_ACEOF
1768 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1772 cat >>confdefs.h <<_ACEOF
1773 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_STRING "$PACKAGE_STRING"
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1787 # Let the site file select an alternate cache file if it wants to.
1788 # Prefer explicitly selected file to automatically selected ones.
1789 if test -n "$CONFIG_SITE"; then
1790 set x "$CONFIG_SITE"
1791 elif test "x$prefix" != xNONE; then
1792 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1794 set x "$ac_default_prefix/share/config.site" \
1795 "$ac_default_prefix/etc/config.site"
1800 if test -r "$ac_site_file"; then
1801 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1802 echo "$as_me: loading site script $ac_site_file" >&6;}
1803 sed 's/^/| /' "$ac_site_file" >&5
1808 if test -r "$cache_file"; then
1809 # Some versions of bash will fail to source /dev/null (special
1810 # files actually), so we avoid doing that.
1811 if test -f "$cache_file"; then
1812 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1813 echo "$as_me: loading cache $cache_file" >&6;}
1815 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1816 *) . "./$cache_file";;
1820 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1821 echo "$as_me: creating cache $cache_file" >&6;}
1825 # Check that the precious variables saved in the cache have kept the same
1827 ac_cache_corrupted=false
1828 for ac_var in $ac_precious_vars; do
1829 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1830 eval ac_new_set=\$ac_env_${ac_var}_set
1831 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1832 eval ac_new_val=\$ac_env_${ac_var}_value
1833 case $ac_old_set,$ac_new_set in
1835 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1836 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1837 ac_cache_corrupted=: ;;
1839 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1840 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1841 ac_cache_corrupted=: ;;
1844 if test "x$ac_old_val" != "x$ac_new_val"; then
1845 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1846 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1847 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1848 echo "$as_me: former value: $ac_old_val" >&2;}
1849 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1850 echo "$as_me: current value: $ac_new_val" >&2;}
1851 ac_cache_corrupted=:
1854 # Pass precious variables to config.status.
1855 if test "$ac_new_set" = set; then
1857 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1858 *) ac_arg=$ac_var=$ac_new_val ;;
1860 case " $ac_configure_args " in
1861 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1862 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1866 if $ac_cache_corrupted; then
1867 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1868 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1869 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1870 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1871 { (exit 1); exit 1; }; }
1899 ac_cpp='$CPP $CPPFLAGS'
1900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1906 LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
1915 for ac_dir in autoconf "$srcdir"/autoconf; do
1916 if test -f "$ac_dir/install-sh"; then
1918 ac_install_sh="$ac_aux_dir/install-sh -c"
1920 elif test -f "$ac_dir/install.sh"; then
1922 ac_install_sh="$ac_aux_dir/install.sh -c"
1924 elif test -f "$ac_dir/shtool"; then
1926 ac_install_sh="$ac_aux_dir/shtool install -c"
1930 if test -z "$ac_aux_dir"; then
1931 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1932 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1933 { (exit 1); exit 1; }; }
1936 # These three variables are undocumented and unsupported,
1937 # and are intended to be withdrawn in a future Autoconf release.
1938 # They can cause serious problems if a builder's source tree is in a directory
1939 # whose full name contains unusual characters.
1940 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1941 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1942 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1946 if test ${srcdir} != "." ; then
1947 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1948 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1949 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1950 { (exit 1); exit 1; }; }
1955 ac_cpp='$CPP $CPPFLAGS'
1956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1959 if test -n "$ac_tool_prefix"; then
1960 for ac_prog in clang llvm-gcc gcc
1962 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1963 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1966 if test "${ac_cv_prog_CC+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
1969 if test -n "$CC"; then
1970 ac_cv_prog_CC="$CC" # Let the user override the test.
1972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1976 test -z "$as_dir" && as_dir=.
1977 for ac_exec_ext in '' $ac_executable_extensions; do
1978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1979 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1990 if test -n "$CC"; then
1991 { echo "$as_me:$LINENO: result: $CC" >&5
1992 echo "${ECHO_T}$CC" >&6; }
1994 { echo "$as_me:$LINENO: result: no" >&5
1995 echo "${ECHO_T}no" >&6; }
1999 test -n "$CC" && break
2002 if test -z "$CC"; then
2004 for ac_prog in clang llvm-gcc gcc
2006 # Extract the first word of "$ac_prog", so it can be a program name with args.
2007 set dummy $ac_prog; ac_word=$2
2008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2010 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2011 echo $ECHO_N "(cached) $ECHO_C" >&6
2013 if test -n "$ac_ct_CC"; then
2014 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2020 test -z "$as_dir" && as_dir=.
2021 for ac_exec_ext in '' $ac_executable_extensions; do
2022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2023 ac_cv_prog_ac_ct_CC="$ac_prog"
2024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2033 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2034 if test -n "$ac_ct_CC"; then
2035 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2036 echo "${ECHO_T}$ac_ct_CC" >&6; }
2038 { echo "$as_me:$LINENO: result: no" >&5
2039 echo "${ECHO_T}no" >&6; }
2043 test -n "$ac_ct_CC" && break
2046 if test "x$ac_ct_CC" = x; then
2049 case $cross_compiling:$ac_tool_warned in
2051 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2052 whose name does not start with the host triplet. If you think this
2053 configuration is useful to you, please write to autoconf@gnu.org." >&5
2054 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2055 whose name does not start with the host triplet. If you think this
2056 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2057 ac_tool_warned=yes ;;
2064 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2065 See \`config.log' for more details." >&5
2066 echo "$as_me: error: no acceptable C compiler found in \$PATH
2067 See \`config.log' for more details." >&2;}
2068 { (exit 1); exit 1; }; }
2070 # Provide some information about the compiler.
2071 echo "$as_me:$LINENO: checking for C compiler version" >&5
2072 ac_compiler=`set X $ac_compile; echo $2`
2073 { (ac_try="$ac_compiler --version >&5"
2075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2076 *) ac_try_echo=$ac_try;;
2078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2079 (eval "$ac_compiler --version >&5") 2>&5
2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082 (exit $ac_status); }
2083 { (ac_try="$ac_compiler -v >&5"
2085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2086 *) ac_try_echo=$ac_try;;
2088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2089 (eval "$ac_compiler -v >&5") 2>&5
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); }
2093 { (ac_try="$ac_compiler -V >&5"
2095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2096 *) ac_try_echo=$ac_try;;
2098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2099 (eval "$ac_compiler -V >&5") 2>&5
2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); }
2104 cat >conftest.$ac_ext <<_ACEOF
2107 cat confdefs.h >>conftest.$ac_ext
2108 cat >>conftest.$ac_ext <<_ACEOF
2109 /* end confdefs.h. */
2119 ac_clean_files_save=$ac_clean_files
2120 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2121 # Try to create an executable without -o first, disregard a.out.
2122 # It will help us diagnose broken compilers, and finding out an intuition
2124 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2125 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2126 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2128 # List of possible output files, starting from the most likely.
2129 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2130 # only as a last resort. b.out is created by i960 compilers.
2131 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2133 # The IRIX 6 linker writes into existing files which may not be
2134 # executable, retaining their permissions. Remove them first so a
2135 # subsequent execution test works.
2137 for ac_file in $ac_files
2140 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2141 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2146 if { (ac_try="$ac_link_default"
2148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2149 *) ac_try_echo=$ac_try;;
2151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2152 (eval "$ac_link_default") 2>&5
2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); }; then
2156 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2157 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2158 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2159 # so that the user can short-circuit this test for compilers unknown to
2161 for ac_file in $ac_files
2163 test -f "$ac_file" || continue
2165 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2168 # We found the default executable, but exeext='' is most
2172 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2174 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2176 # We set ac_cv_exeext here because the later test for it is not
2177 # safe: cross compilers may not add the suffix if given an `-o'
2178 # argument, so we may need to know it at that point already.
2179 # Even if this section looks crufty: it has the advantage of
2186 test "$ac_cv_exeext" = no && ac_cv_exeext=
2189 echo "$as_me: failed program was:" >&5
2190 sed 's/^/| /' conftest.$ac_ext >&5
2192 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2193 See \`config.log' for more details." >&5
2194 echo "$as_me: error: C compiler cannot create executables
2195 See \`config.log' for more details." >&2;}
2196 { (exit 77); exit 77; }; }
2199 ac_exeext=$ac_cv_exeext
2200 { echo "$as_me:$LINENO: result: $ac_file" >&5
2201 echo "${ECHO_T}$ac_file" >&6; }
2203 # Check that the compiler produces executables we can run. If not, either
2204 # the compiler is broken, or we cross compile.
2205 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2206 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2207 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2208 # If not cross compiling, check that we can run a simple program.
2209 if test "$cross_compiling" != yes; then
2210 if { ac_try='./$ac_file'
2211 { (case "(($ac_try" in
2212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2213 *) ac_try_echo=$ac_try;;
2215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2216 (eval "$ac_try") 2>&5
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; }; then
2222 if test "$cross_compiling" = maybe; then
2225 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2226 If you meant to cross compile, use \`--host'.
2227 See \`config.log' for more details." >&5
2228 echo "$as_me: error: cannot run C compiled programs.
2229 If you meant to cross compile, use \`--host'.
2230 See \`config.log' for more details." >&2;}
2231 { (exit 1); exit 1; }; }
2235 { echo "$as_me:$LINENO: result: yes" >&5
2236 echo "${ECHO_T}yes" >&6; }
2238 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2239 ac_clean_files=$ac_clean_files_save
2240 # Check that the compiler produces executables we can run. If not, either
2241 # the compiler is broken, or we cross compile.
2242 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2243 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2244 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2245 echo "${ECHO_T}$cross_compiling" >&6; }
2247 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2248 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2249 if { (ac_try="$ac_link"
2251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2252 *) ac_try_echo=$ac_try;;
2254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2255 (eval "$ac_link") 2>&5
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; then
2259 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2260 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2261 # work properly (i.e., refer to `conftest.exe'), while it won't with
2263 for ac_file in conftest.exe conftest conftest.*; do
2264 test -f "$ac_file" || continue
2266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2267 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2273 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2274 See \`config.log' for more details." >&5
2275 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2276 See \`config.log' for more details." >&2;}
2277 { (exit 1); exit 1; }; }
2280 rm -f conftest$ac_cv_exeext
2281 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2282 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2284 rm -f conftest.$ac_ext
2285 EXEEXT=$ac_cv_exeext
2287 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2288 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2289 if test "${ac_cv_objext+set}" = set; then
2290 echo $ECHO_N "(cached) $ECHO_C" >&6
2292 cat >conftest.$ac_ext <<_ACEOF
2295 cat confdefs.h >>conftest.$ac_ext
2296 cat >>conftest.$ac_ext <<_ACEOF
2297 /* end confdefs.h. */
2307 rm -f conftest.o conftest.obj
2308 if { (ac_try="$ac_compile"
2310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2311 *) ac_try_echo=$ac_try;;
2313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2314 (eval "$ac_compile") 2>&5
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); }; then
2318 for ac_file in conftest.o conftest.obj conftest.*; do
2319 test -f "$ac_file" || continue;
2321 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2322 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2327 echo "$as_me: failed program was:" >&5
2328 sed 's/^/| /' conftest.$ac_ext >&5
2330 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2331 See \`config.log' for more details." >&5
2332 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2333 See \`config.log' for more details." >&2;}
2334 { (exit 1); exit 1; }; }
2337 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2339 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2340 echo "${ECHO_T}$ac_cv_objext" >&6; }
2341 OBJEXT=$ac_cv_objext
2343 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2344 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2345 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2346 echo $ECHO_N "(cached) $ECHO_C" >&6
2348 cat >conftest.$ac_ext <<_ACEOF
2351 cat confdefs.h >>conftest.$ac_ext
2352 cat >>conftest.$ac_ext <<_ACEOF
2353 /* end confdefs.h. */
2366 rm -f conftest.$ac_objext
2367 if { (ac_try="$ac_compile"
2369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2370 *) ac_try_echo=$ac_try;;
2372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2373 (eval "$ac_compile") 2>conftest.er1
2375 grep -v '^ *+' conftest.er1 >conftest.err
2377 cat conftest.err >&5
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); } &&
2380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2381 { (case "(($ac_try" in
2382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2383 *) ac_try_echo=$ac_try;;
2385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2386 (eval "$ac_try") 2>&5
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); }; } &&
2390 { ac_try='test -s conftest.$ac_objext'
2391 { (case "(($ac_try" in
2392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2393 *) ac_try_echo=$ac_try;;
2395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2396 (eval "$ac_try") 2>&5
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; }; then
2402 echo "$as_me: failed program was:" >&5
2403 sed 's/^/| /' conftest.$ac_ext >&5
2408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2409 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2412 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2413 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2414 GCC=`test $ac_compiler_gnu = yes && echo yes`
2415 ac_test_CFLAGS=${CFLAGS+set}
2416 ac_save_CFLAGS=$CFLAGS
2417 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2418 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2419 if test "${ac_cv_prog_cc_g+set}" = set; then
2420 echo $ECHO_N "(cached) $ECHO_C" >&6
2422 ac_save_c_werror_flag=$ac_c_werror_flag
2423 ac_c_werror_flag=yes
2426 cat >conftest.$ac_ext <<_ACEOF
2429 cat confdefs.h >>conftest.$ac_ext
2430 cat >>conftest.$ac_ext <<_ACEOF
2431 /* end confdefs.h. */
2441 rm -f conftest.$ac_objext
2442 if { (ac_try="$ac_compile"
2444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2445 *) ac_try_echo=$ac_try;;
2447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2448 (eval "$ac_compile") 2>conftest.er1
2450 grep -v '^ *+' conftest.er1 >conftest.err
2452 cat conftest.err >&5
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); } &&
2455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2456 { (case "(($ac_try" in
2457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2458 *) ac_try_echo=$ac_try;;
2460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2461 (eval "$ac_try") 2>&5
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }; } &&
2465 { ac_try='test -s conftest.$ac_objext'
2466 { (case "(($ac_try" in
2467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2468 *) ac_try_echo=$ac_try;;
2470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2471 (eval "$ac_try") 2>&5
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }; }; then
2477 echo "$as_me: failed program was:" >&5
2478 sed 's/^/| /' conftest.$ac_ext >&5
2481 cat >conftest.$ac_ext <<_ACEOF
2484 cat confdefs.h >>conftest.$ac_ext
2485 cat >>conftest.$ac_ext <<_ACEOF
2486 /* end confdefs.h. */
2496 rm -f conftest.$ac_objext
2497 if { (ac_try="$ac_compile"
2499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2500 *) ac_try_echo=$ac_try;;
2502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2503 (eval "$ac_compile") 2>conftest.er1
2505 grep -v '^ *+' conftest.er1 >conftest.err
2507 cat conftest.err >&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); } &&
2510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2511 { (case "(($ac_try" in
2512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2513 *) ac_try_echo=$ac_try;;
2515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2516 (eval "$ac_try") 2>&5
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); }; } &&
2520 { ac_try='test -s conftest.$ac_objext'
2521 { (case "(($ac_try" in
2522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2523 *) ac_try_echo=$ac_try;;
2525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2526 (eval "$ac_try") 2>&5
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }; }; then
2532 echo "$as_me: failed program was:" >&5
2533 sed 's/^/| /' conftest.$ac_ext >&5
2535 ac_c_werror_flag=$ac_save_c_werror_flag
2537 cat >conftest.$ac_ext <<_ACEOF
2540 cat confdefs.h >>conftest.$ac_ext
2541 cat >>conftest.$ac_ext <<_ACEOF
2542 /* end confdefs.h. */
2552 rm -f conftest.$ac_objext
2553 if { (ac_try="$ac_compile"
2555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2556 *) ac_try_echo=$ac_try;;
2558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2559 (eval "$ac_compile") 2>conftest.er1
2561 grep -v '^ *+' conftest.er1 >conftest.err
2563 cat conftest.err >&5
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); } &&
2566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2567 { (case "(($ac_try" in
2568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2569 *) ac_try_echo=$ac_try;;
2571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2572 (eval "$ac_try") 2>&5
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }; } &&
2576 { ac_try='test -s conftest.$ac_objext'
2577 { (case "(($ac_try" in
2578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2579 *) ac_try_echo=$ac_try;;
2581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2582 (eval "$ac_try") 2>&5
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); }; }; then
2588 echo "$as_me: failed program was:" >&5
2589 sed 's/^/| /' conftest.$ac_ext >&5
2594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2601 ac_c_werror_flag=$ac_save_c_werror_flag
2603 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2604 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2605 if test "$ac_test_CFLAGS" = set; then
2606 CFLAGS=$ac_save_CFLAGS
2607 elif test $ac_cv_prog_cc_g = yes; then
2608 if test "$GCC" = yes; then
2614 if test "$GCC" = yes; then
2620 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2621 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2622 if test "${ac_cv_prog_cc_c89+set}" = set; then
2623 echo $ECHO_N "(cached) $ECHO_C" >&6
2625 ac_cv_prog_cc_c89=no
2627 cat >conftest.$ac_ext <<_ACEOF
2630 cat confdefs.h >>conftest.$ac_ext
2631 cat >>conftest.$ac_ext <<_ACEOF
2632 /* end confdefs.h. */
2635 #include <sys/types.h>
2636 #include <sys/stat.h>
2637 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2638 struct buf { int x; };
2639 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2640 static char *e (p, i)
2646 static char *f (char * (*g) (char **, int), char **p, ...)
2651 s = g (p, va_arg (v,int));
2656 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2657 function prototypes and stuff, but not '\xHH' hex character constants.
2658 These don't provoke an error unfortunately, instead are silently treated
2659 as 'x'. The following induces an error, until -std is added to get
2660 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2661 array size at least. It's necessary to write '\x00'==0 to get something
2662 that's true only with -std. */
2663 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2665 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2666 inside strings and character constants. */
2668 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2670 int test (int i, double x);
2671 struct s1 {int (*f) (int a);};
2672 struct s2 {int (*f) (double a);};
2673 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2679 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2684 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2685 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2687 CC="$ac_save_CC $ac_arg"
2688 rm -f conftest.$ac_objext
2689 if { (ac_try="$ac_compile"
2691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2692 *) ac_try_echo=$ac_try;;
2694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2695 (eval "$ac_compile") 2>conftest.er1
2697 grep -v '^ *+' conftest.er1 >conftest.err
2699 cat conftest.err >&5
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); } &&
2702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2703 { (case "(($ac_try" in
2704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705 *) ac_try_echo=$ac_try;;
2707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2708 (eval "$ac_try") 2>&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }; } &&
2712 { ac_try='test -s conftest.$ac_objext'
2713 { (case "(($ac_try" in
2714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715 *) ac_try_echo=$ac_try;;
2717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718 (eval "$ac_try") 2>&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }; }; then
2722 ac_cv_prog_cc_c89=$ac_arg
2724 echo "$as_me: failed program was:" >&5
2725 sed 's/^/| /' conftest.$ac_ext >&5
2730 rm -f core conftest.err conftest.$ac_objext
2731 test "x$ac_cv_prog_cc_c89" != "xno" && break
2733 rm -f conftest.$ac_ext
2738 case "x$ac_cv_prog_cc_c89" in
2740 { echo "$as_me:$LINENO: result: none needed" >&5
2741 echo "${ECHO_T}none needed" >&6; } ;;
2743 { echo "$as_me:$LINENO: result: unsupported" >&5
2744 echo "${ECHO_T}unsupported" >&6; } ;;
2746 CC="$CC $ac_cv_prog_cc_c89"
2747 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2748 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2753 ac_cpp='$CPP $CPPFLAGS'
2754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2759 ac_cpp='$CXXCPP $CPPFLAGS'
2760 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2761 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2762 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2763 if test -z "$CXX"; then
2764 if test -n "$CCC"; then
2767 if test -n "$ac_tool_prefix"; then
2768 for ac_prog in clang++ llvm-g++ g++
2770 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2771 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2772 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2774 if test "${ac_cv_prog_CXX+set}" = set; then
2775 echo $ECHO_N "(cached) $ECHO_C" >&6
2777 if test -n "$CXX"; then
2778 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784 test -z "$as_dir" && as_dir=.
2785 for ac_exec_ext in '' $ac_executable_extensions; do
2786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2787 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 if test -n "$CXX"; then
2799 { echo "$as_me:$LINENO: result: $CXX" >&5
2800 echo "${ECHO_T}$CXX" >&6; }
2802 { echo "$as_me:$LINENO: result: no" >&5
2803 echo "${ECHO_T}no" >&6; }
2807 test -n "$CXX" && break
2810 if test -z "$CXX"; then
2812 for ac_prog in clang++ llvm-g++ g++
2814 # Extract the first word of "$ac_prog", so it can be a program name with args.
2815 set dummy $ac_prog; ac_word=$2
2816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2818 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2819 echo $ECHO_N "(cached) $ECHO_C" >&6
2821 if test -n "$ac_ct_CXX"; then
2822 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828 test -z "$as_dir" && as_dir=.
2829 for ac_exec_ext in '' $ac_executable_extensions; do
2830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2831 ac_cv_prog_ac_ct_CXX="$ac_prog"
2832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2841 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2842 if test -n "$ac_ct_CXX"; then
2843 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2844 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2846 { echo "$as_me:$LINENO: result: no" >&5
2847 echo "${ECHO_T}no" >&6; }
2851 test -n "$ac_ct_CXX" && break
2854 if test "x$ac_ct_CXX" = x; then
2857 case $cross_compiling:$ac_tool_warned in
2859 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2860 whose name does not start with the host triplet. If you think this
2861 configuration is useful to you, please write to autoconf@gnu.org." >&5
2862 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2863 whose name does not start with the host triplet. If you think this
2864 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2865 ac_tool_warned=yes ;;
2873 # Provide some information about the compiler.
2874 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2875 ac_compiler=`set X $ac_compile; echo $2`
2876 { (ac_try="$ac_compiler --version >&5"
2878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879 *) ac_try_echo=$ac_try;;
2881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2882 (eval "$ac_compiler --version >&5") 2>&5
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); }
2886 { (ac_try="$ac_compiler -v >&5"
2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889 *) ac_try_echo=$ac_try;;
2891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2892 (eval "$ac_compiler -v >&5") 2>&5
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }
2896 { (ac_try="$ac_compiler -V >&5"
2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2902 (eval "$ac_compiler -V >&5") 2>&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }
2907 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2908 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2909 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2910 echo $ECHO_N "(cached) $ECHO_C" >&6
2912 cat >conftest.$ac_ext <<_ACEOF
2915 cat confdefs.h >>conftest.$ac_ext
2916 cat >>conftest.$ac_ext <<_ACEOF
2917 /* end confdefs.h. */
2930 rm -f conftest.$ac_objext
2931 if { (ac_try="$ac_compile"
2933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2934 *) ac_try_echo=$ac_try;;
2936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2937 (eval "$ac_compile") 2>conftest.er1
2939 grep -v '^ *+' conftest.er1 >conftest.err
2941 cat conftest.err >&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); } &&
2944 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2945 { (case "(($ac_try" in
2946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947 *) ac_try_echo=$ac_try;;
2949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2950 (eval "$ac_try") 2>&5
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); }; } &&
2954 { ac_try='test -s conftest.$ac_objext'
2955 { (case "(($ac_try" in
2956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2957 *) ac_try_echo=$ac_try;;
2959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2960 (eval "$ac_try") 2>&5
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); }; }; then
2966 echo "$as_me: failed program was:" >&5
2967 sed 's/^/| /' conftest.$ac_ext >&5
2972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2973 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2976 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2977 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2978 GXX=`test $ac_compiler_gnu = yes && echo yes`
2979 ac_test_CXXFLAGS=${CXXFLAGS+set}
2980 ac_save_CXXFLAGS=$CXXFLAGS
2981 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2982 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2983 if test "${ac_cv_prog_cxx_g+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2986 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2987 ac_cxx_werror_flag=yes
2990 cat >conftest.$ac_ext <<_ACEOF
2993 cat confdefs.h >>conftest.$ac_ext
2994 cat >>conftest.$ac_ext <<_ACEOF
2995 /* end confdefs.h. */
3005 rm -f conftest.$ac_objext
3006 if { (ac_try="$ac_compile"
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012 (eval "$ac_compile") 2>conftest.er1
3014 grep -v '^ *+' conftest.er1 >conftest.err
3016 cat conftest.err >&5
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); } &&
3019 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3020 { (case "(($ac_try" in
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025 (eval "$ac_try") 2>&5
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }; } &&
3029 { ac_try='test -s conftest.$ac_objext'
3030 { (case "(($ac_try" in
3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032 *) ac_try_echo=$ac_try;;
3034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3035 (eval "$ac_try") 2>&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }; }; then
3039 ac_cv_prog_cxx_g=yes
3041 echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.$ac_ext >&5
3045 cat >conftest.$ac_ext <<_ACEOF
3048 cat confdefs.h >>conftest.$ac_ext
3049 cat >>conftest.$ac_ext <<_ACEOF
3050 /* end confdefs.h. */
3060 rm -f conftest.$ac_objext
3061 if { (ac_try="$ac_compile"
3063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064 *) ac_try_echo=$ac_try;;
3066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3067 (eval "$ac_compile") 2>conftest.er1
3069 grep -v '^ *+' conftest.er1 >conftest.err
3071 cat conftest.err >&5
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); } &&
3074 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3075 { (case "(($ac_try" in
3076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077 *) ac_try_echo=$ac_try;;
3079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3080 (eval "$ac_try") 2>&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); }; } &&
3084 { ac_try='test -s conftest.$ac_objext'
3085 { (case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090 (eval "$ac_try") 2>&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }; }; then
3096 echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.$ac_ext >&5
3099 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3101 cat >conftest.$ac_ext <<_ACEOF
3104 cat confdefs.h >>conftest.$ac_ext
3105 cat >>conftest.$ac_ext <<_ACEOF
3106 /* end confdefs.h. */
3116 rm -f conftest.$ac_objext
3117 if { (ac_try="$ac_compile"
3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3123 (eval "$ac_compile") 2>conftest.er1
3125 grep -v '^ *+' conftest.er1 >conftest.err
3127 cat conftest.err >&5
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); } &&
3130 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3131 { (case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136 (eval "$ac_try") 2>&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); }; } &&
3140 { ac_try='test -s conftest.$ac_objext'
3141 { (case "(($ac_try" in
3142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143 *) ac_try_echo=$ac_try;;
3145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3146 (eval "$ac_try") 2>&5
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); }; }; then
3150 ac_cv_prog_cxx_g=yes
3152 echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.$ac_ext >&5
3158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3165 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3167 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3168 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3169 if test "$ac_test_CXXFLAGS" = set; then
3170 CXXFLAGS=$ac_save_CXXFLAGS
3171 elif test $ac_cv_prog_cxx_g = yes; then
3172 if test "$GXX" = yes; then
3178 if test "$GXX" = yes; then
3185 ac_cpp='$CPP $CPPFLAGS'
3186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3191 ac_cpp='$CPP $CPPFLAGS'
3192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3195 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3196 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3197 # On Suns, sometimes $CPP names a directory.
3198 if test -n "$CPP" && test -d "$CPP"; then
3201 if test -z "$CPP"; then
3202 if test "${ac_cv_prog_CPP+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 # Double quotes because CPP needs to be expanded
3206 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3209 for ac_c_preproc_warn_flag in '' yes
3211 # Use a header file that comes with gcc, so configuring glibc
3212 # with a fresh cross-compiler works.
3213 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3214 # <limits.h> exists even on freestanding compilers.
3215 # On the NeXT, cc -E runs the code through the compiler's parser,
3216 # not just through cpp. "Syntax error" is here to catch this case.
3217 cat >conftest.$ac_ext <<_ACEOF
3220 cat confdefs.h >>conftest.$ac_ext
3221 cat >>conftest.$ac_ext <<_ACEOF
3222 /* end confdefs.h. */
3224 # include <limits.h>
3226 # include <assert.h>
3230 if { (ac_try="$ac_cpp conftest.$ac_ext"
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3236 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3238 grep -v '^ *+' conftest.er1 >conftest.err
3240 cat conftest.err >&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); } >/dev/null; then
3243 if test -s conftest.err; then
3244 ac_cpp_err=$ac_c_preproc_warn_flag
3245 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3252 if test -z "$ac_cpp_err"; then
3255 echo "$as_me: failed program was:" >&5
3256 sed 's/^/| /' conftest.$ac_ext >&5
3258 # Broken: fails on valid input.
3262 rm -f conftest.err conftest.$ac_ext
3264 # OK, works on sane cases. Now check whether nonexistent headers
3265 # can be detected and how.
3266 cat >conftest.$ac_ext <<_ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h. */
3272 #include <ac_nonexistent.h>
3274 if { (ac_try="$ac_cpp conftest.$ac_ext"
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3282 grep -v '^ *+' conftest.er1 >conftest.err
3284 cat conftest.err >&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); } >/dev/null; then
3287 if test -s conftest.err; then
3288 ac_cpp_err=$ac_c_preproc_warn_flag
3289 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3296 if test -z "$ac_cpp_err"; then
3297 # Broken: success on invalid input.
3300 echo "$as_me: failed program was:" >&5
3301 sed 's/^/| /' conftest.$ac_ext >&5
3303 # Passes both tests.
3308 rm -f conftest.err conftest.$ac_ext
3311 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3312 rm -f conftest.err conftest.$ac_ext
3313 if $ac_preproc_ok; then
3325 { echo "$as_me:$LINENO: result: $CPP" >&5
3326 echo "${ECHO_T}$CPP" >&6; }
3328 for ac_c_preproc_warn_flag in '' yes
3330 # Use a header file that comes with gcc, so configuring glibc
3331 # with a fresh cross-compiler works.
3332 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3333 # <limits.h> exists even on freestanding compilers.
3334 # On the NeXT, cc -E runs the code through the compiler's parser,
3335 # not just through cpp. "Syntax error" is here to catch this case.
3336 cat >conftest.$ac_ext <<_ACEOF
3339 cat confdefs.h >>conftest.$ac_ext
3340 cat >>conftest.$ac_ext <<_ACEOF
3341 /* end confdefs.h. */
3343 # include <limits.h>
3345 # include <assert.h>
3349 if { (ac_try="$ac_cpp conftest.$ac_ext"
3351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352 *) ac_try_echo=$ac_try;;
3354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3355 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3357 grep -v '^ *+' conftest.er1 >conftest.err
3359 cat conftest.err >&5
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); } >/dev/null; then
3362 if test -s conftest.err; then
3363 ac_cpp_err=$ac_c_preproc_warn_flag
3364 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3371 if test -z "$ac_cpp_err"; then
3374 echo "$as_me: failed program was:" >&5
3375 sed 's/^/| /' conftest.$ac_ext >&5
3377 # Broken: fails on valid input.
3381 rm -f conftest.err conftest.$ac_ext
3383 # OK, works on sane cases. Now check whether nonexistent headers
3384 # can be detected and how.
3385 cat >conftest.$ac_ext <<_ACEOF
3388 cat confdefs.h >>conftest.$ac_ext
3389 cat >>conftest.$ac_ext <<_ACEOF
3390 /* end confdefs.h. */
3391 #include <ac_nonexistent.h>
3393 if { (ac_try="$ac_cpp conftest.$ac_ext"
3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396 *) ac_try_echo=$ac_try;;
3398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3401 grep -v '^ *+' conftest.er1 >conftest.err
3403 cat conftest.err >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); } >/dev/null; then
3406 if test -s conftest.err; then
3407 ac_cpp_err=$ac_c_preproc_warn_flag
3408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3415 if test -z "$ac_cpp_err"; then
3416 # Broken: success on invalid input.
3419 echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3422 # Passes both tests.
3427 rm -f conftest.err conftest.$ac_ext
3430 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3431 rm -f conftest.err conftest.$ac_ext
3432 if $ac_preproc_ok; then
3435 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3436 See \`config.log' for more details." >&5
3437 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3438 See \`config.log' for more details." >&2;}
3439 { (exit 1); exit 1; }; }
3443 ac_cpp='$CPP $CPPFLAGS'
3444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3451 if test -d ${srcdir}/projects/llvm-gcc ; then
3452 subdirs="$subdirs projects/llvm-gcc"
3456 if test -d ${srcdir}/projects/test-suite ; then
3457 subdirs="$subdirs projects/test-suite"
3461 if test -d ${srcdir}/projects/llvm-test ; then
3462 subdirs="$subdirs projects/llvm-test"
3466 if test -d ${srcdir}/projects/poolalloc ; then
3467 subdirs="$subdirs projects/poolalloc"
3471 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3472 subdirs="$subdirs projects/llvm-poolalloc"
3476 for i in `ls ${srcdir}/projects`
3478 if test -d ${srcdir}/projects/${i} ; then
3480 sample) subdirs="$subdirs projects/sample"
3482 privbracket) subdirs="$subdirs projects/privbracket"
3484 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3486 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3488 llvm-java) subdirs="$subdirs projects/llvm-java"
3490 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3492 safecode) subdirs="$subdirs projects/safecode"
3494 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3503 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3504 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3510 # Check whether --enable-polly was given.
3511 if test "${enable_polly+set}" = set; then
3512 enableval=$enable_polly;
3517 case "$enableval" in
3522 default) ENABLE_POLLY=1
3524 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3525 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3526 { (exit 1); exit 1; }; } ;;
3530 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3533 subdirs="$subdirs tools/polly"
3538 # Make sure we can run config.sub.
3539 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3540 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3541 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3542 { (exit 1); exit 1; }; }
3544 { echo "$as_me:$LINENO: checking build system type" >&5
3545 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3546 if test "${ac_cv_build+set}" = set; then
3547 echo $ECHO_N "(cached) $ECHO_C" >&6
3549 ac_build_alias=$build_alias
3550 test "x$ac_build_alias" = x &&
3551 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3552 test "x$ac_build_alias" = x &&
3553 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3554 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3555 { (exit 1); exit 1; }; }
3556 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3557 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3558 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3559 { (exit 1); exit 1; }; }
3562 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3563 echo "${ECHO_T}$ac_cv_build" >&6; }
3564 case $ac_cv_build in
3566 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3567 echo "$as_me: error: invalid value of canonical build" >&2;}
3568 { (exit 1); exit 1; }; };;
3571 ac_save_IFS=$IFS; IFS='-'
3577 # Remember, the first character of IFS is used to create $*,
3578 # except with old shells:
3581 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3584 { echo "$as_me:$LINENO: checking host system type" >&5
3585 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3586 if test "${ac_cv_host+set}" = set; then
3587 echo $ECHO_N "(cached) $ECHO_C" >&6
3589 if test "x$host_alias" = x; then
3590 ac_cv_host=$ac_cv_build
3592 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3593 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3594 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3595 { (exit 1); exit 1; }; }
3599 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3600 echo "${ECHO_T}$ac_cv_host" >&6; }
3603 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3604 echo "$as_me: error: invalid value of canonical host" >&2;}
3605 { (exit 1); exit 1; }; };;
3608 ac_save_IFS=$IFS; IFS='-'
3614 # Remember, the first character of IFS is used to create $*,
3615 # except with old shells:
3618 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3621 { echo "$as_me:$LINENO: checking target system type" >&5
3622 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3623 if test "${ac_cv_target+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3626 if test "x$target_alias" = x; then
3627 ac_cv_target=$ac_cv_host
3629 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3630 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3631 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3632 { (exit 1); exit 1; }; }
3636 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3637 echo "${ECHO_T}$ac_cv_target" >&6; }
3638 case $ac_cv_target in
3640 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3641 echo "$as_me: error: invalid value of canonical target" >&2;}
3642 { (exit 1); exit 1; }; };;
3644 target=$ac_cv_target
3645 ac_save_IFS=$IFS; IFS='-'
3651 # Remember, the first character of IFS is used to create $*,
3652 # except with old shells:
3655 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3658 # The aliases save the names the user supplied, while $host etc.
3659 # will get canonicalized.
3660 test -n "$target_alias" &&
3661 test "$program_prefix$program_suffix$program_transform_name" = \
3663 program_prefix=${target_alias}-
3665 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3666 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3667 if test "${llvm_cv_os_type+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3672 llvm_cv_link_all_option="-Wl,--whole-archive"
3673 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3674 llvm_cv_os_type="AIX"
3675 llvm_cv_platform_type="Unix" ;;
3677 llvm_cv_link_all_option="-Wl,--whole-archive"
3678 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3679 llvm_cv_os_type="IRIX"
3680 llvm_cv_platform_type="Unix" ;;
3682 llvm_cv_link_all_option="-Wl,--whole-archive"
3683 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3684 llvm_cv_os_type="Cygwin"
3685 llvm_cv_platform_type="Unix" ;;
3687 llvm_cv_link_all_option="-Wl,-all_load"
3688 llvm_cv_no_link_all_option="-Wl,-noall_load"
3689 llvm_cv_os_type="Darwin"
3690 llvm_cv_platform_type="Unix" ;;
3692 llvm_cv_link_all_option="-Wl,-all_load"
3693 llvm_cv_no_link_all_option="-Wl,-noall_load"
3694 llvm_cv_os_type="Minix"
3695 llvm_cv_platform_type="Unix" ;;
3696 *-*-freebsd* | *-*-kfreebsd-gnu)
3697 llvm_cv_link_all_option="-Wl,--whole-archive"
3698 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3699 llvm_cv_os_type="FreeBSD"
3700 llvm_cv_platform_type="Unix" ;;
3702 llvm_cv_link_all_option="-Wl,--whole-archive"
3703 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3704 llvm_cv_os_type="OpenBSD"
3705 llvm_cv_platform_type="Unix" ;;
3707 llvm_cv_link_all_option="-Wl,--whole-archive"
3708 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3709 llvm_cv_os_type="NetBSD"
3710 llvm_cv_platform_type="Unix" ;;
3712 llvm_cv_link_all_option="-Wl,--whole-archive"
3713 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3714 llvm_cv_os_type="DragonFly"
3715 llvm_cv_platform_type="Unix" ;;
3717 llvm_cv_link_all_option="-Wl,--whole-archive"
3718 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3719 llvm_cv_os_type="HP-UX"
3720 llvm_cv_platform_type="Unix" ;;
3722 llvm_cv_link_all_option="-Wl,--whole-archive"
3723 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3724 llvm_cv_os_type="Interix"
3725 llvm_cv_platform_type="Unix" ;;
3727 llvm_cv_link_all_option="-Wl,--whole-archive"
3728 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3729 llvm_cv_os_type="Linux"
3730 llvm_cv_platform_type="Unix" ;;
3732 llvm_cv_link_all_option="-Wl,--whole-archive"
3733 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3734 llvm_cv_os_type="GNU"
3735 llvm_cv_platform_type="Unix" ;;
3737 llvm_cv_link_all_option="-Wl,-z,allextract"
3738 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3739 llvm_cv_os_type="SunOS"
3740 llvm_cv_platform_type="Unix" ;;
3742 llvm_cv_link_all_option="-Wl,-z,allextract"
3743 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3744 llvm_cv_os_type="AuroraUX"
3745 llvm_cv_platform_type="Unix" ;;
3747 llvm_cv_link_all_option="-Wl,--whole-archive"
3748 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3749 llvm_cv_os_type="Win32"
3750 llvm_cv_platform_type="Win32" ;;
3752 llvm_cv_link_all_option="-Wl,--whole-archive"
3753 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3754 llvm_cv_os_type="MingW"
3755 llvm_cv_platform_type="Win32" ;;
3757 llvm_cv_link_all_option="-Wl,--whole-archive"
3758 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3759 llvm_cv_os_type="Haiku"
3760 llvm_cv_platform_type="Unix" ;;
3762 llvm_cv_link_all_option="-Wl,--whole-archive"
3763 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3764 llvm_cv_os_type="Freestanding"
3765 llvm_cv_platform_type="Unix" ;;
3767 llvm_cv_link_all_option="-Wl,--whole-archive"
3768 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3769 llvm_cv_os_type="Freestanding"
3770 llvm_cv_platform_type="Unix" ;;
3772 llvm_cv_link_all_option=""
3773 llvm_cv_no_link_all_option=""
3774 llvm_cv_os_type="Unknown"
3775 llvm_cv_platform_type="Unknown" ;;
3778 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3779 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3781 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3782 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3783 if test "${llvm_cv_target_os_type+set}" = set; then
3784 echo $ECHO_N "(cached) $ECHO_C" >&6
3788 llvm_cv_target_os_type="AIX" ;;
3790 llvm_cv_target_os_type="IRIX" ;;
3792 llvm_cv_target_os_type="Cygwin" ;;
3794 llvm_cv_target_os_type="Darwin" ;;
3796 llvm_cv_target_os_type="Minix" ;;
3798 llvm_cv_target_os_type="FreeBSD" ;;
3800 llvm_cv_target_os_type="OpenBSD" ;;
3802 llvm_cv_target_os_type="NetBSD" ;;
3804 llvm_cv_target_os_type="DragonFly" ;;
3806 llvm_cv_target_os_type="HP-UX" ;;
3808 llvm_cv_target_os_type="Interix" ;;
3810 llvm_cv_target_os_type="Linux" ;;
3812 llvm_cv_target_os_type="SunOS" ;;
3814 llvm_cv_target_os_type="AuroraUX" ;;
3816 llvm_cv_target_os_type="Win32" ;;
3818 llvm_cv_target_os_type="MingW" ;;
3820 llvm_cv_target_os_type="Haiku" ;;
3822 llvm_cv_target_os_type="RTEMS" ;;
3824 llvm_cv_target_os_type="NativeClient" ;;
3826 llvm_cv_target_os_type="Freestanding" ;;
3828 llvm_cv_target_os_type="Unknown" ;;
3831 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3832 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3834 if test "$llvm_cv_os_type" = "Unknown" ; then
3835 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3836 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3837 { (exit 1); exit 1; }; }
3842 HOST_OS=$llvm_cv_os_type
3844 TARGET_OS=$llvm_cv_target_os_type
3847 LINKALL=$llvm_cv_link_all_option
3849 NOLINKALL=$llvm_cv_no_link_all_option
3852 case $llvm_cv_platform_type in
3855 cat >>confdefs.h <<\_ACEOF
3856 #define LLVM_ON_UNIX 1
3866 cat >>confdefs.h <<\_ACEOF
3867 #define LLVM_ON_WIN32 1
3877 { echo "$as_me:$LINENO: checking target architecture" >&5
3878 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3879 if test "${llvm_cv_target_arch+set}" = set; then
3880 echo $ECHO_N "(cached) $ECHO_C" >&6
3883 i?86-*) llvm_cv_target_arch="x86" ;;
3884 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3885 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3886 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3887 arm*-*) llvm_cv_target_arch="ARM" ;;
3888 mips-*) llvm_cv_target_arch="Mips" ;;
3889 mipsel-*) llvm_cv_target_arch="Mips" ;;
3890 xcore-*) llvm_cv_target_arch="XCore" ;;
3891 msp430-*) llvm_cv_target_arch="MSP430" ;;
3892 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
3893 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3894 ptx-*) llvm_cv_target_arch="PTX" ;;
3895 *) llvm_cv_target_arch="Unknown" ;;
3898 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3899 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3901 if test "$llvm_cv_target_arch" = "Unknown" ; then
3902 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3903 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3906 # Determine the LLVM native architecture for the target
3907 case "$llvm_cv_target_arch" in
3908 x86) LLVM_NATIVE_ARCH="X86" ;;
3909 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3910 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3913 ARCH=$llvm_cv_target_arch
3918 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3919 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3920 if test "${ac_cv_path_GREP+set}" = set; then
3921 echo $ECHO_N "(cached) $ECHO_C" >&6
3923 # Extract the first word of "grep ggrep" to use in msg output
3924 if test -z "$GREP"; then
3925 set dummy grep ggrep; ac_prog_name=$2
3926 if test "${ac_cv_path_GREP+set}" = set; then
3927 echo $ECHO_N "(cached) $ECHO_C" >&6
3929 ac_path_GREP_found=false
3930 # Loop through the user's path and test for each of PROGNAME-LIST
3931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3932 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3935 test -z "$as_dir" && as_dir=.
3936 for ac_prog in grep ggrep; do
3937 for ac_exec_ext in '' $ac_executable_extensions; do
3938 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3939 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3940 # Check for GNU ac_path_GREP and select it if it is found.
3941 # Check for GNU $ac_path_GREP
3942 case `"$ac_path_GREP" --version 2>&1` in
3944 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3947 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3950 cat "conftest.in" "conftest.in" >"conftest.tmp"
3951 mv "conftest.tmp" "conftest.in"
3952 cp "conftest.in" "conftest.nl"
3953 echo 'GREP' >> "conftest.nl"
3954 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3955 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3956 ac_count=`expr $ac_count + 1`
3957 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3958 # Best one so far, save it but keep looking for a better one
3959 ac_cv_path_GREP="$ac_path_GREP"
3960 ac_path_GREP_max=$ac_count
3962 # 10*(2^10) chars as input seems more than enough
3963 test $ac_count -gt 10 && break
3965 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3969 $ac_path_GREP_found && break 3
3979 GREP="$ac_cv_path_GREP"
3980 if test -z "$GREP"; then
3981 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3982 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3983 { (exit 1); exit 1; }; }
3987 ac_cv_path_GREP=$GREP
3992 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3993 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3994 GREP="$ac_cv_path_GREP"
3997 { echo "$as_me:$LINENO: checking for egrep" >&5
3998 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3999 if test "${ac_cv_path_EGREP+set}" = set; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4002 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4003 then ac_cv_path_EGREP="$GREP -E"
4005 # Extract the first word of "egrep" to use in msg output
4006 if test -z "$EGREP"; then
4007 set dummy egrep; ac_prog_name=$2
4008 if test "${ac_cv_path_EGREP+set}" = set; then
4009 echo $ECHO_N "(cached) $ECHO_C" >&6
4011 ac_path_EGREP_found=false
4012 # Loop through the user's path and test for each of PROGNAME-LIST
4013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4014 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4017 test -z "$as_dir" && as_dir=.
4018 for ac_prog in egrep; do
4019 for ac_exec_ext in '' $ac_executable_extensions; do
4020 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4021 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4022 # Check for GNU ac_path_EGREP and select it if it is found.
4023 # Check for GNU $ac_path_EGREP
4024 case `"$ac_path_EGREP" --version 2>&1` in
4026 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4029 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4032 cat "conftest.in" "conftest.in" >"conftest.tmp"
4033 mv "conftest.tmp" "conftest.in"
4034 cp "conftest.in" "conftest.nl"
4035 echo 'EGREP' >> "conftest.nl"
4036 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4037 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4038 ac_count=`expr $ac_count + 1`
4039 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4040 # Best one so far, save it but keep looking for a better one
4041 ac_cv_path_EGREP="$ac_path_EGREP"
4042 ac_path_EGREP_max=$ac_count
4044 # 10*(2^10) chars as input seems more than enough
4045 test $ac_count -gt 10 && break
4047 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4051 $ac_path_EGREP_found && break 3
4061 EGREP="$ac_cv_path_EGREP"
4062 if test -z "$EGREP"; then
4063 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4064 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4065 { (exit 1); exit 1; }; }
4069 ac_cv_path_EGREP=$EGREP
4075 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4076 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4077 EGREP="$ac_cv_path_EGREP"
4080 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4081 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4082 if test "${ac_cv_header_stdc+set}" = set; then
4083 echo $ECHO_N "(cached) $ECHO_C" >&6
4085 cat >conftest.$ac_ext <<_ACEOF
4088 cat confdefs.h >>conftest.$ac_ext
4089 cat >>conftest.$ac_ext <<_ACEOF
4090 /* end confdefs.h. */
4104 rm -f conftest.$ac_objext
4105 if { (ac_try="$ac_compile"
4107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4108 *) ac_try_echo=$ac_try;;
4110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4111 (eval "$ac_compile") 2>conftest.er1
4113 grep -v '^ *+' conftest.er1 >conftest.err
4115 cat conftest.err >&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); } &&
4118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4119 { (case "(($ac_try" in
4120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4121 *) ac_try_echo=$ac_try;;
4123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4124 (eval "$ac_try") 2>&5
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); }; } &&
4128 { ac_try='test -s conftest.$ac_objext'
4129 { (case "(($ac_try" in
4130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4131 *) ac_try_echo=$ac_try;;
4133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4134 (eval "$ac_try") 2>&5
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); }; }; then
4138 ac_cv_header_stdc=yes
4140 echo "$as_me: failed program was:" >&5
4141 sed 's/^/| /' conftest.$ac_ext >&5
4143 ac_cv_header_stdc=no
4146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4148 if test $ac_cv_header_stdc = yes; then
4149 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4150 cat >conftest.$ac_ext <<_ACEOF
4153 cat confdefs.h >>conftest.$ac_ext
4154 cat >>conftest.$ac_ext <<_ACEOF
4155 /* end confdefs.h. */
4159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4160 $EGREP "memchr" >/dev/null 2>&1; then
4163 ac_cv_header_stdc=no
4169 if test $ac_cv_header_stdc = yes; then
4170 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4171 cat >conftest.$ac_ext <<_ACEOF
4174 cat confdefs.h >>conftest.$ac_ext
4175 cat >>conftest.$ac_ext <<_ACEOF
4176 /* end confdefs.h. */
4180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4181 $EGREP "free" >/dev/null 2>&1; then
4184 ac_cv_header_stdc=no
4190 if test $ac_cv_header_stdc = yes; then
4191 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4192 if test "$cross_compiling" = yes; then
4195 cat >conftest.$ac_ext <<_ACEOF
4198 cat confdefs.h >>conftest.$ac_ext
4199 cat >>conftest.$ac_ext <<_ACEOF
4200 /* end confdefs.h. */
4203 #if ((' ' & 0x0FF) == 0x020)
4204 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4205 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4207 # define ISLOWER(c) \
4208 (('a' <= (c) && (c) <= 'i') \
4209 || ('j' <= (c) && (c) <= 'r') \
4210 || ('s' <= (c) && (c) <= 'z'))
4211 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4214 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4219 for (i = 0; i < 256; i++)
4220 if (XOR (islower (i), ISLOWER (i))
4221 || toupper (i) != TOUPPER (i))
4226 rm -f conftest$ac_exeext
4227 if { (ac_try="$ac_link"
4229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4230 *) ac_try_echo=$ac_try;;
4232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4233 (eval "$ac_link") 2>&5
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4237 { (case "(($ac_try" in
4238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4239 *) ac_try_echo=$ac_try;;
4241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4242 (eval "$ac_try") 2>&5
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); }; }; then
4248 echo "$as_me: program exited with status $ac_status" >&5
4249 echo "$as_me: failed program was:" >&5
4250 sed 's/^/| /' conftest.$ac_ext >&5
4253 ac_cv_header_stdc=no
4255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4261 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4262 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4263 if test $ac_cv_header_stdc = yes; then
4265 cat >>confdefs.h <<\_ACEOF
4266 #define STDC_HEADERS 1
4271 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4281 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4282 inttypes.h stdint.h unistd.h
4284 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4285 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4288 echo $ECHO_N "(cached) $ECHO_C" >&6
4290 cat >conftest.$ac_ext <<_ACEOF
4293 cat confdefs.h >>conftest.$ac_ext
4294 cat >>conftest.$ac_ext <<_ACEOF
4295 /* end confdefs.h. */
4296 $ac_includes_default
4298 #include <$ac_header>
4300 rm -f conftest.$ac_objext
4301 if { (ac_try="$ac_compile"
4303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4304 *) ac_try_echo=$ac_try;;
4306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4307 (eval "$ac_compile") 2>conftest.er1
4309 grep -v '^ *+' conftest.er1 >conftest.err
4311 cat conftest.err >&5
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); } &&
4314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4315 { (case "(($ac_try" in
4316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4317 *) ac_try_echo=$ac_try;;
4319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4320 (eval "$ac_try") 2>&5
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }; } &&
4324 { ac_try='test -s conftest.$ac_objext'
4325 { (case "(($ac_try" in
4326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4327 *) ac_try_echo=$ac_try;;
4329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4330 (eval "$ac_try") 2>&5
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); }; }; then
4334 eval "$as_ac_Header=yes"
4336 echo "$as_me: failed program was:" >&5
4337 sed 's/^/| /' conftest.$ac_ext >&5
4339 eval "$as_ac_Header=no"
4342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4344 ac_res=`eval echo '${'$as_ac_Header'}'`
4345 { echo "$as_me:$LINENO: result: $ac_res" >&5
4346 echo "${ECHO_T}$ac_res" >&6; }
4347 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4348 cat >>confdefs.h <<_ACEOF
4349 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4357 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4358 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4359 if test "${ac_cv_c_bigendian+set}" = set; then
4360 echo $ECHO_N "(cached) $ECHO_C" >&6
4362 # See if sys/param.h defines the BYTE_ORDER macro.
4363 cat >conftest.$ac_ext <<_ACEOF
4366 cat confdefs.h >>conftest.$ac_ext
4367 cat >>conftest.$ac_ext <<_ACEOF
4368 /* end confdefs.h. */
4369 #include <sys/types.h>
4370 #include <sys/param.h>
4375 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4383 rm -f conftest.$ac_objext
4384 if { (ac_try="$ac_compile"
4386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4387 *) ac_try_echo=$ac_try;;
4389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4390 (eval "$ac_compile") 2>conftest.er1
4392 grep -v '^ *+' conftest.er1 >conftest.err
4394 cat conftest.err >&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); } &&
4397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4398 { (case "(($ac_try" in
4399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4400 *) ac_try_echo=$ac_try;;
4402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4403 (eval "$ac_try") 2>&5
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); }; } &&
4407 { ac_try='test -s conftest.$ac_objext'
4408 { (case "(($ac_try" in
4409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4410 *) ac_try_echo=$ac_try;;
4412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4413 (eval "$ac_try") 2>&5
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); }; }; then
4417 # It does; now see whether it defined to BIG_ENDIAN or not.
4418 cat >conftest.$ac_ext <<_ACEOF
4421 cat confdefs.h >>conftest.$ac_ext
4422 cat >>conftest.$ac_ext <<_ACEOF
4423 /* end confdefs.h. */
4424 #include <sys/types.h>
4425 #include <sys/param.h>
4430 #if BYTE_ORDER != BIG_ENDIAN
4438 rm -f conftest.$ac_objext
4439 if { (ac_try="$ac_compile"
4441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4442 *) ac_try_echo=$ac_try;;
4444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4445 (eval "$ac_compile") 2>conftest.er1
4447 grep -v '^ *+' conftest.er1 >conftest.err
4449 cat conftest.err >&5
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); } &&
4452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4453 { (case "(($ac_try" in
4454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455 *) ac_try_echo=$ac_try;;
4457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4458 (eval "$ac_try") 2>&5
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); }; } &&
4462 { ac_try='test -s conftest.$ac_objext'
4463 { (case "(($ac_try" in
4464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4465 *) ac_try_echo=$ac_try;;
4467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4468 (eval "$ac_try") 2>&5
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); }; }; then
4472 ac_cv_c_bigendian=yes
4474 echo "$as_me: failed program was:" >&5
4475 sed 's/^/| /' conftest.$ac_ext >&5
4477 ac_cv_c_bigendian=no
4480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4482 echo "$as_me: failed program was:" >&5
4483 sed 's/^/| /' conftest.$ac_ext >&5
4485 # It does not; compile a test program.
4486 if test "$cross_compiling" = yes; then
4487 # try to guess the endianness by grepping values into an object file
4488 ac_cv_c_bigendian=unknown
4489 cat >conftest.$ac_ext <<_ACEOF
4492 cat confdefs.h >>conftest.$ac_ext
4493 cat >>conftest.$ac_ext <<_ACEOF
4494 /* end confdefs.h. */
4495 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4496 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4497 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4498 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4499 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4500 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4504 _ascii (); _ebcdic ();
4509 rm -f conftest.$ac_objext
4510 if { (ac_try="$ac_compile"
4512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4513 *) ac_try_echo=$ac_try;;
4515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4516 (eval "$ac_compile") 2>conftest.er1
4518 grep -v '^ *+' conftest.er1 >conftest.err
4520 cat conftest.err >&5
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); } &&
4523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4524 { (case "(($ac_try" in
4525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4526 *) ac_try_echo=$ac_try;;
4528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4529 (eval "$ac_try") 2>&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; } &&
4533 { ac_try='test -s conftest.$ac_objext'
4534 { (case "(($ac_try" in
4535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4536 *) ac_try_echo=$ac_try;;
4538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4539 (eval "$ac_try") 2>&5
4541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542 (exit $ac_status); }; }; then
4543 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4544 ac_cv_c_bigendian=yes
4546 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4547 if test "$ac_cv_c_bigendian" = unknown; then
4548 ac_cv_c_bigendian=no
4550 # finding both strings is unlikely to happen, but who knows?
4551 ac_cv_c_bigendian=unknown
4555 echo "$as_me: failed program was:" >&5
4556 sed 's/^/| /' conftest.$ac_ext >&5
4561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4563 cat >conftest.$ac_ext <<_ACEOF
4566 cat confdefs.h >>conftest.$ac_ext
4567 cat >>conftest.$ac_ext <<_ACEOF
4568 /* end confdefs.h. */
4569 $ac_includes_default
4574 /* Are we little or big endian? From Harbison&Steele. */
4578 char c[sizeof (long int)];
4581 return u.c[sizeof (long int) - 1] == 1;
4587 rm -f conftest$ac_exeext
4588 if { (ac_try="$ac_link"
4590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4591 *) ac_try_echo=$ac_try;;
4593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4594 (eval "$ac_link") 2>&5
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4598 { (case "(($ac_try" in
4599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4600 *) ac_try_echo=$ac_try;;
4602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4603 (eval "$ac_try") 2>&5
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); }; }; then
4607 ac_cv_c_bigendian=no
4609 echo "$as_me: program exited with status $ac_status" >&5
4610 echo "$as_me: failed program was:" >&5
4611 sed 's/^/| /' conftest.$ac_ext >&5
4614 ac_cv_c_bigendian=yes
4616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4624 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4625 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4626 case $ac_cv_c_bigendian in
4634 { { echo "$as_me:$LINENO: error: unknown endianness
4635 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4636 echo "$as_me: error: unknown endianness
4637 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4638 { (exit 1); exit 1; }; } ;;
4642 if test "$cross_compiling" = yes; then
4643 LLVM_CROSS_COMPILING=1
4646 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4647 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4648 if test "${ac_cv_build_exeext+set}" = set; then
4649 echo $ECHO_N "(cached) $ECHO_C" >&6
4651 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4652 ac_cv_build_exeext=.exe
4654 ac_build_prefix=${build_alias}-
4656 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4657 set dummy ${ac_build_prefix}gcc; ac_word=$2
4658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4660 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4661 echo $ECHO_N "(cached) $ECHO_C" >&6
4663 if test -n "$BUILD_CC"; then
4664 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 test -z "$as_dir" && as_dir=.
4671 for ac_exec_ext in '' $ac_executable_extensions; do
4672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4673 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4683 BUILD_CC=$ac_cv_prog_BUILD_CC
4684 if test -n "$BUILD_CC"; then
4685 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4686 echo "${ECHO_T}$BUILD_CC" >&6; }
4688 { echo "$as_me:$LINENO: result: no" >&5
4689 echo "${ECHO_T}no" >&6; }
4693 if test -z "$BUILD_CC"; then
4694 # Extract the first word of "gcc", so it can be a program name with args.
4695 set dummy gcc; ac_word=$2
4696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4698 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4701 if test -n "$BUILD_CC"; then
4702 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 test -z "$as_dir" && as_dir=.
4709 for ac_exec_ext in '' $ac_executable_extensions; do
4710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4711 ac_cv_prog_BUILD_CC="gcc"
4712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4721 BUILD_CC=$ac_cv_prog_BUILD_CC
4722 if test -n "$BUILD_CC"; then
4723 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4724 echo "${ECHO_T}$BUILD_CC" >&6; }
4726 { echo "$as_me:$LINENO: result: no" >&5
4727 echo "${ECHO_T}no" >&6; }
4731 if test -z "$BUILD_CC"; then
4732 # Extract the first word of "cc", so it can be a program name with args.
4733 set dummy cc; ac_word=$2
4734 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4736 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4737 echo $ECHO_N "(cached) $ECHO_C" >&6
4739 if test -n "$BUILD_CC"; then
4740 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 test -z "$as_dir" && as_dir=.
4748 for ac_exec_ext in '' $ac_executable_extensions; do
4749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4750 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4751 ac_prog_rejected=yes
4754 ac_cv_prog_BUILD_CC="cc"
4755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4762 if test $ac_prog_rejected = yes; then
4763 # We found a bogon in the path, so make sure we never use it.
4764 set dummy $ac_cv_prog_BUILD_CC
4766 if test $# != 0; then
4767 # We chose a different compiler from the bogus one.
4768 # However, it has the same basename, so the bogon will be chosen
4769 # first if we set BUILD_CC to just the basename; use the full file name.
4771 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4776 BUILD_CC=$ac_cv_prog_BUILD_CC
4777 if test -n "$BUILD_CC"; then
4778 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4779 echo "${ECHO_T}$BUILD_CC" >&6; }
4781 { echo "$as_me:$LINENO: result: no" >&5
4782 echo "${ECHO_T}no" >&6; }
4788 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4789 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4790 { (exit 1); exit 1; }; }
4791 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4793 echo 'int main () { return 0; }' > conftest.$ac_ext
4795 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4796 (eval $ac_build_link) 2>&5
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); }; then
4800 for file in conftest.*; do
4802 *.c | *.o | *.obj | *.dSYM) ;;
4803 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4807 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4808 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4809 { (exit 1); exit 1; }; }
4812 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4817 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4818 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4819 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4820 ac_build_exeext=$BUILD_EXEEXT
4822 ac_build_prefix=${build_alias}-
4823 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4824 set dummy ${ac_build_prefix}g++; ac_word=$2
4825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4827 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4828 echo $ECHO_N "(cached) $ECHO_C" >&6
4830 if test -n "$BUILD_CXX"; then
4831 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837 test -z "$as_dir" && as_dir=.
4838 for ac_exec_ext in '' $ac_executable_extensions; do
4839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4840 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4850 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4851 if test -n "$BUILD_CXX"; then
4852 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4853 echo "${ECHO_T}$BUILD_CXX" >&6; }
4855 { echo "$as_me:$LINENO: result: no" >&5
4856 echo "${ECHO_T}no" >&6; }
4860 if test -z "$BUILD_CXX"; then
4861 # Extract the first word of "g++", so it can be a program name with args.
4862 set dummy g++; ac_word=$2
4863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4865 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4866 echo $ECHO_N "(cached) $ECHO_C" >&6
4868 if test -n "$BUILD_CXX"; then
4869 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875 test -z "$as_dir" && as_dir=.
4876 for ac_exec_ext in '' $ac_executable_extensions; do
4877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4878 ac_cv_prog_BUILD_CXX="g++"
4879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4888 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4889 if test -n "$BUILD_CXX"; then
4890 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4891 echo "${ECHO_T}$BUILD_CXX" >&6; }
4893 { echo "$as_me:$LINENO: result: no" >&5
4894 echo "${ECHO_T}no" >&6; }
4898 if test -z "$BUILD_CXX"; then
4899 # Extract the first word of "c++", so it can be a program name with args.
4900 set dummy c++; ac_word=$2
4901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4903 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4906 if test -n "$BUILD_CXX"; then
4907 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914 test -z "$as_dir" && as_dir=.
4915 for ac_exec_ext in '' $ac_executable_extensions; do
4916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4917 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4918 ac_prog_rejected=yes
4921 ac_cv_prog_BUILD_CXX="c++"
4922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4929 if test $ac_prog_rejected = yes; then
4930 # We found a bogon in the path, so make sure we never use it.
4931 set dummy $ac_cv_prog_BUILD_CXX
4933 if test $# != 0; then
4934 # We chose a different compiler from the bogus one.
4935 # However, it has the same basename, so the bogon will be chosen
4936 # first if we set BUILD_CXX to just the basename; use the full file name.
4938 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4943 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4944 if test -n "$BUILD_CXX"; then
4945 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4946 echo "${ECHO_T}$BUILD_CXX" >&6; }
4948 { echo "$as_me:$LINENO: result: no" >&5
4949 echo "${ECHO_T}no" >&6; }
4956 LLVM_CROSS_COMPILING=0
4960 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4971 # Check whether --enable-libcpp was given.
4972 if test "${enable_libcpp+set}" = set; then
4973 enableval=$enable_libcpp;
4978 case "$enableval" in
4979 yes) ENABLE_LIBCPP=1
4983 default) ENABLE_LIBCPP=0
4985 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4986 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4987 { (exit 1); exit 1; }; } ;;
4990 # Check whether --enable-optimized was given.
4991 if test "${enable_optimized+set}" = set; then
4992 enableval=$enable_optimized;
4997 if test ${enableval} = "no" ; then
5001 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5005 # Check whether --enable-profiling was given.
5006 if test "${enable_profiling+set}" = set; then
5007 enableval=$enable_profiling;
5012 if test ${enableval} = "no" ; then
5016 ENABLE_PROFILING=ENABLE_PROFILING=1
5020 # Check whether --enable-assertions was given.
5021 if test "${enable_assertions+set}" = set; then
5022 enableval=$enable_assertions;
5027 if test ${enableval} = "yes" ; then
5031 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5035 # Check whether --enable-expensive-checks was given.
5036 if test "${enable_expensive_checks+set}" = set; then
5037 enableval=$enable_expensive_checks;
5042 if test ${enableval} = "yes" ; then
5043 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5045 EXPENSIVE_CHECKS=yes
5048 ENABLE_EXPENSIVE_CHECKS=
5054 # Check whether --enable-debug-runtime was given.
5055 if test "${enable_debug_runtime+set}" = set; then
5056 enableval=$enable_debug_runtime;
5061 if test ${enableval} = "no" ; then
5065 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5069 # Check whether --enable-debug-symbols was given.
5070 if test "${enable_debug_symbols+set}" = set; then
5071 enableval=$enable_debug_symbols;
5076 if test ${enableval} = "no" ; then
5080 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5084 # Check whether --enable-jit was given.
5085 if test "${enable_jit+set}" = set; then
5086 enableval=$enable_jit;
5091 if test ${enableval} = "no"
5096 case "$llvm_cv_target_arch" in
5097 x86) TARGET_HAS_JIT=1
5099 Sparc) TARGET_HAS_JIT=0
5101 PowerPC) TARGET_HAS_JIT=1
5103 x86_64) TARGET_HAS_JIT=1
5105 ARM) TARGET_HAS_JIT=1
5107 Mips) TARGET_HAS_JIT=1
5109 XCore) TARGET_HAS_JIT=0
5111 MSP430) TARGET_HAS_JIT=0
5113 Hexagon) TARGET_HAS_JIT=0
5115 MBlaze) TARGET_HAS_JIT=0
5117 PTX) TARGET_HAS_JIT=0
5124 # Check whether --enable-docs was given.
5125 if test "${enable_docs+set}" = set; then
5126 enableval=$enable_docs;
5131 case "$enableval" in
5136 default) ENABLE_DOCS=1
5138 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5139 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5140 { (exit 1); exit 1; }; } ;;
5143 # Check whether --enable-doxygen was given.
5144 if test "${enable_doxygen+set}" = set; then
5145 enableval=$enable_doxygen;
5150 case "$enableval" in
5151 yes) ENABLE_DOXYGEN=1
5153 no) ENABLE_DOXYGEN=0
5155 default) ENABLE_DOXYGEN=0
5157 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5158 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5159 { (exit 1); exit 1; }; } ;;
5162 # Check whether --enable-threads was given.
5163 if test "${enable_threads+set}" = set; then
5164 enableval=$enable_threads;
5169 case "$enableval" in
5170 yes) LLVM_ENABLE_THREADS=1
5172 no) LLVM_ENABLE_THREADS=0
5174 default) LLVM_ENABLE_THREADS=1
5176 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5177 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5178 { (exit 1); exit 1; }; } ;;
5181 cat >>confdefs.h <<_ACEOF
5182 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5186 # Check whether --enable-pthreads was given.
5187 if test "${enable_pthreads+set}" = set; then
5188 enableval=$enable_pthreads;
5193 case "$enableval" in
5194 yes) ENABLE_PTHREADS=1
5196 no) ENABLE_PTHREADS=0
5198 default) ENABLE_PTHREADS=1
5200 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5201 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5202 { (exit 1); exit 1; }; } ;;
5205 # Check whether --enable-pic was given.
5206 if test "${enable_pic+set}" = set; then
5207 enableval=$enable_pic;
5212 case "$enableval" in
5217 default) ENABLE_PIC=1
5219 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5220 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5221 { (exit 1); exit 1; }; } ;;
5224 cat >>confdefs.h <<_ACEOF
5225 #define ENABLE_PIC $ENABLE_PIC
5229 # Check whether --enable-shared was given.
5230 if test "${enable_shared+set}" = set; then
5231 enableval=$enable_shared;
5236 case "$enableval" in
5237 yes) ENABLE_SHARED=1
5241 default) ENABLE_SHARED=0
5243 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5244 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5245 { (exit 1); exit 1; }; } ;;
5248 # Check whether --enable-embed-stdcxx was given.
5249 if test "${enable_embed_stdcxx+set}" = set; then
5250 enableval=$enable_embed_stdcxx;
5255 case "$enableval" in
5256 yes) ENABLE_EMBED_STDCXX=1
5258 no) ENABLE_EMBED_STDCXX=0
5260 default) ENABLE_EMBED_STDCXX=0
5262 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5263 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5264 { (exit 1); exit 1; }; } ;;
5267 # Check whether --enable-timestamps was given.
5268 if test "${enable_timestamps+set}" = set; then
5269 enableval=$enable_timestamps;
5274 case "$enableval" in
5275 yes) ENABLE_TIMESTAMPS=1
5277 no) ENABLE_TIMESTAMPS=0
5279 default) ENABLE_TIMESTAMPS=1
5281 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5282 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5283 { (exit 1); exit 1; }; } ;;
5286 cat >>confdefs.h <<_ACEOF
5287 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5292 # Check whether --enable-targets was given.
5293 if test "${enable_targets+set}" = set; then
5294 enableval=$enable_targets;
5299 if test "$enableval" = host-only ; then
5302 case "$enableval" in
5303 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CBackend CppBackend MBlaze PTX Hexagon" ;;
5304 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5306 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5307 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5308 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5309 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5310 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5311 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5312 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5313 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5314 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5315 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5316 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5317 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5318 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5319 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5320 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5321 host) case "$llvm_cv_target_arch" in
5322 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5323 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5324 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5325 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5326 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5327 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5328 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5329 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5330 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5331 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5332 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5333 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5334 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5335 echo "$as_me: error: Can not set target to build" >&2;}
5336 { (exit 1); exit 1; }; } ;;
5338 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5339 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5340 { (exit 1); exit 1; }; } ;;
5345 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5348 # Determine whether we are building LLVM support for the native architecture.
5349 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5350 for a_target in $TARGETS_TO_BUILD; do
5351 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5353 cat >>confdefs.h <<_ACEOF
5354 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5357 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5358 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5359 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5360 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5361 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5362 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5365 cat >>confdefs.h <<_ACEOF
5366 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5370 cat >>confdefs.h <<_ACEOF
5371 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5375 cat >>confdefs.h <<_ACEOF
5376 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5380 cat >>confdefs.h <<_ACEOF
5381 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5384 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5386 cat >>confdefs.h <<_ACEOF
5387 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5394 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5395 # target feature def files.
5396 LLVM_ENUM_TARGETS=""
5397 LLVM_ENUM_ASM_PRINTERS=""
5398 LLVM_ENUM_ASM_PARSERS=""
5399 LLVM_ENUM_DISASSEMBLERS=""
5400 for target_to_build in $TARGETS_TO_BUILD; do
5401 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5402 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5403 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5405 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5406 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5408 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5409 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5417 # Check whether --enable-cbe-printf-a was given.
5418 if test "${enable_cbe_printf_a+set}" = set; then
5419 enableval=$enable_cbe_printf_a;
5424 case "$enableval" in
5425 yes) ENABLE_CBE_PRINTF_A=1
5427 no) ENABLE_CBE_PRINTF_A=0
5429 default) ENABLE_CBE_PRINTF_A=1
5431 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5432 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5433 { (exit 1); exit 1; }; } ;;
5436 cat >>confdefs.h <<_ACEOF
5437 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5442 # Check whether --with-optimize-option was given.
5443 if test "${with_optimize_option+set}" = set; then
5444 withval=$with_optimize_option;
5449 { echo "$as_me:$LINENO: checking optimization flags" >&5
5450 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5453 case "$llvm_cv_os_type" in
5454 FreeBSD) optimize_option=-O2 ;;
5455 MingW) optimize_option=-O2 ;;
5456 *) optimize_option=-O3 ;;
5458 *) optimize_option="$withval" ;;
5460 OPTIMIZE_OPTION=$optimize_option
5462 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5463 echo "${ECHO_T}$optimize_option" >&6; }
5466 # Check whether --with-extra-options was given.
5467 if test "${with_extra_options+set}" = set; then
5468 withval=$with_extra_options;
5474 default) EXTRA_OPTIONS= ;;
5475 *) EXTRA_OPTIONS=$withval ;;
5477 EXTRA_OPTIONS=$EXTRA_OPTIONS
5481 # Check whether --with-extra-ld-options was given.
5482 if test "${with_extra_ld_options+set}" = set; then
5483 withval=$with_extra_ld_options;
5489 default) EXTRA_LD_OPTIONS= ;;
5490 *) EXTRA_LD_OPTIONS=$withval ;;
5492 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5495 # Check whether --enable-bindings was given.
5496 if test "${enable_bindings+set}" = set; then
5497 enableval=$enable_bindings;
5502 BINDINGS_TO_BUILD=""
5503 case "$enableval" in
5504 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5505 all ) BINDINGS_TO_BUILD="ocaml" ;;
5506 none | no) BINDINGS_TO_BUILD="" ;;
5507 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5508 case "$a_binding" in
5509 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5510 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5511 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5512 { (exit 1); exit 1; }; } ;;
5519 # Check whether --with-ocaml-libdir was given.
5520 if test "${with_ocaml_libdir+set}" = set; then
5521 withval=$with_ocaml_libdir;
5527 auto) with_ocaml_libdir="$withval" ;;
5528 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5529 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5530 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5531 { (exit 1); exit 1; }; } ;;
5535 # Check whether --with-clang-srcdir was given.
5536 if test "${with_clang_srcdir+set}" = set; then
5537 withval=$with_clang_srcdir;
5543 -) clang_src_root="" ;;
5544 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5545 *) clang_src_root="$ac_pwd/$withval" ;;
5547 CLANG_SRC_ROOT=$clang_src_root
5551 # Check whether --with-clang-resource-dir was given.
5552 if test "${with_clang_resource_dir+set}" = set; then
5553 withval=$with_clang_resource_dir;
5559 cat >>confdefs.h <<_ACEOF
5560 #define CLANG_RESOURCE_DIR "$withval"
5565 # Check whether --with-c-include-dirs was given.
5566 if test "${with_c_include_dirs+set}" = set; then
5567 withval=$with_c_include_dirs;
5573 cat >>confdefs.h <<_ACEOF
5574 #define C_INCLUDE_DIRS "$withval"
5579 # Check whether --with-cxx-include-root was given.
5580 if test "${with_cxx_include_root+set}" = set; then
5581 withval=$with_cxx_include_root;
5587 cat >>confdefs.h <<_ACEOF
5588 #define CXX_INCLUDE_ROOT "$withval"
5593 # Check whether --with-cxx-include-arch was given.
5594 if test "${with_cxx_include_arch+set}" = set; then
5595 withval=$with_cxx_include_arch;
5601 cat >>confdefs.h <<_ACEOF
5602 #define CXX_INCLUDE_ARCH "$withval"
5607 # Check whether --with-cxx-include-32bit-dir was given.
5608 if test "${with_cxx_include_32bit_dir+set}" = set; then
5609 withval=$with_cxx_include_32bit_dir;
5615 cat >>confdefs.h <<_ACEOF
5616 #define CXX_INCLUDE_32BIT_DIR "$withval"
5621 # Check whether --with-cxx-include-64bit-dir was given.
5622 if test "${with_cxx_include_64bit_dir+set}" = set; then
5623 withval=$with_cxx_include_64bit_dir;
5629 cat >>confdefs.h <<_ACEOF
5630 #define CXX_INCLUDE_64BIT_DIR "$withval"
5635 # Check whether --with-binutils-include was given.
5636 if test "${with_binutils_include+set}" = set; then
5637 withval=$with_binutils_include;
5643 default) WITH_BINUTILS_INCDIR=default ;;
5644 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5645 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5646 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5647 { (exit 1); exit 1; }; } ;;
5649 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5650 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5652 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5653 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5654 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5655 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5656 { (exit 1); exit 1; }; };
5661 # Check whether --with-bug-report-url was given.
5662 if test "${with_bug_report_url+set}" = set; then
5663 withval=$with_bug_report_url;
5665 withval="http://llvm.org/bugs/"
5669 cat >>confdefs.h <<_ACEOF
5670 #define BUG_REPORT_URL "$withval"
5674 # Check whether --enable-libffi was given.
5675 if test "${enable_libffi+set}" = set; then
5676 enableval=$enable_libffi; case "$enableval" in
5677 yes) llvm_cv_enable_libffi="yes" ;;
5678 no) llvm_cv_enable_libffi="no" ;;
5679 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5680 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5681 { (exit 1); exit 1; }; } ;;
5684 llvm_cv_enable_libffi=no
5689 # Check whether --with-internal-prefix was given.
5690 if test "${with_internal_prefix+set}" = set; then
5691 withval=$with_internal_prefix;
5696 INTERNAL_PREFIX=$withval
5700 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5701 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5702 if test "${lt_cv_path_NM+set}" = set; then
5703 echo $ECHO_N "(cached) $ECHO_C" >&6
5705 if test -n "$NM"; then
5706 # Let the user override the test.
5709 lt_nm_to_check="${ac_tool_prefix}nm"
5710 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5711 lt_nm_to_check="$lt_nm_to_check nm"
5713 for lt_tmp_nm in $lt_nm_to_check; do
5714 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5715 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5717 test -z "$ac_dir" && ac_dir=.
5718 tmp_nm="$ac_dir/$lt_tmp_nm"
5719 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5720 # Check to see if the nm accepts a BSD-compat flag.
5721 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5722 # nm: unknown option "B" ignored
5723 # Tru64's nm complains that /dev/null is an invalid object file
5724 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5725 */dev/null* | *'Invalid file or object type'*)
5726 lt_cv_path_NM="$tmp_nm -B"
5730 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5732 lt_cv_path_NM="$tmp_nm -p"
5736 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5737 continue # so that we can try to find one that supports BSD flags
5746 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5749 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5750 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5755 { echo "$as_me:$LINENO: checking for GNU make" >&5
5756 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5757 if test "${llvm_cv_gnu_make_command+set}" = set; then
5758 echo $ECHO_N "(cached) $ECHO_C" >&6
5760 llvm_cv_gnu_make_command=''
5761 for a in "$MAKE" make gmake gnumake ; do
5762 if test -z "$a" ; then continue ; fi ;
5763 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5765 llvm_cv_gnu_make_command=$a ;
5770 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5771 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5772 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5776 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5777 echo "${ECHO_T}\"Not found\"" >&6; };
5781 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5782 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5784 if test "$LN_S" = "ln -s"; then
5785 { echo "$as_me:$LINENO: result: yes" >&5
5786 echo "${ECHO_T}yes" >&6; }
5788 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5789 echo "${ECHO_T}no, using $LN_S" >&6; }
5792 # Extract the first word of "cmp", so it can be a program name with args.
5793 set dummy cmp; ac_word=$2
5794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5796 if test "${ac_cv_path_CMP+set}" = set; then
5797 echo $ECHO_N "(cached) $ECHO_C" >&6
5801 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808 test -z "$as_dir" && as_dir=.
5809 for ac_exec_ext in '' $ac_executable_extensions; do
5810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5811 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5819 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5824 if test -n "$CMP"; then
5825 { echo "$as_me:$LINENO: result: $CMP" >&5
5826 echo "${ECHO_T}$CMP" >&6; }
5828 { echo "$as_me:$LINENO: result: no" >&5
5829 echo "${ECHO_T}no" >&6; }
5833 # Extract the first word of "cp", so it can be a program name with args.
5834 set dummy cp; ac_word=$2
5835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5837 if test "${ac_cv_path_CP+set}" = set; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
5842 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5849 test -z "$as_dir" && as_dir=.
5850 for ac_exec_ext in '' $ac_executable_extensions; do
5851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5852 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5860 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5865 if test -n "$CP"; then
5866 { echo "$as_me:$LINENO: result: $CP" >&5
5867 echo "${ECHO_T}$CP" >&6; }
5869 { echo "$as_me:$LINENO: result: no" >&5
5870 echo "${ECHO_T}no" >&6; }
5874 # Extract the first word of "date", so it can be a program name with args.
5875 set dummy date; ac_word=$2
5876 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5878 if test "${ac_cv_path_DATE+set}" = set; then
5879 echo $ECHO_N "(cached) $ECHO_C" >&6
5883 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5890 test -z "$as_dir" && as_dir=.
5891 for ac_exec_ext in '' $ac_executable_extensions; do
5892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5893 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5901 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5905 DATE=$ac_cv_path_DATE
5906 if test -n "$DATE"; then
5907 { echo "$as_me:$LINENO: result: $DATE" >&5
5908 echo "${ECHO_T}$DATE" >&6; }
5910 { echo "$as_me:$LINENO: result: no" >&5
5911 echo "${ECHO_T}no" >&6; }
5915 # Extract the first word of "find", so it can be a program name with args.
5916 set dummy find; ac_word=$2
5917 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5919 if test "${ac_cv_path_FIND+set}" = set; then
5920 echo $ECHO_N "(cached) $ECHO_C" >&6
5924 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931 test -z "$as_dir" && as_dir=.
5932 for ac_exec_ext in '' $ac_executable_extensions; do
5933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5934 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5942 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5946 FIND=$ac_cv_path_FIND
5947 if test -n "$FIND"; then
5948 { echo "$as_me:$LINENO: result: $FIND" >&5
5949 echo "${ECHO_T}$FIND" >&6; }
5951 { echo "$as_me:$LINENO: result: no" >&5
5952 echo "${ECHO_T}no" >&6; }
5956 # Extract the first word of "grep", so it can be a program name with args.
5957 set dummy grep; ac_word=$2
5958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5960 if test "${ac_cv_path_GREP+set}" = set; then
5961 echo $ECHO_N "(cached) $ECHO_C" >&6
5965 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5972 test -z "$as_dir" && as_dir=.
5973 for ac_exec_ext in '' $ac_executable_extensions; do
5974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5975 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5983 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5987 GREP=$ac_cv_path_GREP
5988 if test -n "$GREP"; then
5989 { echo "$as_me:$LINENO: result: $GREP" >&5
5990 echo "${ECHO_T}$GREP" >&6; }
5992 { echo "$as_me:$LINENO: result: no" >&5
5993 echo "${ECHO_T}no" >&6; }
5997 # Extract the first word of "mkdir", so it can be a program name with args.
5998 set dummy mkdir; ac_word=$2
5999 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6001 if test "${ac_cv_path_MKDIR+set}" = set; then
6002 echo $ECHO_N "(cached) $ECHO_C" >&6
6006 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6013 test -z "$as_dir" && as_dir=.
6014 for ac_exec_ext in '' $ac_executable_extensions; do
6015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6016 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6024 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6028 MKDIR=$ac_cv_path_MKDIR
6029 if test -n "$MKDIR"; then
6030 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6031 echo "${ECHO_T}$MKDIR" >&6; }
6033 { echo "$as_me:$LINENO: result: no" >&5
6034 echo "${ECHO_T}no" >&6; }
6038 # Extract the first word of "mv", so it can be a program name with args.
6039 set dummy mv; ac_word=$2
6040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6042 if test "${ac_cv_path_MV+set}" = set; then
6043 echo $ECHO_N "(cached) $ECHO_C" >&6
6047 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6054 test -z "$as_dir" && as_dir=.
6055 for ac_exec_ext in '' $ac_executable_extensions; do
6056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6057 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6065 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6070 if test -n "$MV"; then
6071 { echo "$as_me:$LINENO: result: $MV" >&5
6072 echo "${ECHO_T}$MV" >&6; }
6074 { echo "$as_me:$LINENO: result: no" >&5
6075 echo "${ECHO_T}no" >&6; }
6079 if test -n "$ac_tool_prefix"; then
6080 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6081 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6084 if test "${ac_cv_prog_RANLIB+set}" = set; then
6085 echo $ECHO_N "(cached) $ECHO_C" >&6
6087 if test -n "$RANLIB"; then
6088 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6094 test -z "$as_dir" && as_dir=.
6095 for ac_exec_ext in '' $ac_executable_extensions; do
6096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6097 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6107 RANLIB=$ac_cv_prog_RANLIB
6108 if test -n "$RANLIB"; then
6109 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6110 echo "${ECHO_T}$RANLIB" >&6; }
6112 { echo "$as_me:$LINENO: result: no" >&5
6113 echo "${ECHO_T}no" >&6; }
6118 if test -z "$ac_cv_prog_RANLIB"; then
6119 ac_ct_RANLIB=$RANLIB
6120 # Extract the first word of "ranlib", so it can be a program name with args.
6121 set dummy ranlib; ac_word=$2
6122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6124 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6125 echo $ECHO_N "(cached) $ECHO_C" >&6
6127 if test -n "$ac_ct_RANLIB"; then
6128 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6134 test -z "$as_dir" && as_dir=.
6135 for ac_exec_ext in '' $ac_executable_extensions; do
6136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6137 ac_cv_prog_ac_ct_RANLIB="ranlib"
6138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6147 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6148 if test -n "$ac_ct_RANLIB"; then
6149 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6150 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6152 { echo "$as_me:$LINENO: result: no" >&5
6153 echo "${ECHO_T}no" >&6; }
6156 if test "x$ac_ct_RANLIB" = x; then
6159 case $cross_compiling:$ac_tool_warned in
6161 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6162 whose name does not start with the host triplet. If you think this
6163 configuration is useful to you, please write to autoconf@gnu.org." >&5
6164 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6165 whose name does not start with the host triplet. If you think this
6166 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6167 ac_tool_warned=yes ;;
6169 RANLIB=$ac_ct_RANLIB
6172 RANLIB="$ac_cv_prog_RANLIB"
6175 if test -n "$ac_tool_prefix"; then
6176 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6177 set dummy ${ac_tool_prefix}ar; ac_word=$2
6178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6180 if test "${ac_cv_prog_AR+set}" = set; then
6181 echo $ECHO_N "(cached) $ECHO_C" >&6
6183 if test -n "$AR"; then
6184 ac_cv_prog_AR="$AR" # Let the user override the test.
6186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6190 test -z "$as_dir" && as_dir=.
6191 for ac_exec_ext in '' $ac_executable_extensions; do
6192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6193 ac_cv_prog_AR="${ac_tool_prefix}ar"
6194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6204 if test -n "$AR"; then
6205 { echo "$as_me:$LINENO: result: $AR" >&5
6206 echo "${ECHO_T}$AR" >&6; }
6208 { echo "$as_me:$LINENO: result: no" >&5
6209 echo "${ECHO_T}no" >&6; }
6214 if test -z "$ac_cv_prog_AR"; then
6216 # Extract the first word of "ar", so it can be a program name with args.
6217 set dummy ar; ac_word=$2
6218 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6220 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6221 echo $ECHO_N "(cached) $ECHO_C" >&6
6223 if test -n "$ac_ct_AR"; then
6224 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6230 test -z "$as_dir" && as_dir=.
6231 for ac_exec_ext in '' $ac_executable_extensions; do
6232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6233 ac_cv_prog_ac_ct_AR="ar"
6234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6243 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6244 if test -n "$ac_ct_AR"; then
6245 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6246 echo "${ECHO_T}$ac_ct_AR" >&6; }
6248 { echo "$as_me:$LINENO: result: no" >&5
6249 echo "${ECHO_T}no" >&6; }
6252 if test "x$ac_ct_AR" = x; then
6255 case $cross_compiling:$ac_tool_warned in
6257 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6258 whose name does not start with the host triplet. If you think this
6259 configuration is useful to you, please write to autoconf@gnu.org." >&5
6260 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6261 whose name does not start with the host triplet. If you think this
6262 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6263 ac_tool_warned=yes ;;
6271 # Extract the first word of "rm", so it can be a program name with args.
6272 set dummy rm; ac_word=$2
6273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6275 if test "${ac_cv_path_RM+set}" = set; then
6276 echo $ECHO_N "(cached) $ECHO_C" >&6
6280 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6287 test -z "$as_dir" && as_dir=.
6288 for ac_exec_ext in '' $ac_executable_extensions; do
6289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6290 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6298 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6303 if test -n "$RM"; then
6304 { echo "$as_me:$LINENO: result: $RM" >&5
6305 echo "${ECHO_T}$RM" >&6; }
6307 { echo "$as_me:$LINENO: result: no" >&5
6308 echo "${ECHO_T}no" >&6; }
6312 # Extract the first word of "sed", so it can be a program name with args.
6313 set dummy sed; ac_word=$2
6314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6316 if test "${ac_cv_path_SED+set}" = set; then
6317 echo $ECHO_N "(cached) $ECHO_C" >&6
6321 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328 test -z "$as_dir" && as_dir=.
6329 for ac_exec_ext in '' $ac_executable_extensions; do
6330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6331 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6339 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6344 if test -n "$SED"; then
6345 { echo "$as_me:$LINENO: result: $SED" >&5
6346 echo "${ECHO_T}$SED" >&6; }
6348 { echo "$as_me:$LINENO: result: no" >&5
6349 echo "${ECHO_T}no" >&6; }
6353 # Extract the first word of "tar", so it can be a program name with args.
6354 set dummy tar; ac_word=$2
6355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6357 if test "${ac_cv_path_TAR+set}" = set; then
6358 echo $ECHO_N "(cached) $ECHO_C" >&6
6362 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369 test -z "$as_dir" && as_dir=.
6370 for ac_exec_ext in '' $ac_executable_extensions; do
6371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6372 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6380 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6385 if test -n "$TAR"; then
6386 { echo "$as_me:$LINENO: result: $TAR" >&5
6387 echo "${ECHO_T}$TAR" >&6; }
6389 { echo "$as_me:$LINENO: result: no" >&5
6390 echo "${ECHO_T}no" >&6; }
6394 # Extract the first word of "pwd", so it can be a program name with args.
6395 set dummy pwd; ac_word=$2
6396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6398 if test "${ac_cv_path_BINPWD+set}" = set; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
6403 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6410 test -z "$as_dir" && as_dir=.
6411 for ac_exec_ext in '' $ac_executable_extensions; do
6412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6413 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6421 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6425 BINPWD=$ac_cv_path_BINPWD
6426 if test -n "$BINPWD"; then
6427 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6428 echo "${ECHO_T}$BINPWD" >&6; }
6430 { echo "$as_me:$LINENO: result: no" >&5
6431 echo "${ECHO_T}no" >&6; }
6436 # Extract the first word of "Graphviz", so it can be a program name with args.
6437 set dummy Graphviz; ac_word=$2
6438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6440 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
6445 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6452 test -z "$as_dir" && as_dir=.
6453 for ac_exec_ext in '' $ac_executable_extensions; do
6454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6455 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6463 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6467 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6468 if test -n "$GRAPHVIZ"; then
6469 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6470 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6472 { echo "$as_me:$LINENO: result: no" >&5
6473 echo "${ECHO_T}no" >&6; }
6477 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6479 cat >>confdefs.h <<\_ACEOF
6480 #define HAVE_GRAPHVIZ 1
6483 if test "$llvm_cv_os_type" = "MingW" ; then
6484 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6487 cat >>confdefs.h <<_ACEOF
6488 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6492 # Extract the first word of "dot", so it can be a program name with args.
6493 set dummy dot; ac_word=$2
6494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6496 if test "${ac_cv_path_DOT+set}" = set; then
6497 echo $ECHO_N "(cached) $ECHO_C" >&6
6501 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6508 test -z "$as_dir" && as_dir=.
6509 for ac_exec_ext in '' $ac_executable_extensions; do
6510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6511 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6519 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6524 if test -n "$DOT"; then
6525 { echo "$as_me:$LINENO: result: $DOT" >&5
6526 echo "${ECHO_T}$DOT" >&6; }
6528 { echo "$as_me:$LINENO: result: no" >&5
6529 echo "${ECHO_T}no" >&6; }
6533 if test "$DOT" != "echo dot" ; then
6535 cat >>confdefs.h <<\_ACEOF
6539 if test "$llvm_cv_os_type" = "MingW" ; then
6540 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6543 cat >>confdefs.h <<_ACEOF
6544 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6548 # Extract the first word of "fdp", so it can be a program name with args.
6549 set dummy fdp; ac_word=$2
6550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6552 if test "${ac_cv_path_FDP+set}" = set; then
6553 echo $ECHO_N "(cached) $ECHO_C" >&6
6557 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6564 test -z "$as_dir" && as_dir=.
6565 for ac_exec_ext in '' $ac_executable_extensions; do
6566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6567 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6575 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6580 if test -n "$FDP"; then
6581 { echo "$as_me:$LINENO: result: $FDP" >&5
6582 echo "${ECHO_T}$FDP" >&6; }
6584 { echo "$as_me:$LINENO: result: no" >&5
6585 echo "${ECHO_T}no" >&6; }
6589 if test "$FDP" != "echo fdp" ; then
6591 cat >>confdefs.h <<\_ACEOF
6595 if test "$llvm_cv_os_type" = "MingW" ; then
6596 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6599 cat >>confdefs.h <<_ACEOF
6600 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6604 # Extract the first word of "neato", so it can be a program name with args.
6605 set dummy neato; ac_word=$2
6606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6608 if test "${ac_cv_path_NEATO+set}" = set; then
6609 echo $ECHO_N "(cached) $ECHO_C" >&6
6613 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6620 test -z "$as_dir" && as_dir=.
6621 for ac_exec_ext in '' $ac_executable_extensions; do
6622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6623 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6631 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6635 NEATO=$ac_cv_path_NEATO
6636 if test -n "$NEATO"; then
6637 { echo "$as_me:$LINENO: result: $NEATO" >&5
6638 echo "${ECHO_T}$NEATO" >&6; }
6640 { echo "$as_me:$LINENO: result: no" >&5
6641 echo "${ECHO_T}no" >&6; }
6645 if test "$NEATO" != "echo neato" ; then
6647 cat >>confdefs.h <<\_ACEOF
6648 #define HAVE_NEATO 1
6651 if test "$llvm_cv_os_type" = "MingW" ; then
6652 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6655 cat >>confdefs.h <<_ACEOF
6656 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6660 # Extract the first word of "twopi", so it can be a program name with args.
6661 set dummy twopi; ac_word=$2
6662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6664 if test "${ac_cv_path_TWOPI+set}" = set; then
6665 echo $ECHO_N "(cached) $ECHO_C" >&6
6669 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676 test -z "$as_dir" && as_dir=.
6677 for ac_exec_ext in '' $ac_executable_extensions; do
6678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6679 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6687 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6691 TWOPI=$ac_cv_path_TWOPI
6692 if test -n "$TWOPI"; then
6693 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6694 echo "${ECHO_T}$TWOPI" >&6; }
6696 { echo "$as_me:$LINENO: result: no" >&5
6697 echo "${ECHO_T}no" >&6; }
6701 if test "$TWOPI" != "echo twopi" ; then
6703 cat >>confdefs.h <<\_ACEOF
6704 #define HAVE_TWOPI 1
6707 if test "$llvm_cv_os_type" = "MingW" ; then
6708 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6711 cat >>confdefs.h <<_ACEOF
6712 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6716 # Extract the first word of "circo", so it can be a program name with args.
6717 set dummy circo; ac_word=$2
6718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6720 if test "${ac_cv_path_CIRCO+set}" = set; then
6721 echo $ECHO_N "(cached) $ECHO_C" >&6
6725 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732 test -z "$as_dir" && as_dir=.
6733 for ac_exec_ext in '' $ac_executable_extensions; do
6734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6735 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6743 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6747 CIRCO=$ac_cv_path_CIRCO
6748 if test -n "$CIRCO"; then
6749 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6750 echo "${ECHO_T}$CIRCO" >&6; }
6752 { echo "$as_me:$LINENO: result: no" >&5
6753 echo "${ECHO_T}no" >&6; }
6757 if test "$CIRCO" != "echo circo" ; then
6759 cat >>confdefs.h <<\_ACEOF
6760 #define HAVE_CIRCO 1
6763 if test "$llvm_cv_os_type" = "MingW" ; then
6764 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6767 cat >>confdefs.h <<_ACEOF
6768 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6772 for ac_prog in gv gsview32
6774 # Extract the first word of "$ac_prog", so it can be a program name with args.
6775 set dummy $ac_prog; ac_word=$2
6776 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6778 if test "${ac_cv_path_GV+set}" = set; then
6779 echo $ECHO_N "(cached) $ECHO_C" >&6
6783 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6790 test -z "$as_dir" && as_dir=.
6791 for ac_exec_ext in '' $ac_executable_extensions; do
6792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6793 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6805 if test -n "$GV"; then
6806 { echo "$as_me:$LINENO: result: $GV" >&5
6807 echo "${ECHO_T}$GV" >&6; }
6809 { echo "$as_me:$LINENO: result: no" >&5
6810 echo "${ECHO_T}no" >&6; }
6814 test -n "$GV" && break
6816 test -n "$GV" || GV="echo gv"
6818 if test "$GV" != "echo gv" ; then
6820 cat >>confdefs.h <<\_ACEOF
6824 if test "$llvm_cv_os_type" = "MingW" ; then
6825 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6828 cat >>confdefs.h <<_ACEOF
6829 #define LLVM_PATH_GV "$GV${EXEEXT}"
6833 # Extract the first word of "dotty", so it can be a program name with args.
6834 set dummy dotty; ac_word=$2
6835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6837 if test "${ac_cv_path_DOTTY+set}" = set; then
6838 echo $ECHO_N "(cached) $ECHO_C" >&6
6842 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6849 test -z "$as_dir" && as_dir=.
6850 for ac_exec_ext in '' $ac_executable_extensions; do
6851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6852 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6860 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6864 DOTTY=$ac_cv_path_DOTTY
6865 if test -n "$DOTTY"; then
6866 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6867 echo "${ECHO_T}$DOTTY" >&6; }
6869 { echo "$as_me:$LINENO: result: no" >&5
6870 echo "${ECHO_T}no" >&6; }
6874 if test "$DOTTY" != "echo dotty" ; then
6876 cat >>confdefs.h <<\_ACEOF
6877 #define HAVE_DOTTY 1
6880 if test "$llvm_cv_os_type" = "MingW" ; then
6881 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6884 cat >>confdefs.h <<_ACEOF
6885 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6889 # Extract the first word of "xdot.py", so it can be a program name with args.
6890 set dummy xdot.py; ac_word=$2
6891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6893 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6894 echo $ECHO_N "(cached) $ECHO_C" >&6
6898 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6905 test -z "$as_dir" && as_dir=.
6906 for ac_exec_ext in '' $ac_executable_extensions; do
6907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6908 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6916 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6920 XDOT_PY=$ac_cv_path_XDOT_PY
6921 if test -n "$XDOT_PY"; then
6922 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6923 echo "${ECHO_T}$XDOT_PY" >&6; }
6925 { echo "$as_me:$LINENO: result: no" >&5
6926 echo "${ECHO_T}no" >&6; }
6930 if test "$XDOT_PY" != "echo xdot.py" ; then
6932 cat >>confdefs.h <<\_ACEOF
6933 #define HAVE_XDOT_PY 1
6936 if test "$llvm_cv_os_type" = "MingW" ; then
6937 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6940 cat >>confdefs.h <<_ACEOF
6941 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6947 # Extract the first word of "perl", so it can be a program name with args.
6948 set dummy perl; ac_word=$2
6949 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6951 if test "${ac_cv_path_PERL+set}" = set; then
6952 echo $ECHO_N "(cached) $ECHO_C" >&6
6956 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6963 test -z "$as_dir" && as_dir=.
6964 for ac_exec_ext in '' $ac_executable_extensions; do
6965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6966 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6974 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6978 PERL=$ac_cv_path_PERL
6979 if test -n "$PERL"; then
6980 { echo "$as_me:$LINENO: result: $PERL" >&5
6981 echo "${ECHO_T}$PERL" >&6; }
6983 { echo "$as_me:$LINENO: result: no" >&5
6984 echo "${ECHO_T}no" >&6; }
6988 if test "$PERL" != "none"; then
6989 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6990 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
6991 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
6992 { echo "$as_me:$LINENO: result: yes" >&5
6993 echo "${ECHO_T}yes" >&6; }
6996 { echo "$as_me:$LINENO: result: not found" >&5
6997 echo "${ECHO_T}not found" >&6; }
7002 if test x"$PERL" = xnone; then
7005 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7006 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7007 { (exit 1); exit 1; }; }
7013 # Find a good install program. We prefer a C program (faster),
7014 # so one script is as good as another. But avoid the broken or
7015 # incompatible versions:
7016 # SysV /etc/install, /usr/sbin/install
7017 # SunOS /usr/etc/install
7018 # IRIX /sbin/install
7020 # AmigaOS /C/install, which installs bootblocks on floppy discs
7021 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7022 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7023 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7024 # OS/2's system install, which has a completely different semantic
7025 # ./install, which can be erroneously created by make from ./install.sh.
7026 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7027 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7028 if test -z "$INSTALL"; then
7029 if test "${ac_cv_path_install+set}" = set; then
7030 echo $ECHO_N "(cached) $ECHO_C" >&6
7032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7036 test -z "$as_dir" && as_dir=.
7037 # Account for people who put trailing slashes in PATH elements.
7039 ./ | .// | /cC/* | \
7040 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7041 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7044 # OSF1 and SCO ODT 3.0 have their own names for install.
7045 # Don't use installbsd from OSF since it installs stuff as root
7047 for ac_prog in ginstall scoinst install; do
7048 for ac_exec_ext in '' $ac_executable_extensions; do
7049 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7050 if test $ac_prog = install &&
7051 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7052 # AIX install. It has an incompatible calling convention.
7054 elif test $ac_prog = install &&
7055 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7056 # program-specific install script used by HP pwplus--don't use.
7059 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7072 if test "${ac_cv_path_install+set}" = set; then
7073 INSTALL=$ac_cv_path_install
7075 # As a last resort, use the slow shell script. Don't cache a
7076 # value for INSTALL within a source directory, because that will
7077 # break other packages using the cache if that directory is
7078 # removed, or if the value is a relative name.
7079 INSTALL=$ac_install_sh
7082 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7083 echo "${ECHO_T}$INSTALL" >&6; }
7085 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7086 # It thinks the first close brace ends the variable substitution.
7087 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7089 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7091 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7094 [\\/$]* | ?:[\\/]* ) ;;
7095 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7098 # Extract the first word of "bzip2", so it can be a program name with args.
7099 set dummy bzip2; ac_word=$2
7100 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7102 if test "${ac_cv_path_BZIP2+set}" = set; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
7107 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114 test -z "$as_dir" && as_dir=.
7115 for ac_exec_ext in '' $ac_executable_extensions; do
7116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7117 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7128 BZIP2=$ac_cv_path_BZIP2
7129 if test -n "$BZIP2"; then
7130 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7131 echo "${ECHO_T}$BZIP2" >&6; }
7133 { echo "$as_me:$LINENO: result: no" >&5
7134 echo "${ECHO_T}no" >&6; }
7138 # Extract the first word of "cat", so it can be a program name with args.
7139 set dummy cat; ac_word=$2
7140 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7142 if test "${ac_cv_path_CAT+set}" = set; then
7143 echo $ECHO_N "(cached) $ECHO_C" >&6
7147 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7154 test -z "$as_dir" && as_dir=.
7155 for ac_exec_ext in '' $ac_executable_extensions; do
7156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7157 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7169 if test -n "$CAT"; then
7170 { echo "$as_me:$LINENO: result: $CAT" >&5
7171 echo "${ECHO_T}$CAT" >&6; }
7173 { echo "$as_me:$LINENO: result: no" >&5
7174 echo "${ECHO_T}no" >&6; }
7178 # Extract the first word of "doxygen", so it can be a program name with args.
7179 set dummy doxygen; ac_word=$2
7180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7182 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7183 echo $ECHO_N "(cached) $ECHO_C" >&6
7187 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194 test -z "$as_dir" && as_dir=.
7195 for ac_exec_ext in '' $ac_executable_extensions; do
7196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7197 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7208 DOXYGEN=$ac_cv_path_DOXYGEN
7209 if test -n "$DOXYGEN"; then
7210 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7211 echo "${ECHO_T}$DOXYGEN" >&6; }
7213 { echo "$as_me:$LINENO: result: no" >&5
7214 echo "${ECHO_T}no" >&6; }
7218 # Extract the first word of "groff", so it can be a program name with args.
7219 set dummy groff; ac_word=$2
7220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7222 if test "${ac_cv_path_GROFF+set}" = set; then
7223 echo $ECHO_N "(cached) $ECHO_C" >&6
7227 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7234 test -z "$as_dir" && as_dir=.
7235 for ac_exec_ext in '' $ac_executable_extensions; do
7236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7237 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7248 GROFF=$ac_cv_path_GROFF
7249 if test -n "$GROFF"; then
7250 { echo "$as_me:$LINENO: result: $GROFF" >&5
7251 echo "${ECHO_T}$GROFF" >&6; }
7253 { echo "$as_me:$LINENO: result: no" >&5
7254 echo "${ECHO_T}no" >&6; }
7258 # Extract the first word of "gzip", so it can be a program name with args.
7259 set dummy gzip; ac_word=$2
7260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7262 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7263 echo $ECHO_N "(cached) $ECHO_C" >&6
7267 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274 test -z "$as_dir" && as_dir=.
7275 for ac_exec_ext in '' $ac_executable_extensions; do
7276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7277 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7288 GZIPBIN=$ac_cv_path_GZIPBIN
7289 if test -n "$GZIPBIN"; then
7290 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7291 echo "${ECHO_T}$GZIPBIN" >&6; }
7293 { echo "$as_me:$LINENO: result: no" >&5
7294 echo "${ECHO_T}no" >&6; }
7298 # Extract the first word of "pod2html", so it can be a program name with args.
7299 set dummy pod2html; ac_word=$2
7300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7302 if test "${ac_cv_path_POD2HTML+set}" = set; then
7303 echo $ECHO_N "(cached) $ECHO_C" >&6
7307 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314 test -z "$as_dir" && as_dir=.
7315 for ac_exec_ext in '' $ac_executable_extensions; do
7316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7317 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7328 POD2HTML=$ac_cv_path_POD2HTML
7329 if test -n "$POD2HTML"; then
7330 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7331 echo "${ECHO_T}$POD2HTML" >&6; }
7333 { echo "$as_me:$LINENO: result: no" >&5
7334 echo "${ECHO_T}no" >&6; }
7338 # Extract the first word of "pod2man", so it can be a program name with args.
7339 set dummy pod2man; ac_word=$2
7340 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7342 if test "${ac_cv_path_POD2MAN+set}" = set; then
7343 echo $ECHO_N "(cached) $ECHO_C" >&6
7347 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354 test -z "$as_dir" && as_dir=.
7355 for ac_exec_ext in '' $ac_executable_extensions; do
7356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7357 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7368 POD2MAN=$ac_cv_path_POD2MAN
7369 if test -n "$POD2MAN"; then
7370 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7371 echo "${ECHO_T}$POD2MAN" >&6; }
7373 { echo "$as_me:$LINENO: result: no" >&5
7374 echo "${ECHO_T}no" >&6; }
7378 # Extract the first word of "pdfroff", so it can be a program name with args.
7379 set dummy pdfroff; ac_word=$2
7380 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7382 if test "${ac_cv_path_PDFROFF+set}" = set; then
7383 echo $ECHO_N "(cached) $ECHO_C" >&6
7387 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7394 test -z "$as_dir" && as_dir=.
7395 for ac_exec_ext in '' $ac_executable_extensions; do
7396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7397 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7408 PDFROFF=$ac_cv_path_PDFROFF
7409 if test -n "$PDFROFF"; then
7410 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7411 echo "${ECHO_T}$PDFROFF" >&6; }
7413 { echo "$as_me:$LINENO: result: no" >&5
7414 echo "${ECHO_T}no" >&6; }
7418 # Extract the first word of "runtest", so it can be a program name with args.
7419 set dummy runtest; ac_word=$2
7420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7422 if test "${ac_cv_path_RUNTEST+set}" = set; then
7423 echo $ECHO_N "(cached) $ECHO_C" >&6
7427 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7434 test -z "$as_dir" && as_dir=.
7435 for ac_exec_ext in '' $ac_executable_extensions; do
7436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7437 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7448 RUNTEST=$ac_cv_path_RUNTEST
7449 if test -n "$RUNTEST"; then
7450 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7451 echo "${ECHO_T}$RUNTEST" >&6; }
7453 { echo "$as_me:$LINENO: result: no" >&5
7454 echo "${ECHO_T}no" >&6; }
7460 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7461 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7463 # Check whether --with-tclinclude was given.
7464 if test "${with_tclinclude+set}" = set; then
7465 withval=$with_tclinclude; with_tclinclude=${withval}
7470 if test "${ac_cv_path_tclsh+set}" = set; then
7471 echo $ECHO_N "(cached) $ECHO_C" >&6
7474 if test x"${with_tclinclude}" != x ; then
7475 if test -f ${with_tclinclude}/tclsh ; then
7476 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7477 elif test -f ${with_tclinclude}/src/tclsh ; then
7478 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7480 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7481 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7482 { (exit 1); exit 1; }; }
7488 if test x"${ac_cv_path_tclsh}" = x ; then
7489 { echo "$as_me:$LINENO: result: none" >&5
7490 echo "${ECHO_T}none" >&6; }
7491 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
7493 # Extract the first word of "$ac_prog", so it can be a program name with args.
7494 set dummy $ac_prog; ac_word=$2
7495 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7497 if test "${ac_cv_path_TCLSH+set}" = set; then
7498 echo $ECHO_N "(cached) $ECHO_C" >&6
7502 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7509 test -z "$as_dir" && as_dir=.
7510 for ac_exec_ext in '' $ac_executable_extensions; do
7511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7512 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7523 TCLSH=$ac_cv_path_TCLSH
7524 if test -n "$TCLSH"; then
7525 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7526 echo "${ECHO_T}$TCLSH" >&6; }
7528 { echo "$as_me:$LINENO: result: no" >&5
7529 echo "${ECHO_T}no" >&6; }
7533 test -n "$TCLSH" && break
7536 if test x"${TCLSH}" = x ; then
7537 ac_cv_path_tclsh='';
7539 ac_cv_path_tclsh="${TCLSH}";
7542 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7543 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7544 TCLSH="${ac_cv_path_tclsh}"
7548 # Extract the first word of "zip", so it can be a program name with args.
7549 set dummy zip; ac_word=$2
7550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7552 if test "${ac_cv_path_ZIP+set}" = set; then
7553 echo $ECHO_N "(cached) $ECHO_C" >&6
7557 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7564 test -z "$as_dir" && as_dir=.
7565 for ac_exec_ext in '' $ac_executable_extensions; do
7566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7567 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7579 if test -n "$ZIP"; then
7580 { echo "$as_me:$LINENO: result: $ZIP" >&5
7581 echo "${ECHO_T}$ZIP" >&6; }
7583 { echo "$as_me:$LINENO: result: no" >&5
7584 echo "${ECHO_T}no" >&6; }
7588 for ac_prog in ocamlc
7590 # Extract the first word of "$ac_prog", so it can be a program name with args.
7591 set dummy $ac_prog; ac_word=$2
7592 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7594 if test "${ac_cv_path_OCAMLC+set}" = set; then
7595 echo $ECHO_N "(cached) $ECHO_C" >&6
7599 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7606 test -z "$as_dir" && as_dir=.
7607 for ac_exec_ext in '' $ac_executable_extensions; do
7608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7609 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7620 OCAMLC=$ac_cv_path_OCAMLC
7621 if test -n "$OCAMLC"; then
7622 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7623 echo "${ECHO_T}$OCAMLC" >&6; }
7625 { echo "$as_me:$LINENO: result: no" >&5
7626 echo "${ECHO_T}no" >&6; }
7630 test -n "$OCAMLC" && break
7633 for ac_prog in ocamlopt
7635 # Extract the first word of "$ac_prog", so it can be a program name with args.
7636 set dummy $ac_prog; ac_word=$2
7637 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7639 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7640 echo $ECHO_N "(cached) $ECHO_C" >&6
7644 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7651 test -z "$as_dir" && as_dir=.
7652 for ac_exec_ext in '' $ac_executable_extensions; do
7653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7654 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7665 OCAMLOPT=$ac_cv_path_OCAMLOPT
7666 if test -n "$OCAMLOPT"; then
7667 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7668 echo "${ECHO_T}$OCAMLOPT" >&6; }
7670 { echo "$as_me:$LINENO: result: no" >&5
7671 echo "${ECHO_T}no" >&6; }
7675 test -n "$OCAMLOPT" && break
7678 for ac_prog in ocamldep
7680 # Extract the first word of "$ac_prog", so it can be a program name with args.
7681 set dummy $ac_prog; ac_word=$2
7682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7684 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7685 echo $ECHO_N "(cached) $ECHO_C" >&6
7689 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7696 test -z "$as_dir" && as_dir=.
7697 for ac_exec_ext in '' $ac_executable_extensions; do
7698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7699 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7710 OCAMLDEP=$ac_cv_path_OCAMLDEP
7711 if test -n "$OCAMLDEP"; then
7712 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7713 echo "${ECHO_T}$OCAMLDEP" >&6; }
7715 { echo "$as_me:$LINENO: result: no" >&5
7716 echo "${ECHO_T}no" >&6; }
7720 test -n "$OCAMLDEP" && break
7723 for ac_prog in ocamldoc
7725 # Extract the first word of "$ac_prog", so it can be a program name with args.
7726 set dummy $ac_prog; ac_word=$2
7727 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7729 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7730 echo $ECHO_N "(cached) $ECHO_C" >&6
7734 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741 test -z "$as_dir" && as_dir=.
7742 for ac_exec_ext in '' $ac_executable_extensions; do
7743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7744 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7755 OCAMLDOC=$ac_cv_path_OCAMLDOC
7756 if test -n "$OCAMLDOC"; then
7757 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7758 echo "${ECHO_T}$OCAMLDOC" >&6; }
7760 { echo "$as_me:$LINENO: result: no" >&5
7761 echo "${ECHO_T}no" >&6; }
7765 test -n "$OCAMLDOC" && break
7768 for ac_prog in gas as
7770 # Extract the first word of "$ac_prog", so it can be a program name with args.
7771 set dummy $ac_prog; ac_word=$2
7772 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7774 if test "${ac_cv_path_GAS+set}" = set; then
7775 echo $ECHO_N "(cached) $ECHO_C" >&6
7779 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7786 test -z "$as_dir" && as_dir=.
7787 for ac_exec_ext in '' $ac_executable_extensions; do
7788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7789 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7801 if test -n "$GAS"; then
7802 { echo "$as_me:$LINENO: result: $GAS" >&5
7803 echo "${ECHO_T}$GAS" >&6; }
7805 { echo "$as_me:$LINENO: result: no" >&5
7806 echo "${ECHO_T}no" >&6; }
7810 test -n "$GAS" && break
7814 { echo "$as_me:$LINENO: checking for linker version" >&5
7815 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7816 if test "${llvm_cv_link_version+set}" = set; then
7817 echo $ECHO_N "(cached) $ECHO_C" >&6
7820 version_string="$(ld -v 2>&1 | head -1)"
7823 if (echo "$version_string" | grep -q "ld64"); then
7824 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7826 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7830 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7831 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7833 cat >>confdefs.h <<_ACEOF
7834 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7839 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7840 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7841 if test "${llvm_cv_link_use_r+set}" = set; then
7842 echo $ECHO_N "(cached) $ECHO_C" >&6
7845 ac_cpp='$CPP $CPPFLAGS'
7846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7851 CFLAGS="$CFLAGS -Wl,-R."
7852 cat >conftest.$ac_ext <<_ACEOF
7855 cat confdefs.h >>conftest.$ac_ext
7856 cat >>conftest.$ac_ext <<_ACEOF
7857 /* end confdefs.h. */
7867 rm -f conftest.$ac_objext conftest$ac_exeext
7868 if { (ac_try="$ac_link"
7870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7871 *) ac_try_echo=$ac_try;;
7873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7874 (eval "$ac_link") 2>conftest.er1
7876 grep -v '^ *+' conftest.er1 >conftest.err
7878 cat conftest.err >&5
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); } &&
7881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7882 { (case "(($ac_try" in
7883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7884 *) ac_try_echo=$ac_try;;
7886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7887 (eval "$ac_try") 2>&5
7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890 (exit $ac_status); }; } &&
7891 { ac_try='test -s conftest$ac_exeext'
7892 { (case "(($ac_try" in
7893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7894 *) ac_try_echo=$ac_try;;
7896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7897 (eval "$ac_try") 2>&5
7899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900 (exit $ac_status); }; }; then
7901 llvm_cv_link_use_r=yes
7903 echo "$as_me: failed program was:" >&5
7904 sed 's/^/| /' conftest.$ac_ext >&5
7906 llvm_cv_link_use_r=no
7909 rm -f core conftest.err conftest.$ac_objext \
7910 conftest$ac_exeext conftest.$ac_ext
7913 ac_cpp='$CPP $CPPFLAGS'
7914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7920 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7921 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7922 if test "$llvm_cv_link_use_r" = yes ; then
7924 cat >>confdefs.h <<\_ACEOF
7925 #define HAVE_LINK_R 1
7931 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7932 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7933 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7934 echo $ECHO_N "(cached) $ECHO_C" >&6
7937 ac_cpp='$CPP $CPPFLAGS'
7938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7943 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7944 cat >conftest.$ac_ext <<_ACEOF
7947 cat confdefs.h >>conftest.$ac_ext
7948 cat >>conftest.$ac_ext <<_ACEOF
7949 /* end confdefs.h. */
7959 rm -f conftest.$ac_objext conftest$ac_exeext
7960 if { (ac_try="$ac_link"
7962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7963 *) ac_try_echo=$ac_try;;
7965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7966 (eval "$ac_link") 2>conftest.er1
7968 grep -v '^ *+' conftest.er1 >conftest.err
7970 cat conftest.err >&5
7971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972 (exit $ac_status); } &&
7973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7974 { (case "(($ac_try" in
7975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7976 *) ac_try_echo=$ac_try;;
7978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7979 (eval "$ac_try") 2>&5
7981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982 (exit $ac_status); }; } &&
7983 { ac_try='test -s conftest$ac_exeext'
7984 { (case "(($ac_try" in
7985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7986 *) ac_try_echo=$ac_try;;
7988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7989 (eval "$ac_try") 2>&5
7991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992 (exit $ac_status); }; }; then
7993 llvm_cv_link_use_export_dynamic=yes
7995 echo "$as_me: failed program was:" >&5
7996 sed 's/^/| /' conftest.$ac_ext >&5
7998 llvm_cv_link_use_export_dynamic=no
8001 rm -f core conftest.err conftest.$ac_objext \
8002 conftest$ac_exeext conftest.$ac_ext
8005 ac_cpp='$CPP $CPPFLAGS'
8006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8012 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8013 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8014 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8016 cat >>confdefs.h <<\_ACEOF
8017 #define HAVE_LINK_EXPORT_DYNAMIC 1
8023 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8024 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8025 if test "${llvm_cv_link_use_version_script+set}" = set; then
8026 echo $ECHO_N "(cached) $ECHO_C" >&6
8029 ac_cpp='$CPP $CPPFLAGS'
8030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8036 # The following code is from the autoconf manual,
8037 # "11.13: Limitations of Usual Tools".
8038 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8039 # Use mktemp if possible; otherwise fall back on mkdir,
8040 # with $RANDOM to make collisions less likely.
8044 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8046 test -n "$tmp" && test -d "$tmp"
8048 tmp=$TMPDIR/foo$$-$RANDOM
8049 (umask 077 && mkdir "$tmp")
8052 echo "{" > "$tmp/export.map"
8053 echo " global: main;" >> "$tmp/export.map"
8054 echo " local: *;" >> "$tmp/export.map"
8055 echo "};" >> "$tmp/export.map"
8057 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8058 cat >conftest.$ac_ext <<_ACEOF
8061 cat confdefs.h >>conftest.$ac_ext
8062 cat >>conftest.$ac_ext <<_ACEOF
8063 /* end confdefs.h. */
8073 rm -f conftest.$ac_objext conftest$ac_exeext
8074 if { (ac_try="$ac_link"
8076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8077 *) ac_try_echo=$ac_try;;
8079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8080 (eval "$ac_link") 2>conftest.er1
8082 grep -v '^ *+' conftest.er1 >conftest.err
8084 cat conftest.err >&5
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); } &&
8087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8088 { (case "(($ac_try" in
8089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8090 *) ac_try_echo=$ac_try;;
8092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8093 (eval "$ac_try") 2>&5
8095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096 (exit $ac_status); }; } &&
8097 { ac_try='test -s conftest$ac_exeext'
8098 { (case "(($ac_try" in
8099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8100 *) ac_try_echo=$ac_try;;
8102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8103 (eval "$ac_try") 2>&5
8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 (exit $ac_status); }; }; then
8107 llvm_cv_link_use_version_script=yes
8109 echo "$as_me: failed program was:" >&5
8110 sed 's/^/| /' conftest.$ac_ext >&5
8112 llvm_cv_link_use_version_script=no
8115 rm -f core conftest.err conftest.$ac_objext \
8116 conftest$ac_exeext conftest.$ac_ext
8117 rm "$tmp/export.map"
8121 ac_cpp='$CPP $CPPFLAGS'
8122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8128 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8129 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8130 if test "$llvm_cv_link_use_version_script" = yes ; then
8131 HAVE_LINK_VERSION_SCRIPT=1
8138 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8139 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8140 if test "${ac_cv_c_const+set}" = set; then
8141 echo $ECHO_N "(cached) $ECHO_C" >&6
8143 cat >conftest.$ac_ext <<_ACEOF
8146 cat confdefs.h >>conftest.$ac_ext
8147 cat >>conftest.$ac_ext <<_ACEOF
8148 /* end confdefs.h. */
8153 /* FIXME: Include the comments suggested by Paul. */
8155 /* Ultrix mips cc rejects this. */
8156 typedef int charset[2];
8158 /* SunOS 4.1.1 cc rejects this. */
8159 char const *const *ccp;
8161 /* NEC SVR4.0.2 mips cc rejects this. */
8162 struct point {int x, y;};
8163 static struct point const zero = {0,0};
8164 /* AIX XL C 1.02.0.0 rejects this.
8165 It does not let you subtract one const X* pointer from another in
8166 an arm of an if-expression whose if-part is not a constant
8168 const char *g = "string";
8169 ccp = &g + (g ? g-g : 0);
8170 /* HPUX 7.0 cc rejects these. */
8173 ccp = (char const *const *) p;
8174 { /* SCO 3.2v4 cc rejects this. */
8176 char const *s = 0 ? (char *) 0 : (char const *) 0;
8181 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8183 const int *foo = &x[0];
8186 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8187 typedef const int *iptr;
8191 { /* AIX XL C 1.02.0.0 rejects this saying
8192 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8193 struct s { int j; const int *ap[3]; };
8194 struct s *b; b->j = 5;
8196 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8200 return !x[0] && !zero.x;
8207 rm -f conftest.$ac_objext
8208 if { (ac_try="$ac_compile"
8210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8211 *) ac_try_echo=$ac_try;;
8213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8214 (eval "$ac_compile") 2>conftest.er1
8216 grep -v '^ *+' conftest.er1 >conftest.err
8218 cat conftest.err >&5
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); } &&
8221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8222 { (case "(($ac_try" in
8223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8224 *) ac_try_echo=$ac_try;;
8226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8227 (eval "$ac_try") 2>&5
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); }; } &&
8231 { ac_try='test -s conftest.$ac_objext'
8232 { (case "(($ac_try" in
8233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8234 *) ac_try_echo=$ac_try;;
8236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8237 (eval "$ac_try") 2>&5
8239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240 (exit $ac_status); }; }; then
8243 echo "$as_me: failed program was:" >&5
8244 sed 's/^/| /' conftest.$ac_ext >&5
8249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8251 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8252 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8253 if test $ac_cv_c_const = no; then
8255 cat >>confdefs.h <<\_ACEOF
8267 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8268 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8269 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8270 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8272 echo $ECHO_N "(cached) $ECHO_C" >&6
8274 cat >conftest.$ac_ext <<_ACEOF
8277 cat confdefs.h >>conftest.$ac_ext
8278 cat >>conftest.$ac_ext <<_ACEOF
8279 /* end confdefs.h. */
8280 #include <sys/types.h>
8292 rm -f conftest.$ac_objext
8293 if { (ac_try="$ac_compile"
8295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8296 *) ac_try_echo=$ac_try;;
8298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8299 (eval "$ac_compile") 2>conftest.er1
8301 grep -v '^ *+' conftest.er1 >conftest.err
8303 cat conftest.err >&5
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); } &&
8306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8307 { (case "(($ac_try" in
8308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8309 *) ac_try_echo=$ac_try;;
8311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8312 (eval "$ac_try") 2>&5
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); }; } &&
8316 { ac_try='test -s conftest.$ac_objext'
8317 { (case "(($ac_try" in
8318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8319 *) ac_try_echo=$ac_try;;
8321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8322 (eval "$ac_try") 2>&5
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); }; }; then
8326 eval "$as_ac_Header=yes"
8328 echo "$as_me: failed program was:" >&5
8329 sed 's/^/| /' conftest.$ac_ext >&5
8331 eval "$as_ac_Header=no"
8334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8336 ac_res=`eval echo '${'$as_ac_Header'}'`
8337 { echo "$as_me:$LINENO: result: $ac_res" >&5
8338 echo "${ECHO_T}$ac_res" >&6; }
8339 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8340 cat >>confdefs.h <<_ACEOF
8341 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8344 ac_header_dirent=$ac_hdr; break
8348 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8349 if test $ac_header_dirent = dirent.h; then
8350 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8351 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8352 if test "${ac_cv_search_opendir+set}" = set; then
8353 echo $ECHO_N "(cached) $ECHO_C" >&6
8355 ac_func_search_save_LIBS=$LIBS
8356 cat >conftest.$ac_ext <<_ACEOF
8359 cat confdefs.h >>conftest.$ac_ext
8360 cat >>conftest.$ac_ext <<_ACEOF
8361 /* end confdefs.h. */
8363 /* Override any GCC internal prototype to avoid an error.
8364 Use char because int might match the return type of a GCC
8365 builtin and then its argument prototype would still apply. */
8378 for ac_lib in '' dir; do
8379 if test -z "$ac_lib"; then
8380 ac_res="none required"
8383 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8385 rm -f conftest.$ac_objext conftest$ac_exeext
8386 if { (ac_try="$ac_link"
8388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8389 *) ac_try_echo=$ac_try;;
8391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8392 (eval "$ac_link") 2>conftest.er1
8394 grep -v '^ *+' conftest.er1 >conftest.err
8396 cat conftest.err >&5
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); } &&
8399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8400 { (case "(($ac_try" in
8401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8402 *) ac_try_echo=$ac_try;;
8404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8405 (eval "$ac_try") 2>&5
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); }; } &&
8409 { ac_try='test -s conftest$ac_exeext'
8410 { (case "(($ac_try" in
8411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8412 *) ac_try_echo=$ac_try;;
8414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8415 (eval "$ac_try") 2>&5
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); }; }; then
8419 ac_cv_search_opendir=$ac_res
8421 echo "$as_me: failed program was:" >&5
8422 sed 's/^/| /' conftest.$ac_ext >&5
8427 rm -f core conftest.err conftest.$ac_objext \
8429 if test "${ac_cv_search_opendir+set}" = set; then
8433 if test "${ac_cv_search_opendir+set}" = set; then
8436 ac_cv_search_opendir=no
8439 LIBS=$ac_func_search_save_LIBS
8441 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8442 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8443 ac_res=$ac_cv_search_opendir
8444 if test "$ac_res" != no; then
8445 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8450 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8451 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8452 if test "${ac_cv_search_opendir+set}" = set; then
8453 echo $ECHO_N "(cached) $ECHO_C" >&6
8455 ac_func_search_save_LIBS=$LIBS
8456 cat >conftest.$ac_ext <<_ACEOF
8459 cat confdefs.h >>conftest.$ac_ext
8460 cat >>conftest.$ac_ext <<_ACEOF
8461 /* end confdefs.h. */
8463 /* Override any GCC internal prototype to avoid an error.
8464 Use char because int might match the return type of a GCC
8465 builtin and then its argument prototype would still apply. */
8478 for ac_lib in '' x; do
8479 if test -z "$ac_lib"; then
8480 ac_res="none required"
8483 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8485 rm -f conftest.$ac_objext conftest$ac_exeext
8486 if { (ac_try="$ac_link"
8488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8489 *) ac_try_echo=$ac_try;;
8491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8492 (eval "$ac_link") 2>conftest.er1
8494 grep -v '^ *+' conftest.er1 >conftest.err
8496 cat conftest.err >&5
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); } &&
8499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8500 { (case "(($ac_try" in
8501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8502 *) ac_try_echo=$ac_try;;
8504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8505 (eval "$ac_try") 2>&5
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); }; } &&
8509 { ac_try='test -s conftest$ac_exeext'
8510 { (case "(($ac_try" in
8511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8512 *) ac_try_echo=$ac_try;;
8514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8515 (eval "$ac_try") 2>&5
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); }; }; then
8519 ac_cv_search_opendir=$ac_res
8521 echo "$as_me: failed program was:" >&5
8522 sed 's/^/| /' conftest.$ac_ext >&5
8527 rm -f core conftest.err conftest.$ac_objext \
8529 if test "${ac_cv_search_opendir+set}" = set; then
8533 if test "${ac_cv_search_opendir+set}" = set; then
8536 ac_cv_search_opendir=no
8539 LIBS=$ac_func_search_save_LIBS
8541 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8542 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8543 ac_res=$ac_cv_search_opendir
8544 if test "$ac_res" != no; then
8545 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8552 for ac_header in dlfcn.h
8554 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8556 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8559 echo $ECHO_N "(cached) $ECHO_C" >&6
8561 ac_res=`eval echo '${'$as_ac_Header'}'`
8562 { echo "$as_me:$LINENO: result: $ac_res" >&5
8563 echo "${ECHO_T}$ac_res" >&6; }
8565 # Is the header compilable?
8566 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8567 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8568 cat >conftest.$ac_ext <<_ACEOF
8571 cat confdefs.h >>conftest.$ac_ext
8572 cat >>conftest.$ac_ext <<_ACEOF
8573 /* end confdefs.h. */
8574 $ac_includes_default
8575 #include <$ac_header>
8577 rm -f conftest.$ac_objext
8578 if { (ac_try="$ac_compile"
8580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8581 *) ac_try_echo=$ac_try;;
8583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8584 (eval "$ac_compile") 2>conftest.er1
8586 grep -v '^ *+' conftest.er1 >conftest.err
8588 cat conftest.err >&5
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); } &&
8591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8592 { (case "(($ac_try" in
8593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8594 *) ac_try_echo=$ac_try;;
8596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8597 (eval "$ac_try") 2>&5
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); }; } &&
8601 { ac_try='test -s conftest.$ac_objext'
8602 { (case "(($ac_try" in
8603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8604 *) ac_try_echo=$ac_try;;
8606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8607 (eval "$ac_try") 2>&5
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); }; }; then
8611 ac_header_compiler=yes
8613 echo "$as_me: failed program was:" >&5
8614 sed 's/^/| /' conftest.$ac_ext >&5
8616 ac_header_compiler=no
8619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8620 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8621 echo "${ECHO_T}$ac_header_compiler" >&6; }
8623 # Is the header present?
8624 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8625 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8626 cat >conftest.$ac_ext <<_ACEOF
8629 cat confdefs.h >>conftest.$ac_ext
8630 cat >>conftest.$ac_ext <<_ACEOF
8631 /* end confdefs.h. */
8632 #include <$ac_header>
8634 if { (ac_try="$ac_cpp conftest.$ac_ext"
8636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8637 *) ac_try_echo=$ac_try;;
8639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8642 grep -v '^ *+' conftest.er1 >conftest.err
8644 cat conftest.err >&5
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); } >/dev/null; then
8647 if test -s conftest.err; then
8648 ac_cpp_err=$ac_c_preproc_warn_flag
8649 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8656 if test -z "$ac_cpp_err"; then
8657 ac_header_preproc=yes
8659 echo "$as_me: failed program was:" >&5
8660 sed 's/^/| /' conftest.$ac_ext >&5
8662 ac_header_preproc=no
8665 rm -f conftest.err conftest.$ac_ext
8666 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8667 echo "${ECHO_T}$ac_header_preproc" >&6; }
8669 # So? What about this header?
8670 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8672 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8673 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8674 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8675 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8676 ac_header_preproc=yes
8679 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8680 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8681 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8682 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8683 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8684 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8685 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8686 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8688 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8689 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8690 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8692 ## ------------------------------------ ##
8693 ## Report this to http://llvm.org/bugs/ ##
8694 ## ------------------------------------ ##
8696 ) | sed "s/^/$as_me: WARNING: /" >&2
8699 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8702 echo $ECHO_N "(cached) $ECHO_C" >&6
8704 eval "$as_ac_Header=\$ac_header_preproc"
8706 ac_res=`eval echo '${'$as_ac_Header'}'`
8707 { echo "$as_me:$LINENO: result: $ac_res" >&5
8708 echo "${ECHO_T}$ac_res" >&6; }
8711 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8712 cat >>confdefs.h <<_ACEOF
8713 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8720 # Check whether --enable-ltdl-install was given.
8721 if test "${enable_ltdl_install+set}" = set; then
8722 enableval=$enable_ltdl_install;
8728 if test x"${enable_ltdl_install-no}" != xno; then
8730 INSTALL_LTDL_FALSE='#'
8732 INSTALL_LTDL_TRUE='#'
8738 if test x"${enable_ltdl_convenience-no}" != xno; then
8739 CONVENIENCE_LTDL_TRUE=
8740 CONVENIENCE_LTDL_FALSE='#'
8742 CONVENIENCE_LTDL_TRUE='#'
8743 CONVENIENCE_LTDL_FALSE=
8747 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8748 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8750 libname_spec='lib$name'
8758 shlibpath_overrides_runpath=unknown
8760 dynamic_linker="$host_os ld.so"
8761 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8762 if test "$GCC" = yes; then
8763 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8764 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8765 # if the path contains ";" then we assume it to be the separator
8766 # otherwise default to the standard path separator (i.e. ":") - it is
8767 # assumed that no part of a normal pathname contains ";" but that should
8768 # okay in the real world where ";" in dirpaths is itself problematic.
8769 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8771 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8774 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8776 need_lib_prefix=unknown
8777 hardcode_into_libs=no
8779 # when you set need_version to no, make sure it does not cause -set_version
8780 # flags to be left without arguments
8781 need_version=unknown
8786 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8787 shlibpath_var=LIBPATH
8789 # AIX 3 has no versioning support, so we append a major version to the name.
8790 soname_spec='${libname}${release}${shared_ext}$major'
8797 hardcode_into_libs=yes
8798 if test "$host_cpu" = ia64; then
8799 # AIX 5 supports IA64
8800 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8801 shlibpath_var=LD_LIBRARY_PATH
8803 # With GCC up to 2.95.x, collect2 would create an import file
8804 # for dependence libraries. The import file would start with
8805 # the line `#! .'. This would cause the generated library to
8806 # depend on `.', always an invalid library. This was fixed in
8807 # development snapshots of GCC prior to 3.0.
8809 aix4 | aix4.[01] | aix4.[01].*)
8810 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8812 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8819 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8820 # soname into executable. Probably we can add versioning support to
8821 # collect2, so additional links can be useful in future.
8822 if test "$aix_use_runtimelinking" = yes; then
8823 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8824 # instead of lib<name>.a to let people know that these are not
8825 # typical AIX shared libraries.
8826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8828 # We preserve .a as extension for shared libraries through AIX4.2
8829 # and later when we are not doing run time linking.
8830 library_names_spec='${libname}${release}.a $libname.a'
8831 soname_spec='${libname}${release}${shared_ext}$major'
8833 shlibpath_var=LIBPATH
8838 library_names_spec='$libname.ixlibrary $libname.a'
8839 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8840 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'
8844 library_names_spec='${libname}${shared_ext}'
8845 dynamic_linker="$host_os ld.so"
8846 shlibpath_var=LIBRARY_PATH
8852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8853 soname_spec='${libname}${release}${shared_ext}$major'
8854 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8855 shlibpath_var=LD_LIBRARY_PATH
8856 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8857 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8858 # the default ld.so.conf also contains /usr/contrib/lib and
8859 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8860 # libtool to hard-code these into programs
8863 cygwin* | mingw* | pw32*)
8864 version_type=windows
8869 case $GCC,$host_os in
8870 yes,cygwin* | yes,mingw* | yes,pw32*)
8871 library_names_spec='$libname.dll.a'
8872 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8873 postinstall_cmds='base_file=`basename \${file}`~
8874 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8875 dldir=$destdir/`dirname \$dlpath`~
8876 test -d \$dldir || mkdir -p \$dldir~
8877 $install_prog $dir/$dlname \$dldir/$dlname~
8878 chmod a+x \$dldir/$dlname'
8879 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8880 dlpath=$dir/\$dldll~
8882 shlibpath_overrides_runpath=yes
8886 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8887 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8888 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8891 # MinGW DLLs use traditional 'lib' prefix
8892 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8893 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8894 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8895 # It is most probably a Windows format PATH printed by
8896 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8897 # path with ; separators, and with drive letters. We can handle the
8898 # drive letters (cygwin fileutils understands them), so leave them,
8899 # especially as we might pass files found there to a mingw objdump,
8900 # which wouldn't understand a cygwinified path. Ahh.
8901 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8903 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8907 # pw32 DLLs use 'pw' prefix rather than 'lib'
8908 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8914 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8917 dynamic_linker='Win32 ld.exe'
8918 # FIXME: first we should search . and the directory the executable is in
8922 darwin* | rhapsody*)
8923 dynamic_linker="$host_os dyld"
8927 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8928 soname_spec='${libname}${release}${major}$shared_ext'
8929 shlibpath_overrides_runpath=yes
8930 shlibpath_var=DYLD_LIBRARY_PATH
8931 shrext_cmds='.dylib'
8932 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8933 if test "$GCC" = yes; then
8934 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"`
8936 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8938 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8946 soname_spec='${libname}${release}${shared_ext}$major'
8947 shlibpath_var=LD_LIBRARY_PATH
8958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8959 soname_spec='${libname}${release}${shared_ext}$major'
8960 shlibpath_var=LD_LIBRARY_PATH
8961 shlibpath_overrides_runpath=no
8962 hardcode_into_libs=yes
8963 dynamic_linker='GNU ld.so'
8966 freebsd* | dragonfly*)
8967 # DragonFly does not have aout. When/if they implement a new
8968 # versioning mechanism, adjust this.
8969 if test -x /usr/bin/objformat; then
8970 objformat=`/usr/bin/objformat`
8973 freebsd[123].*) objformat=aout ;;
8977 version_type=freebsd-$objformat
8978 case $version_type in
8980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8985 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8989 shlibpath_var=LD_LIBRARY_PATH
8992 shlibpath_overrides_runpath=yes
8994 freebsd3.[01]* | freebsdelf3.[01]*)
8995 shlibpath_overrides_runpath=yes
8996 hardcode_into_libs=yes
8998 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8999 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9000 shlibpath_overrides_runpath=no
9001 hardcode_into_libs=yes
9003 freebsd*) # from 4.6 on
9004 shlibpath_overrides_runpath=yes
9005 hardcode_into_libs=yes
9014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9015 soname_spec='${libname}${release}${shared_ext}$major'
9016 shlibpath_var=LD_LIBRARY_PATH
9017 hardcode_into_libs=yes
9020 hpux9* | hpux10* | hpux11*)
9021 # Give a soname corresponding to the major version so that dld.sl refuses to
9022 # link against other versions.
9029 hardcode_into_libs=yes
9030 dynamic_linker="$host_os dld.so"
9031 shlibpath_var=LD_LIBRARY_PATH
9032 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9034 soname_spec='${libname}${release}${shared_ext}$major'
9035 if test "X$HPUX_IA64_MODE" = X32; then
9036 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9038 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9040 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9044 hardcode_into_libs=yes
9045 dynamic_linker="$host_os dld.sl"
9046 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9047 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9049 soname_spec='${libname}${release}${shared_ext}$major'
9050 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9051 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9055 dynamic_linker="$host_os dld.sl"
9056 shlibpath_var=SHLIB_PATH
9057 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9059 soname_spec='${libname}${release}${shared_ext}$major'
9062 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9063 postinstall_cmds='chmod 555 $lib'
9070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9071 soname_spec='${libname}${release}${shared_ext}$major'
9072 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9073 shlibpath_var=LD_LIBRARY_PATH
9074 shlibpath_overrides_runpath=no
9075 hardcode_into_libs=yes
9078 irix5* | irix6* | nonstopux*)
9080 nonstopux*) version_type=nonstopux ;;
9082 if test "$lt_cv_prog_gnu_ld" = yes; then
9090 soname_spec='${libname}${release}${shared_ext}$major'
9091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9093 irix5* | nonstopux*)
9097 case $LD in # libtool.m4 will add one of these switches to LD
9098 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9099 libsuff= shlibsuff= libmagic=32-bit;;
9100 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9101 libsuff=32 shlibsuff=N32 libmagic=N32;;
9102 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9103 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9104 *) libsuff= shlibsuff= libmagic=never-match;;
9108 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9109 shlibpath_overrides_runpath=no
9110 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9111 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9112 hardcode_into_libs=yes
9115 # No shared lib support for Linux oldld, aout, or coff.
9116 linux*oldld* | linux*aout* | linux*coff*)
9120 # This must be Linux ELF.
9125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9126 soname_spec='${libname}${release}${shared_ext}$major'
9127 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9128 shlibpath_var=LD_LIBRARY_PATH
9129 shlibpath_overrides_runpath=no
9130 # This implies no fast_install, which is unacceptable.
9131 # Some rework will be needed to allow for fast_install
9132 # before this can be enabled.
9133 hardcode_into_libs=yes
9135 # Append ld.so.conf contents to the search path
9136 if test -f /etc/ld.so.conf; then
9137 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' ' '`
9138 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9141 # We used to test for /lib/ld.so.1 and disable shared libraries on
9142 # powerpc, because MkLinux only supported shared libraries with the
9143 # GNU dynamic linker. Since this was broken with cross compilers,
9144 # most powerpc-linux boxes support dynamic linking these days and
9145 # people can always --disable-shared, the test was removed, and we
9146 # assume the GNU/Linux dynamic linker is in use.
9147 dynamic_linker='GNU/Linux ld.so'
9154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9155 soname_spec='${libname}${release}${shared_ext}$major'
9156 shlibpath_var=LD_LIBRARY_PATH
9157 shlibpath_overrides_runpath=no
9158 hardcode_into_libs=yes
9159 dynamic_linker='GNU ld.so'
9166 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9168 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9169 dynamic_linker='NetBSD (a.out) ld.so'
9171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9172 soname_spec='${libname}${release}${shared_ext}$major'
9173 dynamic_linker='NetBSD ld.elf_so'
9175 shlibpath_var=LD_LIBRARY_PATH
9176 shlibpath_overrides_runpath=yes
9177 hardcode_into_libs=yes
9182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9183 shlibpath_var=LD_LIBRARY_PATH
9184 shlibpath_overrides_runpath=yes
9191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9192 soname_spec='${libname}${release}${shared_ext}$major'
9193 shlibpath_var=LD_LIBRARY_PATH
9194 shlibpath_overrides_runpath=yes
9199 sys_lib_dlsearch_path_spec="/usr/lib"
9201 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9203 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9204 *) need_version=no ;;
9206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9207 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9208 shlibpath_var=LD_LIBRARY_PATH
9209 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9211 openbsd2.[89] | openbsd2.[89].*)
9212 shlibpath_overrides_runpath=no
9215 shlibpath_overrides_runpath=yes
9219 shlibpath_overrides_runpath=yes
9224 libname_spec='$name'
9227 library_names_spec='$libname${shared_ext} $libname.a'
9228 dynamic_linker='OS/2 ld.exe'
9229 shlibpath_var=LIBPATH
9232 osf3* | osf4* | osf5*)
9236 soname_spec='${libname}${release}${shared_ext}$major'
9237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9238 shlibpath_var=LD_LIBRARY_PATH
9239 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9240 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9248 soname_spec='${libname}${release}${shared_ext}$major'
9249 shlibpath_var=LD_LIBRARY_PATH
9250 shlibpath_overrides_runpath=yes
9251 hardcode_into_libs=yes
9252 # ldd complains unless libraries are executable
9253 postinstall_cmds='chmod +x $lib'
9258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9259 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9260 shlibpath_var=LD_LIBRARY_PATH
9261 shlibpath_overrides_runpath=yes
9262 if test "$with_gnu_ld" = yes; then
9270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9271 soname_spec='${libname}${release}${shared_ext}$major'
9272 shlibpath_var=LD_LIBRARY_PATH
9273 case $host_vendor in
9275 shlibpath_overrides_runpath=no
9277 export_dynamic_flag_spec='${wl}-Blargedynsym'
9278 runpath_var=LD_RUN_PATH
9286 shlibpath_overrides_runpath=no
9287 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9293 if test -d /usr/nec ;then
9295 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9296 soname_spec='$libname${shared_ext}.$major'
9297 shlibpath_var=LD_LIBRARY_PATH
9301 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9302 version_type=freebsd-elf
9305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9306 soname_spec='${libname}${release}${shared_ext}$major'
9307 shlibpath_var=LD_LIBRARY_PATH
9308 hardcode_into_libs=yes
9309 if test "$with_gnu_ld" = yes; then
9310 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9311 shlibpath_overrides_runpath=no
9313 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9314 shlibpath_overrides_runpath=yes
9317 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9321 sys_lib_dlsearch_path_spec='/usr/lib'
9326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9327 soname_spec='${libname}${release}${shared_ext}$major'
9328 shlibpath_var=LD_LIBRARY_PATH
9335 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9336 echo "${ECHO_T}$dynamic_linker" >&6; }
9337 test "$dynamic_linker" = no && can_build_shared=no
9339 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9340 if test "$GCC" = yes; then
9341 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9345 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9346 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9347 if test "${libltdl_cv_shlibext+set}" = set; then
9348 echo $ECHO_N "(cached) $ECHO_C" >&6
9352 eval libltdl_cv_shlibext=$shrext_cmds
9355 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9356 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9357 if test -n "$libltdl_cv_shlibext"; then
9359 cat >>confdefs.h <<_ACEOF
9360 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9366 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9367 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9368 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9369 echo $ECHO_N "(cached) $ECHO_C" >&6
9371 libltdl_cv_shlibpath_var="$shlibpath_var"
9373 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9374 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9375 if test -n "$libltdl_cv_shlibpath_var"; then
9377 cat >>confdefs.h <<_ACEOF
9378 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9384 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9385 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9386 if test "${libltdl_cv_sys_search_path+set}" = set; then
9387 echo $ECHO_N "(cached) $ECHO_C" >&6
9389 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9391 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9392 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9393 if test -n "$libltdl_cv_sys_search_path"; then
9395 for dir in $libltdl_cv_sys_search_path; do
9396 if test -z "$sys_search_path"; then
9397 sys_search_path="$dir"
9399 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9403 cat >>confdefs.h <<_ACEOF
9404 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9409 { echo "$as_me:$LINENO: checking for objdir" >&5
9410 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9411 if test "${libltdl_cv_objdir+set}" = set; then
9412 echo $ECHO_N "(cached) $ECHO_C" >&6
9414 libltdl_cv_objdir="$objdir"
9415 if test -n "$objdir"; then
9418 rm -f .libs 2>/dev/null
9419 mkdir .libs 2>/dev/null
9420 if test -d .libs; then
9421 libltdl_cv_objdir=.libs
9423 # MS-DOS does not allow filenames that begin with a dot.
9424 libltdl_cv_objdir=_libs
9426 rmdir .libs 2>/dev/null
9430 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9431 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9433 cat >>confdefs.h <<_ACEOF
9434 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9442 # Check for command to grab the raw symbol name followed by C symbol from nm.
9443 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9444 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9445 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9446 echo $ECHO_N "(cached) $ECHO_C" >&6
9449 # These are sane defaults that work on at least a few old systems.
9450 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9452 # Character class describing NM global symbol codes.
9453 symcode='[BCDEGRST]'
9455 # Regexp to match symbols that can be accessed directly from C.
9456 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9458 # Transform an extracted symbol line into a proper C declaration
9459 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9461 # Transform an extracted symbol line into symbol name and symbol address
9462 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'"
9464 # Define system-specific variables.
9469 cygwin* | mingw* | pw32*)
9470 symcode='[ABCDGISTW]'
9472 hpux*) # Its linker distinguishes data from code symbols
9473 if test "$host_cpu" = ia64; then
9474 symcode='[ABCDEGRST]'
9476 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9477 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'"
9480 if test "$host_cpu" = ia64; then
9481 symcode='[ABCDGIRSTW]'
9482 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9483 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'"
9487 symcode='[BCDEGRST]'
9490 symcode='[BCDEGQRST]'
9501 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9509 # Handle CRLF in mingw tool chain
9513 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9517 # If we're using GNU nm, then use its standard symbol codes.
9518 case `$NM -V 2>&1` in
9519 *GNU* | *'with BFD'*)
9520 symcode='[ABCDGIRSTW]' ;;
9523 # Try without a prefix undercore, then with it.
9524 for ac_symprfx in "" "_"; do
9526 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9527 symxfrm="\\1 $ac_symprfx\\2 \\2"
9529 # Write the raw and C identifiers.
9530 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9532 # Check to see that the pipe works correctly.
9536 cat > conftest.$ac_ext <<EOF
9541 void nm_test_func(){}
9545 int main(){nm_test_var='a';nm_test_func();return(0);}
9548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9549 (eval $ac_compile) 2>&5
9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); }; then
9553 # Now try to grab the symbols.
9555 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9556 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559 (exit $ac_status); } && test -s "$nlist"; then
9560 # Try sorting and uniquifying the output.
9561 if sort "$nlist" | uniq > "$nlist"T; then
9562 mv -f "$nlist"T "$nlist"
9567 # Make sure that we snagged all the symbols we need.
9568 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9569 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9570 cat <<EOF > conftest.$ac_ext
9576 # Now generate the symbol file.
9577 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9579 cat <<EOF >> conftest.$ac_ext
9580 #if defined (__STDC__) && __STDC__
9581 # define lt_ptr_t void *
9583 # define lt_ptr_t char *
9587 /* The mapping between symbol names and symbols. */
9592 lt_preloaded_symbols[] =
9595 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9596 cat <<\EOF >> conftest.$ac_ext
9604 # Now try linking the two files.
9605 mv conftest.$ac_objext conftstm.$ac_objext
9606 lt_save_LIBS="$LIBS"
9607 lt_save_CFLAGS="$CFLAGS"
9608 LIBS="conftstm.$ac_objext"
9609 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9611 (eval $ac_link) 2>&5
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9617 LIBS="$lt_save_LIBS"
9618 CFLAGS="$lt_save_CFLAGS"
9620 echo "cannot find nm_test_func in $nlist" >&5
9623 echo "cannot find nm_test_var in $nlist" >&5
9626 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9629 echo "$progname: failed program was:" >&5
9630 cat conftest.$ac_ext >&5
9632 rm -f conftest* conftst*
9634 # Do not use the global_symbol_pipe unless it works.
9635 if test "$pipe_works" = yes; then
9638 lt_cv_sys_global_symbol_pipe=
9644 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9645 lt_cv_sys_global_symbol_to_cdecl=
9647 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9648 { echo "$as_me:$LINENO: result: failed" >&5
9649 echo "${ECHO_T}failed" >&6; }
9651 { echo "$as_me:$LINENO: result: ok" >&5
9652 echo "${ECHO_T}ok" >&6; }
9656 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9657 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9658 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9659 echo $ECHO_N "(cached) $ECHO_C" >&6
9661 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9662 libltdl_cv_preloaded_symbols=yes
9664 libltdl_cv_preloaded_symbols=no
9668 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9669 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9670 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9672 cat >>confdefs.h <<\_ACEOF
9673 #define HAVE_PRELOADED_SYMBOLS 1
9681 ac_cpp='$CPP $CPPFLAGS'
9682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9687 { echo "$as_me:$LINENO: checking for shl_load" >&5
9688 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9689 if test "${ac_cv_func_shl_load+set}" = set; then
9690 echo $ECHO_N "(cached) $ECHO_C" >&6
9692 cat >conftest.$ac_ext <<_ACEOF
9695 cat confdefs.h >>conftest.$ac_ext
9696 cat >>conftest.$ac_ext <<_ACEOF
9697 /* end confdefs.h. */
9698 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9700 #define shl_load innocuous_shl_load
9702 /* System header to define __stub macros and hopefully few prototypes,
9703 which can conflict with char shl_load (); below.
9704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9705 <limits.h> exists even on freestanding compilers. */
9708 # include <limits.h>
9710 # include <assert.h>
9715 /* Override any GCC internal prototype to avoid an error.
9716 Use char because int might match the return type of a GCC
9717 builtin and then its argument prototype would still apply. */
9722 /* The GNU C library defines this for functions which it implements
9723 to always fail with ENOSYS. Some functions are actually named
9724 something starting with __ and the normal name is an alias. */
9725 #if defined __stub_shl_load || defined __stub___shl_load
9737 rm -f conftest.$ac_objext conftest$ac_exeext
9738 if { (ac_try="$ac_link"
9740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9741 *) ac_try_echo=$ac_try;;
9743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9744 (eval "$ac_link") 2>conftest.er1
9746 grep -v '^ *+' conftest.er1 >conftest.err
9748 cat conftest.err >&5
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); } &&
9751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9752 { (case "(($ac_try" in
9753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9754 *) ac_try_echo=$ac_try;;
9756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9757 (eval "$ac_try") 2>&5
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); }; } &&
9761 { ac_try='test -s conftest$ac_exeext'
9762 { (case "(($ac_try" in
9763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9764 *) ac_try_echo=$ac_try;;
9766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9767 (eval "$ac_try") 2>&5
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); }; }; then
9771 ac_cv_func_shl_load=yes
9773 echo "$as_me: failed program was:" >&5
9774 sed 's/^/| /' conftest.$ac_ext >&5
9776 ac_cv_func_shl_load=no
9779 rm -f core conftest.err conftest.$ac_objext \
9780 conftest$ac_exeext conftest.$ac_ext
9782 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9783 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9784 if test $ac_cv_func_shl_load = yes; then
9786 cat >>confdefs.h <<\_ACEOF
9787 #define HAVE_SHL_LOAD 1
9791 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9792 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9793 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9794 echo $ECHO_N "(cached) $ECHO_C" >&6
9796 ac_check_lib_save_LIBS=$LIBS
9798 cat >conftest.$ac_ext <<_ACEOF
9801 cat confdefs.h >>conftest.$ac_ext
9802 cat >>conftest.$ac_ext <<_ACEOF
9803 /* end confdefs.h. */
9805 /* Override any GCC internal prototype to avoid an error.
9806 Use char because int might match the return type of a GCC
9807 builtin and then its argument prototype would still apply. */
9820 rm -f conftest.$ac_objext conftest$ac_exeext
9821 if { (ac_try="$ac_link"
9823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9824 *) ac_try_echo=$ac_try;;
9826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9827 (eval "$ac_link") 2>conftest.er1
9829 grep -v '^ *+' conftest.er1 >conftest.err
9831 cat conftest.err >&5
9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833 (exit $ac_status); } &&
9834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9835 { (case "(($ac_try" in
9836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9837 *) ac_try_echo=$ac_try;;
9839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9840 (eval "$ac_try") 2>&5
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); }; } &&
9844 { ac_try='test -s conftest$ac_exeext'
9845 { (case "(($ac_try" in
9846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847 *) ac_try_echo=$ac_try;;
9849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9850 (eval "$ac_try") 2>&5
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); }; }; then
9854 ac_cv_lib_dld_shl_load=yes
9856 echo "$as_me: failed program was:" >&5
9857 sed 's/^/| /' conftest.$ac_ext >&5
9859 ac_cv_lib_dld_shl_load=no
9862 rm -f core conftest.err conftest.$ac_objext \
9863 conftest$ac_exeext conftest.$ac_ext
9864 LIBS=$ac_check_lib_save_LIBS
9866 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9867 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9868 if test $ac_cv_lib_dld_shl_load = yes; then
9870 cat >>confdefs.h <<\_ACEOF
9871 #define HAVE_SHL_LOAD 1
9874 LIBADD_DL="$LIBADD_DL -ldld"
9876 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9877 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9878 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9879 echo $ECHO_N "(cached) $ECHO_C" >&6
9881 ac_check_lib_save_LIBS=$LIBS
9883 cat >conftest.$ac_ext <<_ACEOF
9886 cat confdefs.h >>conftest.$ac_ext
9887 cat >>conftest.$ac_ext <<_ACEOF
9888 /* end confdefs.h. */
9890 /* Override any GCC internal prototype to avoid an error.
9891 Use char because int might match the return type of a GCC
9892 builtin and then its argument prototype would still apply. */
9905 rm -f conftest.$ac_objext conftest$ac_exeext
9906 if { (ac_try="$ac_link"
9908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9909 *) ac_try_echo=$ac_try;;
9911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9912 (eval "$ac_link") 2>conftest.er1
9914 grep -v '^ *+' conftest.er1 >conftest.err
9916 cat conftest.err >&5
9917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918 (exit $ac_status); } &&
9919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9920 { (case "(($ac_try" in
9921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9922 *) ac_try_echo=$ac_try;;
9924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9925 (eval "$ac_try") 2>&5
9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); }; } &&
9929 { ac_try='test -s conftest$ac_exeext'
9930 { (case "(($ac_try" in
9931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9932 *) ac_try_echo=$ac_try;;
9934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9935 (eval "$ac_try") 2>&5
9937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938 (exit $ac_status); }; }; then
9939 ac_cv_lib_dl_dlopen=yes
9941 echo "$as_me: failed program was:" >&5
9942 sed 's/^/| /' conftest.$ac_ext >&5
9944 ac_cv_lib_dl_dlopen=no
9947 rm -f core conftest.err conftest.$ac_objext \
9948 conftest$ac_exeext conftest.$ac_ext
9949 LIBS=$ac_check_lib_save_LIBS
9951 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9952 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9953 if test $ac_cv_lib_dl_dlopen = yes; then
9955 cat >>confdefs.h <<\_ACEOF
9956 #define HAVE_LIBDL 1
9959 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9961 cat >conftest.$ac_ext <<_ACEOF
9964 cat confdefs.h >>conftest.$ac_ext
9965 cat >>conftest.$ac_ext <<_ACEOF
9966 /* end confdefs.h. */
9979 rm -f conftest.$ac_objext conftest$ac_exeext
9980 if { (ac_try="$ac_link"
9982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9983 *) ac_try_echo=$ac_try;;
9985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9986 (eval "$ac_link") 2>conftest.er1
9988 grep -v '^ *+' conftest.er1 >conftest.err
9990 cat conftest.err >&5
9991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 (exit $ac_status); } &&
9993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9994 { (case "(($ac_try" in
9995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9996 *) ac_try_echo=$ac_try;;
9998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9999 (eval "$ac_try") 2>&5
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); }; } &&
10003 { ac_try='test -s conftest$ac_exeext'
10004 { (case "(($ac_try" in
10005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10006 *) ac_try_echo=$ac_try;;
10008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10009 (eval "$ac_try") 2>&5
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); }; }; then
10014 cat >>confdefs.h <<\_ACEOF
10015 #define HAVE_LIBDL 1
10017 libltdl_cv_func_dlopen="yes"
10019 echo "$as_me: failed program was:" >&5
10020 sed 's/^/| /' conftest.$ac_ext >&5
10022 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10023 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10024 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10025 echo $ECHO_N "(cached) $ECHO_C" >&6
10027 ac_check_lib_save_LIBS=$LIBS
10028 LIBS="-lsvld $LIBS"
10029 cat >conftest.$ac_ext <<_ACEOF
10032 cat confdefs.h >>conftest.$ac_ext
10033 cat >>conftest.$ac_ext <<_ACEOF
10034 /* end confdefs.h. */
10036 /* Override any GCC internal prototype to avoid an error.
10037 Use char because int might match the return type of a GCC
10038 builtin and then its argument prototype would still apply. */
10051 rm -f conftest.$ac_objext conftest$ac_exeext
10052 if { (ac_try="$ac_link"
10053 case "(($ac_try" in
10054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10055 *) ac_try_echo=$ac_try;;
10057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10058 (eval "$ac_link") 2>conftest.er1
10060 grep -v '^ *+' conftest.er1 >conftest.err
10062 cat conftest.err >&5
10063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064 (exit $ac_status); } &&
10065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10066 { (case "(($ac_try" in
10067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10068 *) ac_try_echo=$ac_try;;
10070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10071 (eval "$ac_try") 2>&5
10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074 (exit $ac_status); }; } &&
10075 { ac_try='test -s conftest$ac_exeext'
10076 { (case "(($ac_try" in
10077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10078 *) ac_try_echo=$ac_try;;
10080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10081 (eval "$ac_try") 2>&5
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); }; }; then
10085 ac_cv_lib_svld_dlopen=yes
10087 echo "$as_me: failed program was:" >&5
10088 sed 's/^/| /' conftest.$ac_ext >&5
10090 ac_cv_lib_svld_dlopen=no
10093 rm -f core conftest.err conftest.$ac_objext \
10094 conftest$ac_exeext conftest.$ac_ext
10095 LIBS=$ac_check_lib_save_LIBS
10097 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10098 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10099 if test $ac_cv_lib_svld_dlopen = yes; then
10101 cat >>confdefs.h <<\_ACEOF
10102 #define HAVE_LIBDL 1
10105 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10107 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10108 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10109 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10110 echo $ECHO_N "(cached) $ECHO_C" >&6
10112 ac_check_lib_save_LIBS=$LIBS
10114 cat >conftest.$ac_ext <<_ACEOF
10117 cat confdefs.h >>conftest.$ac_ext
10118 cat >>conftest.$ac_ext <<_ACEOF
10119 /* end confdefs.h. */
10121 /* Override any GCC internal prototype to avoid an error.
10122 Use char because int might match the return type of a GCC
10123 builtin and then its argument prototype would still apply. */
10131 return dld_link ();
10136 rm -f conftest.$ac_objext conftest$ac_exeext
10137 if { (ac_try="$ac_link"
10138 case "(($ac_try" in
10139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10140 *) ac_try_echo=$ac_try;;
10142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10143 (eval "$ac_link") 2>conftest.er1
10145 grep -v '^ *+' conftest.er1 >conftest.err
10147 cat conftest.err >&5
10148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149 (exit $ac_status); } &&
10150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10151 { (case "(($ac_try" in
10152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10153 *) ac_try_echo=$ac_try;;
10155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10156 (eval "$ac_try") 2>&5
10158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); }; } &&
10160 { ac_try='test -s conftest$ac_exeext'
10161 { (case "(($ac_try" in
10162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10163 *) ac_try_echo=$ac_try;;
10165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10166 (eval "$ac_try") 2>&5
10168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169 (exit $ac_status); }; }; then
10170 ac_cv_lib_dld_dld_link=yes
10172 echo "$as_me: failed program was:" >&5
10173 sed 's/^/| /' conftest.$ac_ext >&5
10175 ac_cv_lib_dld_dld_link=no
10178 rm -f core conftest.err conftest.$ac_objext \
10179 conftest$ac_exeext conftest.$ac_ext
10180 LIBS=$ac_check_lib_save_LIBS
10182 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10183 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10184 if test $ac_cv_lib_dld_dld_link = yes; then
10186 cat >>confdefs.h <<\_ACEOF
10190 LIBADD_DL="$LIBADD_DL -ldld"
10192 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10193 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10194 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10195 echo $ECHO_N "(cached) $ECHO_C" >&6
10197 cat >conftest.$ac_ext <<_ACEOF
10200 cat confdefs.h >>conftest.$ac_ext
10201 cat >>conftest.$ac_ext <<_ACEOF
10202 /* end confdefs.h. */
10203 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10204 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10205 #define _dyld_func_lookup innocuous__dyld_func_lookup
10207 /* System header to define __stub macros and hopefully few prototypes,
10208 which can conflict with char _dyld_func_lookup (); below.
10209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10210 <limits.h> exists even on freestanding compilers. */
10213 # include <limits.h>
10215 # include <assert.h>
10218 #undef _dyld_func_lookup
10220 /* Override any GCC internal prototype to avoid an error.
10221 Use char because int might match the return type of a GCC
10222 builtin and then its argument prototype would still apply. */
10226 char _dyld_func_lookup ();
10227 /* The GNU C library defines this for functions which it implements
10228 to always fail with ENOSYS. Some functions are actually named
10229 something starting with __ and the normal name is an alias. */
10230 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10237 return _dyld_func_lookup ();
10242 rm -f conftest.$ac_objext conftest$ac_exeext
10243 if { (ac_try="$ac_link"
10244 case "(($ac_try" in
10245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10246 *) ac_try_echo=$ac_try;;
10248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10249 (eval "$ac_link") 2>conftest.er1
10251 grep -v '^ *+' conftest.er1 >conftest.err
10253 cat conftest.err >&5
10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); } &&
10256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10257 { (case "(($ac_try" in
10258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10259 *) ac_try_echo=$ac_try;;
10261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10262 (eval "$ac_try") 2>&5
10264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 (exit $ac_status); }; } &&
10266 { ac_try='test -s conftest$ac_exeext'
10267 { (case "(($ac_try" in
10268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10269 *) ac_try_echo=$ac_try;;
10271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10272 (eval "$ac_try") 2>&5
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); }; }; then
10276 ac_cv_func__dyld_func_lookup=yes
10278 echo "$as_me: failed program was:" >&5
10279 sed 's/^/| /' conftest.$ac_ext >&5
10281 ac_cv_func__dyld_func_lookup=no
10284 rm -f core conftest.err conftest.$ac_objext \
10285 conftest$ac_exeext conftest.$ac_ext
10287 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10288 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10289 if test $ac_cv_func__dyld_func_lookup = yes; then
10291 cat >>confdefs.h <<\_ACEOF
10292 #define HAVE_DYLD 1
10306 rm -f core conftest.err conftest.$ac_objext \
10307 conftest$ac_exeext conftest.$ac_ext
10318 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10320 lt_save_LIBS="$LIBS"
10321 LIBS="$LIBS $LIBADD_DL"
10323 for ac_func in dlerror
10325 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10326 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10327 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10328 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10329 echo $ECHO_N "(cached) $ECHO_C" >&6
10331 cat >conftest.$ac_ext <<_ACEOF
10334 cat confdefs.h >>conftest.$ac_ext
10335 cat >>conftest.$ac_ext <<_ACEOF
10336 /* end confdefs.h. */
10337 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10339 #define $ac_func innocuous_$ac_func
10341 /* System header to define __stub macros and hopefully few prototypes,
10342 which can conflict with char $ac_func (); below.
10343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10344 <limits.h> exists even on freestanding compilers. */
10347 # include <limits.h>
10349 # include <assert.h>
10354 /* Override any GCC internal prototype to avoid an error.
10355 Use char because int might match the return type of a GCC
10356 builtin and then its argument prototype would still apply. */
10361 /* The GNU C library defines this for functions which it implements
10362 to always fail with ENOSYS. Some functions are actually named
10363 something starting with __ and the normal name is an alias. */
10364 #if defined __stub_$ac_func || defined __stub___$ac_func
10371 return $ac_func ();
10376 rm -f conftest.$ac_objext conftest$ac_exeext
10377 if { (ac_try="$ac_link"
10378 case "(($ac_try" in
10379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10380 *) ac_try_echo=$ac_try;;
10382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10383 (eval "$ac_link") 2>conftest.er1
10385 grep -v '^ *+' conftest.er1 >conftest.err
10387 cat conftest.err >&5
10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389 (exit $ac_status); } &&
10390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10391 { (case "(($ac_try" in
10392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10393 *) ac_try_echo=$ac_try;;
10395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10396 (eval "$ac_try") 2>&5
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); }; } &&
10400 { ac_try='test -s conftest$ac_exeext'
10401 { (case "(($ac_try" in
10402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10403 *) ac_try_echo=$ac_try;;
10405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10406 (eval "$ac_try") 2>&5
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); }; }; then
10410 eval "$as_ac_var=yes"
10412 echo "$as_me: failed program was:" >&5
10413 sed 's/^/| /' conftest.$ac_ext >&5
10415 eval "$as_ac_var=no"
10418 rm -f core conftest.err conftest.$ac_objext \
10419 conftest$ac_exeext conftest.$ac_ext
10421 ac_res=`eval echo '${'$as_ac_var'}'`
10422 { echo "$as_me:$LINENO: result: $ac_res" >&5
10423 echo "${ECHO_T}$ac_res" >&6; }
10424 if test `eval echo '${'$as_ac_var'}'` = yes; then
10425 cat >>confdefs.h <<_ACEOF
10426 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10432 LIBS="$lt_save_LIBS"
10435 ac_cpp='$CPP $CPPFLAGS'
10436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10442 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10443 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10444 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10445 echo $ECHO_N "(cached) $ECHO_C" >&6
10447 ac_cv_sys_symbol_underscore=no
10448 cat > conftest.$ac_ext <<EOF
10449 void nm_test_func(){}
10450 int main(){nm_test_func;return 0;}
10452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10453 (eval $ac_compile) 2>&5
10455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456 (exit $ac_status); }; then
10457 # Now try to grab the symbols.
10458 ac_nlist=conftest.nm
10459 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10460 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463 (exit $ac_status); } && test -s "$ac_nlist"; then
10464 # See whether the symbols have a leading underscore.
10465 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10466 ac_cv_sys_symbol_underscore=yes
10468 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10471 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10475 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10478 echo "configure: failed program was:" >&5
10484 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10485 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10488 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10489 if test x"$libltdl_cv_func_dlopen" = xyes ||
10490 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10491 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10492 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10493 if test "${libltdl_cv_need_uscore+set}" = set; then
10494 echo $ECHO_N "(cached) $ECHO_C" >&6
10496 libltdl_cv_need_uscore=unknown
10498 LIBS="$LIBS $LIBADD_DL"
10499 if test "$cross_compiling" = yes; then :
10500 libltdl_cv_need_uscore=cross
10502 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10503 lt_status=$lt_dlunknown
10504 cat > conftest.$ac_ext <<EOF
10505 #line 10505 "configure"
10506 #include "confdefs.h"
10515 # define LT_DLGLOBAL RTLD_GLOBAL
10518 # define LT_DLGLOBAL DL_GLOBAL
10520 # define LT_DLGLOBAL 0
10524 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10525 find out it does not work in some platform. */
10526 #ifndef LT_DLLAZY_OR_NOW
10528 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10531 # define LT_DLLAZY_OR_NOW DL_LAZY
10534 # define LT_DLLAZY_OR_NOW RTLD_NOW
10537 # define LT_DLLAZY_OR_NOW DL_NOW
10539 # define LT_DLLAZY_OR_NOW 0
10547 extern "C" void exit (int);
10550 void fnord() { int i=42;}
10553 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10554 int status = $lt_dlunknown;
10558 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10559 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10560 /* dlclose (self); */
10568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10569 (eval $ac_link) 2>&5
10571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10573 (./conftest; exit; ) >&5 2>/dev/null
10575 case x$lt_status in
10576 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10577 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10578 x$lt_dlunknown|x*) ;;
10581 # compilation failed
10590 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10591 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10595 if test x"$libltdl_cv_need_uscore" = xyes; then
10597 cat >>confdefs.h <<\_ACEOF
10598 #define NEED_USCORE 1
10604 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10605 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10606 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10607 echo $ECHO_N "(cached) $ECHO_C" >&6
10609 # PORTME does your system automatically load deplibs for dlopen?
10610 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10611 # For now, we just catch OSes we know something about -- in the
10612 # future, we'll try test this programmatically.
10613 libltdl_cv_sys_dlopen_deplibs=unknown
10615 aix3*|aix4.1.*|aix4.2.*)
10616 # Unknown whether this is true for these versions of AIX, but
10617 # we want this `case' here to explicitly catch those versions.
10618 libltdl_cv_sys_dlopen_deplibs=unknown
10621 libltdl_cv_sys_dlopen_deplibs=yes
10624 # Assuming the user has installed a libdl from somewhere, this is true
10625 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10626 libltdl_cv_sys_dlopen_deplibs=yes
10628 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10629 # GNU and its variants, using gnu ld.so (Glibc)
10630 libltdl_cv_sys_dlopen_deplibs=yes
10633 libltdl_cv_sys_dlopen_deplibs=yes
10636 libltdl_cv_sys_dlopen_deplibs=yes
10638 irix[12345]*|irix6.[01]*)
10639 # Catch all versions of IRIX before 6.2, and indicate that we don't
10640 # know how it worked for any of those versions.
10641 libltdl_cv_sys_dlopen_deplibs=unknown
10644 # The case above catches anything before 6.2, and it's known that
10645 # at 6.2 and later dlopen does load deplibs.
10646 libltdl_cv_sys_dlopen_deplibs=yes
10649 libltdl_cv_sys_dlopen_deplibs=yes
10652 libltdl_cv_sys_dlopen_deplibs=yes
10655 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10656 # it did *not* use an RPATH in a shared library to find objects the
10657 # library depends on, so we explicitly say `no'.
10658 libltdl_cv_sys_dlopen_deplibs=no
10660 osf5.0|osf5.0a|osf5.1)
10661 # dlopen *does* load deplibs and with the right loader patch applied
10662 # it even uses RPATH in a shared library to search for shared objects
10663 # that the library depends on, but there's no easy way to know if that
10664 # patch is installed. Since this is the case, all we can really
10665 # say is unknown -- it depends on the patch being installed. If
10666 # it is, this changes to `yes'. Without it, it would be `no'.
10667 libltdl_cv_sys_dlopen_deplibs=unknown
10670 # the two cases above should catch all versions of osf <= 5.1. Read
10671 # the comments above for what we know about them.
10672 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10673 # is used to find them so we can finally say `yes'.
10674 libltdl_cv_sys_dlopen_deplibs=yes
10677 libltdl_cv_sys_dlopen_deplibs=yes
10679 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10680 libltdl_cv_sys_dlopen_deplibs=yes
10685 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10686 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10687 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10689 cat >>confdefs.h <<\_ACEOF
10690 #define LTDL_DLOPEN_DEPLIBS 1
10696 for ac_header in argz.h
10698 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10700 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10702 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10703 echo $ECHO_N "(cached) $ECHO_C" >&6
10705 ac_res=`eval echo '${'$as_ac_Header'}'`
10706 { echo "$as_me:$LINENO: result: $ac_res" >&5
10707 echo "${ECHO_T}$ac_res" >&6; }
10709 # Is the header compilable?
10710 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10711 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10712 cat >conftest.$ac_ext <<_ACEOF
10715 cat confdefs.h >>conftest.$ac_ext
10716 cat >>conftest.$ac_ext <<_ACEOF
10717 /* end confdefs.h. */
10718 $ac_includes_default
10719 #include <$ac_header>
10721 rm -f conftest.$ac_objext
10722 if { (ac_try="$ac_compile"
10723 case "(($ac_try" in
10724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10725 *) ac_try_echo=$ac_try;;
10727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10728 (eval "$ac_compile") 2>conftest.er1
10730 grep -v '^ *+' conftest.er1 >conftest.err
10732 cat conftest.err >&5
10733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734 (exit $ac_status); } &&
10735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10736 { (case "(($ac_try" in
10737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10738 *) ac_try_echo=$ac_try;;
10740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10741 (eval "$ac_try") 2>&5
10743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744 (exit $ac_status); }; } &&
10745 { ac_try='test -s conftest.$ac_objext'
10746 { (case "(($ac_try" in
10747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10748 *) ac_try_echo=$ac_try;;
10750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10751 (eval "$ac_try") 2>&5
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); }; }; then
10755 ac_header_compiler=yes
10757 echo "$as_me: failed program was:" >&5
10758 sed 's/^/| /' conftest.$ac_ext >&5
10760 ac_header_compiler=no
10763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10764 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10765 echo "${ECHO_T}$ac_header_compiler" >&6; }
10767 # Is the header present?
10768 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10769 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10770 cat >conftest.$ac_ext <<_ACEOF
10773 cat confdefs.h >>conftest.$ac_ext
10774 cat >>conftest.$ac_ext <<_ACEOF
10775 /* end confdefs.h. */
10776 #include <$ac_header>
10778 if { (ac_try="$ac_cpp conftest.$ac_ext"
10779 case "(($ac_try" in
10780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10781 *) ac_try_echo=$ac_try;;
10783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10784 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10786 grep -v '^ *+' conftest.er1 >conftest.err
10788 cat conftest.err >&5
10789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790 (exit $ac_status); } >/dev/null; then
10791 if test -s conftest.err; then
10792 ac_cpp_err=$ac_c_preproc_warn_flag
10793 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10800 if test -z "$ac_cpp_err"; then
10801 ac_header_preproc=yes
10803 echo "$as_me: failed program was:" >&5
10804 sed 's/^/| /' conftest.$ac_ext >&5
10806 ac_header_preproc=no
10809 rm -f conftest.err conftest.$ac_ext
10810 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10811 echo "${ECHO_T}$ac_header_preproc" >&6; }
10813 # So? What about this header?
10814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10816 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10817 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10819 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10820 ac_header_preproc=yes
10823 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10824 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10825 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10826 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10827 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10828 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10829 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10830 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10832 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10833 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10834 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10836 ## ------------------------------------ ##
10837 ## Report this to http://llvm.org/bugs/ ##
10838 ## ------------------------------------ ##
10840 ) | sed "s/^/$as_me: WARNING: /" >&2
10843 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10846 echo $ECHO_N "(cached) $ECHO_C" >&6
10848 eval "$as_ac_Header=\$ac_header_preproc"
10850 ac_res=`eval echo '${'$as_ac_Header'}'`
10851 { echo "$as_me:$LINENO: result: $ac_res" >&5
10852 echo "${ECHO_T}$ac_res" >&6; }
10855 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10856 cat >>confdefs.h <<_ACEOF
10857 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10865 { echo "$as_me:$LINENO: checking for error_t" >&5
10866 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10867 if test "${ac_cv_type_error_t+set}" = set; then
10868 echo $ECHO_N "(cached) $ECHO_C" >&6
10870 cat >conftest.$ac_ext <<_ACEOF
10873 cat confdefs.h >>conftest.$ac_ext
10874 cat >>conftest.$ac_ext <<_ACEOF
10875 /* end confdefs.h. */
10880 typedef error_t ac__type_new_;
10884 if ((ac__type_new_ *) 0)
10886 if (sizeof (ac__type_new_))
10892 rm -f conftest.$ac_objext
10893 if { (ac_try="$ac_compile"
10894 case "(($ac_try" in
10895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10896 *) ac_try_echo=$ac_try;;
10898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10899 (eval "$ac_compile") 2>conftest.er1
10901 grep -v '^ *+' conftest.er1 >conftest.err
10903 cat conftest.err >&5
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); } &&
10906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10907 { (case "(($ac_try" in
10908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10909 *) ac_try_echo=$ac_try;;
10911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10912 (eval "$ac_try") 2>&5
10914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); }; } &&
10916 { ac_try='test -s conftest.$ac_objext'
10917 { (case "(($ac_try" in
10918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10919 *) ac_try_echo=$ac_try;;
10921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10922 (eval "$ac_try") 2>&5
10924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925 (exit $ac_status); }; }; then
10926 ac_cv_type_error_t=yes
10928 echo "$as_me: failed program was:" >&5
10929 sed 's/^/| /' conftest.$ac_ext >&5
10931 ac_cv_type_error_t=no
10934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10936 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10937 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10938 if test $ac_cv_type_error_t = yes; then
10940 cat >>confdefs.h <<_ACEOF
10941 #define HAVE_ERROR_T 1
10947 cat >>confdefs.h <<\_ACEOF
10948 #define error_t int
10959 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10961 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10962 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10963 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10964 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10965 echo $ECHO_N "(cached) $ECHO_C" >&6
10967 cat >conftest.$ac_ext <<_ACEOF
10970 cat confdefs.h >>conftest.$ac_ext
10971 cat >>conftest.$ac_ext <<_ACEOF
10972 /* end confdefs.h. */
10973 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10975 #define $ac_func innocuous_$ac_func
10977 /* System header to define __stub macros and hopefully few prototypes,
10978 which can conflict with char $ac_func (); below.
10979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10980 <limits.h> exists even on freestanding compilers. */
10983 # include <limits.h>
10985 # include <assert.h>
10990 /* Override any GCC internal prototype to avoid an error.
10991 Use char because int might match the return type of a GCC
10992 builtin and then its argument prototype would still apply. */
10997 /* The GNU C library defines this for functions which it implements
10998 to always fail with ENOSYS. Some functions are actually named
10999 something starting with __ and the normal name is an alias. */
11000 #if defined __stub_$ac_func || defined __stub___$ac_func
11007 return $ac_func ();
11012 rm -f conftest.$ac_objext conftest$ac_exeext
11013 if { (ac_try="$ac_link"
11014 case "(($ac_try" in
11015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11016 *) ac_try_echo=$ac_try;;
11018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11019 (eval "$ac_link") 2>conftest.er1
11021 grep -v '^ *+' conftest.er1 >conftest.err
11023 cat conftest.err >&5
11024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025 (exit $ac_status); } &&
11026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11027 { (case "(($ac_try" in
11028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029 *) ac_try_echo=$ac_try;;
11031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11032 (eval "$ac_try") 2>&5
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); }; } &&
11036 { ac_try='test -s conftest$ac_exeext'
11037 { (case "(($ac_try" in
11038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11039 *) ac_try_echo=$ac_try;;
11041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11042 (eval "$ac_try") 2>&5
11044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); }; }; then
11046 eval "$as_ac_var=yes"
11048 echo "$as_me: failed program was:" >&5
11049 sed 's/^/| /' conftest.$ac_ext >&5
11051 eval "$as_ac_var=no"
11054 rm -f core conftest.err conftest.$ac_objext \
11055 conftest$ac_exeext conftest.$ac_ext
11057 ac_res=`eval echo '${'$as_ac_var'}'`
11058 { echo "$as_me:$LINENO: result: $ac_res" >&5
11059 echo "${ECHO_T}$ac_res" >&6; }
11060 if test `eval echo '${'$as_ac_var'}'` = yes; then
11061 cat >>confdefs.h <<_ACEOF
11062 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11095 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11098 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11100 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11103 echo $ECHO_N "(cached) $ECHO_C" >&6
11105 ac_res=`eval echo '${'$as_ac_Header'}'`
11106 { echo "$as_me:$LINENO: result: $ac_res" >&5
11107 echo "${ECHO_T}$ac_res" >&6; }
11109 # Is the header compilable?
11110 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11111 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11112 cat >conftest.$ac_ext <<_ACEOF
11115 cat confdefs.h >>conftest.$ac_ext
11116 cat >>conftest.$ac_ext <<_ACEOF
11117 /* end confdefs.h. */
11118 $ac_includes_default
11119 #include <$ac_header>
11121 rm -f conftest.$ac_objext
11122 if { (ac_try="$ac_compile"
11123 case "(($ac_try" in
11124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11125 *) ac_try_echo=$ac_try;;
11127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11128 (eval "$ac_compile") 2>conftest.er1
11130 grep -v '^ *+' conftest.er1 >conftest.err
11132 cat conftest.err >&5
11133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); } &&
11135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11136 { (case "(($ac_try" in
11137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11138 *) ac_try_echo=$ac_try;;
11140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11141 (eval "$ac_try") 2>&5
11143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144 (exit $ac_status); }; } &&
11145 { ac_try='test -s conftest.$ac_objext'
11146 { (case "(($ac_try" in
11147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11148 *) ac_try_echo=$ac_try;;
11150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11151 (eval "$ac_try") 2>&5
11153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); }; }; then
11155 ac_header_compiler=yes
11157 echo "$as_me: failed program was:" >&5
11158 sed 's/^/| /' conftest.$ac_ext >&5
11160 ac_header_compiler=no
11163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11164 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11165 echo "${ECHO_T}$ac_header_compiler" >&6; }
11167 # Is the header present?
11168 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11169 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11170 cat >conftest.$ac_ext <<_ACEOF
11173 cat confdefs.h >>conftest.$ac_ext
11174 cat >>conftest.$ac_ext <<_ACEOF
11175 /* end confdefs.h. */
11176 #include <$ac_header>
11178 if { (ac_try="$ac_cpp conftest.$ac_ext"
11179 case "(($ac_try" in
11180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11181 *) ac_try_echo=$ac_try;;
11183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11184 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11186 grep -v '^ *+' conftest.er1 >conftest.err
11188 cat conftest.err >&5
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); } >/dev/null; then
11191 if test -s conftest.err; then
11192 ac_cpp_err=$ac_c_preproc_warn_flag
11193 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11200 if test -z "$ac_cpp_err"; then
11201 ac_header_preproc=yes
11203 echo "$as_me: failed program was:" >&5
11204 sed 's/^/| /' conftest.$ac_ext >&5
11206 ac_header_preproc=no
11209 rm -f conftest.err conftest.$ac_ext
11210 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11211 echo "${ECHO_T}$ac_header_preproc" >&6; }
11213 # So? What about this header?
11214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11216 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11217 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11219 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11220 ac_header_preproc=yes
11223 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11224 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11225 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11226 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11227 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11228 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11229 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11230 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11232 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11233 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11234 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11236 ## ------------------------------------ ##
11237 ## Report this to http://llvm.org/bugs/ ##
11238 ## ------------------------------------ ##
11240 ) | sed "s/^/$as_me: WARNING: /" >&2
11243 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11246 echo $ECHO_N "(cached) $ECHO_C" >&6
11248 eval "$as_ac_Header=\$ac_header_preproc"
11250 ac_res=`eval echo '${'$as_ac_Header'}'`
11251 { echo "$as_me:$LINENO: result: $ac_res" >&5
11252 echo "${ECHO_T}$ac_res" >&6; }
11255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11256 cat >>confdefs.h <<_ACEOF
11257 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11268 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11270 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11272 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11275 echo $ECHO_N "(cached) $ECHO_C" >&6
11277 ac_res=`eval echo '${'$as_ac_Header'}'`
11278 { echo "$as_me:$LINENO: result: $ac_res" >&5
11279 echo "${ECHO_T}$ac_res" >&6; }
11281 # Is the header compilable?
11282 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11283 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11284 cat >conftest.$ac_ext <<_ACEOF
11287 cat confdefs.h >>conftest.$ac_ext
11288 cat >>conftest.$ac_ext <<_ACEOF
11289 /* end confdefs.h. */
11290 $ac_includes_default
11291 #include <$ac_header>
11293 rm -f conftest.$ac_objext
11294 if { (ac_try="$ac_compile"
11295 case "(($ac_try" in
11296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11297 *) ac_try_echo=$ac_try;;
11299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11300 (eval "$ac_compile") 2>conftest.er1
11302 grep -v '^ *+' conftest.er1 >conftest.err
11304 cat conftest.err >&5
11305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306 (exit $ac_status); } &&
11307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11308 { (case "(($ac_try" in
11309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11310 *) ac_try_echo=$ac_try;;
11312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11313 (eval "$ac_try") 2>&5
11315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316 (exit $ac_status); }; } &&
11317 { ac_try='test -s conftest.$ac_objext'
11318 { (case "(($ac_try" in
11319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11320 *) ac_try_echo=$ac_try;;
11322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11323 (eval "$ac_try") 2>&5
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); }; }; then
11327 ac_header_compiler=yes
11329 echo "$as_me: failed program was:" >&5
11330 sed 's/^/| /' conftest.$ac_ext >&5
11332 ac_header_compiler=no
11335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11336 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11337 echo "${ECHO_T}$ac_header_compiler" >&6; }
11339 # Is the header present?
11340 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11341 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11342 cat >conftest.$ac_ext <<_ACEOF
11345 cat confdefs.h >>conftest.$ac_ext
11346 cat >>conftest.$ac_ext <<_ACEOF
11347 /* end confdefs.h. */
11348 #include <$ac_header>
11350 if { (ac_try="$ac_cpp conftest.$ac_ext"
11351 case "(($ac_try" in
11352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11353 *) ac_try_echo=$ac_try;;
11355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11356 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11358 grep -v '^ *+' conftest.er1 >conftest.err
11360 cat conftest.err >&5
11361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362 (exit $ac_status); } >/dev/null; then
11363 if test -s conftest.err; then
11364 ac_cpp_err=$ac_c_preproc_warn_flag
11365 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11372 if test -z "$ac_cpp_err"; then
11373 ac_header_preproc=yes
11375 echo "$as_me: failed program was:" >&5
11376 sed 's/^/| /' conftest.$ac_ext >&5
11378 ac_header_preproc=no
11381 rm -f conftest.err conftest.$ac_ext
11382 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11383 echo "${ECHO_T}$ac_header_preproc" >&6; }
11385 # So? What about this header?
11386 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11388 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11389 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11391 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11392 ac_header_preproc=yes
11395 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11396 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11397 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11398 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11399 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11400 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11401 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11402 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11404 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11405 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11406 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11408 ## ------------------------------------ ##
11409 ## Report this to http://llvm.org/bugs/ ##
11410 ## ------------------------------------ ##
11412 ) | sed "s/^/$as_me: WARNING: /" >&2
11415 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11418 echo $ECHO_N "(cached) $ECHO_C" >&6
11420 eval "$as_ac_Header=\$ac_header_preproc"
11422 ac_res=`eval echo '${'$as_ac_Header'}'`
11423 { echo "$as_me:$LINENO: result: $ac_res" >&5
11424 echo "${ECHO_T}$ac_res" >&6; }
11427 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11428 cat >>confdefs.h <<_ACEOF
11429 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11438 for ac_header in string.h strings.h
11440 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11442 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11445 echo $ECHO_N "(cached) $ECHO_C" >&6
11447 ac_res=`eval echo '${'$as_ac_Header'}'`
11448 { echo "$as_me:$LINENO: result: $ac_res" >&5
11449 echo "${ECHO_T}$ac_res" >&6; }
11451 # Is the header compilable?
11452 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11453 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11454 cat >conftest.$ac_ext <<_ACEOF
11457 cat confdefs.h >>conftest.$ac_ext
11458 cat >>conftest.$ac_ext <<_ACEOF
11459 /* end confdefs.h. */
11460 $ac_includes_default
11461 #include <$ac_header>
11463 rm -f conftest.$ac_objext
11464 if { (ac_try="$ac_compile"
11465 case "(($ac_try" in
11466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11467 *) ac_try_echo=$ac_try;;
11469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11470 (eval "$ac_compile") 2>conftest.er1
11472 grep -v '^ *+' conftest.er1 >conftest.err
11474 cat conftest.err >&5
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); } &&
11477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11478 { (case "(($ac_try" in
11479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11480 *) ac_try_echo=$ac_try;;
11482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11483 (eval "$ac_try") 2>&5
11485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486 (exit $ac_status); }; } &&
11487 { ac_try='test -s conftest.$ac_objext'
11488 { (case "(($ac_try" in
11489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11490 *) ac_try_echo=$ac_try;;
11492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11493 (eval "$ac_try") 2>&5
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); }; }; then
11497 ac_header_compiler=yes
11499 echo "$as_me: failed program was:" >&5
11500 sed 's/^/| /' conftest.$ac_ext >&5
11502 ac_header_compiler=no
11505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11506 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11507 echo "${ECHO_T}$ac_header_compiler" >&6; }
11509 # Is the header present?
11510 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11511 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11512 cat >conftest.$ac_ext <<_ACEOF
11515 cat confdefs.h >>conftest.$ac_ext
11516 cat >>conftest.$ac_ext <<_ACEOF
11517 /* end confdefs.h. */
11518 #include <$ac_header>
11520 if { (ac_try="$ac_cpp conftest.$ac_ext"
11521 case "(($ac_try" in
11522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11523 *) ac_try_echo=$ac_try;;
11525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11528 grep -v '^ *+' conftest.er1 >conftest.err
11530 cat conftest.err >&5
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); } >/dev/null; then
11533 if test -s conftest.err; then
11534 ac_cpp_err=$ac_c_preproc_warn_flag
11535 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11542 if test -z "$ac_cpp_err"; then
11543 ac_header_preproc=yes
11545 echo "$as_me: failed program was:" >&5
11546 sed 's/^/| /' conftest.$ac_ext >&5
11548 ac_header_preproc=no
11551 rm -f conftest.err conftest.$ac_ext
11552 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11553 echo "${ECHO_T}$ac_header_preproc" >&6; }
11555 # So? What about this header?
11556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11558 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11559 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11561 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11562 ac_header_preproc=yes
11565 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11566 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11567 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11568 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11569 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11570 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11571 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11572 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11574 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11575 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11576 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11578 ## ------------------------------------ ##
11579 ## Report this to http://llvm.org/bugs/ ##
11580 ## ------------------------------------ ##
11582 ) | sed "s/^/$as_me: WARNING: /" >&2
11585 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11588 echo $ECHO_N "(cached) $ECHO_C" >&6
11590 eval "$as_ac_Header=\$ac_header_preproc"
11592 ac_res=`eval echo '${'$as_ac_Header'}'`
11593 { echo "$as_me:$LINENO: result: $ac_res" >&5
11594 echo "${ECHO_T}$ac_res" >&6; }
11597 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11598 cat >>confdefs.h <<_ACEOF
11599 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11609 for ac_func in strchr index
11611 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11612 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11613 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11614 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11615 echo $ECHO_N "(cached) $ECHO_C" >&6
11617 cat >conftest.$ac_ext <<_ACEOF
11620 cat confdefs.h >>conftest.$ac_ext
11621 cat >>conftest.$ac_ext <<_ACEOF
11622 /* end confdefs.h. */
11623 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11624 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11625 #define $ac_func innocuous_$ac_func
11627 /* System header to define __stub macros and hopefully few prototypes,
11628 which can conflict with char $ac_func (); below.
11629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11630 <limits.h> exists even on freestanding compilers. */
11633 # include <limits.h>
11635 # include <assert.h>
11640 /* Override any GCC internal prototype to avoid an error.
11641 Use char because int might match the return type of a GCC
11642 builtin and then its argument prototype would still apply. */
11647 /* The GNU C library defines this for functions which it implements
11648 to always fail with ENOSYS. Some functions are actually named
11649 something starting with __ and the normal name is an alias. */
11650 #if defined __stub_$ac_func || defined __stub___$ac_func
11657 return $ac_func ();
11662 rm -f conftest.$ac_objext conftest$ac_exeext
11663 if { (ac_try="$ac_link"
11664 case "(($ac_try" in
11665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11666 *) ac_try_echo=$ac_try;;
11668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11669 (eval "$ac_link") 2>conftest.er1
11671 grep -v '^ *+' conftest.er1 >conftest.err
11673 cat conftest.err >&5
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); } &&
11676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11677 { (case "(($ac_try" in
11678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11679 *) ac_try_echo=$ac_try;;
11681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11682 (eval "$ac_try") 2>&5
11684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685 (exit $ac_status); }; } &&
11686 { ac_try='test -s conftest$ac_exeext'
11687 { (case "(($ac_try" in
11688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11689 *) ac_try_echo=$ac_try;;
11691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11692 (eval "$ac_try") 2>&5
11694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695 (exit $ac_status); }; }; then
11696 eval "$as_ac_var=yes"
11698 echo "$as_me: failed program was:" >&5
11699 sed 's/^/| /' conftest.$ac_ext >&5
11701 eval "$as_ac_var=no"
11704 rm -f core conftest.err conftest.$ac_objext \
11705 conftest$ac_exeext conftest.$ac_ext
11707 ac_res=`eval echo '${'$as_ac_var'}'`
11708 { echo "$as_me:$LINENO: result: $ac_res" >&5
11709 echo "${ECHO_T}$ac_res" >&6; }
11710 if test `eval echo '${'$as_ac_var'}'` = yes; then
11711 cat >>confdefs.h <<_ACEOF
11712 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11720 for ac_func in strrchr rindex
11722 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11723 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11724 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11725 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11726 echo $ECHO_N "(cached) $ECHO_C" >&6
11728 cat >conftest.$ac_ext <<_ACEOF
11731 cat confdefs.h >>conftest.$ac_ext
11732 cat >>conftest.$ac_ext <<_ACEOF
11733 /* end confdefs.h. */
11734 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11736 #define $ac_func innocuous_$ac_func
11738 /* System header to define __stub macros and hopefully few prototypes,
11739 which can conflict with char $ac_func (); below.
11740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11741 <limits.h> exists even on freestanding compilers. */
11744 # include <limits.h>
11746 # include <assert.h>
11751 /* Override any GCC internal prototype to avoid an error.
11752 Use char because int might match the return type of a GCC
11753 builtin and then its argument prototype would still apply. */
11758 /* The GNU C library defines this for functions which it implements
11759 to always fail with ENOSYS. Some functions are actually named
11760 something starting with __ and the normal name is an alias. */
11761 #if defined __stub_$ac_func || defined __stub___$ac_func
11768 return $ac_func ();
11773 rm -f conftest.$ac_objext conftest$ac_exeext
11774 if { (ac_try="$ac_link"
11775 case "(($ac_try" in
11776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11777 *) ac_try_echo=$ac_try;;
11779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11780 (eval "$ac_link") 2>conftest.er1
11782 grep -v '^ *+' conftest.er1 >conftest.err
11784 cat conftest.err >&5
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); } &&
11787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11788 { (case "(($ac_try" in
11789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11790 *) ac_try_echo=$ac_try;;
11792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11793 (eval "$ac_try") 2>&5
11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); }; } &&
11797 { ac_try='test -s conftest$ac_exeext'
11798 { (case "(($ac_try" in
11799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11800 *) ac_try_echo=$ac_try;;
11802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11803 (eval "$ac_try") 2>&5
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); }; }; then
11807 eval "$as_ac_var=yes"
11809 echo "$as_me: failed program was:" >&5
11810 sed 's/^/| /' conftest.$ac_ext >&5
11812 eval "$as_ac_var=no"
11815 rm -f core conftest.err conftest.$ac_objext \
11816 conftest$ac_exeext conftest.$ac_ext
11818 ac_res=`eval echo '${'$as_ac_var'}'`
11819 { echo "$as_me:$LINENO: result: $ac_res" >&5
11820 echo "${ECHO_T}$ac_res" >&6; }
11821 if test `eval echo '${'$as_ac_var'}'` = yes; then
11822 cat >>confdefs.h <<_ACEOF
11823 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11831 for ac_func in memcpy bcopy
11833 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11834 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11835 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11836 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11837 echo $ECHO_N "(cached) $ECHO_C" >&6
11839 cat >conftest.$ac_ext <<_ACEOF
11842 cat confdefs.h >>conftest.$ac_ext
11843 cat >>conftest.$ac_ext <<_ACEOF
11844 /* end confdefs.h. */
11845 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11847 #define $ac_func innocuous_$ac_func
11849 /* System header to define __stub macros and hopefully few prototypes,
11850 which can conflict with char $ac_func (); below.
11851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11852 <limits.h> exists even on freestanding compilers. */
11855 # include <limits.h>
11857 # include <assert.h>
11862 /* Override any GCC internal prototype to avoid an error.
11863 Use char because int might match the return type of a GCC
11864 builtin and then its argument prototype would still apply. */
11869 /* The GNU C library defines this for functions which it implements
11870 to always fail with ENOSYS. Some functions are actually named
11871 something starting with __ and the normal name is an alias. */
11872 #if defined __stub_$ac_func || defined __stub___$ac_func
11879 return $ac_func ();
11884 rm -f conftest.$ac_objext conftest$ac_exeext
11885 if { (ac_try="$ac_link"
11886 case "(($ac_try" in
11887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11888 *) ac_try_echo=$ac_try;;
11890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11891 (eval "$ac_link") 2>conftest.er1
11893 grep -v '^ *+' conftest.er1 >conftest.err
11895 cat conftest.err >&5
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); } &&
11898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11899 { (case "(($ac_try" in
11900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11901 *) ac_try_echo=$ac_try;;
11903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11904 (eval "$ac_try") 2>&5
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); }; } &&
11908 { ac_try='test -s conftest$ac_exeext'
11909 { (case "(($ac_try" in
11910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11911 *) ac_try_echo=$ac_try;;
11913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11914 (eval "$ac_try") 2>&5
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); }; }; then
11918 eval "$as_ac_var=yes"
11920 echo "$as_me: failed program was:" >&5
11921 sed 's/^/| /' conftest.$ac_ext >&5
11923 eval "$as_ac_var=no"
11926 rm -f core conftest.err conftest.$ac_objext \
11927 conftest$ac_exeext conftest.$ac_ext
11929 ac_res=`eval echo '${'$as_ac_var'}'`
11930 { echo "$as_me:$LINENO: result: $ac_res" >&5
11931 echo "${ECHO_T}$ac_res" >&6; }
11932 if test `eval echo '${'$as_ac_var'}'` = yes; then
11933 cat >>confdefs.h <<_ACEOF
11934 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11942 for ac_func in memmove strcmp
11944 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11945 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11946 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11947 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11948 echo $ECHO_N "(cached) $ECHO_C" >&6
11950 cat >conftest.$ac_ext <<_ACEOF
11953 cat confdefs.h >>conftest.$ac_ext
11954 cat >>conftest.$ac_ext <<_ACEOF
11955 /* end confdefs.h. */
11956 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11958 #define $ac_func innocuous_$ac_func
11960 /* System header to define __stub macros and hopefully few prototypes,
11961 which can conflict with char $ac_func (); below.
11962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11963 <limits.h> exists even on freestanding compilers. */
11966 # include <limits.h>
11968 # include <assert.h>
11973 /* Override any GCC internal prototype to avoid an error.
11974 Use char because int might match the return type of a GCC
11975 builtin and then its argument prototype would still apply. */
11980 /* The GNU C library defines this for functions which it implements
11981 to always fail with ENOSYS. Some functions are actually named
11982 something starting with __ and the normal name is an alias. */
11983 #if defined __stub_$ac_func || defined __stub___$ac_func
11990 return $ac_func ();
11995 rm -f conftest.$ac_objext conftest$ac_exeext
11996 if { (ac_try="$ac_link"
11997 case "(($ac_try" in
11998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11999 *) ac_try_echo=$ac_try;;
12001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12002 (eval "$ac_link") 2>conftest.er1
12004 grep -v '^ *+' conftest.er1 >conftest.err
12006 cat conftest.err >&5
12007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 (exit $ac_status); } &&
12009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12010 { (case "(($ac_try" in
12011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12012 *) ac_try_echo=$ac_try;;
12014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12015 (eval "$ac_try") 2>&5
12017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018 (exit $ac_status); }; } &&
12019 { ac_try='test -s conftest$ac_exeext'
12020 { (case "(($ac_try" in
12021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12022 *) ac_try_echo=$ac_try;;
12024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12025 (eval "$ac_try") 2>&5
12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028 (exit $ac_status); }; }; then
12029 eval "$as_ac_var=yes"
12031 echo "$as_me: failed program was:" >&5
12032 sed 's/^/| /' conftest.$ac_ext >&5
12034 eval "$as_ac_var=no"
12037 rm -f core conftest.err conftest.$ac_objext \
12038 conftest$ac_exeext conftest.$ac_ext
12040 ac_res=`eval echo '${'$as_ac_var'}'`
12041 { echo "$as_me:$LINENO: result: $ac_res" >&5
12042 echo "${ECHO_T}$ac_res" >&6; }
12043 if test `eval echo '${'$as_ac_var'}'` = yes; then
12044 cat >>confdefs.h <<_ACEOF
12045 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12054 for ac_func in closedir opendir readdir
12056 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12057 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12058 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12059 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12060 echo $ECHO_N "(cached) $ECHO_C" >&6
12062 cat >conftest.$ac_ext <<_ACEOF
12065 cat confdefs.h >>conftest.$ac_ext
12066 cat >>conftest.$ac_ext <<_ACEOF
12067 /* end confdefs.h. */
12068 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12070 #define $ac_func innocuous_$ac_func
12072 /* System header to define __stub macros and hopefully few prototypes,
12073 which can conflict with char $ac_func (); below.
12074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12075 <limits.h> exists even on freestanding compilers. */
12078 # include <limits.h>
12080 # include <assert.h>
12085 /* Override any GCC internal prototype to avoid an error.
12086 Use char because int might match the return type of a GCC
12087 builtin and then its argument prototype would still apply. */
12092 /* The GNU C library defines this for functions which it implements
12093 to always fail with ENOSYS. Some functions are actually named
12094 something starting with __ and the normal name is an alias. */
12095 #if defined __stub_$ac_func || defined __stub___$ac_func
12102 return $ac_func ();
12107 rm -f conftest.$ac_objext conftest$ac_exeext
12108 if { (ac_try="$ac_link"
12109 case "(($ac_try" in
12110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12111 *) ac_try_echo=$ac_try;;
12113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12114 (eval "$ac_link") 2>conftest.er1
12116 grep -v '^ *+' conftest.er1 >conftest.err
12118 cat conftest.err >&5
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); } &&
12121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12122 { (case "(($ac_try" in
12123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12124 *) ac_try_echo=$ac_try;;
12126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12127 (eval "$ac_try") 2>&5
12129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130 (exit $ac_status); }; } &&
12131 { ac_try='test -s conftest$ac_exeext'
12132 { (case "(($ac_try" in
12133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12134 *) ac_try_echo=$ac_try;;
12136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12137 (eval "$ac_try") 2>&5
12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140 (exit $ac_status); }; }; then
12141 eval "$as_ac_var=yes"
12143 echo "$as_me: failed program was:" >&5
12144 sed 's/^/| /' conftest.$ac_ext >&5
12146 eval "$as_ac_var=no"
12149 rm -f core conftest.err conftest.$ac_objext \
12150 conftest$ac_exeext conftest.$ac_ext
12152 ac_res=`eval echo '${'$as_ac_var'}'`
12153 { echo "$as_me:$LINENO: result: $ac_res" >&5
12154 echo "${ECHO_T}$ac_res" >&6; }
12155 if test `eval echo '${'$as_ac_var'}'` = yes; then
12156 cat >>confdefs.h <<_ACEOF
12157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12165 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12166 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12179 if test "$GCC" != "yes" && test "$ICC" != "yes"
12181 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12182 echo "$as_me: error: gcc|icc required but not found" >&2;}
12183 { (exit 1); exit 1; }; }
12186 if test "$GXX" != "yes" && test "$IXX" != "yes"
12188 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12189 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12190 { (exit 1); exit 1; }; }
12193 if test "$GCC" = "yes"
12195 cat >conftest.$ac_ext <<_ACEOF
12196 #if !defined(__GNUC__) || __GNUC__ < 3
12197 #error Unsupported GCC version
12201 rm -f conftest.$ac_objext
12202 if { (ac_try="$ac_compile"
12203 case "(($ac_try" in
12204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12205 *) ac_try_echo=$ac_try;;
12207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12208 (eval "$ac_compile") 2>conftest.er1
12210 grep -v '^ *+' conftest.er1 >conftest.err
12212 cat conftest.err >&5
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); } &&
12215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12216 { (case "(($ac_try" in
12217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12218 *) ac_try_echo=$ac_try;;
12220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12221 (eval "$ac_try") 2>&5
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); }; } &&
12225 { ac_try='test -s conftest.$ac_objext'
12226 { (case "(($ac_try" in
12227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12228 *) ac_try_echo=$ac_try;;
12230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12231 (eval "$ac_try") 2>&5
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); }; }; then
12237 echo "$as_me: failed program was:" >&5
12238 sed 's/^/| /' conftest.$ac_ext >&5
12240 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12241 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12242 { (exit 1); exit 1; }; }
12245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12248 if test -z "$llvm_cv_gnu_make_command"
12250 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12251 echo "$as_me: error: GNU Make required but not found" >&2;}
12252 { (exit 1); exit 1; }; }
12255 { echo "$as_me:$LINENO: result: ok" >&5
12256 echo "${ECHO_T}ok" >&6; }
12258 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12259 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12260 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12262 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12264 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12265 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12269 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12270 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12271 if test "${ac_cv_lib_m_sin+set}" = set; then
12272 echo $ECHO_N "(cached) $ECHO_C" >&6
12274 ac_check_lib_save_LIBS=$LIBS
12276 cat >conftest.$ac_ext <<_ACEOF
12279 cat confdefs.h >>conftest.$ac_ext
12280 cat >>conftest.$ac_ext <<_ACEOF
12281 /* end confdefs.h. */
12283 /* Override any GCC internal prototype to avoid an error.
12284 Use char because int might match the return type of a GCC
12285 builtin and then its argument prototype would still apply. */
12298 rm -f conftest.$ac_objext conftest$ac_exeext
12299 if { (ac_try="$ac_link"
12300 case "(($ac_try" in
12301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12302 *) ac_try_echo=$ac_try;;
12304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12305 (eval "$ac_link") 2>conftest.er1
12307 grep -v '^ *+' conftest.er1 >conftest.err
12309 cat conftest.err >&5
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); } &&
12312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12313 { (case "(($ac_try" in
12314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12315 *) ac_try_echo=$ac_try;;
12317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12318 (eval "$ac_try") 2>&5
12320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321 (exit $ac_status); }; } &&
12322 { ac_try='test -s conftest$ac_exeext'
12323 { (case "(($ac_try" in
12324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12325 *) ac_try_echo=$ac_try;;
12327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12328 (eval "$ac_try") 2>&5
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); }; }; then
12332 ac_cv_lib_m_sin=yes
12334 echo "$as_me: failed program was:" >&5
12335 sed 's/^/| /' conftest.$ac_ext >&5
12340 rm -f core conftest.err conftest.$ac_objext \
12341 conftest$ac_exeext conftest.$ac_ext
12342 LIBS=$ac_check_lib_save_LIBS
12344 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12345 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12346 if test $ac_cv_lib_m_sin = yes; then
12347 cat >>confdefs.h <<_ACEOF
12348 #define HAVE_LIBM 1
12355 if test "$llvm_cv_os_type" = "MingW" ; then
12357 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12358 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12359 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12360 echo $ECHO_N "(cached) $ECHO_C" >&6
12362 ac_check_lib_save_LIBS=$LIBS
12363 LIBS="-limagehlp $LIBS"
12364 cat >conftest.$ac_ext <<_ACEOF
12367 cat confdefs.h >>conftest.$ac_ext
12368 cat >>conftest.$ac_ext <<_ACEOF
12369 /* end confdefs.h. */
12380 rm -f conftest.$ac_objext conftest$ac_exeext
12381 if { (ac_try="$ac_link"
12382 case "(($ac_try" in
12383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12384 *) ac_try_echo=$ac_try;;
12386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12387 (eval "$ac_link") 2>conftest.er1
12389 grep -v '^ *+' conftest.er1 >conftest.err
12391 cat conftest.err >&5
12392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393 (exit $ac_status); } &&
12394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12395 { (case "(($ac_try" in
12396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12397 *) ac_try_echo=$ac_try;;
12399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12400 (eval "$ac_try") 2>&5
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); }; } &&
12404 { ac_try='test -s conftest$ac_exeext'
12405 { (case "(($ac_try" in
12406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12407 *) ac_try_echo=$ac_try;;
12409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12410 (eval "$ac_try") 2>&5
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); }; }; then
12414 ac_cv_lib_imagehlp_main=yes
12416 echo "$as_me: failed program was:" >&5
12417 sed 's/^/| /' conftest.$ac_ext >&5
12419 ac_cv_lib_imagehlp_main=no
12422 rm -f core conftest.err conftest.$ac_objext \
12423 conftest$ac_exeext conftest.$ac_ext
12424 LIBS=$ac_check_lib_save_LIBS
12426 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12427 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12428 if test $ac_cv_lib_imagehlp_main = yes; then
12429 cat >>confdefs.h <<_ACEOF
12430 #define HAVE_LIBIMAGEHLP 1
12433 LIBS="-limagehlp $LIBS"
12438 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12439 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12440 if test "${ac_cv_lib_psapi_main+set}" = set; then
12441 echo $ECHO_N "(cached) $ECHO_C" >&6
12443 ac_check_lib_save_LIBS=$LIBS
12444 LIBS="-lpsapi $LIBS"
12445 cat >conftest.$ac_ext <<_ACEOF
12448 cat confdefs.h >>conftest.$ac_ext
12449 cat >>conftest.$ac_ext <<_ACEOF
12450 /* end confdefs.h. */
12461 rm -f conftest.$ac_objext conftest$ac_exeext
12462 if { (ac_try="$ac_link"
12463 case "(($ac_try" in
12464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12465 *) ac_try_echo=$ac_try;;
12467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12468 (eval "$ac_link") 2>conftest.er1
12470 grep -v '^ *+' conftest.er1 >conftest.err
12472 cat conftest.err >&5
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); } &&
12475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12476 { (case "(($ac_try" in
12477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12478 *) ac_try_echo=$ac_try;;
12480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12481 (eval "$ac_try") 2>&5
12483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484 (exit $ac_status); }; } &&
12485 { ac_try='test -s conftest$ac_exeext'
12486 { (case "(($ac_try" in
12487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12488 *) ac_try_echo=$ac_try;;
12490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12491 (eval "$ac_try") 2>&5
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494 (exit $ac_status); }; }; then
12495 ac_cv_lib_psapi_main=yes
12497 echo "$as_me: failed program was:" >&5
12498 sed 's/^/| /' conftest.$ac_ext >&5
12500 ac_cv_lib_psapi_main=no
12503 rm -f core conftest.err conftest.$ac_objext \
12504 conftest$ac_exeext conftest.$ac_ext
12505 LIBS=$ac_check_lib_save_LIBS
12507 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12508 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12509 if test $ac_cv_lib_psapi_main = yes; then
12510 cat >>confdefs.h <<_ACEOF
12511 #define HAVE_LIBPSAPI 1
12514 LIBS="-lpsapi $LIBS"
12520 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12521 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12522 if test "${ac_cv_search_dlopen+set}" = set; then
12523 echo $ECHO_N "(cached) $ECHO_C" >&6
12525 ac_func_search_save_LIBS=$LIBS
12526 cat >conftest.$ac_ext <<_ACEOF
12529 cat confdefs.h >>conftest.$ac_ext
12530 cat >>conftest.$ac_ext <<_ACEOF
12531 /* end confdefs.h. */
12533 /* Override any GCC internal prototype to avoid an error.
12534 Use char because int might match the return type of a GCC
12535 builtin and then its argument prototype would still apply. */
12548 for ac_lib in '' dl; do
12549 if test -z "$ac_lib"; then
12550 ac_res="none required"
12553 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12555 rm -f conftest.$ac_objext conftest$ac_exeext
12556 if { (ac_try="$ac_link"
12557 case "(($ac_try" in
12558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12559 *) ac_try_echo=$ac_try;;
12561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12562 (eval "$ac_link") 2>conftest.er1
12564 grep -v '^ *+' conftest.er1 >conftest.err
12566 cat conftest.err >&5
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); } &&
12569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12570 { (case "(($ac_try" in
12571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12572 *) ac_try_echo=$ac_try;;
12574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12575 (eval "$ac_try") 2>&5
12577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578 (exit $ac_status); }; } &&
12579 { ac_try='test -s conftest$ac_exeext'
12580 { (case "(($ac_try" in
12581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12582 *) ac_try_echo=$ac_try;;
12584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12585 (eval "$ac_try") 2>&5
12587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588 (exit $ac_status); }; }; then
12589 ac_cv_search_dlopen=$ac_res
12591 echo "$as_me: failed program was:" >&5
12592 sed 's/^/| /' conftest.$ac_ext >&5
12597 rm -f core conftest.err conftest.$ac_objext \
12599 if test "${ac_cv_search_dlopen+set}" = set; then
12603 if test "${ac_cv_search_dlopen+set}" = set; then
12606 ac_cv_search_dlopen=no
12608 rm conftest.$ac_ext
12609 LIBS=$ac_func_search_save_LIBS
12611 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12612 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12613 ac_res=$ac_cv_search_dlopen
12614 if test "$ac_res" != no; then
12615 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12617 cat >>confdefs.h <<\_ACEOF
12618 #define HAVE_DLOPEN 1
12622 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12623 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12627 if test "$llvm_cv_enable_libffi" = "yes" ; then
12628 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12629 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12630 if test "${ac_cv_search_ffi_call+set}" = set; then
12631 echo $ECHO_N "(cached) $ECHO_C" >&6
12633 ac_func_search_save_LIBS=$LIBS
12634 cat >conftest.$ac_ext <<_ACEOF
12637 cat confdefs.h >>conftest.$ac_ext
12638 cat >>conftest.$ac_ext <<_ACEOF
12639 /* end confdefs.h. */
12641 /* Override any GCC internal prototype to avoid an error.
12642 Use char because int might match the return type of a GCC
12643 builtin and then its argument prototype would still apply. */
12651 return ffi_call ();
12656 for ac_lib in '' ffi; do
12657 if test -z "$ac_lib"; then
12658 ac_res="none required"
12661 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12663 rm -f conftest.$ac_objext conftest$ac_exeext
12664 if { (ac_try="$ac_link"
12665 case "(($ac_try" in
12666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12667 *) ac_try_echo=$ac_try;;
12669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12670 (eval "$ac_link") 2>conftest.er1
12672 grep -v '^ *+' conftest.er1 >conftest.err
12674 cat conftest.err >&5
12675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676 (exit $ac_status); } &&
12677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12678 { (case "(($ac_try" in
12679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12680 *) ac_try_echo=$ac_try;;
12682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12683 (eval "$ac_try") 2>&5
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); }; } &&
12687 { ac_try='test -s conftest$ac_exeext'
12688 { (case "(($ac_try" in
12689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12690 *) ac_try_echo=$ac_try;;
12692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12693 (eval "$ac_try") 2>&5
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); }; }; then
12697 ac_cv_search_ffi_call=$ac_res
12699 echo "$as_me: failed program was:" >&5
12700 sed 's/^/| /' conftest.$ac_ext >&5
12705 rm -f core conftest.err conftest.$ac_objext \
12707 if test "${ac_cv_search_ffi_call+set}" = set; then
12711 if test "${ac_cv_search_ffi_call+set}" = set; then
12714 ac_cv_search_ffi_call=no
12716 rm conftest.$ac_ext
12717 LIBS=$ac_func_search_save_LIBS
12719 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12720 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12721 ac_res=$ac_cv_search_ffi_call
12722 if test "$ac_res" != no; then
12723 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12725 cat >>confdefs.h <<\_ACEOF
12726 #define HAVE_FFI_CALL 1
12730 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12731 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12732 { (exit 1); exit 1; }; }
12737 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12738 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12739 if test "${ac_cv_search_mallinfo+set}" = set; then
12740 echo $ECHO_N "(cached) $ECHO_C" >&6
12742 ac_func_search_save_LIBS=$LIBS
12743 cat >conftest.$ac_ext <<_ACEOF
12746 cat confdefs.h >>conftest.$ac_ext
12747 cat >>conftest.$ac_ext <<_ACEOF
12748 /* end confdefs.h. */
12750 /* Override any GCC internal prototype to avoid an error.
12751 Use char because int might match the return type of a GCC
12752 builtin and then its argument prototype would still apply. */
12760 return mallinfo ();
12765 for ac_lib in '' malloc; do
12766 if test -z "$ac_lib"; then
12767 ac_res="none required"
12770 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12772 rm -f conftest.$ac_objext conftest$ac_exeext
12773 if { (ac_try="$ac_link"
12774 case "(($ac_try" in
12775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12776 *) ac_try_echo=$ac_try;;
12778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12779 (eval "$ac_link") 2>conftest.er1
12781 grep -v '^ *+' conftest.er1 >conftest.err
12783 cat conftest.err >&5
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); } &&
12786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12787 { (case "(($ac_try" in
12788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12789 *) ac_try_echo=$ac_try;;
12791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12792 (eval "$ac_try") 2>&5
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); }; } &&
12796 { ac_try='test -s conftest$ac_exeext'
12797 { (case "(($ac_try" in
12798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12799 *) ac_try_echo=$ac_try;;
12801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12802 (eval "$ac_try") 2>&5
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); }; }; then
12806 ac_cv_search_mallinfo=$ac_res
12808 echo "$as_me: failed program was:" >&5
12809 sed 's/^/| /' conftest.$ac_ext >&5
12814 rm -f core conftest.err conftest.$ac_objext \
12816 if test "${ac_cv_search_mallinfo+set}" = set; then
12820 if test "${ac_cv_search_mallinfo+set}" = set; then
12823 ac_cv_search_mallinfo=no
12825 rm conftest.$ac_ext
12826 LIBS=$ac_func_search_save_LIBS
12828 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12829 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12830 ac_res=$ac_cv_search_mallinfo
12831 if test "$ac_res" != no; then
12832 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12834 cat >>confdefs.h <<\_ACEOF
12835 #define HAVE_MALLINFO 1
12841 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12843 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12844 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12845 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12846 echo $ECHO_N "(cached) $ECHO_C" >&6
12848 ac_check_lib_save_LIBS=$LIBS
12849 LIBS="-lpthread $LIBS"
12850 cat >conftest.$ac_ext <<_ACEOF
12853 cat confdefs.h >>conftest.$ac_ext
12854 cat >>conftest.$ac_ext <<_ACEOF
12855 /* end confdefs.h. */
12857 /* Override any GCC internal prototype to avoid an error.
12858 Use char because int might match the return type of a GCC
12859 builtin and then its argument prototype would still apply. */
12863 char pthread_mutex_init ();
12867 return pthread_mutex_init ();
12872 rm -f conftest.$ac_objext conftest$ac_exeext
12873 if { (ac_try="$ac_link"
12874 case "(($ac_try" in
12875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12876 *) ac_try_echo=$ac_try;;
12878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12879 (eval "$ac_link") 2>conftest.er1
12881 grep -v '^ *+' conftest.er1 >conftest.err
12883 cat conftest.err >&5
12884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885 (exit $ac_status); } &&
12886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12887 { (case "(($ac_try" in
12888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12889 *) ac_try_echo=$ac_try;;
12891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12892 (eval "$ac_try") 2>&5
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); }; } &&
12896 { ac_try='test -s conftest$ac_exeext'
12897 { (case "(($ac_try" in
12898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12899 *) ac_try_echo=$ac_try;;
12901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12902 (eval "$ac_try") 2>&5
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); }; }; then
12906 ac_cv_lib_pthread_pthread_mutex_init=yes
12908 echo "$as_me: failed program was:" >&5
12909 sed 's/^/| /' conftest.$ac_ext >&5
12911 ac_cv_lib_pthread_pthread_mutex_init=no
12914 rm -f core conftest.err conftest.$ac_objext \
12915 conftest$ac_exeext conftest.$ac_ext
12916 LIBS=$ac_check_lib_save_LIBS
12918 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12919 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12920 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12921 cat >>confdefs.h <<_ACEOF
12922 #define HAVE_LIBPTHREAD 1
12925 LIBS="-lpthread $LIBS"
12929 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12930 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12931 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12932 echo $ECHO_N "(cached) $ECHO_C" >&6
12934 ac_func_search_save_LIBS=$LIBS
12935 cat >conftest.$ac_ext <<_ACEOF
12938 cat confdefs.h >>conftest.$ac_ext
12939 cat >>conftest.$ac_ext <<_ACEOF
12940 /* end confdefs.h. */
12942 /* Override any GCC internal prototype to avoid an error.
12943 Use char because int might match the return type of a GCC
12944 builtin and then its argument prototype would still apply. */
12948 char pthread_mutex_lock ();
12952 return pthread_mutex_lock ();
12957 for ac_lib in '' pthread; do
12958 if test -z "$ac_lib"; then
12959 ac_res="none required"
12962 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12964 rm -f conftest.$ac_objext conftest$ac_exeext
12965 if { (ac_try="$ac_link"
12966 case "(($ac_try" in
12967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12968 *) ac_try_echo=$ac_try;;
12970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12971 (eval "$ac_link") 2>conftest.er1
12973 grep -v '^ *+' conftest.er1 >conftest.err
12975 cat conftest.err >&5
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); } &&
12978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12979 { (case "(($ac_try" in
12980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12981 *) ac_try_echo=$ac_try;;
12983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12984 (eval "$ac_try") 2>&5
12986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987 (exit $ac_status); }; } &&
12988 { ac_try='test -s conftest$ac_exeext'
12989 { (case "(($ac_try" in
12990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12991 *) ac_try_echo=$ac_try;;
12993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12994 (eval "$ac_try") 2>&5
12996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997 (exit $ac_status); }; }; then
12998 ac_cv_search_pthread_mutex_lock=$ac_res
13000 echo "$as_me: failed program was:" >&5
13001 sed 's/^/| /' conftest.$ac_ext >&5
13006 rm -f core conftest.err conftest.$ac_objext \
13008 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13012 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13015 ac_cv_search_pthread_mutex_lock=no
13017 rm conftest.$ac_ext
13018 LIBS=$ac_func_search_save_LIBS
13020 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13021 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13022 ac_res=$ac_cv_search_pthread_mutex_lock
13023 if test "$ac_res" != no; then
13024 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13026 cat >>confdefs.h <<\_ACEOF
13027 #define HAVE_PTHREAD_MUTEX_LOCK 1
13032 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13033 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13034 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13035 echo $ECHO_N "(cached) $ECHO_C" >&6
13037 ac_func_search_save_LIBS=$LIBS
13038 cat >conftest.$ac_ext <<_ACEOF
13041 cat confdefs.h >>conftest.$ac_ext
13042 cat >>conftest.$ac_ext <<_ACEOF
13043 /* end confdefs.h. */
13045 /* Override any GCC internal prototype to avoid an error.
13046 Use char because int might match the return type of a GCC
13047 builtin and then its argument prototype would still apply. */
13051 char pthread_rwlock_init ();
13055 return pthread_rwlock_init ();
13060 for ac_lib in '' pthread; do
13061 if test -z "$ac_lib"; then
13062 ac_res="none required"
13065 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13067 rm -f conftest.$ac_objext conftest$ac_exeext
13068 if { (ac_try="$ac_link"
13069 case "(($ac_try" in
13070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13071 *) ac_try_echo=$ac_try;;
13073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13074 (eval "$ac_link") 2>conftest.er1
13076 grep -v '^ *+' conftest.er1 >conftest.err
13078 cat conftest.err >&5
13079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080 (exit $ac_status); } &&
13081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13082 { (case "(($ac_try" in
13083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13084 *) ac_try_echo=$ac_try;;
13086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13087 (eval "$ac_try") 2>&5
13089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090 (exit $ac_status); }; } &&
13091 { ac_try='test -s conftest$ac_exeext'
13092 { (case "(($ac_try" in
13093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13094 *) ac_try_echo=$ac_try;;
13096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13097 (eval "$ac_try") 2>&5
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); }; }; then
13101 ac_cv_search_pthread_rwlock_init=$ac_res
13103 echo "$as_me: failed program was:" >&5
13104 sed 's/^/| /' conftest.$ac_ext >&5
13109 rm -f core conftest.err conftest.$ac_objext \
13111 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13115 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13118 ac_cv_search_pthread_rwlock_init=no
13120 rm conftest.$ac_ext
13121 LIBS=$ac_func_search_save_LIBS
13123 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13124 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13125 ac_res=$ac_cv_search_pthread_rwlock_init
13126 if test "$ac_res" != no; then
13127 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13129 cat >>confdefs.h <<\_ACEOF
13130 #define HAVE_PTHREAD_RWLOCK_INIT 1
13135 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13136 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13137 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13138 echo $ECHO_N "(cached) $ECHO_C" >&6
13140 ac_func_search_save_LIBS=$LIBS
13141 cat >conftest.$ac_ext <<_ACEOF
13144 cat confdefs.h >>conftest.$ac_ext
13145 cat >>conftest.$ac_ext <<_ACEOF
13146 /* end confdefs.h. */
13148 /* Override any GCC internal prototype to avoid an error.
13149 Use char because int might match the return type of a GCC
13150 builtin and then its argument prototype would still apply. */
13154 char pthread_getspecific ();
13158 return pthread_getspecific ();
13163 for ac_lib in '' pthread; do
13164 if test -z "$ac_lib"; then
13165 ac_res="none required"
13168 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13170 rm -f conftest.$ac_objext conftest$ac_exeext
13171 if { (ac_try="$ac_link"
13172 case "(($ac_try" in
13173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13174 *) ac_try_echo=$ac_try;;
13176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13177 (eval "$ac_link") 2>conftest.er1
13179 grep -v '^ *+' conftest.er1 >conftest.err
13181 cat conftest.err >&5
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); } &&
13184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13185 { (case "(($ac_try" in
13186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13187 *) ac_try_echo=$ac_try;;
13189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13190 (eval "$ac_try") 2>&5
13192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); }; } &&
13194 { ac_try='test -s conftest$ac_exeext'
13195 { (case "(($ac_try" in
13196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13197 *) ac_try_echo=$ac_try;;
13199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13200 (eval "$ac_try") 2>&5
13202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); }; }; then
13204 ac_cv_search_pthread_getspecific=$ac_res
13206 echo "$as_me: failed program was:" >&5
13207 sed 's/^/| /' conftest.$ac_ext >&5
13212 rm -f core conftest.err conftest.$ac_objext \
13214 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13218 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13221 ac_cv_search_pthread_getspecific=no
13223 rm conftest.$ac_ext
13224 LIBS=$ac_func_search_save_LIBS
13226 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13227 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13228 ac_res=$ac_cv_search_pthread_getspecific
13229 if test "$ac_res" != no; then
13230 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13232 cat >>confdefs.h <<\_ACEOF
13233 #define HAVE_PTHREAD_GETSPECIFIC 1
13241 # Check whether --with-udis86 was given.
13242 if test "${with_udis86+set}" = set; then
13243 withval=$with_udis86;
13248 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13251 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13252 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13253 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13254 echo $ECHO_N "(cached) $ECHO_C" >&6
13256 ac_check_lib_save_LIBS=$LIBS
13257 LIBS="-ludis86 $LIBS"
13258 cat >conftest.$ac_ext <<_ACEOF
13261 cat confdefs.h >>conftest.$ac_ext
13262 cat >>conftest.$ac_ext <<_ACEOF
13263 /* end confdefs.h. */
13265 /* Override any GCC internal prototype to avoid an error.
13266 Use char because int might match the return type of a GCC
13267 builtin and then its argument prototype would still apply. */
13280 rm -f conftest.$ac_objext conftest$ac_exeext
13281 if { (ac_try="$ac_link"
13282 case "(($ac_try" in
13283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13284 *) ac_try_echo=$ac_try;;
13286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13287 (eval "$ac_link") 2>conftest.er1
13289 grep -v '^ *+' conftest.er1 >conftest.err
13291 cat conftest.err >&5
13292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293 (exit $ac_status); } &&
13294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13295 { (case "(($ac_try" in
13296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13297 *) ac_try_echo=$ac_try;;
13299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13300 (eval "$ac_try") 2>&5
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); }; } &&
13304 { ac_try='test -s conftest$ac_exeext'
13305 { (case "(($ac_try" in
13306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13307 *) ac_try_echo=$ac_try;;
13309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13310 (eval "$ac_try") 2>&5
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); }; }; then
13314 ac_cv_lib_udis86_ud_init=yes
13316 echo "$as_me: failed program was:" >&5
13317 sed 's/^/| /' conftest.$ac_ext >&5
13319 ac_cv_lib_udis86_ud_init=no
13322 rm -f core conftest.err conftest.$ac_objext \
13323 conftest$ac_exeext conftest.$ac_ext
13324 LIBS=$ac_check_lib_save_LIBS
13326 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13327 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13328 if test $ac_cv_lib_udis86_ud_init = yes; then
13329 cat >>confdefs.h <<_ACEOF
13330 #define HAVE_LIBUDIS86 1
13333 LIBS="-ludis86 $LIBS"
13337 echo "Error! You need to have libudis86 around."
13349 cat >>confdefs.h <<_ACEOF
13350 #define USE_UDIS86 $USE_UDIS86
13355 # Check whether --with-oprofile was given.
13356 if test "${with_oprofile+set}" = set; then
13357 withval=$with_oprofile;
13361 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13362 no) llvm_cv_oppath=
13365 *) llvm_cv_oppath="${withval}/lib/oprofile"
13366 CPPFLAGS="-I${withval}/include";;
13368 if test -n "$llvm_cv_oppath" ; then
13369 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13370 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13371 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13372 if test "${ac_cv_search_bfd_init+set}" = set; then
13373 echo $ECHO_N "(cached) $ECHO_C" >&6
13375 ac_func_search_save_LIBS=$LIBS
13376 cat >conftest.$ac_ext <<_ACEOF
13379 cat confdefs.h >>conftest.$ac_ext
13380 cat >>conftest.$ac_ext <<_ACEOF
13381 /* end confdefs.h. */
13383 /* Override any GCC internal prototype to avoid an error.
13384 Use char because int might match the return type of a GCC
13385 builtin and then its argument prototype would still apply. */
13393 return bfd_init ();
13398 for ac_lib in '' bfd; do
13399 if test -z "$ac_lib"; then
13400 ac_res="none required"
13403 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13405 rm -f conftest.$ac_objext conftest$ac_exeext
13406 if { (ac_try="$ac_link"
13407 case "(($ac_try" in
13408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13409 *) ac_try_echo=$ac_try;;
13411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13412 (eval "$ac_link") 2>conftest.er1
13414 grep -v '^ *+' conftest.er1 >conftest.err
13416 cat conftest.err >&5
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); } &&
13419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13420 { (case "(($ac_try" in
13421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13422 *) ac_try_echo=$ac_try;;
13424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13425 (eval "$ac_try") 2>&5
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); }; } &&
13429 { ac_try='test -s conftest$ac_exeext'
13430 { (case "(($ac_try" in
13431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13432 *) ac_try_echo=$ac_try;;
13434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13435 (eval "$ac_try") 2>&5
13437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438 (exit $ac_status); }; }; then
13439 ac_cv_search_bfd_init=$ac_res
13441 echo "$as_me: failed program was:" >&5
13442 sed 's/^/| /' conftest.$ac_ext >&5
13447 rm -f core conftest.err conftest.$ac_objext \
13449 if test "${ac_cv_search_bfd_init+set}" = set; then
13453 if test "${ac_cv_search_bfd_init+set}" = set; then
13456 ac_cv_search_bfd_init=no
13458 rm conftest.$ac_ext
13459 LIBS=$ac_func_search_save_LIBS
13461 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13462 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13463 ac_res=$ac_cv_search_bfd_init
13464 if test "$ac_res" != no; then
13465 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13469 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13470 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13471 if test "${ac_cv_search_op_open_agent+set}" = set; then
13472 echo $ECHO_N "(cached) $ECHO_C" >&6
13474 ac_func_search_save_LIBS=$LIBS
13475 cat >conftest.$ac_ext <<_ACEOF
13478 cat confdefs.h >>conftest.$ac_ext
13479 cat >>conftest.$ac_ext <<_ACEOF
13480 /* end confdefs.h. */
13482 /* Override any GCC internal prototype to avoid an error.
13483 Use char because int might match the return type of a GCC
13484 builtin and then its argument prototype would still apply. */
13488 char op_open_agent ();
13492 return op_open_agent ();
13497 for ac_lib in '' opagent; do
13498 if test -z "$ac_lib"; then
13499 ac_res="none required"
13502 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13504 rm -f conftest.$ac_objext conftest$ac_exeext
13505 if { (ac_try="$ac_link"
13506 case "(($ac_try" in
13507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13508 *) ac_try_echo=$ac_try;;
13510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13511 (eval "$ac_link") 2>conftest.er1
13513 grep -v '^ *+' conftest.er1 >conftest.err
13515 cat conftest.err >&5
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); } &&
13518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13519 { (case "(($ac_try" in
13520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13521 *) ac_try_echo=$ac_try;;
13523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13524 (eval "$ac_try") 2>&5
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); }; } &&
13528 { ac_try='test -s conftest$ac_exeext'
13529 { (case "(($ac_try" in
13530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13531 *) ac_try_echo=$ac_try;;
13533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13534 (eval "$ac_try") 2>&5
13536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537 (exit $ac_status); }; }; then
13538 ac_cv_search_op_open_agent=$ac_res
13540 echo "$as_me: failed program was:" >&5
13541 sed 's/^/| /' conftest.$ac_ext >&5
13546 rm -f core conftest.err conftest.$ac_objext \
13548 if test "${ac_cv_search_op_open_agent+set}" = set; then
13552 if test "${ac_cv_search_op_open_agent+set}" = set; then
13555 ac_cv_search_op_open_agent=no
13557 rm conftest.$ac_ext
13558 LIBS=$ac_func_search_save_LIBS
13560 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13561 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13562 ac_res=$ac_cv_search_op_open_agent
13563 if test "$ac_res" != no; then
13564 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13568 echo "Error! You need to have libopagent around."
13573 if test "${ac_cv_header_opagent_h+set}" = set; then
13574 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13575 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13576 if test "${ac_cv_header_opagent_h+set}" = set; then
13577 echo $ECHO_N "(cached) $ECHO_C" >&6
13579 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13580 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13582 # Is the header compilable?
13583 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13584 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13585 cat >conftest.$ac_ext <<_ACEOF
13588 cat confdefs.h >>conftest.$ac_ext
13589 cat >>conftest.$ac_ext <<_ACEOF
13590 /* end confdefs.h. */
13591 $ac_includes_default
13592 #include <opagent.h>
13594 rm -f conftest.$ac_objext
13595 if { (ac_try="$ac_compile"
13596 case "(($ac_try" in
13597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13598 *) ac_try_echo=$ac_try;;
13600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13601 (eval "$ac_compile") 2>conftest.er1
13603 grep -v '^ *+' conftest.er1 >conftest.err
13605 cat conftest.err >&5
13606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607 (exit $ac_status); } &&
13608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13609 { (case "(($ac_try" in
13610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13611 *) ac_try_echo=$ac_try;;
13613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13614 (eval "$ac_try") 2>&5
13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); }; } &&
13618 { ac_try='test -s conftest.$ac_objext'
13619 { (case "(($ac_try" in
13620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13621 *) ac_try_echo=$ac_try;;
13623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13624 (eval "$ac_try") 2>&5
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); }; }; then
13628 ac_header_compiler=yes
13630 echo "$as_me: failed program was:" >&5
13631 sed 's/^/| /' conftest.$ac_ext >&5
13633 ac_header_compiler=no
13636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13637 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13638 echo "${ECHO_T}$ac_header_compiler" >&6; }
13640 # Is the header present?
13641 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13642 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13643 cat >conftest.$ac_ext <<_ACEOF
13646 cat confdefs.h >>conftest.$ac_ext
13647 cat >>conftest.$ac_ext <<_ACEOF
13648 /* end confdefs.h. */
13649 #include <opagent.h>
13651 if { (ac_try="$ac_cpp conftest.$ac_ext"
13652 case "(($ac_try" in
13653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13654 *) ac_try_echo=$ac_try;;
13656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13657 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13659 grep -v '^ *+' conftest.er1 >conftest.err
13661 cat conftest.err >&5
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); } >/dev/null; then
13664 if test -s conftest.err; then
13665 ac_cpp_err=$ac_c_preproc_warn_flag
13666 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13673 if test -z "$ac_cpp_err"; then
13674 ac_header_preproc=yes
13676 echo "$as_me: failed program was:" >&5
13677 sed 's/^/| /' conftest.$ac_ext >&5
13679 ac_header_preproc=no
13682 rm -f conftest.err conftest.$ac_ext
13683 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13684 echo "${ECHO_T}$ac_header_preproc" >&6; }
13686 # So? What about this header?
13687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13689 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13690 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13691 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13692 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13693 ac_header_preproc=yes
13696 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13697 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13698 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13699 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13700 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13701 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13702 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13703 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13704 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13705 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13706 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13707 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13709 ## ------------------------------------ ##
13710 ## Report this to http://llvm.org/bugs/ ##
13711 ## ------------------------------------ ##
13713 ) | sed "s/^/$as_me: WARNING: /" >&2
13716 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13717 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13718 if test "${ac_cv_header_opagent_h+set}" = set; then
13719 echo $ECHO_N "(cached) $ECHO_C" >&6
13721 ac_cv_header_opagent_h=$ac_header_preproc
13723 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13724 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13727 if test $ac_cv_header_opagent_h = yes; then
13731 echo "Error! You need to have opagent.h around."
13747 cat >>confdefs.h <<_ACEOF
13748 #define USE_OPROFILE $USE_OPROFILE
13758 ac_header_dirent=no
13759 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13760 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13761 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13762 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13764 echo $ECHO_N "(cached) $ECHO_C" >&6
13766 cat >conftest.$ac_ext <<_ACEOF
13769 cat confdefs.h >>conftest.$ac_ext
13770 cat >>conftest.$ac_ext <<_ACEOF
13771 /* end confdefs.h. */
13772 #include <sys/types.h>
13784 rm -f conftest.$ac_objext
13785 if { (ac_try="$ac_compile"
13786 case "(($ac_try" in
13787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13788 *) ac_try_echo=$ac_try;;
13790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13791 (eval "$ac_compile") 2>conftest.er1
13793 grep -v '^ *+' conftest.er1 >conftest.err
13795 cat conftest.err >&5
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); } &&
13798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13799 { (case "(($ac_try" in
13800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13801 *) ac_try_echo=$ac_try;;
13803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13804 (eval "$ac_try") 2>&5
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); }; } &&
13808 { ac_try='test -s conftest.$ac_objext'
13809 { (case "(($ac_try" in
13810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13811 *) ac_try_echo=$ac_try;;
13813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13814 (eval "$ac_try") 2>&5
13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); }; }; then
13818 eval "$as_ac_Header=yes"
13820 echo "$as_me: failed program was:" >&5
13821 sed 's/^/| /' conftest.$ac_ext >&5
13823 eval "$as_ac_Header=no"
13826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13828 ac_res=`eval echo '${'$as_ac_Header'}'`
13829 { echo "$as_me:$LINENO: result: $ac_res" >&5
13830 echo "${ECHO_T}$ac_res" >&6; }
13831 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13832 cat >>confdefs.h <<_ACEOF
13833 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13836 ac_header_dirent=$ac_hdr; break
13840 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13841 if test $ac_header_dirent = dirent.h; then
13842 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13843 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13844 if test "${ac_cv_search_opendir+set}" = set; then
13845 echo $ECHO_N "(cached) $ECHO_C" >&6
13847 ac_func_search_save_LIBS=$LIBS
13848 cat >conftest.$ac_ext <<_ACEOF
13851 cat confdefs.h >>conftest.$ac_ext
13852 cat >>conftest.$ac_ext <<_ACEOF
13853 /* end confdefs.h. */
13855 /* Override any GCC internal prototype to avoid an error.
13856 Use char because int might match the return type of a GCC
13857 builtin and then its argument prototype would still apply. */
13870 for ac_lib in '' dir; do
13871 if test -z "$ac_lib"; then
13872 ac_res="none required"
13875 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13877 rm -f conftest.$ac_objext conftest$ac_exeext
13878 if { (ac_try="$ac_link"
13879 case "(($ac_try" in
13880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13881 *) ac_try_echo=$ac_try;;
13883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13884 (eval "$ac_link") 2>conftest.er1
13886 grep -v '^ *+' conftest.er1 >conftest.err
13888 cat conftest.err >&5
13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); } &&
13891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13892 { (case "(($ac_try" in
13893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13894 *) ac_try_echo=$ac_try;;
13896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13897 (eval "$ac_try") 2>&5
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); }; } &&
13901 { ac_try='test -s conftest$ac_exeext'
13902 { (case "(($ac_try" in
13903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13904 *) ac_try_echo=$ac_try;;
13906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13907 (eval "$ac_try") 2>&5
13909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910 (exit $ac_status); }; }; then
13911 ac_cv_search_opendir=$ac_res
13913 echo "$as_me: failed program was:" >&5
13914 sed 's/^/| /' conftest.$ac_ext >&5
13919 rm -f core conftest.err conftest.$ac_objext \
13921 if test "${ac_cv_search_opendir+set}" = set; then
13925 if test "${ac_cv_search_opendir+set}" = set; then
13928 ac_cv_search_opendir=no
13930 rm conftest.$ac_ext
13931 LIBS=$ac_func_search_save_LIBS
13933 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13934 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13935 ac_res=$ac_cv_search_opendir
13936 if test "$ac_res" != no; then
13937 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13942 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13943 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13944 if test "${ac_cv_search_opendir+set}" = set; then
13945 echo $ECHO_N "(cached) $ECHO_C" >&6
13947 ac_func_search_save_LIBS=$LIBS
13948 cat >conftest.$ac_ext <<_ACEOF
13951 cat confdefs.h >>conftest.$ac_ext
13952 cat >>conftest.$ac_ext <<_ACEOF
13953 /* end confdefs.h. */
13955 /* Override any GCC internal prototype to avoid an error.
13956 Use char because int might match the return type of a GCC
13957 builtin and then its argument prototype would still apply. */
13970 for ac_lib in '' x; do
13971 if test -z "$ac_lib"; then
13972 ac_res="none required"
13975 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13977 rm -f conftest.$ac_objext conftest$ac_exeext
13978 if { (ac_try="$ac_link"
13979 case "(($ac_try" in
13980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13981 *) ac_try_echo=$ac_try;;
13983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13984 (eval "$ac_link") 2>conftest.er1
13986 grep -v '^ *+' conftest.er1 >conftest.err
13988 cat conftest.err >&5
13989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990 (exit $ac_status); } &&
13991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13992 { (case "(($ac_try" in
13993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13994 *) ac_try_echo=$ac_try;;
13996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13997 (eval "$ac_try") 2>&5
13999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000 (exit $ac_status); }; } &&
14001 { ac_try='test -s conftest$ac_exeext'
14002 { (case "(($ac_try" in
14003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14004 *) ac_try_echo=$ac_try;;
14006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14007 (eval "$ac_try") 2>&5
14009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010 (exit $ac_status); }; }; then
14011 ac_cv_search_opendir=$ac_res
14013 echo "$as_me: failed program was:" >&5
14014 sed 's/^/| /' conftest.$ac_ext >&5
14019 rm -f core conftest.err conftest.$ac_objext \
14021 if test "${ac_cv_search_opendir+set}" = set; then
14025 if test "${ac_cv_search_opendir+set}" = set; then
14028 ac_cv_search_opendir=no
14030 rm conftest.$ac_ext
14031 LIBS=$ac_func_search_save_LIBS
14033 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14034 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14035 ac_res=$ac_cv_search_opendir
14036 if test "$ac_res" != no; then
14037 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14043 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14044 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14045 if test "${ac_cv_header_mmap_anon+set}" = set; then
14046 echo $ECHO_N "(cached) $ECHO_C" >&6
14049 ac_cpp='$CPP $CPPFLAGS'
14050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14054 cat >conftest.$ac_ext <<_ACEOF
14057 cat confdefs.h >>conftest.$ac_ext
14058 cat >>conftest.$ac_ext <<_ACEOF
14059 /* end confdefs.h. */
14060 #include <sys/mman.h>
14061 #include <unistd.h>
14066 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14071 rm -f conftest.$ac_objext
14072 if { (ac_try="$ac_compile"
14073 case "(($ac_try" in
14074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14075 *) ac_try_echo=$ac_try;;
14077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14078 (eval "$ac_compile") 2>conftest.er1
14080 grep -v '^ *+' conftest.er1 >conftest.err
14082 cat conftest.err >&5
14083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084 (exit $ac_status); } &&
14085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14086 { (case "(($ac_try" in
14087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14088 *) ac_try_echo=$ac_try;;
14090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14091 (eval "$ac_try") 2>&5
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 (exit $ac_status); }; } &&
14095 { ac_try='test -s conftest.$ac_objext'
14096 { (case "(($ac_try" in
14097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14098 *) ac_try_echo=$ac_try;;
14100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14101 (eval "$ac_try") 2>&5
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); }; }; then
14105 ac_cv_header_mmap_anon=yes
14107 echo "$as_me: failed program was:" >&5
14108 sed 's/^/| /' conftest.$ac_ext >&5
14110 ac_cv_header_mmap_anon=no
14113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14115 ac_cpp='$CPP $CPPFLAGS'
14116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14122 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14123 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14124 if test "$ac_cv_header_mmap_anon" = yes; then
14126 cat >>confdefs.h <<\_ACEOF
14127 #define HAVE_MMAP_ANONYMOUS 1
14132 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14133 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14134 if test "${ac_cv_header_stat_broken+set}" = set; then
14135 echo $ECHO_N "(cached) $ECHO_C" >&6
14137 cat >conftest.$ac_ext <<_ACEOF
14140 cat confdefs.h >>conftest.$ac_ext
14141 cat >>conftest.$ac_ext <<_ACEOF
14142 /* end confdefs.h. */
14143 #include <sys/types.h>
14144 #include <sys/stat.h>
14146 #if defined S_ISBLK && defined S_IFDIR
14147 # if S_ISBLK (S_IFDIR)
14152 #if defined S_ISBLK && defined S_IFCHR
14153 # if S_ISBLK (S_IFCHR)
14158 #if defined S_ISLNK && defined S_IFREG
14159 # if S_ISLNK (S_IFREG)
14164 #if defined S_ISSOCK && defined S_IFREG
14165 # if S_ISSOCK (S_IFREG)
14171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14172 $EGREP "You lose" >/dev/null 2>&1; then
14173 ac_cv_header_stat_broken=yes
14175 ac_cv_header_stat_broken=no
14180 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14181 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14182 if test $ac_cv_header_stat_broken = yes; then
14184 cat >>confdefs.h <<\_ACEOF
14185 #define STAT_MACROS_BROKEN 1
14190 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14191 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14192 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14193 echo $ECHO_N "(cached) $ECHO_C" >&6
14195 cat >conftest.$ac_ext <<_ACEOF
14198 cat confdefs.h >>conftest.$ac_ext
14199 cat >>conftest.$ac_ext <<_ACEOF
14200 /* end confdefs.h. */
14201 #include <sys/types.h>
14202 #include <sys/wait.h>
14203 #ifndef WEXITSTATUS
14204 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14207 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14215 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14220 rm -f conftest.$ac_objext
14221 if { (ac_try="$ac_compile"
14222 case "(($ac_try" in
14223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14224 *) ac_try_echo=$ac_try;;
14226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14227 (eval "$ac_compile") 2>conftest.er1
14229 grep -v '^ *+' conftest.er1 >conftest.err
14231 cat conftest.err >&5
14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233 (exit $ac_status); } &&
14234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14235 { (case "(($ac_try" in
14236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14237 *) ac_try_echo=$ac_try;;
14239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14240 (eval "$ac_try") 2>&5
14242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 (exit $ac_status); }; } &&
14244 { ac_try='test -s conftest.$ac_objext'
14245 { (case "(($ac_try" in
14246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14247 *) ac_try_echo=$ac_try;;
14249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14250 (eval "$ac_try") 2>&5
14252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253 (exit $ac_status); }; }; then
14254 ac_cv_header_sys_wait_h=yes
14256 echo "$as_me: failed program was:" >&5
14257 sed 's/^/| /' conftest.$ac_ext >&5
14259 ac_cv_header_sys_wait_h=no
14262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14264 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14265 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14266 if test $ac_cv_header_sys_wait_h = yes; then
14268 cat >>confdefs.h <<\_ACEOF
14269 #define HAVE_SYS_WAIT_H 1
14274 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14275 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14276 if test "${ac_cv_header_time+set}" = set; then
14277 echo $ECHO_N "(cached) $ECHO_C" >&6
14279 cat >conftest.$ac_ext <<_ACEOF
14282 cat confdefs.h >>conftest.$ac_ext
14283 cat >>conftest.$ac_ext <<_ACEOF
14284 /* end confdefs.h. */
14285 #include <sys/types.h>
14286 #include <sys/time.h>
14292 if ((struct tm *) 0)
14298 rm -f conftest.$ac_objext
14299 if { (ac_try="$ac_compile"
14300 case "(($ac_try" in
14301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14302 *) ac_try_echo=$ac_try;;
14304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14305 (eval "$ac_compile") 2>conftest.er1
14307 grep -v '^ *+' conftest.er1 >conftest.err
14309 cat conftest.err >&5
14310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311 (exit $ac_status); } &&
14312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14313 { (case "(($ac_try" in
14314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14315 *) ac_try_echo=$ac_try;;
14317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14318 (eval "$ac_try") 2>&5
14320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321 (exit $ac_status); }; } &&
14322 { ac_try='test -s conftest.$ac_objext'
14323 { (case "(($ac_try" in
14324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14325 *) ac_try_echo=$ac_try;;
14327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14328 (eval "$ac_try") 2>&5
14330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331 (exit $ac_status); }; }; then
14332 ac_cv_header_time=yes
14334 echo "$as_me: failed program was:" >&5
14335 sed 's/^/| /' conftest.$ac_ext >&5
14337 ac_cv_header_time=no
14340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14342 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14343 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14344 if test $ac_cv_header_time = yes; then
14346 cat >>confdefs.h <<\_ACEOF
14347 #define TIME_WITH_SYS_TIME 1
14359 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14361 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14363 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14366 echo $ECHO_N "(cached) $ECHO_C" >&6
14368 ac_res=`eval echo '${'$as_ac_Header'}'`
14369 { echo "$as_me:$LINENO: result: $ac_res" >&5
14370 echo "${ECHO_T}$ac_res" >&6; }
14372 # Is the header compilable?
14373 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14374 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14375 cat >conftest.$ac_ext <<_ACEOF
14378 cat confdefs.h >>conftest.$ac_ext
14379 cat >>conftest.$ac_ext <<_ACEOF
14380 /* end confdefs.h. */
14381 $ac_includes_default
14382 #include <$ac_header>
14384 rm -f conftest.$ac_objext
14385 if { (ac_try="$ac_compile"
14386 case "(($ac_try" in
14387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14388 *) ac_try_echo=$ac_try;;
14390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14391 (eval "$ac_compile") 2>conftest.er1
14393 grep -v '^ *+' conftest.er1 >conftest.err
14395 cat conftest.err >&5
14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); } &&
14398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14399 { (case "(($ac_try" in
14400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14401 *) ac_try_echo=$ac_try;;
14403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14404 (eval "$ac_try") 2>&5
14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 (exit $ac_status); }; } &&
14408 { ac_try='test -s conftest.$ac_objext'
14409 { (case "(($ac_try" in
14410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14411 *) ac_try_echo=$ac_try;;
14413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14414 (eval "$ac_try") 2>&5
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); }; }; then
14418 ac_header_compiler=yes
14420 echo "$as_me: failed program was:" >&5
14421 sed 's/^/| /' conftest.$ac_ext >&5
14423 ac_header_compiler=no
14426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14427 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14428 echo "${ECHO_T}$ac_header_compiler" >&6; }
14430 # Is the header present?
14431 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14432 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14433 cat >conftest.$ac_ext <<_ACEOF
14436 cat confdefs.h >>conftest.$ac_ext
14437 cat >>conftest.$ac_ext <<_ACEOF
14438 /* end confdefs.h. */
14439 #include <$ac_header>
14441 if { (ac_try="$ac_cpp conftest.$ac_ext"
14442 case "(($ac_try" in
14443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14444 *) ac_try_echo=$ac_try;;
14446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14449 grep -v '^ *+' conftest.er1 >conftest.err
14451 cat conftest.err >&5
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); } >/dev/null; then
14454 if test -s conftest.err; then
14455 ac_cpp_err=$ac_c_preproc_warn_flag
14456 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14463 if test -z "$ac_cpp_err"; then
14464 ac_header_preproc=yes
14466 echo "$as_me: failed program was:" >&5
14467 sed 's/^/| /' conftest.$ac_ext >&5
14469 ac_header_preproc=no
14472 rm -f conftest.err conftest.$ac_ext
14473 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14474 echo "${ECHO_T}$ac_header_preproc" >&6; }
14476 # So? What about this header?
14477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14479 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14480 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14482 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14483 ac_header_preproc=yes
14486 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14487 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14488 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14489 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14490 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14491 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14492 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14493 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14495 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14496 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14497 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14499 ## ------------------------------------ ##
14500 ## Report this to http://llvm.org/bugs/ ##
14501 ## ------------------------------------ ##
14503 ) | sed "s/^/$as_me: WARNING: /" >&2
14506 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14509 echo $ECHO_N "(cached) $ECHO_C" >&6
14511 eval "$as_ac_Header=\$ac_header_preproc"
14513 ac_res=`eval echo '${'$as_ac_Header'}'`
14514 { echo "$as_me:$LINENO: result: $ac_res" >&5
14515 echo "${ECHO_T}$ac_res" >&6; }
14518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14519 cat >>confdefs.h <<_ACEOF
14520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14533 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14535 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14537 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14540 echo $ECHO_N "(cached) $ECHO_C" >&6
14542 ac_res=`eval echo '${'$as_ac_Header'}'`
14543 { echo "$as_me:$LINENO: result: $ac_res" >&5
14544 echo "${ECHO_T}$ac_res" >&6; }
14546 # Is the header compilable?
14547 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14548 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14549 cat >conftest.$ac_ext <<_ACEOF
14552 cat confdefs.h >>conftest.$ac_ext
14553 cat >>conftest.$ac_ext <<_ACEOF
14554 /* end confdefs.h. */
14555 $ac_includes_default
14556 #include <$ac_header>
14558 rm -f conftest.$ac_objext
14559 if { (ac_try="$ac_compile"
14560 case "(($ac_try" in
14561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14562 *) ac_try_echo=$ac_try;;
14564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14565 (eval "$ac_compile") 2>conftest.er1
14567 grep -v '^ *+' conftest.er1 >conftest.err
14569 cat conftest.err >&5
14570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571 (exit $ac_status); } &&
14572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14573 { (case "(($ac_try" in
14574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14575 *) ac_try_echo=$ac_try;;
14577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14578 (eval "$ac_try") 2>&5
14580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581 (exit $ac_status); }; } &&
14582 { ac_try='test -s conftest.$ac_objext'
14583 { (case "(($ac_try" in
14584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14585 *) ac_try_echo=$ac_try;;
14587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14588 (eval "$ac_try") 2>&5
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); }; }; then
14592 ac_header_compiler=yes
14594 echo "$as_me: failed program was:" >&5
14595 sed 's/^/| /' conftest.$ac_ext >&5
14597 ac_header_compiler=no
14600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14601 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14602 echo "${ECHO_T}$ac_header_compiler" >&6; }
14604 # Is the header present?
14605 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14606 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14607 cat >conftest.$ac_ext <<_ACEOF
14610 cat confdefs.h >>conftest.$ac_ext
14611 cat >>conftest.$ac_ext <<_ACEOF
14612 /* end confdefs.h. */
14613 #include <$ac_header>
14615 if { (ac_try="$ac_cpp conftest.$ac_ext"
14616 case "(($ac_try" in
14617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14618 *) ac_try_echo=$ac_try;;
14620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14623 grep -v '^ *+' conftest.er1 >conftest.err
14625 cat conftest.err >&5
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); } >/dev/null; then
14628 if test -s conftest.err; then
14629 ac_cpp_err=$ac_c_preproc_warn_flag
14630 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14637 if test -z "$ac_cpp_err"; then
14638 ac_header_preproc=yes
14640 echo "$as_me: failed program was:" >&5
14641 sed 's/^/| /' conftest.$ac_ext >&5
14643 ac_header_preproc=no
14646 rm -f conftest.err conftest.$ac_ext
14647 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14648 echo "${ECHO_T}$ac_header_preproc" >&6; }
14650 # So? What about this header?
14651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14653 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14654 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14656 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14657 ac_header_preproc=yes
14660 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14661 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14662 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14663 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14664 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14665 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14666 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14667 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14669 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14670 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14671 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14673 ## ------------------------------------ ##
14674 ## Report this to http://llvm.org/bugs/ ##
14675 ## ------------------------------------ ##
14677 ) | sed "s/^/$as_me: WARNING: /" >&2
14680 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14681 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14683 echo $ECHO_N "(cached) $ECHO_C" >&6
14685 eval "$as_ac_Header=\$ac_header_preproc"
14687 ac_res=`eval echo '${'$as_ac_Header'}'`
14688 { echo "$as_me:$LINENO: result: $ac_res" >&5
14689 echo "${ECHO_T}$ac_res" >&6; }
14692 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14693 cat >>confdefs.h <<_ACEOF
14694 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14703 for ac_header in utime.h windows.h
14705 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14707 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14710 echo $ECHO_N "(cached) $ECHO_C" >&6
14712 ac_res=`eval echo '${'$as_ac_Header'}'`
14713 { echo "$as_me:$LINENO: result: $ac_res" >&5
14714 echo "${ECHO_T}$ac_res" >&6; }
14716 # Is the header compilable?
14717 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14718 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14719 cat >conftest.$ac_ext <<_ACEOF
14722 cat confdefs.h >>conftest.$ac_ext
14723 cat >>conftest.$ac_ext <<_ACEOF
14724 /* end confdefs.h. */
14725 $ac_includes_default
14726 #include <$ac_header>
14728 rm -f conftest.$ac_objext
14729 if { (ac_try="$ac_compile"
14730 case "(($ac_try" in
14731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14732 *) ac_try_echo=$ac_try;;
14734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14735 (eval "$ac_compile") 2>conftest.er1
14737 grep -v '^ *+' conftest.er1 >conftest.err
14739 cat conftest.err >&5
14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); } &&
14742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14743 { (case "(($ac_try" in
14744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14745 *) ac_try_echo=$ac_try;;
14747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14748 (eval "$ac_try") 2>&5
14750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 (exit $ac_status); }; } &&
14752 { ac_try='test -s conftest.$ac_objext'
14753 { (case "(($ac_try" in
14754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14755 *) ac_try_echo=$ac_try;;
14757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14758 (eval "$ac_try") 2>&5
14760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761 (exit $ac_status); }; }; then
14762 ac_header_compiler=yes
14764 echo "$as_me: failed program was:" >&5
14765 sed 's/^/| /' conftest.$ac_ext >&5
14767 ac_header_compiler=no
14770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14771 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14772 echo "${ECHO_T}$ac_header_compiler" >&6; }
14774 # Is the header present?
14775 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14776 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14777 cat >conftest.$ac_ext <<_ACEOF
14780 cat confdefs.h >>conftest.$ac_ext
14781 cat >>conftest.$ac_ext <<_ACEOF
14782 /* end confdefs.h. */
14783 #include <$ac_header>
14785 if { (ac_try="$ac_cpp conftest.$ac_ext"
14786 case "(($ac_try" in
14787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14788 *) ac_try_echo=$ac_try;;
14790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14791 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14793 grep -v '^ *+' conftest.er1 >conftest.err
14795 cat conftest.err >&5
14796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797 (exit $ac_status); } >/dev/null; then
14798 if test -s conftest.err; then
14799 ac_cpp_err=$ac_c_preproc_warn_flag
14800 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14807 if test -z "$ac_cpp_err"; then
14808 ac_header_preproc=yes
14810 echo "$as_me: failed program was:" >&5
14811 sed 's/^/| /' conftest.$ac_ext >&5
14813 ac_header_preproc=no
14816 rm -f conftest.err conftest.$ac_ext
14817 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14818 echo "${ECHO_T}$ac_header_preproc" >&6; }
14820 # So? What about this header?
14821 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14823 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14824 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14826 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14827 ac_header_preproc=yes
14830 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14831 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14832 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14833 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14834 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14835 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14836 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14837 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14839 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14840 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14841 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14843 ## ------------------------------------ ##
14844 ## Report this to http://llvm.org/bugs/ ##
14845 ## ------------------------------------ ##
14847 ) | sed "s/^/$as_me: WARNING: /" >&2
14850 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14853 echo $ECHO_N "(cached) $ECHO_C" >&6
14855 eval "$as_ac_Header=\$ac_header_preproc"
14857 ac_res=`eval echo '${'$as_ac_Header'}'`
14858 { echo "$as_me:$LINENO: result: $ac_res" >&5
14859 echo "${ECHO_T}$ac_res" >&6; }
14862 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14863 cat >>confdefs.h <<_ACEOF
14864 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14876 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14878 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14880 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14883 echo $ECHO_N "(cached) $ECHO_C" >&6
14885 ac_res=`eval echo '${'$as_ac_Header'}'`
14886 { echo "$as_me:$LINENO: result: $ac_res" >&5
14887 echo "${ECHO_T}$ac_res" >&6; }
14889 # Is the header compilable?
14890 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14891 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14892 cat >conftest.$ac_ext <<_ACEOF
14895 cat confdefs.h >>conftest.$ac_ext
14896 cat >>conftest.$ac_ext <<_ACEOF
14897 /* end confdefs.h. */
14898 $ac_includes_default
14899 #include <$ac_header>
14901 rm -f conftest.$ac_objext
14902 if { (ac_try="$ac_compile"
14903 case "(($ac_try" in
14904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14905 *) ac_try_echo=$ac_try;;
14907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14908 (eval "$ac_compile") 2>conftest.er1
14910 grep -v '^ *+' conftest.er1 >conftest.err
14912 cat conftest.err >&5
14913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914 (exit $ac_status); } &&
14915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14916 { (case "(($ac_try" in
14917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14918 *) ac_try_echo=$ac_try;;
14920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14921 (eval "$ac_try") 2>&5
14923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924 (exit $ac_status); }; } &&
14925 { ac_try='test -s conftest.$ac_objext'
14926 { (case "(($ac_try" in
14927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14928 *) ac_try_echo=$ac_try;;
14930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14931 (eval "$ac_try") 2>&5
14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); }; }; then
14935 ac_header_compiler=yes
14937 echo "$as_me: failed program was:" >&5
14938 sed 's/^/| /' conftest.$ac_ext >&5
14940 ac_header_compiler=no
14943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14944 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14945 echo "${ECHO_T}$ac_header_compiler" >&6; }
14947 # Is the header present?
14948 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14949 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14950 cat >conftest.$ac_ext <<_ACEOF
14953 cat confdefs.h >>conftest.$ac_ext
14954 cat >>conftest.$ac_ext <<_ACEOF
14955 /* end confdefs.h. */
14956 #include <$ac_header>
14958 if { (ac_try="$ac_cpp conftest.$ac_ext"
14959 case "(($ac_try" in
14960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14961 *) ac_try_echo=$ac_try;;
14963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14964 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14966 grep -v '^ *+' conftest.er1 >conftest.err
14968 cat conftest.err >&5
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); } >/dev/null; then
14971 if test -s conftest.err; then
14972 ac_cpp_err=$ac_c_preproc_warn_flag
14973 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14980 if test -z "$ac_cpp_err"; then
14981 ac_header_preproc=yes
14983 echo "$as_me: failed program was:" >&5
14984 sed 's/^/| /' conftest.$ac_ext >&5
14986 ac_header_preproc=no
14989 rm -f conftest.err conftest.$ac_ext
14990 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14991 echo "${ECHO_T}$ac_header_preproc" >&6; }
14993 # So? What about this header?
14994 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14996 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14997 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14999 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15000 ac_header_preproc=yes
15003 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15004 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15005 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15006 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15007 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15008 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15009 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15010 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15012 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15013 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15014 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15016 ## ------------------------------------ ##
15017 ## Report this to http://llvm.org/bugs/ ##
15018 ## ------------------------------------ ##
15020 ) | sed "s/^/$as_me: WARNING: /" >&2
15023 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15026 echo $ECHO_N "(cached) $ECHO_C" >&6
15028 eval "$as_ac_Header=\$ac_header_preproc"
15030 ac_res=`eval echo '${'$as_ac_Header'}'`
15031 { echo "$as_me:$LINENO: result: $ac_res" >&5
15032 echo "${ECHO_T}$ac_res" >&6; }
15035 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15036 cat >>confdefs.h <<_ACEOF
15037 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15048 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15050 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15052 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15055 echo $ECHO_N "(cached) $ECHO_C" >&6
15057 ac_res=`eval echo '${'$as_ac_Header'}'`
15058 { echo "$as_me:$LINENO: result: $ac_res" >&5
15059 echo "${ECHO_T}$ac_res" >&6; }
15061 # Is the header compilable?
15062 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15063 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15064 cat >conftest.$ac_ext <<_ACEOF
15067 cat confdefs.h >>conftest.$ac_ext
15068 cat >>conftest.$ac_ext <<_ACEOF
15069 /* end confdefs.h. */
15070 $ac_includes_default
15071 #include <$ac_header>
15073 rm -f conftest.$ac_objext
15074 if { (ac_try="$ac_compile"
15075 case "(($ac_try" in
15076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15077 *) ac_try_echo=$ac_try;;
15079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15080 (eval "$ac_compile") 2>conftest.er1
15082 grep -v '^ *+' conftest.er1 >conftest.err
15084 cat conftest.err >&5
15085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086 (exit $ac_status); } &&
15087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15088 { (case "(($ac_try" in
15089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15090 *) ac_try_echo=$ac_try;;
15092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15093 (eval "$ac_try") 2>&5
15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096 (exit $ac_status); }; } &&
15097 { ac_try='test -s conftest.$ac_objext'
15098 { (case "(($ac_try" in
15099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15100 *) ac_try_echo=$ac_try;;
15102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15103 (eval "$ac_try") 2>&5
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); }; }; then
15107 ac_header_compiler=yes
15109 echo "$as_me: failed program was:" >&5
15110 sed 's/^/| /' conftest.$ac_ext >&5
15112 ac_header_compiler=no
15115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15116 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15117 echo "${ECHO_T}$ac_header_compiler" >&6; }
15119 # Is the header present?
15120 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15121 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15122 cat >conftest.$ac_ext <<_ACEOF
15125 cat confdefs.h >>conftest.$ac_ext
15126 cat >>conftest.$ac_ext <<_ACEOF
15127 /* end confdefs.h. */
15128 #include <$ac_header>
15130 if { (ac_try="$ac_cpp conftest.$ac_ext"
15131 case "(($ac_try" in
15132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15133 *) ac_try_echo=$ac_try;;
15135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15138 grep -v '^ *+' conftest.er1 >conftest.err
15140 cat conftest.err >&5
15141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 (exit $ac_status); } >/dev/null; then
15143 if test -s conftest.err; then
15144 ac_cpp_err=$ac_c_preproc_warn_flag
15145 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15152 if test -z "$ac_cpp_err"; then
15153 ac_header_preproc=yes
15155 echo "$as_me: failed program was:" >&5
15156 sed 's/^/| /' conftest.$ac_ext >&5
15158 ac_header_preproc=no
15161 rm -f conftest.err conftest.$ac_ext
15162 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15163 echo "${ECHO_T}$ac_header_preproc" >&6; }
15165 # So? What about this header?
15166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15168 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15169 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15171 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15172 ac_header_preproc=yes
15175 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15176 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15177 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15178 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15179 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15180 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15181 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15182 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15184 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15185 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15186 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15188 ## ------------------------------------ ##
15189 ## Report this to http://llvm.org/bugs/ ##
15190 ## ------------------------------------ ##
15192 ) | sed "s/^/$as_me: WARNING: /" >&2
15195 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15198 echo $ECHO_N "(cached) $ECHO_C" >&6
15200 eval "$as_ac_Header=\$ac_header_preproc"
15202 ac_res=`eval echo '${'$as_ac_Header'}'`
15203 { echo "$as_me:$LINENO: result: $ac_res" >&5
15204 echo "${ECHO_T}$ac_res" >&6; }
15207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15208 cat >>confdefs.h <<_ACEOF
15209 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15217 for ac_header in valgrind/valgrind.h
15219 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15221 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15224 echo $ECHO_N "(cached) $ECHO_C" >&6
15226 ac_res=`eval echo '${'$as_ac_Header'}'`
15227 { echo "$as_me:$LINENO: result: $ac_res" >&5
15228 echo "${ECHO_T}$ac_res" >&6; }
15230 # Is the header compilable?
15231 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15232 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15233 cat >conftest.$ac_ext <<_ACEOF
15236 cat confdefs.h >>conftest.$ac_ext
15237 cat >>conftest.$ac_ext <<_ACEOF
15238 /* end confdefs.h. */
15239 $ac_includes_default
15240 #include <$ac_header>
15242 rm -f conftest.$ac_objext
15243 if { (ac_try="$ac_compile"
15244 case "(($ac_try" in
15245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15246 *) ac_try_echo=$ac_try;;
15248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15249 (eval "$ac_compile") 2>conftest.er1
15251 grep -v '^ *+' conftest.er1 >conftest.err
15253 cat conftest.err >&5
15254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255 (exit $ac_status); } &&
15256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15257 { (case "(($ac_try" in
15258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15259 *) ac_try_echo=$ac_try;;
15261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15262 (eval "$ac_try") 2>&5
15264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); }; } &&
15266 { ac_try='test -s conftest.$ac_objext'
15267 { (case "(($ac_try" in
15268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15269 *) ac_try_echo=$ac_try;;
15271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15272 (eval "$ac_try") 2>&5
15274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275 (exit $ac_status); }; }; then
15276 ac_header_compiler=yes
15278 echo "$as_me: failed program was:" >&5
15279 sed 's/^/| /' conftest.$ac_ext >&5
15281 ac_header_compiler=no
15284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15285 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15286 echo "${ECHO_T}$ac_header_compiler" >&6; }
15288 # Is the header present?
15289 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15290 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15291 cat >conftest.$ac_ext <<_ACEOF
15294 cat confdefs.h >>conftest.$ac_ext
15295 cat >>conftest.$ac_ext <<_ACEOF
15296 /* end confdefs.h. */
15297 #include <$ac_header>
15299 if { (ac_try="$ac_cpp conftest.$ac_ext"
15300 case "(($ac_try" in
15301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15302 *) ac_try_echo=$ac_try;;
15304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15307 grep -v '^ *+' conftest.er1 >conftest.err
15309 cat conftest.err >&5
15310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 (exit $ac_status); } >/dev/null; then
15312 if test -s conftest.err; then
15313 ac_cpp_err=$ac_c_preproc_warn_flag
15314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15321 if test -z "$ac_cpp_err"; then
15322 ac_header_preproc=yes
15324 echo "$as_me: failed program was:" >&5
15325 sed 's/^/| /' conftest.$ac_ext >&5
15327 ac_header_preproc=no
15330 rm -f conftest.err conftest.$ac_ext
15331 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15332 echo "${ECHO_T}$ac_header_preproc" >&6; }
15334 # So? What about this header?
15335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15337 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15338 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15340 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15341 ac_header_preproc=yes
15344 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15345 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15346 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15347 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15348 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15349 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15350 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15351 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15353 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15354 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15355 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15357 ## ------------------------------------ ##
15358 ## Report this to http://llvm.org/bugs/ ##
15359 ## ------------------------------------ ##
15361 ) | sed "s/^/$as_me: WARNING: /" >&2
15364 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15367 echo $ECHO_N "(cached) $ECHO_C" >&6
15369 eval "$as_ac_Header=\$ac_header_preproc"
15371 ac_res=`eval echo '${'$as_ac_Header'}'`
15372 { echo "$as_me:$LINENO: result: $ac_res" >&5
15373 echo "${ECHO_T}$ac_res" >&6; }
15376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15377 cat >>confdefs.h <<_ACEOF
15378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15386 for ac_header in fenv.h
15388 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15390 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15393 echo $ECHO_N "(cached) $ECHO_C" >&6
15395 ac_res=`eval echo '${'$as_ac_Header'}'`
15396 { echo "$as_me:$LINENO: result: $ac_res" >&5
15397 echo "${ECHO_T}$ac_res" >&6; }
15399 # Is the header compilable?
15400 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15401 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15402 cat >conftest.$ac_ext <<_ACEOF
15405 cat confdefs.h >>conftest.$ac_ext
15406 cat >>conftest.$ac_ext <<_ACEOF
15407 /* end confdefs.h. */
15408 $ac_includes_default
15409 #include <$ac_header>
15411 rm -f conftest.$ac_objext
15412 if { (ac_try="$ac_compile"
15413 case "(($ac_try" in
15414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15415 *) ac_try_echo=$ac_try;;
15417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15418 (eval "$ac_compile") 2>conftest.er1
15420 grep -v '^ *+' conftest.er1 >conftest.err
15422 cat conftest.err >&5
15423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424 (exit $ac_status); } &&
15425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15426 { (case "(($ac_try" in
15427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15428 *) ac_try_echo=$ac_try;;
15430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15431 (eval "$ac_try") 2>&5
15433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434 (exit $ac_status); }; } &&
15435 { ac_try='test -s conftest.$ac_objext'
15436 { (case "(($ac_try" in
15437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15438 *) ac_try_echo=$ac_try;;
15440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15441 (eval "$ac_try") 2>&5
15443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444 (exit $ac_status); }; }; then
15445 ac_header_compiler=yes
15447 echo "$as_me: failed program was:" >&5
15448 sed 's/^/| /' conftest.$ac_ext >&5
15450 ac_header_compiler=no
15453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15454 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15455 echo "${ECHO_T}$ac_header_compiler" >&6; }
15457 # Is the header present?
15458 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15459 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15460 cat >conftest.$ac_ext <<_ACEOF
15463 cat confdefs.h >>conftest.$ac_ext
15464 cat >>conftest.$ac_ext <<_ACEOF
15465 /* end confdefs.h. */
15466 #include <$ac_header>
15468 if { (ac_try="$ac_cpp conftest.$ac_ext"
15469 case "(($ac_try" in
15470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15471 *) ac_try_echo=$ac_try;;
15473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15476 grep -v '^ *+' conftest.er1 >conftest.err
15478 cat conftest.err >&5
15479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480 (exit $ac_status); } >/dev/null; then
15481 if test -s conftest.err; then
15482 ac_cpp_err=$ac_c_preproc_warn_flag
15483 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15490 if test -z "$ac_cpp_err"; then
15491 ac_header_preproc=yes
15493 echo "$as_me: failed program was:" >&5
15494 sed 's/^/| /' conftest.$ac_ext >&5
15496 ac_header_preproc=no
15499 rm -f conftest.err conftest.$ac_ext
15500 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15501 echo "${ECHO_T}$ac_header_preproc" >&6; }
15503 # So? What about this header?
15504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15506 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15507 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15509 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15510 ac_header_preproc=yes
15513 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15514 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15515 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15516 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15517 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15518 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15519 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15520 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15522 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15523 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15524 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15526 ## ------------------------------------ ##
15527 ## Report this to http://llvm.org/bugs/ ##
15528 ## ------------------------------------ ##
15530 ) | sed "s/^/$as_me: WARNING: /" >&2
15533 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15536 echo $ECHO_N "(cached) $ECHO_C" >&6
15538 eval "$as_ac_Header=\$ac_header_preproc"
15540 ac_res=`eval echo '${'$as_ac_Header'}'`
15541 { echo "$as_me:$LINENO: result: $ac_res" >&5
15542 echo "${ECHO_T}$ac_res" >&6; }
15545 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15546 cat >>confdefs.h <<_ACEOF
15547 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15554 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15556 for ac_header in pthread.h
15558 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15559 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15560 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15563 echo $ECHO_N "(cached) $ECHO_C" >&6
15565 ac_res=`eval echo '${'$as_ac_Header'}'`
15566 { echo "$as_me:$LINENO: result: $ac_res" >&5
15567 echo "${ECHO_T}$ac_res" >&6; }
15569 # Is the header compilable?
15570 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15571 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15572 cat >conftest.$ac_ext <<_ACEOF
15575 cat confdefs.h >>conftest.$ac_ext
15576 cat >>conftest.$ac_ext <<_ACEOF
15577 /* end confdefs.h. */
15578 $ac_includes_default
15579 #include <$ac_header>
15581 rm -f conftest.$ac_objext
15582 if { (ac_try="$ac_compile"
15583 case "(($ac_try" in
15584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15585 *) ac_try_echo=$ac_try;;
15587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15588 (eval "$ac_compile") 2>conftest.er1
15590 grep -v '^ *+' conftest.er1 >conftest.err
15592 cat conftest.err >&5
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); } &&
15595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15596 { (case "(($ac_try" in
15597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15598 *) ac_try_echo=$ac_try;;
15600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15601 (eval "$ac_try") 2>&5
15603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604 (exit $ac_status); }; } &&
15605 { ac_try='test -s conftest.$ac_objext'
15606 { (case "(($ac_try" in
15607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15608 *) ac_try_echo=$ac_try;;
15610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15611 (eval "$ac_try") 2>&5
15613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614 (exit $ac_status); }; }; then
15615 ac_header_compiler=yes
15617 echo "$as_me: failed program was:" >&5
15618 sed 's/^/| /' conftest.$ac_ext >&5
15620 ac_header_compiler=no
15623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15624 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15625 echo "${ECHO_T}$ac_header_compiler" >&6; }
15627 # Is the header present?
15628 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15629 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15630 cat >conftest.$ac_ext <<_ACEOF
15633 cat confdefs.h >>conftest.$ac_ext
15634 cat >>conftest.$ac_ext <<_ACEOF
15635 /* end confdefs.h. */
15636 #include <$ac_header>
15638 if { (ac_try="$ac_cpp conftest.$ac_ext"
15639 case "(($ac_try" in
15640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15641 *) ac_try_echo=$ac_try;;
15643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15646 grep -v '^ *+' conftest.er1 >conftest.err
15648 cat conftest.err >&5
15649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 (exit $ac_status); } >/dev/null; then
15651 if test -s conftest.err; then
15652 ac_cpp_err=$ac_c_preproc_warn_flag
15653 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15660 if test -z "$ac_cpp_err"; then
15661 ac_header_preproc=yes
15663 echo "$as_me: failed program was:" >&5
15664 sed 's/^/| /' conftest.$ac_ext >&5
15666 ac_header_preproc=no
15669 rm -f conftest.err conftest.$ac_ext
15670 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15671 echo "${ECHO_T}$ac_header_preproc" >&6; }
15673 # So? What about this header?
15674 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15676 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15677 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15679 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15680 ac_header_preproc=yes
15683 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15684 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15685 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15686 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15687 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15688 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15689 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15690 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15692 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15693 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15694 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15696 ## ------------------------------------ ##
15697 ## Report this to http://llvm.org/bugs/ ##
15698 ## ------------------------------------ ##
15700 ) | sed "s/^/$as_me: WARNING: /" >&2
15703 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15705 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15706 echo $ECHO_N "(cached) $ECHO_C" >&6
15708 eval "$as_ac_Header=\$ac_header_preproc"
15710 ac_res=`eval echo '${'$as_ac_Header'}'`
15711 { echo "$as_me:$LINENO: result: $ac_res" >&5
15712 echo "${ECHO_T}$ac_res" >&6; }
15715 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15716 cat >>confdefs.h <<_ACEOF
15717 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15733 if test "$llvm_cv_enable_libffi" = "yes" ; then
15736 for ac_header in ffi.h ffi/ffi.h
15738 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15739 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15740 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15743 echo $ECHO_N "(cached) $ECHO_C" >&6
15745 ac_res=`eval echo '${'$as_ac_Header'}'`
15746 { echo "$as_me:$LINENO: result: $ac_res" >&5
15747 echo "${ECHO_T}$ac_res" >&6; }
15749 # Is the header compilable?
15750 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15751 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15752 cat >conftest.$ac_ext <<_ACEOF
15755 cat confdefs.h >>conftest.$ac_ext
15756 cat >>conftest.$ac_ext <<_ACEOF
15757 /* end confdefs.h. */
15758 $ac_includes_default
15759 #include <$ac_header>
15761 rm -f conftest.$ac_objext
15762 if { (ac_try="$ac_compile"
15763 case "(($ac_try" in
15764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15765 *) ac_try_echo=$ac_try;;
15767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15768 (eval "$ac_compile") 2>conftest.er1
15770 grep -v '^ *+' conftest.er1 >conftest.err
15772 cat conftest.err >&5
15773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774 (exit $ac_status); } &&
15775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15776 { (case "(($ac_try" in
15777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15778 *) ac_try_echo=$ac_try;;
15780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15781 (eval "$ac_try") 2>&5
15783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784 (exit $ac_status); }; } &&
15785 { ac_try='test -s conftest.$ac_objext'
15786 { (case "(($ac_try" in
15787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15788 *) ac_try_echo=$ac_try;;
15790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15791 (eval "$ac_try") 2>&5
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); }; }; then
15795 ac_header_compiler=yes
15797 echo "$as_me: failed program was:" >&5
15798 sed 's/^/| /' conftest.$ac_ext >&5
15800 ac_header_compiler=no
15803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15804 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15805 echo "${ECHO_T}$ac_header_compiler" >&6; }
15807 # Is the header present?
15808 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15809 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15810 cat >conftest.$ac_ext <<_ACEOF
15813 cat confdefs.h >>conftest.$ac_ext
15814 cat >>conftest.$ac_ext <<_ACEOF
15815 /* end confdefs.h. */
15816 #include <$ac_header>
15818 if { (ac_try="$ac_cpp conftest.$ac_ext"
15819 case "(($ac_try" in
15820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15821 *) ac_try_echo=$ac_try;;
15823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15826 grep -v '^ *+' conftest.er1 >conftest.err
15828 cat conftest.err >&5
15829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830 (exit $ac_status); } >/dev/null; then
15831 if test -s conftest.err; then
15832 ac_cpp_err=$ac_c_preproc_warn_flag
15833 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15840 if test -z "$ac_cpp_err"; then
15841 ac_header_preproc=yes
15843 echo "$as_me: failed program was:" >&5
15844 sed 's/^/| /' conftest.$ac_ext >&5
15846 ac_header_preproc=no
15849 rm -f conftest.err conftest.$ac_ext
15850 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15851 echo "${ECHO_T}$ac_header_preproc" >&6; }
15853 # So? What about this header?
15854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15856 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15857 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15859 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15860 ac_header_preproc=yes
15863 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15864 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15865 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15866 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15867 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15868 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15869 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15870 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15872 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15873 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15874 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15876 ## ------------------------------------ ##
15877 ## Report this to http://llvm.org/bugs/ ##
15878 ## ------------------------------------ ##
15880 ) | sed "s/^/$as_me: WARNING: /" >&2
15883 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15886 echo $ECHO_N "(cached) $ECHO_C" >&6
15888 eval "$as_ac_Header=\$ac_header_preproc"
15890 ac_res=`eval echo '${'$as_ac_Header'}'`
15891 { echo "$as_me:$LINENO: result: $ac_res" >&5
15892 echo "${ECHO_T}$ac_res" >&6; }
15895 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15896 cat >>confdefs.h <<_ACEOF
15897 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15907 for ac_header in CrashReporterClient.h
15909 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15911 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15914 echo $ECHO_N "(cached) $ECHO_C" >&6
15916 ac_res=`eval echo '${'$as_ac_Header'}'`
15917 { echo "$as_me:$LINENO: result: $ac_res" >&5
15918 echo "${ECHO_T}$ac_res" >&6; }
15920 # Is the header compilable?
15921 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15922 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15923 cat >conftest.$ac_ext <<_ACEOF
15926 cat confdefs.h >>conftest.$ac_ext
15927 cat >>conftest.$ac_ext <<_ACEOF
15928 /* end confdefs.h. */
15929 $ac_includes_default
15930 #include <$ac_header>
15932 rm -f conftest.$ac_objext
15933 if { (ac_try="$ac_compile"
15934 case "(($ac_try" in
15935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15936 *) ac_try_echo=$ac_try;;
15938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15939 (eval "$ac_compile") 2>conftest.er1
15941 grep -v '^ *+' conftest.er1 >conftest.err
15943 cat conftest.err >&5
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 (exit $ac_status); } &&
15946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15947 { (case "(($ac_try" in
15948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15949 *) ac_try_echo=$ac_try;;
15951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15952 (eval "$ac_try") 2>&5
15954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955 (exit $ac_status); }; } &&
15956 { ac_try='test -s conftest.$ac_objext'
15957 { (case "(($ac_try" in
15958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15959 *) ac_try_echo=$ac_try;;
15961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15962 (eval "$ac_try") 2>&5
15964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965 (exit $ac_status); }; }; then
15966 ac_header_compiler=yes
15968 echo "$as_me: failed program was:" >&5
15969 sed 's/^/| /' conftest.$ac_ext >&5
15971 ac_header_compiler=no
15974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15975 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15976 echo "${ECHO_T}$ac_header_compiler" >&6; }
15978 # Is the header present?
15979 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15980 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15981 cat >conftest.$ac_ext <<_ACEOF
15984 cat confdefs.h >>conftest.$ac_ext
15985 cat >>conftest.$ac_ext <<_ACEOF
15986 /* end confdefs.h. */
15987 #include <$ac_header>
15989 if { (ac_try="$ac_cpp conftest.$ac_ext"
15990 case "(($ac_try" in
15991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15992 *) ac_try_echo=$ac_try;;
15994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15997 grep -v '^ *+' conftest.er1 >conftest.err
15999 cat conftest.err >&5
16000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001 (exit $ac_status); } >/dev/null; then
16002 if test -s conftest.err; then
16003 ac_cpp_err=$ac_c_preproc_warn_flag
16004 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16011 if test -z "$ac_cpp_err"; then
16012 ac_header_preproc=yes
16014 echo "$as_me: failed program was:" >&5
16015 sed 's/^/| /' conftest.$ac_ext >&5
16017 ac_header_preproc=no
16020 rm -f conftest.err conftest.$ac_ext
16021 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16022 echo "${ECHO_T}$ac_header_preproc" >&6; }
16024 # So? What about this header?
16025 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16027 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16028 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16030 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16031 ac_header_preproc=yes
16034 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16035 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16036 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16037 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16038 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16039 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16040 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16041 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16043 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16044 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16045 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16047 ## ------------------------------------ ##
16048 ## Report this to http://llvm.org/bugs/ ##
16049 ## ------------------------------------ ##
16051 ) | sed "s/^/$as_me: WARNING: /" >&2
16054 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16057 echo $ECHO_N "(cached) $ECHO_C" >&6
16059 eval "$as_ac_Header=\$ac_header_preproc"
16061 ac_res=`eval echo '${'$as_ac_Header'}'`
16062 { echo "$as_me:$LINENO: result: $ac_res" >&5
16063 echo "${ECHO_T}$ac_res" >&6; }
16066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16067 cat >>confdefs.h <<_ACEOF
16068 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16076 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16077 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16078 cat >conftest.$ac_ext <<_ACEOF
16081 cat confdefs.h >>conftest.$ac_ext
16082 cat >>conftest.$ac_ext <<_ACEOF
16083 /* end confdefs.h. */
16084 extern const char *__crashreporter_info__;
16086 __crashreporter_info__ = "test";
16091 rm -f conftest.$ac_objext conftest$ac_exeext
16092 if { (ac_try="$ac_link"
16093 case "(($ac_try" in
16094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16095 *) ac_try_echo=$ac_try;;
16097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16098 (eval "$ac_link") 2>conftest.er1
16100 grep -v '^ *+' conftest.er1 >conftest.err
16102 cat conftest.err >&5
16103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104 (exit $ac_status); } &&
16105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16106 { (case "(($ac_try" in
16107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16108 *) ac_try_echo=$ac_try;;
16110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16111 (eval "$ac_try") 2>&5
16113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114 (exit $ac_status); }; } &&
16115 { ac_try='test -s conftest$ac_exeext'
16116 { (case "(($ac_try" in
16117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16118 *) ac_try_echo=$ac_try;;
16120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16121 (eval "$ac_try") 2>&5
16123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124 (exit $ac_status); }; }; then
16125 { echo "$as_me:$LINENO: result: yes" >&5
16126 echo "${ECHO_T}yes" >&6; }
16128 cat >>confdefs.h <<\_ACEOF
16129 #define HAVE_CRASHREPORTER_INFO 1
16133 echo "$as_me: failed program was:" >&5
16134 sed 's/^/| /' conftest.$ac_ext >&5
16136 { echo "$as_me:$LINENO: result: no" >&5
16137 echo "${ECHO_T}no" >&6; }
16139 cat >>confdefs.h <<\_ACEOF
16140 #define HAVE_CRASHREPORTER_INFO 0
16145 rm -f core conftest.err conftest.$ac_objext \
16146 conftest$ac_exeext conftest.$ac_ext
16151 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16152 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16153 if test "${ac_cv_huge_val_sanity+set}" = set; then
16154 echo $ECHO_N "(cached) $ECHO_C" >&6
16158 ac_cpp='$CXXCPP $CPPFLAGS'
16159 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16160 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16161 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16163 ac_save_CXXFLAGS=$CXXFLAGS
16165 if test "$cross_compiling" = yes; then
16166 ac_cv_huge_val_sanity=yes
16168 cat >conftest.$ac_ext <<_ACEOF
16171 cat confdefs.h >>conftest.$ac_ext
16172 cat >>conftest.$ac_ext <<_ACEOF
16173 /* end confdefs.h. */
16178 double x = HUGE_VAL; return x != x;
16183 rm -f conftest$ac_exeext
16184 if { (ac_try="$ac_link"
16185 case "(($ac_try" in
16186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16187 *) ac_try_echo=$ac_try;;
16189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16190 (eval "$ac_link") 2>&5
16192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16194 { (case "(($ac_try" in
16195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16196 *) ac_try_echo=$ac_try;;
16198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16199 (eval "$ac_try") 2>&5
16201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202 (exit $ac_status); }; }; then
16203 ac_cv_huge_val_sanity=yes
16205 echo "$as_me: program exited with status $ac_status" >&5
16206 echo "$as_me: failed program was:" >&5
16207 sed 's/^/| /' conftest.$ac_ext >&5
16209 ( exit $ac_status )
16210 ac_cv_huge_val_sanity=no
16212 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16216 CXXFLAGS=$ac_save_CXXFLAGS
16218 ac_cpp='$CPP $CPPFLAGS'
16219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16225 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16226 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16227 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16230 { echo "$as_me:$LINENO: checking for pid_t" >&5
16231 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16232 if test "${ac_cv_type_pid_t+set}" = set; then
16233 echo $ECHO_N "(cached) $ECHO_C" >&6
16235 cat >conftest.$ac_ext <<_ACEOF
16238 cat confdefs.h >>conftest.$ac_ext
16239 cat >>conftest.$ac_ext <<_ACEOF
16240 /* end confdefs.h. */
16241 $ac_includes_default
16242 typedef pid_t ac__type_new_;
16246 if ((ac__type_new_ *) 0)
16248 if (sizeof (ac__type_new_))
16254 rm -f conftest.$ac_objext
16255 if { (ac_try="$ac_compile"
16256 case "(($ac_try" in
16257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16258 *) ac_try_echo=$ac_try;;
16260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16261 (eval "$ac_compile") 2>conftest.er1
16263 grep -v '^ *+' conftest.er1 >conftest.err
16265 cat conftest.err >&5
16266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267 (exit $ac_status); } &&
16268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16269 { (case "(($ac_try" in
16270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16271 *) ac_try_echo=$ac_try;;
16273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16274 (eval "$ac_try") 2>&5
16276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 (exit $ac_status); }; } &&
16278 { ac_try='test -s conftest.$ac_objext'
16279 { (case "(($ac_try" in
16280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16281 *) ac_try_echo=$ac_try;;
16283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16284 (eval "$ac_try") 2>&5
16286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287 (exit $ac_status); }; }; then
16288 ac_cv_type_pid_t=yes
16290 echo "$as_me: failed program was:" >&5
16291 sed 's/^/| /' conftest.$ac_ext >&5
16293 ac_cv_type_pid_t=no
16296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16298 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16299 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16300 if test $ac_cv_type_pid_t = yes; then
16304 cat >>confdefs.h <<_ACEOF
16310 { echo "$as_me:$LINENO: checking for size_t" >&5
16311 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16312 if test "${ac_cv_type_size_t+set}" = set; then
16313 echo $ECHO_N "(cached) $ECHO_C" >&6
16315 cat >conftest.$ac_ext <<_ACEOF
16318 cat confdefs.h >>conftest.$ac_ext
16319 cat >>conftest.$ac_ext <<_ACEOF
16320 /* end confdefs.h. */
16321 $ac_includes_default
16322 typedef size_t ac__type_new_;
16326 if ((ac__type_new_ *) 0)
16328 if (sizeof (ac__type_new_))
16334 rm -f conftest.$ac_objext
16335 if { (ac_try="$ac_compile"
16336 case "(($ac_try" in
16337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16338 *) ac_try_echo=$ac_try;;
16340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16341 (eval "$ac_compile") 2>conftest.er1
16343 grep -v '^ *+' conftest.er1 >conftest.err
16345 cat conftest.err >&5
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); } &&
16348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16349 { (case "(($ac_try" in
16350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16351 *) ac_try_echo=$ac_try;;
16353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16354 (eval "$ac_try") 2>&5
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); }; } &&
16358 { ac_try='test -s conftest.$ac_objext'
16359 { (case "(($ac_try" in
16360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16361 *) ac_try_echo=$ac_try;;
16363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16364 (eval "$ac_try") 2>&5
16366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367 (exit $ac_status); }; }; then
16368 ac_cv_type_size_t=yes
16370 echo "$as_me: failed program was:" >&5
16371 sed 's/^/| /' conftest.$ac_ext >&5
16373 ac_cv_type_size_t=no
16376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16378 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16379 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16380 if test $ac_cv_type_size_t = yes; then
16384 cat >>confdefs.h <<_ACEOF
16385 #define size_t unsigned int
16391 cat >>confdefs.h <<_ACEOF
16392 #define RETSIGTYPE void
16395 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16396 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16397 if test "${ac_cv_struct_tm+set}" = set; then
16398 echo $ECHO_N "(cached) $ECHO_C" >&6
16400 cat >conftest.$ac_ext <<_ACEOF
16403 cat confdefs.h >>conftest.$ac_ext
16404 cat >>conftest.$ac_ext <<_ACEOF
16405 /* end confdefs.h. */
16406 #include <sys/types.h>
16412 struct tm *tp; tp->tm_sec;
16417 rm -f conftest.$ac_objext
16418 if { (ac_try="$ac_compile"
16419 case "(($ac_try" in
16420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16421 *) ac_try_echo=$ac_try;;
16423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16424 (eval "$ac_compile") 2>conftest.er1
16426 grep -v '^ *+' conftest.er1 >conftest.err
16428 cat conftest.err >&5
16429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430 (exit $ac_status); } &&
16431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16432 { (case "(($ac_try" in
16433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16434 *) ac_try_echo=$ac_try;;
16436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16437 (eval "$ac_try") 2>&5
16439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440 (exit $ac_status); }; } &&
16441 { ac_try='test -s conftest.$ac_objext'
16442 { (case "(($ac_try" in
16443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16444 *) ac_try_echo=$ac_try;;
16446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16447 (eval "$ac_try") 2>&5
16449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16450 (exit $ac_status); }; }; then
16451 ac_cv_struct_tm=time.h
16453 echo "$as_me: failed program was:" >&5
16454 sed 's/^/| /' conftest.$ac_ext >&5
16456 ac_cv_struct_tm=sys/time.h
16459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16461 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16462 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16463 if test $ac_cv_struct_tm = sys/time.h; then
16465 cat >>confdefs.h <<\_ACEOF
16466 #define TM_IN_SYS_TIME 1
16471 { echo "$as_me:$LINENO: checking for int64_t" >&5
16472 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16473 if test "${ac_cv_type_int64_t+set}" = set; then
16474 echo $ECHO_N "(cached) $ECHO_C" >&6
16476 cat >conftest.$ac_ext <<_ACEOF
16479 cat confdefs.h >>conftest.$ac_ext
16480 cat >>conftest.$ac_ext <<_ACEOF
16481 /* end confdefs.h. */
16482 $ac_includes_default
16483 typedef int64_t ac__type_new_;
16487 if ((ac__type_new_ *) 0)
16489 if (sizeof (ac__type_new_))
16495 rm -f conftest.$ac_objext
16496 if { (ac_try="$ac_compile"
16497 case "(($ac_try" in
16498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16499 *) ac_try_echo=$ac_try;;
16501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16502 (eval "$ac_compile") 2>conftest.er1
16504 grep -v '^ *+' conftest.er1 >conftest.err
16506 cat conftest.err >&5
16507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16508 (exit $ac_status); } &&
16509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16510 { (case "(($ac_try" in
16511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16512 *) ac_try_echo=$ac_try;;
16514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16515 (eval "$ac_try") 2>&5
16517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518 (exit $ac_status); }; } &&
16519 { ac_try='test -s conftest.$ac_objext'
16520 { (case "(($ac_try" in
16521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16522 *) ac_try_echo=$ac_try;;
16524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16525 (eval "$ac_try") 2>&5
16527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528 (exit $ac_status); }; }; then
16529 ac_cv_type_int64_t=yes
16531 echo "$as_me: failed program was:" >&5
16532 sed 's/^/| /' conftest.$ac_ext >&5
16534 ac_cv_type_int64_t=no
16537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16539 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16540 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16541 if test $ac_cv_type_int64_t = yes; then
16543 cat >>confdefs.h <<_ACEOF
16544 #define HAVE_INT64_T 1
16549 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16550 echo "$as_me: error: Type int64_t required but not found" >&2;}
16551 { (exit 1); exit 1; }; }
16554 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16555 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16556 if test "${ac_cv_type_uint64_t+set}" = set; then
16557 echo $ECHO_N "(cached) $ECHO_C" >&6
16559 cat >conftest.$ac_ext <<_ACEOF
16562 cat confdefs.h >>conftest.$ac_ext
16563 cat >>conftest.$ac_ext <<_ACEOF
16564 /* end confdefs.h. */
16565 $ac_includes_default
16566 typedef uint64_t ac__type_new_;
16570 if ((ac__type_new_ *) 0)
16572 if (sizeof (ac__type_new_))
16578 rm -f conftest.$ac_objext
16579 if { (ac_try="$ac_compile"
16580 case "(($ac_try" in
16581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16582 *) ac_try_echo=$ac_try;;
16584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16585 (eval "$ac_compile") 2>conftest.er1
16587 grep -v '^ *+' conftest.er1 >conftest.err
16589 cat conftest.err >&5
16590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591 (exit $ac_status); } &&
16592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16593 { (case "(($ac_try" in
16594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16595 *) ac_try_echo=$ac_try;;
16597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16598 (eval "$ac_try") 2>&5
16600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16601 (exit $ac_status); }; } &&
16602 { ac_try='test -s conftest.$ac_objext'
16603 { (case "(($ac_try" in
16604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16605 *) ac_try_echo=$ac_try;;
16607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16608 (eval "$ac_try") 2>&5
16610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611 (exit $ac_status); }; }; then
16612 ac_cv_type_uint64_t=yes
16614 echo "$as_me: failed program was:" >&5
16615 sed 's/^/| /' conftest.$ac_ext >&5
16617 ac_cv_type_uint64_t=no
16620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16622 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16623 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16624 if test $ac_cv_type_uint64_t = yes; then
16626 cat >>confdefs.h <<_ACEOF
16627 #define HAVE_UINT64_T 1
16632 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16633 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16634 if test "${ac_cv_type_u_int64_t+set}" = set; then
16635 echo $ECHO_N "(cached) $ECHO_C" >&6
16637 cat >conftest.$ac_ext <<_ACEOF
16640 cat confdefs.h >>conftest.$ac_ext
16641 cat >>conftest.$ac_ext <<_ACEOF
16642 /* end confdefs.h. */
16643 $ac_includes_default
16644 typedef u_int64_t ac__type_new_;
16648 if ((ac__type_new_ *) 0)
16650 if (sizeof (ac__type_new_))
16656 rm -f conftest.$ac_objext
16657 if { (ac_try="$ac_compile"
16658 case "(($ac_try" in
16659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16660 *) ac_try_echo=$ac_try;;
16662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16663 (eval "$ac_compile") 2>conftest.er1
16665 grep -v '^ *+' conftest.er1 >conftest.err
16667 cat conftest.err >&5
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); } &&
16670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16671 { (case "(($ac_try" in
16672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16673 *) ac_try_echo=$ac_try;;
16675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16676 (eval "$ac_try") 2>&5
16678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679 (exit $ac_status); }; } &&
16680 { ac_try='test -s conftest.$ac_objext'
16681 { (case "(($ac_try" in
16682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16683 *) ac_try_echo=$ac_try;;
16685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16686 (eval "$ac_try") 2>&5
16688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689 (exit $ac_status); }; }; then
16690 ac_cv_type_u_int64_t=yes
16692 echo "$as_me: failed program was:" >&5
16693 sed 's/^/| /' conftest.$ac_ext >&5
16695 ac_cv_type_u_int64_t=no
16698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16700 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16701 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16702 if test $ac_cv_type_u_int64_t = yes; then
16704 cat >>confdefs.h <<_ACEOF
16705 #define HAVE_U_INT64_T 1
16710 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16711 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16712 { (exit 1); exit 1; }; }
16726 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16728 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16729 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16730 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16731 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16732 echo $ECHO_N "(cached) $ECHO_C" >&6
16734 cat >conftest.$ac_ext <<_ACEOF
16737 cat confdefs.h >>conftest.$ac_ext
16738 cat >>conftest.$ac_ext <<_ACEOF
16739 /* end confdefs.h. */
16740 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16742 #define $ac_func innocuous_$ac_func
16744 /* System header to define __stub macros and hopefully few prototypes,
16745 which can conflict with char $ac_func (); below.
16746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16747 <limits.h> exists even on freestanding compilers. */
16750 # include <limits.h>
16752 # include <assert.h>
16757 /* Override any GCC internal prototype to avoid an error.
16758 Use char because int might match the return type of a GCC
16759 builtin and then its argument prototype would still apply. */
16764 /* The GNU C library defines this for functions which it implements
16765 to always fail with ENOSYS. Some functions are actually named
16766 something starting with __ and the normal name is an alias. */
16767 #if defined __stub_$ac_func || defined __stub___$ac_func
16774 return $ac_func ();
16779 rm -f conftest.$ac_objext conftest$ac_exeext
16780 if { (ac_try="$ac_link"
16781 case "(($ac_try" in
16782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16783 *) ac_try_echo=$ac_try;;
16785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16786 (eval "$ac_link") 2>conftest.er1
16788 grep -v '^ *+' conftest.er1 >conftest.err
16790 cat conftest.err >&5
16791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16792 (exit $ac_status); } &&
16793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16794 { (case "(($ac_try" in
16795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16796 *) ac_try_echo=$ac_try;;
16798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16799 (eval "$ac_try") 2>&5
16801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802 (exit $ac_status); }; } &&
16803 { ac_try='test -s conftest$ac_exeext'
16804 { (case "(($ac_try" in
16805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16806 *) ac_try_echo=$ac_try;;
16808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16809 (eval "$ac_try") 2>&5
16811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812 (exit $ac_status); }; }; then
16813 eval "$as_ac_var=yes"
16815 echo "$as_me: failed program was:" >&5
16816 sed 's/^/| /' conftest.$ac_ext >&5
16818 eval "$as_ac_var=no"
16821 rm -f core conftest.err conftest.$ac_objext \
16822 conftest$ac_exeext conftest.$ac_ext
16824 ac_res=`eval echo '${'$as_ac_var'}'`
16825 { echo "$as_me:$LINENO: result: $ac_res" >&5
16826 echo "${ECHO_T}$ac_res" >&6; }
16827 if test `eval echo '${'$as_ac_var'}'` = yes; then
16828 cat >>confdefs.h <<_ACEOF
16829 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16839 for ac_func in powf fmodf strtof round
16841 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16842 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16843 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16844 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16845 echo $ECHO_N "(cached) $ECHO_C" >&6
16847 cat >conftest.$ac_ext <<_ACEOF
16850 cat confdefs.h >>conftest.$ac_ext
16851 cat >>conftest.$ac_ext <<_ACEOF
16852 /* end confdefs.h. */
16853 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16855 #define $ac_func innocuous_$ac_func
16857 /* System header to define __stub macros and hopefully few prototypes,
16858 which can conflict with char $ac_func (); below.
16859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16860 <limits.h> exists even on freestanding compilers. */
16863 # include <limits.h>
16865 # include <assert.h>
16870 /* Override any GCC internal prototype to avoid an error.
16871 Use char because int might match the return type of a GCC
16872 builtin and then its argument prototype would still apply. */
16877 /* The GNU C library defines this for functions which it implements
16878 to always fail with ENOSYS. Some functions are actually named
16879 something starting with __ and the normal name is an alias. */
16880 #if defined __stub_$ac_func || defined __stub___$ac_func
16887 return $ac_func ();
16892 rm -f conftest.$ac_objext conftest$ac_exeext
16893 if { (ac_try="$ac_link"
16894 case "(($ac_try" in
16895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16896 *) ac_try_echo=$ac_try;;
16898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16899 (eval "$ac_link") 2>conftest.er1
16901 grep -v '^ *+' conftest.er1 >conftest.err
16903 cat conftest.err >&5
16904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905 (exit $ac_status); } &&
16906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16907 { (case "(($ac_try" in
16908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16909 *) ac_try_echo=$ac_try;;
16911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16912 (eval "$ac_try") 2>&5
16914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915 (exit $ac_status); }; } &&
16916 { ac_try='test -s conftest$ac_exeext'
16917 { (case "(($ac_try" in
16918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16919 *) ac_try_echo=$ac_try;;
16921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16922 (eval "$ac_try") 2>&5
16924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925 (exit $ac_status); }; }; then
16926 eval "$as_ac_var=yes"
16928 echo "$as_me: failed program was:" >&5
16929 sed 's/^/| /' conftest.$ac_ext >&5
16931 eval "$as_ac_var=no"
16934 rm -f core conftest.err conftest.$ac_objext \
16935 conftest$ac_exeext conftest.$ac_ext
16937 ac_res=`eval echo '${'$as_ac_var'}'`
16938 { echo "$as_me:$LINENO: result: $ac_res" >&5
16939 echo "${ECHO_T}$ac_res" >&6; }
16940 if test `eval echo '${'$as_ac_var'}'` = yes; then
16941 cat >>confdefs.h <<_ACEOF
16942 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16953 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16955 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16956 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16957 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16958 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16959 echo $ECHO_N "(cached) $ECHO_C" >&6
16961 cat >conftest.$ac_ext <<_ACEOF
16964 cat confdefs.h >>conftest.$ac_ext
16965 cat >>conftest.$ac_ext <<_ACEOF
16966 /* end confdefs.h. */
16967 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16968 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16969 #define $ac_func innocuous_$ac_func
16971 /* System header to define __stub macros and hopefully few prototypes,
16972 which can conflict with char $ac_func (); below.
16973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16974 <limits.h> exists even on freestanding compilers. */
16977 # include <limits.h>
16979 # include <assert.h>
16984 /* Override any GCC internal prototype to avoid an error.
16985 Use char because int might match the return type of a GCC
16986 builtin and then its argument prototype would still apply. */
16991 /* The GNU C library defines this for functions which it implements
16992 to always fail with ENOSYS. Some functions are actually named
16993 something starting with __ and the normal name is an alias. */
16994 #if defined __stub_$ac_func || defined __stub___$ac_func
17001 return $ac_func ();
17006 rm -f conftest.$ac_objext conftest$ac_exeext
17007 if { (ac_try="$ac_link"
17008 case "(($ac_try" in
17009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17010 *) ac_try_echo=$ac_try;;
17012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17013 (eval "$ac_link") 2>conftest.er1
17015 grep -v '^ *+' conftest.er1 >conftest.err
17017 cat conftest.err >&5
17018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019 (exit $ac_status); } &&
17020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17021 { (case "(($ac_try" in
17022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17023 *) ac_try_echo=$ac_try;;
17025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17026 (eval "$ac_try") 2>&5
17028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029 (exit $ac_status); }; } &&
17030 { ac_try='test -s conftest$ac_exeext'
17031 { (case "(($ac_try" in
17032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17033 *) ac_try_echo=$ac_try;;
17035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17036 (eval "$ac_try") 2>&5
17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); }; }; then
17040 eval "$as_ac_var=yes"
17042 echo "$as_me: failed program was:" >&5
17043 sed 's/^/| /' conftest.$ac_ext >&5
17045 eval "$as_ac_var=no"
17048 rm -f core conftest.err conftest.$ac_objext \
17049 conftest$ac_exeext conftest.$ac_ext
17051 ac_res=`eval echo '${'$as_ac_var'}'`
17052 { echo "$as_me:$LINENO: result: $ac_res" >&5
17053 echo "${ECHO_T}$ac_res" >&6; }
17054 if test `eval echo '${'$as_ac_var'}'` = yes; then
17055 cat >>confdefs.h <<_ACEOF
17056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17065 for ac_func in isatty mkdtemp mkstemp
17067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17068 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17070 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17071 echo $ECHO_N "(cached) $ECHO_C" >&6
17073 cat >conftest.$ac_ext <<_ACEOF
17076 cat confdefs.h >>conftest.$ac_ext
17077 cat >>conftest.$ac_ext <<_ACEOF
17078 /* end confdefs.h. */
17079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17081 #define $ac_func innocuous_$ac_func
17083 /* System header to define __stub macros and hopefully few prototypes,
17084 which can conflict with char $ac_func (); below.
17085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17086 <limits.h> exists even on freestanding compilers. */
17089 # include <limits.h>
17091 # include <assert.h>
17096 /* Override any GCC internal prototype to avoid an error.
17097 Use char because int might match the return type of a GCC
17098 builtin and then its argument prototype would still apply. */
17103 /* The GNU C library defines this for functions which it implements
17104 to always fail with ENOSYS. Some functions are actually named
17105 something starting with __ and the normal name is an alias. */
17106 #if defined __stub_$ac_func || defined __stub___$ac_func
17113 return $ac_func ();
17118 rm -f conftest.$ac_objext conftest$ac_exeext
17119 if { (ac_try="$ac_link"
17120 case "(($ac_try" in
17121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17122 *) ac_try_echo=$ac_try;;
17124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17125 (eval "$ac_link") 2>conftest.er1
17127 grep -v '^ *+' conftest.er1 >conftest.err
17129 cat conftest.err >&5
17130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131 (exit $ac_status); } &&
17132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17133 { (case "(($ac_try" in
17134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17135 *) ac_try_echo=$ac_try;;
17137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17138 (eval "$ac_try") 2>&5
17140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141 (exit $ac_status); }; } &&
17142 { ac_try='test -s conftest$ac_exeext'
17143 { (case "(($ac_try" in
17144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17145 *) ac_try_echo=$ac_try;;
17147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17148 (eval "$ac_try") 2>&5
17150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151 (exit $ac_status); }; }; then
17152 eval "$as_ac_var=yes"
17154 echo "$as_me: failed program was:" >&5
17155 sed 's/^/| /' conftest.$ac_ext >&5
17157 eval "$as_ac_var=no"
17160 rm -f core conftest.err conftest.$ac_objext \
17161 conftest$ac_exeext conftest.$ac_ext
17163 ac_res=`eval echo '${'$as_ac_var'}'`
17164 { echo "$as_me:$LINENO: result: $ac_res" >&5
17165 echo "${ECHO_T}$ac_res" >&6; }
17166 if test `eval echo '${'$as_ac_var'}'` = yes; then
17167 cat >>confdefs.h <<_ACEOF
17168 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17181 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17183 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17184 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17185 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17186 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17187 echo $ECHO_N "(cached) $ECHO_C" >&6
17189 cat >conftest.$ac_ext <<_ACEOF
17192 cat confdefs.h >>conftest.$ac_ext
17193 cat >>conftest.$ac_ext <<_ACEOF
17194 /* end confdefs.h. */
17195 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17197 #define $ac_func innocuous_$ac_func
17199 /* System header to define __stub macros and hopefully few prototypes,
17200 which can conflict with char $ac_func (); below.
17201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17202 <limits.h> exists even on freestanding compilers. */
17205 # include <limits.h>
17207 # include <assert.h>
17212 /* Override any GCC internal prototype to avoid an error.
17213 Use char because int might match the return type of a GCC
17214 builtin and then its argument prototype would still apply. */
17219 /* The GNU C library defines this for functions which it implements
17220 to always fail with ENOSYS. Some functions are actually named
17221 something starting with __ and the normal name is an alias. */
17222 #if defined __stub_$ac_func || defined __stub___$ac_func
17229 return $ac_func ();
17234 rm -f conftest.$ac_objext conftest$ac_exeext
17235 if { (ac_try="$ac_link"
17236 case "(($ac_try" in
17237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17238 *) ac_try_echo=$ac_try;;
17240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17241 (eval "$ac_link") 2>conftest.er1
17243 grep -v '^ *+' conftest.er1 >conftest.err
17245 cat conftest.err >&5
17246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247 (exit $ac_status); } &&
17248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17249 { (case "(($ac_try" in
17250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17251 *) ac_try_echo=$ac_try;;
17253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17254 (eval "$ac_try") 2>&5
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); }; } &&
17258 { ac_try='test -s conftest$ac_exeext'
17259 { (case "(($ac_try" in
17260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17261 *) ac_try_echo=$ac_try;;
17263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17264 (eval "$ac_try") 2>&5
17266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267 (exit $ac_status); }; }; then
17268 eval "$as_ac_var=yes"
17270 echo "$as_me: failed program was:" >&5
17271 sed 's/^/| /' conftest.$ac_ext >&5
17273 eval "$as_ac_var=no"
17276 rm -f core conftest.err conftest.$ac_objext \
17277 conftest$ac_exeext conftest.$ac_ext
17279 ac_res=`eval echo '${'$as_ac_var'}'`
17280 { echo "$as_me:$LINENO: result: $ac_res" >&5
17281 echo "${ECHO_T}$ac_res" >&6; }
17282 if test `eval echo '${'$as_ac_var'}'` = yes; then
17283 cat >>confdefs.h <<_ACEOF
17284 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17293 for ac_func in strerror strerror_r setenv
17295 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17296 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17297 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17298 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17299 echo $ECHO_N "(cached) $ECHO_C" >&6
17301 cat >conftest.$ac_ext <<_ACEOF
17304 cat confdefs.h >>conftest.$ac_ext
17305 cat >>conftest.$ac_ext <<_ACEOF
17306 /* end confdefs.h. */
17307 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17309 #define $ac_func innocuous_$ac_func
17311 /* System header to define __stub macros and hopefully few prototypes,
17312 which can conflict with char $ac_func (); below.
17313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17314 <limits.h> exists even on freestanding compilers. */
17317 # include <limits.h>
17319 # include <assert.h>
17324 /* Override any GCC internal prototype to avoid an error.
17325 Use char because int might match the return type of a GCC
17326 builtin and then its argument prototype would still apply. */
17331 /* The GNU C library defines this for functions which it implements
17332 to always fail with ENOSYS. Some functions are actually named
17333 something starting with __ and the normal name is an alias. */
17334 #if defined __stub_$ac_func || defined __stub___$ac_func
17341 return $ac_func ();
17346 rm -f conftest.$ac_objext conftest$ac_exeext
17347 if { (ac_try="$ac_link"
17348 case "(($ac_try" in
17349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17350 *) ac_try_echo=$ac_try;;
17352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17353 (eval "$ac_link") 2>conftest.er1
17355 grep -v '^ *+' conftest.er1 >conftest.err
17357 cat conftest.err >&5
17358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17359 (exit $ac_status); } &&
17360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17361 { (case "(($ac_try" in
17362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17363 *) ac_try_echo=$ac_try;;
17365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17366 (eval "$ac_try") 2>&5
17368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369 (exit $ac_status); }; } &&
17370 { ac_try='test -s conftest$ac_exeext'
17371 { (case "(($ac_try" in
17372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17373 *) ac_try_echo=$ac_try;;
17375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17376 (eval "$ac_try") 2>&5
17378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379 (exit $ac_status); }; }; then
17380 eval "$as_ac_var=yes"
17382 echo "$as_me: failed program was:" >&5
17383 sed 's/^/| /' conftest.$ac_ext >&5
17385 eval "$as_ac_var=no"
17388 rm -f core conftest.err conftest.$ac_objext \
17389 conftest$ac_exeext conftest.$ac_ext
17391 ac_res=`eval echo '${'$as_ac_var'}'`
17392 { echo "$as_me:$LINENO: result: $ac_res" >&5
17393 echo "${ECHO_T}$ac_res" >&6; }
17394 if test `eval echo '${'$as_ac_var'}'` = yes; then
17395 cat >>confdefs.h <<_ACEOF
17396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17406 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17408 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17409 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17410 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17411 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17412 echo $ECHO_N "(cached) $ECHO_C" >&6
17414 cat >conftest.$ac_ext <<_ACEOF
17417 cat confdefs.h >>conftest.$ac_ext
17418 cat >>conftest.$ac_ext <<_ACEOF
17419 /* end confdefs.h. */
17420 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17422 #define $ac_func innocuous_$ac_func
17424 /* System header to define __stub macros and hopefully few prototypes,
17425 which can conflict with char $ac_func (); below.
17426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17427 <limits.h> exists even on freestanding compilers. */
17430 # include <limits.h>
17432 # include <assert.h>
17437 /* Override any GCC internal prototype to avoid an error.
17438 Use char because int might match the return type of a GCC
17439 builtin and then its argument prototype would still apply. */
17444 /* The GNU C library defines this for functions which it implements
17445 to always fail with ENOSYS. Some functions are actually named
17446 something starting with __ and the normal name is an alias. */
17447 #if defined __stub_$ac_func || defined __stub___$ac_func
17454 return $ac_func ();
17459 rm -f conftest.$ac_objext conftest$ac_exeext
17460 if { (ac_try="$ac_link"
17461 case "(($ac_try" in
17462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17463 *) ac_try_echo=$ac_try;;
17465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17466 (eval "$ac_link") 2>conftest.er1
17468 grep -v '^ *+' conftest.er1 >conftest.err
17470 cat conftest.err >&5
17471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472 (exit $ac_status); } &&
17473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17474 { (case "(($ac_try" in
17475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17476 *) ac_try_echo=$ac_try;;
17478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17479 (eval "$ac_try") 2>&5
17481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482 (exit $ac_status); }; } &&
17483 { ac_try='test -s conftest$ac_exeext'
17484 { (case "(($ac_try" in
17485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17486 *) ac_try_echo=$ac_try;;
17488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17489 (eval "$ac_try") 2>&5
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); }; }; then
17493 eval "$as_ac_var=yes"
17495 echo "$as_me: failed program was:" >&5
17496 sed 's/^/| /' conftest.$ac_ext >&5
17498 eval "$as_ac_var=no"
17501 rm -f core conftest.err conftest.$ac_objext \
17502 conftest$ac_exeext conftest.$ac_ext
17504 ac_res=`eval echo '${'$as_ac_var'}'`
17505 { echo "$as_me:$LINENO: result: $ac_res" >&5
17506 echo "${ECHO_T}$ac_res" >&6; }
17507 if test `eval echo '${'$as_ac_var'}'` = yes; then
17508 cat >>confdefs.h <<_ACEOF
17509 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17520 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17522 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17523 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17524 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17525 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17526 echo $ECHO_N "(cached) $ECHO_C" >&6
17528 cat >conftest.$ac_ext <<_ACEOF
17531 cat confdefs.h >>conftest.$ac_ext
17532 cat >>conftest.$ac_ext <<_ACEOF
17533 /* end confdefs.h. */
17534 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17535 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17536 #define $ac_func innocuous_$ac_func
17538 /* System header to define __stub macros and hopefully few prototypes,
17539 which can conflict with char $ac_func (); below.
17540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17541 <limits.h> exists even on freestanding compilers. */
17544 # include <limits.h>
17546 # include <assert.h>
17551 /* Override any GCC internal prototype to avoid an error.
17552 Use char because int might match the return type of a GCC
17553 builtin and then its argument prototype would still apply. */
17558 /* The GNU C library defines this for functions which it implements
17559 to always fail with ENOSYS. Some functions are actually named
17560 something starting with __ and the normal name is an alias. */
17561 #if defined __stub_$ac_func || defined __stub___$ac_func
17568 return $ac_func ();
17573 rm -f conftest.$ac_objext conftest$ac_exeext
17574 if { (ac_try="$ac_link"
17575 case "(($ac_try" in
17576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17577 *) ac_try_echo=$ac_try;;
17579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17580 (eval "$ac_link") 2>conftest.er1
17582 grep -v '^ *+' conftest.er1 >conftest.err
17584 cat conftest.err >&5
17585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586 (exit $ac_status); } &&
17587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17588 { (case "(($ac_try" in
17589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17590 *) ac_try_echo=$ac_try;;
17592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17593 (eval "$ac_try") 2>&5
17595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596 (exit $ac_status); }; } &&
17597 { ac_try='test -s conftest$ac_exeext'
17598 { (case "(($ac_try" in
17599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17600 *) ac_try_echo=$ac_try;;
17602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17603 (eval "$ac_try") 2>&5
17605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606 (exit $ac_status); }; }; then
17607 eval "$as_ac_var=yes"
17609 echo "$as_me: failed program was:" >&5
17610 sed 's/^/| /' conftest.$ac_ext >&5
17612 eval "$as_ac_var=no"
17615 rm -f core conftest.err conftest.$ac_objext \
17616 conftest$ac_exeext conftest.$ac_ext
17618 ac_res=`eval echo '${'$as_ac_var'}'`
17619 { echo "$as_me:$LINENO: result: $ac_res" >&5
17620 echo "${ECHO_T}$ac_res" >&6; }
17621 if test `eval echo '${'$as_ac_var'}'` = yes; then
17622 cat >>confdefs.h <<_ACEOF
17623 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17629 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17630 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17631 if test "${llvm_cv_c_printf_a+set}" = set; then
17632 echo $ECHO_N "(cached) $ECHO_C" >&6
17635 ac_cpp='$CPP $CPPFLAGS'
17636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17640 if test "$cross_compiling" = yes; then
17641 llvmac_cv_c_printf_a=no
17643 cat >conftest.$ac_ext <<_ACEOF
17647 cat confdefs.h >>conftest.$ac_ext
17648 cat >>conftest.$ac_ext <<_ACEOF
17649 /* end confdefs.h. */
17652 #include <stdlib.h>
17658 volatile double A, B;
17662 sprintf(Buffer, "%a", A);
17666 if (A != 0x1.999999999999ap-4)
17673 rm -f conftest$ac_exeext
17674 if { (ac_try="$ac_link"
17675 case "(($ac_try" in
17676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17677 *) ac_try_echo=$ac_try;;
17679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17680 (eval "$ac_link") 2>&5
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17684 { (case "(($ac_try" in
17685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17686 *) ac_try_echo=$ac_try;;
17688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17689 (eval "$ac_try") 2>&5
17691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692 (exit $ac_status); }; }; then
17693 llvm_cv_c_printf_a=yes
17695 echo "$as_me: program exited with status $ac_status" >&5
17696 echo "$as_me: failed program was:" >&5
17697 sed 's/^/| /' conftest.$ac_ext >&5
17699 ( exit $ac_status )
17700 llvmac_cv_c_printf_a=no
17702 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17707 ac_cpp='$CPP $CPPFLAGS'
17708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17713 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17714 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17715 if test "$llvm_cv_c_printf_a" = "yes"; then
17717 cat >>confdefs.h <<\_ACEOF
17718 #define HAVE_PRINTF_A 1
17724 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17725 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17726 if test "${ac_cv_func_rand48+set}" = set; then
17727 echo $ECHO_N "(cached) $ECHO_C" >&6
17730 ac_cpp='$CXXCPP $CPPFLAGS'
17731 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17732 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17733 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17735 cat >conftest.$ac_ext <<_ACEOF
17738 cat confdefs.h >>conftest.$ac_ext
17739 cat >>conftest.$ac_ext <<_ACEOF
17740 /* end confdefs.h. */
17741 #include <stdlib.h>
17745 srand48(0);lrand48();drand48();
17750 rm -f conftest.$ac_objext
17751 if { (ac_try="$ac_compile"
17752 case "(($ac_try" in
17753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17754 *) ac_try_echo=$ac_try;;
17756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17757 (eval "$ac_compile") 2>conftest.er1
17759 grep -v '^ *+' conftest.er1 >conftest.err
17761 cat conftest.err >&5
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); } &&
17764 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17765 { (case "(($ac_try" in
17766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17767 *) ac_try_echo=$ac_try;;
17769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17770 (eval "$ac_try") 2>&5
17772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773 (exit $ac_status); }; } &&
17774 { ac_try='test -s conftest.$ac_objext'
17775 { (case "(($ac_try" in
17776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17777 *) ac_try_echo=$ac_try;;
17779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17780 (eval "$ac_try") 2>&5
17782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783 (exit $ac_status); }; }; then
17784 ac_cv_func_rand48=yes
17786 echo "$as_me: failed program was:" >&5
17787 sed 's/^/| /' conftest.$ac_ext >&5
17789 ac_cv_func_rand48=no
17792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17794 ac_cpp='$CPP $CPPFLAGS'
17795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17800 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17801 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17803 if test "$ac_cv_func_rand48" = "yes" ; then
17805 cat >>confdefs.h <<\_ACEOF
17806 #define HAVE_RAND48 1
17812 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17813 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17814 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17815 echo $ECHO_N "(cached) $ECHO_C" >&6
17817 cat >conftest.$ac_ext <<_ACEOF
17820 cat confdefs.h >>conftest.$ac_ext
17821 cat >>conftest.$ac_ext <<_ACEOF
17822 /* end confdefs.h. */
17823 $ac_includes_default
17828 char *p = (char *) strerror_s;
17836 rm -f conftest.$ac_objext
17837 if { (ac_try="$ac_compile"
17838 case "(($ac_try" in
17839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17840 *) ac_try_echo=$ac_try;;
17842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17843 (eval "$ac_compile") 2>conftest.er1
17845 grep -v '^ *+' conftest.er1 >conftest.err
17847 cat conftest.err >&5
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); } &&
17850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17851 { (case "(($ac_try" in
17852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17853 *) ac_try_echo=$ac_try;;
17855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17856 (eval "$ac_try") 2>&5
17858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); }; } &&
17860 { ac_try='test -s conftest.$ac_objext'
17861 { (case "(($ac_try" in
17862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17863 *) ac_try_echo=$ac_try;;
17865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17866 (eval "$ac_try") 2>&5
17868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); }; }; then
17870 ac_cv_have_decl_strerror_s=yes
17872 echo "$as_me: failed program was:" >&5
17873 sed 's/^/| /' conftest.$ac_ext >&5
17875 ac_cv_have_decl_strerror_s=no
17878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17880 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17881 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17882 if test $ac_cv_have_decl_strerror_s = yes; then
17884 cat >>confdefs.h <<_ACEOF
17885 #define HAVE_DECL_STRERROR_S 1
17890 cat >>confdefs.h <<_ACEOF
17891 #define HAVE_DECL_STRERROR_S 0
17899 if test "$llvm_cv_os_type" = "MingW" ; then
17900 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17901 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17902 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17903 echo $ECHO_N "(cached) $ECHO_C" >&6
17905 ac_check_lib_save_LIBS=$LIBS
17907 cat >conftest.$ac_ext <<_ACEOF
17910 cat confdefs.h >>conftest.$ac_ext
17911 cat >>conftest.$ac_ext <<_ACEOF
17912 /* end confdefs.h. */
17914 /* Override any GCC internal prototype to avoid an error.
17915 Use char because int might match the return type of a GCC
17916 builtin and then its argument prototype would still apply. */
17929 rm -f conftest.$ac_objext conftest$ac_exeext
17930 if { (ac_try="$ac_link"
17931 case "(($ac_try" in
17932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17933 *) ac_try_echo=$ac_try;;
17935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17936 (eval "$ac_link") 2>conftest.er1
17938 grep -v '^ *+' conftest.er1 >conftest.err
17940 cat conftest.err >&5
17941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17942 (exit $ac_status); } &&
17943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17944 { (case "(($ac_try" in
17945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17946 *) ac_try_echo=$ac_try;;
17948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17949 (eval "$ac_try") 2>&5
17951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952 (exit $ac_status); }; } &&
17953 { ac_try='test -s conftest$ac_exeext'
17954 { (case "(($ac_try" in
17955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17956 *) ac_try_echo=$ac_try;;
17958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17959 (eval "$ac_try") 2>&5
17961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962 (exit $ac_status); }; }; then
17963 ac_cv_lib_gcc__alloca=yes
17965 echo "$as_me: failed program was:" >&5
17966 sed 's/^/| /' conftest.$ac_ext >&5
17968 ac_cv_lib_gcc__alloca=no
17971 rm -f core conftest.err conftest.$ac_objext \
17972 conftest$ac_exeext conftest.$ac_ext
17973 LIBS=$ac_check_lib_save_LIBS
17975 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17976 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17977 if test $ac_cv_lib_gcc__alloca = yes; then
17979 cat >>confdefs.h <<\_ACEOF
17980 #define HAVE__ALLOCA 1
17985 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17986 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17987 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17988 echo $ECHO_N "(cached) $ECHO_C" >&6
17990 ac_check_lib_save_LIBS=$LIBS
17992 cat >conftest.$ac_ext <<_ACEOF
17995 cat confdefs.h >>conftest.$ac_ext
17996 cat >>conftest.$ac_ext <<_ACEOF
17997 /* end confdefs.h. */
17999 /* Override any GCC internal prototype to avoid an error.
18000 Use char because int might match the return type of a GCC
18001 builtin and then its argument prototype would still apply. */
18009 return __alloca ();
18014 rm -f conftest.$ac_objext conftest$ac_exeext
18015 if { (ac_try="$ac_link"
18016 case "(($ac_try" in
18017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18018 *) ac_try_echo=$ac_try;;
18020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18021 (eval "$ac_link") 2>conftest.er1
18023 grep -v '^ *+' conftest.er1 >conftest.err
18025 cat conftest.err >&5
18026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18027 (exit $ac_status); } &&
18028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18029 { (case "(($ac_try" in
18030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18031 *) ac_try_echo=$ac_try;;
18033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18034 (eval "$ac_try") 2>&5
18036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18037 (exit $ac_status); }; } &&
18038 { ac_try='test -s conftest$ac_exeext'
18039 { (case "(($ac_try" in
18040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18041 *) ac_try_echo=$ac_try;;
18043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18044 (eval "$ac_try") 2>&5
18046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18047 (exit $ac_status); }; }; then
18048 ac_cv_lib_gcc___alloca=yes
18050 echo "$as_me: failed program was:" >&5
18051 sed 's/^/| /' conftest.$ac_ext >&5
18053 ac_cv_lib_gcc___alloca=no
18056 rm -f core conftest.err conftest.$ac_objext \
18057 conftest$ac_exeext conftest.$ac_ext
18058 LIBS=$ac_check_lib_save_LIBS
18060 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18061 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18062 if test $ac_cv_lib_gcc___alloca = yes; then
18064 cat >>confdefs.h <<\_ACEOF
18065 #define HAVE___ALLOCA 1
18070 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18071 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18072 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18073 echo $ECHO_N "(cached) $ECHO_C" >&6
18075 ac_check_lib_save_LIBS=$LIBS
18077 cat >conftest.$ac_ext <<_ACEOF
18080 cat confdefs.h >>conftest.$ac_ext
18081 cat >>conftest.$ac_ext <<_ACEOF
18082 /* end confdefs.h. */
18084 /* Override any GCC internal prototype to avoid an error.
18085 Use char because int might match the return type of a GCC
18086 builtin and then its argument prototype would still apply. */
18094 return __chkstk ();
18099 rm -f conftest.$ac_objext conftest$ac_exeext
18100 if { (ac_try="$ac_link"
18101 case "(($ac_try" in
18102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18103 *) ac_try_echo=$ac_try;;
18105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18106 (eval "$ac_link") 2>conftest.er1
18108 grep -v '^ *+' conftest.er1 >conftest.err
18110 cat conftest.err >&5
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); } &&
18113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18114 { (case "(($ac_try" in
18115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18116 *) ac_try_echo=$ac_try;;
18118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18119 (eval "$ac_try") 2>&5
18121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122 (exit $ac_status); }; } &&
18123 { ac_try='test -s conftest$ac_exeext'
18124 { (case "(($ac_try" in
18125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18126 *) ac_try_echo=$ac_try;;
18128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18129 (eval "$ac_try") 2>&5
18131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18132 (exit $ac_status); }; }; then
18133 ac_cv_lib_gcc___chkstk=yes
18135 echo "$as_me: failed program was:" >&5
18136 sed 's/^/| /' conftest.$ac_ext >&5
18138 ac_cv_lib_gcc___chkstk=no
18141 rm -f core conftest.err conftest.$ac_objext \
18142 conftest$ac_exeext conftest.$ac_ext
18143 LIBS=$ac_check_lib_save_LIBS
18145 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18146 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18147 if test $ac_cv_lib_gcc___chkstk = yes; then
18149 cat >>confdefs.h <<\_ACEOF
18150 #define HAVE___CHKSTK 1
18155 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18156 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18157 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18158 echo $ECHO_N "(cached) $ECHO_C" >&6
18160 ac_check_lib_save_LIBS=$LIBS
18162 cat >conftest.$ac_ext <<_ACEOF
18165 cat confdefs.h >>conftest.$ac_ext
18166 cat >>conftest.$ac_ext <<_ACEOF
18167 /* end confdefs.h. */
18169 /* Override any GCC internal prototype to avoid an error.
18170 Use char because int might match the return type of a GCC
18171 builtin and then its argument prototype would still apply. */
18179 return ___chkstk ();
18184 rm -f conftest.$ac_objext conftest$ac_exeext
18185 if { (ac_try="$ac_link"
18186 case "(($ac_try" in
18187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18188 *) ac_try_echo=$ac_try;;
18190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18191 (eval "$ac_link") 2>conftest.er1
18193 grep -v '^ *+' conftest.er1 >conftest.err
18195 cat conftest.err >&5
18196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197 (exit $ac_status); } &&
18198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18199 { (case "(($ac_try" in
18200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18201 *) ac_try_echo=$ac_try;;
18203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18204 (eval "$ac_try") 2>&5
18206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207 (exit $ac_status); }; } &&
18208 { ac_try='test -s conftest$ac_exeext'
18209 { (case "(($ac_try" in
18210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18211 *) ac_try_echo=$ac_try;;
18213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18214 (eval "$ac_try") 2>&5
18216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); }; }; then
18218 ac_cv_lib_gcc____chkstk=yes
18220 echo "$as_me: failed program was:" >&5
18221 sed 's/^/| /' conftest.$ac_ext >&5
18223 ac_cv_lib_gcc____chkstk=no
18226 rm -f core conftest.err conftest.$ac_objext \
18227 conftest$ac_exeext conftest.$ac_ext
18228 LIBS=$ac_check_lib_save_LIBS
18230 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18231 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18232 if test $ac_cv_lib_gcc____chkstk = yes; then
18234 cat >>confdefs.h <<\_ACEOF
18235 #define HAVE____CHKSTK 1
18241 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18242 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18243 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18244 echo $ECHO_N "(cached) $ECHO_C" >&6
18246 ac_check_lib_save_LIBS=$LIBS
18248 cat >conftest.$ac_ext <<_ACEOF
18251 cat confdefs.h >>conftest.$ac_ext
18252 cat >>conftest.$ac_ext <<_ACEOF
18253 /* end confdefs.h. */
18255 /* Override any GCC internal prototype to avoid an error.
18256 Use char because int might match the return type of a GCC
18257 builtin and then its argument prototype would still apply. */
18265 return __ashldi3 ();
18270 rm -f conftest.$ac_objext conftest$ac_exeext
18271 if { (ac_try="$ac_link"
18272 case "(($ac_try" in
18273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18274 *) ac_try_echo=$ac_try;;
18276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18277 (eval "$ac_link") 2>conftest.er1
18279 grep -v '^ *+' conftest.er1 >conftest.err
18281 cat conftest.err >&5
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); } &&
18284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18285 { (case "(($ac_try" in
18286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18287 *) ac_try_echo=$ac_try;;
18289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18290 (eval "$ac_try") 2>&5
18292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293 (exit $ac_status); }; } &&
18294 { ac_try='test -s conftest$ac_exeext'
18295 { (case "(($ac_try" in
18296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18297 *) ac_try_echo=$ac_try;;
18299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18300 (eval "$ac_try") 2>&5
18302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303 (exit $ac_status); }; }; then
18304 ac_cv_lib_gcc___ashldi3=yes
18306 echo "$as_me: failed program was:" >&5
18307 sed 's/^/| /' conftest.$ac_ext >&5
18309 ac_cv_lib_gcc___ashldi3=no
18312 rm -f core conftest.err conftest.$ac_objext \
18313 conftest$ac_exeext conftest.$ac_ext
18314 LIBS=$ac_check_lib_save_LIBS
18316 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18317 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18318 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18320 cat >>confdefs.h <<\_ACEOF
18321 #define HAVE___ASHLDI3 1
18326 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18327 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18328 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18329 echo $ECHO_N "(cached) $ECHO_C" >&6
18331 ac_check_lib_save_LIBS=$LIBS
18333 cat >conftest.$ac_ext <<_ACEOF
18336 cat confdefs.h >>conftest.$ac_ext
18337 cat >>conftest.$ac_ext <<_ACEOF
18338 /* end confdefs.h. */
18340 /* Override any GCC internal prototype to avoid an error.
18341 Use char because int might match the return type of a GCC
18342 builtin and then its argument prototype would still apply. */
18350 return __ashrdi3 ();
18355 rm -f conftest.$ac_objext conftest$ac_exeext
18356 if { (ac_try="$ac_link"
18357 case "(($ac_try" in
18358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18359 *) ac_try_echo=$ac_try;;
18361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18362 (eval "$ac_link") 2>conftest.er1
18364 grep -v '^ *+' conftest.er1 >conftest.err
18366 cat conftest.err >&5
18367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368 (exit $ac_status); } &&
18369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18370 { (case "(($ac_try" in
18371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18372 *) ac_try_echo=$ac_try;;
18374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18375 (eval "$ac_try") 2>&5
18377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378 (exit $ac_status); }; } &&
18379 { ac_try='test -s conftest$ac_exeext'
18380 { (case "(($ac_try" in
18381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18382 *) ac_try_echo=$ac_try;;
18384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18385 (eval "$ac_try") 2>&5
18387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18388 (exit $ac_status); }; }; then
18389 ac_cv_lib_gcc___ashrdi3=yes
18391 echo "$as_me: failed program was:" >&5
18392 sed 's/^/| /' conftest.$ac_ext >&5
18394 ac_cv_lib_gcc___ashrdi3=no
18397 rm -f core conftest.err conftest.$ac_objext \
18398 conftest$ac_exeext conftest.$ac_ext
18399 LIBS=$ac_check_lib_save_LIBS
18401 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18402 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18403 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18405 cat >>confdefs.h <<\_ACEOF
18406 #define HAVE___ASHRDI3 1
18411 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18412 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18413 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18414 echo $ECHO_N "(cached) $ECHO_C" >&6
18416 ac_check_lib_save_LIBS=$LIBS
18418 cat >conftest.$ac_ext <<_ACEOF
18421 cat confdefs.h >>conftest.$ac_ext
18422 cat >>conftest.$ac_ext <<_ACEOF
18423 /* end confdefs.h. */
18425 /* Override any GCC internal prototype to avoid an error.
18426 Use char because int might match the return type of a GCC
18427 builtin and then its argument prototype would still apply. */
18435 return __divdi3 ();
18440 rm -f conftest.$ac_objext conftest$ac_exeext
18441 if { (ac_try="$ac_link"
18442 case "(($ac_try" in
18443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18444 *) ac_try_echo=$ac_try;;
18446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18447 (eval "$ac_link") 2>conftest.er1
18449 grep -v '^ *+' conftest.er1 >conftest.err
18451 cat conftest.err >&5
18452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453 (exit $ac_status); } &&
18454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18455 { (case "(($ac_try" in
18456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18457 *) ac_try_echo=$ac_try;;
18459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18460 (eval "$ac_try") 2>&5
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); }; } &&
18464 { ac_try='test -s conftest$ac_exeext'
18465 { (case "(($ac_try" in
18466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18467 *) ac_try_echo=$ac_try;;
18469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18470 (eval "$ac_try") 2>&5
18472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); }; }; then
18474 ac_cv_lib_gcc___divdi3=yes
18476 echo "$as_me: failed program was:" >&5
18477 sed 's/^/| /' conftest.$ac_ext >&5
18479 ac_cv_lib_gcc___divdi3=no
18482 rm -f core conftest.err conftest.$ac_objext \
18483 conftest$ac_exeext conftest.$ac_ext
18484 LIBS=$ac_check_lib_save_LIBS
18486 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18487 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18488 if test $ac_cv_lib_gcc___divdi3 = yes; then
18490 cat >>confdefs.h <<\_ACEOF
18491 #define HAVE___DIVDI3 1
18496 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18497 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18498 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18499 echo $ECHO_N "(cached) $ECHO_C" >&6
18501 ac_check_lib_save_LIBS=$LIBS
18503 cat >conftest.$ac_ext <<_ACEOF
18506 cat confdefs.h >>conftest.$ac_ext
18507 cat >>conftest.$ac_ext <<_ACEOF
18508 /* end confdefs.h. */
18510 /* Override any GCC internal prototype to avoid an error.
18511 Use char because int might match the return type of a GCC
18512 builtin and then its argument prototype would still apply. */
18520 return __fixdfdi ();
18525 rm -f conftest.$ac_objext conftest$ac_exeext
18526 if { (ac_try="$ac_link"
18527 case "(($ac_try" in
18528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18529 *) ac_try_echo=$ac_try;;
18531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18532 (eval "$ac_link") 2>conftest.er1
18534 grep -v '^ *+' conftest.er1 >conftest.err
18536 cat conftest.err >&5
18537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538 (exit $ac_status); } &&
18539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18540 { (case "(($ac_try" in
18541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18542 *) ac_try_echo=$ac_try;;
18544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18545 (eval "$ac_try") 2>&5
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); }; } &&
18549 { ac_try='test -s conftest$ac_exeext'
18550 { (case "(($ac_try" in
18551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18552 *) ac_try_echo=$ac_try;;
18554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18555 (eval "$ac_try") 2>&5
18557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558 (exit $ac_status); }; }; then
18559 ac_cv_lib_gcc___fixdfdi=yes
18561 echo "$as_me: failed program was:" >&5
18562 sed 's/^/| /' conftest.$ac_ext >&5
18564 ac_cv_lib_gcc___fixdfdi=no
18567 rm -f core conftest.err conftest.$ac_objext \
18568 conftest$ac_exeext conftest.$ac_ext
18569 LIBS=$ac_check_lib_save_LIBS
18571 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18572 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18573 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18575 cat >>confdefs.h <<\_ACEOF
18576 #define HAVE___FIXDFDI 1
18581 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18582 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18583 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18584 echo $ECHO_N "(cached) $ECHO_C" >&6
18586 ac_check_lib_save_LIBS=$LIBS
18588 cat >conftest.$ac_ext <<_ACEOF
18591 cat confdefs.h >>conftest.$ac_ext
18592 cat >>conftest.$ac_ext <<_ACEOF
18593 /* end confdefs.h. */
18595 /* Override any GCC internal prototype to avoid an error.
18596 Use char because int might match the return type of a GCC
18597 builtin and then its argument prototype would still apply. */
18605 return __fixsfdi ();
18610 rm -f conftest.$ac_objext conftest$ac_exeext
18611 if { (ac_try="$ac_link"
18612 case "(($ac_try" in
18613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18614 *) ac_try_echo=$ac_try;;
18616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18617 (eval "$ac_link") 2>conftest.er1
18619 grep -v '^ *+' conftest.er1 >conftest.err
18621 cat conftest.err >&5
18622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); } &&
18624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18625 { (case "(($ac_try" in
18626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18627 *) ac_try_echo=$ac_try;;
18629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18630 (eval "$ac_try") 2>&5
18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); }; } &&
18634 { ac_try='test -s conftest$ac_exeext'
18635 { (case "(($ac_try" in
18636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18637 *) ac_try_echo=$ac_try;;
18639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18640 (eval "$ac_try") 2>&5
18642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643 (exit $ac_status); }; }; then
18644 ac_cv_lib_gcc___fixsfdi=yes
18646 echo "$as_me: failed program was:" >&5
18647 sed 's/^/| /' conftest.$ac_ext >&5
18649 ac_cv_lib_gcc___fixsfdi=no
18652 rm -f core conftest.err conftest.$ac_objext \
18653 conftest$ac_exeext conftest.$ac_ext
18654 LIBS=$ac_check_lib_save_LIBS
18656 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18657 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18658 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18660 cat >>confdefs.h <<\_ACEOF
18661 #define HAVE___FIXSFDI 1
18666 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18667 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18668 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18669 echo $ECHO_N "(cached) $ECHO_C" >&6
18671 ac_check_lib_save_LIBS=$LIBS
18673 cat >conftest.$ac_ext <<_ACEOF
18676 cat confdefs.h >>conftest.$ac_ext
18677 cat >>conftest.$ac_ext <<_ACEOF
18678 /* end confdefs.h. */
18680 /* Override any GCC internal prototype to avoid an error.
18681 Use char because int might match the return type of a GCC
18682 builtin and then its argument prototype would still apply. */
18686 char __floatdidf ();
18690 return __floatdidf ();
18695 rm -f conftest.$ac_objext conftest$ac_exeext
18696 if { (ac_try="$ac_link"
18697 case "(($ac_try" in
18698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18699 *) ac_try_echo=$ac_try;;
18701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18702 (eval "$ac_link") 2>conftest.er1
18704 grep -v '^ *+' conftest.er1 >conftest.err
18706 cat conftest.err >&5
18707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18708 (exit $ac_status); } &&
18709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18710 { (case "(($ac_try" in
18711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18712 *) ac_try_echo=$ac_try;;
18714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18715 (eval "$ac_try") 2>&5
18717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718 (exit $ac_status); }; } &&
18719 { ac_try='test -s conftest$ac_exeext'
18720 { (case "(($ac_try" in
18721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18722 *) ac_try_echo=$ac_try;;
18724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18725 (eval "$ac_try") 2>&5
18727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728 (exit $ac_status); }; }; then
18729 ac_cv_lib_gcc___floatdidf=yes
18731 echo "$as_me: failed program was:" >&5
18732 sed 's/^/| /' conftest.$ac_ext >&5
18734 ac_cv_lib_gcc___floatdidf=no
18737 rm -f core conftest.err conftest.$ac_objext \
18738 conftest$ac_exeext conftest.$ac_ext
18739 LIBS=$ac_check_lib_save_LIBS
18741 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18742 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18743 if test $ac_cv_lib_gcc___floatdidf = yes; then
18745 cat >>confdefs.h <<\_ACEOF
18746 #define HAVE___FLOATDIDF 1
18751 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18752 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18753 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18754 echo $ECHO_N "(cached) $ECHO_C" >&6
18756 ac_check_lib_save_LIBS=$LIBS
18758 cat >conftest.$ac_ext <<_ACEOF
18761 cat confdefs.h >>conftest.$ac_ext
18762 cat >>conftest.$ac_ext <<_ACEOF
18763 /* end confdefs.h. */
18765 /* Override any GCC internal prototype to avoid an error.
18766 Use char because int might match the return type of a GCC
18767 builtin and then its argument prototype would still apply. */
18775 return __lshrdi3 ();
18780 rm -f conftest.$ac_objext conftest$ac_exeext
18781 if { (ac_try="$ac_link"
18782 case "(($ac_try" in
18783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18784 *) ac_try_echo=$ac_try;;
18786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18787 (eval "$ac_link") 2>conftest.er1
18789 grep -v '^ *+' conftest.er1 >conftest.err
18791 cat conftest.err >&5
18792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793 (exit $ac_status); } &&
18794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18795 { (case "(($ac_try" in
18796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18797 *) ac_try_echo=$ac_try;;
18799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18800 (eval "$ac_try") 2>&5
18802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803 (exit $ac_status); }; } &&
18804 { ac_try='test -s conftest$ac_exeext'
18805 { (case "(($ac_try" in
18806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18807 *) ac_try_echo=$ac_try;;
18809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18810 (eval "$ac_try") 2>&5
18812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813 (exit $ac_status); }; }; then
18814 ac_cv_lib_gcc___lshrdi3=yes
18816 echo "$as_me: failed program was:" >&5
18817 sed 's/^/| /' conftest.$ac_ext >&5
18819 ac_cv_lib_gcc___lshrdi3=no
18822 rm -f core conftest.err conftest.$ac_objext \
18823 conftest$ac_exeext conftest.$ac_ext
18824 LIBS=$ac_check_lib_save_LIBS
18826 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18827 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18828 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18830 cat >>confdefs.h <<\_ACEOF
18831 #define HAVE___LSHRDI3 1
18836 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18837 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18838 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18839 echo $ECHO_N "(cached) $ECHO_C" >&6
18841 ac_check_lib_save_LIBS=$LIBS
18843 cat >conftest.$ac_ext <<_ACEOF
18846 cat confdefs.h >>conftest.$ac_ext
18847 cat >>conftest.$ac_ext <<_ACEOF
18848 /* end confdefs.h. */
18850 /* Override any GCC internal prototype to avoid an error.
18851 Use char because int might match the return type of a GCC
18852 builtin and then its argument prototype would still apply. */
18860 return __moddi3 ();
18865 rm -f conftest.$ac_objext conftest$ac_exeext
18866 if { (ac_try="$ac_link"
18867 case "(($ac_try" in
18868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18869 *) ac_try_echo=$ac_try;;
18871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18872 (eval "$ac_link") 2>conftest.er1
18874 grep -v '^ *+' conftest.er1 >conftest.err
18876 cat conftest.err >&5
18877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18878 (exit $ac_status); } &&
18879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18880 { (case "(($ac_try" in
18881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18882 *) ac_try_echo=$ac_try;;
18884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18885 (eval "$ac_try") 2>&5
18887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888 (exit $ac_status); }; } &&
18889 { ac_try='test -s conftest$ac_exeext'
18890 { (case "(($ac_try" in
18891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18892 *) ac_try_echo=$ac_try;;
18894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18895 (eval "$ac_try") 2>&5
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); }; }; then
18899 ac_cv_lib_gcc___moddi3=yes
18901 echo "$as_me: failed program was:" >&5
18902 sed 's/^/| /' conftest.$ac_ext >&5
18904 ac_cv_lib_gcc___moddi3=no
18907 rm -f core conftest.err conftest.$ac_objext \
18908 conftest$ac_exeext conftest.$ac_ext
18909 LIBS=$ac_check_lib_save_LIBS
18911 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18912 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18913 if test $ac_cv_lib_gcc___moddi3 = yes; then
18915 cat >>confdefs.h <<\_ACEOF
18916 #define HAVE___MODDI3 1
18921 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18922 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18923 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18924 echo $ECHO_N "(cached) $ECHO_C" >&6
18926 ac_check_lib_save_LIBS=$LIBS
18928 cat >conftest.$ac_ext <<_ACEOF
18931 cat confdefs.h >>conftest.$ac_ext
18932 cat >>conftest.$ac_ext <<_ACEOF
18933 /* end confdefs.h. */
18935 /* Override any GCC internal prototype to avoid an error.
18936 Use char because int might match the return type of a GCC
18937 builtin and then its argument prototype would still apply. */
18945 return __udivdi3 ();
18950 rm -f conftest.$ac_objext conftest$ac_exeext
18951 if { (ac_try="$ac_link"
18952 case "(($ac_try" in
18953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18954 *) ac_try_echo=$ac_try;;
18956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18957 (eval "$ac_link") 2>conftest.er1
18959 grep -v '^ *+' conftest.er1 >conftest.err
18961 cat conftest.err >&5
18962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963 (exit $ac_status); } &&
18964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18965 { (case "(($ac_try" in
18966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18967 *) ac_try_echo=$ac_try;;
18969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18970 (eval "$ac_try") 2>&5
18972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973 (exit $ac_status); }; } &&
18974 { ac_try='test -s conftest$ac_exeext'
18975 { (case "(($ac_try" in
18976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18977 *) ac_try_echo=$ac_try;;
18979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18980 (eval "$ac_try") 2>&5
18982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983 (exit $ac_status); }; }; then
18984 ac_cv_lib_gcc___udivdi3=yes
18986 echo "$as_me: failed program was:" >&5
18987 sed 's/^/| /' conftest.$ac_ext >&5
18989 ac_cv_lib_gcc___udivdi3=no
18992 rm -f core conftest.err conftest.$ac_objext \
18993 conftest$ac_exeext conftest.$ac_ext
18994 LIBS=$ac_check_lib_save_LIBS
18996 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18997 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18998 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19000 cat >>confdefs.h <<\_ACEOF
19001 #define HAVE___UDIVDI3 1
19006 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19007 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19008 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19009 echo $ECHO_N "(cached) $ECHO_C" >&6
19011 ac_check_lib_save_LIBS=$LIBS
19013 cat >conftest.$ac_ext <<_ACEOF
19016 cat confdefs.h >>conftest.$ac_ext
19017 cat >>conftest.$ac_ext <<_ACEOF
19018 /* end confdefs.h. */
19020 /* Override any GCC internal prototype to avoid an error.
19021 Use char because int might match the return type of a GCC
19022 builtin and then its argument prototype would still apply. */
19030 return __umoddi3 ();
19035 rm -f conftest.$ac_objext conftest$ac_exeext
19036 if { (ac_try="$ac_link"
19037 case "(($ac_try" in
19038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19039 *) ac_try_echo=$ac_try;;
19041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19042 (eval "$ac_link") 2>conftest.er1
19044 grep -v '^ *+' conftest.er1 >conftest.err
19046 cat conftest.err >&5
19047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048 (exit $ac_status); } &&
19049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19050 { (case "(($ac_try" in
19051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19052 *) ac_try_echo=$ac_try;;
19054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19055 (eval "$ac_try") 2>&5
19057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058 (exit $ac_status); }; } &&
19059 { ac_try='test -s conftest$ac_exeext'
19060 { (case "(($ac_try" in
19061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19062 *) ac_try_echo=$ac_try;;
19064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19065 (eval "$ac_try") 2>&5
19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); }; }; then
19069 ac_cv_lib_gcc___umoddi3=yes
19071 echo "$as_me: failed program was:" >&5
19072 sed 's/^/| /' conftest.$ac_ext >&5
19074 ac_cv_lib_gcc___umoddi3=no
19077 rm -f core conftest.err conftest.$ac_objext \
19078 conftest$ac_exeext conftest.$ac_ext
19079 LIBS=$ac_check_lib_save_LIBS
19081 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19082 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19083 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19085 cat >>confdefs.h <<\_ACEOF
19086 #define HAVE___UMODDI3 1
19092 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19093 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19094 if test "${ac_cv_lib_gcc___main+set}" = set; then
19095 echo $ECHO_N "(cached) $ECHO_C" >&6
19097 ac_check_lib_save_LIBS=$LIBS
19099 cat >conftest.$ac_ext <<_ACEOF
19102 cat confdefs.h >>conftest.$ac_ext
19103 cat >>conftest.$ac_ext <<_ACEOF
19104 /* end confdefs.h. */
19106 /* Override any GCC internal prototype to avoid an error.
19107 Use char because int might match the return type of a GCC
19108 builtin and then its argument prototype would still apply. */
19121 rm -f conftest.$ac_objext conftest$ac_exeext
19122 if { (ac_try="$ac_link"
19123 case "(($ac_try" in
19124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19125 *) ac_try_echo=$ac_try;;
19127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19128 (eval "$ac_link") 2>conftest.er1
19130 grep -v '^ *+' conftest.er1 >conftest.err
19132 cat conftest.err >&5
19133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134 (exit $ac_status); } &&
19135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19136 { (case "(($ac_try" in
19137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19138 *) ac_try_echo=$ac_try;;
19140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19141 (eval "$ac_try") 2>&5
19143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144 (exit $ac_status); }; } &&
19145 { ac_try='test -s conftest$ac_exeext'
19146 { (case "(($ac_try" in
19147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19148 *) ac_try_echo=$ac_try;;
19150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19151 (eval "$ac_try") 2>&5
19153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154 (exit $ac_status); }; }; then
19155 ac_cv_lib_gcc___main=yes
19157 echo "$as_me: failed program was:" >&5
19158 sed 's/^/| /' conftest.$ac_ext >&5
19160 ac_cv_lib_gcc___main=no
19163 rm -f core conftest.err conftest.$ac_objext \
19164 conftest$ac_exeext conftest.$ac_ext
19165 LIBS=$ac_check_lib_save_LIBS
19167 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19168 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19169 if test $ac_cv_lib_gcc___main = yes; then
19171 cat >>confdefs.h <<\_ACEOF
19172 #define HAVE___MAIN 1
19177 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19178 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19179 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19180 echo $ECHO_N "(cached) $ECHO_C" >&6
19182 ac_check_lib_save_LIBS=$LIBS
19184 cat >conftest.$ac_ext <<_ACEOF
19187 cat confdefs.h >>conftest.$ac_ext
19188 cat >>conftest.$ac_ext <<_ACEOF
19189 /* end confdefs.h. */
19191 /* Override any GCC internal prototype to avoid an error.
19192 Use char because int might match the return type of a GCC
19193 builtin and then its argument prototype would still apply. */
19201 return __cmpdi2 ();
19206 rm -f conftest.$ac_objext conftest$ac_exeext
19207 if { (ac_try="$ac_link"
19208 case "(($ac_try" in
19209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19210 *) ac_try_echo=$ac_try;;
19212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19213 (eval "$ac_link") 2>conftest.er1
19215 grep -v '^ *+' conftest.er1 >conftest.err
19217 cat conftest.err >&5
19218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219 (exit $ac_status); } &&
19220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19221 { (case "(($ac_try" in
19222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19223 *) ac_try_echo=$ac_try;;
19225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19226 (eval "$ac_try") 2>&5
19228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229 (exit $ac_status); }; } &&
19230 { ac_try='test -s conftest$ac_exeext'
19231 { (case "(($ac_try" in
19232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19233 *) ac_try_echo=$ac_try;;
19235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19236 (eval "$ac_try") 2>&5
19238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239 (exit $ac_status); }; }; then
19240 ac_cv_lib_gcc___cmpdi2=yes
19242 echo "$as_me: failed program was:" >&5
19243 sed 's/^/| /' conftest.$ac_ext >&5
19245 ac_cv_lib_gcc___cmpdi2=no
19248 rm -f core conftest.err conftest.$ac_objext \
19249 conftest$ac_exeext conftest.$ac_ext
19250 LIBS=$ac_check_lib_save_LIBS
19252 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19253 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19254 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19256 cat >>confdefs.h <<\_ACEOF
19257 #define HAVE___CMPDI2 1
19264 if test "$llvm_cv_os_type" = "MingW" ; then
19265 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19266 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19267 cat >conftest.$ac_ext <<_ACEOF
19268 #include <windows.h>
19269 #include <imagehlp.h>
19270 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19271 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19273 rm -f conftest.$ac_objext
19274 if { (ac_try="$ac_compile"
19275 case "(($ac_try" in
19276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19277 *) ac_try_echo=$ac_try;;
19279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19280 (eval "$ac_compile") 2>conftest.er1
19282 grep -v '^ *+' conftest.er1 >conftest.err
19284 cat conftest.err >&5
19285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286 (exit $ac_status); } &&
19287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19288 { (case "(($ac_try" in
19289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19290 *) ac_try_echo=$ac_try;;
19292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19293 (eval "$ac_try") 2>&5
19295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296 (exit $ac_status); }; } &&
19297 { ac_try='test -s conftest.$ac_objext'
19298 { (case "(($ac_try" in
19299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19300 *) ac_try_echo=$ac_try;;
19302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19303 (eval "$ac_try") 2>&5
19305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306 (exit $ac_status); }; }; then
19308 { echo "$as_me:$LINENO: result: yes" >&5
19309 echo "${ECHO_T}yes" >&6; }
19310 llvm_cv_win32_elmcb_pcstr="PCSTR"
19313 echo "$as_me: failed program was:" >&5
19314 sed 's/^/| /' conftest.$ac_ext >&5
19317 { echo "$as_me:$LINENO: result: no" >&5
19318 echo "${ECHO_T}no" >&6; }
19319 llvm_cv_win32_elmcb_pcstr="PSTR"
19323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19325 cat >>confdefs.h <<_ACEOF
19326 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19332 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19333 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19334 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19335 echo $ECHO_N "(cached) $ECHO_C" >&6
19338 ac_cpp='$CXXCPP $CPPFLAGS'
19339 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19340 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19341 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19343 cat >conftest.$ac_ext <<_ACEOF
19346 cat confdefs.h >>conftest.$ac_ext
19347 cat >>conftest.$ac_ext <<_ACEOF
19348 /* end confdefs.h. */
19358 rm -f conftest.$ac_objext
19359 if { (ac_try="$ac_compile"
19360 case "(($ac_try" in
19361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19362 *) ac_try_echo=$ac_try;;
19364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19365 (eval "$ac_compile") 2>conftest.er1
19367 grep -v '^ *+' conftest.er1 >conftest.err
19369 cat conftest.err >&5
19370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371 (exit $ac_status); } &&
19372 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19373 { (case "(($ac_try" in
19374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19375 *) ac_try_echo=$ac_try;;
19377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19378 (eval "$ac_try") 2>&5
19380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381 (exit $ac_status); }; } &&
19382 { ac_try='test -s conftest.$ac_objext'
19383 { (case "(($ac_try" in
19384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19385 *) ac_try_echo=$ac_try;;
19387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19388 (eval "$ac_try") 2>&5
19390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19391 (exit $ac_status); }; }; then
19392 ac_cv_func_isnan_in_math_h=yes
19394 echo "$as_me: failed program was:" >&5
19395 sed 's/^/| /' conftest.$ac_ext >&5
19397 ac_cv_func_isnan_in_math_h=no
19400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19402 ac_cpp='$CPP $CPPFLAGS'
19403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19408 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19409 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19412 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19414 cat >>confdefs.h <<\_ACEOF
19415 #define HAVE_ISNAN_IN_MATH_H 1
19420 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19421 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19422 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19423 echo $ECHO_N "(cached) $ECHO_C" >&6
19426 ac_cpp='$CXXCPP $CPPFLAGS'
19427 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19428 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19429 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19431 cat >conftest.$ac_ext <<_ACEOF
19434 cat confdefs.h >>conftest.$ac_ext
19435 cat >>conftest.$ac_ext <<_ACEOF
19436 /* end confdefs.h. */
19446 rm -f conftest.$ac_objext
19447 if { (ac_try="$ac_compile"
19448 case "(($ac_try" in
19449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19450 *) ac_try_echo=$ac_try;;
19452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19453 (eval "$ac_compile") 2>conftest.er1
19455 grep -v '^ *+' conftest.er1 >conftest.err
19457 cat conftest.err >&5
19458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459 (exit $ac_status); } &&
19460 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19461 { (case "(($ac_try" in
19462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19463 *) ac_try_echo=$ac_try;;
19465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19466 (eval "$ac_try") 2>&5
19468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469 (exit $ac_status); }; } &&
19470 { ac_try='test -s conftest.$ac_objext'
19471 { (case "(($ac_try" in
19472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19473 *) ac_try_echo=$ac_try;;
19475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19476 (eval "$ac_try") 2>&5
19478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479 (exit $ac_status); }; }; then
19480 ac_cv_func_isnan_in_cmath=yes
19482 echo "$as_me: failed program was:" >&5
19483 sed 's/^/| /' conftest.$ac_ext >&5
19485 ac_cv_func_isnan_in_cmath=no
19488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19490 ac_cpp='$CPP $CPPFLAGS'
19491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19496 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19497 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19499 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19501 cat >>confdefs.h <<\_ACEOF
19502 #define HAVE_ISNAN_IN_CMATH 1
19507 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19508 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19509 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19510 echo $ECHO_N "(cached) $ECHO_C" >&6
19513 ac_cpp='$CXXCPP $CPPFLAGS'
19514 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19515 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19516 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19518 cat >conftest.$ac_ext <<_ACEOF
19521 cat confdefs.h >>conftest.$ac_ext
19522 cat >>conftest.$ac_ext <<_ACEOF
19523 /* end confdefs.h. */
19528 float f; std::isnan(f);
19533 rm -f conftest.$ac_objext
19534 if { (ac_try="$ac_compile"
19535 case "(($ac_try" in
19536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19537 *) ac_try_echo=$ac_try;;
19539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19540 (eval "$ac_compile") 2>conftest.er1
19542 grep -v '^ *+' conftest.er1 >conftest.err
19544 cat conftest.err >&5
19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); } &&
19547 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19548 { (case "(($ac_try" in
19549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19550 *) ac_try_echo=$ac_try;;
19552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19553 (eval "$ac_try") 2>&5
19555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556 (exit $ac_status); }; } &&
19557 { ac_try='test -s conftest.$ac_objext'
19558 { (case "(($ac_try" in
19559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19560 *) ac_try_echo=$ac_try;;
19562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19563 (eval "$ac_try") 2>&5
19565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566 (exit $ac_status); }; }; then
19567 ac_cv_func_std_isnan_in_cmath=yes
19569 echo "$as_me: failed program was:" >&5
19570 sed 's/^/| /' conftest.$ac_ext >&5
19572 ac_cv_func_std_isnan_in_cmath=no
19575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19577 ac_cpp='$CPP $CPPFLAGS'
19578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19583 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19584 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19586 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19588 cat >>confdefs.h <<\_ACEOF
19589 #define HAVE_STD_ISNAN_IN_CMATH 1
19595 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19596 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19597 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19598 echo $ECHO_N "(cached) $ECHO_C" >&6
19601 ac_cpp='$CXXCPP $CPPFLAGS'
19602 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19603 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19604 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19606 cat >conftest.$ac_ext <<_ACEOF
19609 cat confdefs.h >>conftest.$ac_ext
19610 cat >>conftest.$ac_ext <<_ACEOF
19611 /* end confdefs.h. */
19621 rm -f conftest.$ac_objext
19622 if { (ac_try="$ac_compile"
19623 case "(($ac_try" in
19624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19625 *) ac_try_echo=$ac_try;;
19627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19628 (eval "$ac_compile") 2>conftest.er1
19630 grep -v '^ *+' conftest.er1 >conftest.err
19632 cat conftest.err >&5
19633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634 (exit $ac_status); } &&
19635 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19636 { (case "(($ac_try" in
19637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19638 *) ac_try_echo=$ac_try;;
19640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19641 (eval "$ac_try") 2>&5
19643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644 (exit $ac_status); }; } &&
19645 { ac_try='test -s conftest.$ac_objext'
19646 { (case "(($ac_try" in
19647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19648 *) ac_try_echo=$ac_try;;
19650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19651 (eval "$ac_try") 2>&5
19653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654 (exit $ac_status); }; }; then
19655 ac_cv_func_isinf_in_math_h=yes
19657 echo "$as_me: failed program was:" >&5
19658 sed 's/^/| /' conftest.$ac_ext >&5
19660 ac_cv_func_isinf_in_math_h=no
19663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19665 ac_cpp='$CPP $CPPFLAGS'
19666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19671 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19672 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19674 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19676 cat >>confdefs.h <<\_ACEOF
19677 #define HAVE_ISINF_IN_MATH_H 1
19682 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19683 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19684 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19685 echo $ECHO_N "(cached) $ECHO_C" >&6
19688 ac_cpp='$CXXCPP $CPPFLAGS'
19689 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19690 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19691 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19693 cat >conftest.$ac_ext <<_ACEOF
19696 cat confdefs.h >>conftest.$ac_ext
19697 cat >>conftest.$ac_ext <<_ACEOF
19698 /* end confdefs.h. */
19708 rm -f conftest.$ac_objext
19709 if { (ac_try="$ac_compile"
19710 case "(($ac_try" in
19711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19712 *) ac_try_echo=$ac_try;;
19714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19715 (eval "$ac_compile") 2>conftest.er1
19717 grep -v '^ *+' conftest.er1 >conftest.err
19719 cat conftest.err >&5
19720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721 (exit $ac_status); } &&
19722 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19723 { (case "(($ac_try" in
19724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19725 *) ac_try_echo=$ac_try;;
19727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19728 (eval "$ac_try") 2>&5
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); }; } &&
19732 { ac_try='test -s conftest.$ac_objext'
19733 { (case "(($ac_try" in
19734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19735 *) ac_try_echo=$ac_try;;
19737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19738 (eval "$ac_try") 2>&5
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); }; }; then
19742 ac_cv_func_isinf_in_cmath=yes
19744 echo "$as_me: failed program was:" >&5
19745 sed 's/^/| /' conftest.$ac_ext >&5
19747 ac_cv_func_isinf_in_cmath=no
19750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19752 ac_cpp='$CPP $CPPFLAGS'
19753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19758 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19759 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19761 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19763 cat >>confdefs.h <<\_ACEOF
19764 #define HAVE_ISINF_IN_CMATH 1
19769 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19770 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19771 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19772 echo $ECHO_N "(cached) $ECHO_C" >&6
19775 ac_cpp='$CXXCPP $CPPFLAGS'
19776 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19777 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19778 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19780 cat >conftest.$ac_ext <<_ACEOF
19783 cat confdefs.h >>conftest.$ac_ext
19784 cat >>conftest.$ac_ext <<_ACEOF
19785 /* end confdefs.h. */
19790 float f; std::isinf(f)}
19795 rm -f conftest.$ac_objext
19796 if { (ac_try="$ac_compile"
19797 case "(($ac_try" in
19798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19799 *) ac_try_echo=$ac_try;;
19801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19802 (eval "$ac_compile") 2>conftest.er1
19804 grep -v '^ *+' conftest.er1 >conftest.err
19806 cat conftest.err >&5
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); } &&
19809 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19810 { (case "(($ac_try" in
19811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19812 *) ac_try_echo=$ac_try;;
19814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19815 (eval "$ac_try") 2>&5
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); }; } &&
19819 { ac_try='test -s conftest.$ac_objext'
19820 { (case "(($ac_try" in
19821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19822 *) ac_try_echo=$ac_try;;
19824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19825 (eval "$ac_try") 2>&5
19827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828 (exit $ac_status); }; }; then
19829 ac_cv_func_std_isinf_in_cmath=yes
19831 echo "$as_me: failed program was:" >&5
19832 sed 's/^/| /' conftest.$ac_ext >&5
19834 ac_cv_func_std_isinf_in_cmath=no
19837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19839 ac_cpp='$CPP $CPPFLAGS'
19840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19845 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19846 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19848 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19850 cat >>confdefs.h <<\_ACEOF
19851 #define HAVE_STD_ISINF_IN_CMATH 1
19856 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19857 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19858 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19859 echo $ECHO_N "(cached) $ECHO_C" >&6
19862 ac_cpp='$CXXCPP $CPPFLAGS'
19863 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19864 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19865 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19867 cat >conftest.$ac_ext <<_ACEOF
19870 cat confdefs.h >>conftest.$ac_ext
19871 cat >>conftest.$ac_ext <<_ACEOF
19872 /* end confdefs.h. */
19873 #include <ieeefp.h>
19877 float f; finite(f);
19882 rm -f conftest.$ac_objext
19883 if { (ac_try="$ac_compile"
19884 case "(($ac_try" in
19885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19886 *) ac_try_echo=$ac_try;;
19888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19889 (eval "$ac_compile") 2>conftest.er1
19891 grep -v '^ *+' conftest.er1 >conftest.err
19893 cat conftest.err >&5
19894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895 (exit $ac_status); } &&
19896 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19897 { (case "(($ac_try" in
19898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19899 *) ac_try_echo=$ac_try;;
19901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19902 (eval "$ac_try") 2>&5
19904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905 (exit $ac_status); }; } &&
19906 { ac_try='test -s conftest.$ac_objext'
19907 { (case "(($ac_try" in
19908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19909 *) ac_try_echo=$ac_try;;
19911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19912 (eval "$ac_try") 2>&5
19914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915 (exit $ac_status); }; }; then
19916 ac_cv_func_finite_in_ieeefp_h=yes
19918 echo "$as_me: failed program was:" >&5
19919 sed 's/^/| /' conftest.$ac_ext >&5
19921 ac_cv_func_finite_in_ieeefp_h=no
19924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19926 ac_cpp='$CPP $CPPFLAGS'
19927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19932 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19933 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19935 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19937 cat >>confdefs.h <<\_ACEOF
19938 #define HAVE_FINITE_IN_IEEEFP_H 1
19945 if test "$llvm_cv_platform_type" = "Unix" ; then
19948 for ac_header in stdlib.h unistd.h
19950 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19951 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19952 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19955 echo $ECHO_N "(cached) $ECHO_C" >&6
19957 ac_res=`eval echo '${'$as_ac_Header'}'`
19958 { echo "$as_me:$LINENO: result: $ac_res" >&5
19959 echo "${ECHO_T}$ac_res" >&6; }
19961 # Is the header compilable?
19962 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19963 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19964 cat >conftest.$ac_ext <<_ACEOF
19967 cat confdefs.h >>conftest.$ac_ext
19968 cat >>conftest.$ac_ext <<_ACEOF
19969 /* end confdefs.h. */
19970 $ac_includes_default
19971 #include <$ac_header>
19973 rm -f conftest.$ac_objext
19974 if { (ac_try="$ac_compile"
19975 case "(($ac_try" in
19976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19977 *) ac_try_echo=$ac_try;;
19979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19980 (eval "$ac_compile") 2>conftest.er1
19982 grep -v '^ *+' conftest.er1 >conftest.err
19984 cat conftest.err >&5
19985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986 (exit $ac_status); } &&
19987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19988 { (case "(($ac_try" in
19989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19990 *) ac_try_echo=$ac_try;;
19992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19993 (eval "$ac_try") 2>&5
19995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996 (exit $ac_status); }; } &&
19997 { ac_try='test -s conftest.$ac_objext'
19998 { (case "(($ac_try" in
19999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20000 *) ac_try_echo=$ac_try;;
20002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20003 (eval "$ac_try") 2>&5
20005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); }; }; then
20007 ac_header_compiler=yes
20009 echo "$as_me: failed program was:" >&5
20010 sed 's/^/| /' conftest.$ac_ext >&5
20012 ac_header_compiler=no
20015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20016 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20017 echo "${ECHO_T}$ac_header_compiler" >&6; }
20019 # Is the header present?
20020 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20021 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20022 cat >conftest.$ac_ext <<_ACEOF
20025 cat confdefs.h >>conftest.$ac_ext
20026 cat >>conftest.$ac_ext <<_ACEOF
20027 /* end confdefs.h. */
20028 #include <$ac_header>
20030 if { (ac_try="$ac_cpp conftest.$ac_ext"
20031 case "(($ac_try" in
20032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20033 *) ac_try_echo=$ac_try;;
20035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20038 grep -v '^ *+' conftest.er1 >conftest.err
20040 cat conftest.err >&5
20041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20042 (exit $ac_status); } >/dev/null; then
20043 if test -s conftest.err; then
20044 ac_cpp_err=$ac_c_preproc_warn_flag
20045 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20052 if test -z "$ac_cpp_err"; then
20053 ac_header_preproc=yes
20055 echo "$as_me: failed program was:" >&5
20056 sed 's/^/| /' conftest.$ac_ext >&5
20058 ac_header_preproc=no
20061 rm -f conftest.err conftest.$ac_ext
20062 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20063 echo "${ECHO_T}$ac_header_preproc" >&6; }
20065 # So? What about this header?
20066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20068 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20069 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20071 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20072 ac_header_preproc=yes
20075 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20076 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20077 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20078 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20079 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20080 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20081 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20082 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20084 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20085 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20086 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20088 ## ------------------------------------ ##
20089 ## Report this to http://llvm.org/bugs/ ##
20090 ## ------------------------------------ ##
20092 ) | sed "s/^/$as_me: WARNING: /" >&2
20095 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20098 echo $ECHO_N "(cached) $ECHO_C" >&6
20100 eval "$as_ac_Header=\$ac_header_preproc"
20102 ac_res=`eval echo '${'$as_ac_Header'}'`
20103 { echo "$as_me:$LINENO: result: $ac_res" >&5
20104 echo "${ECHO_T}$ac_res" >&6; }
20107 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20108 cat >>confdefs.h <<_ACEOF
20109 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20117 for ac_func in getpagesize
20119 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20120 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20121 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20122 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20123 echo $ECHO_N "(cached) $ECHO_C" >&6
20125 cat >conftest.$ac_ext <<_ACEOF
20128 cat confdefs.h >>conftest.$ac_ext
20129 cat >>conftest.$ac_ext <<_ACEOF
20130 /* end confdefs.h. */
20131 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20133 #define $ac_func innocuous_$ac_func
20135 /* System header to define __stub macros and hopefully few prototypes,
20136 which can conflict with char $ac_func (); below.
20137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20138 <limits.h> exists even on freestanding compilers. */
20141 # include <limits.h>
20143 # include <assert.h>
20148 /* Override any GCC internal prototype to avoid an error.
20149 Use char because int might match the return type of a GCC
20150 builtin and then its argument prototype would still apply. */
20155 /* The GNU C library defines this for functions which it implements
20156 to always fail with ENOSYS. Some functions are actually named
20157 something starting with __ and the normal name is an alias. */
20158 #if defined __stub_$ac_func || defined __stub___$ac_func
20165 return $ac_func ();
20170 rm -f conftest.$ac_objext conftest$ac_exeext
20171 if { (ac_try="$ac_link"
20172 case "(($ac_try" in
20173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20174 *) ac_try_echo=$ac_try;;
20176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20177 (eval "$ac_link") 2>conftest.er1
20179 grep -v '^ *+' conftest.er1 >conftest.err
20181 cat conftest.err >&5
20182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183 (exit $ac_status); } &&
20184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20185 { (case "(($ac_try" in
20186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20187 *) ac_try_echo=$ac_try;;
20189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20190 (eval "$ac_try") 2>&5
20192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193 (exit $ac_status); }; } &&
20194 { ac_try='test -s conftest$ac_exeext'
20195 { (case "(($ac_try" in
20196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20197 *) ac_try_echo=$ac_try;;
20199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20200 (eval "$ac_try") 2>&5
20202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203 (exit $ac_status); }; }; then
20204 eval "$as_ac_var=yes"
20206 echo "$as_me: failed program was:" >&5
20207 sed 's/^/| /' conftest.$ac_ext >&5
20209 eval "$as_ac_var=no"
20212 rm -f core conftest.err conftest.$ac_objext \
20213 conftest$ac_exeext conftest.$ac_ext
20215 ac_res=`eval echo '${'$as_ac_var'}'`
20216 { echo "$as_me:$LINENO: result: $ac_res" >&5
20217 echo "${ECHO_T}$ac_res" >&6; }
20218 if test `eval echo '${'$as_ac_var'}'` = yes; then
20219 cat >>confdefs.h <<_ACEOF
20220 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20226 { echo "$as_me:$LINENO: checking for working mmap" >&5
20227 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20228 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20229 echo $ECHO_N "(cached) $ECHO_C" >&6
20231 if test "$cross_compiling" = yes; then
20232 ac_cv_func_mmap_fixed_mapped=no
20234 cat >conftest.$ac_ext <<_ACEOF
20237 cat confdefs.h >>conftest.$ac_ext
20238 cat >>conftest.$ac_ext <<_ACEOF
20239 /* end confdefs.h. */
20240 $ac_includes_default
20241 /* malloc might have been renamed as rpl_malloc. */
20244 /* Thanks to Mike Haertel and Jim Avera for this test.
20245 Here is a matrix of mmap possibilities:
20246 mmap private not fixed
20247 mmap private fixed at somewhere currently unmapped
20248 mmap private fixed at somewhere already mapped
20249 mmap shared not fixed
20250 mmap shared fixed at somewhere currently unmapped
20251 mmap shared fixed at somewhere already mapped
20252 For private mappings, we should verify that changes cannot be read()
20253 back from the file, nor mmap's back from the file at a different
20254 address. (There have been systems where private was not correctly
20255 implemented like the infamous i386 svr4.0, and systems where the
20256 VM page cache was not coherent with the file system buffer cache
20257 like early versions of FreeBSD and possibly contemporary NetBSD.)
20258 For shared mappings, we should conversely verify that changes get
20259 propagated back to all the places they're supposed to be.
20261 Grep wants private fixed already mapped.
20262 The main things grep needs to know about mmap are:
20263 * does it exist and is it safe to write into the mmap'd area
20264 * how to use it (BSD variants) */
20267 #include <sys/mman.h>
20269 #if !STDC_HEADERS && !HAVE_STDLIB_H
20273 /* This mess was copied from the GNU getpagesize.h. */
20274 #if !HAVE_GETPAGESIZE
20275 /* Assume that all systems that can run configure have sys/param.h. */
20276 # if !HAVE_SYS_PARAM_H
20277 # define HAVE_SYS_PARAM_H 1
20280 # ifdef _SC_PAGESIZE
20281 # define getpagesize() sysconf(_SC_PAGESIZE)
20282 # else /* no _SC_PAGESIZE */
20283 # if HAVE_SYS_PARAM_H
20284 # include <sys/param.h>
20285 # ifdef EXEC_PAGESIZE
20286 # define getpagesize() EXEC_PAGESIZE
20287 # else /* no EXEC_PAGESIZE */
20289 # define getpagesize() NBPG * CLSIZE
20292 # endif /* no CLSIZE */
20293 # else /* no NBPG */
20295 # define getpagesize() NBPC
20296 # else /* no NBPC */
20298 # define getpagesize() PAGESIZE
20299 # endif /* PAGESIZE */
20300 # endif /* no NBPC */
20301 # endif /* no NBPG */
20302 # endif /* no EXEC_PAGESIZE */
20303 # else /* no HAVE_SYS_PARAM_H */
20304 # define getpagesize() 8192 /* punt totally */
20305 # endif /* no HAVE_SYS_PARAM_H */
20306 # endif /* no _SC_PAGESIZE */
20308 #endif /* no HAVE_GETPAGESIZE */
20313 char *data, *data2, *data3;
20317 pagesize = getpagesize ();
20319 /* First, make a file with some known garbage in it. */
20320 data = (char *) malloc (pagesize);
20323 for (i = 0; i < pagesize; ++i)
20324 *(data + i) = rand ();
20326 fd = creat ("conftest.mmap", 0600);
20329 if (write (fd, data, pagesize) != pagesize)
20333 /* Next, try to mmap the file at a fixed address which already has
20334 something else allocated at it. If we can, also make sure that
20335 we see the same garbage. */
20336 fd = open ("conftest.mmap", O_RDWR);
20339 data2 = (char *) malloc (2 * pagesize);
20342 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20343 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20344 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20346 for (i = 0; i < pagesize; ++i)
20347 if (*(data + i) != *(data2 + i))
20350 /* Finally, make sure that changes to the mapped area do not
20351 percolate back to the file as seen by read(). (This is a bug on
20352 some variants of i386 svr4.0.) */
20353 for (i = 0; i < pagesize; ++i)
20354 *(data2 + i) = *(data2 + i) + 1;
20355 data3 = (char *) malloc (pagesize);
20358 if (read (fd, data3, pagesize) != pagesize)
20360 for (i = 0; i < pagesize; ++i)
20361 if (*(data + i) != *(data3 + i))
20367 rm -f conftest$ac_exeext
20368 if { (ac_try="$ac_link"
20369 case "(($ac_try" in
20370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20371 *) ac_try_echo=$ac_try;;
20373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20374 (eval "$ac_link") 2>&5
20376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20378 { (case "(($ac_try" in
20379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20380 *) ac_try_echo=$ac_try;;
20382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20383 (eval "$ac_try") 2>&5
20385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386 (exit $ac_status); }; }; then
20387 ac_cv_func_mmap_fixed_mapped=yes
20389 echo "$as_me: program exited with status $ac_status" >&5
20390 echo "$as_me: failed program was:" >&5
20391 sed 's/^/| /' conftest.$ac_ext >&5
20393 ( exit $ac_status )
20394 ac_cv_func_mmap_fixed_mapped=no
20396 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20401 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20402 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20403 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20405 cat >>confdefs.h <<\_ACEOF
20406 #define HAVE_MMAP 1
20410 rm -f conftest.mmap
20412 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20413 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20414 if test "${ac_cv_func_mmap_file+set}" = set; then
20415 echo $ECHO_N "(cached) $ECHO_C" >&6
20418 ac_cpp='$CPP $CPPFLAGS'
20419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20423 if test "$cross_compiling" = yes; then
20424 ac_cv_func_mmap_file=no
20426 cat >conftest.$ac_ext <<_ACEOF
20430 cat confdefs.h >>conftest.$ac_ext
20431 cat >>conftest.$ac_ext <<_ACEOF
20432 /* end confdefs.h. */
20434 #include <sys/types.h>
20435 #include <sys/mman.h>
20443 fd = creat ("foo",0777);
20444 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20446 return (fd != (int) MAP_FAILED);
20451 rm -f conftest$ac_exeext
20452 if { (ac_try="$ac_link"
20453 case "(($ac_try" in
20454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20455 *) ac_try_echo=$ac_try;;
20457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20458 (eval "$ac_link") 2>&5
20460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20462 { (case "(($ac_try" in
20463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20464 *) ac_try_echo=$ac_try;;
20466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20467 (eval "$ac_try") 2>&5
20469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470 (exit $ac_status); }; }; then
20471 ac_cv_func_mmap_file=yes
20473 echo "$as_me: program exited with status $ac_status" >&5
20474 echo "$as_me: failed program was:" >&5
20475 sed 's/^/| /' conftest.$ac_ext >&5
20477 ( exit $ac_status )
20478 ac_cv_func_mmap_file=no
20480 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20485 ac_cpp='$CPP $CPPFLAGS'
20486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20492 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20493 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20494 if test "$ac_cv_func_mmap_file" = yes; then
20496 cat >>confdefs.h <<\_ACEOF
20497 #define HAVE_MMAP_FILE
20504 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20505 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20506 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20507 echo $ECHO_N "(cached) $ECHO_C" >&6
20509 if test "$llvm_cv_os_type" = "Interix" ; then
20510 ac_cv_need_dev_zero_for_mmap=yes
20512 ac_cv_need_dev_zero_for_mmap=no
20516 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20517 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20518 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20520 cat >>confdefs.h <<\_ACEOF
20521 #define NEED_DEV_ZERO_FOR_MMAP 1
20526 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20528 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20529 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20531 if test "$ac_cv_func_mmap_file" = "no"
20533 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20534 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20538 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20539 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20541 ac_cpp='$CXXCPP $CPPFLAGS'
20542 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20543 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20544 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20546 cat >conftest.$ac_ext <<_ACEOF
20549 cat confdefs.h >>conftest.$ac_ext
20550 cat >>conftest.$ac_ext <<_ACEOF
20551 /* end confdefs.h. */
20553 volatile unsigned long val = 1;
20554 __sync_synchronize();
20555 __sync_val_compare_and_swap(&val, 1, 0);
20556 __sync_add_and_fetch(&val, 1);
20557 __sync_sub_and_fetch(&val, 1);
20562 rm -f conftest.$ac_objext conftest$ac_exeext
20563 if { (ac_try="$ac_link"
20564 case "(($ac_try" in
20565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20566 *) ac_try_echo=$ac_try;;
20568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20569 (eval "$ac_link") 2>conftest.er1
20571 grep -v '^ *+' conftest.er1 >conftest.err
20573 cat conftest.err >&5
20574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20575 (exit $ac_status); } &&
20576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20577 { (case "(($ac_try" in
20578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20579 *) ac_try_echo=$ac_try;;
20581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20582 (eval "$ac_try") 2>&5
20584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20585 (exit $ac_status); }; } &&
20586 { ac_try='test -s conftest$ac_exeext'
20587 { (case "(($ac_try" in
20588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20589 *) ac_try_echo=$ac_try;;
20591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20592 (eval "$ac_try") 2>&5
20594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20595 (exit $ac_status); }; }; then
20597 ac_cpp='$CPP $CPPFLAGS'
20598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20602 { echo "$as_me:$LINENO: result: yes" >&5
20603 echo "${ECHO_T}yes" >&6; }
20605 cat >>confdefs.h <<\_ACEOF
20606 #define LLVM_HAS_ATOMICS 1
20610 echo "$as_me: failed program was:" >&5
20611 sed 's/^/| /' conftest.$ac_ext >&5
20613 { echo "$as_me:$LINENO: result: no" >&5
20614 echo "${ECHO_T}no" >&6; }
20616 cat >>confdefs.h <<\_ACEOF
20617 #define LLVM_HAS_ATOMICS 0
20620 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20621 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20624 rm -f core conftest.err conftest.$ac_objext \
20625 conftest$ac_exeext conftest.$ac_ext
20628 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20629 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20630 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20631 if test "${llvm_cv_linux_mixed+set}" = set; then
20632 echo $ECHO_N "(cached) $ECHO_C" >&6
20635 ac_cpp='$CPP $CPPFLAGS'
20636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20640 cat >conftest.$ac_ext <<_ACEOF
20643 cat confdefs.h >>conftest.$ac_ext
20644 cat >>conftest.$ac_ext <<_ACEOF
20645 /* end confdefs.h. */
20647 error: Not x86-64 even if uname says so!
20658 rm -f conftest.$ac_objext
20659 if { (ac_try="$ac_compile"
20660 case "(($ac_try" in
20661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20662 *) ac_try_echo=$ac_try;;
20664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20665 (eval "$ac_compile") 2>conftest.er1
20667 grep -v '^ *+' conftest.er1 >conftest.err
20669 cat conftest.err >&5
20670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671 (exit $ac_status); } &&
20672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20673 { (case "(($ac_try" in
20674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20675 *) ac_try_echo=$ac_try;;
20677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20678 (eval "$ac_try") 2>&5
20680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20681 (exit $ac_status); }; } &&
20682 { ac_try='test -s conftest.$ac_objext'
20683 { (case "(($ac_try" in
20684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20685 *) ac_try_echo=$ac_try;;
20687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20688 (eval "$ac_try") 2>&5
20690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20691 (exit $ac_status); }; }; then
20692 llvm_cv_linux_mixed=no
20694 echo "$as_me: failed program was:" >&5
20695 sed 's/^/| /' conftest.$ac_ext >&5
20697 llvm_cv_linux_mixed=yes
20700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20702 ac_cpp='$CPP $CPPFLAGS'
20703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20709 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20710 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20712 if test "$llvm_cv_linux_mixed" = "yes"; then
20713 llvm_cv_target_arch="x86"
20719 for ac_func in __dso_handle
20721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20722 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20724 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20725 echo $ECHO_N "(cached) $ECHO_C" >&6
20727 cat >conftest.$ac_ext <<_ACEOF
20730 cat confdefs.h >>conftest.$ac_ext
20731 cat >>conftest.$ac_ext <<_ACEOF
20732 /* end confdefs.h. */
20733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20735 #define $ac_func innocuous_$ac_func
20737 /* System header to define __stub macros and hopefully few prototypes,
20738 which can conflict with char $ac_func (); below.
20739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20740 <limits.h> exists even on freestanding compilers. */
20743 # include <limits.h>
20745 # include <assert.h>
20750 /* Override any GCC internal prototype to avoid an error.
20751 Use char because int might match the return type of a GCC
20752 builtin and then its argument prototype would still apply. */
20757 /* The GNU C library defines this for functions which it implements
20758 to always fail with ENOSYS. Some functions are actually named
20759 something starting with __ and the normal name is an alias. */
20760 #if defined __stub_$ac_func || defined __stub___$ac_func
20767 return $ac_func ();
20772 rm -f conftest.$ac_objext conftest$ac_exeext
20773 if { (ac_try="$ac_link"
20774 case "(($ac_try" in
20775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20776 *) ac_try_echo=$ac_try;;
20778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20779 (eval "$ac_link") 2>conftest.er1
20781 grep -v '^ *+' conftest.er1 >conftest.err
20783 cat conftest.err >&5
20784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20785 (exit $ac_status); } &&
20786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20787 { (case "(($ac_try" in
20788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20789 *) ac_try_echo=$ac_try;;
20791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20792 (eval "$ac_try") 2>&5
20794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20795 (exit $ac_status); }; } &&
20796 { ac_try='test -s conftest$ac_exeext'
20797 { (case "(($ac_try" in
20798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20799 *) ac_try_echo=$ac_try;;
20801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20802 (eval "$ac_try") 2>&5
20804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20805 (exit $ac_status); }; }; then
20806 eval "$as_ac_var=yes"
20808 echo "$as_me: failed program was:" >&5
20809 sed 's/^/| /' conftest.$ac_ext >&5
20811 eval "$as_ac_var=no"
20814 rm -f core conftest.err conftest.$ac_objext \
20815 conftest$ac_exeext conftest.$ac_ext
20817 ac_res=`eval echo '${'$as_ac_var'}'`
20818 { echo "$as_me:$LINENO: result: $ac_res" >&5
20819 echo "${ECHO_T}$ac_res" >&6; }
20820 if test `eval echo '${'$as_ac_var'}'` = yes; then
20821 cat >>confdefs.h <<_ACEOF
20822 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20829 SHLIBEXT=$libltdl_cv_shlibext
20832 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20835 # Translate the various configuration directories and other basic
20836 # information into substitutions that will end up in Makefile.config.in
20837 # that these configured values can be used by the makefiles
20838 if test "${prefix}" = "NONE" ; then
20839 prefix="/usr/local"
20841 eval LLVM_PREFIX="${prefix}";
20842 eval LLVM_BINDIR="${prefix}/bin";
20843 eval LLVM_LIBDIR="${prefix}/lib";
20844 eval LLVM_DATADIR="${prefix}/share/llvm";
20845 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20846 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20847 eval LLVM_INCLUDEDIR="${prefix}/include";
20848 eval LLVM_INFODIR="${prefix}/info";
20849 eval LLVM_MANDIR="${prefix}/man";
20850 LLVM_CONFIGTIME=`date`
20862 # Place the various directores into the config.h file as #defines so that we
20863 # can know about the installation paths within LLVM.
20865 cat >>confdefs.h <<_ACEOF
20866 #define LLVM_PREFIX "$LLVM_PREFIX"
20870 cat >>confdefs.h <<_ACEOF
20871 #define LLVM_BINDIR "$LLVM_BINDIR"
20875 cat >>confdefs.h <<_ACEOF
20876 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20880 cat >>confdefs.h <<_ACEOF
20881 #define LLVM_DATADIR "$LLVM_DATADIR"
20885 cat >>confdefs.h <<_ACEOF
20886 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20890 cat >>confdefs.h <<_ACEOF
20891 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20895 cat >>confdefs.h <<_ACEOF
20896 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20900 cat >>confdefs.h <<_ACEOF
20901 #define LLVM_INFODIR "$LLVM_INFODIR"
20905 cat >>confdefs.h <<_ACEOF
20906 #define LLVM_MANDIR "$LLVM_MANDIR"
20910 cat >>confdefs.h <<_ACEOF
20911 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20915 cat >>confdefs.h <<_ACEOF
20916 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20920 # Determine which bindings to build.
20921 if test "$BINDINGS_TO_BUILD" = auto ; then
20922 BINDINGS_TO_BUILD=""
20923 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20924 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20927 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20930 # This isn't really configurey, but it avoids having to repeat the list in
20935 # Do any work necessary to ensure that bindings have what they need.
20936 binding_prereqs_failed=0
20937 for a_binding in $BINDINGS_TO_BUILD ; do
20938 case "$a_binding" in
20940 if test "x$OCAMLC" = x ; then
20941 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20942 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20943 binding_prereqs_failed=1
20945 if test "x$OCAMLDEP" = x ; then
20946 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20947 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20948 binding_prereqs_failed=1
20950 if test "x$OCAMLOPT" = x ; then
20951 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20952 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20954 if test "x$with_ocaml_libdir" != xauto ; then
20955 OCAML_LIBDIR=$with_ocaml_libdir
20958 ocaml_stdlib="`"$OCAMLC" -where`"
20959 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20961 # ocaml stdlib is beneath our prefix; use stdlib
20962 OCAML_LIBDIR=$ocaml_stdlib
20965 # ocaml stdlib is outside our prefix; use libdir/ocaml
20966 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20973 if test "$binding_prereqs_failed" = 1 ; then
20974 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20975 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20976 { (exit 1); exit 1; }; }
20979 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20980 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20981 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20982 echo $ECHO_N "(cached) $ECHO_C" >&6
20985 ac_cpp='$CXXCPP $CPPFLAGS'
20986 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20987 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20988 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20990 oldcxxflags="$CXXFLAGS"
20991 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden -Werror"
20992 cat >conftest.$ac_ext <<_ACEOF
20995 cat confdefs.h >>conftest.$ac_ext
20996 cat >>conftest.$ac_ext <<_ACEOF
20997 /* end confdefs.h. */
20998 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21007 rm -f conftest.$ac_objext
21008 if { (ac_try="$ac_compile"
21009 case "(($ac_try" in
21010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21011 *) ac_try_echo=$ac_try;;
21013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21014 (eval "$ac_compile") 2>conftest.er1
21016 grep -v '^ *+' conftest.er1 >conftest.err
21018 cat conftest.err >&5
21019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020 (exit $ac_status); } &&
21021 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21022 { (case "(($ac_try" in
21023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21024 *) ac_try_echo=$ac_try;;
21026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21027 (eval "$ac_try") 2>&5
21029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030 (exit $ac_status); }; } &&
21031 { ac_try='test -s conftest.$ac_objext'
21032 { (case "(($ac_try" in
21033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21034 *) ac_try_echo=$ac_try;;
21036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21037 (eval "$ac_try") 2>&5
21039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21040 (exit $ac_status); }; }; then
21041 llvm_cv_cxx_visibility_inlines_hidden=yes
21043 echo "$as_me: failed program was:" >&5
21044 sed 's/^/| /' conftest.$ac_ext >&5
21046 llvm_cv_cxx_visibility_inlines_hidden=no
21049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21050 CXXFLAGS="$oldcxxflags"
21052 ac_cpp='$CPP $CPPFLAGS'
21053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21059 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21060 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21061 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21062 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21065 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21070 if test "$llvm_cv_link_use_r" = "yes" ; then
21077 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21078 RDYNAMIC="-Wl,-export-dynamic"
21085 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21092 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21094 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21096 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21098 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21100 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21103 ac_config_files="$ac_config_files Makefile.config"
21106 ac_config_files="$ac_config_files llvm.spec"
21109 ac_config_files="$ac_config_files docs/doxygen.cfg"
21111 if test -f ${srcdir}/tools/clang/README.txt; then
21112 ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
21116 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21119 ac_config_commands="$ac_config_commands setup"
21121 ac_config_commands="$ac_config_commands Makefile"
21124 ac_config_commands="$ac_config_commands Makefile.common"
21127 ac_config_commands="$ac_config_commands examples/Makefile"
21130 ac_config_commands="$ac_config_commands lib/Makefile"
21133 ac_config_commands="$ac_config_commands runtime/Makefile"
21136 ac_config_commands="$ac_config_commands test/Makefile"
21139 ac_config_commands="$ac_config_commands test/Makefile.tests"
21142 ac_config_commands="$ac_config_commands unittests/Makefile"
21145 ac_config_commands="$ac_config_commands tools/Makefile"
21148 ac_config_commands="$ac_config_commands utils/Makefile"
21151 ac_config_commands="$ac_config_commands projects/Makefile"
21154 ac_config_commands="$ac_config_commands bindings/Makefile"
21157 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21161 cat >confcache <<\_ACEOF
21162 # This file is a shell script that caches the results of configure
21163 # tests run on this system so they can be shared between configure
21164 # scripts and configure runs, see configure's option --config-cache.
21165 # It is not useful on other systems. If it contains results you don't
21166 # want to keep, you may remove or edit it.
21168 # config.status only pays attention to the cache file if you give it
21169 # the --recheck option to rerun configure.
21171 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21172 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21173 # following values.
21177 # The following way of writing the cache mishandles newlines in values,
21178 # but we know of no workaround that is simple, portable, and efficient.
21179 # So, we kill variables containing newlines.
21180 # Ultrix sh set writes to stderr and can't be redirected directly,
21181 # and sets the high bit in the cache file unless we assign to the vars.
21183 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21184 eval ac_val=\$$ac_var
21188 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21189 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21192 _ | IFS | as_nl) ;; #(
21193 *) $as_unset $ac_var ;;
21199 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21200 *${as_nl}ac_space=\ *)
21201 # `set' does not quote correctly, so add quotes (double-quote
21202 # substitution turns \\\\ into \\, and sed turns \\ into \).
21205 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21208 # `set' quotes correctly as required by POSIX, so do not add quotes.
21209 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21218 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21220 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21222 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21223 if test -w "$cache_file"; then
21224 test "x$cache_file" != "x/dev/null" &&
21225 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21226 echo "$as_me: updating cache $cache_file" >&6;}
21227 cat confcache >$cache_file
21229 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21230 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21235 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21236 # Let make expand exec_prefix.
21237 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21239 DEFS=-DHAVE_CONFIG_H
21243 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21244 # 1. Remove the extension, and $U if already installed.
21245 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21246 ac_i=`echo "$ac_i" | sed "$ac_script"`
21247 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21248 # will be set to the directory where LIBOBJS objects are built.
21249 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21250 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21252 LIBOBJS=$ac_libobjs
21254 LTLIBOBJS=$ac_ltlibobjs
21257 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21258 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21259 Usually this means the macro was only invoked conditionally." >&5
21260 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21261 Usually this means the macro was only invoked conditionally." >&2;}
21262 { (exit 1); exit 1; }; }
21264 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21265 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21266 Usually this means the macro was only invoked conditionally." >&5
21267 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21268 Usually this means the macro was only invoked conditionally." >&2;}
21269 { (exit 1); exit 1; }; }
21272 : ${CONFIG_STATUS=./config.status}
21273 ac_clean_files_save=$ac_clean_files
21274 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21275 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21276 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21277 cat >$CONFIG_STATUS <<_ACEOF
21279 # Generated by $as_me.
21280 # Run this file to recreate the current configuration.
21281 # Compiler output produced by configure, useful for debugging
21282 # configure, is in config.log if it exists.
21285 ac_cs_recheck=false
21287 SHELL=\${CONFIG_SHELL-$SHELL}
21290 cat >>$CONFIG_STATUS <<\_ACEOF
21291 ## --------------------- ##
21292 ## M4sh Initialization. ##
21293 ## --------------------- ##
21295 # Be Bourne compatible
21296 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21299 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21300 # is contrary to our usage. Disable this feature.
21301 alias -g '${1+"$@"}'='"$@"'
21302 setopt NO_GLOB_SUBST
21304 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21306 BIN_SH=xpg4; export BIN_SH # for Tru64
21307 DUALCASE=1; export DUALCASE # for MKS sh
21311 # Avoid depending upon Character Ranges.
21312 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21313 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21314 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21315 as_cr_digits='0123456789'
21316 as_cr_alnum=$as_cr_Letters$as_cr_digits
21318 # The user is always right.
21319 if test "${PATH_SEPARATOR+set}" != set; then
21320 echo "#! /bin/sh" >conf$$.sh
21321 echo "exit 0" >>conf$$.sh
21323 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21331 # Support unset when possible.
21332 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21340 # We need space, tab and new line, in precisely that order. Quoting is
21341 # there to prevent editors from complaining about space-tab.
21342 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21343 # splitting by setting IFS to empty value.)
21348 # Find who we are. Look in the path if we contain no directory separator.
21350 *[\\/]* ) as_myself=$0 ;;
21351 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21352 for as_dir in $PATH
21355 test -z "$as_dir" && as_dir=.
21356 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21362 # We did not find ourselves, most probably we were run as `sh COMMAND'
21363 # in which case we are not to be found in the path.
21364 if test "x$as_myself" = x; then
21367 if test ! -f "$as_myself"; then
21368 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21369 { (exit 1); exit 1; }
21372 # Work around bugs in pre-3.0 UWIN ksh.
21373 for as_var in ENV MAIL MAILPATH
21374 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21382 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21383 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21384 LC_TELEPHONE LC_TIME
21386 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21387 eval $as_var=C; export $as_var
21389 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21393 # Required to use basename.
21394 if expr a : '\(a\)' >/dev/null 2>&1 &&
21395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21402 as_basename=basename
21408 # Name of the executable.
21409 as_me=`$as_basename -- "$0" ||
21410 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21411 X"$0" : 'X\(//\)$' \| \
21412 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21414 sed '/^.*\/\([^/][^/]*\)\/*$/{
21433 as_lineno_1=$LINENO
21434 as_lineno_2=$LINENO
21435 test "x$as_lineno_1" != "x$as_lineno_2" &&
21436 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21438 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21439 # uniformly replaced by the line number. The first 'sed' inserts a
21440 # line-number line after each line using $LINENO; the second 'sed'
21441 # does the real work. The second script uses 'N' to pair each
21442 # line-number line with the line containing $LINENO, and appends
21443 # trailing '-' during substitution so that $LINENO is not a special
21444 # case at line end.
21445 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21446 # scripts with optimization help from Paolo Bonzini. Blame Lee
21447 # E. McMahon (1931-1989) for sed's syntax. :-)
21459 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21462 ' >$as_me.lineno &&
21463 chmod +x "$as_me.lineno" ||
21464 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21465 { (exit 1); exit 1; }; }
21467 # Don't try to exec as it changes $[0], causing all sort of problems
21468 # (the dirname of $[0] is not the place where we might find the
21469 # original and so on. Autoconf is especially sensitive to this).
21470 . "./$as_me.lineno"
21471 # Exit status is that of the last command.
21476 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21482 ECHO_C= ECHO_N= ECHO_T=
21483 case `echo -n x` in
21485 case `echo 'x\c'` in
21486 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21493 if expr a : '\(a\)' >/dev/null 2>&1 &&
21494 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21500 rm -f conf$$ conf$$.exe conf$$.file
21501 if test -d conf$$.dir; then
21502 rm -f conf$$.dir/conf$$.file
21508 if ln -s conf$$.file conf$$ 2>/dev/null; then
21510 # ... but there are two gotchas:
21511 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21512 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21513 # In both cases, we have to default to `cp -p'.
21514 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21516 elif ln conf$$.file conf$$ 2>/dev/null; then
21521 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21522 rmdir conf$$.dir 2>/dev/null
21524 if mkdir -p . 2>/dev/null; then
21527 test -d ./-p && rmdir ./-p
21531 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21532 # systems may use methods other than mode bits to determine executability.
21533 cat >conf$$.file <<_ASEOF
21537 chmod +x conf$$.file
21538 if test -x conf$$.file >/dev/null 2>&1; then
21539 as_executable_p="test -x"
21545 # Sed expression to map a string onto a valid CPP name.
21546 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21548 # Sed expression to map a string onto a valid variable name.
21549 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21554 # Save the log message, to keep $[0] and so on meaningful, and to
21555 # report actual input values of CONFIG_FILES etc. instead of their
21556 # values after options handling.
21558 This file was extended by LLVM $as_me 3.1svn, which was
21559 generated by GNU Autoconf 2.60. Invocation command line was
21561 CONFIG_FILES = $CONFIG_FILES
21562 CONFIG_HEADERS = $CONFIG_HEADERS
21563 CONFIG_LINKS = $CONFIG_LINKS
21564 CONFIG_COMMANDS = $CONFIG_COMMANDS
21567 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21572 cat >>$CONFIG_STATUS <<_ACEOF
21573 # Files that config.status was made for.
21574 config_files="$ac_config_files"
21575 config_headers="$ac_config_headers"
21576 config_commands="$ac_config_commands"
21580 cat >>$CONFIG_STATUS <<\_ACEOF
21582 \`$as_me' instantiates files from templates according to the
21583 current configuration.
21585 Usage: $0 [OPTIONS] [FILE]...
21587 -h, --help print this help, then exit
21588 -V, --version print version number, then exit
21589 -q, --quiet do not print progress messages
21590 -d, --debug don't remove temporary files
21591 --recheck update $as_me by reconfiguring in the same conditions
21592 --file=FILE[:TEMPLATE]
21593 instantiate the configuration file FILE
21594 --header=FILE[:TEMPLATE]
21595 instantiate the configuration header FILE
21597 Configuration files:
21600 Configuration headers:
21603 Configuration commands:
21606 Report bugs to <bug-autoconf@gnu.org>."
21609 cat >>$CONFIG_STATUS <<_ACEOF
21611 LLVM config.status 3.1svn
21612 configured by $0, generated by GNU Autoconf 2.60,
21613 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21615 Copyright (C) 2006 Free Software Foundation, Inc.
21616 This config.status script is free software; the Free Software Foundation
21617 gives unlimited permission to copy, distribute and modify it."
21624 cat >>$CONFIG_STATUS <<\_ACEOF
21625 # If no file are specified by the user, then we need to provide default
21626 # value. By we need to know if files were specified by the user.
21632 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21633 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21644 # Handling of the options.
21645 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21647 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21648 echo "$ac_cs_version"; exit ;;
21649 --debug | --debu | --deb | --de | --d | -d )
21651 --file | --fil | --fi | --f )
21653 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21654 ac_need_defaults=false;;
21655 --header | --heade | --head | --hea )
21657 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21658 ac_need_defaults=false;;
21660 # Conflict between --help and --header
21661 { echo "$as_me: error: ambiguous option: $1
21662 Try \`$0 --help' for more information." >&2
21663 { (exit 1); exit 1; }; };;
21664 --help | --hel | -h )
21665 echo "$ac_cs_usage"; exit ;;
21666 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21667 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21670 # This is an error.
21671 -*) { echo "$as_me: error: unrecognized option: $1
21672 Try \`$0 --help' for more information." >&2
21673 { (exit 1); exit 1; }; } ;;
21675 *) ac_config_targets="$ac_config_targets $1"
21676 ac_need_defaults=false ;;
21682 ac_configure_extra_args=
21684 if $ac_cs_silent; then
21686 ac_configure_extra_args="$ac_configure_extra_args --silent"
21690 cat >>$CONFIG_STATUS <<_ACEOF
21691 if \$ac_cs_recheck; then
21692 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21693 CONFIG_SHELL=$SHELL
21694 export CONFIG_SHELL
21695 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21699 cat >>$CONFIG_STATUS <<\_ACEOF
21703 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21704 ## Running $as_me. ##
21710 cat >>$CONFIG_STATUS <<_ACEOF
21714 llvm_src="${srcdir}"
21718 cat >>$CONFIG_STATUS <<\_ACEOF
21720 # Handling of arguments.
21721 for ac_config_target in $ac_config_targets
21723 case $ac_config_target in
21724 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21725 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21726 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21727 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21728 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21729 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21730 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21731 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21732 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21733 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21734 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
21735 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21736 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21737 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21738 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21739 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21740 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21741 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21742 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21743 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21744 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21745 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21746 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21747 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21748 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21749 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21751 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21752 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21753 { (exit 1); exit 1; }; };;
21758 # If the user did not use the arguments to specify the items to instantiate,
21759 # then the envvar interface is used. Set only those that are not.
21760 # We use the long form for the default assignment because of an extremely
21761 # bizarre bug on SunOS 4.1.3.
21762 if $ac_need_defaults; then
21763 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21764 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21765 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21768 # Have a temporary directory for convenience. Make it in the build tree
21769 # simply because there is no reason against having it here, and in addition,
21770 # creating and moving files from /tmp can sometimes cause problems.
21771 # Hook for its removal unless debugging.
21772 # Note that there is a small window in which the directory will not be cleaned:
21773 # after its creation but before its name has been assigned to `$tmp'.
21777 trap 'exit_status=$?
21778 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21780 trap '{ (exit 1); exit 1; }' 1 2 13 15
21782 # Create a (secure) tmp directory for tmp files.
21785 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21786 test -n "$tmp" && test -d "$tmp"
21789 tmp=./conf$$-$RANDOM
21790 (umask 077 && mkdir "$tmp")
21793 echo "$me: cannot create a temporary directory in ." >&2
21794 { (exit 1); exit 1; }
21798 # Set up the sed scripts for CONFIG_FILES section.
21801 # No need to generate the scripts if there are no CONFIG_FILES.
21802 # This happens for instance when ./config.status config.h
21803 if test -n "$CONFIG_FILES"; then
21810 for ac_last_try in false false false false false :; do
21811 cat >conf$$subs.sed <<_ACEOF
21812 SHELL!$SHELL$ac_delim
21813 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21814 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21815 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21816 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21817 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21818 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21819 exec_prefix!$exec_prefix$ac_delim
21820 prefix!$prefix$ac_delim
21821 program_transform_name!$program_transform_name$ac_delim
21822 bindir!$bindir$ac_delim
21823 sbindir!$sbindir$ac_delim
21824 libexecdir!$libexecdir$ac_delim
21825 datarootdir!$datarootdir$ac_delim
21826 datadir!$datadir$ac_delim
21827 sysconfdir!$sysconfdir$ac_delim
21828 sharedstatedir!$sharedstatedir$ac_delim
21829 localstatedir!$localstatedir$ac_delim
21830 includedir!$includedir$ac_delim
21831 oldincludedir!$oldincludedir$ac_delim
21832 docdir!$docdir$ac_delim
21833 infodir!$infodir$ac_delim
21834 htmldir!$htmldir$ac_delim
21835 dvidir!$dvidir$ac_delim
21836 pdfdir!$pdfdir$ac_delim
21837 psdir!$psdir$ac_delim
21838 libdir!$libdir$ac_delim
21839 localedir!$localedir$ac_delim
21840 mandir!$mandir$ac_delim
21841 DEFS!$DEFS$ac_delim
21842 ECHO_C!$ECHO_C$ac_delim
21843 ECHO_N!$ECHO_N$ac_delim
21844 ECHO_T!$ECHO_T$ac_delim
21845 LIBS!$LIBS$ac_delim
21846 build_alias!$build_alias$ac_delim
21847 host_alias!$host_alias$ac_delim
21848 target_alias!$target_alias$ac_delim
21849 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21851 CFLAGS!$CFLAGS$ac_delim
21852 LDFLAGS!$LDFLAGS$ac_delim
21853 CPPFLAGS!$CPPFLAGS$ac_delim
21854 ac_ct_CC!$ac_ct_CC$ac_delim
21855 EXEEXT!$EXEEXT$ac_delim
21856 OBJEXT!$OBJEXT$ac_delim
21858 CXXFLAGS!$CXXFLAGS$ac_delim
21859 ac_ct_CXX!$ac_ct_CXX$ac_delim
21861 subdirs!$subdirs$ac_delim
21862 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21863 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21864 build!$build$ac_delim
21865 build_cpu!$build_cpu$ac_delim
21866 build_vendor!$build_vendor$ac_delim
21867 build_os!$build_os$ac_delim
21868 host!$host$ac_delim
21869 host_cpu!$host_cpu$ac_delim
21870 host_vendor!$host_vendor$ac_delim
21871 host_os!$host_os$ac_delim
21872 target!$target$ac_delim
21873 target_cpu!$target_cpu$ac_delim
21874 target_vendor!$target_vendor$ac_delim
21875 target_os!$target_os$ac_delim
21877 HOST_OS!$HOST_OS$ac_delim
21878 TARGET_OS!$TARGET_OS$ac_delim
21879 LINKALL!$LINKALL$ac_delim
21880 NOLINKALL!$NOLINKALL$ac_delim
21881 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21882 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21883 ARCH!$ARCH$ac_delim
21884 ENDIAN!$ENDIAN$ac_delim
21885 GREP!$GREP$ac_delim
21886 EGREP!$EGREP$ac_delim
21887 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21888 BUILD_CC!$BUILD_CC$ac_delim
21889 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21890 BUILD_CXX!$BUILD_CXX$ac_delim
21891 CVSBUILD!$CVSBUILD$ac_delim
21892 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21893 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21894 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21895 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21896 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21897 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21898 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21899 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21901 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21902 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21903 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21904 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
21905 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21906 ENABLE_PIC!$ENABLE_PIC$ac_delim
21907 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21908 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21911 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21913 elif $ac_last_try; then
21914 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21915 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21916 { (exit 1); exit 1; }; }
21918 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21922 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21923 if test -n "$ac_eof"; then
21924 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21925 ac_eof=`expr $ac_eof + 1`
21928 cat >>$CONFIG_STATUS <<_ACEOF
21929 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21930 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21933 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21934 s/^/s,@/; s/!/@,|#_!!_#|/
21937 s/'"$ac_delim"'$/,g/; t
21939 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21940 ' >>$CONFIG_STATUS <conf$$subs.sed
21941 rm -f conf$$subs.sed
21942 cat >>$CONFIG_STATUS <<_ACEOF
21948 for ac_last_try in false false false false false :; do
21949 cat >conf$$subs.sed <<_ACEOF
21950 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21951 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21952 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21953 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21954 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21955 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21956 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21957 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21958 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21959 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21960 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
21961 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21962 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
21964 ifGNUmake!$ifGNUmake$ac_delim
21965 LN_S!$LN_S$ac_delim
21968 DATE!$DATE$ac_delim
21969 FIND!$FIND$ac_delim
21970 MKDIR!$MKDIR$ac_delim
21972 RANLIB!$RANLIB$ac_delim
21977 BINPWD!$BINPWD$ac_delim
21978 GRAPHVIZ!$GRAPHVIZ$ac_delim
21981 NEATO!$NEATO$ac_delim
21982 TWOPI!$TWOPI$ac_delim
21983 CIRCO!$CIRCO$ac_delim
21985 DOTTY!$DOTTY$ac_delim
21986 XDOT_PY!$XDOT_PY$ac_delim
21987 PERL!$PERL$ac_delim
21988 HAVE_PERL!$HAVE_PERL$ac_delim
21989 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21990 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21991 INSTALL_DATA!$INSTALL_DATA$ac_delim
21992 BZIP2!$BZIP2$ac_delim
21994 DOXYGEN!$DOXYGEN$ac_delim
21995 GROFF!$GROFF$ac_delim
21996 GZIPBIN!$GZIPBIN$ac_delim
21997 POD2HTML!$POD2HTML$ac_delim
21998 POD2MAN!$POD2MAN$ac_delim
21999 PDFROFF!$PDFROFF$ac_delim
22000 RUNTEST!$RUNTEST$ac_delim
22001 TCLSH!$TCLSH$ac_delim
22003 OCAMLC!$OCAMLC$ac_delim
22004 OCAMLOPT!$OCAMLOPT$ac_delim
22005 OCAMLDEP!$OCAMLDEP$ac_delim
22006 OCAMLDOC!$OCAMLDOC$ac_delim
22008 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22009 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22010 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22011 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22012 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22013 LIBADD_DL!$LIBADD_DL$ac_delim
22014 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22015 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22016 USE_UDIS86!$USE_UDIS86$ac_delim
22017 USE_OPROFILE!$USE_OPROFILE$ac_delim
22018 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22019 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22020 MMAP_FILE!$MMAP_FILE$ac_delim
22021 SHLIBEXT!$SHLIBEXT$ac_delim
22022 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22023 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22024 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22025 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22026 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22027 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22028 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22029 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22030 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22031 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22032 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22033 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22034 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22035 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22036 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22037 RPATH!$RPATH$ac_delim
22038 RDYNAMIC!$RDYNAMIC$ac_delim
22039 LIBOBJS!$LIBOBJS$ac_delim
22040 LTLIBOBJS!$LTLIBOBJS$ac_delim
22043 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
22045 elif $ac_last_try; then
22046 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22047 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22048 { (exit 1); exit 1; }; }
22050 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22054 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22055 if test -n "$ac_eof"; then
22056 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22057 ac_eof=`expr $ac_eof + 1`
22060 cat >>$CONFIG_STATUS <<_ACEOF
22061 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22062 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22065 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22066 s/^/s,@/; s/!/@,|#_!!_#|/
22069 s/'"$ac_delim"'$/,g/; t
22071 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22072 ' >>$CONFIG_STATUS <conf$$subs.sed
22073 rm -f conf$$subs.sed
22074 cat >>$CONFIG_STATUS <<_ACEOF
22081 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22082 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22083 # trailing colons and then remove the whole line if VPATH becomes empty
22084 # (actually we leave an empty line to preserve line numbers).
22085 if test "x$srcdir" = x.; then
22086 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22087 s/:*\$(srcdir):*/:/
22088 s/:*\${srcdir}:*/:/
22090 s/^\([^=]*=[ ]*\):*/\1/
22096 cat >>$CONFIG_STATUS <<\_ACEOF
22097 fi # test -n "$CONFIG_FILES"
22100 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22103 :[FHLC]) ac_mode=$ac_tag; continue;;
22105 case $ac_mode$ac_tag in
22107 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22108 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22109 { (exit 1); exit 1; }; };;
22110 :[FH]-) ac_tag=-:-;;
22111 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22128 -) ac_f="$tmp/stdin";;
22129 *) # Look for the file first in the build tree, then in the source tree
22130 # (if the path is not absolute). The absolute path cannot be DOS-style,
22131 # because $ac_f cannot contain `:'.
22135 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22137 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22138 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22139 { (exit 1); exit 1; }; };;
22141 ac_file_inputs="$ac_file_inputs $ac_f"
22144 # Let's still pretend it is `configure' which instantiates (i.e., don't
22145 # use $as_me), people would be surprised to read:
22146 # /* config.h. Generated by config.status. */
22147 configure_input="Generated from "`IFS=:
22148 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22149 if test x"$ac_file" != x-; then
22150 configure_input="$ac_file. $configure_input"
22151 { echo "$as_me:$LINENO: creating $ac_file" >&5
22152 echo "$as_me: creating $ac_file" >&6;}
22156 *:-:* | *:-) cat >"$tmp/stdin";;
22161 ac_dir=`$as_dirname -- "$ac_file" ||
22162 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22163 X"$ac_file" : 'X\(//\)[^/]' \| \
22164 X"$ac_file" : 'X\(//\)$' \| \
22165 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22171 /^X\(\/\/\)[^/].*/{
22186 -*) as_dir=./$as_dir;;
22188 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22192 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22193 *) as_qdir=$as_dir;;
22195 as_dirs="'$as_qdir' $as_dirs"
22196 as_dir=`$as_dirname -- "$as_dir" ||
22197 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22198 X"$as_dir" : 'X\(//\)[^/]' \| \
22199 X"$as_dir" : 'X\(//\)$' \| \
22200 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22206 /^X\(\/\/\)[^/].*/{
22219 test -d "$as_dir" && break
22221 test -z "$as_dirs" || eval "mkdir $as_dirs"
22222 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22223 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22224 { (exit 1); exit 1; }; }; }
22228 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22230 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22231 # A ".." for each directory in $ac_dir_suffix.
22232 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22233 case $ac_top_builddir_sub in
22234 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22235 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22238 ac_abs_top_builddir=$ac_pwd
22239 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22240 # for backward compatibility:
22241 ac_top_builddir=$ac_top_build_prefix
22244 .) # We are building in place.
22246 ac_top_srcdir=$ac_top_builddir_sub
22247 ac_abs_top_srcdir=$ac_pwd ;;
22248 [\\/]* | ?:[\\/]* ) # Absolute name.
22249 ac_srcdir=$srcdir$ac_dir_suffix;
22250 ac_top_srcdir=$srcdir
22251 ac_abs_top_srcdir=$srcdir ;;
22252 *) # Relative name.
22253 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22254 ac_top_srcdir=$ac_top_build_prefix$srcdir
22255 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22257 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22267 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22268 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22272 cat >>$CONFIG_STATUS <<\_ACEOF
22273 # If the template does not know about datarootdir, expand it.
22274 # FIXME: This hack should be removed a few years after 2.60.
22275 ac_datarootdir_hack=; ac_datarootdir_seen=
22277 case `sed -n '/datarootdir/ {
22286 ' $ac_file_inputs` in
22287 *datarootdir*) ac_datarootdir_seen=yes;;
22288 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22289 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22290 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22292 cat >>$CONFIG_STATUS <<_ACEOF
22293 ac_datarootdir_hack='
22294 s&@datadir@&$datadir&g
22295 s&@docdir@&$docdir&g
22296 s&@infodir@&$infodir&g
22297 s&@localedir@&$localedir&g
22298 s&@mandir@&$mandir&g
22299 s&\\\${datarootdir}&$datarootdir&g' ;;
22303 # Neutralize VPATH when `$srcdir' = `.'.
22304 # Shell code in configure.ac might set extrasub.
22305 # FIXME: do we really want to maintain this feature?
22306 cat >>$CONFIG_STATUS <<_ACEOF
22310 cat >>$CONFIG_STATUS <<\_ACEOF
22312 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22313 s&@configure_input@&$configure_input&;t t
22314 s&@top_builddir@&$ac_top_builddir_sub&;t t
22315 s&@srcdir@&$ac_srcdir&;t t
22316 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22317 s&@top_srcdir@&$ac_top_srcdir&;t t
22318 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22319 s&@builddir@&$ac_builddir&;t t
22320 s&@abs_builddir@&$ac_abs_builddir&;t t
22321 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22322 s&@INSTALL@&$ac_INSTALL&;t t
22323 $ac_datarootdir_hack
22324 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22326 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22327 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22328 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22329 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22330 which seems to be undefined. Please make sure it is defined." >&5
22331 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22332 which seems to be undefined. Please make sure it is defined." >&2;}
22336 -) cat "$tmp/out"; rm -f "$tmp/out";;
22337 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22346 # Transform confdefs.h into a sed script `conftest.defines', that
22347 # substitutes the proper values into config.h.in to produce config.h.
22348 rm -f conftest.defines conftest.tail
22349 # First, append a space to every undef/define line, to ease matching.
22350 echo 's/$/ /' >conftest.defines
22351 # Then, protect against being on the right side of a sed subst, or in
22352 # an unquoted here document, in config.status. If some macros were
22353 # called several times there might be several #defines for the same
22354 # symbol, which is useless. But do not sort them, since the last
22355 # AC_DEFINE must be honored.
22356 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22357 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22358 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22359 # PARAMS is the parameter list in the macro definition--in most cases, it's
22360 # just an empty string.
22361 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22362 ac_dB='\\)[ (].*,\\1define\\2'
22370 s/^[ ]*#[ ]*define[ ][ ]*//
22375 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22376 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22377 ' >>conftest.defines
22379 # Remove the space that was appended to ease matching.
22380 # Then replace #undef with comments. This is necessary, for
22381 # example, in the case of _POSIX_SOURCE, which is predefined and required
22382 # on some systems where configure will not decide to define it.
22383 # (The regexp can be short, since the line contains either #define or #undef.)
22385 s,^[ #]*u.*,/* & */,' >>conftest.defines
22387 # Break up conftest.defines:
22388 ac_max_sed_lines=50
22390 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22391 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22392 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22394 ac_in='$ac_file_inputs'
22395 ac_out='"$tmp/out1"'
22396 ac_nxt='"$tmp/out2"'
22400 # Write a here document:
22401 cat >>$CONFIG_STATUS <<_ACEOF
22402 # First, check the format of the line:
22403 cat >"\$tmp/defines.sed" <<\\CEOF
22404 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22405 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22409 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22411 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22412 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22413 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22414 grep . conftest.tail >/dev/null || break
22415 rm -f conftest.defines
22416 mv conftest.tail conftest.defines
22418 rm -f conftest.defines conftest.tail
22420 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22421 cat >>$CONFIG_STATUS <<\_ACEOF
22422 if test x"$ac_file" != x-; then
22423 echo "/* $configure_input */" >"$tmp/config.h"
22424 cat "$ac_result" >>"$tmp/config.h"
22425 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22426 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22427 echo "$as_me: $ac_file is unchanged" >&6;}
22430 mv "$tmp/config.h" $ac_file
22433 echo "/* $configure_input */"
22439 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22440 echo "$as_me: executing $ac_file commands" >&6;}
22445 case $ac_file$ac_mode in
22446 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22447 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22448 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22449 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22450 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22451 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22452 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22453 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22454 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22455 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22456 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22457 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22458 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22459 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22460 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22461 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22462 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22463 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22464 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22465 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22466 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22467 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22468 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22469 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22470 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22471 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22477 { (exit 0); exit 0; }
22479 chmod +x $CONFIG_STATUS
22480 ac_clean_files=$ac_clean_files_save
22483 # configure is writing to config.log, and then calls config.status.
22484 # config.status does its own redirection, appending to config.log.
22485 # Unfortunately, on DOS this fails, as config.log is still kept open
22486 # by configure, so config.status won't be able to write to it; its
22487 # output is simply discarded. So we exec the FD to /dev/null,
22488 # effectively closing config.log, so it can be properly (re)opened and
22489 # appended to by config.status. When coming back to configure, we
22490 # need to make the FD available again.
22491 if test "$no_create" != yes; then
22493 ac_config_status_args=
22494 test "$silent" = yes &&
22495 ac_config_status_args="$ac_config_status_args --quiet"
22497 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22499 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22500 # would make configure fail if this is the last instruction.
22501 $ac_cs_success || { (exit 1); exit 1; }
22505 # CONFIG_SUBDIRS section.
22507 if test "$no_recursion" != yes; then
22509 # Remove --cache-file and --srcdir arguments so they do not pile up.
22510 ac_sub_configure_args=
22512 eval "set x $ac_configure_args"
22516 if test -n "$ac_prev"; then
22521 -cache-file | --cache-file | --cache-fil | --cache-fi \
22522 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22523 ac_prev=cache_file ;;
22524 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22525 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22528 --config-cache | -C)
22530 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22532 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22534 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22536 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22540 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22542 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22546 # Always prepend --prefix to ensure using the same prefix
22547 # in subdir configurations.
22548 ac_arg="--prefix=$prefix"
22550 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22552 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22555 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22557 # Do not complain, so a configure script can configure whichever
22558 # parts of a large source tree are present.
22559 test -d "$srcdir/$ac_dir" || continue
22561 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22562 echo "$as_me:$LINENO: $ac_msg" >&5
22566 -*) as_dir=./$as_dir;;
22568 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22572 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22573 *) as_qdir=$as_dir;;
22575 as_dirs="'$as_qdir' $as_dirs"
22576 as_dir=`$as_dirname -- "$as_dir" ||
22577 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22578 X"$as_dir" : 'X\(//\)[^/]' \| \
22579 X"$as_dir" : 'X\(//\)$' \| \
22580 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22582 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22586 /^X\(\/\/\)[^/].*/{
22599 test -d "$as_dir" && break
22601 test -z "$as_dirs" || eval "mkdir $as_dirs"
22602 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22603 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22604 { (exit 1); exit 1; }; }; }
22608 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22610 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22611 # A ".." for each directory in $ac_dir_suffix.
22612 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22613 case $ac_top_builddir_sub in
22614 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22615 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22618 ac_abs_top_builddir=$ac_pwd
22619 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22620 # for backward compatibility:
22621 ac_top_builddir=$ac_top_build_prefix
22624 .) # We are building in place.
22626 ac_top_srcdir=$ac_top_builddir_sub
22627 ac_abs_top_srcdir=$ac_pwd ;;
22628 [\\/]* | ?:[\\/]* ) # Absolute name.
22629 ac_srcdir=$srcdir$ac_dir_suffix;
22630 ac_top_srcdir=$srcdir
22631 ac_abs_top_srcdir=$srcdir ;;
22632 *) # Relative name.
22633 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22634 ac_top_srcdir=$ac_top_build_prefix$srcdir
22635 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22637 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22642 # Check for guested configure; otherwise get Cygnus style configure.
22643 if test -f "$ac_srcdir/configure.gnu"; then
22644 ac_sub_configure=$ac_srcdir/configure.gnu
22645 elif test -f "$ac_srcdir/configure"; then
22646 ac_sub_configure=$ac_srcdir/configure
22647 elif test -f "$ac_srcdir/configure.in"; then
22648 # This should be Cygnus configure.
22649 ac_sub_configure=$ac_aux_dir/configure
22651 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22652 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22656 # The recursion is here.
22657 if test -n "$ac_sub_configure"; then
22658 # Make the cache file name correct relative to the subdirectory.
22659 case $cache_file in
22660 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22661 *) # Relative name.
22662 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22665 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22666 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22667 # The eval makes quoting arguments work.
22668 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22669 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22670 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22671 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22672 { (exit 1); exit 1; }; }